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/p__Classrooms__Lists__Progr...

1370 lines
2.6 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.

!(function(){var lw=Object.defineProperty,uw=Object.defineProperties;var cw=Object.getOwnPropertyDescriptors;var rv=Object.getOwnPropertySymbols;var w1=Object.prototype.hasOwnProperty,P1=Object.prototype.propertyIsEnumerable;var _y=Math.pow,x1=(In,Fn,ye)=>Fn in In?lw(In,Fn,{enumerable:!0,configurable:!0,writable:!0,value:ye}):In[Fn]=ye,da=(In,Fn)=>{for(var ye in Fn||(Fn={}))w1.call(Fn,ye)&&x1(In,ye,Fn[ye]);if(rv)for(var ye of rv(Fn))P1.call(Fn,ye)&&x1(In,ye,Fn[ye]);return In},tl=(In,Fn)=>uw(In,cw(Fn));var ov=(In,Fn)=>{var ye={};for(var xe in In)w1.call(In,xe)&&Fn.indexOf(xe)<0&&(ye[xe]=In[xe]);if(In!=null&&rv)for(var xe of rv(In))Fn.indexOf(xe)<0&&P1.call(In,xe)&&(ye[xe]=In[xe]);return ye};var C1=(In,Fn,ye)=>new Promise((xe,Ie)=>{var We=vt=>{try{Qe(ye.next(vt))}catch(Ne){Ie(Ne)}},It=vt=>{try{Qe(ye.throw(vt))}catch(Ne){Ie(Ne)}},Qe=vt=>vt.done?xe(vt.value):Promise.resolve(vt.value).then(We,It);Qe((ye=ye.apply(In,Fn)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[4030],{35323:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Tt}});var xe=ye(5891),Ie=ye(59301),We={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},It=We,Qe=ye(88853),vt=function(qe,gt){return Ie.createElement(Qe.Z,(0,xe.Z)({},qe,{ref:gt,icon:It}))},Ne=Ie.forwardRef(vt),Tt=Ne},19155:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Tt}});var xe=ye(5891),Ie=ye(59301),We={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},It=We,Qe=ye(88853),vt=function(qe,gt){return Ie.createElement(Qe.Z,(0,xe.Z)({},qe,{ref:gt,icon:It}))},Ne=Ie.forwardRef(vt),Tt=Ne},10402:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Tt}});var xe=ye(5891),Ie=ye(59301),We={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"},It=We,Qe=ye(88853),vt=function(qe,gt){return Ie.createElement(Qe.Z,(0,xe.Z)({},qe,{ref:gt,icon:It}))},Ne=Ie.forwardRef(vt),Tt=Ne},93343:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Tt}});var xe=ye(5891),Ie=ye(59301),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},It=We,Qe=ye(88853),vt=function(qe,gt){return Ie.createElement(Qe.Z,(0,xe.Z)({},qe,{ref:gt,icon:It}))},Ne=Ie.forwardRef(vt),Tt=Ne},80205:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Tt}});var xe=ye(5891),Ie=ye(59301),We={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"},It=We,Qe=ye(88853),vt=function(qe,gt){return Ie.createElement(Qe.Z,(0,xe.Z)({},qe,{ref:gt,icon:It}))},Ne=Ie.forwardRef(vt),Tt=Ne},61441:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Tt}});var xe=ye(5891),Ie=ye(59301),We={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"},It=We,Qe=ye(88853),vt=function(qe,gt){return Ie.createElement(Qe.Z,(0,xe.Z)({},qe,{ref:gt,icon:It}))},Ne=Ie.forwardRef(vt),Tt=Ne},30631:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Tt}});var xe=ye(5891),Ie=ye(59301),We={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"},It=We,Qe=ye(88853),vt=function(qe,gt){return Ie.createElement(Qe.Z,(0,xe.Z)({},qe,{ref:gt,icon:It}))},Ne=Ie.forwardRef(vt),Tt=Ne},43971:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Tt}});var xe=ye(5891),Ie=ye(59301),We={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"},It=We,Qe=ye(88853),vt=function(qe,gt){return Ie.createElement(Qe.Z,(0,xe.Z)({},qe,{ref:gt,icon:It}))},Ne=Ie.forwardRef(vt),Tt=Ne},58358:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Tt}});var xe=ye(5891),Ie=ye(59301),We={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"},It=We,Qe=ye(88853),vt=function(qe,gt){return Ie.createElement(Qe.Z,(0,xe.Z)({},qe,{ref:gt,icon:It}))},Ne=Ie.forwardRef(vt),Tt=Ne},44757:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Tt}});var xe=ye(5891),Ie=ye(59301),We={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"},It=We,Qe=ye(88853),vt=function(qe,gt){return Ie.createElement(Qe.Z,(0,xe.Z)({},qe,{ref:gt,icon:It}))},Ne=Ie.forwardRef(vt),Tt=Ne},16537:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Tt}});var xe=ye(5891),Ie=ye(59301),We={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"},It=We,Qe=ye(88853),vt=function(qe,gt){return Ie.createElement(Qe.Z,(0,xe.Z)({},qe,{ref:gt,icon:It}))},Ne=Ie.forwardRef(vt),Tt=Ne},77042:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Tt}});var xe=ye(5891),Ie=ye(59301),We={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"},It=We,Qe=ye(88853),vt=function(qe,gt){return Ie.createElement(Qe.Z,(0,xe.Z)({},qe,{ref:gt,icon:It}))},Ne=Ie.forwardRef(vt),Tt=Ne},5527:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Tt}});var xe=ye(5891),Ie=ye(59301),We={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"},It=We,Qe=ye(88853),vt=function(qe,gt){return Ie.createElement(Qe.Z,(0,xe.Z)({},qe,{ref:gt,icon:It}))},Ne=Ie.forwardRef(vt),Tt=Ne},86902:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Tt}});var xe=ye(5891),Ie=ye(59301),We={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"},It=We,Qe=ye(88853),vt=function(qe,gt){return Ie.createElement(Qe.Z,(0,xe.Z)({},qe,{ref:gt,icon:It}))},Ne=Ie.forwardRef(vt),Tt=Ne},53878:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Tt}});var xe=ye(5891),Ie=ye(59301),We={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"},It=We,Qe=ye(88853),vt=function(qe,gt){return Ie.createElement(Qe.Z,(0,xe.Z)({},qe,{ref:gt,icon:It}))},Ne=Ie.forwardRef(vt),Tt=Ne},21970:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Tt}});var xe=ye(5891),Ie=ye(59301),We={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"},It=We,Qe=ye(88853),vt=function(qe,gt){return Ie.createElement(Qe.Z,(0,xe.Z)({},qe,{ref:gt,icon:It}))},Ne=Ie.forwardRef(vt),Tt=Ne},87954:function(In,Fn,ye){"use strict";ye.d(Fn,{LB:function(){return Mi},g4:function(){return Vt},VK:function(){return At},Cj:function(){return Br},O1:function(){return fr},Zj:function(){return nr}});var xe=ye(59301),Ie=ye(4676),We=ye(35241);const It={display:"none"};function Qe(pt){let{id:Ot,value:cn}=pt;return xe.createElement("div",{id:Ot,style:It},cn)}function vt(pt){let{id:Ot,announcement:cn,ariaLiveType:jn="assertive"}=pt;const Dn={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return xe.createElement("div",{id:Ot,style:Dn,role:"status","aria-live":jn,"aria-atomic":!0},cn)}function Ne(){const[pt,Ot]=(0,xe.useState)("");return{announce:(0,xe.useCallback)(jn=>{jn!=null&&Ot(jn)},[]),announcement:pt}}const Tt=(0,xe.createContext)(null);function Ft(pt){const Ot=(0,xe.useContext)(Tt);(0,xe.useEffect)(()=>{if(!Ot)throw new Error("useDndMonitor must be used within a children of <DndContext>");return Ot(pt)},[pt,Ot])}function qe(){const[pt]=(0,xe.useState)(()=>new Set),Ot=(0,xe.useCallback)(jn=>(pt.add(jn),()=>pt.delete(jn)),[pt]);return[(0,xe.useCallback)(jn=>{let{type:Dn,event:Wt}=jn;pt.forEach(kn=>{var ai;return(ai=kn[Dn])==null?void 0:ai.call(kn,Wt)})},[pt]),Ot]}const gt={draggable:`
To pick up a draggable item, press the space bar.
While dragging, use the arrow keys to move the item.
Press space again to drop the item in its new position, or press escape to cancel.
`},dt={onDragStart(pt){let{active:Ot}=pt;return"Picked up draggable item "+Ot.id+"."},onDragOver(pt){let{active:Ot,over:cn}=pt;return cn?"Draggable item "+Ot.id+" was moved over droppable area "+cn.id+".":"Draggable item "+Ot.id+" is no longer over a droppable area."},onDragEnd(pt){let{active:Ot,over:cn}=pt;return cn?"Draggable item "+Ot.id+" was dropped over droppable area "+cn.id:"Draggable item "+Ot.id+" was dropped."},onDragCancel(pt){let{active:Ot}=pt;return"Dragging was cancelled. Draggable item "+Ot.id+" was dropped."}};function Ct(pt){let{announcements:Ot=dt,container:cn,hiddenTextDescribedById:jn,screenReaderInstructions:Dn=gt}=pt;const{announce:Wt,announcement:kn}=Ne(),ai=(0,We.Ld)("DndLiveRegion"),[$n,Ii]=(0,xe.useState)(!1);if((0,xe.useEffect)(()=>{Ii(!0)},[]),Ft((0,xe.useMemo)(()=>({onDragStart(gi){let{active:Yi}=gi;Wt(Ot.onDragStart({active:Yi}))},onDragMove(gi){let{active:Yi,over:On}=gi;Ot.onDragMove&&Wt(Ot.onDragMove({active:Yi,over:On}))},onDragOver(gi){let{active:Yi,over:On}=gi;Wt(Ot.onDragOver({active:Yi,over:On}))},onDragEnd(gi){let{active:Yi,over:On}=gi;Wt(Ot.onDragEnd({active:Yi,over:On}))},onDragCancel(gi){let{active:Yi,over:On}=gi;Wt(Ot.onDragCancel({active:Yi,over:On}))}}),[Wt,Ot])),!$n)return null;const Bi=xe.createElement(xe.Fragment,null,xe.createElement(Qe,{id:jn,value:Dn.draggable}),xe.createElement(vt,{id:ai,announcement:kn}));return cn?(0,Ie.createPortal)(Bi,cn):Bi}var Me;(function(pt){pt.DragStart="dragStart",pt.DragMove="dragMove",pt.DragEnd="dragEnd",pt.DragCancel="dragCancel",pt.DragOver="dragOver",pt.RegisterDroppable="registerDroppable",pt.SetDroppableDisabled="setDroppableDisabled",pt.UnregisterDroppable="unregisterDroppable"})(Me||(Me={}));function te(){}function ne(pt,Ot){return useMemo(()=>({sensor:pt,options:Ot!=null?Ot:{}}),[pt,Ot])}function ce(){for(var pt=arguments.length,Ot=new Array(pt),cn=0;cn<pt;cn++)Ot[cn]=arguments[cn];return useMemo(()=>[...Ot].filter(jn=>jn!=null),[...Ot])}const se=Object.freeze({x:0,y:0});function ge(pt,Ot){return Math.sqrt(Math.pow(pt.x-Ot.x,2)+Math.pow(pt.y-Ot.y,2))}function ve(pt,Ot){const cn=getEventCoordinates(pt);if(!cn)return"0 0";const jn={x:(cn.x-Ot.left)/Ot.width*100,y:(cn.y-Ot.top)/Ot.height*100};return jn.x+"% "+jn.y+"%"}function Ce(pt,Ot){let{data:{value:cn}}=pt,{data:{value:jn}}=Ot;return cn-jn}function ke(pt,Ot){let{data:{value:cn}}=pt,{data:{value:jn}}=Ot;return jn-cn}function Pe(pt){let{left:Ot,top:cn,height:jn,width:Dn}=pt;return[{x:Ot,y:cn},{x:Ot+Dn,y:cn},{x:Ot,y:cn+jn},{x:Ot+Dn,y:cn+jn}]}function Te(pt,Ot){if(!pt||pt.length===0)return null;const[cn]=pt;return Ot?cn[Ot]:cn}function Ke(pt,Ot,cn){return Ot===void 0&&(Ot=pt.left),cn===void 0&&(cn=pt.top),{x:Ot+pt.width*.5,y:cn+pt.height*.5}}const et=pt=>{let{collisionRect:Ot,droppableRects:cn,droppableContainers:jn}=pt;const Dn=Ke(Ot,Ot.left,Ot.top),Wt=[];for(const kn of jn){const{id:ai}=kn,$n=cn.get(ai);if($n){const Ii=ge(Ke($n),Dn);Wt.push({id:ai,data:{droppableContainer:kn,value:Ii}})}}return Wt.sort(Ce)},Xe=pt=>{let{collisionRect:Ot,droppableRects:cn,droppableContainers:jn}=pt;const Dn=Pe(Ot),Wt=[];for(const kn of jn){const{id:ai}=kn,$n=cn.get(ai);if($n){const Ii=Pe($n),Bi=Dn.reduce((Yi,On,$r)=>Yi+ge(Ii[$r],On),0),gi=Number((Bi/4).toFixed(4));Wt.push({id:ai,data:{droppableContainer:kn,value:gi}})}}return Wt.sort(Ce)};function ft(pt,Ot){const cn=Math.max(Ot.top,pt.top),jn=Math.max(Ot.left,pt.left),Dn=Math.min(Ot.left+Ot.width,pt.left+pt.width),Wt=Math.min(Ot.top+Ot.height,pt.top+pt.height),kn=Dn-jn,ai=Wt-cn;if(jn<Dn&&cn<Wt){const $n=Ot.width*Ot.height,Ii=pt.width*pt.height,Bi=kn*ai,gi=Bi/($n+Ii-Bi);return Number(gi.toFixed(4))}return 0}const Ge=pt=>{let{collisionRect:Ot,droppableRects:cn,droppableContainers:jn}=pt;const Dn=[];for(const Wt of jn){const{id:kn}=Wt,ai=cn.get(kn);if(ai){const $n=ft(ai,Ot);$n>0&&Dn.push({id:kn,data:{droppableContainer:Wt,value:$n}})}}return Dn.sort(ke)};function kt(pt,Ot){const{top:cn,left:jn,bottom:Dn,right:Wt}=Ot;return cn<=pt.y&&pt.y<=Dn&&jn<=pt.x&&pt.x<=Wt}const $e=pt=>{let{droppableContainers:Ot,droppableRects:cn,pointerCoordinates:jn}=pt;if(!jn)return[];const Dn=[];for(const Wt of Ot){const{id:kn}=Wt,ai=cn.get(kn);if(ai&&kt(jn,ai)){const Ii=Pe(ai).reduce((gi,Yi)=>gi+ge(jn,Yi),0),Bi=Number((Ii/4).toFixed(4));Dn.push({id:kn,data:{droppableContainer:Wt,value:Bi}})}}return Dn.sort(Ce)};function zt(pt,Ot,cn){return tl(da({},pt),{scaleX:Ot&&cn?Ot.width/cn.width:1,scaleY:Ot&&cn?Ot.height/cn.height:1})}function Ht(pt,Ot){return pt&&Ot?{x:pt.left-Ot.left,y:pt.top-Ot.top}:se}function Yt(pt){return function(cn){for(var jn=arguments.length,Dn=new Array(jn>1?jn-1:0),Wt=1;Wt<jn;Wt++)Dn[Wt-1]=arguments[Wt];return Dn.reduce((kn,ai)=>tl(da({},kn),{top:kn.top+pt*ai.y,bottom:kn.bottom+pt*ai.y,left:kn.left+pt*ai.x,right:kn.right+pt*ai.x}),da({},cn))}}const Bt=Yt(1);function Qt(pt){if(pt.startsWith("matrix3d(")){const Ot=pt.slice(9,-1).split(/, /);return{x:+Ot[12],y:+Ot[13],scaleX:+Ot[0],scaleY:+Ot[5]}}else if(pt.startsWith("matrix(")){const Ot=pt.slice(7,-1).split(/, /);return{x:+Ot[4],y:+Ot[5],scaleX:+Ot[0],scaleY:+Ot[3]}}return null}function ht(pt,Ot,cn){const jn=Qt(Ot);if(!jn)return pt;const{scaleX:Dn,scaleY:Wt,x:kn,y:ai}=jn,$n=pt.left-kn-(1-Dn)*parseFloat(cn),Ii=pt.top-ai-(1-Wt)*parseFloat(cn.slice(cn.indexOf(" ")+1)),Bi=Dn?pt.width/Dn:pt.width,gi=Wt?pt.height/Wt:pt.height;return{width:Bi,height:gi,top:Ii,right:$n+Bi,bottom:Ii+gi,left:$n}}const je={ignoreTransform:!1};function At(pt,Ot){Ot===void 0&&(Ot=je);let cn=pt.getBoundingClientRect();if(Ot.ignoreTransform){const{transform:Ii,transformOrigin:Bi}=(0,We.Jj)(pt).getComputedStyle(pt);Ii&&(cn=ht(cn,Ii,Bi))}const{top:jn,left:Dn,width:Wt,height:kn,bottom:ai,right:$n}=cn;return{top:jn,left:Dn,width:Wt,height:kn,bottom:ai,right:$n}}function wn(pt){return At(pt,{ignoreTransform:!0})}function rn(pt){const Ot=pt.innerWidth,cn=pt.innerHeight;return{top:0,left:0,right:Ot,bottom:cn,width:Ot,height:cn}}function bt(pt,Ot){return Ot===void 0&&(Ot=(0,We.Jj)(pt).getComputedStyle(pt)),Ot.position==="fixed"}function Jt(pt,Ot){Ot===void 0&&(Ot=(0,We.Jj)(pt).getComputedStyle(pt));const cn=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(Dn=>{const Wt=Ot[Dn];return typeof Wt=="string"?cn.test(Wt):!1})}function un(pt,Ot){const cn=[];function jn(Dn){if(Ot!=null&&cn.length>=Ot||!Dn)return cn;if((0,We.qk)(Dn)&&Dn.scrollingElement!=null&&!cn.includes(Dn.scrollingElement))return cn.push(Dn.scrollingElement),cn;if(!(0,We.Re)(Dn)||(0,We.vZ)(Dn)||cn.includes(Dn))return cn;const Wt=(0,We.Jj)(pt).getComputedStyle(Dn);return Dn!==pt&&Jt(Dn,Wt)&&cn.push(Dn),bt(Dn,Wt)?cn:jn(Dn.parentNode)}return pt?jn(pt):cn}function Kn(pt){const[Ot]=un(pt,1);return Ot!=null?Ot:null}function En(pt){return!We.Nq||!pt?null:(0,We.FJ)(pt)?pt:(0,We.UG)(pt)?(0,We.qk)(pt)||pt===(0,We.r3)(pt).scrollingElement?window:(0,We.Re)(pt)?pt:null:null}function Yn(pt){return(0,We.FJ)(pt)?pt.scrollX:pt.scrollLeft}function St(pt){return(0,We.FJ)(pt)?pt.scrollY:pt.scrollTop}function Vn(pt){return{x:Yn(pt),y:St(pt)}}var Cn;(function(pt){pt[pt.Forward=1]="Forward",pt[pt.Backward=-1]="Backward"})(Cn||(Cn={}));function Si(pt){return!We.Nq||!pt?!1:pt===document.scrollingElement}function Bn(pt){const Ot={x:0,y:0},cn=Si(pt)?{height:window.innerHeight,width:window.innerWidth}:{height:pt.clientHeight,width:pt.clientWidth},jn={x:pt.scrollWidth-cn.width,y:pt.scrollHeight-cn.height},Dn=pt.scrollTop<=Ot.y,Wt=pt.scrollLeft<=Ot.x,kn=pt.scrollTop>=jn.y,ai=pt.scrollLeft>=jn.x;return{isTop:Dn,isLeft:Wt,isBottom:kn,isRight:ai,maxScroll:jn,minScroll:Ot}}const tn={x:.2,y:.2};function $t(pt,Ot,cn,jn,Dn){let{top:Wt,left:kn,right:ai,bottom:$n}=cn;jn===void 0&&(jn=10),Dn===void 0&&(Dn=tn);const{isTop:Ii,isBottom:Bi,isLeft:gi,isRight:Yi}=Bn(pt),On={x:0,y:0},$r={x:0,y:0},Ur={height:Ot.height*Dn.y,width:Ot.width*Dn.x};return!Ii&&Wt<=Ot.top+Ur.height?(On.y=Cn.Backward,$r.y=jn*Math.abs((Ot.top+Ur.height-Wt)/Ur.height)):!Bi&&$n>=Ot.bottom-Ur.height&&(On.y=Cn.Forward,$r.y=jn*Math.abs((Ot.bottom-Ur.height-$n)/Ur.height)),!Yi&&ai>=Ot.right-Ur.width?(On.x=Cn.Forward,$r.x=jn*Math.abs((Ot.right-Ur.width-ai)/Ur.width)):!gi&&kn<=Ot.left+Ur.width&&(On.x=Cn.Backward,$r.x=jn*Math.abs((Ot.left+Ur.width-kn)/Ur.width)),{direction:On,speed:$r}}function ct(pt){if(pt===document.scrollingElement){const{innerWidth:Wt,innerHeight:kn}=window;return{top:0,left:0,right:Wt,bottom:kn,width:Wt,height:kn}}const{top:Ot,left:cn,right:jn,bottom:Dn}=pt.getBoundingClientRect();return{top:Ot,left:cn,right:jn,bottom:Dn,width:pt.clientWidth,height:pt.clientHeight}}function ze(pt){return pt.reduce((Ot,cn)=>(0,We.IH)(Ot,Vn(cn)),se)}function Ut(pt){return pt.reduce((Ot,cn)=>Ot+Yn(cn),0)}function Gt(pt){return pt.reduce((Ot,cn)=>Ot+St(cn),0)}function at(pt,Ot){if(Ot===void 0&&(Ot=At),!pt)return;const{top:cn,left:jn,bottom:Dn,right:Wt}=Ot(pt);Kn(pt)&&(Dn<=0||Wt<=0||cn>=window.innerHeight||jn>=window.innerWidth)&&pt.scrollIntoView({block:"center",inline:"center"})}const Ve=[["x",["left","right"],Ut],["y",["top","bottom"],Gt]];class Be{constructor(Ot,cn){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const jn=un(cn),Dn=ze(jn);this.rect=da({},Ot),this.width=Ot.width,this.height=Ot.height;for(const[Wt,kn,ai]of Ve)for(const $n of kn)Object.defineProperty(this,$n,{get:()=>{const Ii=ai(jn),Bi=Dn[Wt]-Ii;return this.rect[$n]+Bi},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class we{constructor(Ot){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(cn=>{var jn;return(jn=this.target)==null?void 0:jn.removeEventListener(...cn)})},this.target=Ot}add(Ot,cn,jn){var Dn;(Dn=this.target)==null||Dn.addEventListener(Ot,cn,jn),this.listeners.push([Ot,cn,jn])}}function me(pt){const{EventTarget:Ot}=(0,We.Jj)(pt);return pt instanceof Ot?pt:(0,We.r3)(pt)}function De(pt,Ot){const cn=Math.abs(pt.x),jn=Math.abs(pt.y);return typeof Ot=="number"?Math.sqrt(_y(cn,2)+_y(jn,2))>Ot:"x"in Ot&&"y"in Ot?cn>Ot.x&&jn>Ot.y:"x"in Ot?cn>Ot.x:"y"in Ot?jn>Ot.y:!1}var Re;(function(pt){pt.Click="click",pt.DragStart="dragstart",pt.Keydown="keydown",pt.ContextMenu="contextmenu",pt.Resize="resize",pt.SelectionChange="selectionchange",pt.VisibilityChange="visibilitychange"})(Re||(Re={}));function Le(pt){pt.preventDefault()}function st(pt){pt.stopPropagation()}var Vt;(function(pt){pt.Space="Space",pt.Down="ArrowDown",pt.Right="ArrowRight",pt.Left="ArrowLeft",pt.Up="ArrowUp",pt.Esc="Escape",pt.Enter="Enter",pt.Tab="Tab"})(Vt||(Vt={}));const sn={start:[Vt.Space,Vt.Enter],cancel:[Vt.Esc],end:[Vt.Space,Vt.Enter,Vt.Tab]},ln=(pt,Ot)=>{let{currentCoordinates:cn}=Ot;switch(pt.code){case Vt.Right:return tl(da({},cn),{x:cn.x+25});case Vt.Left:return tl(da({},cn),{x:cn.x-25});case Vt.Down:return tl(da({},cn),{y:cn.y+25});case Vt.Up:return tl(da({},cn),{y:cn.y-25})}};class Hn{constructor(Ot){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=Ot;const{event:{target:cn}}=Ot;this.props=Ot,this.listeners=new we((0,We.r3)(cn)),this.windowListeners=new we((0,We.Jj)(cn)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Re.Resize,this.handleCancel),this.windowListeners.add(Re.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Re.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:Ot,onStart:cn}=this.props,jn=Ot.node.current;jn&&at(jn),cn(se)}handleKeyDown(Ot){if((0,We.vd)(Ot)){const{active:cn,context:jn,options:Dn}=this.props,{keyboardCodes:Wt=sn,coordinateGetter:kn=ln,scrollBehavior:ai="smooth"}=Dn,{code:$n}=Ot;if(Wt.end.includes($n)){this.handleEnd(Ot);return}if(Wt.cancel.includes($n)){this.handleCancel(Ot);return}const{collisionRect:Ii}=jn.current,Bi=Ii?{x:Ii.left,y:Ii.top}:se;this.referenceCoordinates||(this.referenceCoordinates=Bi);const gi=kn(Ot,{active:cn,context:jn.current,currentCoordinates:Bi});if(gi){const Yi=(0,We.$X)(gi,Bi),On={x:0,y:0},{scrollableAncestors:$r}=jn.current;for(const Ur of $r){const Ao=Ot.code,{isTop:eo,isRight:qr,isLeft:no,isBottom:$o,maxScroll:Qo,minScroll:pa}=Bn(Ur),qo=ct(Ur),Pn={x:Math.min(Ao===Vt.Right?qo.right-qo.width/2:qo.right,Math.max(Ao===Vt.Right?qo.left:qo.left+qo.width/2,gi.x)),y:Math.min(Ao===Vt.Down?qo.bottom-qo.height/2:qo.bottom,Math.max(Ao===Vt.Down?qo.top:qo.top+qo.height/2,gi.y))},ca=Ao===Vt.Right&&!qr||Ao===Vt.Left&&!no,es=Ao===Vt.Down&&!$o||Ao===Vt.Up&&!eo;if(ca&&Pn.x!==gi.x){const ts=Ur.scrollLeft+Yi.x,Ga=Ao===Vt.Right&&ts<=Qo.x||Ao===Vt.Left&&ts>=pa.x;if(Ga&&!Yi.y){Ur.scrollTo({left:ts,behavior:ai});return}Ga?On.x=Ur.scrollLeft-ts:On.x=Ao===Vt.Right?Ur.scrollLeft-Qo.x:Ur.scrollLeft-pa.x,On.x&&Ur.scrollBy({left:-On.x,behavior:ai});break}else if(es&&Pn.y!==gi.y){const ts=Ur.scrollTop+Yi.y,Ga=Ao===Vt.Down&&ts<=Qo.y||Ao===Vt.Up&&ts>=pa.y;if(Ga&&!Yi.x){Ur.scrollTo({top:ts,behavior:ai});return}Ga?On.y=Ur.scrollTop-ts:On.y=Ao===Vt.Down?Ur.scrollTop-Qo.y:Ur.scrollTop-pa.y,On.y&&Ur.scrollBy({top:-On.y,behavior:ai});break}}this.handleMove(Ot,(0,We.IH)((0,We.$X)(gi,this.referenceCoordinates),On))}}}handleMove(Ot,cn){const{onMove:jn}=this.props;Ot.preventDefault(),jn(cn)}handleEnd(Ot){const{onEnd:cn}=this.props;Ot.preventDefault(),this.detach(),cn()}handleCancel(Ot){const{onCancel:cn}=this.props;Ot.preventDefault(),this.detach(),cn()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Hn.activators=[{eventName:"onKeyDown",handler:(pt,Ot,cn)=>{let{keyboardCodes:jn=sn,onActivation:Dn}=Ot,{active:Wt}=cn;const{code:kn}=pt.nativeEvent;if(jn.start.includes(kn)){const ai=Wt.activatorNode.current;return ai&&pt.target!==ai?!1:(pt.preventDefault(),Dn==null||Dn({event:pt.nativeEvent}),!0)}return!1}}];function wi(pt){return!!(pt&&"distance"in pt)}function Pi(pt){return!!(pt&&"delay"in pt)}class Ri{constructor(Ot,cn,jn){var Dn;jn===void 0&&(jn=me(Ot.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=Ot,this.events=cn;const{event:Wt}=Ot,{target:kn}=Wt;this.props=Ot,this.events=cn,this.document=(0,We.r3)(kn),this.documentListeners=new we(this.document),this.listeners=new we(jn),this.windowListeners=new we((0,We.Jj)(kn)),this.initialCoordinates=(Dn=(0,We.DC)(Wt))!=null?Dn:se,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:Ot,props:{options:{activationConstraint:cn,bypassActivationConstraint:jn}}}=this;if(this.listeners.add(Ot.move.name,this.handleMove,{passive:!1}),this.listeners.add(Ot.end.name,this.handleEnd),Ot.cancel&&this.listeners.add(Ot.cancel.name,this.handleCancel),this.windowListeners.add(Re.Resize,this.handleCancel),this.windowListeners.add(Re.DragStart,Le),this.windowListeners.add(Re.VisibilityChange,this.handleCancel),this.windowListeners.add(Re.ContextMenu,Le),this.documentListeners.add(Re.Keydown,this.handleKeydown),cn){if(jn!=null&&jn({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Pi(cn)){this.timeoutId=setTimeout(this.handleStart,cn.delay),this.handlePending(cn);return}if(wi(cn)){this.handlePending(cn);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(Ot,cn){const{active:jn,onPending:Dn}=this.props;Dn(jn,Ot,this.initialCoordinates,cn)}handleStart(){const{initialCoordinates:Ot}=this,{onStart:cn}=this.props;Ot&&(this.activated=!0,this.documentListeners.add(Re.Click,st,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Re.SelectionChange,this.removeTextSelection),cn(Ot))}handleMove(Ot){var cn;const{activated:jn,initialCoordinates:Dn,props:Wt}=this,{onMove:kn,options:{activationConstraint:ai}}=Wt;if(!Dn)return;const $n=(cn=(0,We.DC)(Ot))!=null?cn:se,Ii=(0,We.$X)(Dn,$n);if(!jn&&ai){if(wi(ai)){if(ai.tolerance!=null&&De(Ii,ai.tolerance))return this.handleCancel();if(De(Ii,ai.distance))return this.handleStart()}if(Pi(ai)&&De(Ii,ai.tolerance))return this.handleCancel();this.handlePending(ai,Ii);return}Ot.cancelable&&Ot.preventDefault(),kn($n)}handleEnd(){const{onAbort:Ot,onEnd:cn}=this.props;this.detach(),this.activated||Ot(this.props.active),cn()}handleCancel(){const{onAbort:Ot,onCancel:cn}=this.props;this.detach(),this.activated||Ot(this.props.active),cn()}handleKeydown(Ot){Ot.code===Vt.Esc&&this.handleCancel()}removeTextSelection(){var Ot;(Ot=this.document.getSelection())==null||Ot.removeAllRanges()}}const Zi={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Ln extends Ri{constructor(Ot){const{event:cn}=Ot,jn=(0,We.r3)(cn.target);super(Ot,Zi,jn)}}Ln.activators=[{eventName:"onPointerDown",handler:(pt,Ot)=>{let{nativeEvent:cn}=pt,{onActivation:jn}=Ot;return!cn.isPrimary||cn.button!==0?!1:(jn==null||jn({event:cn}),!0)}}];const rr={move:{name:"mousemove"},end:{name:"mouseup"}};var Kr;(function(pt){pt[pt.RightClick=2]="RightClick"})(Kr||(Kr={}));class Vr extends Ri{constructor(Ot){super(Ot,rr,(0,We.r3)(Ot.event.target))}}Vr.activators=[{eventName:"onMouseDown",handler:(pt,Ot)=>{let{nativeEvent:cn}=pt,{onActivation:jn}=Ot;return cn.button===Kr.RightClick?!1:(jn==null||jn({event:cn}),!0)}}];const jr={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class li extends Ri{constructor(Ot){super(Ot,jr)}static setup(){return window.addEventListener(jr.move.name,Ot,{capture:!1,passive:!1}),function(){window.removeEventListener(jr.move.name,Ot)};function Ot(){}}}li.activators=[{eventName:"onTouchStart",handler:(pt,Ot)=>{let{nativeEvent:cn}=pt,{onActivation:jn}=Ot;const{touches:Dn}=cn;return Dn.length>1?!1:(jn==null||jn({event:cn}),!0)}}];var Ti;(function(pt){pt[pt.Pointer=0]="Pointer",pt[pt.DraggableRect=1]="DraggableRect"})(Ti||(Ti={}));var vr;(function(pt){pt[pt.TreeOrder=0]="TreeOrder",pt[pt.ReversedTreeOrder=1]="ReversedTreeOrder"})(vr||(vr={}));function ui(pt){let{acceleration:Ot,activator:cn=Ti.Pointer,canScroll:jn,draggingRect:Dn,enabled:Wt,interval:kn=5,order:ai=vr.TreeOrder,pointerCoordinates:$n,scrollableAncestors:Ii,scrollableAncestorRects:Bi,delta:gi,threshold:Yi}=pt;const On=zn({delta:gi,disabled:!Wt}),[$r,Ur]=(0,We.Yz)(),Ao=(0,xe.useRef)({x:0,y:0}),eo=(0,xe.useRef)({x:0,y:0}),qr=(0,xe.useMemo)(()=>{switch(cn){case Ti.Pointer:return $n?{top:$n.y,bottom:$n.y,left:$n.x,right:$n.x}:null;case Ti.DraggableRect:return Dn}},[cn,Dn,$n]),no=(0,xe.useRef)(null),$o=(0,xe.useCallback)(()=>{const pa=no.current;if(!pa)return;const qo=Ao.current.x*eo.current.x,Pn=Ao.current.y*eo.current.y;pa.scrollBy(qo,Pn)},[]),Qo=(0,xe.useMemo)(()=>ai===vr.TreeOrder?[...Ii].reverse():Ii,[ai,Ii]);(0,xe.useEffect)(()=>{if(!Wt||!Ii.length||!qr){Ur();return}for(const pa of Qo){if((jn==null?void 0:jn(pa))===!1)continue;const qo=Ii.indexOf(pa),Pn=Bi[qo];if(!Pn)continue;const{direction:ca,speed:es}=$t(pa,Pn,qr,Ot,Yi);for(const ts of["x","y"])On[ts][ca[ts]]||(es[ts]=0,ca[ts]=0);if(es.x>0||es.y>0){Ur(),no.current=pa,$r($o,kn),Ao.current=es,eo.current=ca;return}}Ao.current={x:0,y:0},eo.current={x:0,y:0},Ur()},[Ot,$o,jn,Ur,Wt,kn,JSON.stringify(qr),JSON.stringify(On),$r,Ii,Qo,Bi,JSON.stringify(Yi)])}const Ir={x:{[Cn.Backward]:!1,[Cn.Forward]:!1},y:{[Cn.Backward]:!1,[Cn.Forward]:!1}};function zn(pt){let{delta:Ot,disabled:cn}=pt;const jn=(0,We.D9)(Ot);return(0,We.Gj)(Dn=>{if(cn||!jn||!Dn)return Ir;const Wt={x:Math.sign(Ot.x-jn.x),y:Math.sign(Ot.y-jn.y)};return{x:{[Cn.Backward]:Dn.x[Cn.Backward]||Wt.x===-1,[Cn.Forward]:Dn.x[Cn.Forward]||Wt.x===1},y:{[Cn.Backward]:Dn.y[Cn.Backward]||Wt.y===-1,[Cn.Forward]:Dn.y[Cn.Forward]||Wt.y===1}}},[cn,Ot,jn])}function Ee(pt,Ot){const cn=Ot!=null?pt.get(Ot):void 0,jn=cn?cn.node.current:null;return(0,We.Gj)(Dn=>{var Wt;return Ot==null?null:(Wt=jn!=null?jn:Dn)!=null?Wt:null},[jn,Ot])}function cr(pt,Ot){return(0,xe.useMemo)(()=>pt.reduce((cn,jn)=>{const{sensor:Dn}=jn,Wt=Dn.activators.map(kn=>({eventName:kn.eventName,handler:Ot(kn.handler,jn)}));return[...cn,...Wt]},[]),[pt,Ot])}var Xi;(function(pt){pt[pt.Always=0]="Always",pt[pt.BeforeDragging=1]="BeforeDragging",pt[pt.WhileDragging=2]="WhileDragging"})(Xi||(Xi={}));var yn;(function(pt){pt.Optimized="optimized"})(yn||(yn={}));const oi=new Map;function Ci(pt,Ot){let{dragging:cn,dependencies:jn,config:Dn}=Ot;const[Wt,kn]=(0,xe.useState)(null),{frequency:ai,measure:$n,strategy:Ii}=Dn,Bi=(0,xe.useRef)(pt),gi=Ao(),Yi=(0,We.Ey)(gi),On=(0,xe.useCallback)(function(eo){eo===void 0&&(eo=[]),!Yi.current&&kn(qr=>qr===null?eo:qr.concat(eo.filter(no=>!qr.includes(no))))},[Yi]),$r=(0,xe.useRef)(null),Ur=(0,We.Gj)(eo=>{if(gi&&!cn)return oi;if(!eo||eo===oi||Bi.current!==pt||Wt!=null){const qr=new Map;for(let no of pt){if(!no)continue;if(Wt&&Wt.length>0&&!Wt.includes(no.id)&&no.rect.current){qr.set(no.id,no.rect.current);continue}const $o=no.node.current,Qo=$o?new Be($n($o),$o):null;no.rect.current=Qo,Qo&&qr.set(no.id,Qo)}return qr}return eo},[pt,Wt,cn,gi,$n]);return(0,xe.useEffect)(()=>{Bi.current=pt},[pt]),(0,xe.useEffect)(()=>{gi||On()},[cn,gi]),(0,xe.useEffect)(()=>{Wt&&Wt.length>0&&kn(null)},[JSON.stringify(Wt)]),(0,xe.useEffect)(()=>{gi||typeof ai!="number"||$r.current!==null||($r.current=setTimeout(()=>{On(),$r.current=null},ai))},[ai,gi,On,...jn]),{droppableRects:Ur,measureDroppableContainers:On,measuringScheduled:Wt!=null};function Ao(){switch(Ii){case Xi.Always:return!1;case Xi.BeforeDragging:return cn;default:return!cn}}}function xn(pt,Ot){return(0,We.Gj)(cn=>pt?cn||(typeof Ot=="function"?Ot(pt):pt):null,[Ot,pt])}function on(pt,Ot){return xn(pt,Ot)}function yt(pt){let{callback:Ot,disabled:cn}=pt;const jn=(0,We.zX)(Ot),Dn=(0,xe.useMemo)(()=>{if(cn||typeof window=="undefined"||typeof window.MutationObserver=="undefined")return;const{MutationObserver:Wt}=window;return new Wt(jn)},[jn,cn]);return(0,xe.useEffect)(()=>()=>Dn==null?void 0:Dn.disconnect(),[Dn]),Dn}function Et(pt){let{callback:Ot,disabled:cn}=pt;const jn=(0,We.zX)(Ot),Dn=(0,xe.useMemo)(()=>{if(cn||typeof window=="undefined"||typeof window.ResizeObserver=="undefined")return;const{ResizeObserver:Wt}=window;return new Wt(jn)},[cn]);return(0,xe.useEffect)(()=>()=>Dn==null?void 0:Dn.disconnect(),[Dn]),Dn}function Lt(pt){return new Be(At(pt),pt)}function tt(pt,Ot,cn){Ot===void 0&&(Ot=Lt);const[jn,Dn]=(0,xe.useState)(null);function Wt(){Dn($n=>{if(!pt)return null;if(pt.isConnected===!1){var Ii;return(Ii=$n!=null?$n:cn)!=null?Ii:null}const Bi=Ot(pt);return JSON.stringify($n)===JSON.stringify(Bi)?$n:Bi})}const kn=yt({callback($n){if(pt)for(const Ii of $n){const{type:Bi,target:gi}=Ii;if(Bi==="childList"&&gi instanceof HTMLElement&&gi.contains(pt)){Wt();break}}}}),ai=Et({callback:Wt});return(0,We.LI)(()=>{Wt(),pt?(ai==null||ai.observe(pt),kn==null||kn.observe(document.body,{childList:!0,subtree:!0})):(ai==null||ai.disconnect(),kn==null||kn.disconnect())},[pt]),jn}function en(pt){const Ot=xn(pt);return Ht(pt,Ot)}const fn=[];function xt(pt){const Ot=(0,xe.useRef)(pt),cn=(0,We.Gj)(jn=>pt?jn&&jn!==fn&&pt&&Ot.current&&pt.parentNode===Ot.current.parentNode?jn:un(pt):fn,[pt]);return(0,xe.useEffect)(()=>{Ot.current=pt},[pt]),cn}function Ue(pt){const[Ot,cn]=(0,xe.useState)(null),jn=(0,xe.useRef)(pt),Dn=(0,xe.useCallback)(Wt=>{const kn=En(Wt.target);kn&&cn(ai=>ai?(ai.set(kn,Vn(kn)),new Map(ai)):null)},[]);return(0,xe.useEffect)(()=>{const Wt=jn.current;if(pt!==Wt){kn(Wt);const ai=pt.map($n=>{const Ii=En($n);return Ii?(Ii.addEventListener("scroll",Dn,{passive:!0}),[Ii,Vn(Ii)]):null}).filter($n=>$n!=null);cn(ai.length?new Map(ai):null),jn.current=pt}return()=>{kn(pt),kn(Wt)};function kn(ai){ai.forEach($n=>{const Ii=En($n);Ii==null||Ii.removeEventListener("scroll",Dn)})}},[Dn,pt]),(0,xe.useMemo)(()=>pt.length?Ot?Array.from(Ot.values()).reduce((Wt,kn)=>(0,We.IH)(Wt,kn),se):ze(pt):se,[pt,Ot])}function an(pt,Ot){Ot===void 0&&(Ot=[]);const cn=(0,xe.useRef)(null);return(0,xe.useEffect)(()=>{cn.current=null},Ot),(0,xe.useEffect)(()=>{const jn=pt!==se;jn&&!cn.current&&(cn.current=pt),!jn&&cn.current&&(cn.current=null)},[pt]),cn.current?(0,We.$X)(pt,cn.current):se}function Dt(pt){(0,xe.useEffect)(()=>{if(!We.Nq)return;const Ot=pt.map(cn=>{let{sensor:jn}=cn;return jn.setup==null?void 0:jn.setup()});return()=>{for(const cn of Ot)cn==null||cn()}},pt.map(Ot=>{let{sensor:cn}=Ot;return cn}))}function Rn(pt,Ot){return(0,xe.useMemo)(()=>pt.reduce((cn,jn)=>{let{eventName:Dn,handler:Wt}=jn;return cn[Dn]=kn=>{Wt(kn,Ot)},cn},{}),[pt,Ot])}function dn(pt){return(0,xe.useMemo)(()=>pt?rn(pt):null,[pt])}const Pt=[];function Sn(pt,Ot){Ot===void 0&&(Ot=At);const[cn]=pt,jn=dn(cn?(0,We.Jj)(cn):null),[Dn,Wt]=(0,xe.useState)(Pt);function kn(){Wt(()=>pt.length?pt.map($n=>Si($n)?jn:new Be(Ot($n),$n)):Pt)}const ai=Et({callback:kn});return(0,We.LI)(()=>{ai==null||ai.disconnect(),kn(),pt.forEach($n=>ai==null?void 0:ai.observe($n))},[pt]),Dn}function Qn(pt){if(!pt)return null;if(pt.children.length>1)return pt;const Ot=pt.children[0];return(0,We.Re)(Ot)?Ot:pt}function Xn(pt){let{measure:Ot}=pt;const[cn,jn]=(0,xe.useState)(null),Dn=(0,xe.useCallback)(Ii=>{for(const{target:Bi}of Ii)if((0,We.Re)(Bi)){jn(gi=>{const Yi=Ot(Bi);return gi?tl(da({},gi),{width:Yi.width,height:Yi.height}):Yi});break}},[Ot]),Wt=Et({callback:Dn}),kn=(0,xe.useCallback)(Ii=>{const Bi=Qn(Ii);Wt==null||Wt.disconnect(),Bi&&(Wt==null||Wt.observe(Bi)),jn(Bi?Ot(Bi):null)},[Ot,Wt]),[ai,$n]=(0,We.wm)(kn);return(0,xe.useMemo)(()=>({nodeRef:ai,rect:cn,setRef:$n}),[cn,ai,$n])}const Rt=[{sensor:Ln,options:{}},{sensor:Hn,options:{}}],vn={current:{}},bi={draggable:{measure:wn},droppable:{measure:wn,strategy:Xi.WhileDragging,frequency:yn.Optimized},dragOverlay:{measure:At}};class vi extends Map{get(Ot){var cn;return Ot!=null&&(cn=super.get(Ot))!=null?cn:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(Ot=>{let{disabled:cn}=Ot;return!cn})}getNodeFor(Ot){var cn,jn;return(cn=(jn=this.get(Ot))==null?void 0:jn.node.current)!=null?cn:void 0}}const pi={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new vi,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:te},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:bi,measureDroppableContainers:te,windowRect:null,measuringScheduled:!1},ei={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:te,draggableNodes:new Map,over:null,measureDroppableContainers:te},yi=(0,xe.createContext)(ei),Fi=(0,xe.createContext)(pi);function Ki(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new vi}}}function hr(pt,Ot){switch(Ot.type){case Me.DragStart:return tl(da({},pt),{draggable:tl(da({},pt.draggable),{initialCoordinates:Ot.initialCoordinates,active:Ot.active})});case Me.DragMove:return pt.draggable.active==null?pt:tl(da({},pt),{draggable:tl(da({},pt.draggable),{translate:{x:Ot.coordinates.x-pt.draggable.initialCoordinates.x,y:Ot.coordinates.y-pt.draggable.initialCoordinates.y}})});case Me.DragEnd:case Me.DragCancel:return tl(da({},pt),{draggable:tl(da({},pt.draggable),{active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}})});case Me.RegisterDroppable:{const{element:cn}=Ot,{id:jn}=cn,Dn=new vi(pt.droppable.containers);return Dn.set(jn,cn),tl(da({},pt),{droppable:tl(da({},pt.droppable),{containers:Dn})})}case Me.SetDroppableDisabled:{const{id:cn,key:jn,disabled:Dn}=Ot,Wt=pt.droppable.containers.get(cn);if(!Wt||jn!==Wt.key)return pt;const kn=new vi(pt.droppable.containers);return kn.set(cn,tl(da({},Wt),{disabled:Dn})),tl(da({},pt),{droppable:tl(da({},pt.droppable),{containers:kn})})}case Me.UnregisterDroppable:{const{id:cn,key:jn}=Ot,Dn=pt.droppable.containers.get(cn);if(!Dn||jn!==Dn.key)return pt;const Wt=new vi(pt.droppable.containers);return Wt.delete(cn),tl(da({},pt),{droppable:tl(da({},pt.droppable),{containers:Wt})})}default:return pt}}function Gn(pt){let{disabled:Ot}=pt;const{active:cn,activatorEvent:jn,draggableNodes:Dn}=(0,xe.useContext)(yi),Wt=(0,We.D9)(jn),kn=(0,We.D9)(cn==null?void 0:cn.id);return(0,xe.useEffect)(()=>{if(!Ot&&!jn&&Wt&&kn!=null){if(!(0,We.vd)(Wt)||document.activeElement===Wt.target)return;const ai=Dn.get(kn);if(!ai)return;const{activatorNode:$n,node:Ii}=ai;if(!$n.current&&!Ii.current)return;requestAnimationFrame(()=>{for(const Bi of[$n.current,Ii.current]){if(!Bi)continue;const gi=(0,We.so)(Bi);if(gi){gi.focus();break}}})}},[jn,Ot,Dn,kn,Wt]),null}function Li(pt,Ot){let Dn=Ot,{transform:cn}=Dn,jn=ov(Dn,["transform"]);return pt!=null&&pt.length?pt.reduce((Wt,kn)=>kn(da({transform:Wt},jn)),cn):cn}function Lr(pt){return(0,xe.useMemo)(()=>({draggable:da(da({},bi.draggable),pt==null?void 0:pt.draggable),droppable:da(da({},bi.droppable),pt==null?void 0:pt.droppable),dragOverlay:da(da({},bi.dragOverlay),pt==null?void 0:pt.dragOverlay)}),[pt==null?void 0:pt.draggable,pt==null?void 0:pt.droppable,pt==null?void 0:pt.dragOverlay])}function Dr(pt){let{activeNode:Ot,measure:cn,initialRect:jn,config:Dn=!0}=pt;const Wt=(0,xe.useRef)(!1),{x:kn,y:ai}=typeof Dn=="boolean"?{x:Dn,y:Dn}:Dn;(0,We.LI)(()=>{if(!kn&&!ai||!Ot){Wt.current=!1;return}if(Wt.current||!jn)return;const Ii=Ot==null?void 0:Ot.node.current;if(!Ii||Ii.isConnected===!1)return;const Bi=cn(Ii),gi=Ht(Bi,jn);if(kn||(gi.x=0),ai||(gi.y=0),Wt.current=!0,Math.abs(gi.x)>0||Math.abs(gi.y)>0){const Yi=Kn(Ii);Yi&&Yi.scrollBy({top:gi.y,left:gi.x})}},[Ot,kn,ai,jn,cn])}const Pr=(0,xe.createContext)(tl(da({},se),{scaleX:1,scaleY:1}));var Xt;(function(pt){pt[pt.Uninitialized=0]="Uninitialized",pt[pt.Initializing=1]="Initializing",pt[pt.Initialized=2]="Initialized"})(Xt||(Xt={}));const Mi=(0,xe.memo)(function(Ot){var cn,jn,Dn,Wt;let xs=Ot,{id:kn,accessibility:ai,autoScroll:$n=!0,children:Ii,sensors:Bi=Rt,collisionDetection:gi=Ge,measuring:Yi,modifiers:On}=xs,$r=ov(xs,["id","accessibility","autoScroll","children","sensors","collisionDetection","measuring","modifiers"]);const Ur=(0,xe.useReducer)(hr,void 0,Ki),[Ao,eo]=Ur,[qr,no]=qe(),[$o,Qo]=(0,xe.useState)(Xt.Uninitialized),pa=$o===Xt.Initialized,{draggable:{active:qo,nodes:Pn,translate:ca},droppable:{containers:es}}=Ao,ts=qo!=null?Pn.get(qo):null,Ga=(0,xe.useRef)({initial:null,translated:null}),Ds=(0,xe.useMemo)(()=>{var Ks;return qo!=null?{id:qo,data:(Ks=ts==null?void 0:ts.data)!=null?Ks:vn,rect:Ga}:null},[qo,ts]),pl=(0,xe.useRef)(null),[ma,ko]=(0,xe.useState)(null),[Oo,Pa]=(0,xe.useState)(null),io=(0,We.Ey)($r,Object.values($r)),No=(0,We.Ld)("DndDescribedBy",kn),ao=(0,xe.useMemo)(()=>es.getEnabled(),[es]),Gi=Lr(Yi),{droppableRects:ha,measureDroppableContainers:Fa,measuringScheduled:Bs}=Ci(ao,{dragging:pa,dependencies:[ca.x,ca.y],config:Gi.droppable}),ys=Ee(Pn,qo),nl=(0,xe.useMemo)(()=>Oo?(0,We.DC)(Oo):null,[Oo]),Ui=Ls(),Da=on(ys,Gi.draggable.measure);Dr({activeNode:qo!=null?Pn.get(qo):null,config:Ui.layoutShiftCompensation,initialRect:Da,measure:Gi.draggable.measure});const ga=tt(ys,Gi.draggable.measure,Da),Is=tt(ys?ys.parentElement:null),ml=(0,xe.useRef)({activatorEvent:null,active:null,activeNode:ys,collisionRect:null,collisions:null,droppableRects:ha,draggableNodes:Pn,draggingNode:null,draggingNodeRect:null,droppableContainers:es,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Gl=es.getNodeFor((cn=ml.current.over)==null?void 0:cn.id),xo=Xn({measure:Gi.dragOverlay.measure}),Au=(jn=xo.nodeRef.current)!=null?jn:ys,il=pa?(Dn=xo.rect)!=null?Dn:ga:null,Nl=!!(xo.nodeRef.current&&xo.rect),vl=en(Nl?null:ga),fu=dn(Au?(0,We.Jj)(Au):null),yl=xt(pa?Gl!=null?Gl:ys:null),rl=Sn(yl),Sl=Li(On,{transform:{x:ca.x-vl.x,y:ca.y-vl.y,scaleX:1,scaleY:1},activatorEvent:Oo,active:Ds,activeNodeRect:ga,containerNodeRect:Is,draggingNodeRect:il,over:ml.current.over,overlayNodeRect:xo.rect,scrollableAncestors:yl,scrollableAncestorRects:rl,windowRect:fu}),oc=nl?(0,We.IH)(nl,ca):null,Sc=Ue(yl),xc=an(Sc),Qc=an(Sc,[ga]),gu=(0,We.IH)(Sl,xc),zl=il?Bt(il,Sl):null,xl=Ds&&zl?gi({active:Ds,collisionRect:zl,droppableRects:ha,droppableContainers:ao,pointerCoordinates:oc}):null,Tl=Te(xl,"id"),[pu,wc]=(0,xe.useState)(null),mu=Nl?Sl:(0,We.IH)(Sl,Qc),Xo=zt(mu,(Wt=pu==null?void 0:pu.rect)!=null?Wt:null,ga),va=(0,xe.useRef)(null),dl=(0,xe.useCallback)((Ks,Ts)=>{let{sensor:ka,options:Hu}=Ts;if(pl.current==null)return;const Ol=Pn.get(pl.current);if(!Ol)return;const El=Ks.nativeEvent,Hr=new ka({active:pl.current,activeNode:Ol,event:El,options:Hu,context:ml,onAbort(Zt){if(!Pn.get(Zt))return;const{onDragAbort:Mu}=io.current,ku={id:Zt};Mu==null||Mu(ku),qr({type:"onDragAbort",event:ku})},onPending(Zt,di,Mu,ku){if(!Pn.get(Zt))return;const{onDragPending:$l}=io.current,jl={id:Zt,constraint:di,initialCoordinates:Mu,offset:ku};$l==null||$l(jl),qr({type:"onDragPending",event:jl})},onStart(Zt){const di=pl.current;if(di==null)return;const Mu=Pn.get(di);if(!Mu)return;const{onDragStart:ku}=io.current,_l={activatorEvent:El,active:{id:di,data:Mu.data,rect:Ga}};(0,Ie.unstable_batchedUpdates)(()=>{ku==null||ku(_l),Qo(Xt.Initializing),eo({type:Me.DragStart,initialCoordinates:Zt,active:di}),qr({type:"onDragStart",event:_l}),ko(va.current),Pa(El)})},onMove(Zt){eo({type:Me.DragMove,coordinates:Zt})},onEnd:Lu(Me.DragEnd),onCancel:Lu(Me.DragCancel)});va.current=Hr;function Lu(Zt){return function(){return C1(this,null,function*(){const{active:Mu,collisions:ku,over:_l,scrollAdjustedTranslate:$l}=ml.current;let jl=null;if(Mu&&$l){const{cancelDrop:Pc}=io.current;jl={activatorEvent:El,active:Mu,collisions:ku,delta:$l,over:_l},Zt===Me.DragEnd&&typeof Pc=="function"&&(yield Promise.resolve(Pc(jl)))&&(Zt=Me.DragCancel)}pl.current=null,(0,Ie.unstable_batchedUpdates)(()=>{eo({type:Zt}),Qo(Xt.Uninitialized),wc(null),ko(null),Pa(null),va.current=null;const Pc=Zt===Me.DragEnd?"onDragEnd":"onDragCancel";if(jl){const Ic=io.current[Pc];Ic==null||Ic(jl),qr({type:Pc,event:jl})}})})}}},[Pn]),Cs=(0,xe.useCallback)((Ks,Ts)=>(ka,Hu)=>{const Ol=ka.nativeEvent,El=Pn.get(Hu);if(pl.current!==null||!El||Ol.dndKit||Ol.defaultPrevented)return;const Hr={active:El};Ks(ka,Ts.options,Hr)===!0&&(Ol.dndKit={capturedBy:Ts.sensor},pl.current=Hu,dl(ka,Ts))},[Pn,dl]),Ss=cr(Bi,Cs);Dt(Bi),(0,We.LI)(()=>{ga&&$o===Xt.Initializing&&Qo(Xt.Initialized)},[ga,$o]),(0,xe.useEffect)(()=>{const{onDragMove:Ks}=io.current,{active:Ts,activatorEvent:ka,collisions:Hu,over:Ol}=ml.current;if(!Ts||!ka)return;const El={active:Ts,activatorEvent:ka,collisions:Hu,delta:{x:gu.x,y:gu.y},over:Ol};(0,Ie.unstable_batchedUpdates)(()=>{Ks==null||Ks(El),qr({type:"onDragMove",event:El})})},[gu.x,gu.y]),(0,xe.useEffect)(()=>{const{active:Ks,activatorEvent:Ts,collisions:ka,droppableContainers:Hu,scrollAdjustedTranslate:Ol}=ml.current;if(!Ks||pl.current==null||!Ts||!Ol)return;const{onDragOver:El}=io.current,Hr=Hu.get(Tl),Lu=Hr&&Hr.rect.current?{id:Hr.id,rect:Hr.rect.current,data:Hr.data,disabled:Hr.disabled}:null,Zt={active:Ks,activatorEvent:Ts,collisions:ka,delta:{x:Ol.x,y:Ol.y},over:Lu};(0,Ie.unstable_batchedUpdates)(()=>{wc(Lu),El==null||El(Zt),qr({type:"onDragOver",event:Zt})})},[Tl]),(0,We.LI)(()=>{ml.current={activatorEvent:Oo,active:Ds,activeNode:ys,collisionRect:zl,collisions:xl,droppableRects:ha,draggableNodes:Pn,draggingNode:Au,draggingNodeRect:il,droppableContainers:es,over:pu,scrollableAncestors:yl,scrollAdjustedTranslate:gu},Ga.current={initial:il,translated:zl}},[Ds,ys,xl,zl,Pn,Au,il,ha,es,pu,yl,gu]),ui(tl(da({},Ui),{delta:ca,draggingRect:zl,pointerCoordinates:oc,scrollableAncestors:yl,scrollableAncestorRects:rl}));const os=(0,xe.useMemo)(()=>({active:Ds,activeNode:ys,activeNodeRect:ga,activatorEvent:Oo,collisions:xl,containerNodeRect:Is,dragOverlay:xo,draggableNodes:Pn,droppableContainers:es,droppableRects:ha,over:pu,measureDroppableContainers:Fa,scrollableAncestors:yl,scrollableAncestorRects:rl,measuringConfiguration:Gi,measuringScheduled:Bs,windowRect:fu}),[Ds,ys,ga,Oo,xl,Is,xo,Pn,es,ha,pu,Fa,yl,rl,Gi,Bs,fu]),hs=(0,xe.useMemo)(()=>({activatorEvent:Oo,activators:Ss,active:Ds,activeNodeRect:ga,ariaDescribedById:{draggable:No},dispatch:eo,draggableNodes:Pn,over:pu,measureDroppableContainers:Fa}),[Oo,Ss,Ds,ga,eo,No,Pn,pu,Fa]);return xe.createElement(Tt.Provider,{value:no},xe.createElement(yi.Provider,{value:hs},xe.createElement(Fi.Provider,{value:os},xe.createElement(Pr.Provider,{value:Xo},Ii)),xe.createElement(Gn,{disabled:(ai==null?void 0:ai.restoreFocus)===!1})),xe.createElement(Ct,tl(da({},ai),{hiddenTextDescribedById:No})));function Ls(){const Ks=(ma==null?void 0:ma.autoScrollEnabled)===!1,Ts=typeof $n=="object"?$n.enabled===!1:$n===!1,ka=pa&&!Ks&&!Ts;return typeof $n=="object"?tl(da({},$n),{enabled:ka}):{enabled:ka}}}),ar=(0,xe.createContext)(null),Wi="button",Mr="Draggable";function fr(pt){let{id:Ot,data:cn,disabled:jn=!1,attributes:Dn}=pt;const Wt=(0,We.Ld)(Mr),{activators:kn,activatorEvent:ai,active:$n,activeNodeRect:Ii,ariaDescribedById:Bi,draggableNodes:gi,over:Yi}=(0,xe.useContext)(yi),{role:On=Wi,roleDescription:$r="draggable",tabIndex:Ur=0}=Dn!=null?Dn:{},Ao=($n==null?void 0:$n.id)===Ot,eo=(0,xe.useContext)(Ao?Pr:ar),[qr,no]=(0,We.wm)(),[$o,Qo]=(0,We.wm)(),pa=Rn(kn,Ot),qo=(0,We.Ey)(cn);(0,We.LI)(()=>(gi.set(Ot,{id:Ot,key:Wt,node:qr,activatorNode:$o,data:qo}),()=>{const ca=gi.get(Ot);ca&&ca.key===Wt&&gi.delete(Ot)}),[gi,Ot]);const Pn=(0,xe.useMemo)(()=>({role:On,tabIndex:Ur,"aria-disabled":jn,"aria-pressed":Ao&&On===Wi?!0:void 0,"aria-roledescription":$r,"aria-describedby":Bi.draggable}),[jn,On,Ur,Ao,$r,Bi.draggable]);return{active:$n,activatorEvent:ai,activeNodeRect:Ii,attributes:Pn,isDragging:Ao,listeners:jn?void 0:pa,node:qr,over:Yi,setNodeRef:no,setActivatorNodeRef:Qo,transform:eo}}function Br(){return(0,xe.useContext)(Fi)}const Oi="Droppable",$i={timeout:25};function nr(pt){let{data:Ot,disabled:cn=!1,id:jn,resizeObserverConfig:Dn}=pt;const Wt=(0,We.Ld)(Oi),{active:kn,dispatch:ai,over:$n,measureDroppableContainers:Ii}=(0,xe.useContext)(yi),Bi=(0,xe.useRef)({disabled:cn}),gi=(0,xe.useRef)(!1),Yi=(0,xe.useRef)(null),On=(0,xe.useRef)(null),{disabled:$r,updateMeasurementsFor:Ur,timeout:Ao}=da(da({},$i),Dn),eo=(0,We.Ey)(Ur!=null?Ur:jn),qr=(0,xe.useCallback)(()=>{if(!gi.current){gi.current=!0;return}On.current!=null&&clearTimeout(On.current),On.current=setTimeout(()=>{Ii(Array.isArray(eo.current)?eo.current:[eo.current]),On.current=null},Ao)},[Ao]),no=Et({callback:qr,disabled:$r||!kn}),$o=(0,xe.useCallback)((Pn,ca)=>{no&&(ca&&(no.unobserve(ca),gi.current=!1),Pn&&no.observe(Pn))},[no]),[Qo,pa]=(0,We.wm)($o),qo=(0,We.Ey)(Ot);return(0,xe.useEffect)(()=>{!no||!Qo.current||(no.disconnect(),gi.current=!1,no.observe(Qo.current))},[Qo,no]),(0,xe.useEffect)(()=>(ai({type:Me.RegisterDroppable,element:{id:jn,key:Wt,disabled:cn,node:Qo,rect:Yi,data:qo}}),()=>ai({type:Me.UnregisterDroppable,key:Wt,id:jn})),[jn]),(0,xe.useEffect)(()=>{cn!==Bi.current.disabled&&(ai({type:Me.SetDroppableDisabled,id:jn,key:Wt,disabled:cn}),Bi.current.disabled=cn)},[jn,Wt,cn,ai]),{active:kn,rect:Yi,isOver:($n==null?void 0:$n.id)===jn,node:Qo,over:$n,setNodeRef:pa}}function Mn(pt){let{animation:Ot,children:cn}=pt;const[jn,Dn]=useState(null),[Wt,kn]=useState(null),ai=usePrevious(cn);return!cn&&!jn&&ai&&Dn(ai),useIsomorphicLayoutEffect(()=>{if(!Wt)return;const $n=jn==null?void 0:jn.key,Ii=jn==null?void 0:jn.props.id;if($n==null||Ii==null){Dn(null);return}Promise.resolve(Ot(Ii,Wt)).then(()=>{Dn(null)})},[Ot,jn,Wt]),React.createElement(React.Fragment,null,cn,jn?cloneElement(jn,{ref:kn}):null)}const Tr={x:0,y:0,scaleX:1,scaleY:1};function An(pt){let{children:Ot}=pt;return React.createElement(yi.Provider,{value:ei},React.createElement(Pr.Provider,{value:Tr},Ot))}const yr={position:"fixed",touchAction:"none"},_r=pt=>isKeyboardEvent(pt)?"transform 250ms ease":void 0,xr=null,Sr={duration:250,easing:"ease",keyframes:pt=>{let{transform:{initial:Ot,final:cn}}=pt;return[{transform:We.ux.Transform.toString(Ot)},{transform:We.ux.Transform.toString(cn)}]},sideEffects:(pt=>Ot=>{let{active:cn,dragOverlay:jn}=Ot;const Dn={},{styles:Wt,className:kn}=pt;if(Wt!=null&&Wt.active)for(const[ai,$n]of Object.entries(Wt.active))$n!==void 0&&(Dn[ai]=cn.node.style.getPropertyValue(ai),cn.node.style.setProperty(ai,$n));if(Wt!=null&&Wt.dragOverlay)for(const[ai,$n]of Object.entries(Wt.dragOverlay))$n!==void 0&&jn.node.style.setProperty(ai,$n);return kn!=null&&kn.active&&cn.node.classList.add(kn.active),kn!=null&&kn.dragOverlay&&jn.node.classList.add(kn.dragOverlay),function(){for(const[$n,Ii]of Object.entries(Dn))cn.node.style.setProperty($n,Ii);kn!=null&&kn.active&&cn.node.classList.remove(kn.active)}})({styles:{active:{opacity:"0"}}})};function gr(pt){let{config:Ot,draggableNodes:cn,droppableContainers:jn,measuringConfiguration:Dn}=pt;return useEvent((Wt,kn)=>{if(Ot===null)return;const ai=cn.get(Wt);if(!ai)return;const $n=ai.node.current;if(!$n)return;const Ii=Qn(kn);if(!Ii)return;const{transform:Bi}=getWindow(kn).getComputedStyle(kn),gi=Qt(Bi);if(!gi)return;const Yi=typeof Ot=="function"?Ot:pr(Ot);return at($n,Dn.draggable.measure),Yi({active:{id:Wt,data:ai.data,node:$n,rect:Dn.draggable.measure($n)},draggableNodes:cn,dragOverlay:{node:kn,rect:Dn.dragOverlay.measure(Ii)},droppableContainers:jn,measuringConfiguration:Dn,transform:gi})})}function pr(pt){const{duration:Ot,easing:cn,sideEffects:jn,keyframes:Dn}=da(da({},Sr),pt);return Wt=>{let qr=Wt,{active:kn,dragOverlay:ai,transform:$n}=qr,Ii=ov(qr,["active","dragOverlay","transform"]);if(!Ot)return;const Bi={x:ai.rect.left-kn.rect.left,y:ai.rect.top-kn.rect.top},gi={scaleX:$n.scaleX!==1?kn.rect.width*$n.scaleX/ai.rect.width:1,scaleY:$n.scaleY!==1?kn.rect.height*$n.scaleY/ai.rect.height:1},Yi=da({x:$n.x-Bi.x,y:$n.y-Bi.y},gi),On=Dn(tl(da({},Ii),{active:kn,dragOverlay:ai,transform:{initial:$n,final:Yi}})),[$r]=On,Ur=On[On.length-1];if(JSON.stringify($r)===JSON.stringify(Ur))return;const Ao=jn==null?void 0:jn(da({active:kn,dragOverlay:ai},Ii)),eo=ai.node.animate(On,{duration:Ot,easing:cn,fill:"forwards"});return new Promise(no=>{eo.onfinish=()=>{Ao==null||Ao(),no()}})}}let Yr=0;function zi(pt){return useMemo(()=>{if(pt!=null)return Yr++,Yr},[pt])}const Je=null},18257:function(In,Fn,ye){"use strict";ye.d(Fn,{DL:function(){return Ne}});var xe=ye(35241);function Ie(qe){return gt=>{let{transform:dt}=gt;return tl(da({},dt),{x:Math.ceil(dt.x/qe)*qe,y:Math.ceil(dt.y/qe)*qe})}}const We=qe=>{let{transform:gt}=qe;return tl(da({},gt),{y:0})};function It(qe,gt,dt){const Ct=da({},qe);return gt.top+qe.y<=dt.top?Ct.y=dt.top-gt.top:gt.bottom+qe.y>=dt.top+dt.height&&(Ct.y=dt.top+dt.height-gt.bottom),gt.left+qe.x<=dt.left?Ct.x=dt.left-gt.left:gt.right+qe.x>=dt.left+dt.width&&(Ct.x=dt.left+dt.width-gt.right),Ct}const Qe=qe=>{let{containerNodeRect:gt,draggingNodeRect:dt,transform:Ct}=qe;return!dt||!gt?Ct:It(Ct,dt,gt)},vt=qe=>{let{draggingNodeRect:gt,transform:dt,scrollableAncestorRects:Ct}=qe;const Me=Ct[0];return!gt||!Me?dt:It(dt,gt,Me)},Ne=qe=>{let{transform:gt}=qe;return tl(da({},gt),{x:0})},Tt=qe=>{let{transform:gt,draggingNodeRect:dt,windowRect:Ct}=qe;return!dt||!Ct?gt:It(gt,dt,Ct)},Ft=qe=>{let{activatorEvent:gt,draggingNodeRect:dt,transform:Ct}=qe;if(dt&&gt){const Me=getEventCoordinates(gt);if(!Me)return Ct;const te=Me.x-dt.left,ne=Me.y-dt.top;return tl(da({},Ct),{x:Ct.x+te-dt.width/2,y:Ct.y+ne-dt.height/2})}return Ct}},19719:function(In,Fn,ye){"use strict";ye.d(Fn,{Fo:function(){return ve},Rp:function(){return It},nB:function(){return ft},qw:function(){return ne}});var xe=ye(59301),Ie=ye(87954),We=ye(35241);function It(Bt,Qt,ht){const je=Bt.slice();return je.splice(ht<0?je.length+ht:ht,0,je.splice(Qt,1)[0]),je}function Qe(Bt,Qt,ht){const je=Bt.slice();return je[Qt]=Bt[ht],je[ht]=Bt[Qt],je}function vt(Bt,Qt){return Bt.reduce((ht,je,At)=>{const wn=Qt.get(je);return wn&&(ht[At]=wn),ht},Array(Bt.length))}function Ne(Bt){return Bt!==null&&Bt>=0}function Tt(Bt,Qt){if(Bt===Qt)return!0;if(Bt.length!==Qt.length)return!1;for(let ht=0;ht<Bt.length;ht++)if(Bt[ht]!==Qt[ht])return!1;return!0}function Ft(Bt){return typeof Bt=="boolean"?{draggable:Bt,droppable:Bt}:Bt}const qe={scaleX:1,scaleY:1},gt=Bt=>{var Qt;let{rects:ht,activeNodeRect:je,activeIndex:At,overIndex:wn,index:rn}=Bt;const bt=(Qt=ht[At])!=null?Qt:je;if(!bt)return null;const Jt=dt(ht,rn,At);if(rn===At){const un=ht[wn];return un?da({x:At<wn?un.left+un.width-(bt.left+bt.width):un.left-bt.left,y:0},qe):null}return rn>At&&rn<=wn?da({x:-bt.width-Jt,y:0},qe):rn<At&&rn>=wn?da({x:bt.width+Jt,y:0},qe):da({x:0,y:0},qe)};function dt(Bt,Qt,ht){const je=Bt[Qt],At=Bt[Qt-1],wn=Bt[Qt+1];return!je||!At&&!wn?0:ht<Qt?At?je.left-(At.left+At.width):wn.left-(je.left+je.width):wn?wn.left-(je.left+je.width):je.left-(At.left+At.width)}const Ct=Bt=>{let{rects:Qt,activeIndex:ht,overIndex:je,index:At}=Bt;const wn=It(Qt,je,ht),rn=Qt[At],bt=wn[At];return!bt||!rn?null:{x:bt.left-rn.left,y:bt.top-rn.top,scaleX:bt.width/rn.width,scaleY:bt.height/rn.height}},Me=Bt=>{let{activeIndex:Qt,index:ht,rects:je,overIndex:At}=Bt,wn,rn;return ht===Qt&&(wn=je[ht],rn=je[At]),ht===At&&(wn=je[ht],rn=je[Qt]),!rn||!wn?null:{x:rn.left-wn.left,y:rn.top-wn.top,scaleX:rn.width/wn.width,scaleY:rn.height/wn.height}},te={scaleX:1,scaleY:1},ne=Bt=>{var Qt;let{activeIndex:ht,activeNodeRect:je,index:At,rects:wn,overIndex:rn}=Bt;const bt=(Qt=wn[ht])!=null?Qt:je;if(!bt)return null;if(At===ht){const un=wn[rn];return un?da({x:0,y:ht<rn?un.top+un.height-(bt.top+bt.height):un.top-bt.top},te):null}const Jt=ce(wn,At,ht);return At>ht&&At<=rn?da({x:0,y:-bt.height-Jt},te):At<ht&&At>=rn?da({x:0,y:bt.height+Jt},te):da({x:0,y:0},te)};function ce(Bt,Qt,ht){const je=Bt[Qt],At=Bt[Qt-1],wn=Bt[Qt+1];return je?ht<Qt?At?je.top-(At.top+At.height):wn?wn.top-(je.top+je.height):0:wn?wn.top-(je.top+je.height):At?je.top-(At.top+At.height):0:0}const se="Sortable",ge=xe.createContext({activeIndex:-1,containerId:se,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Ct,disabled:{draggable:!1,droppable:!1}});function ve(Bt){let{children:Qt,id:ht,items:je,strategy:At=Ct,disabled:wn=!1}=Bt;const{active:rn,dragOverlay:bt,droppableRects:Jt,over:un,measureDroppableContainers:Kn}=(0,Ie.Cj)(),En=(0,We.Ld)(se,ht),Yn=bt.rect!==null,St=(0,xe.useMemo)(()=>je.map(Ut=>typeof Ut=="object"&&"id"in Ut?Ut.id:Ut),[je]),Vn=rn!=null,Cn=rn?St.indexOf(rn.id):-1,Si=un?St.indexOf(un.id):-1,Bn=(0,xe.useRef)(St),tn=!Tt(St,Bn.current),$t=Si!==-1&&Cn===-1||tn,ct=Ft(wn);(0,We.LI)(()=>{tn&&Vn&&Kn(St)},[tn,St,Vn,Kn]),(0,xe.useEffect)(()=>{Bn.current=St},[St]);const ze=(0,xe.useMemo)(()=>({activeIndex:Cn,containerId:En,disabled:ct,disableTransforms:$t,items:St,overIndex:Si,useDragOverlay:Yn,sortedRects:vt(St,Jt),strategy:At}),[Cn,En,ct.draggable,ct.droppable,$t,St,Si,Jt,Yn,At]);return xe.createElement(ge.Provider,{value:ze},Qt)}const Ce=Bt=>{let{id:Qt,items:ht,activeIndex:je,overIndex:At}=Bt;return It(ht,je,At).indexOf(Qt)},ke=Bt=>{let{containerId:Qt,isSorting:ht,wasDragging:je,index:At,items:wn,newIndex:rn,previousItems:bt,previousContainerId:Jt,transition:un}=Bt;return!un||!je||bt!==wn&&At===rn?!1:ht?!0:rn!==At&&Qt===Jt},Pe={duration:200,easing:"ease"},Te="transform",Ke=We.ux.Transition.toString({property:Te,duration:0,easing:"linear"}),et={roleDescription:"sortable"};function Xe(Bt){let{disabled:Qt,index:ht,node:je,rect:At}=Bt;const[wn,rn]=(0,xe.useState)(null),bt=(0,xe.useRef)(ht);return(0,We.LI)(()=>{if(!Qt&&ht!==bt.current&&je.current){const Jt=At.current;if(Jt){const un=(0,Ie.VK)(je.current,{ignoreTransform:!0}),Kn={x:Jt.left-un.left,y:Jt.top-un.top,scaleX:Jt.width/un.width,scaleY:Jt.height/un.height};(Kn.x||Kn.y)&&rn(Kn)}}ht!==bt.current&&(bt.current=ht)},[Qt,ht,je,At]),(0,xe.useEffect)(()=>{wn&&rn(null)},[wn]),wn}function ft(Bt){let{animateLayoutChanges:Qt=ke,attributes:ht,disabled:je,data:At,getNewIndex:wn=Ce,id:rn,strategy:bt,resizeObserverConfig:Jt,transition:un=Pe}=Bt;const{items:Kn,containerId:En,activeIndex:Yn,disabled:St,disableTransforms:Vn,sortedRects:Cn,overIndex:Si,useDragOverlay:Bn,strategy:tn}=(0,xe.useContext)(ge),$t=Ge(je,St),ct=Kn.indexOf(rn),ze=(0,xe.useMemo)(()=>da({sortable:{containerId:En,index:ct,items:Kn}},At),[En,At,ct,Kn]),Ut=(0,xe.useMemo)(()=>Kn.slice(Kn.indexOf(rn)),[Kn,rn]),{rect:Gt,node:at,isOver:Ve,setNodeRef:Be}=(0,Ie.Zj)({id:rn,data:ze,disabled:$t.droppable,resizeObserverConfig:da({updateMeasurementsFor:Ut},Jt)}),{active:we,activatorEvent:me,activeNodeRect:De,attributes:Re,setNodeRef:Le,listeners:st,isDragging:Vt,over:sn,setActivatorNodeRef:ln,transform:Hn}=(0,Ie.O1)({id:rn,data:ze,attributes:da(da({},et),ht),disabled:$t.draggable}),wi=(0,We.HB)(Be,Le),Pi=!!we,Ri=Pi&&!Vn&&Ne(Yn)&&Ne(Si),Zi=!Bn&&Vt,Ln=Zi&&Ri?Hn:null,rr=bt!=null?bt:tn,Kr=Ri?Ln!=null?Ln:rr({rects:Cn,activeNodeRect:De,activeIndex:Yn,overIndex:Si,index:ct}):null,Vr=Ne(Yn)&&Ne(Si)?wn({id:rn,items:Kn,activeIndex:Yn,overIndex:Si}):ct,jr=we==null?void 0:we.id,li=(0,xe.useRef)({activeId:jr,items:Kn,newIndex:Vr,containerId:En}),Ti=Kn!==li.current.items,vr=Qt({active:we,containerId:En,isDragging:Vt,isSorting:Pi,id:rn,index:ct,items:Kn,newIndex:li.current.newIndex,previousItems:li.current.items,previousContainerId:li.current.containerId,transition:un,wasDragging:li.current.activeId!=null}),ui=Xe({disabled:!vr,index:ct,node:at,rect:Gt});return(0,xe.useEffect)(()=>{Pi&&li.current.newIndex!==Vr&&(li.current.newIndex=Vr),En!==li.current.containerId&&(li.current.containerId=En),Kn!==li.current.items&&(li.current.items=Kn)},[Pi,Vr,En,Kn]),(0,xe.useEffect)(()=>{if(jr===li.current.activeId)return;if(jr&&!li.current.activeId){li.current.activeId=jr;return}const zn=setTimeout(()=>{li.current.activeId=jr},50);return()=>clearTimeout(zn)},[jr]),{active:we,activeIndex:Yn,attributes:Re,data:ze,rect:Gt,index:ct,newIndex:Vr,items:Kn,isOver:Ve,isSorting:Pi,isDragging:Vt,listeners:st,node:at,overIndex:Si,over:sn,setNodeRef:wi,setActivatorNodeRef:ln,setDroppableNodeRef:Be,setDraggableNodeRef:Le,transform:ui!=null?ui:Kr,transition:Ir()};function Ir(){if(ui||Ti&&li.current.newIndex===ct)return Ke;if(!(Zi&&!(0,We.vd)(me)||!un)&&(Pi||vr))return We.ux.Transition.toString(tl(da({},un),{property:Te}))}}function Ge(Bt,Qt){var ht,je;return typeof Bt=="boolean"?{draggable:Bt,droppable:!1}:{draggable:(ht=Bt==null?void 0:Bt.draggable)!=null?ht:Qt.draggable,droppable:(je=Bt==null?void 0:Bt.droppable)!=null?je:Qt.droppable}}function kt(Bt){if(!Bt)return!1;const Qt=Bt.data.current;return!!(Qt&&"sortable"in Qt&&typeof Qt.sortable=="object"&&"containerId"in Qt.sortable&&"items"in Qt.sortable&&"index"in Qt.sortable)}const $e=[Ie.g4.Down,Ie.g4.Right,Ie.g4.Up,Ie.g4.Left],zt=(Bt,Qt)=>{let{context:{active:ht,collisionRect:je,droppableRects:At,droppableContainers:wn,over:rn,scrollableAncestors:bt}}=Qt;if($e.includes(Bt.code)){if(Bt.preventDefault(),!ht||!je)return;const Jt=[];wn.getEnabled().forEach(En=>{if(!En||En!=null&&En.disabled)return;const Yn=At.get(En.id);if(Yn)switch(Bt.code){case KeyboardCode.Down:je.top<Yn.top&&Jt.push(En);break;case KeyboardCode.Up:je.top>Yn.top&&Jt.push(En);break;case KeyboardCode.Left:je.left>Yn.left&&Jt.push(En);break;case KeyboardCode.Right:je.left<Yn.left&&Jt.push(En);break}});const un=closestCorners({active:ht,collisionRect:je,droppableRects:At,droppableContainers:Jt,pointerCoordinates:null});let Kn=getFirstCollision(un,"id");if(Kn===(rn==null?void 0:rn.id)&&un.length>1&&(Kn=un[1].id),Kn!=null){const En=wn.get(ht.id),Yn=wn.get(Kn),St=Yn?At.get(Yn.id):null,Vn=Yn==null?void 0:Yn.node.current;if(Vn&&St&&En&&Yn){const Si=getScrollableAncestors(Vn).some((Ut,Gt)=>bt[Gt]!==Ut),Bn=Ht(En,Yn),tn=Yt(En,Yn),$t=Si||!Bn?{x:0,y:0}:{x:tn?je.width-St.width:0,y:tn?je.height-St.height:0},ct={x:St.left,y:St.top};return $t.x&&$t.y?ct:subtract(ct,$t)}}}};function Ht(Bt,Qt){return!kt(Bt)||!kt(Qt)?!1:Bt.data.current.sortable.containerId===Qt.data.current.sortable.containerId}function Yt(Bt,Qt){return!kt(Bt)||!kt(Qt)||!Ht(Bt,Qt)?!1:Bt.data.current.sortable.index<Qt.data.current.sortable.index}},35241:function(In,Fn,ye){"use strict";ye.d(Fn,{$X:function(){return ke},D9:function(){return ce},DC:function(){return et},Ey:function(){return Me},FJ:function(){return It},Gj:function(){return te},HB:function(){return Ie},IH:function(){return Ce},Jj:function(){return vt},LI:function(){return gt},Ld:function(){return ge},Nq:function(){return We},Re:function(){return Tt},UG:function(){return Qe},Yz:function(){return Ct},qk:function(){return Ne},r3:function(){return qe},so:function(){return Ge},ux:function(){return Xe},vZ:function(){return Ft},vd:function(){return Te},wm:function(){return ne},zX:function(){return dt}});var xe=ye(59301);function Ie(){for(var kt=arguments.length,$e=new Array(kt),zt=0;zt<kt;zt++)$e[zt]=arguments[zt];return(0,xe.useMemo)(()=>Ht=>{$e.forEach(Yt=>Yt(Ht))},$e)}const We=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined";function It(kt){const $e=Object.prototype.toString.call(kt);return $e==="[object Window]"||$e==="[object global]"}function Qe(kt){return"nodeType"in kt}function vt(kt){var $e,zt;return kt?It(kt)?kt:Qe(kt)&&($e=(zt=kt.ownerDocument)==null?void 0:zt.defaultView)!=null?$e:window:window}function Ne(kt){const{Document:$e}=vt(kt);return kt instanceof $e}function Tt(kt){return It(kt)?!1:kt instanceof vt(kt).HTMLElement}function Ft(kt){return kt instanceof vt(kt).SVGElement}function qe(kt){return kt?It(kt)?kt.document:Qe(kt)?Ne(kt)?kt:Tt(kt)||Ft(kt)?kt.ownerDocument:document:document:document}const gt=We?xe.useLayoutEffect:xe.useEffect;function dt(kt){const $e=(0,xe.useRef)(kt);return gt(()=>{$e.current=kt}),(0,xe.useCallback)(function(){for(var zt=arguments.length,Ht=new Array(zt),Yt=0;Yt<zt;Yt++)Ht[Yt]=arguments[Yt];return $e.current==null?void 0:$e.current(...Ht)},[])}function Ct(){const kt=(0,xe.useRef)(null),$e=(0,xe.useCallback)((Ht,Yt)=>{kt.current=setInterval(Ht,Yt)},[]),zt=(0,xe.useCallback)(()=>{kt.current!==null&&(clearInterval(kt.current),kt.current=null)},[]);return[$e,zt]}function Me(kt,$e){$e===void 0&&($e=[kt]);const zt=(0,xe.useRef)(kt);return gt(()=>{zt.current!==kt&&(zt.current=kt)},$e),zt}function te(kt,$e){const zt=(0,xe.useRef)();return(0,xe.useMemo)(()=>{const Ht=kt(zt.current);return zt.current=Ht,Ht},[...$e])}function ne(kt){const $e=dt(kt),zt=(0,xe.useRef)(null),Ht=(0,xe.useCallback)(Yt=>{Yt!==zt.current&&($e==null||$e(Yt,zt.current)),zt.current=Yt},[]);return[zt,Ht]}function ce(kt){const $e=(0,xe.useRef)();return(0,xe.useEffect)(()=>{$e.current=kt},[kt]),$e.current}let se={};function ge(kt,$e){return(0,xe.useMemo)(()=>{if($e)return $e;const zt=se[kt]==null?0:se[kt]+1;return se[kt]=zt,kt+"-"+zt},[kt,$e])}function ve(kt){return function($e){for(var zt=arguments.length,Ht=new Array(zt>1?zt-1:0),Yt=1;Yt<zt;Yt++)Ht[Yt-1]=arguments[Yt];return Ht.reduce((Bt,Qt)=>{const ht=Object.entries(Qt);for(const[je,At]of ht){const wn=Bt[je];wn!=null&&(Bt[je]=wn+kt*At)}return Bt},da({},$e))}}const Ce=ve(1),ke=ve(-1);function Pe(kt){return"clientX"in kt&&"clientY"in kt}function Te(kt){if(!kt)return!1;const{KeyboardEvent:$e}=vt(kt.target);return $e&&kt instanceof $e}function Ke(kt){if(!kt)return!1;const{TouchEvent:$e}=vt(kt.target);return $e&&kt instanceof $e}function et(kt){if(Ke(kt)){if(kt.touches&&kt.touches.length){const{clientX:$e,clientY:zt}=kt.touches[0];return{x:$e,y:zt}}else if(kt.changedTouches&&kt.changedTouches.length){const{clientX:$e,clientY:zt}=kt.changedTouches[0];return{x:$e,y:zt}}}return Pe(kt)?{x:kt.clientX,y:kt.clientY}:null}const Xe=Object.freeze({Translate:{toString(kt){if(!kt)return;const{x:$e,y:zt}=kt;return"translate3d("+($e?Math.round($e):0)+"px, "+(zt?Math.round(zt):0)+"px, 0)"}},Scale:{toString(kt){if(!kt)return;const{scaleX:$e,scaleY:zt}=kt;return"scaleX("+$e+") scaleY("+zt+")"}},Transform:{toString(kt){if(kt)return[Xe.Translate.toString(kt),Xe.Scale.toString(kt)].join(" ")}},Transition:{toString(kt){let{property:$e,duration:zt,easing:Ht}=kt;return $e+" "+zt+"ms "+Ht}}}),ft="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Ge(kt){return kt.matches(ft)?kt:kt.querySelector(ft)}},79906:function(){"use strict"},93938:function(In,Fn){"use strict";Fn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},57534:function(In,Fn){"use strict";Fn.Z={flex_box_center:"flex_box_center___IBr6x",flex_space_between:"flex_space_between___n2Iz0",flex_box_vertical_center:"flex_box_vertical_center___1umwO",flex_box_center_end:"flex_box_center_end___SRZYb",flex_box_column:"flex_box_column___b90Da",form:"form___V3fAH",title_icon:"title_icon____uDZy",title:"title___RxKwK",content:"content___vFT5m",pubColSty:"pubColSty___dfLkL",selectSty:"selectSty____Wuek",borderSty:"borderSty___EuFYV",delSty:"delSty___AdEeI",delBorder:"delBorder___vcTJc",copHover:"copHover___JVVXI",multiple_select:"multiple_select___ZMPhl"}},49731:function(In,Fn,ye){"use strict";var xe=ye(59301),Ie=Object.defineProperty,We=Object.getOwnPropertySymbols,It=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,vt=(Ft,qe,gt)=>qe in Ft?Ie(Ft,qe,{enumerable:!0,configurable:!0,writable:!0,value:gt}):Ft[qe]=gt,Ne=(Ft,qe)=>{for(var gt in qe||(qe={}))It.call(qe,gt)&&vt(Ft,gt,qe[gt]);if(We)for(var gt of We(qe))Qe.call(qe,gt)&&vt(Ft,gt,qe[gt]);return Ft};const Tt=Ft=>React.createElement("svg",Ne({className:"jiangxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},Ft),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143z",fill:"#98BDF7"}),React.createElement("path",{d:"m248.686 803.182-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#145DFF"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#98BDF7"}));Fn.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Im0yNDguNjg2IDgwMy4xODItNjUuODI5IDc1LjkyMlY2NTguMjg2aC03My4xNDN2MjIwLjgxOGwtNjUuODI4LTc1Ljk5NUwwIDg1MS4zODMgMTQ2LjI4NiAxMDI0IDI5Mi41NyA4NTEuNTN6IiBmaWxsPSIjMTQ1REZGIi8+PHBhdGggZD0iTTE0Ni4yODYgMCAwIDE1OC43Mmw0My44ODYgNTUuMjIzIDY1LjgyOC03NS45MjJ2MjI3LjY5M2g3My4xNDNWMTM4LjAyMWw2NS44MjkgNzUuOTIyIDQzLjg4NS01NS4yMjN6IiBmaWxsPSIjOThCREY3Ii8+PC9zdmc+"},11961:function(In,Fn,ye){"use strict";var xe=ye(59301),Ie=Object.defineProperty,We=Object.getOwnPropertySymbols,It=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,vt=(Ft,qe,gt)=>qe in Ft?Ie(Ft,qe,{enumerable:!0,configurable:!0,writable:!0,value:gt}):Ft[qe]=gt,Ne=(Ft,qe)=>{for(var gt in qe||(qe={}))It.call(qe,gt)&&vt(Ft,gt,qe[gt]);if(We)for(var gt of We(qe))Qe.call(qe,gt)&&vt(Ft,gt,qe[gt]);return Ft};const Tt=Ft=>React.createElement("svg",Ne({className:"shengxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},Ft),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143zM248.686 803.182l-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#98BDF7"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#145DFF"}));Fn.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzek0yNDguNjg2IDgwMy4xODJsLTY1LjgyOSA3NS45MjJWNjU4LjI4NmgtNzMuMTQzdjIyMC44MThsLTY1LjgyOC03NS45OTVMMCA4NTEuMzgzIDE0Ni4yODYgMTAyNCAyOTIuNTcgODUxLjUzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Ik0xNDYuMjg2IDAgMCAxNTguNzJsNDMuODg2IDU1LjIyMyA2NS44MjgtNzUuOTIydjIyNy42OTNoNzMuMTQzVjEzOC4wMjFsNjUuODI5IDc1LjkyMiA0My44ODUtNTUuMjIzeiIgZmlsbD0iIzE0NURGRiIvPjwvc3ZnPg=="},37404:function(){"use strict";function In(Me,te,ne,ce){ne===void 0&&(ne=0),ce===void 0&&(ce=1/0),this._name=Me,this._defaultValue=te,this._minimum=ne,this._maximum=ce}Object.defineProperty(In.prototype,"name",{get:function(){return this._name},set:function(Me){if(typeof Me!="string"||Me==="")throw new Error("Shape name must be a valid string.");this._name=Me}}),Object.defineProperty(In.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Me){if(typeof Me!="number"||isNaN(Me))throw new Error("The default value must be a real number, not: "+Me);this._defaultValue=Me}}),Object.defineProperty(In.prototype,"minimum",{get:function(){return this._minimum},set:function(Me){if(typeof Me!="number"||isNaN(Me))throw new Error("Minimum must be a real number, not: "+Me);this._minimum=Me}}),Object.defineProperty(In.prototype,"maximum",{get:function(){return this._maximum},set:function(Me){if(typeof Me!="number"||isNaN(Me))throw new Error("Maximum must be a real number, not: "+Me);this._maximum=Me}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Me,te){var ne=go.Shape._FigureParameters[Me];return ne?ne[te]:null},go.Shape.setFigureParameter=function(Me,te,ne){if(!(ne instanceof In))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+ne);if(ne.defaultValue<ne.minimum||ne.defaultValue>ne.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+ne.defaultValue);var ce=go.Shape._FigureParameters[Me];ce||(ce=[],go.Shape._FigureParameters[Me]=ce),ce[te]=ne};var Fn=[];function ye(Me,te){var ne=Fn.pop();return ne===void 0?new go.Point(Me,te):(ne.x=Me,ne.y=te,ne)}function xe(){var Me=Fn.pop();return Me===void 0?new go.Point:Me}function Ie(Me){Fn.push(Me)}function We(Me,te,ne,ce,se,ge,ve,Ce,ke){ke||(ke=new go.Point);var Pe=Me-ne,Te=se-ve,Ke=NaN,et=NaN;if(Pe===0)if(Te===0)Me===ne&&(Ke=Me,et=te);else{var Xe=(ge-Ce)/Te,ft=ge-Xe*se;Ke=Me,et=Xe*Ke+ft}else if(Te===0){var Ge=(te-ce)/Pe,kt=te-Ge*Me;Ke=se,et=Ge*Ke+kt}else{var Ge=(te-ce)/Pe,Xe=(ge-Ce)/Te,kt=te-Ge*Me,ft=ge-Xe*se;Ke=(ft-kt)/(Ge-Xe),et=Ge*Ke+kt}return ke.x=Ke,ke.y=et,ke}function It(Me,te,ne,ce,se,ge,ve,Ce,ke,Pe,Te,Ke,et,Xe){var ft=1-ke,Ge=ke,kt=Me*ft+ne*Ge,$e=te*ft+ce*Ge,zt=ne*ft+se*Ge,Ht=ce*ft+ge*Ge,Yt=se*ft+ve*Ge,Bt=ge*ft+Ce*Ge,Qt=kt*ft+zt*Ge,ht=$e*ft+Ht*Ge,je=zt*ft+Yt*Ge,At=Ht*ft+Bt*Ge,wn=Qt*ft+je*Ge,rn=ht*ft+At*Ge;Pe.x=kt,Pe.y=$e,Te.x=Qt,Te.y=ht,Ke.x=wn,Ke.y=rn,et.x=je,et.y=At,Xe.x=Yt,Xe.y=Bt}var Qe=new go.Spot(.156,.156),vt=new go.Spot(.844,.844),Ne=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new In("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;(isNaN(ce)||ce<0)&&(ce=5),ce=Math.min(ce,te/3),ce=Math.min(ce,ne/3);var se=ce*Ne,ge=new go.Geometry().add(new go.PathFigure(ce,0,!0).add(new go.PathSegment(go.PathSegment.Line,te-ce,0)).add(new go.PathSegment(go.PathSegment.Bezier,te,ce,te-se,0,te,se)).add(new go.PathSegment(go.PathSegment.Line,te,ne-ce)).add(new go.PathSegment(go.PathSegment.Bezier,te-ce,ne,te,ne-se,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,ce,ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,ne-ce,se,ne,0,ne-se)).add(new go.PathSegment(go.PathSegment.Line,0,ce)).add(new go.PathSegment(go.PathSegment.Bezier,ce,0,0,se,se,0).close()));return se>1&&(ge.spot1=new go.Spot(0,0,se,se),ge.spot2=new go.Spot(1,1,-se,-se)),ge}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(te,ne).add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(te,ne).add(new go.PathSegment(go.PathSegment.Line,0,ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(.5*te,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(Me,te,ne){var ce=new go.Geometry(go.Geometry.Line);return ce.startX=0,ce.startY=ne/2,ce.endX=te,ce.endY=ne/2,ce}),go.Shape.defineFigureGenerator("LineV",function(Me,te,ne){var ce=new go.Geometry(go.Geometry.Line);return ce.startX=te/2,ce.startY=0,ce.endX=te/2,ce.endY=ne,ce}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,ne/2,!1).add(new go.PathSegment(go.PathSegment.Line,te,ne/2)).add(new go.PathSegment(go.PathSegment.Move,te/2,0)).add(new go.PathSegment(go.PathSegment.Line,te/2,ne)))}),go.Shape.defineFigureGenerator("XLine",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,ne,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)))}),go.Shape.defineFigureGenerator("LineRight",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(.25*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.25*te,ne)))}),go.Shape.defineFigureGenerator("LineDown",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,.25*ne,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,.75*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)))}),go.Shape.defineFigureGenerator("LineLeft",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(.75*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.75*te,ne)))}),go.Shape.defineFigureGenerator("LineUp",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,.75*ne,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,.25*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.75*ne)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(Me,te,ne){var ce=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(ce*te,(1-ce)*ne,!1).add(new go.PathSegment(go.PathSegment.Line,(1-ce)*te,ce*ne)).add(new go.PathSegment(go.PathSegment.Move,ce*te,ce*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-ce)*te,(1-ce)*ne)).add(new go.PathSegment(go.PathSegment.Move,0,ne/2)).add(new go.PathSegment(go.PathSegment.Line,te,ne/2)).add(new go.PathSegment(go.PathSegment.Move,te/2,0)).add(new go.PathSegment(go.PathSegment.Line,te/2,ne)))}),go.Shape.defineFigureGenerator("CircleLine",function(Me,te,ne){var ce=te/2,se=new go.Geometry().add(new go.PathFigure(te,te/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,ce,ce,ce,ce).close()));return se.spot1=Qe,se.spot2=vt,se.defaultStretch=go.GraphObject.Uniform,se}),go.Shape.defineFigureGenerator("Line1",function(Me,te,ne){var ce=new go.Geometry(go.Geometry.Line);return ce.startX=0,ce.startY=0,ce.endX=te,ce.endY=ne,ce}),go.Shape.defineFigureGenerator("Line2",function(Me,te,ne){var ce=new go.Geometry(go.Geometry.Line);return ce.startX=te,ce.startY=0,ce.endX=0,ce.endY=ne,ce}),go.Shape.defineFigureGenerator("Curve1",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,te,ne,Ne*te,0,te,(1-Ne)*ne)))}),go.Shape.defineFigureGenerator("Curve2",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,te,ne,0,Ne*ne,(1-Ne)*te,ne)))}),go.Shape.defineFigureGenerator("Curve3",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,te,Ne*ne,Ne*te,ne)))}),go.Shape.defineFigureGenerator("Curve4",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,(1-Ne)*te,0,0,(1-Ne)*ne)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(te,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new In("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)?ce=.1:ce<-1?ce=-1:ce>1&&(ce=1);var se=Math.abs(ce)*te;if(ce===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=te,ge.endY=ne,ge}else{var ge=new go.Geometry;return ce>0?ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,se,ne).close())),se<te/2&&ge.setSpots(se/te,0,(te-se)/te,1),ge}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new In("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)?ce=10:ce<-te?ce=-te:ce>te&&(ce=te);var se=Math.abs(ce);if(ce===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=te,ge.endY=ne,ge}else{var ge=new go.Geometry;return ce>0?ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,se,ne).close())),se<te/2&&ge.setSpots(se/te,0,(te-se)/te,1),ge}}),go.Shape.setFigureParameter("Trapezoid1",0,new In("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)?ce=.2:ce<.5?ce=-.5:ce>.5&&(ce=.5);var se=Math.abs(ce)*te;if(ce===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=te,ge.endY=ne,ge}else{var ge=new go.Geometry;return ce>0?ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,se,ne).close())),se<te/2&&ge.setSpots(se/te,0,(te-se)/te,1),ge}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new In("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)?ce=20:ce<-te?ce=-te/2:ce>te&&(ce=te/2);var se=Math.abs(ce);if(ce===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=te,ge.endY=ne,ge}else{var ge=new go.Geometry;return ce>0?ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,se,ne).close())),se<te/2&&ge.setSpots(se/te,0,(te-se)/te,1),ge}}),go.Shape.setFigureParameter("ManualOperation",0,new In("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)?ce=10:ce<-te?ce=-te/2:ce>te&&(ce=te/2);var se=Math.abs(ce);if(ce===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=te,ge.endY=ne,ge}else{var ge=new go.Geometry;return ce>0?ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,se,ne).close())):ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())),se<te/2&&ge.setSpots(se/te,0,(te-se)/te,1),ge}});var Tt=[];function Ft(){var Me=Tt.pop();return Me===void 0?[]:Me}function qe(Me){Me.length=0,Tt.push(Me)}function gt(Me){for(var te=Ft(),ne=.5,ce=.5,se=Math.PI*1.5,ge=0,ve=0;ve<Me;ve++)ge=2*Math.PI/Me*ve+se,te[ve]=new go.Point(ce+ne*Math.cos(ge),ce+ne*Math.sin(ge));return te.push(te[0]),te}function dt(Me){var te=Ct(Me),ne=Ft();ne[0]=te[0];for(var ce=1,se=1;ce<te.length;ce+=2,se+=3)ne[se]=te[ce],ne[se+1]=te[ce],ne[se+2]=te[ce+1];return qe(te),ne}function Ct(Me){for(var te=gt(Me),ne=Ft(),ce=Math.floor(te.length/2),se=te.length-1,ge=Me%2===0?2:1,ve=0;ve<se;ve++){var Ce=te[ve],ke=te[ve+1],Pe=te[(ce+ve-1)%se],Te=te[(ce+ve+ge)%se];ne[ve*2]=Ce,ne[ve*2+1]=We(Ce.x,Ce.y,Pe.x,Pe.y,ke.x,ke.y,Te.x,Te.y,new go.Point)}return ne[ne.length]=ne[0],qe(te),ne}go.Shape.defineFigureGenerator("Pentagon",function(Me,te,ne){var ce=gt(5),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var ve=1;ve<5;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[ve].x*te,ce[ve].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,ce[0].x*te,ce[0].y*ne).close()),qe(ce),se.spot1=new go.Spot(.2,.22),se.spot2=new go.Spot(.8,.9),se}),go.Shape.defineFigureGenerator("Hexagon",function(Me,te,ne){var ce=gt(6),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var ve=1;ve<6;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[ve].x*te,ce[ve].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,ce[0].x*te,ce[0].y*ne).close()),qe(ce),se.spot1=new go.Spot(.07,.25),se.spot2=new go.Spot(.93,.75),se}),go.Shape.defineFigureGenerator("Heptagon",function(Me,te,ne){var ce=gt(7),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var ve=1;ve<7;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[ve].x*te,ce[ve].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,ce[0].x*te,ce[0].y*ne).close()),qe(ce),se.spot1=new go.Spot(.2,.15),se.spot2=new go.Spot(.8,.85),se}),go.Shape.defineFigureGenerator("Octagon",function(Me,te,ne){var ce=gt(8),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var ve=1;ve<8;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[ve].x*te,ce[ve].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,ce[0].x*te,ce[0].y*ne).close()),qe(ce),se.spot1=new go.Spot(.15,.15),se.spot2=new go.Spot(.85,.85),se}),go.Shape.defineFigureGenerator("Nonagon",function(Me,te,ne){var ce=gt(9),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var ve=1;ve<9;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[ve].x*te,ce[ve].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,ce[0].x*te,ce[0].y*ne).close()),qe(ce),se.spot1=new go.Spot(.17,.13),se.spot2=new go.Spot(.82,.82),se}),go.Shape.defineFigureGenerator("Decagon",function(Me,te,ne){var ce=gt(10),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var ve=1;ve<10;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[ve].x*te,ce[ve].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,ce[0].x*te,ce[0].y*ne).close()),qe(ce),se.spot1=new go.Spot(.16,.16),se.spot2=new go.Spot(.84,.84),se}),go.Shape.defineFigureGenerator("Dodecagon",function(Me,te,ne){var ce=gt(12),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var ve=1;ve<12;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[ve].x*te,ce[ve].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,ce[0].x*te,ce[0].y*ne).close()),qe(ce),se.spot1=new go.Spot(.16,.16),se.spot2=new go.Spot(.84,.84),se}),go.Shape.defineFigureGenerator("FivePointedStar",function(Me,te,ne){var ce=Ct(5),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var ve=1;ve<10;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[ve].x*te,ce[ve].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,ce[0].x*te,ce[0].y*ne).close()),qe(ce),se.spot1=new go.Spot(.266,.333),se.spot2=new go.Spot(.733,.733),se}),go.Shape.defineFigureGenerator("SixPointedStar",function(Me,te,ne){var ce=Ct(6),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var ve=1;ve<12;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[ve].x*te,ce[ve].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,ce[0].x*te,ce[0].y*ne).close()),qe(ce),se.spot1=new go.Spot(.17,.25),se.spot2=new go.Spot(.83,.75),se}),go.Shape.defineFigureGenerator("SevenPointedStar",function(Me,te,ne){var ce=Ct(7),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var ve=1;ve<14;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[ve].x*te,ce[ve].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,ce[0].x*te,ce[0].y*ne).close()),qe(ce),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.666),se}),go.Shape.defineFigureGenerator("EightPointedStar",function(Me,te,ne){var ce=Ct(8),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var ve=1;ve<16;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[ve].x*te,ce[ve].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,ce[0].x*te,ce[0].y*ne).close()),qe(ce),se.spot1=new go.Spot(.25,.25),se.spot2=new go.Spot(.75,.75),se}),go.Shape.defineFigureGenerator("NinePointedStar",function(Me,te,ne){var ce=Ct(9),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var ve=1;ve<18;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[ve].x*te,ce[ve].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,ce[0].x*te,ce[0].y*ne).close()),qe(ce),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.666),se}),go.Shape.defineFigureGenerator("TenPointedStar",function(Me,te,ne){var ce=Ct(10),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var ve=1;ve<20;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[ve].x*te,ce[ve].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,ce[0].x*te,ce[0].y*ne).close()),qe(ce),se.spot1=new go.Spot(.281,.261),se.spot2=new go.Spot(.723,.748),se}),go.Shape.defineFigureGenerator("FivePointedBurst",function(Me,te,ne){var ce=dt(5),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var ve=1;ve<ce.length;ve+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,ce[ve+2].x*te,ce[ve+2].y*ne,ce[ve].x*te,ce[ve].y*ne,ce[ve+1].x*te,ce[ve+1].y*ne));return ge.segments.last().close(),qe(ce),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("SixPointedBurst",function(Me,te,ne){var ce=dt(6),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var ve=1;ve<ce.length;ve+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,ce[ve+2].x*te,ce[ve+2].y*ne,ce[ve].x*te,ce[ve].y*ne,ce[ve+1].x*te,ce[ve+1].y*ne));return ge.segments.last().close(),qe(ce),se.spot1=new go.Spot(.17,.222),se.spot2=new go.Spot(.833,.777),se}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(Me,te,ne){var ce=dt(7),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var ve=1;ve<ce.length;ve+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,ce[ve+2].x*te,ce[ve+2].y*ne,ce[ve].x*te,ce[ve].y*ne,ce[ve+1].x*te,ce[ve+1].y*ne));return ge.segments.last().close(),qe(ce),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("EightPointedBurst",function(Me,te,ne){var ce=dt(8),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var ve=1;ve<ce.length;ve+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,ce[ve+2].x*te,ce[ve+2].y*ne,ce[ve].x*te,ce[ve].y*ne,ce[ve+1].x*te,ce[ve+1].y*ne));return ge.segments.last().close(),qe(ce),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("NinePointedBurst",function(Me,te,ne){var ce=dt(9),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var ve=1;ve<ce.length;ve+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,ce[ve+2].x*te,ce[ve+2].y*ne,ce[ve].x*te,ce[ve].y*ne,ce[ve+1].x*te,ce[ve+1].y*ne));return ge.segments.last().close(),qe(ce),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("TenPointedBurst",function(Me,te,ne){var ce=dt(10),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var ve=1;ve<ce.length;ve+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,ce[ve+2].x*te,ce[ve+2].y*ne,ce[ve].x*te,ce[ve].y*ne,ce[ve+1].x*te,ce[ve+1].y*ne));return ge.segments.last().close(),qe(ce),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.setFigureParameter("FramedRectangle",0,new In("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new In("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(Me,te,ne){var ce=Me?Me.parameter1:NaN,se=Me?Me.parameter2:NaN;isNaN(ce)&&(ce=8),isNaN(se)&&(se=8);var ge=new go.Geometry,ve=new go.PathFigure(0,0,!0);return ge.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,0)),ve.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ce<te/2&&se<ne/2&&(ve.add(new go.PathSegment(go.PathSegment.Move,ce,se)),ve.add(new go.PathSegment(go.PathSegment.Line,ce,ne-se)),ve.add(new go.PathSegment(go.PathSegment.Line,te-ce,ne-se)),ve.add(new go.PathSegment(go.PathSegment.Line,te-ce,se).close())),ge.setSpots(0,0,1,1,ce,se,-ce,-se),ge}),go.Shape.setFigureParameter("Ring",0,new In("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;(isNaN(ce)||ce<0)&&(ce=8);var se=te/2,ge=new go.Geometry,ve=new go.PathFigure(te,te/2,!0);ge.add(ve),ve.add(new go.PathSegment(go.PathSegment.Arc,0,360,se,se,se,se).close());var Ce=Math.max(se-ce,0);return Ce>0&&(ve.add(new go.PathSegment(go.PathSegment.Move,te/2+Ce,te/2)),ve.add(new go.PathSegment(go.PathSegment.Arc,0,-360,se,se,Ce,Ce).close())),ge.spot1=Qe,ge.spot2=vt,ge.defaultStretch=go.GraphObject.Uniform,ge}),go.Shape.defineFigureGenerator("Cloud",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(.08034461*te,.1944299*ne,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*te,.05349299*ne,-.09239631*te,.07836421*ne,.1406031*te,-.0542823*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*te,.074219*ne,.2450511*te,-.00697547*ne,.3776197*te,-.01112067*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*te,.07004196*ne,.4539471*te,0,.6066018*te,-.02526587*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*te,.08370865*ne,.6914277*te,-.01904177*ne,.8921095*te,-.01220843*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*te,.3194596*ne,1.036446*te,.04105738*ne,1.020377*te,.3022052*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*te,.562044*ne,1.04448*te,.360238*ne,.992256*te,.5219009*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*te,.8217117*ne,1.032337*te,.5771781*ne,1.018411*te,.8120651*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*te,.9156953*ne,1.028411*te,.9571472*ne,.8556702*te,1.052487*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*te,.9310455*ne,.7431877*te,1.009325*ne,.5624123*te,1.021761*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*te,.9344623*ne,.4820677*te,1.031761*ne,.3030112*te,1.002796*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*te,.870098*ne,.2329994*te,1.01518*ne,.03213784*te,1.01518*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*te,.6545475*ne,-.02812061*te,.9032597*ne,-.01205169*te,.6835638*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*te,.4265613*ne,-.01812061*te,.6089503*ne,-.00606892*te,.4555777*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*te,.1944299*ne,-.01606892*te,.3892545*ne,-.01205169*te,.1944299*ne))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(Me,te,ne){var ce=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(ce*te,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-ce)*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ce*ne)).add(new go.PathSegment(go.PathSegment.Line,te,(1-ce)*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-ce)*te,ne)).add(new go.PathSegment(go.PathSegment.Line,ce*te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,(1-ce)*ne)).add(new go.PathSegment(go.PathSegment.Line,0,ce*ne).close())).setSpots(ce/2,ce/2,1-ce/2,1-ce/2)}),go.Shape.setFigureParameter("Pie",0,new In("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new In("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Me,te,ne){var ce=Me?Me.parameter1:NaN,se=Me?Me.parameter2:NaN;isNaN(ce)&&(ce=0),isNaN(se)&&(se=315);var ge=ce%360;ge<0&&(ge+=360);var ve=se%360,Ce=Math.min(te,ne)/2;return new go.Geometry().add(new go.PathFigure(Ce,Ce).add(new go.PathSegment(go.PathSegment.Arc,ge,ve,Ce,Ce,Ce,Ce).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Me,te,ne){var ce=Ne/Math.SQRT2*.5,se=Math.SQRT2/2,ge=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(te,ne,!0).add(new go.PathSegment(go.PathSegment.Bezier,se*te,ge*ne,te,(1-ce)*ne,(se+ce)*te,(ge+ce)*ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close()))}),go.Shape.setFigureParameter("ThickCross",0,new In("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;(isNaN(ce)||ce<0)&&(ce=30);var se=Math.min(ce,te)/2,ge=te/2,ve=ne/2;return new go.Geometry().add(new go.PathFigure(ge-se,0,!0).add(new go.PathSegment(go.PathSegment.Line,ge+se,0)).add(new go.PathSegment(go.PathSegment.Line,ge+se,ve-se)).add(new go.PathSegment(go.PathSegment.Line,te,ve-se)).add(new go.PathSegment(go.PathSegment.Line,te,ve+se)).add(new go.PathSegment(go.PathSegment.Line,ge+se,ve+se)).add(new go.PathSegment(go.PathSegment.Line,ge+se,ne)).add(new go.PathSegment(go.PathSegment.Line,ge-se,ne)).add(new go.PathSegment(go.PathSegment.Line,ge-se,ve+se)).add(new go.PathSegment(go.PathSegment.Line,0,ve+se)).add(new go.PathSegment(go.PathSegment.Line,0,ve-se)).add(new go.PathSegment(go.PathSegment.Line,ge-se,ve-se).close()))}),go.Shape.setFigureParameter("ThinCross",0,new In("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;(isNaN(ce)||ce<0)&&(ce=10);var se=Math.min(ce,te)/2,ge=te/2,ve=ne/2;return new go.Geometry().add(new go.PathFigure(ge-se,0,!0).add(new go.PathSegment(go.PathSegment.Line,ge+se,0)).add(new go.PathSegment(go.PathSegment.Line,ge+se,ve-se)).add(new go.PathSegment(go.PathSegment.Line,te,ve-se)).add(new go.PathSegment(go.PathSegment.Line,te,ve+se)).add(new go.PathSegment(go.PathSegment.Line,ge+se,ve+se)).add(new go.PathSegment(go.PathSegment.Line,ge+se,ne)).add(new go.PathSegment(go.PathSegment.Line,ge-se,ne)).add(new go.PathSegment(go.PathSegment.Line,ge-se,ve+se)).add(new go.PathSegment(go.PathSegment.Line,0,ve+se)).add(new go.PathSegment(go.PathSegment.Line,0,ve-se)).add(new go.PathSegment(go.PathSegment.Line,ge-se,ve-se).close()))}),go.Shape.setFigureParameter("ThickX",0,new In("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;if((isNaN(ce)||ce<0)&&(ce=30),te===0||ne===0){var se=new go.Geometry(go.Geometry.Rectangle);return se.startX=0,se.startY=0,se.endX=te,se.endY=ne,se}else{var ge=te/2,ve=ne/2,Ce=Math.atan2(ne,te),ke=ce-Math.min(Math.cos(Ce)*ce/2,ge),Pe=ce-Math.min(Math.sin(Ce)*ce/2,ve),se=new go.Geometry,Te=new go.PathFigure(ke,0,!0);return se.add(Te),Te.add(new go.PathSegment(go.PathSegment.Line,ge,.2*ne)),Te.add(new go.PathSegment(go.PathSegment.Line,te-ke,0)),Te.add(new go.PathSegment(go.PathSegment.Line,te,Pe)),Te.add(new go.PathSegment(go.PathSegment.Line,.8*te,ve)),Te.add(new go.PathSegment(go.PathSegment.Line,te,ne-Pe)),Te.add(new go.PathSegment(go.PathSegment.Line,te-ke,ne)),Te.add(new go.PathSegment(go.PathSegment.Line,ge,.8*ne)),Te.add(new go.PathSegment(go.PathSegment.Line,ke,ne)),Te.add(new go.PathSegment(go.PathSegment.Line,0,ne-Pe)),Te.add(new go.PathSegment(go.PathSegment.Line,.2*te,ve)),Te.add(new go.PathSegment(go.PathSegment.Line,0,Pe).close()),se}}),go.Shape.setFigureParameter("ThinX",0,new In("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;(isNaN(ce)||ce<0)&&(ce=10);var se=new go.Geometry,ge=new go.PathFigure(.1*te,0,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.1*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.1*te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.9*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne).close()),se}),go.Shape.setFigureParameter("SquareIBeam",0,new In("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)&&(ce=.2);var se=new go.Geometry,ge=new go.PathFigure(0,0,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ce*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5+ce/2)*te,ce*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5+ce/2)*te,(1-ce)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,(1-ce)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,(1-ce)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5-ce/2)*te,(1-ce)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5-ce/2)*te,ce*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ce*ne).close()),se}),go.Shape.setFigureParameter("RoundedIBeam",0,new In("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)&&(ce=.5);var se=new go.Geometry,ge=new go.PathFigure(0,0,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te,ne,Math.abs(1-ce)*te,.25*ne,Math.abs(1-ce)*te,.75*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ce*te,.75*ne,ce*te,.25*ne).close()),se}),go.Shape.defineFigureGenerator("HalfEllipse",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,Ne*te,0,te,(.5-Ne/2)*ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,te,(.5+Ne/2)*ne,Ne*te,ne).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,te,0,te,ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*te,.75*ne,.5*te,.25*ne).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(.5*te,ne,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ne,.1*te,.8*ne,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ne,0,0,.45*te,0)).add(new go.PathSegment(go.PathSegment.Bezier,te,.3*ne,.55*te,0,te,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,.5*ne,.9*te,.8*ne).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(.5*te,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*te,.01*ne)).add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,.6*te,.2*ne,te,.25*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.7*ne,te,.8*ne,.6*te,.8*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ne,.5*te,.75*ne,.55*te,.95*ne)).add(new go.PathSegment(go.PathSegment.Line,.25*te,ne)).add(new go.PathSegment(go.PathSegment.Bezier,.45*te,.7*ne,.45*te,.95*ne,.5*te,.75*ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,.4*te,.8*ne,0,.8*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.49*te,.01*ne,0,.25*ne,.4*te,.2*ne).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.4*te,.6*ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.15*te,ne,.5*te,.75*ne,.45*te,.95*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.85*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.6*te,.6*ne,.55*te,.95*ne,.5*te,.75*ne));var ge=.2,ve=.3,Ce=0,ke=ge*Ne;return se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ve)*te,(.5+ge+Ce)*ne,(.5-ge+ve)*te,(.5+ke+Ce)*ne,(.5-ke+ve)*te,(.5+ge+Ce)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ge+ve)*te,(.5+Ce)*ne,(.5+ke+ve)*te,(.5+ge+Ce)*ne,(.5+ge+ve)*te,(.5+ke+Ce)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ve)*te,(.5-ge+Ce)*ne,(1-.5+ge+ve)*te,(.5-ke+Ce)*ne,(.5+ke+ve)*te,(.5-ge+Ce)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.65*te,.36771243*ne,(.5-ke+ve)*te,(.5-ge+Ce)*ne,(.5-ge+ve+.05)*te,(.5-ke+Ce-.02)*ne)),ge=.2,ve=0,Ce=-.3,ke=ge*Ne,se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ge+ve)*te,(.5+Ce)*ne,(.5+ke+ve)*te,(.5+ge+Ce)*ne,(.5+ge+ve)*te,(.5+ke+Ce)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ve)*te,(.5-ge+Ce)*ne,(1-.5+ge+ve)*te,(.5-ke+Ce)*ne,(.5+ke+ve)*te,(.5-ge+Ce)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ge+ve)*te,(.5+Ce)*ne,(.5-ke+ve)*te,(.5-ge+Ce)*ne,(.5-ge+ve)*te,(.5-ke+Ce)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ke+ve)*te,(.5+ge+Ce)*ne,(.5-ge+ve)*te,(.5+ke+Ce)*ne,(.5-ke+ve)*te,(.5+ge+Ce)*ne)),ge=.2,ve=-.3,Ce=0,ke=ge*Ne,se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ve)*te,(.5-ge+Ce)*ne,(1-.5+ge+ve-.05)*te,(.5-ke+Ce-.02)*ne,(.5+ke+ve)*te,(.5-ge+Ce)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ge+ve)*te,(.5+Ce)*ne,(.5-ke+ve)*te,(.5-ge+Ce)*ne,(.5-ge+ve)*te,(.5-ke+Ce)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ve)*te,(.5+ge+Ce)*ne,(.5-ge+ve)*te,(.5+ke+Ce)*ne,(.5-ke+ve)*te,(.5+ge+Ce)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,.6*ne,(.5+ke+ve)*te,(.5+ge+Ce)*ne,(.5+ge+ve)*te,(.5+ke+Ce)*ne).close()),ce.setSpots(.06,.33,.93,.68),ce}),go.Shape.defineFigureGenerator("YinYang",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(te*.5,0,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,te*.5,te*.5,te*.5,te*.5)),se.add(new go.PathSegment(go.PathSegment.Arc,90,-180,te*.5,te*.75,te*.25,te*.25)),se.add(new go.PathSegment(go.PathSegment.Arc,90,180,te*.5,te*.25,te*.25,te*.25));var ge=.1,ve=.5,Ce=.25;return se.add(new go.PathSegment(go.PathSegment.Move,(ve+ge)*te,Ce*ne)),se.add(new go.PathSegment(go.PathSegment.Arc,0,-360,te*ve,ne*Ce,ge*te,ge*te).close()),se=new go.PathFigure(te*.5,0,!1),ce.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,-180,te*.5,te*.5,te*.5,te*.5)),Ce=.75,se=new go.PathFigure((ve+ge)*te,Ce*ne,!0),ce.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,0,360,te*ve,ne*Ce,ge*te,ge*te).close()),ce.defaultStretch=go.GraphObject.Uniform,ce}),go.Shape.defineFigureGenerator("Peace",function(Me,te,ne){var ce=.8535533905932737,se=.5*te,ge=.5*ne;return new go.Geometry().add(new go.PathFigure(se,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,se,ge,se,ge)).add(new go.PathSegment(go.PathSegment.Line,se,ne)).add(new go.PathSegment(go.PathSegment.Move,se,ge)).add(new go.PathSegment(go.PathSegment.Line,(1-ce)*te,ce*ne)).add(new go.PathSegment(go.PathSegment.Move,se,ge)).add(new go.PathSegment(go.PathSegment.Line,ce*te,ce*ne)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Me,te,ne){var ce=new go.Geometry,se=Ne*.5,ge=.5,ve=.5,Ce=.5,ke=new go.PathFigure(ve*te,(Ce-ge)*ne);ce.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ge)*te,Ce*ne,(ve-se)*te,(Ce-ge)*ne,(ve-ge)*te,(Ce-se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ce+ge)*ne,(ve-ge)*te,(Ce+se)*ne,(ve-se)*te,(Ce+ge)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge)*te,Ce*ne,(ve+se)*te,(Ce+ge)*ne,(ve+ge)*te,(Ce+se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ce-ge)*ne,(ve+ge)*te,(Ce-se)*ne,(ve+se)*te,(Ce-ge)*ne)),ge=.4,se=Ne*.4;var Pe=xe(),Te=xe(),Ke=xe(),et=xe();It(ve,Ce-ge,ve+se,Ce-ge,ve+ge,Ce-se,ve+ge,Ce,.42,Pe,Te,Ke,et,et);var Xe=xe(),ft=xe(),Ge=xe();It(ve,Ce-ge,ve+se,Ce-ge,ve+ge,Ce-se,ve+ge,Ce,.58,et,et,Ge,Xe,ft);var kt=xe(),$e=xe(),zt=xe();It(ve,Ce+ge,ve-se,Ce+ge,ve-ge,Ce+se,ve-ge,Ce,.42,kt,$e,zt,et,et);var Ht=xe(),Yt=xe(),Bt=xe();return It(ve,Ce+ge,ve-se,Ce+ge,ve-ge,Ce+se,ve-ge,Ce,.58,et,et,Bt,Ht,Yt),ke.add(new go.PathSegment(go.PathSegment.Move,Bt.x*te,Bt.y*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ge)*te,Ce*ne,Ht.x*te,Ht.y*ne,Yt.x*te,Yt.y*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ce-ge)*ne,(ve-ge)*te,(Ce-se)*ne,(ve-se)*te,(Ce-ge)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,Ke.x*te,Ke.y*ne,Pe.x*te,Pe.y*ne,Te.x*te,Te.y*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,Bt.x*te,Bt.y*ne).close()),ke.add(new go.PathSegment(go.PathSegment.Move,zt.x*te,zt.y*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,Ge.x*te,Ge.y*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge)*te,Ce*ne,Xe.x*te,Xe.y*ne,ft.x*te,ft.y*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ce+ge)*ne,(ve+ge)*te,(Ce+se)*ne,(ve+se)*te,(Ce+ge)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,zt.x*te,zt.y*ne,kt.x*te,kt.y*ne,$e.x*te,$e.y*ne).close()),Ie(Pe),Ie(Te),Ie(Ke),Ie(et),Ie(Xe),Ie(ft),Ie(Ge),Ie(kt),Ie($e),Ie(zt),Ie(Ht),Ie(Yt),Ie(Bt),ce.defaultStretch=go.GraphObject.Uniform,ce}),go.Shape.defineFigureGenerator("Fragile",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*te,0)).add(new go.PathSegment(go.PathSegment.Line,.2*te,.15*ne)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.25*ne)).add(new go.PathSegment(go.PathSegment.Line,.29*te,.33*ne)).add(new go.PathSegment(go.PathSegment.Line,.35*te,.25*ne)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.15*ne)).add(new go.PathSegment(go.PathSegment.Line,.4*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.5*ne,te,.25*ne,.75*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.55*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.3*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.45*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.45*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.5*ne,0,.25*ne).close()))}),go.Shape.setFigureParameter("HourGlass",0,new In("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;(isNaN(ce)||ce<0)&&(ce=30),ce>te&&(ce=te);var se=(te-ce)/2,ge=se+ce;return new go.Geometry().add(new go.PathFigure(ge,.5*ne).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne)).add(new go.PathSegment(go.PathSegment.Line,se,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,te,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,.55*ne).add(new go.PathSegment(go.PathSegment.Line,.6*te,0)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.45*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.45*ne)).add(new go.PathSegment(go.PathSegment.Line,.4*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.55*ne).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(Me,te,ne){var ce=new go.Geometry,se=Ne*.4,ge=.4,ve=.5,Ce=.5,ke=xe(),Pe=xe(),Te=xe(),Ke=xe(),et=new go.PathFigure((ve-ge)*te,Ce*ne,!1);ce.add(et),et.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ce-ge)*ne,(ve-ge)*te,(Ce-se)*ne,(ve-se)*te,(Ce-ge)*ne)),It(ve,Ce-ge,ve+se,Ce-ge,ve+ge,Ce-se,ve+ge,Ce,.44,Te,Ke,Pe,ke,ke),et.add(new go.PathSegment(go.PathSegment.Bezier,Pe.x*te,Pe.y*ne,Te.x*te,Te.y*ne,Ke.x*te,Ke.y*ne));var Xe=ye(Pe.x,Pe.y);It(ve,Ce-ge,ve+se,Ce-ge,ve+ge,Ce-se,ve+ge,Ce,.56,ke,ke,Pe,Te,Ke);var ft=ye(Pe.x,Pe.y);et.add(new go.PathSegment(go.PathSegment.Line,(Xe.x*.1+.95*.9)*te,Xe.y*.1*ne)),et.add(new go.PathSegment(go.PathSegment.Line,.85*te,Xe.y*.1*ne)),et.add(new go.PathSegment(go.PathSegment.Line,.85*te,0)),et.add(new go.PathSegment(go.PathSegment.Line,te,0)),et.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),et.add(new go.PathSegment(go.PathSegment.Line,(ft.x*.1+.9)*te,.15*ne)),et.add(new go.PathSegment(go.PathSegment.Line,(ft.x*.1+.9)*te,(ft.y*.1+.05*.9)*ne)),et.add(new go.PathSegment(go.PathSegment.Line,ft.x*te,ft.y*ne)),et.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge)*te,Ce*ne,Te.x*te,Te.y*ne,Ke.x*te,Ke.y*ne)),et.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ce+ge)*ne,(ve+ge)*te,(Ce+se)*ne,(ve+se)*te,(Ce+ge)*ne)),et.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ge)*te,Ce*ne,(ve-se)*te,(Ce+ge)*ne,(ve-ge)*te,(Ce+se)*ne)),ge=.35,se=Ne*.35;var Ge=new go.PathFigure(ve*te,(Ce-ge)*ne,!1);ce.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ge)*te,Ce*ne,(ve-se)*te,(Ce-ge)*ne,(ve-ge)*te,(Ce-se)*ne)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ce+ge)*ne,(ve-ge)*te,(Ce+se)*ne,(ve-se)*te,(Ce+ge)*ne)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge)*te,Ce*ne,(ve+se)*te,(Ce+ge)*ne,(ve+ge)*te,(Ce+se)*ne)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ce-ge)*ne,(ve+ge)*te,(Ce-se)*ne,(ve+se)*te,(Ce-ge)*ne));var kt=new go.PathFigure((ve-ge)*te,Ce*ne,!1);return ce.add(kt),Ie(ke),Ie(Pe),Ie(Te),Ie(Ke),Ie(Xe),Ie(ft),ce.spot1=new go.Spot(.202,.257),ce.spot2=new go.Spot(.792,.739),ce.defaultStretch=go.GraphObject.Uniform,ce}),go.Shape.defineFigureGenerator("GenderFemale",function(Me,te,ne){var ce=new go.Geometry,se=.375,ge=0,ve=-.125,Ce=se*Ne,ke=new go.PathFigure((.525+ge)*te,(.5+se+ve)*ne,!1);ce.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+se+ge)*te,(.5+ve)*ne,(.5+Ce+ge)*te,(.5+se+ve)*ne,(.5+se+ge)*te,(.5+Ce+ve)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ge)*te,(.5-se+ve)*ne,(1-.5+se+ge)*te,(.5-Ce+ve)*ne,(.5+Ce+ge)*te,(.5-se+ve)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+ge)*te,(.5+ve)*ne,(.5-Ce+ge)*te,(.5-se+ve)*ne,(.5-se+ge)*te,(.5-Ce+ve)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(.475+ge)*te,(.5+se+ve)*ne,(.5-se+ge)*te,(.5+Ce+ve)*ne,(.5-Ce+ge)*te,(.5+se+ve)*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.475*te,.85*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.425*te,.85*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.425*te,.9*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.475*te,.9*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.475*te,ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.525*te,ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.525*te,.9*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.575*te,.9*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.575*te,.85*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.525*te,.85*ne).close()),se=.325,ge=0,ve=-.125,Ce=se*Ne;var ke=new go.PathFigure((1-.5+se+ge)*te,(.5+ve)*ne,!1);ce.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ge)*te,(.5+se+ve)*ne,(.5+se+ge)*te,(.5+Ce+ve)*ne,(.5+Ce+ge)*te,(.5+se+ve)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+ge)*te,(.5+ve)*ne,(.5-Ce+ge)*te,(.5+se+ve)*ne,(.5-se+ge)*te,(.5+Ce+ve)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ge)*te,(.5-se+ve)*ne,(.5-se+ge)*te,(.5-Ce+ve)*ne,(.5-Ce+ge)*te,(.5-se+ve)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+se+ge)*te,(.5+ve)*ne,(.5+Ce+ge)*te,(.5-se+ve)*ne,(1-.5+se+ge)*te,(.5-Ce+ve)*ne));var ke=new go.PathFigure((.525+ge)*te,(.5+se+ve)*ne,!1);return ce.add(ke),ce.spot1=new go.Spot(.232,.136),ce.spot2=new go.Spot(.682,.611),ce.defaultStretch=go.GraphObject.Uniform,ce}),go.Shape.defineFigureGenerator("LogicImplies",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;return isNaN(ce)&&(ce=.2),new go.Geometry().add(new go.PathFigure((1-ce)*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-ce)*te,ne)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;return isNaN(ce)&&(ce=.2),new go.Geometry().add(new go.PathFigure((1-ce)*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-ce)*te,ne)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Move,ce*te,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,ce*te,ne))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)))}),go.Shape.defineFigureGenerator("LogicAnd",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,ne,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Line,te,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(Me,te,ne){var ce=new go.Geometry().add(new go.PathFigure(.5*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*te,.5*ne,.5*te,.5*ne)));return ce.defaultStretch=go.GraphObject.Uniform,ce}),go.Shape.defineFigureGenerator("LogicTruth",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,.5*te,0)).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,ne,!1).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Move,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Move,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne)))}),go.Shape.defineFigureGenerator("LogicForAll",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,.25*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ne))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Move,0,ne)).add(new go.PathSegment(go.PathSegment.Line,te,ne))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(Me,te,ne){var ce=.5;return new go.Geometry().add(new go.PathFigure(0,ne,!1).add(new go.PathSegment(go.PathSegment.Line,0,ce*ne)).add(new go.PathSegment(go.PathSegment.Arc,180,180,ce*te,ce*ne,ce*te,ce*ne)).add(new go.PathSegment(go.PathSegment.Line,te,ne))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(Me,te,ne){var ce=.5;return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,ce*ne)).add(new go.PathSegment(go.PathSegment.Arc,0,180,ce*te,ce*ne,ce*te,ce*ne)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new In("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new In("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)&&(ce=.3);var se=Me?Me.parameter2:NaN;isNaN(se)&&(se=.3);var ge=(1-ce)*te,ve=(.5-se/2)*ne,Ce=(.5+se/2)*ne,ke=new go.Geometry,Pe=new go.PathFigure(0,ve,!0);ke.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,ge,ve)),Pe.add(new go.PathSegment(go.PathSegment.Line,ge,0)),Pe.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,ge,ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,ge,Ce)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,Ce).close()),ke.spot1=new go.Spot(0,ve/ne);var Te=We(0,Ce/ne,1,Ce/ne,ge/te,1,1,.5,xe());return ke.spot2=new go.Spot(Te.x,Te.y),Ie(Te),ke}),go.Shape.setFigureParameter("Arrow2",0,new In("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new In("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)&&(ce=30),ce>te&&(ce=te);var se=Me?Me.parameter2:NaN;isNaN(se)&&(se=30),se=Math.min(se,ne/2);var ge=te-ce,ve=(ne-se)/2,Ce=ve+se,ke=new go.Geometry,Pe=new go.PathFigure(0,ve,!0);ke.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,ge,ve)),Pe.add(new go.PathSegment(go.PathSegment.Line,ge,0)),Pe.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,ge,ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,ge,Ce)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,Ce).close()),ke.spot1=new go.Spot(0,ve/ne);var Te=We(0,Ce/ne,1,Ce/ne,ge/te,1,1,.5,xe());return ke.spot2=new go.Spot(Te.x,Te.y),Ie(Te),ke}),go.Shape.defineFigureGenerator("Chevron",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne).close()),ce}),go.Shape.defineFigureGenerator("DoubleArrow",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,.214*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,1*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,.786*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,1*ne).close()),ce}),go.Shape.setFigureParameter("DoubleEndArrow",0,new In("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)&&(ce=.3);var se=(.5-ce/2)*ne,ge=(.5+ce/2)*ne,ve=new go.Geometry,Ce=new go.PathFigure(te,.5*ne,!0);ve.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),Ce.add(new go.PathSegment(go.PathSegment.Line,.3*te,ge)),Ce.add(new go.PathSegment(go.PathSegment.Line,.3*te,ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),Ce.add(new go.PathSegment(go.PathSegment.Line,.3*te,se)),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close());var ke=We(0,.5,.3,0,0,se/ne,.1,se/ne,xe());return ve.spot1=new go.Spot(ke.x,ke.y),ke=We(.7,1,1,.5,0,ge/ne,1,ge/ne,ke),ve.spot2=new go.Spot(ke.x,ke.y),Ie(ke),ve}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new In("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new In("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)&&(ce=40);var se=Me?Me.parameter2:NaN;isNaN(se)&&(se=100);var ge=(ne-ce)/2,ve=ge+ce,Ce=(ne-se)/2,ke=Ce+se;(ce>ne||se>ne)&&(se>ce?(ce=ce*ne/se,ge=(ne-ce)/2,ve=ge+ce,Ce=0,ke=ne):(ge=0,ve=ne,Ce=0,ke=ne));var Pe=new go.Geometry,Te=new go.PathFigure(te,.5*ne,!0);Pe.add(Te),Te.add(new go.PathSegment(go.PathSegment.Line,.7*te,ke)),Te.add(new go.PathSegment(go.PathSegment.Line,.7*te,ve)),Te.add(new go.PathSegment(go.PathSegment.Line,.3*te,ve)),Te.add(new go.PathSegment(go.PathSegment.Line,.3*te,ke)),Te.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),Te.add(new go.PathSegment(go.PathSegment.Line,.3*te,Ce)),Te.add(new go.PathSegment(go.PathSegment.Line,.3*te,ge)),Te.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),Te.add(new go.PathSegment(go.PathSegment.Line,.7*te,Ce).close());var Ke=We(0,.5,.3,Ce/ne,0,ge/ne,1,ge/ne,xe());return Pe.spot1=new go.Spot(Ke.x,Ke.y),Ke=We(.7,ke/ne,1,.5,0,ve/ne,1,ve/ne,Ke),Pe.spot2=new go.Spot(Ke.x,Ke.y),Ie(Ke),Pe}),go.Shape.setFigureParameter("IBeamArrow",0,new In("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)&&(ce=.3);var se=(.5-ce/2)*ne,ge=(.5+ce/2)*ne,ve=new go.Geometry,Ce=new go.PathFigure(te,.5*ne,!0);ve.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),Ce.add(new go.PathSegment(go.PathSegment.Line,.2*te,ge)),Ce.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ce.add(new go.PathSegment(go.PathSegment.Line,.2*te,0)),Ce.add(new go.PathSegment(go.PathSegment.Line,.2*te,se)),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),ve.spot1=new go.Spot(0,se/ne);var ke=We(.7,1,1,.5,0,ge/ne,1,ge/ne,xe());return ve.spot2=new go.Spot(ke.x,ke.y),Ie(ke),ve}),go.Shape.setFigureParameter("IBeamArrow2",0,new In("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new In("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)&&(ce=40);var se=Me?Me.parameter2:NaN;isNaN(se)&&(se=100);var ge=(ne-ce)/2,ve=ge+ce,Ce=(ne-se)/2,ke=Ce+se;(ce>ne||se>ne)&&(se>ce?(ce=ce*ne/se,ge=(ne-ce)/2,ve=ge+ce,Ce=0,ke=ne):(ge=0,ve=ne,Ce=0,ke=ne));var Pe=new go.Geometry,Te=new go.PathFigure(te,.5*ne,!0);Pe.add(Te),Te.add(new go.PathSegment(go.PathSegment.Line,.7*te,ke)),Te.add(new go.PathSegment(go.PathSegment.Line,.7*te,ve)),Te.add(new go.PathSegment(go.PathSegment.Line,.2*te,ve)),Te.add(new go.PathSegment(go.PathSegment.Line,.2*te,ke)),Te.add(new go.PathSegment(go.PathSegment.Line,0,ke)),Te.add(new go.PathSegment(go.PathSegment.Line,0,Ce)),Te.add(new go.PathSegment(go.PathSegment.Line,.2*te,Ce)),Te.add(new go.PathSegment(go.PathSegment.Line,.2*te,ge)),Te.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),Te.add(new go.PathSegment(go.PathSegment.Line,.7*te,Ce).close()),Pe.spot1=new go.Spot(0,ge/ne);var Ke=We(.7,ke/ne,1,.5,0,ve/ne,1,ve/ne,xe());return Pe.spot2=new go.Spot(Ke.x,Ke.y),Ie(Ke),Pe}),go.Shape.setFigureParameter("Pointer",0,new In("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)&&(ce=.1);var se=new go.Geometry,ge=new go.PathFigure(te,.5*ne,!0);se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,ce*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),se.spot1=new go.Spot(ce,.35);var ve=We(.2,.65,1,.65,0,1,1,.5,xe());return se.spot2=new go.Spot(ve.x,ve.y),Ie(ve),se}),go.Shape.setFigureParameter("RoundedPointer",0,new In("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)&&(ce=.3);var se=new go.Geometry,ge=new go.PathFigure(te,.5*ne,!0);se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ce*te,.75*ne,ce*te,.25*ne).close()),se.spot1=new go.Spot(ce,.35);var ve=We(0,.65,1,.65,0,1,1,.5,xe());return se.spot2=new go.Spot(ve.x,ve.y),Ie(ve),se}),go.Shape.setFigureParameter("SplitEndArrow",0,new In("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)&&(ce=.4);var se=(.5-ce/2)*ne,ge=(.5+ce/2)*ne,ve=new go.Geometry,Ce=new go.PathFigure(te,.5*ne,!0);ve.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,ge)),Ce.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,se)),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),ve.spot1=new go.Spot(.2,.3);var ke=We(.7,1,1,.5,0,ge/ne,1,ge/ne,xe());return ve.spot2=new go.Spot(ke.x,ke.y),Ie(ke),ve}),go.Shape.setFigureParameter("SplitEndArrow2",0,new In("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)&&(ce=50);var se=(ne-ce)/2,ge=se+ce;ce>ne&&(se=0,ge=ne);var ve=new go.Geometry,Ce=new go.PathFigure(te,.5*ne,!0);ve.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,ge)),Ce.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,se)),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),ve.spot1=new go.Spot(.2,se/ne);var ke=We(.7,1,1,.5,0,ge/ne,1,ge/ne,xe());return ve.spot2=new go.Spot(ke.x,ke.y),Ie(ke),ve}),go.Shape.setFigureParameter("SquareArrow",0,new In("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)&&(ce=.7);var se=new go.Geometry,ge=new go.PathFigure(te,.5*ne,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ce*te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ce*te,0).close()),se.spot1=go.Spot.TopLeft,se.spot2=new go.Spot(ce,1),se}),go.Shape.defineFigureGenerator("Cone1",function(Me,te,ne){var ce=new go.Geometry,se=Ne*.5,ge=Ne*.1,ve=new go.PathFigure(0,.9*ne,!0);return ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),ve.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.9+ge)*ne,(.5+se)*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,(.5-se)*te,ne,0,(.9+ge)*ne).close()),ce.spot1=new go.Spot(.25,.5),ce.spot2=new go.Spot(.75,.97),ce}),go.Shape.defineFigureGenerator("Cone2",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,.9*ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.9*ne,(1-.85/.9)*te,ne,.85/.9*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.9*ne).close());var ge=new go.PathFigure(0,.9*ne,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te,.9*ne,(1-.85/.9)*te,.8*ne,.85/.9*te,.8*ne)),ce.spot1=new go.Spot(.25,.5),ce.spot2=new go.Spot(.75,.82),ce}),go.Shape.defineFigureGenerator("Cube1",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.5*te,ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.15*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.85*ne).close());var ge=new go.PathFigure(.5*te,ne,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.3*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.15*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.5*te,.3*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),ce.spot1=new go.Spot(0,.3),ce.spot2=new go.Spot(.5,.85),ce}),go.Shape.defineFigureGenerator("Cube2",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,.3*ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,0).close());var ge=new go.PathFigure(0,.3*ne,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*te,.3*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Move,.7*te,.3*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),ce.spot1=new go.Spot(0,.3),ce.spot2=new go.Spot(.7,1),ce}),go.Shape.defineFigureGenerator("Cylinder1",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)&&(ce=5),ce=Math.min(ce,ne/3);var se=new go.Geometry,ge=Ne*.5,ve=new go.PathFigure(0,ce,!0);se.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,Ne*ce,(.5-ge)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,1*te,ce,(.5+ge)*te,0,1*te,Ne*ce)),ve.add(new go.PathSegment(go.PathSegment.Line,te,ne-ce)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,1*ne,1*te,ne-Ne*ce,(.5+ge)*te,1*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-ce,(.5-ge)*te,1*ne,0,ne-Ne*ce)),ve.add(new go.PathSegment(go.PathSegment.Line,0,ce));var Ce=new go.PathFigure(te,ce,!1);return se.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,2*ce,1*te,2*ce-Ne*ce,(.5+ge)*te,2*ce)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,0,ce,(.5-ge)*te,2*ce,0,2*ce-Ne*ce)),se.spot1=new go.Spot(0,0,0,2*ce),se.spot2=new go.Spot(1,1),se}),go.Shape.defineFigureGenerator("Cylinder2",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)&&(ce=5),ce=Math.min(ce,ne/3);var se=new go.Geometry,ge=Ne*.5,ve=new go.PathFigure(0,ne-ce,!0);se.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,0,ce)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,Ne*ce,(.5-ge)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,ce,(.5+ge)*te,0,te,Ne*ce)),ve.add(new go.PathSegment(go.PathSegment.Line,te,ne-ce)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,ne-Ne*ce,(.5+ge)*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-ce,(.5-ge)*te,ne,0,ne-Ne*ce));var Ce=new go.PathFigure(0,ne-ce,!1);return se.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne-2*ce,0,ne-ce-Ne*ce,(.5-ge)*te,ne-2*ce)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te,ne-ce,(.5+ge)*te,ne-2*ce,te,ne-ce-Ne*ce)),se.spot1=new go.Spot(0,0),se.spot2=new go.Spot(1,1,0,-2*ce),se}),go.Shape.defineFigureGenerator("Cylinder3",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)&&(ce=5),ce=Math.min(ce,te/3);var se=new go.Geometry,ge=Ne*.5,ve=new go.PathFigure(ce,0,!0);se.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te-ce,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,te-Ne*ce,0,te,(.5-ge)*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te-ce,ne,te,(.5+ge)*ne,te-Ne*ce,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,ce,ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,Ne*ce,ne,0,(.5+ge)*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ce,0,0,(.5-ge)*ne,Ne*ce,0));var Ce=new go.PathFigure(ce,0,!1);return se.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,2*ce,.5*ne,ce+Ne*ce,0,2*ce,(.5-ge)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ce,ne,2*ce,(.5+ge)*ne,ce+Ne*ce,ne)),se.spot1=new go.Spot(0,0,2*ce,0),se.spot2=new go.Spot(1,1),se}),go.Shape.defineFigureGenerator("Cylinder4",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)&&(ce=5),ce=Math.min(ce,te/3);var se=new go.Geometry,ge=Ne*.5,ve=new go.PathFigure(te-ce,0,!0);se.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,te-Ne*ce,0,te,(.5-ge)*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te-ce,ne,te,(.5+ge)*ne,te-Ne*ce,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,ce,ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,Ne*ce,ne,0,(.5+ge)*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ce,0,0,(.5-ge)*ne,Ne*ce,0)),ve.add(new go.PathSegment(go.PathSegment.Line,te-ce,0));var Ce=new go.PathFigure(te-ce,0,!1);return se.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te-2*ce,.5*ne,te-ce-Ne*ce,0,te-2*ce,(.5-ge)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te-ce,ne,te-2*ce,(.5+ge)*ne,te-ce-Ne*ce,ne)),se.spot1=new go.Spot(0,0),se.spot2=new go.Spot(1,1,-2*ce,0),se}),go.Shape.defineFigureGenerator("Prism1",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.25*te,.25*ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var ge=new go.PathFigure(.25*te,.25*ne,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),ce.spot1=new go.Spot(.408,.172),ce.spot2=new go.Spot(.833,.662),ce}),go.Shape.defineFigureGenerator("Prism2",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,.25*ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var ge=new go.PathFigure(0,ne,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,0,.25*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ne)),ce.spot1=new go.Spot(.25,.5),ce.spot2=new go.Spot(.75,.75),ce}),go.Shape.defineFigureGenerator("Pyramid1",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*ne).close());var ge=new go.PathFigure(.5*te,0,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),ce.spot1=new go.Spot(.25,.367),ce.spot2=new go.Spot(.75,.875),ce}),go.Shape.defineFigureGenerator("Pyramid2",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.85*ne).close());var ge=new go.PathFigure(.5*te,0,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.7*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.85*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.5*te,.7*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.85*ne)),ce.spot1=new go.Spot(.25,.367),ce.spot2=new go.Spot(.75,.875),ce}),go.Shape.defineFigureGenerator("Actor",function(Me,te,ne){var ce=new go.Geometry,se=.2,ge=.1,ve=Ne*se,Ce=Ne*ge,ke=.5,Pe=.1,Te=new go.PathFigure(ke*te,(Pe+ge)*ne,!0);ce.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ke-se)*te,Pe*ne,(ke-ve)*te,(Pe+ge)*ne,(ke-se)*te,(Pe+Ce)*ne)),Te.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(Pe-ge)*ne,(ke-se)*te,(Pe-Ce)*ne,(ke-ve)*te,(Pe-ge)*ne)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ke+se)*te,Pe*ne,(ke+ve)*te,(Pe-ge)*ne,(ke+se)*te,(Pe-Ce)*ne)),Te.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(Pe+ge)*ne,(ke+se)*te,(Pe+Ce)*ne,(ke+ve)*te,(Pe+ge)*ne));var Ke=.05,et=Ne*Ke;ke=.05,Pe=.25;var Xe=new go.PathFigure(.5*te,.2*ne,!0);return ce.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Line,.95*te,.2*ne)),ke=.95,Pe=.25,Xe.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Ke)*te,Pe*ne,(ke+et)*te,(Pe-Ke)*ne,(ke+Ke)*te,(Pe-et)*ne)),Xe.add(new go.PathSegment(go.PathSegment.Line,te,.6*ne)),Xe.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ne)),Xe.add(new go.PathSegment(go.PathSegment.Line,.85*te,.35*ne)),Ke=.025,et=Ne*Ke,ke=.825,Pe=.35,Xe.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(Pe-Ke)*ne,(ke+Ke)*te,(Pe-et)*ne,(ke+et)*te,(Pe-Ke)*ne)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Ke)*te,Pe*ne,(ke-et)*te,(Pe-Ke)*ne,(ke-Ke)*te,(Pe-et)*ne)),Xe.add(new go.PathSegment(go.PathSegment.Line,.8*te,ne)),Xe.add(new go.PathSegment(go.PathSegment.Line,.55*te,ne)),Xe.add(new go.PathSegment(go.PathSegment.Line,.55*te,.7*ne)),Ke=.05,et=Ne*Ke,ke=.5,Pe=.7,Xe.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(Pe-Ke)*ne,(ke+Ke)*te,(Pe-et)*ne,(ke+et)*te,(Pe-Ke)*ne)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Ke)*te,Pe*ne,(ke-et)*te,(Pe-Ke)*ne,(ke-Ke)*te,(Pe-et)*ne)),Xe.add(new go.PathSegment(go.PathSegment.Line,.45*te,ne)),Xe.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),Xe.add(new go.PathSegment(go.PathSegment.Line,.2*te,.35*ne)),Ke=.025,et=Ne*Ke,ke=.175,Pe=.35,Xe.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(Pe-Ke)*ne,(ke+Ke)*te,(Pe-et)*ne,(ke+et)*te,(Pe-Ke)*ne)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Ke)*te,Pe*ne,(ke-et)*te,(Pe-Ke)*ne,(ke-Ke)*te,(Pe-et)*ne)),Xe.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ne)),Xe.add(new go.PathSegment(go.PathSegment.Line,0,.6*ne)),Xe.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),Ke=.05,et=Ne*Ke,ke=.05,Pe=.25,Xe.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(Pe-Ke)*ne,(ke-Ke)*te,(Pe-et)*ne,(ke-et)*te,(Pe-Ke)*ne)),Xe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.2*ne)),ce.spot1=new go.Spot(.2,.2),ce.spot2=new go.Spot(.8,.65),ce}),go.Shape.setFigureParameter("Card",0,new In("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)&&(ce=.2);var se=new go.Geometry,ge=new go.PathFigure(te,0,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ce*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,ce*te,0).close()),se.spot1=new go.Spot(0,ce),se.spot2=go.Spot.BottomRight,se}),go.Shape.defineFigureGenerator("Collate",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.5*te,.5*ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne));var ge=new go.PathFigure(.5*te,.5*ne,!0);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),ce.spot1=new go.Spot(.25,0),ce.spot2=new go.Spot(.75,.25),ce}),go.Shape.defineFigureGenerator("CreateRequest",function(Me,te,ne){var ce=new go.Geometry,se=Me?Me.parameter1:NaN;isNaN(se)&&(se=.1);var ge=new go.PathFigure(0,0,!0);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var ve=new go.PathFigure(0,se*ne,!1);return ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,se*ne)),ve.add(new go.PathSegment(go.PathSegment.Move,0,(1-se)*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,te,(1-se)*ne)),ce}),go.Shape.defineFigureGenerator("Database",function(Me,te,ne){var ce=new go.Geometry,se=Ne*.5,ge=Ne*.1,ve=new go.PathFigure(te,.1*ne,!0);ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.9+ge)*ne,(.5+se)*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,(.5-se)*te,ne,0,(.9+ge)*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,(.1-ge)*ne,(.5-se)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ne,(.5+se)*te,0,te,(.1-ge)*ne));var Ce=new go.PathFigure(te,.1*ne,!1);return ce.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ne,te,(.1+ge)*ne,(.5+se)*te,.2*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ne,(.5-se)*te,.2*ne,0,(.1+ge)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,te,.2*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ne,te,(.2+ge)*ne,(.5+se)*te,.3*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ne,(.5-se)*te,.3*ne,0,(.2+ge)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,te,.3*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.4*ne,te,(.3+ge)*ne,(.5+se)*te,.4*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ne,(.5-se)*te,.4*ne,0,(.3+ge)*ne)),ce.spot1=new go.Spot(0,.4),ce.spot2=new go.Spot(1,.9),ce}),go.Shape.defineFigureGenerator("DataStorage",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ne,te,0,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.9*ne,.25*te,.1*ne).close()),ce.spot1=new go.Spot(.226,0),ce.spot2=new go.Spot(.81,1),ce}),go.Shape.defineFigureGenerator("DiskStorage",function(Me,te,ne){var ce=new go.Geometry,se=Ne*.5,ge=Ne*.1,ve=new go.PathFigure(te,.1*ne,!0);ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.9+ge)*ne,(.5+se)*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,(.5-se)*te,ne,0,(.9+ge)*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,(.1-ge)*ne,(.5-se)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ne,(.5+se)*te,0,te,(.1-ge)*ne));var Ce=new go.PathFigure(te,.1*ne,!1);return ce.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ne,te,(.1+ge)*ne,(.5+se)*te,.2*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ne,(.5-se)*te,.2*ne,0,(.1+ge)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,te,.2*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ne,te,(.2+ge)*ne,(.5+se)*te,.3*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ne,(.5-se)*te,.3*ne,0,(.2+ge)*ne)),ce.spot1=new go.Spot(0,.3),ce.spot2=new go.Spot(1,.9),ce}),go.Shape.defineFigureGenerator("Display",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.25*te,0,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ne,te,0,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne).close()),ce.spot1=new go.Spot(.25,0),ce.spot2=new go.Spot(.75,1),ce}),go.Shape.defineFigureGenerator("DividedEvent",function(Me,te,ne){var ce=new go.Geometry,se=Me?Me.parameter1:NaN;isNaN(se)?se=.2:se<.15&&(se=.15);var ge=Ne*.2,ve=new go.PathFigure(0,.2*ne,!0);ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,0,(.2-ge)*ne,(.2-ge)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,.2*ne,(.8+ge)*te,0,te,(.2-ge)*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,ne,te,(.8+ge)*ne,(.8+ge)*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*ne,(.2-ge)*te,ne,0,(.8+ge)*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne));var Ce=new go.PathFigure(0,se*ne,!1);return ce.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,te,se*ne)),ce}),go.Shape.defineFigureGenerator("DividedProcess",function(Me,te,ne){var ce=new go.Geometry,se=Me?Me.parameter1:NaN;(isNaN(se)||se<.1)&&(se=.1);var ge=new go.PathFigure(0,0,!0);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var ve=new go.PathFigure(0,se*ne,!1);return ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,se*ne)),ce}),go.Shape.defineFigureGenerator("Document",function(Me,te,ne){var ce=new go.Geometry;ne=ne/.8;var se=new go.PathFigure(0,.7*ne,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.5*te,.4*ne,.5*te,ne).close()),ce.spot1=go.Spot.TopLeft,ce.spot2=new go.Spot(1,.6),ce}),go.Shape.defineFigureGenerator("ExternalOrganization",function(Me,te,ne){var ce=new go.Geometry,se=Me?Me.parameter1:NaN;(isNaN(se)||se<.2)&&(se=.2);var ge=new go.PathFigure(0,0,!0);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var ve=new go.PathFigure(se*te,0,!1);return ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,0,se*ne)),ve.add(new go.PathSegment(go.PathSegment.Move,te,se*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,(1-se)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Move,0,(1-se)*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Move,(1-se)*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,te,(1-se)*ne)),ce}),go.Shape.defineFigureGenerator("ExternalProcess",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne).close());var ge=new go.PathFigure(.1*te,.4*ne,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.1*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.9*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.6*te,.1*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*te,.1*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.4*te,.9*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*te,.9*ne)),ce.spot1=new go.Spot(.25,.25),ce.spot2=new go.Spot(.75,.75),ce}),go.Shape.defineFigureGenerator("File",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var ge=new go.PathFigure(.75*te,0,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.75*te,.25*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),ce.spot1=new go.Spot(0,.25),ce.spot2=go.Spot.BottomRight,ce}),go.Shape.defineFigureGenerator("Interrupt",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(te,.5*ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne));var ge=new go.PathFigure(te,.5*ne,!1);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne));var ve=new go.PathFigure(te,.5*ne,!1);return ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,0)),ce.spot1=new go.Spot(0,.25),ce.spot2=new go.Spot(.5,.75),ce}),go.Shape.defineFigureGenerator("InternalStorage",function(Me,te,ne){var ce=new go.Geometry,se=Me?Me.parameter1:NaN,ge=Me?Me.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(ge)&&(ge=.1);var ve=new go.PathFigure(0,0,!0);ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,0)),ve.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var Ce=new go.PathFigure(se*te,0,!1);return ce.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,0,ge*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,te,ge*ne)),ce}),go.Shape.defineFigureGenerator("Junction",function(Me,te,ne){var ce=new go.Geometry,se=1/Math.SQRT2,ge=(1-1/Math.SQRT2)/2,ve=Ne*.5,Ce=.5,ke=new go.PathFigure(te,Ce*ne,!0);ce.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,Ce*te,ne,te,(Ce+ve)*ne,(Ce+ve)*te,ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,0,Ce*ne,(Ce-ve)*te,ne,0,(Ce+ve)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,Ce*te,0,0,(Ce-ve)*ne,(Ce-ve)*te,0)),ke.add(new go.PathSegment(go.PathSegment.Bezier,te,Ce*ne,(Ce+ve)*te,0,te,(Ce-ve)*ne));var Pe=new go.PathFigure((ge+se)*te,(ge+se)*ne,!1);return ce.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,ge*te,ge*ne)),Pe.add(new go.PathSegment(go.PathSegment.Move,ge*te,(ge+se)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,(ge+se)*te,ge*ne)),ce}),go.Shape.defineFigureGenerator("LinedDocument",function(Me,te,ne){var ce=new go.Geometry;ne=ne/.8;var se=new go.PathFigure(0,.7*ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.5*te,.4*ne,.5*te,ne).close());var ge=new go.PathFigure(.1*te,0,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.1*te,.75*ne)),ce.spot1=new go.Spot(.1,0),ce.spot2=new go.Spot(1,.6),ce}),go.Shape.defineFigureGenerator("LoopLimit",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,ne,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne).close()),ce.spot1=new go.Spot(0,.25),ce.spot2=go.Spot.BottomRight,ce}),go.Shape.defineFigureGenerator("MagneticTape",function(Me,te,ne){var ce=new go.Geometry,se=Ne*.5,ge=.5,ve=new go.PathFigure(.5*te,ne,!0);return ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,ge*ne,(ge-se)*te,ne,0,(ge+se)*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ge*te,0,0,(ge-se)*ne,(ge-se)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,ge*ne,(ge+se)*te,0,te,(ge-se)*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ge+.1)*te,.9*ne,te,(ge+se)*ne,(ge+se)*te,.9*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),ce.spot1=new go.Spot(.15,.15),ce.spot2=new go.Spot(.85,.8),ce}),go.Shape.defineFigureGenerator("ManualInput",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(te,0,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne).close()),ce.spot1=new go.Spot(0,.25),ce.spot2=go.Spot.BottomRight,ce}),go.Shape.defineFigureGenerator("MessageFromUser",function(Me,te,ne){var ce=new go.Geometry,se=Me?Me.parameter1:NaN;isNaN(se)&&(se=.7);var ge=new go.PathFigure(0,0,!0);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,se*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ce.spot1=go.Spot.TopLeft,ce}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Me,te,ne){var ce=new go.Geometry,se=Me?Me.parameter1:NaN;isNaN(se)&&(se=.25);var ge=new go.PathFigure(0,0,!0);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,se*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,(1-se)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ce}),go.Shape.defineFigureGenerator("MicroformRecording",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ce.spot1=new go.Spot(0,.25),ce.spot2=new go.Spot(1,.75),ce}),go.Shape.defineFigureGenerator("MultiDocument",function(Me,te,ne){var ce=new go.Geometry;ne=ne/.8;var se=new go.PathFigure(te,0,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.44*ne,.96*te,.47*ne,.93*te,.45*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.54*ne,.86*te,.57*ne,.83*te,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.4*te,.4*ne,.4*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,0).close());var ge=new go.PathFigure(.1*te,.2*ne,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.54*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*te,.1*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*te,.1*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*te,.44*ne)),ce.spot1=new go.Spot(0,.25),ce.spot2=new go.Spot(.8,.77),ce}),go.Shape.defineFigureGenerator("MultiProcess",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.1*te,.1*ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ne).close());var ge=new go.PathFigure(.2*te,.1*ne,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.9*te,.1*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.1*te,.2*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.9*ne)),ce.spot1=new go.Spot(0,.2),ce.spot2=new go.Spot(.8,1),ce}),go.Shape.defineFigureGenerator("OfflineStorage",function(Me,te,ne){var ce=new go.Geometry,se=Me?Me.parameter1:NaN;isNaN(se)&&(se=.1);var ge=1-se,ve=new go.PathFigure(0,0,!0);ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,0)),ve.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne).close());var Ce=new go.PathFigure(.5*se*te,se*ne,!1);return ce.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,(1-.5*se)*te,se*ne)),ce}),go.Shape.defineFigureGenerator("OffPageConnector",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ce.spot1=go.Spot.TopLeft,ce.spot2=new go.Spot(.75,1),ce}),go.Shape.defineFigureGenerator("Or",function(Me,te,ne){var ce=new go.Geometry,se=Ne*.5,ge=.5,ve=new go.PathFigure(te,ge*ne,!0);ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,ge*te,ne,te,(ge+se)*ne,(ge+se)*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,ge*ne,(ge-se)*te,ne,0,(ge+se)*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ge*te,0,0,(ge-se)*ne,(ge-se)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,ge*ne,(ge+se)*te,0,te,(ge-se)*ne));var Ce=new go.PathFigure(te,.5*ne,!1);return ce.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,.5*te,ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),ce}),go.Shape.defineFigureGenerator("PaperTape",function(Me,te,ne){var ce=new go.Geometry;ne=ne/.8;var se=new go.PathFigure(0,.7*ne,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.3*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.3*ne,.5*te,.6*ne,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.5*te,.4*ne,.5*te,ne).close()),ce.spot1=new go.Spot(0,.49),ce.spot2=new go.Spot(1,.75),ce}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(Me,te,ne){var ce=new go.Geometry,se=Me?Me.parameter1:NaN,ge=Me?Me.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(ge)&&(ge=.3);var ve=new go.PathFigure(0,0,!0);return ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,0)),ve.add(new go.PathSegment(go.PathSegment.Line,(1-ge)*te,.5*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ce}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Me,te,ne){var ce=new go.Geometry,se=Me?Me.parameter1:NaN,ge=Me?Me.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(ge)&&(ge=.3);var ve=new go.PathFigure(0,0,!0);return ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,(1-ge)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,(1-ge)*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ce}),go.Shape.defineFigureGenerator("Procedure",function(Me,te,ne){var ce=new go.Geometry,se=Me?Me.parameter1:NaN;isNaN(se)&&(se=.1);var ge=new go.PathFigure(0,0,!0);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var ve=new go.PathFigure((1-se)*te,0,!1);return ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,(1-se)*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Move,se*te,0)),ve.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),ce}),go.Shape.defineFigureGenerator("Process",function(Me,te,ne){var ce=new go.Geometry,se=Me?Me.parameter1:NaN;isNaN(se)&&(se=.1);var ge=new go.PathFigure(0,0,!0);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var ve=new go.PathFigure(se*te,0,!1);return ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),ce.spot2=go.Spot.BottomRight,ce}),go.Shape.defineFigureGenerator("Sort",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne).close());var ge=new go.PathFigure(0,.5*ne,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),ce.spot1=new go.Spot(.25,.25),ce.spot2=new go.Spot(.75,.5),ce}),go.Shape.defineFigureGenerator("Start",function(Me,te,ne){var ce=new go.Geometry,se=Me?Me.parameter1:NaN;isNaN(se)&&(se=.25);var ge=new go.PathFigure(se*te,0,!0);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*te,.5*ne,.25*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*te,.5*ne,.25*te,.5*ne));var ve=new go.PathFigure(se*te,0,!1);return ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Move,(1-se)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Line,(1-se)*te,ne)),ce.spot1=new go.Spot(se,0),ce.spot2=new go.Spot(1-se,1),ce}),go.Shape.defineFigureGenerator("Terminator",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.25*te,0,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*te,.5*ne,.25*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*te,.5*ne,.25*te,.5*ne)),ce.spot1=new go.Spot(.23,0),ce.spot2=new go.Spot(.77,1),ce}),go.Shape.defineFigureGenerator("TransmittalTape",function(Me,te,ne){var ce=new go.Geometry,se=Me?Me.parameter1:NaN;isNaN(se)&&(se=.1);var ge=new go.PathFigure(0,0,!0);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.75*te,(1-se)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,(1-se)*ne).close()),ce.spot1=go.Spot.TopLeft,ce}),go.Shape.defineFigureGenerator("AndGate",function(Me,te,ne){var ce=new go.Geometry,se=Ne*.5,ge=new go.PathFigure(0,0,!0);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,(.5+se)*te,0,te,(.5-se)*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.5+se)*ne,(.5+se)*te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ce.spot1=go.Spot.TopLeft,ce.spot2=new go.Spot(.55,1),ce}),go.Shape.defineFigureGenerator("Buffer",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ce.spot1=new go.Spot(0,.25),ce.spot2=new go.Spot(.5,.75),ce}),go.Shape.defineFigureGenerator("Clock",function(Me,te,ne){var ce=new go.Geometry,se=Ne*.5,ge=.5,ve=new go.PathFigure(te,ge*ne,!0);ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,ge*te,ne,te,(ge+se)*ne,(ge+se)*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,ge*ne,(ge-se)*te,ne,0,(ge+se)*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ge*te,0,0,(ge-se)*ne,(ge-se)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,ge*ne,(ge+se)*te,0,te,(ge-se)*ne));var Ce=new go.PathFigure(te,ge*ne,!1);ce.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,te,ge*ne));var ke=new go.PathFigure(.8*te,.75*ne,!1);return ce.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,.8*te,.25*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.6*te,.25*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.6*te,.75*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.4*te,.75*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.4*te,.25*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.2*te,.25*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.2*te,.75*ne)),ce}),go.Shape.defineFigureGenerator("Ground",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.5*te,0,!1);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.3*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.4*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,ne)),ce}),go.Shape.defineFigureGenerator("Inverter",function(Me,te,ne){var ce=new go.Geometry,se=Ne*.1,ge=.1,ve=.9,Ce=.5,ke=new go.PathFigure(.8*te,.5*ne,!0);ce.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ke.add(new go.PathSegment(go.PathSegment.Line,0,0)),ke.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ne));var Pe=new go.PathFigure((ve+ge)*te,Ce*ne,!0);return ce.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ce+ge)*ne,(ve+ge)*te,(Ce+se)*ne,(ve+se)*te,(Ce+ge)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ge)*te,Ce*ne,(ve-se)*te,(Ce+ge)*ne,(ve-ge)*te,(Ce+se)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ce-ge)*ne,(ve-ge)*te,(Ce-se)*ne,(ve-se)*te,(Ce-ge)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge)*te,Ce*ne,(ve+se)*te,(Ce-ge)*ne,(ve+ge)*te,(Ce-se)*ne)),ce.spot1=new go.Spot(0,.25),ce.spot2=new go.Spot(.4,.75),ce}),go.Shape.defineFigureGenerator("NandGate",function(Me,te,ne){var ce=new go.Geometry,se=Ne*.5,ge=Ne*.4,ve=Ne*.1,Ce=.1,ke=.9,Pe=.5,Te=new go.PathFigure(.8*te,.5*ne,!0);ce.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,ne,.8*te,(.5+ge)*ne,(.4+se)*te,ne)),Te.add(new go.PathSegment(go.PathSegment.Line,0,ne)),Te.add(new go.PathSegment(go.PathSegment.Line,0,0)),Te.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),Te.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ne,(.4+se)*te,0,.8*te,(.5-ge)*ne));var Ke=new go.PathFigure((ke+Ce)*te,Pe*ne,!0);return ce.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(Pe+Ce)*ne,(ke+Ce)*te,(Pe+ve)*ne,(ke+ve)*te,(Pe+Ce)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Ce)*te,Pe*ne,(ke-ve)*te,(Pe+Ce)*ne,(ke-Ce)*te,(Pe+ve)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(Pe-Ce)*ne,(ke-Ce)*te,(Pe-ve)*ne,(ke-ve)*te,(Pe-Ce)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Ce)*te,Pe*ne,(ke+ve)*te,(Pe-Ce)*ne,(ke+Ce)*te,(Pe-ve)*ne)),ce.spot1=new go.Spot(0,.05),ce.spot2=new go.Spot(.55,.95),ce}),go.Shape.defineFigureGenerator("NorGate",function(Me,te,ne){var ce=new go.Geometry,se=.5,ge=Ne*se,ve=0,Ce=.5,ke=new go.PathFigure(.8*te,.5*ne,!0);ce.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,0,ne,.7*te,(Ce+ge)*ne,(ve+ge)*te,(Ce+se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.75*ne,.25*te,.25*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ne,(ve+ge)*te,(Ce-se)*ne,.7*te,(Ce-ge)*ne)),se=.1,ge=Ne*.1,ve=.9,Ce=.5;var Pe=new go.PathFigure((ve-se)*te,Ce*ne,!0);return ce.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ce-se)*ne,(ve-se)*te,(Ce-ge)*ne,(ve-ge)*te,(Ce-se)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ve+se)*te,Ce*ne,(ve+ge)*te,(Ce-se)*ne,(ve+se)*te,(Ce-ge)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ce+se)*ne,(ve+se)*te,(Ce+ge)*ne,(ve+ge)*te,(Ce+se)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ve-se)*te,Ce*ne,(ve-ge)*te,(Ce+se)*ne,(ve-se)*te,(Ce+ge)*ne)),ce.spot1=new go.Spot(.2,.25),ce.spot2=new go.Spot(.6,.75),ce}),go.Shape.defineFigureGenerator("OrGate",function(Me,te,ne){var ce=new go.Geometry,se=.5,ge=Ne*se,ve=0,Ce=.5,ke=new go.PathFigure(0,0,!0);return ce.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,(ve+ge+ge)*te,(Ce-se)*ne,.8*te,(Ce-ge)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,0,ne,.8*te,(Ce+ge)*ne,(ve+ge+ge)*te,(Ce+se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.75*ne,.25*te,.25*ne).close()),ce.spot1=new go.Spot(.2,.25),ce.spot2=new go.Spot(.75,.75),ce}),go.Shape.defineFigureGenerator("XnorGate",function(Me,te,ne){var ce=new go.Geometry,se=.5,ge=Ne*se,ve=.2,Ce=.5,ke=new go.PathFigure(.1*te,0,!1);ce.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,ne,.35*te,.25*ne,.35*te,.75*ne));var Pe=new go.PathFigure(.8*te,.5*ne,!0);ce.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,ne,.7*te,(Ce+ge)*ne,(ve+ge)*te,(Ce+se)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,.45*te,.75*ne,.45*te,.25*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ne,(ve+ge)*te,(Ce-se)*ne,.7*te,(Ce-ge)*ne)),se=.1,ge=Ne*.1,ve=.9,Ce=.5;var Te=new go.PathFigure((ve-se)*te,Ce*ne,!0);return ce.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ce-se)*ne,(ve-se)*te,(Ce-ge)*ne,(ve-ge)*te,(Ce-se)*ne)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ve+se)*te,Ce*ne,(ve+ge)*te,(Ce-se)*ne,(ve+se)*te,(Ce-ge)*ne)),Te.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ce+se)*ne,(ve+se)*te,(Ce+ge)*ne,(ve+ge)*te,(Ce+se)*ne)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ve-se)*te,Ce*ne,(ve-ge)*te,(Ce+se)*ne,(ve-se)*te,(Ce+ge)*ne)),ce.spot1=new go.Spot(.4,.25),ce.spot2=new go.Spot(.65,.75),ce}),go.Shape.defineFigureGenerator("XorGate",function(Me,te,ne){var ce=new go.Geometry,se=.5,ge=Ne*se,ve=.2,Ce=.5,ke=new go.PathFigure(.1*te,0,!1);ce.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,ne,.35*te,.25*ne,.35*te,.75*ne));var Pe=new go.PathFigure(.2*te,0,!0);return ce.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,(ve+ge)*te,(Ce-se)*ne,.9*te,(Ce-ge)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,ne,.9*te,(Ce+ge)*ne,(ve+ge)*te,(Ce+se)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,.45*te,.75*ne,.45*te,.25*ne).close()),ce.spot1=new go.Spot(.4,.25),ce.spot2=new go.Spot(.8,.75),ce}),go.Shape.defineFigureGenerator("Capacitor",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!1);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Move,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ce}),go.Shape.defineFigureGenerator("Resistor",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,.5*ne,!1);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.5*ne)),ce}),go.Shape.defineFigureGenerator("Inductor",function(Me,te,ne){var ce=new go.Geometry,se=Ne*.1,ge=.1,ve=.1,Ce=.5,ke=new go.PathFigure((ve-se*.5)*te,ne,!1);return ce.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge)*te,0,(ve-se)*te,ne,(ve-ge)*te,0)),ve=.3,ke.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,ne,(ve+ge)*te,0,(ve+se)*te,ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge)*te,0,(ve-se)*te,ne,(ve-ge)*te,0)),ve=.5,ke.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,ne,(ve+ge)*te,0,(ve+se)*te,ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge)*te,0,(ve-se)*te,ne,(ve-ge)*te,0)),ve=.7,ke.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,ne,(ve+ge)*te,0,(ve+se)*te,ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge)*te,0,(ve-se)*te,ne,(ve-ge)*te,0)),ve=.9,ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve+se*.5)*te,ne,(ve+ge)*te,0,(ve+se)*te,ne)),ce}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Me,te,ne){var ce=new go.Geometry,se=Ne*.5,ge=.5,ve=.5,Ce=.5,ke=new go.PathFigure((ve-ge)*te,Ce*ne,!1);return ce.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ce-ge)*ne,(ve-ge)*te,(Ce-se)*ne,(ve-se)*te,(Ce-ge)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge)*te,Ce*ne,(ve+se)*te,(Ce-ge)*ne,(ve+ge)*te,(Ce-se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ce+ge)*ne,(ve+ge)*te,(Ce+se)*ne,(ve+se)*te,(Ce+ge)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ge)*te,Ce*ne,(ve-se)*te,(Ce+ge)*ne,(ve-ge)*te,(Ce+se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Move,(ve-ge+.1)*te,Ce*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge-.1)*te,Ce*ne,ve*te,(Ce-ge)*ne,ve*te,(Ce+ge)*ne)),ce}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,.75*ne,!1);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Move,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ce}),go.Shape.defineFigureGenerator("Diode",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(te,0,!1);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ce.spot1=new go.Spot(0,.25),ce.spot2=new go.Spot(.5,.75),ce}),go.Shape.defineFigureGenerator("Wifi",function(Me,te,ne){var ce=new go.Geometry,se=te,ge=ne;te=te*.38,ne=ne*.6;var ve=Ne*.8,Ce=.8,ke=0,Pe=.5,Te=(se-te)/2,Ke=(ge-ne)/2,et=new go.PathFigure(ke*te+Te,(Pe+Ce)*ne+Ke,!0);ce.add(et),et.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Ce)*te+Te,Pe*ne+Ke,(ke-ve)*te+Te,(Pe+Ce)*ne+Ke,(ke-Ce)*te+Te,(Pe+ve)*ne+Ke)),et.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+Te,(Pe-Ce)*ne+Ke,(ke-Ce)*te+Te,(Pe-ve)*ne+Ke,(ke-ve)*te+Te,(Pe-Ce)*ne+Ke)),et.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Ce+ve*.5)*te+Te,Pe*ne+Ke,ke*te+Te,(Pe-Ce)*ne+Ke,(ke-Ce+ve*.5)*te+Te,(Pe-ve)*ne+Ke)),et.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+Te,(Pe+Ce)*ne+Ke,(ke-Ce+ve*.5)*te+Te,(Pe+ve)*ne+Ke,ke*te+Te,(Pe+Ce)*ne+Ke).close()),ve=Ne*.4,Ce=.4,ke=.2,Pe=.5;var Xe=new go.PathFigure(ke*te+Te,(Pe+Ce)*ne+Ke,!0);ce.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Ce)*te+Te,Pe*ne+Ke,(ke-ve)*te+Te,(Pe+Ce)*ne+Ke,(ke-Ce)*te+Te,(Pe+ve)*ne+Ke)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+Te,(Pe-Ce)*ne+Ke,(ke-Ce)*te+Te,(Pe-ve)*ne+Ke,(ke-ve)*te+Te,(Pe-Ce)*ne+Ke)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Ce+ve*.5)*te+Te,Pe*ne+Ke,ke*te+Te,(Pe-Ce)*ne+Ke,(ke-Ce+ve*.5)*te+Te,(Pe-ve)*ne+Ke)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+Te,(Pe+Ce)*ne+Ke,(ke-Ce+ve*.5)*te+Te,(Pe+ve)*ne+Ke,ke*te+Te,(Pe+Ce)*ne+Ke).close()),ve=Ne*.2,Ce=.2,ke=.5,Pe=.5;var ft=new go.PathFigure((ke-Ce)*te+Te,Pe*ne+Ke,!0);ce.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+Te,(Pe-Ce)*ne+Ke,(ke-Ce)*te+Te,(Pe-ve)*ne+Ke,(ke-ve)*te+Te,(Pe-Ce)*ne+Ke)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Ce)*te+Te,Pe*ne+Ke,(ke+ve)*te+Te,(Pe-Ce)*ne+Ke,(ke+Ce)*te+Te,(Pe-ve)*ne+Ke)),ft.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+Te,(Pe+Ce)*ne+Ke,(ke+Ce)*te+Te,(Pe+ve)*ne+Ke,(ke+ve)*te+Te,(Pe+Ce)*ne+Ke)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Ce)*te+Te,Pe*ne+Ke,(ke-ve)*te+Te,(Pe+Ce)*ne+Ke,(ke-Ce)*te+Te,(Pe+ve)*ne+Ke)),ve=Ne*.4,Ce=.4,ke=.8,Pe=.5;var Ge=new go.PathFigure(ke*te+Te,(Pe-Ce)*ne+Ke,!0);ce.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Ce)*te+Te,Pe*ne+Ke,(ke+ve)*te+Te,(Pe-Ce)*ne+Ke,(ke+Ce)*te+Te,(Pe-ve)*ne+Ke)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+Te,(Pe+Ce)*ne+Ke,(ke+Ce)*te+Te,(Pe+ve)*ne+Ke,(ke+ve)*te+Te,(Pe+Ce)*ne+Ke)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Ce-ve*.5)*te+Te,Pe*ne+Ke,ke*te+Te,(Pe+Ce)*ne+Ke,(ke+Ce-ve*.5)*te+Te,(Pe+ve)*ne+Ke)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+Te,(Pe-Ce)*ne+Ke,(ke+Ce-ve*.5)*te+Te,(Pe-ve)*ne+Ke,ke*te+Te,(Pe-Ce)*ne+Ke).close()),ve=Ne*.8,Ce=.8,ke=1,Pe=.5;var kt=new go.PathFigure(ke*te+Te,(Pe-Ce)*ne+Ke,!0);return ce.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Ce)*te+Te,Pe*ne+Ke,(ke+ve)*te+Te,(Pe-Ce)*ne+Ke,(ke+Ce)*te+Te,(Pe-ve)*ne+Ke)),kt.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+Te,(Pe+Ce)*ne+Ke,(ke+Ce)*te+Te,(Pe+ve)*ne+Ke,(ke+ve)*te+Te,(Pe+Ce)*ne+Ke)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Ce-ve*.5)*te+Te,Pe*ne+Ke,ke*te+Te,(Pe+Ce)*ne+Ke,(ke+Ce-ve*.5)*te+Te,(Pe+ve)*ne+Ke)),kt.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+Te,(Pe-Ce)*ne+Ke,(ke+Ce-ve*.5)*te+Te,(Pe-ve)*ne+Ke,ke*te+Te,(Pe-Ce)*ne+Ke).close()),ce}),go.Shape.defineFigureGenerator("Email",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(0,0,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Move,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.45*te,.54*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.55*te,.54*ne)),ce}),go.Shape.defineFigureGenerator("Ethernet",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.35*te,0,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,0).close());var ge=new go.PathFigure(.1*te,ne,!0,!0);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.4*te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.1*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.1*te,ne).close());var ve=new go.PathFigure(.6*te,ne,!0,!0);ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.9*te,.6*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.6*te,.6*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.6*te,ne).close());var Ce=new go.PathFigure(0,.5*ne,!1);return ce.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,.5*te,.5*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,.75*te,.5*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.75*te,.6*ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,.25*te,.5*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.25*te,.6*ne)),ce}),go.Shape.defineFigureGenerator("Power",function(Me,te,ne){var ce=new go.Geometry,se=Ne*.4,ge=.4,ve=.5,Ce=.5,ke=xe(),Pe=xe(),Te=xe(),Ke=xe();It(ve,Ce-ge,ve+se,Ce-ge,ve+ge,Ce-se,ve+ge,Ce,.5,ke,ke,Pe,Te,Ke);var et=ye(Pe.x,Pe.y),Xe=new go.PathFigure(Pe.x*te,Pe.y*ne,!0);ce.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge)*te,Ce*ne,Te.x*te,Te.y*ne,Ke.x*te,Ke.y*ne)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ce+ge)*ne,(ve+ge)*te,(Ce+se)*ne,(ve+se)*te,(Ce+ge)*ne)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ge)*te,Ce*ne,(ve-se)*te,(Ce+ge)*ne,(ve-ge)*te,(Ce+se)*ne)),It(ve-ge,Ce,ve-ge,Ce-se,ve-se,Ce-ge,ve,Ce-ge,.5,Te,Ke,Pe,ke,ke),Xe.add(new go.PathSegment(go.PathSegment.Bezier,Pe.x*te,Pe.y*ne,Te.x*te,Te.y*ne,Ke.x*te,Ke.y*ne)),se=Ne*.3,ge=.3,It(ve-ge,Ce,ve-ge,Ce-se,ve-se,Ce-ge,ve,Ce-ge,.5,Te,Ke,Pe,ke,ke),Xe.add(new go.PathSegment(go.PathSegment.Line,Pe.x*te,Pe.y*ne)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ge)*te,Ce*ne,Ke.x*te,Ke.y*ne,Te.x*te,Te.y*ne)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ce+ge)*ne,(ve-ge)*te,(Ce+se)*ne,(ve-se)*te,(Ce+ge)*ne)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge)*te,Ce*ne,(ve+se)*te,(Ce+ge)*ne,(ve+ge)*te,(Ce+se)*ne)),It(ve,Ce-ge,ve+se,Ce-ge,ve+ge,Ce-se,ve+ge,Ce,.5,ke,ke,Pe,Te,Ke),Xe.add(new go.PathSegment(go.PathSegment.Bezier,Pe.x*te,Pe.y*ne,Ke.x*te,Ke.y*ne,Te.x*te,Te.y*ne).close());var Xe=new go.PathFigure(.45*te,0,!0);return ce.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Line,.45*te,.5*ne)),Xe.add(new go.PathSegment(go.PathSegment.Line,.55*te,.5*ne)),Xe.add(new go.PathSegment(go.PathSegment.Line,.55*te,0).close()),Ie(ke),Ie(Pe),Ie(Te),Ie(Ke),Ie(et),ce.spot1=new go.Spot(.25,.45),ce.spot2=new go.Spot(.75,.8),ce}),go.Shape.defineFigureGenerator("Fallout",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,ne/2,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,180,360,te/2,ne/2,te/2,ne/2));function ge(ve,Ce,ke){ve.add(new go.PathSegment(go.PathSegment.Move,(.3+Ce)*te,(.8+ke)*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,(.5+Ce)*te,(.5+ke)*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,(.1+Ce)*te,(.5+ke)*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,(.3+Ce)*te,(.8+ke)*ne).close())}return ge(se,0,0),ge(se,.4,0),ge(se,.2,-.3),ce}),go.Shape.defineFigureGenerator("IrritationHazard",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.2*te,0,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.3*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne).close()),ce.spot1=new go.Spot(.3,.3),ce.spot2=new go.Spot(.7,.7),ce}),go.Shape.defineFigureGenerator("ElectricalHazard",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.37*te,0,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.11*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.77*te,.04*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,.49*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.37*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.63*te,.86*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.77*te,.91*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.34*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.34*te,.78*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.44*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,.56*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.68*ne).close()),ce}),go.Shape.defineFigureGenerator("FireHazard",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.1*te,ne,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.29*te,0,-.25*te,.63*ne,.45*te,.44*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.51*te,.42*ne,.48*te,.17*ne,.54*te,.35*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.59*te,.18*ne,.59*te,.29*ne,.58*te,.28*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,.6*ne,.8*te,.34*ne,.88*te,.43*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.88*te,.31*ne,.87*te,.48*ne,.88*te,.43*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,ne,1.17*te,.76*ne,.82*te,.8*ne).close()),ce.spot1=new go.Spot(.07,.445),ce.spot2=new go.Spot(.884,.958),ce}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(Me,te,ne){var ce=new go.Geometry,se=.5,ge=0,ve=0,Ce=se*Ne,ke=.4*Math.SQRT2/2+.5,Pe=.5-.5*Math.SQRT2/2,Te=1,Ke=.5,et=.5,Xe=0,ft=new go.PathFigure(ke*te,(1-Pe)*ne,!1);return ce.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,Te*te,Ke*ne,Te*te,.7*ne,Te*te,Ke*ne)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(et+ge)*te,(Xe+ge)*ne,(.5+se+ge)*te,(.5-Ce+ge)*ne,(.5+Ce+ge)*te,(.5-se+ge)*ne)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+ge)*te,(.5+ve)*ne,(.5-Ce+ge)*te,(.5-se+ve)*ne,(.5-se+ge)*te,(.5-Ce+ve)*ne)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(.35+ge)*te,.9*ne,(.5-se+ge)*te,(.5+Ce+ve)*ne,(.5-Ce+ge)*te,.9*ne)),ft.add(new go.PathSegment(go.PathSegment.Move,(.25+ge)*te,.8*ne)),ft.add(new go.PathSegment(go.PathSegment.Line,(.35+ge)*te,.9*ne)),ft.add(new go.PathSegment(go.PathSegment.Line,(.2+ge)*te,.95*ne)),ce}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!1);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Move,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ce}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!1);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Move,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ce}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!1);ce.add(se);var ge=new go.PathFigure(te,ne,!1);ce.add(ge);var ve=new go.PathFigure(0,.5*ne,!1);return ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.5*ne,.2*te,.35*ne,.3*te,.35*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,.7*te,.65*ne,.8*te,.65*ne)),ce}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,.5*ne,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne).close()),ce}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,.2*ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne).close());var se=new go.PathFigure(0,.2*ne,!1);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne)),ce}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.7*te,ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,0,.6*te,.5*ne,0,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,ne,.4*te,.5*ne,te,.5*ne).close());var ge=new go.PathFigure(.45*te,.73*ne,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*te,.73*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.38*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.63*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.31*te,.27*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.56*te,.27*ne)),ce}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!1);ce.add(se);var ge=new go.PathFigure(.335*te,(1-.555)*ne,!0);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.335*te,(1-.405)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.405)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.555)*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te,.68*ne,(1-.12)*te,.46*ne,(1-.02)*te,.54*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.68*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.335*te,(1-.555)*ne,.02*te,.54*ne,.12*te,.46*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.365*te,(1-.595)*ne));var ve=.5-.285,Ce=.5,ke=ve,Pe=Math.PI/4,Te=4*(1-Math.cos(Pe))/(3*Math.sin(Pe)),Ke=Te*.5,et=ve,Xe=ve,ft=Te*et,Ge=Te*Xe;ge.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-et)*te,ke*ne,(Ce-(ft+et)/2)*te,(ke+(Xe+Ge)/2)*ne,(Ce-et)*te,(ke+Ge)*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,Ce*te,(ke-Xe)*ne,(Ce-et)*te,(ke-Ge)*ne,(Ce-ft)*te,(ke-Xe)*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+et)*te,ke*ne,(Ce+ft)*te,(ke-Xe)*ne,(Ce+et)*te,(ke-Ge)*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*te,(1-.595)*ne,(Ce+et)*te,(ke+Ge)*ne,(Ce+(ft+et)/2)*te,(ke+(Xe+Ge)/2)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*te,(1-.595)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.555)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.405)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.335*te,(1-.405)*ne));var kt=new go.PathFigure(.2*te,ne,!1);ce.add(kt),kt.add(new go.PathSegment(go.PathSegment.Line,.2*te,.8*ne));var $e=new go.PathFigure(.8*te,ne,!1);return ce.add($e),$e.add(new go.PathSegment(go.PathSegment.Line,.8*te,.8*ne)),ce}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.1*te,0,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,ne).close());var ge=new go.PathFigure(.2*te,.2*ne,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*te,.8*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.8*ne)),ce}),go.Shape.defineFigureGenerator("BpmnEventError",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,ne,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,.5*ne).close()),ce}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!1);ce.add(se);var ge=new go.PathFigure(te,ne,!1);ce.add(ge);var ve=new go.PathFigure(.1*te,ne,!0);return ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),ve.add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne).close()),ce}),go.Shape.defineFigureGenerator("Caution",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.05*te,ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,.8*ne,0,ne,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.1*ne,.5*te,0,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.95*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,ne,te,ne,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.05*te,ne));var ge=.05;return se.add(new go.PathSegment(go.PathSegment.Move,(.5-ge)*te,.875*ne)),se.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*te,.875*ne,ge*te,ge*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.325*ne,.575*te,.725*ne,.625*te,.375*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.75*ne,.375*te,.375*ne,.425*te,.725*ne)),ce}),go.Shape.defineFigureGenerator("Recycle",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.45*te,.95*ne,!1);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.95*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.185*te,.85*ne,.17*te,.95*ne,.15*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.235*te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,.625*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.275*te,.45*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.05*te,.45*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.05*te,.575*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.1875*te,.95*ne,0,.675*ne,0,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.45*te,.95*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.775*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.22*te,.775*ne));var ge=new go.PathFigure(.475*te,.2*ne,!1);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.4*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.225*te,.3*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.275*te,.175*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.325*te,.05*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,.05*ne,.35*te,0,.375*te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.575*te,.375*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.525*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.75*te,.475*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.85*te,.315*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.32*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.65*te,.05*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.575*te,0,.65*te,.05*ne,.625*te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.38*te,.0105*ne));var ve=new go.PathFigure(.675*te,.575*ne,!1);return ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.875*te,.525*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,te,.775*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.85*te,.95*ne,te,.8*ne,te,.85*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.65*te,.95*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.65*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.55*te,.85*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.65*te,.725*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.65*te,.775*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.7*te,.775*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,te,.775*ne)),ve.add(new go.PathSegment(go.PathSegment.Move,.675*te,.575*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.775*te,.775*ne)),ce}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Me,te,ne){var ce=new go.Geometry,se=.5,ge=Ne*.5,ve=new go.PathFigure(te,se*ne,!0);ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,se*te,ne,te,(se+ge)*ne,(se+ge)*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,se*ne,(se-ge)*te,ne,0,(se+ge)*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,se*te,0,0,(se-ge)*ne,(se-ge)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,se*ne,(se+ge)*te,0,te,(se-ge)*ne));var Ce=new go.PathFigure(se*te,0,!1);return ce.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,se*te,.15*ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,se*te,ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,se*te,.85*ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,0,se*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.15*te,se*ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,te,se*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.85*te,se*ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,se*te,se*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.58*te,.1*ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,se*te,se*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.78*te,.54*ne)),ce}),go.Shape.defineFigureGenerator("Package",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,.15*ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var ge=new go.PathFigure(0,.15*ne,!0);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.65*te,.15*ne).close()),ce.spot1=new go.Spot(0,.1),ce.spot2=new go.Spot(1,1),ce}),go.Shape.defineFigureGenerator("Class",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(0,.2*ne,!1);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne).close());var ve=new go.PathFigure(0,.5*ne,!1);return ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne).close()),ce}),go.Shape.defineFigureGenerator("Component",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(te,ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne).close());var ge=new go.PathFigure(0,.2*ne,!0);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.45*te,.2*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.45*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne).close());var ve=new go.PathFigure(0,.6*ne,!0);return ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.45*te,.6*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.45*te,.8*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,0,.6*ne).close()),ce}),go.Shape.defineFigureGenerator("Boat Shipment",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.15*te,.6*ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.85*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ne));var ge=new go.PathFigure(.15*te,.6*ne,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ne)),ce}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(te,ne,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*te,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.66*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne).close()),ce}),go.Shape.defineFigureGenerator("Workcell",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,ne,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ce}),go.Shape.defineFigureGenerator("Supermarket",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!1);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Move,te,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.66*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.66*ne)),se.add(new go.PathSegment(go.PathSegment.Move,te,.66*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ce}),go.Shape.defineFigureGenerator("TruckShipment",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(te,.8*ne,!0);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*te,.8*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne).close());var ve=.1,Ce=Ne*.1,ke=.2,Pe=.9,Te=new go.PathFigure((ke-ve)*te,Pe*ne,!0);ce.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(Pe-ve)*ne,(ke-ve)*te,(Pe-Ce)*ne,(ke-Ce)*te,(Pe-ve)*ne)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ke+ve)*te,Pe*ne,(ke+Ce)*te,(Pe-ve)*ne,(ke+ve)*te,(Pe-Ce)*ne)),Te.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(Pe+ve)*ne,(ke+ve)*te,(Pe+Ce)*ne,(ke+Ce)*te,(Pe+ve)*ne)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ke-ve)*te,Pe*ne,(ke-Ce)*te,(Pe+ve)*ne,(ke-ve)*te,(Pe+Ce)*ne).close()),ve=.1,Ce=Ne*.1,ke=.8,Pe=.9;var Ke=new go.PathFigure((ke-ve)*te,Pe*ne,!0);return ce.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(Pe-ve)*ne,(ke-ve)*te,(Pe-Ce)*ne,(ke-Ce)*te,(Pe-ve)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(ke+ve)*te,Pe*ne,(ke+Ce)*te,(Pe-ve)*ne,(ke+ve)*te,(Pe-Ce)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(Pe+ve)*ne,(ke+ve)*te,(Pe+Ce)*ne,(ke+Ce)*te,(Pe+ve)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(ke-ve)*te,Pe*ne,(ke-Ce)*te,(Pe+ve)*ne,(ke-ve)*te,(Pe+Ce)*ne).close()),ce}),go.Shape.defineFigureGenerator("KanbanPost",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.2*te,0,!1);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,ne)),ce}),go.Shape.defineFigureGenerator("Forklift",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0));var ge=new go.PathFigure(0,.5*ne,!0);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.8*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne));var ve=new go.PathFigure(.5*te,.8*ne,!0);ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.5*te,.1*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.55*te,.1*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.55*te,.8*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.5*te,.8*ne));var Ce=new go.PathFigure(.5*te,.7*ne,!1);ce.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne));var ke=.1,Pe=Ne*.1,Te=.1,Ke=.9,et=new go.PathFigure((Te-ke)*te,Ke*ne,!0);ce.add(et),et.add(new go.PathSegment(go.PathSegment.Bezier,Te*te,(Ke-ke)*ne,(Te-ke)*te,(Ke-Pe)*ne,(Te-Pe)*te,(Ke-ke)*ne)),et.add(new go.PathSegment(go.PathSegment.Bezier,(Te+ke)*te,Ke*ne,(Te+Pe)*te,(Ke-ke)*ne,(Te+ke)*te,(Ke-Pe)*ne)),et.add(new go.PathSegment(go.PathSegment.Bezier,Te*te,(Ke+ke)*ne,(Te+ke)*te,(Ke+Pe)*ne,(Te+Pe)*te,(Ke+ke)*ne)),et.add(new go.PathSegment(go.PathSegment.Bezier,(Te-ke)*te,Ke*ne,(Te-Pe)*te,(Ke+ke)*ne,(Te-ke)*te,(Ke+Pe)*ne)),ke=.1,Pe=Ne*.1,Te=.4,Ke=.9;var Xe=new go.PathFigure((Te-ke)*te,Ke*ne,!0);return ce.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Bezier,Te*te,(Ke-ke)*ne,(Te-ke)*te,(Ke-Pe)*ne,(Te-Pe)*te,(Ke-ke)*ne)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(Te+ke)*te,Ke*ne,(Te+Pe)*te,(Ke-ke)*ne,(Te+ke)*te,(Ke-Pe)*ne)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,Te*te,(Ke+ke)*ne,(Te+ke)*te,(Ke+Pe)*ne,(Te+Pe)*te,(Ke+ke)*ne)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(Te-ke)*te,Ke*ne,(Te-Pe)*te,(Ke+ke)*ne,(Te-ke)*te,(Ke+Pe)*ne)),ce}),go.Shape.defineFigureGenerator("RailShipment",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.1*te,.4*ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.4*ne).close());var ge=new go.PathFigure(.45*te,.7*ne,!1);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.55*te,.7*ne));var ve=new go.PathFigure(.55*te,.4*ne,!0);ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.9*te,.9*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.55*te,.9*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.55*te,.4*ne).close());var Te=.05,Ke=Ne*.05,et=.175,Xe=.95,Ce=new go.PathFigure((et-Te)*te,Xe*ne,!0);ce.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,et*te,(Xe-Te)*ne,(et-Te)*te,(Xe-Ke)*ne,(et-Ke)*te,(Xe-Te)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(et+Te)*te,Xe*ne,(et+Ke)*te,(Xe-Te)*ne,(et+Te)*te,(Xe-Ke)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,et*te,(Xe+Te)*ne,(et+Te)*te,(Xe+Ke)*ne,(et+Ke)*te,(Xe+Te)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(et-Te)*te,Xe*ne,(et-Ke)*te,(Xe+Te)*ne,(et-Te)*te,(Xe+Ke)*ne));var Te=.05,Ke=Ne*.05,et=.375,Xe=.95,ke=new go.PathFigure((et-Te)*te,Xe*ne,!0);ce.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,et*te,(Xe-Te)*ne,(et-Te)*te,(Xe-Ke)*ne,(et-Ke)*te,(Xe-Te)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(et+Te)*te,Xe*ne,(et+Ke)*te,(Xe-Te)*ne,(et+Te)*te,(Xe-Ke)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,et*te,(Xe+Te)*ne,(et+Te)*te,(Xe+Ke)*ne,(et+Ke)*te,(Xe+Te)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(et-Te)*te,Xe*ne,(et-Ke)*te,(Xe+Te)*ne,(et-Te)*te,(Xe+Ke)*ne));var Te=.05,Ke=Ne*.05,et=.625,Xe=.95,Pe=new go.PathFigure((et-Te)*te,Xe*ne,!0);ce.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,et*te,(Xe-Te)*ne,(et-Te)*te,(Xe-Ke)*ne,(et-Ke)*te,(Xe-Te)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(et+Te)*te,Xe*ne,(et+Ke)*te,(Xe-Te)*ne,(et+Te)*te,(Xe-Ke)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,et*te,(Xe+Te)*ne,(et+Te)*te,(Xe+Ke)*ne,(et+Ke)*te,(Xe+Te)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(et-Te)*te,Xe*ne,(et-Ke)*te,(Xe+Te)*ne,(et-Te)*te,(Xe+Ke)*ne));var Te=.05,Ke=Ne*.05,et=.825,Xe=.95,ft=new go.PathFigure((et-Te)*te,Xe*ne,!0);ce.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,et*te,(Xe-Te)*ne,(et-Te)*te,(Xe-Ke)*ne,(et-Ke)*te,(Xe-Te)*ne)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(et+Te)*te,Xe*ne,(et+Ke)*te,(Xe-Te)*ne,(et+Te)*te,(Xe-Ke)*ne)),ft.add(new go.PathSegment(go.PathSegment.Bezier,et*te,(Xe+Te)*ne,(et+Te)*te,(Xe+Ke)*ne,(et+Ke)*te,(Xe+Te)*ne)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(et-Te)*te,Xe*ne,(et-Ke)*te,(Xe+Te)*ne,(et-Te)*te,(Xe+Ke)*ne).close());var Ge=new go.PathFigure(0,ne,!1);return ce.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Line,te,ne).close()),ce}),go.Shape.defineFigureGenerator("Warehouse",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(0,.2*ne,!1);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne).close());var ve=new go.PathFigure(.15*te,ne,!0);ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.15*te,.5*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.4*te,.5*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.4*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.15*te,ne).close());var Ce=.05,ke=Ne*.05,Pe=.35,Te=.775,Ke=new go.PathFigure((Pe-Ce)*te,Te*ne,!0);return ce.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,Pe*te,(Te-Ce)*ne,(Pe-Ce)*te,(Te-ke)*ne,(Pe-ke)*te,(Te-Ce)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+Ce)*te,Te*ne,(Pe+ke)*te,(Te-Ce)*ne,(Pe+Ce)*te,(Te-ke)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,Pe*te,(Te+Ce)*ne,(Pe+Ce)*te,(Te+ke)*ne,(Pe+ke)*te,(Te+Ce)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-Ce)*te,Te*ne,(Pe-ke)*te,(Te+Ce)*ne,(Pe-Ce)*te,(Te+ke)*ne).close()),ce}),go.Shape.defineFigureGenerator("ControlCenter",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,ne,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Move,.1*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne).close()),ce}),go.Shape.defineFigureGenerator("Bluetooth",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,.75*ne,!1);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),ce}),go.Shape.defineFigureGenerator("Bookmark",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ne)),ce}),go.Shape.defineFigureGenerator("Bookmark",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ne)),ce}),go.Shape.defineFigureGenerator("Globe",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.5*te,0,!1);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,.75*te,0,te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,.75*ne,.75*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,.25*te,ne,0,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,.25*ne,.25*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,.15*te,.25*ne,.15*te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.85*te,.75*ne,.85*te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.1675*te,.15*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8325*te,.15*ne,.35*te,.3*ne,.65*te,.3*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.1675*te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8325*te,.85*ne,.35*te,.7*ne,.65*te,.7*ne)),ce}),go.Shape.defineFigureGenerator("Wave",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,.25*ne,!1);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.25*ne,.1*te,0,.2*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,.25*ne,.425*te,.5*ne,.575*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.25*ne,.8*te,0,.9*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Move,0,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.75*ne,.1*te,.5*ne,.2*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,.75*ne,.425*te,ne,.575*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.75*ne,.8*te,.5*ne,.9*te,.5*ne)),ce}),go.Shape.defineFigureGenerator("Operator",function(Me,te,ne){var ce=new go.Geometry,se=.3,ge=Ne*.3,ve=.5,Ce=.7,ke=new go.PathFigure((ve-se)*te,Ce*ne,!0);ce.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ce-se)*ne,(ve-se)*te,(Ce-ge)*ne,(ve-ge)*te,(Ce-se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve+se)*te,Ce*ne,(ve+ge)*te,(Ce-se)*ne,(ve+se)*te,(Ce-ge)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ce+se)*ne,(ve+se)*te,(Ce+ge)*ne,(ve+ge)*te,(Ce+se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve-se)*te,Ce*ne,(ve-ge)*te,(Ce+se)*ne,(ve-se)*te,(Ce+ge)*ne));var Pe=new go.PathFigure(0,.7*ne,!1);return ce.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,te,.7*ne,0,0,te,0)),ce}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ne,.65*te,.3*ne,.65*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.35*te,.5*ne,.35*te,.3*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,ne,.3*te,.6*ne,.1*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ne,.2*te,ne,.35*te,.95*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,ne,.7*te,.6*ne,.9*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ne,.8*te,ne,.65*te,.95*ne)),ce}),go.Shape.defineFigureGenerator("CentrifugalPump",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(te,0,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,0,.075*ne,0,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,ne,0,ne,.4*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.4*ne,.8*te,ne,.85*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),ce}),go.Shape.defineFigureGenerator("Battery",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Move,.4*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.1*ne));var ge=new go.PathFigure(0,.6*ne,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Move,0,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.4*ne)),ce}),go.Shape.defineFigureGenerator("Delete",function(Me,te,ne){var ce=new go.Geometry,se=.5,ge=Ne*.5,ve=.5,Ce=.5,ke=new go.PathFigure((ve-se)*te,Ce*ne,!0);ce.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ce-se)*ne,(ve-se)*te,(Ce-ge)*ne,(ve-ge)*te,(Ce-se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve+se)*te,Ce*ne,(ve+ge)*te,(Ce-se)*ne,(ve+se)*te,(Ce-ge)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ce+se)*ne,(ve+se)*te,(Ce+ge)*ne,(ve+ge)*te,(Ce+se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve-se)*te,Ce*ne,(ve-ge)*te,(Ce+se)*ne,(ve-se)*te,(Ce+ge)*ne));var Pe=new go.PathFigure(.15*te,.5*ne,!1);return ce.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,.85*te,.5*ne)),ce}),go.Shape.defineFigureGenerator("Flag",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,.1*ne,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Move,0,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.1*ne,.15*te,0,.35*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ne,.65*te,.2*ne,.85*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.5*ne,.85*te,.6*ne,.65*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,.35*te,.4*ne,.15*te,.4*ne).close()),ce}),go.Shape.defineFigureGenerator("Help",function(Me,te,ne){var ce=new go.Geometry,se=.5,ge=Ne*.5,ve=.5,Ce=.5,ke=new go.PathFigure((ve-se)*te,Ce*ne,!1);ce.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ce-se)*ne,(ve-se)*te,(Ce-ge)*ne,(ve-ge)*te,(Ce-se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve+se)*te,Ce*ne,(ve+ge)*te,(Ce-se)*ne,(ve+se)*te,(Ce-ge)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ce+se)*ne,(ve+se)*te,(Ce+ge)*ne,(ve+ge)*te,(Ce+se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve-se)*te,Ce*ne,(ve-ge)*te,(Ce+se)*ne,(ve-se)*te,(Ce+ge)*ne).close()),se=.05,ge=Ne*.05,ve=.5,Ce=.8;var Pe=new go.PathFigure((ve-se)*te,Ce*ne,!1);return ce.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ce-se)*ne,(ve-se)*te,(Ce-ge)*ne,(ve-ge)*te,(Ce-se)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ve+se)*te,Ce*ne,(ve+ge)*te,(Ce-se)*ne,(ve+se)*te,(Ce-ge)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ce+se)*ne,(ve+se)*te,(Ce+ge)*ne,(ve+ge)*te,(Ce+se)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ve-se)*te,Ce*ne,(ve-ge)*te,(Ce+se)*ne,(ve-se)*te,(Ce+ge)*ne).close()),Pe.add(new go.PathSegment(go.PathSegment.Move,.5*te,.7*ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ne,.75*te,.475*ne,.75*te,.225*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.35*ne,.4*te,.2*ne,.3*te,.25*ne)),ce}),go.Shape.defineFigureGenerator("Location",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(.5*te,ne,!0).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.975*te,.025*ne,.5*te,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*te,.5*ne,.5*te,0,.025*te,.025*ne).close()).add(new go.PathSegment(go.PathSegment.Move,.5*te,.2*ne)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*te,.3*ne,.1*te,.1*ne).close()))}),go.Shape.defineFigureGenerator("Lock",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,.5*ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne));var ge=new go.PathFigure(.2*te,.5*ne,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Move,.2*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*te,.3*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.3*ne,.25*te,0,.75*te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.3*ne)),ce}),go.Shape.defineFigureGenerator("Unlocked",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,.5*ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne));var ge=new go.PathFigure(.2*te,.5*ne,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Move,.2*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*te,.3*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.3*ne,.25*te,0,.75*te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.35*ne)),ce}),go.Shape.defineFigureGenerator("Gear",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(.9375*te,.56246875*ne,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*te,.4375*ne)).add(new go.PathSegment(go.PathSegment.Line,.80621875*te,.4375*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.763*te,.3316875*ne,.79840625*te,.39915625*ne,.7834375*te,.3635*ne)).add(new go.PathSegment(go.PathSegment.Line,.8566875*te,.23796875*ne)).add(new go.PathSegment(go.PathSegment.Line,.76825*te,.14959375*ne)).add(new go.PathSegment(go.PathSegment.Line,.67596875*te,.24184375*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*te,.19378125*ne,.64228125*te,.2188125*ne,.603875*te,.2021875*ne)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.0625*ne)).add(new go.PathSegment(go.PathSegment.Line,.4375*te,.0625*ne)).add(new go.PathSegment(go.PathSegment.Line,.4375*te,.19378125*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*te,.239375*ne,.39759375*te,.20190625*ne,.36053125*te,.2176875*ne)).add(new go.PathSegment(go.PathSegment.Line,.2379375*te,.14959375*ne)).add(new go.PathSegment(go.PathSegment.Line,.14953125*te,.2379375*ne)).add(new go.PathSegment(go.PathSegment.Line,.23934375*te,.3278125*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*te,.4375*ne,.21765625*te,.36059375*ne,.201875*te,.397625*ne)).add(new go.PathSegment(go.PathSegment.Line,.0625*te,.4375*ne)).add(new go.PathSegment(go.PathSegment.Line,.0625*te,.5625*ne)).add(new go.PathSegment(go.PathSegment.Line,.1938125*te,.5625*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*te,.67596875*ne,.20221875*te,.603875*ne,.21884375*te,.64228125*ne)).add(new go.PathSegment(go.PathSegment.Line,.1495625*te,.76825*ne)).add(new go.PathSegment(go.PathSegment.Line,.238*te,.8566875*ne)).add(new go.PathSegment(go.PathSegment.Line,.3316875*te,.76296875*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*te,.80621875*ne,.36353125*te,.78340625*ne,.3991875*te,.79840625*ne)).add(new go.PathSegment(go.PathSegment.Line,.43753125*te,.9375*ne)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.9375*ne)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.80621875*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*te,.760625*ne,.602375*te,.79809375*ne,.63946875*te,.78234375*ne)).add(new go.PathSegment(go.PathSegment.Line,.76828125*te,.8566875*ne)).add(new go.PathSegment(go.PathSegment.Line,.85671875*te,.76825*ne)).add(new go.PathSegment(go.PathSegment.Line,.76065625*te,.67221875*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*te,.56246875*ne,.78234375*te,.63940625*ne,.798125*te,.602375*ne)).add(new go.PathSegment(go.PathSegment.Line,.9375*te,.56246875*ne).close()).add(new go.PathSegment(go.PathSegment.Move,.5*te,.6*ne)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*te,.5*ne,.1*te,.1*ne).close()))}),go.Shape.defineFigureGenerator("Hand",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,.5*ne,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,.3*ne,0,.375*ne,.05*te,.325*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.45*te,.075*ne,.3*te,.225*ne,.4*te,.175*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.525*te,.075*ne,.46*te,.05*ne,.525*te,.05*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.4*ne,.525*te,.275*ne,.475*te,.325*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.55*ne,te,.4*ne,te,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.425*te,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.6*te,.7*ne,.675*te,.55*ne,.675*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.575*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.575*te,.85*ne,.65*te,.7*ne,.65*te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.525*te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.535*te,ne,.61*te,.85*ne,.61*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,.435*te,ne,0,ne).close()),ce}),go.Shape.defineFigureGenerator("Map",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,.2*ne,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),se.add(new go.PathSegment(go.PathSegment.Move,.25*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Move,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.8*ne)),ce}),go.Shape.defineFigureGenerator("Eject",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne*.7)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*.7).close());var ge=new go.PathFigure(0,ne*.6,!0);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,0).close()),ce}),go.Shape.defineFigureGenerator("Pencil",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ne).close()))}),go.Shape.defineFigureGenerator("Building",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(te*1,ne*1,!1);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*.85)),se.add(new go.PathSegment(go.PathSegment.Line,.046*te,ne*.85)),se.add(new go.PathSegment(go.PathSegment.Line,.046*te,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*.3)),se.add(new go.PathSegment(go.PathSegment.Line,.046*te,ne*.3)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ne*.3)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne*.3)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ne*.85)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne*.85).close());var ge=new go.PathFigure(.126*te,.85*ne,!1);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.126*te,.45*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.322*te,.45*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.322*te,.85*ne).close());var ve=new go.PathFigure(.402*te,.85*ne,!1);ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.402*te,.45*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.598*te,.45*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.598*te,.85*ne).close());var Ce=new go.PathFigure(.678*te,.85*ne,!1);ce.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,.678*te,.45*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.874*te,.45*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.874*te,.85*ne).close());var ke=new go.PathFigure(.5*te,.1*ne,!1);return ce.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*te,.3*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*te,.3*ne).close()),ce}),go.Shape.defineFigureGenerator("Staircase",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,ne*1,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.2,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.2,ne*.8)),se.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.8)),se.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.6)),se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.6)),se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.4)),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*.4)),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*.2)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.2)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.15)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.15)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.35)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.35)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.15,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.15,ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*.95).close()),ce}),go.Shape.defineFigureGenerator("5Bars",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,ne*1,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.184,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.184,ne*(1-.184)).close());var ge=new go.PathFigure(te*.204,ne,!0);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te*.204,ne*(1-.184))),ge.add(new go.PathSegment(go.PathSegment.Line,te*.388,ne*(1-.184*2))),ge.add(new go.PathSegment(go.PathSegment.Line,te*.388,ne*1).close());var ve=new go.PathFigure(te*.408,ne,!0);ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te*.408,ne*(1-.184*2))),ve.add(new go.PathSegment(go.PathSegment.Line,te*.592,ne*(1-.184*3))),ve.add(new go.PathSegment(go.PathSegment.Line,te*.592,ne*1).close());var Ce=new go.PathFigure(te*.612,ne,!0);ce.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.612,ne*(1-.184*3))),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.796,ne*(1-.184*4))),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.796,ne*1).close());var ke=new go.PathFigure(te*.816,ne,!0);return ce.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,te*.816,ne*(1-.184*4))),ke.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*(1-.184*5))),ke.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1).close()),ce}),go.Shape.defineFigureGenerator("PC",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,0).close());var ge=new go.PathFigure(te*.055,.07*ne,!0);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.07)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.1)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.055,ne*.1).close());var ve=new go.PathFigure(te*.055,.13*ne,!0);ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.13)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.16)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.055,ne*.16).close());var Ce=new go.PathFigure(te*.055,.18*ne,!0);ce.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.18)),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.21)),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.055,ne*.21).close());var ke=new go.PathFigure(te*1,0,!0);return ce.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,te*.4,0)),ke.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.65)),ke.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.65).close()),ce}),go.Shape.defineFigureGenerator("Plane",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.55*te,ne,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.475*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.35*te,.525*ne,0,.4*ne,.225*te,.45*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.475*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,.35*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.325*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.325*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.85*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.2*ne,.975*te,0,te,.08*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.45*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.95*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.55*te,ne).close()),ce}),go.Shape.defineFigureGenerator("Key",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(te*1,ne*.5,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.9,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,.35*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,.35*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.15,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.35*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.15,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.6,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.65,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.7,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.85,.575*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.9,.6*ne).close()),se.add(new go.PathSegment(go.PathSegment.Move,.17*te,.425*ne)),se.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*te,.5*ne,.075*te,.075*ne).close()),ce}),go.Shape.defineFigureGenerator("FilmTape",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!1);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,te*0,te*.3,te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.08,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.08,ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*1),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*1),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*2),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*2),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*3),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*3),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*4),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*4),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*5),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*5),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*6),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*6),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*7),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*7),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*8),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*8),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*9),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*9),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*10),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*10),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*11),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*11),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*12),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*12),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*13),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*13),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*14),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*14),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*15),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*15),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1));var ge=new go.PathFigure(0,0,!1);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*0)),ge.add(new go.PathSegment(go.PathSegment.Arc,270,-180,te*1,te*.3,te*.055)),ge.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1));var ve=new go.PathFigure(te*.11,ne*.1,!1);ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*0),ne*.1)),ve.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*0),ne*.8)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.11,ne*.8).close());var Ce=new go.PathFigure(te*(.11+.24133333*1+.028*1),ne*.1,!1);ce.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*1),ne*.1)),Ce.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*1),ne*.8)),Ce.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*1),ne*.8).close());var ke=new go.PathFigure(te*(.11+.24133333*2+.028*2),ne*.1,!1);return ce.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*3+.028*2),ne*.1)),ke.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*3+.028*2),ne*.8)),ke.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*2),ne*.8).close()),ce}),go.Shape.defineFigureGenerator("FloppyDisk",function(Me,te,ne){var ce=new go.Geometry,se=8,ge=se*Ne,ve=new go.PathFigure(se,0,!1);ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te*.86,0)),ve.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.14)),ve.add(new go.PathSegment(go.PathSegment.Line,te,ne-se)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te-se,ne,te,ne-ge,te-ge,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,se,ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-se,ge,ne,0,ne-ge)),ve.add(new go.PathSegment(go.PathSegment.Line,0,se)),ve.add(new go.PathSegment(go.PathSegment.Bezier,se,0,0,ge,ge,0).close());var Ce=new go.PathFigure(te*.83,0,!1);ce.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.83,ne*.3)),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.17,ne*.3)),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.17,ne*0).close());var ke=new go.PathFigure(te*.83,ne*1,!1);ce.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,te*.83,ne*.5)),ke.add(new go.PathSegment(go.PathSegment.Line,te*.17,ne*.5)),ke.add(new go.PathSegment(go.PathSegment.Line,te*.17,ne*1).close());var Pe=new go.PathFigure(te*.78,ne*.05,!1);return ce.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.05)),Pe.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.25)),Pe.add(new go.PathSegment(go.PathSegment.Line,te*.78,ne*.25).close()),ce}),go.Shape.defineFigureGenerator("SpeechBubble",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;(isNaN(ce)||ce<0)&&(ce=15),ce=Math.min(ce,te/3),ce=Math.min(ce,ne/3);var se=ce*Ne,ge=ne*.8,ve=new go.Geometry,Ce=new go.PathFigure(ce,0,!0);return ve.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,te-ce,0)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te,ce,te-se,0,te,se)),Ce.add(new go.PathSegment(go.PathSegment.Line,te,ge-ce)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te-ce,ge,te,ge-se,te-se,ge)),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.7,ge)),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.55,ge)),Ce.add(new go.PathSegment(go.PathSegment.Line,ce,ge)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,0,ge-ce,se,ge,0,ge-se)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,ce)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ce,0,0,se,se,0).close()),se>1?(ve.spot1=new go.Spot(0,0,se,se),ve.spot2=new go.Spot(1,.8,-se,-se)):(ve.spot1=go.Spot.TopLeft,ve.spot2=new go.Spot(1,.8)),ve}),go.Shape.defineFigureGenerator("Repeat",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(te*0,ne*.45,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*.9)),se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.9)),se.add(new go.PathSegment(go.PathSegment.Line,te*.65,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.2,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.2,ne*.45).close());var ge=new go.PathFigure(te*1,ne*.55,!0);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*1)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.55)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne*.55)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne*.1)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.1)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*0)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*0)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*.55).close()),ce}),go.Shape.defineFigureGenerator("Windows",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close()).add(new go.PathSegment(go.PathSegment.Move,.4*te,.4*ne)).add(new go.PathSegment(go.PathSegment.Line,.4*te,.8*ne)).add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne)).add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ne).close()).add(new go.PathSegment(go.PathSegment.Move,.2*te,.1*ne)).add(new go.PathSegment(go.PathSegment.Line,.2*te,.6*ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.6*ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.1*ne).close()).add(new go.PathSegment(go.PathSegment.Move,.1*te,.6*ne)).add(new go.PathSegment(go.PathSegment.Line,.1*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne).close()))}),go.Shape.defineFigureGenerator("Terminal",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(te*0,ne*.1,!1);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.9)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*.9).close());var ge=new go.PathFigure(te*.1,ne*.2,!0);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te*.1,ne*.25)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.22,ne*.285)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.1,ne*.32)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.1,ne*.37)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.275,ne*.32)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.275,ne*.25).close());var ve=new go.PathFigure(te*.28,ne*.37,!0);return ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.37)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.41)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.28,ne*.41).close()),ce}),go.Shape.defineFigureGenerator("Beaker",function(Me,te,ne){var ce=new go.Geometry,se=15,ge=se*Ne,ve=new go.PathFigure(te*.62,ne*.475,!0);return ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,ne-se)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te-se,ne,te,ne-ge,te-ge,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,se,ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-se,ge,ne,0,ne-ge)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.38,ne*.475)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.38,ne*.03)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.36,ne*0)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.64,ne*0)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.62,ne*.03).close()),ge>1?(ce.spot1=new go.Spot(0,0,ge,ge),ce.spot2=new go.Spot(1,1,-ge,-ge)):(ce.spot1=go.Spot.TopLeft,ce.spot2=go.Spot.BottomRight),ce}),go.Shape.defineFigureGenerator("Download",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(te*0,ne*1,!0);ce.add(se);var ge=.1/.3;se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.755,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.93,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.64,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.61,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.39,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.36,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.07,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*(1-ge)).close());var ve=new go.PathFigure(te*.4,ne*0,!0);return ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.44)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.26,ne*.44)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.66)),ve.add(new go.PathSegment(go.PathSegment.Line,te*(1-.26),ne*.44)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.44)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*0).close()),ce}),go.Shape.defineFigureGenerator("Bin",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(te*0,ne*1,!0);ce.add(se);var ge=.1/.3;return se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.755,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.93,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.64,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.61,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.39,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.36,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.07,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*(1-ge)).close()),ce}),go.Shape.defineFigureGenerator("Upload",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(te*0,ne*1,!0);ce.add(se);var ge=.1/.3;se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.755,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.93,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.64,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.61,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.39,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.36,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.07,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*(1-ge)).close());var ve=new go.PathFigure(te*.5,ne*0,!0);return ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te*.26,ne*.25)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.25)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.63)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.63)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.25)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.74,ne*.25).close()),ce}),go.Shape.defineFigureGenerator("EmptyDrink",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(te*.15,ne*0,!1);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.85,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*1).close()),ce}),go.Shape.defineFigureGenerator("Drink",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(te*.15,ne*0,!1);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.85,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*1).close());var ge=new go.PathFigure(te*.235,ne*.28,!0);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te*.765,ne*.28)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.655,ne*.97)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.345,ne*.97).close()),ce}),go.Shape.defineFigureGenerator("4Arrows",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(te*.5,ne*0,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.65,ne*.25)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.25)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.35)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.5)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.65)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.65,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*.65)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*.5)),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*.35)),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.25)),se.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*.25).close()),ce}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},98598:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var In={},Fn="5.0",ye={},xe=null,Ie=!1,We=!1,It=null,Qe=!1,vt=null,Ne=null,Tt=0;Tt<arguments.length;Tt++){var Ft=arguments[Tt];if(Ft!==null)switch(typeof Ft){case"number":Fn=Ft.toFixed(1);break;case"string":Ft.match(new RegExp("^[0-9]\\.[0-9]+$"))?Fn=Ft:It=Ft;break;case"object":typeof Ft.is3D!="undefined"?xe=Ft:ye=Ft;break;case"boolean":Ie=Ft,We=!0;break}}xe===null&&(xe={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ye.material_id!==void 0&&!We&&(Ie=!0)),It!==null&&ye.id===void 0&&(ye.id=It);var qe="",gt="",dt=!1,Ct=null,Me=null,te=null,ne=!1,ce=null,se=null,ge=null,ve=null,Ce=null;ye.height!==void 0&&(ye.height=Math.round(ye.height)),ye.width!==void 0&&(ye.width=Math.round(ye.width));var ke=function(bt){return parseFloat(bt)>4?parseFloat(bt):5};In.setHTML5Codebase=function(bt,Jt){Ne=bt,At(bt,Jt)},In.setJavaCodebase=In.setJavaCodebaseVersion=In.isCompiledInstalled=In.setPreCompiledScriptPath=In.setPreCompiledResourcePath=function(){},In.setHTML5CodebaseVersion=function(bt,Jt){var un=parseFloat(bt);if(un!==NaN&&un<5){console.log("The GeoGebra HTML5 codebase version "+un+" is deprecated. Using version latest instead.");return}vt=bt,je(bt,Jt)},In.getHTML5CodebaseVersion=function(){return Me},In.getParameters=function(){return ye},In.setFontsCSSURL=function(bt){ve=bt},In.setGiacJSURL=function(bt){},In.setJNLPFile=function(bt){qe=bt},In.setJNLPBaseDir=function(bt){},In.inject=function(){function bt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Jt="auto",un=ye.id,Kn,En=!1,Yn=0;Yn<arguments.length;Yn++){var St=arguments[Yn];typeof St=="string"?(St=St.toLowerCase(),St.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Jt=St:un=arguments[Yn]):typeof St=="boolean"?En=St:St instanceof HTMLElement&&(Kn=St)}Vn();function Vn(){if(!Qe){setTimeout(Vn,200);return}Jt=Qt(Jt);var Cn=Kn||document.getElementById(un);if(!Cn){console.log("possibly bug on ajax loading? ");return}if(In.removeExistingApplet(Cn,!1),ye.width===void 0&&Cn.clientWidth&&(ye.width=Cn.clientWidth),ye.height===void 0&&Cn.clientHeight&&(ye.height=Cn.clientHeight),!(ye.width&&ye.height)&&Jt==="html5"&&(delete ye.width,delete ye.height),Ct=Jt,Jt==="screenshot")$e(Cn,ye);else{var Si=!1;ye.hasOwnProperty("playButton")&&ye.playButton||ye.hasOwnProperty("clickToLoad")&&ye.clickToLoad?Si=!0:ye.hasOwnProperty("playButtonAutoDecide")&&ye.playButtonAutoDecide&&(Si=(!Pe()||bt())&&Te()),Si?(Ct="screenshot",Ht(Cn,ye,En,Jt)):kt(Cn,ye,En)}}};function Pe(){try{return window.self!==window.top}catch(bt){return!0}}function Te(){return ye.hasOwnProperty("screenshotGenerator")&&ye.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}In.getViews=function(){return xe},In.isJavaInstalled=function(){return!1};var Ke=function(bt){var Jt=function(Yn){var St=JSON.parse(Yn),Vn=function(Bn){return Bn.type=="G"||Bn.type=="E"},Cn=St.elements?St.elements.filter(Vn)[0]:St;if(!Cn||!Cn.url){un();return}ye.fileName=Cn.url,et(Cn.settings||{}),xe.is3D=!0;var Si="https://www.geogebra.org/images/";In.setPreviewImage(ce||Cn.previewUrl,Si+"GeoGebra_loading.png",Si+"applet_play.png"),bt()},un=function(){ye.onError&&ye.onError(),wn("Error: Fetching material (id "+ye.material_id+") failed.",ye)},Kn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",En="/materials/"+ye.material_id+"?scope=basic";Xe("https://"+Kn+"/api/proxy.php?path="+encodeURIComponent(En),Jt,un)};function et(bt){var Jt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(un){bt[un]=!!bt[un]}),Jt.forEach(function(un){ye[un]===void 0&&bt[un]!==void 0&&(ye[un]=bt[un])}),ye.showToolBarHelp===void 0&&(ye.showToolBarHelp=ye.showToolBar)}function Xe(bt,Jt,un){var Kn=new XMLHttpRequest;Kn.open("GET",bt),Kn.onload=function(){Jt(Kn.responseText)},Kn.onerror=un,Kn.send()}In.isHTML5Installed=function(){return!0},In.getLoadedAppletType=function(){return Ct},In.setPreviewImage=function(bt,Jt,un){ce=bt,se=Jt,ge=un},In.removeExistingApplet=function(bt,Jt){var un;typeof bt=="string"&&(bt=document.getElementById(bt)),Ct=null;var Kn=null;for(un=0;un<bt.childNodes.length;un++){var En=bt.childNodes[un],Yn=En.className;Yn==="applet_screenshot"?Jt?(En.style.display="block",Ct="screenshot"):En.style.display="none":Yn!=="applet_scaler prerender"&&(bt.removeChild(En),Kn=Yn&&Yn.indexOf("appletParameters")!=-1?En.id:null,un--)}var St=ye.id!==void 0?ye.id:Kn,Vn=window[St];Vn&&typeof Vn.getBase64=="function"&&(Vn.remove(),window[St]=null)},In.refreshHitPoints=function(){if(ke(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var bt=In.getAppletObject();return bt&&typeof bt.recalculateEnvironments=="function"?(bt.recalculateEnvironments(),!0):!1},In.startAnimation=function(){var bt=In.getAppletObject();return bt&&typeof bt.startAnimation=="function"?(bt.startAnimation(),!0):!1},In.stopAnimation=function(){var bt=In.getAppletObject();return bt&&typeof bt.stopAnimation=="function"?(bt.stopAnimation(),!0):!1},In.getAppletObject=function(){var bt=ye.id!==void 0?ye.id:"ggbApplet";return window[bt]},In.resize=function(){};var ft=function(bt,Jt,un){var Kn=document.createElement("param");Kn.setAttribute("name",Jt),Kn.setAttribute("value",un),bt.appendChild(Kn)},Ge=function(bt){return bt&&bt!=="false"},kt=function(bt,Jt,un){ke(Me)<=4.2&&(un=!0);var Kn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Me||ggbHTML5LoadedCodebaseIsWebSimple&&!ne)&&(Kn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var En=document.createElement("div");En.classList.add("appletParameters","notranslate");var Yn=Jt.width,St=Jt.height;if(Jt.disableAutoScale=Jt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Jt.disableAutoScale,Jt.width!==void 0)if(ke(Me)<=4.4)Ge(Jt.showToolBar)&&(Jt.height-=7),Ge(Jt.showAlgebraInput)&&(Jt.height-=37),Jt.width<605&&Ge(Jt.showToolBar)&&(Jt.width=605,Yn=605);else{var Vn=100;(Ge(Jt.showToolBar)||Ge(Jt.showMenuBar))&&(Jt.hasOwnProperty("customToolBar")&&(Jt.customToolbar=Jt.customToolBar),Vn=Ge(Jt.showMenuBar)?245:155),Yn<Vn&&(Jt.width=Vn,Yn=Vn)}En.style.border="none",En.style.display="inline-block";for(var Cn in Jt)Jt.hasOwnProperty(Cn)&&Cn!=="appletOnLoad"&&En.setAttribute("data-param-"+Cn,Jt[Cn]);ve&&En.setAttribute("data-param-fontscssurl",ve),In.resize=function(){GGBAppletUtils.responsiveResize(bt,Jt)},window.addEventListener("resize",function(me){In.resize()});var Si=typeof Jt.appletOnLoad=="function"?Jt.appletOnLoad:function(){};if(!un&&Jt.width!==void 0){Jt.hasOwnProperty("showSplash")||En.setAttribute("data-param-showSplash","false");var Bn=bt.querySelector(".applet_scaler.prerender"),tn=Bn!==null;if(tn)var $t=Bn.querySelector(".ggb_preview");else{var $t=Bt(Yn,St,Jt.borderColor,!1);Bn=document.createElement("div"),Bn.className="applet_scaler",Bn.style.position="relative",Bn.style.display="block",Bn.style.width=Yn+"px",Bn.style.height=St+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Bn,"66%"),ke(Me)>=5?(Jt.appletOnLoad=function(me){var De=bt.querySelector(".ggb_preview");De&&De.parentNode.removeChild(De),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Bn),window.GGBT_wsf_view&&$(window).trigger("resize"),Si(me)},tn||Bn.appendChild($t)):En.appendChild($t),Bn.appendChild(En),tn||bt.appendChild(Bn),setTimeout(function(){In.resize()},1)}else{var ct=document.createElement("div");ct.className="applet_scaler",ct.style.position="relative",ct.style.display="block",ct.appendChild(En),bt.appendChild(ct),Jt.appletOnLoad=function(me){In.resize(),Si(me)}}function ze(me,De){De&&typeof De.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(me,De.appletOnLoad):renderGGBElement(me),wn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",De)}function Ut(me,De){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:me,params:De}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Re){ze(Re.article,Re.params)}),html5AppletsToProcess=null)},ke(Me)<5&&(me.className+=" geogebraweb")):ze(me,De)}if(Kn){scriptLoadStarted=!0;for(var Gt=0;Gt<En.childNodes.length;Gt++){var at=En.childNodes[Gt].tagName;at==="TABLE"&&(En.removeChild(En.childNodes[Gt]),Gt--)}if(ggbHTML5LoadedScript!==null){var Ve=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ve!=null&&Ve.parentNode.removeChild(Ve)}var Be=document.createElement("script"),we=function(){Ut(En,Jt)};Be.src=gt+te,ggbHTML5LoadedCodebaseIsWebSimple=ne,ggbHTML5LoadedCodebaseVersion=Me,ggbHTML5LoadedScript=Be.src,wn("GeoGebra HTML5 codebase loaded: '"+gt+"'.",Jt),!Ne&&(!vt||vt=="5.0")?(ne?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),we()):gt.requirejs?__webpack_require__.e(7374).then(function(){var me=[__webpack_require__(97374)];we.apply(null,me)}.bind(this)).catch(__webpack_require__.oe):(Be.onload=we,bt.appendChild(Be))}else Ut(En,Jt);Jt.height=St,Jt.width=Yn},$e=function(bt,Jt,un){var Kn=Bt(Jt.width,Jt.height,Jt.borderColor,un),En=document.createElement("div");En.style.position="relative",En.style.display="block",En.style.width=Jt.width+"px",En.style.height=Jt.height+"px",En.className="applet_screenshot applet_scaler"+(un?" applet_screenshot_play":""),En.appendChild(Kn);var Yn=GGBAppletUtils.getScale(Jt,bt,un);un?(bt.appendChild(Yt()),window.GGBT_wsf_view||(bt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(En,"66%"),bt.appendChild(En),Yn!==1&&!isNaN(Yn)&&(GGBAppletUtils.scaleElement(En,Yn),En.style.width=Jt.width+"px",En.style.height=Jt.height+"px",En.parentNode.style.width=Jt.width*Yn+"px",En.parentNode.style.height=Jt.height*Yn+"px"),In.resize=function(){zt(bt,Kn,En,un)},window.addEventListener("resize",function(St){In.resize()}),In.resize()};function zt(bt,Jt,un,Kn){if(bt.contains(Jt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(bt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(bt)}var En=GGBAppletUtils.getScale(ye,bt,Kn);un.parentNode!==null&&(!isNaN(En)&&En!==1?(GGBAppletUtils.scaleElement(un,En),un.parentNode.style.width=ye.width*En+"px",un.parentNode.style.height=ye.height*En+"px"):(GGBAppletUtils.scaleElement(un,1),un.parentNode.style.width=ye.width+"px",un.parentNode.style.height=ye.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(bt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}In.onExitFullscreen=function(bt,Jt){Jt.appendChild(bt)};var Ht=function(bt,Jt,un,Kn){$e(bt,Jt,!0);for(var En=function(){var Vn=[];for(St=0;St<bt.childNodes.length;St++)Vn.push(bt.childNodes[St]);if(window.GGBT_wsf_view){var Cn=window.GGBT_wsf_view.renderFullScreen(bt,Jt.id),Si=document.getElementById("fullscreencontainer"),Bn=jQuery(bt).find(".fullscreencontent");Bn.length>0?(Cn.remove(),Bn.attr("id","fullscreencontent").show(),jQuery(Si).append(Bn),window.dispatchEvent(new Event("resize"))):kt(Cn,Jt,!1),window.GGBT_wsf_view.launchFullScreen(Si)}else Ct=Kn,kt(bt,Jt,!1);if(!window.GGBT_wsf_view)for(St=0;St<Vn.length;St++)bt.removeChild(Vn[St])},Yn=bt.getElementsByClassName("ggb_preview_play"),St=0;St<Yn.length;St++)Yn[St].addEventListener("click",En,!1),Yn[St].addEventListener("ontouchstart",En,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(bt),Te()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Yt=function(){var bt=document.createElement("div");if(bt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Jt='.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");}',un=document.createElement("style");un.styleSheet?un.styleSheet.cssText=Jt:un.appendChild(document.createTextNode(Jt)),document.getElementsByTagName("head")[0].appendChild(un)}return bt},Bt=function(bt,Jt,un,Kn){var En=document.createElement("div");En.className="ggb_preview",En.style.position="absolute",En.style.zIndex="90",En.style.width=bt-2+"px",En.style.height=Jt-2+"px",En.style.top="0px",En.style.left="0px",En.style.overflow="hidden",En.style.backgroundColor="white";var Yn="lightgrey";un!==void 0&&(un==="none"?Yn="transparent":Yn=un),En.style.border="1px solid "+Yn;var St=document.createElement("img");if(St.style.position="relative",St.style.zIndex="1000",St.style.top="-1px",St.style.left="-1px",ce!==null&&St.setAttribute("src",ce),St.style.opacity=.7,se!==null){var Vn,Cn,Si;if(!Kn){Vn=document.createElement("img"),Vn.style.position="absolute",Vn.style.zIndex="1001",Vn.style.opacity=1,St.style.opacity=.3,Cn=360,Cn>bt/4*3&&(Cn=bt/4*3),Si=Cn/5.8,Vn.setAttribute("src",se),Vn.setAttribute("width",Cn),Vn.setAttribute("height",Si);var Bn=(bt-Cn)/2,tn=(Jt-Si)/2;Vn.style.left=Bn+"px",Vn.style.top=tn+"px",En.appendChild(Vn)}}return En.appendChild(St),En},Qt=function(bt){return bt=bt.toLowerCase(),bt==="html5"||bt==="screenshot"?bt:"html5"},ht=["web","webSimple","web3d","tablet","tablet3d","phone"],je=function(bt,Jt){if(Me=bt,Jt){At(Me,!0);return}var un=!Ie;if(un){var Kn=ke(Me);!isNaN(Kn)&&Kn<4.4&&(un=!1)}var En,Yn;window.location.protocol.substr(0,4)==="http"?En=window.location.protocol:En="http:";var St=Me.indexOf("//");St>0?Yn=Me:St===0?Yn=En+Me:Yn="https://www.geogebra.org/apps/5.2.814.0/";for(var Vn in ht)if(Me.slice(ht[Vn].length*-1)===ht[Vn]||Me.slice((ht[Vn].length+1)*-1)===ht[Vn]+"/"){At(Yn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&un&&!xe.is3D&&!xe.AV&&!xe.SV&&!xe.CV&&!xe.EV2&&!xe.CP&&!xe.PC&&!xe.DA&&!xe.FI&&!xe.PV&&!Ge(ye.showToolBar)&&!Ge(ye.showMenuBar)&&!Ge(ye.showAlgebraInput)&&!Ge(ye.enableRightClick)&&(!ye.appName||ye.appName=="classic")?Yn+="webSimple/":Yn+="web3d/",At(Yn,!1)},At=function(bt,Jt){if(bt.requirejs){gt=bt;return}bt.slice(-1)!=="/"&&(bt+="/"),gt=bt,Jt===null&&(Jt=bt.indexOf("http")===-1),dt=Jt,te="web.nocache.js",ne=!1;var un=gt.split("/");un.length>1&&(!Jt&&un[un.length-2]==="webSimple"?(te="webSimple.nocache.js",ne=!0):ht.indexOf(un[un.length-2])>=0&&(te=un[un.length-2]+".nocache.js")),un=bt.split("/"),Me=un[un.length-3],Me.substr(0,4)==="test"?Me=Me.substr(4,1)+"."+Me.substr(5,1):(Me.substr(0,3)==="war"||Me.substr(0,4)==="beta")&&(Me="5.0");var Kn=parseFloat(Me);Kn!==NaN&&Kn<5&&bt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Kn+" is deprecated. Using version latest instead."),je("5.0",Jt))},wn=function(bt,Jt){window.console&&window.console.log&&(!Jt||typeof Jt.showLogging=="undefined"||Jt.showLogging&&Jt.showLogging!=="false")&&console.log(bt)};ye.material_id!==void 0?Ke(rn):rn();function rn(){var bt=Fn;vt!==null?bt=vt:parseFloat(bt)<5&&(bt="5.0"),je(bt,!1),Ne!==null&&At(Ne,dt),Qe=!0}return In},GGBAppletUtils=function(){"use strict";function In(){return window.GGBT_wsf_edit!==void 0}function Fn(Qe,vt){vt!=1?(Qe.style.transformOrigin="0% 0% 0px",Qe.style.webkitTransformOrigin="0% 0% 0px",Qe.style.transform="scale("+vt+","+vt+")",Qe.style.webkitTransform="scale("+vt+","+vt+")",Qe.style.maxWidth="initial",Qe.querySelector(".ggb_preview")!==null&&(Qe.querySelector(".ggb_preview").style.maxWidth="initial"),Qe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Qe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Qe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Qe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Qe.style.transform="none",Qe.style.webkitTransform="none")}function ye(Qe,vt,Ne,Tt,Ft,qe){var gt=null;if(qe!=null&&qe!="")for(var dt=Qe.parentNode;dt!=null;)if((" "+dt.className+" ").indexOf(" "+qe+" ")>-1){gt=dt;break}else dt=dt.parentNode;var Ct=0,Me=0,te=0,ne=0,ce=0,se=0,ge=0;if(gt)Ct=gt.offsetWidth,Me=Math.max(Tt?gt.offsetWidth:0,gt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ct=Math.min(window.innerWidth,document.documentElement.clientWidth),Me=Math.min(window.innerHeight,document.documentElement.clientHeight),te=Ct):(Ct=window.innerWidth,Me=window.innerHeight,te=window.innerWidth),Qe){var ve=Qe.getBoundingClientRect();ve.left>0&&ve.left<=Ct&&(Ft===void 0||!Ft)&&(document.dir==="rtl"?(ce=Ct-ve.width-ve.left,se=te<=480?10:30):(se=ve.left,ce=te<=480?10:30),ne=se+ce)}if(Qe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Ce=Qe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ne=40,ge=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ne=0,ge=40)}}return Qe&&((Ne===void 0||!Ne)&&vt>0&&vt+ne<Ct?Ct=vt:Ct-=ne,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ne===void 0||!Ne)&&(Me-=ge)),{width:Ct,height:Me}}function xe(Qe,vt,Ne,Tt,Ft){if(Qe.isScreenshoGenerator)return 1;var qe=Tt!==void 0&&Tt,gt=Qe.noScaleMargin!=null&&Qe.noScaleMargin,dt=function(Ce){return Ce&&Ce!=="false"},Ct=dt(Qe.autoHeight),Me=ye(vt,Qe.width,Ne,Ct,qe&&window.GGBT_wsf_view||gt,Ft),te=parseInt(Me.width),ne=Qe.width,ce=Qe.height;if(ne===void 0){var se=vt.querySelector(".appletParameters");se&&(ne=se.offsetWidth,ce=se.offsetHeight)}var ge=te/ne,ve=qe?1:Me.height/ce;return Ne!==void 0&&!Ne&&(ge=Math.min(1,ge),ve=Math.min(1,ve)),Math.min(ge,ve)}function Ie(Qe,vt,Ne){var Tt=1,Ft,qe=!1;if(Qe.hasOwnProperty("allowUpscale")&&(qe=Qe.allowUpscale),Qe.hasOwnProperty("scale")&&(Tt=parseFloat(Qe.scale),(isNaN(Tt)||Tt===null||Tt===0)&&(Tt=1),Tt>1&&(qe=!0)),vt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(qe=!0),!(Qe.hasOwnProperty("disableAutoScale")&&Qe.disableAutoScale))Ft=xe(Qe,vt,qe,Ne,Qe.scaleContainerClass);else return Tt;return qe&&(!Qe.hasOwnProperty("scale")||Tt===1)?Ft:Math.min(Tt,Ft)}function We(Qe){var vt=Math.min(window.innerWidth,document.documentElement.clientWidth),Ne=Math.min(window.innerHeight,document.documentElement.clientHeight),Tt=Qe.getBoundingClientRect(),Ft=(vt-Tt.width)/2,qe=(Ne-Tt.height)/2;qe<0&&(qe=0),Qe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ft<40?Qe.style.left="40px":Qe.style.left=Ft+"px",Qe.style.top=qe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(qe<40?Qe.style.top="40px":Qe.style.top=qe+"px",Qe.style.left=Ft+"px")}function It(Qe,vt){var Ne=Qe.querySelector(".appletParameters");if(Ne){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(vt.id!==Ne.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Qe)}if(Ne.parentElement&&/fullscreen/.test(Ne.parentElement.className))return;var Tt=Ie(vt,Qe);In()&&Ne.setAttribute("data-param-scale",Tt);for(var Ft=null,qe=0;qe<Qe.childNodes.length;qe++)if(Qe.childNodes[qe].className!==void 0&&Qe.childNodes[qe].className.match(/^applet_scaler/)){Ft=Qe.childNodes[qe];break}if(Ft!==null&&Ft.querySelector(".noscale")!==null)return;var gt=vt.id!==void 0?vt.id:"ggbApplet",dt=window[gt];(dt==null||!dt.recalculateEnvironments)&&Ft!==null&&!Ft.className.match(/fullscreen/)&&(Ft.parentNode.style.transform="",!isNaN(Tt)&&Tt!==1?(Ft.parentNode.style.width=vt.width*Tt+"px",Ft.parentNode.style.height=vt.height*Tt+"px",Fn(Ft,Tt)):(Fn(Ft,1),Ft.parentNode.style.width=vt.width+"px",Ft.parentNode.style.height=vt.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&We(Qe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ne).parents(".content-added-content"))}}return{responsiveResize:It,isFlexibleWorksheetEditor:In,positionCenter:We,getScale:Ie,scaleElement:Fn}}();__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 In=n.location.search;return In.indexOf(J)!=-1||In.indexOf(K)!=-1}function q(In,Fn){}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(In){var Fn=s[L].bindings;s[L].bindings=function(){for(var ye=Fn?Fn():{},xe=In[webModule.__softPermutationId],Ie=O;Ie<xe.length;Ie++){var We=xe[Ie];ye[We[O]]=We[P]}return ye}};var t;function u(){return v(),t}function v(){if(!t){var In=o.createElement(Q);if(In.id=L,In.style.cssText=R+S,In.tabIndex=-1,o.body.appendChild(In),t=In.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Fn=document.compatMode==U?V:W;t.write(Fn+X),t.close()}}}function w(In){function Fn(xe){function Ie(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var We=Ie();if(We){xe();return}function It(){if(!We){if(!Ie())return;We=!0,xe(),o.removeEventListener&&o.removeEventListener(Z,It,!1),Qe&&clearInterval(Qe)}}o.addEventListener&&o.addEventListener(Z,It,!1);var Qe=setInterval(function(){It()},$)}function ye(xe){var Ie=u(),We=Ie.body,It=Ie.createElement(_);It.language=ab,It.crossOrigin=W,It.src=xe,webModule.__errFn&&(It.onerror=function(){webModule.__errFn(L,new Error(bb+xe))}),We.appendChild(It)}Fn(function(){ye(In)})}webModule.__startLoadingFragment=function(In){return C(In)},webModule.__installRunAsyncCode=function(In){var Fn=u(),ye=Fn.body,xe=Fn.createElement(_);xe.language=ab,xe.text=In,ye.appendChild(xe),ye.removeChild(xe)};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(In){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(In){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(In){var Fn=c[In];return Fn==null?null:Fn},r=d,webModule.__errFn=e}function B(){function In(Qe){var vt=Qe.lastIndexOf(rb);vt==-1&&(vt=Qe.length);var Ne=Qe.indexOf(sb);Ne==-1&&(Ne=Qe.length);var Tt=Qe.lastIndexOf(tb,Math.min(Ne,vt));return Tt>=O?Qe.substring(O,Tt+P):W}function Fn(Qe){if(!Qe.match(/^\w+:\/\//)){var vt=o.createElement(ub);vt.src=Qe+vb,Qe=In(vt.src)}return Qe}function ye(){var Qe=__gwt_getMetaProperty(wb);return Qe!=null?Qe:W}function xe(){for(var Qe=o.getElementsByTagName(_),vt=O;vt<Qe.length;++vt)if(Qe[vt].src.indexOf(xb)!=-1)return In(Qe[vt].src);return W}function Ie(){var Qe=o.getElementsByTagName(yb);return Qe.length>O?Qe[Qe.length-P].href:W}function We(){var Qe=o.location;return Qe.href==Qe.protocol+zb+Qe.host+Qe.pathname+Qe.search+Qe.hash}var It=ye();return It==W&&(It=xe()),It==W&&(It=Ie()),It==W&&We()&&(It=In(o.location.href)),It=Fn(It),It}function C(In){return In.match(/^\//)||In.match(/^[a-zA-Z]+:\/\//)?In:webModule.__moduleBase+In}function D(){var In=[],Fn=O,ye=[],xe=[];function Ie(Qe){var vt=xe[Qe](),Ne=ye[Qe];if(vt in Ne)return vt;var Tt=[];for(var Ft in Ne)Tt[Ne[Ft]]=Ft;throw r&&r(Qe,Tt,vt),null}if(__gwt_isKnownPropertyValue=function(Qe,vt){return vt in ye[Qe]},webModule.__getPropMap=function(){var Qe={};for(var vt in ye)ye.hasOwnProperty(vt)&&(Qe[vt]=Ie(vt));return Qe},webModule.__computePropValue=Ie,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var We;try{We=Cb;var It=We.indexOf(Db);It!=-1&&(Fn=parseInt(We.substring(It+P),$),We=We.substring(O,It))}catch(Qe){}return webModule.__softPermutationId=Fn,C(We+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},58788:function(In,Fn,ye){"use strict";ye.d(Fn,{Ax:function(){return It},Ds:function(){return Qe},KI:function(){return Ne},SI:function(){return We},f1:function(){return Ie}});var xe=ye(10148);function Ie(Tt){let Ft=!0;if(Tt.length>0){for(let qe=0;qe<Tt.length;qe++)if(Tt[qe].compile_success==0||!Tt[qe].compile_success){Ft=!1;break}}else Ft=!1;return Ft}function We(Tt,Ft=""){let qe=[];for(let gt=0;gt<Tt.length;gt++){let dt=Tt[gt],Ct=Ft?`${Ft}/${dt.name}`:`${dt.name}`;qe.push({title:dt.name,type:dt.type,isLeaf:dt.type!=="tree",key:Ct})}return qe}function It(Tt,Ft,qe){for(let gt=0;gt<Tt.length;gt++){let dt=Tt[gt];if(dt.key===Ft){dt.children=qe;break}dt.children&&It(dt.children,Ft,qe)}return Tt}function Qe(Tt,Ft,qe){let gt;return function(){let dt=this,Ct=arguments,Me=function(){gt=null,qe||Tt.apply(dt,Ct)},te=qe&&!gt;clearTimeout(gt),gt=setTimeout(Me,Ft),te&&Tt.apply(dt,Ct)}}const vt=!0,Ne=xe.Z.API_SERVER},65983:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Ve}});var xe=ye(59301),Ie={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},We=ye(92310),It=ye.n(We),Qe=ye(71418);var vt=function(Be,we){return(vt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(me,De){me.__proto__=De}||function(me,De){for(var Re in De)Object.prototype.hasOwnProperty.call(De,Re)&&(me[Re]=De[Re])})(Be,we)};function Ne(Be,we){function me(){this.constructor=Be}vt(Be,we),Be.prototype=we===null?Object.create(we):(me.prototype=we.prototype,new me)}function Tt(Be,we,me,De){return new(me||(me=Promise))(function(Re,Le){function st(ln){try{sn(De.next(ln))}catch(Hn){Le(Hn)}}function Vt(ln){try{sn(De.throw(ln))}catch(Hn){Le(Hn)}}function sn(ln){var Hn;ln.done?Re(ln.value):(Hn=ln.value,Hn instanceof me?Hn:new me(function(wi){wi(Hn)})).then(st,Vt)}sn((De=De.apply(Be,we||[])).next())})}function Ft(Be,we){var me,De,Re,Le,st={label:0,sent:function(){if(1&Re[0])throw Re[1];return Re[1]},trys:[],ops:[]};return Le={next:Vt(0),throw:Vt(1),return:Vt(2)},typeof Symbol=="function"&&(Le[Symbol.iterator]=function(){return this}),Le;function Vt(sn){return function(ln){return function(Hn){if(me)throw new TypeError("Generator is already executing.");for(;st;)try{if(me=1,De&&(Re=2&Hn[0]?De.return:Hn[0]?De.throw||((Re=De.return)&&Re.call(De),0):De.next)&&!(Re=Re.call(De,Hn[1])).done)return Re;switch(De=0,Re&&(Hn=[2&Hn[0],Re.value]),Hn[0]){case 0:case 1:Re=Hn;break;case 4:return st.label++,{value:Hn[1],done:!1};case 5:st.label++,De=Hn[1],Hn=[0];continue;case 7:Hn=st.ops.pop(),st.trys.pop();continue;default:if(Re=st.trys,!((Re=Re.length>0&&Re[Re.length-1])||Hn[0]!==6&&Hn[0]!==2)){st=0;continue}if(Hn[0]===3&&(!Re||Hn[1]>Re[0]&&Hn[1]<Re[3])){st.label=Hn[1];break}if(Hn[0]===6&&st.label<Re[1]){st.label=Re[1],Re=Hn;break}if(Re&&st.label<Re[2]){st.label=Re[2],st.ops.push(Hn);break}Re[2]&&st.ops.pop(),st.trys.pop();continue}Hn=we.call(Be,st)}catch(wi){Hn=[6,wi],De=0}finally{me=Re=0}if(5&Hn[0])throw Hn[1];return{value:Hn[0]?Hn[1]:void 0,done:!0}}([sn,ln])}}}function qe(){for(var Be=0,we=0,me=arguments.length;we<me;we++)Be+=arguments[we].length;var De=Array(Be),Re=0;for(we=0;we<me;we++)for(var Le=arguments[we],st=0,Vt=Le.length;st<Vt;st++,Re++)De[Re]=Le[st];return De}var gt=function(){function Be(){}return Be.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Be.setAttributes=function(we,me){for(var De=0,Re=me;De<Re.length;De++){var Le=Re[De],st=Le[0],Vt=Le[1];we.setAttribute(st,Vt)}},Be.createRect=function(we,me,De){var Re=document.createElementNS("http://www.w3.org/2000/svg","rect");return Re.setAttribute("width",we.toString()),Re.setAttribute("height",me.toString()),De&&Be.setAttributes(Re,De),Re},Be.createLine=function(we,me,De,Re,Le){var st=document.createElementNS("http://www.w3.org/2000/svg","line");return st.setAttribute("x1",we.toString()),st.setAttribute("y1",me.toString()),st.setAttribute("x2",De.toString()),st.setAttribute("y2",Re.toString()),Le&&Be.setAttributes(st,Le),st},Be.createPolygon=function(we,me){var De=document.createElementNS("http://www.w3.org/2000/svg","polygon");return De.setAttribute("points",we),me&&Be.setAttributes(De,me),De},Be.createCircle=function(we,me){var De=document.createElementNS("http://www.w3.org/2000/svg","circle");return De.setAttribute("cx",(we/2).toString()),De.setAttribute("cy",(we/2).toString()),De.setAttribute("r",we.toString()),me&&Be.setAttributes(De,me),De},Be.createEllipse=function(we,me,De){var Re=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Re.setAttribute("cx",(we/2).toString()),Re.setAttribute("cy",(me/2).toString()),Re.setAttribute("rx",(we/2).toString()),Re.setAttribute("ry",(me/2).toString()),De&&Be.setAttributes(Re,De),Re},Be.createGroup=function(we){var me=document.createElementNS("http://www.w3.org/2000/svg","g");return we&&Be.setAttributes(me,we),me},Be.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Be.createMarker=function(we,me,De,Re,Le,st,Vt){var sn=document.createElementNS("http://www.w3.org/2000/svg","marker");return Be.setAttributes(sn,[["id",we],["orient",me],["markerWidth",De.toString()],["markerHeight",Re.toString()],["refX",Le.toString()],["refY",st.toString()]]),sn.appendChild(Vt),sn},Be.createText=function(we){var me=document.createElementNS("http://www.w3.org/2000/svg","text");return me.setAttribute("x","0"),me.setAttribute("y","0"),we&&Be.setAttributes(me,we),me},Be.createTSpan=function(we,me){var De=document.createElementNS("http://www.w3.org/2000/svg","tspan");return De.textContent=we,me&&Be.setAttributes(De,me),De},Be.createImage=function(we){var me=document.createElementNS("http://www.w3.org/2000/svg","image");return we&&Be.setAttributes(me,we),me},Be.createPoint=function(we,me){var De=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return De.x=we,De.y=me,De},Be.createPath=function(we,me){var De=document.createElementNS("http://www.w3.org/2000/svg","path");return De.setAttribute("d",we),me&&Be.setAttributes(De,me),De},Be}(),dt=function(){function Be(){}return Be.addKey=function(we){Be.key=we},Object.defineProperty(Be,"isLicensed",{get:function(){return!!Be.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Be.key)},enumerable:!1,configurable:!0}),Be}(),Ct=function(){function Be(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Be.prototype.rasterize=function(we,me,De){var Re=this;return new Promise(function(Le){var st=De!==void 0?De:document.createElement("canvas");we===null&&(Re.markersOnly=!0,Re.naturalSize=!1);var Vt=document.createElementNS("http://www.w3.org/2000/svg","svg");Vt.setAttribute("xmlns","http://www.w3.org/2000/svg"),Vt.setAttribute("width",me.width.baseVal.valueAsString),Vt.setAttribute("height",me.height.baseVal.valueAsString),Vt.setAttribute("viewBox","0 0 "+me.viewBox.baseVal.width.toString()+" "+me.viewBox.baseVal.height.toString()),Vt.innerHTML=me.innerHTML,Re.naturalSize===!0?(Vt.width.baseVal.value=we.naturalWidth,Vt.height.baseVal.value=we.naturalHeight):Re.width!==void 0&&Re.height!==void 0&&(Vt.width.baseVal.value=Re.width,Vt.height.baseVal.value=Re.height),st.width=Vt.width.baseVal.value,st.height=Vt.height.baseVal.value;var sn=Vt.outerHTML,ln=st.getContext("2d");Re.markersOnly!==!0&&ln.drawImage(we,0,0,st.width,st.height);var Hn=window.URL,wi=new Image(st.width,st.height);wi.setAttribute("crossOrigin","anonymous");var Pi=new Blob([sn],{type:"image/svg+xml"}),Ri=Hn.createObjectURL(Pi);wi.onload=function(){ln.drawImage(wi,0,0),Hn.revokeObjectURL(Ri);var Zi=st.toDataURL(Re.imageType,Re.imageQuality);Le(Zi)},wi.src=Ri})},Be}(),Me=function(){},te=function(){function Be(we){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+we+"_"}return Object.defineProperty(Be.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Be.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(Be.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Be.prototype.addClass=function(we){return this.styleSheet===void 0&&this.addStyleSheet(),we.name=""+this.classNamePrefix+we.localName,this.classes.push(we),this.styleSheet.sheet.insertRule("."+we.name+" {"+we.style+"}",this.styleSheet.sheet.cssRules.length),we},Be.prototype.addRule=function(we){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(we),this.styleSheet.sheet.insertRule(we.selector+" {"+we.style+"}",this.styleSheet.sheet.cssRules.length)},Be.prototype.addStyleSheet=function(){var we;this.styleSheet=document.createElement("style"),((we=this.styleSheetRoot)!==null&&we!==void 0?we:document.head).appendChild(this.styleSheet),this.addRule(new ne("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new ne("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new ne("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new ce("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new ce("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},Be.prototype.removeStyleSheet=function(){var we;this.styleSheet&&(((we=this.styleSheetRoot)!==null&&we!==void 0?we:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Be}(),ne=function(Be,we){this.selector=Be,this.style=we},ce=function(Be,we){this.localName=Be,this.style=we},se=function(){function Be(we,me,De,Re,Le){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=we,this.displayMode=me,this.markerItems=De,this.uiStyleSettings=Re,this.styles=Le,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Be.prototype.show=function(we){var me=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=we,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var De=document.createElement("div");De.className=this.toolbarBlockStyleClass.name,De.style.whiteSpace="nowrap",this.uiContainer.appendChild(De),this.addActionButton(De,'<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(De,'<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(De,'<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(De,'<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(De,'<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(De,'<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(De,'<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(De,'<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(Le){var st=document.createElement("div");st.className=""+me.toolbarButtonStyleClass.name,st.setAttribute("data-type-name",Le.typeName),st.innerHTML=Le.icon,st.addEventListener("click",function(){me.markerToolbarButtonClicked(st,Le)}),me.buttons.push(st),me.markerButtons.push(st)}),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 Re=document.createElement("div");Re.className=this.toolbarBlockStyleClass.name,Re.style.whiteSpace="nowrap",Re.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Re),this.addActionButton(Re,'<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(Re,'<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()},Be.prototype.addButtonClickListener=function(we){this.buttonClickListeners.push(we)},Be.prototype.removeButtonClickListener=function(we){this.buttonClickListeners.indexOf(we)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(we),1)},Be.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Be.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var we=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var me=0;me<this.markerButtons.length;me++)me<we||me===we&&this.markerButtons.length-1===we?this.markerButtonBlock.appendChild(this.markerButtons[me]):(me===we&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[me]))}},Be.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")},Be.prototype.resetButtonStyles=function(){var we=this;this.buttons.forEach(function(me){me.className=me.className.replace(we.uiStyleSettings.toolbarButtonStyleColorsClassName?we.uiStyleSettings.toolbarButtonStyleColorsClassName:we.toolbarButtonStyleColorsClass.name,"").trim(),me.className=me.className.replace(we.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?we.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:we.toolbarActiveButtonStyleColorsClass.name,"").trim(),me.className+=" "+(we.uiStyleSettings.toolbarButtonStyleColorsClassName?we.uiStyleSettings.toolbarButtonStyleColorsClassName:we.toolbarButtonStyleColorsClass.name)})},Be.prototype.addActionButton=function(we,me,De){var Re=this,Le=document.createElement("div");switch(Le.className=""+this.toolbarButtonStyleClass.name,Le.innerHTML=me,Le.setAttribute("data-action",De),Le.addEventListener("click",function(){Re.actionToolbarButtonClicked(Le,De)}),De){case"select":Le.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Le.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Le.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Le.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Le.style.fill=this.uiStyleSettings.closeButtonColor}we.appendChild(Le),this.buttons.push(Le)},Be.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ce("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 ce("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ce("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ce("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 ce("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var we=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ce("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*we)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*we)+`px;
padding: `+we+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ce("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ce("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new ne("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new ne("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},Be.prototype.markerToolbarButtonClicked=function(we,me){this.setActiveButton(we),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(De){return De("marker",me)}),this.markerButtonOverflowBlock.style.display="none"},Be.prototype.actionToolbarButtonClicked=function(we,me){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(De){return De("action",me)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Be.prototype.setActiveButton=function(we){this.resetButtonStyles(),we.className=we.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),we.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Be.prototype.setActiveMarkerButton=function(we){var me=this.markerButtons.find(function(De){return De.getAttribute("data-type-name")===we});me&&this.setActiveButton(me)},Be.prototype.setCurrentMarker=function(we){var me=this;this.currentMarker=we,this.buttons.filter(function(De){return/delete|notes/.test(De.getAttribute("data-action"))}).forEach(function(De){me.currentMarker===void 0?(De.style.fillOpacity="0.4",De.style.pointerEvents="none"):(De.style.fillOpacity="1",De.style.pointerEvents="all")})},Be}(),ge=function(){function Be(we,me,De,Re){this.panels=[],this.panelButtons=[],this.markerjsContainer=we,this.displayMode=me,this.uiStyleSettings=De,this.styles=Re,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Be.prototype.addStyles=function(){var we;this.toolboxStyleClass=this.styles.addClass(new ce("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 ce("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var me=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ce("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ce("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ce("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 ce("toolbox-panel-row_colors",`
background-color: `+((we=this.uiStyleSettings.toolboxBackgroundColor)!==null&&we!==void 0?we:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ce("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*me)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*me)+`px;
padding: `+me+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new ce("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ce("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new ne("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new ne("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},Be.prototype.show=function(we){var me;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=we,this.uiContainer.className=this.toolboxStyleClass.name+" "+((me=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&me!==void 0?me:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Be.prototype.setPanelButtons=function(we){var me,De,Re=this;this.panels=we,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((me=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&me!==void 0?me:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((De=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&De!==void 0?De:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Le){var st;Le.uiStyleSettings=Re.uiStyleSettings;var Vt=document.createElement("div");Vt.className=Re.toolboxButtonStyleClass.name+" "+((st=Re.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&st!==void 0?st:Re.toolboxButtonStyleColorsClass.name),Vt.innerHTML=Le.icon,Vt.title=Le.title,Vt.addEventListener("click",function(){Re.panelButtonClick(Le)}),Re.panelButtons.push(Vt),Re.buttonRow.appendChild(Vt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Be.prototype.panelButtonClick=function(we){var me=this,De=-1;if(we!==this.activePanel){De=this.panels.indexOf(we),this.panelRow.innerHTML="";var Re=we.getUi();Re.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Re),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=we}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){me.displayMode==="inline"?me.panelRow.style.display="none":me.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Le,st){var Vt,sn;Le.className=me.toolboxButtonStyleClass.name+" "+(st===De?""+((Vt=me.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Vt!==void 0?Vt:me.toolboxActiveButtonStyleColorsClass.name):""+((sn=me.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&sn!==void 0?sn:me.toolboxButtonStyleColorsClass.name))})},Be}(),ve=function(Be,we){this.title=Be,this.icon=we},Ce=function(Be){function we(me,De,Re,Le){var st=Be.call(this,me,Le||'<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 st.colors=[],st.addTransparent=!1,st.colorBoxes=[],st.colors=De,st.currentColor=Re,st.setCurrentColor=st.setCurrentColor.bind(st),st.getColorBox=st.getColorBox.bind(st),st}return Ne(we,Be),we.prototype.getUi=function(){var me=this,De=document.createElement("div");return De.style.overflow="hidden",De.style.whiteSpace="nowrap",this.colors.forEach(function(Re){var Le=me.getColorBox(Re);De.appendChild(Le),me.colorBoxes.push(Le)}),De},we.prototype.getColorBox=function(me){var De=this,Re=this.uiStyleSettings.toolbarHeight/4,Le=this.uiStyleSettings.toolbarHeight-Re,st=document.createElement("div");st.style.display="inline-block",st.style.boxSizing="content-box",st.style.width=Le-2+"px",st.style.height=Le-2+"px",st.style.padding="1px",st.style.marginRight="2px",st.style.marginBottom="2px",st.style.borderWidth="2px",st.style.borderStyle="solid",st.style.borderRadius=(Le+2)/2+"px",st.style.borderColor=me===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",st.addEventListener("click",function(){De.setCurrentColor(me,st)});var Vt=document.createElement("div");return Vt.style.display="inline-block",Vt.style.width=Le-2+"px",Vt.style.height=Le-2+"px",Vt.style.backgroundColor=me,Vt.style.borderRadius=Le/2+"px",me==="transparent"&&(Vt.style.fill=this.uiStyleSettings.toolboxAccentColor,Vt.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>`),st.appendChild(Vt),st},we.prototype.setCurrentColor=function(me,De){var Re=this;this.currentColor=me,this.colorBoxes.forEach(function(Le){Le.style.borderColor=Le===De?Re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(me)},we}(ve),ke=function(){function Be(we,me,De){this._state="new",this._isSelected=!1,this._container=we,this._overlayContainer=me,this.globalSettings=De,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Be.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Be.prototype.ownsTarget=function(we){return!1},Object.defineProperty(Be.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Be.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Be.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Be.prototype.pointerDown=function(we,me){},Be.prototype.dblClick=function(we,me){},Be.prototype.manipulate=function(we){},Be.prototype.pointerUp=function(we){this.stateChanged()},Be.prototype.dispose=function(){},Be.prototype.addMarkerVisualToContainer=function(we){this.container.childNodes.length>0?this.container.insertBefore(we,this.container.childNodes[0]):this.container.appendChild(we)},Be.prototype.getState=function(){return{typeName:Be.typeName,state:this.state,notes:this.notes}},Be.prototype.restoreState=function(we){this._state=we.state,this.notes=we.notes},Be.prototype.scale=function(we,me){},Be.prototype.colorChanged=function(we){this.onColorChanged&&this.onColorChanged(we),this.stateChanged()},Be.prototype.fillColorChanged=function(we){this.onFillColorChanged&&this.onFillColorChanged(we),this.stateChanged()},Be.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var we=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),we.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(we)&&this.onStateChanged(this)}},Be.typeName="MarkerBase",Be}(),Pe=function(){function Be(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Be.prototype.findGripByVisual=function(we){return this.topLeft.ownsTarget(we)?this.topLeft:this.topCenter.ownsTarget(we)?this.topCenter:this.topRight.ownsTarget(we)?this.topRight:this.centerLeft.ownsTarget(we)?this.centerLeft:this.centerRight.ownsTarget(we)?this.centerRight:this.bottomLeft.ownsTarget(we)?this.bottomLeft:this.bottomCenter.ownsTarget(we)?this.bottomCenter:this.bottomRight.ownsTarget(we)?this.bottomRight:void 0},Be}(),Te=function(){function Be(){this.GRIP_SIZE=10,this.visual=gt.createGroup(),this.visual.appendChild(gt.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(gt.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Be.prototype.ownsTarget=function(we){return we===this.visual||we===this.visual.childNodes[0]||we===this.visual.childNodes[1]},Be}(),Ke=function(){function Be(){}return Be.toITransformMatrix=function(we){return{a:we.a,b:we.b,c:we.c,d:we.d,e:we.e,f:we.f}},Be.toSVGMatrix=function(we,me){return we.a=me.a,we.b=me.b,we.c=me.c,we.d=me.d,we.e=me.e,we.f=me.f,we},Be}(),et=function(Be){function we(me,De,Re){var Le=Be.call(this,me,De,Re)||this;return Le.left=0,Le.top=0,Le.width=0,Le.height=0,Le.defaultSize={x:50,y:20},Le.offsetX=0,Le.offsetY=0,Le.rotationAngle=0,Le.CB_DISTANCE=10,Le._suppressMarkerCreateEvent=!1,Le.container.transform.baseVal.appendItem(gt.createTransform()),Le.setupControlBox(),Le}return Ne(we,Be),Object.defineProperty(we.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"visual",{get:function(){return this._visual},set:function(me){this._visual=me;var De=gt.createTransform();this._visual.transform.baseVal.appendItem(De)},enumerable:!1,configurable:!0}),we.prototype.ownsTarget=function(me){return!!Be.prototype.ownsTarget.call(this,me)||!!(this.controlGrips.findGripByVisual(me)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(me))},we.prototype.pointerDown=function(me,De){Be.prototype.pointerDown.call(this,me,De),this.state==="new"&&(this.left=me.x,this.top=me.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Re=this.unrotatePoint(me);if(this.manipulationStartX=Re.x,this.manipulationStartY=Re.y,this.offsetX=Re.x-this.left,this.offsetY=Re.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(De),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(De)){this.activeGrip=this.rotatorGrip;var Le=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Le.x-this.width/2,this.top=Le.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var st=this.container.transform.baseVal.getItem(0);st.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(st,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},we.prototype.pointerUp=function(me){var De=this.state;Be.prototype.pointerUp.call(this,me),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(me),this._state="select",De==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},we.prototype.moveVisual=function(me){this.visual.style.transform="translate("+me.x+"px, "+me.y+"px)"},we.prototype.manipulate=function(me){var De=this.unrotatePoint(me);this.state==="creating"?this.resize(me):this.state==="move"?(this.left=this.manipulationStartLeft+(De.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(De.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(De):this.state==="rotate"&&this.rotate(me)},we.prototype.resize=function(me){var De=this.manipulationStartLeft,Re=this.manipulationStartWidth,Le=this.manipulationStartTop,st=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:De=this.manipulationStartLeft+me.x-this.manipulationStartX,Re=this.manipulationStartWidth+this.manipulationStartLeft-De;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Re=this.manipulationStartWidth+me.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Le=this.manipulationStartTop+me.y-this.manipulationStartY,st=this.manipulationStartHeight+this.manipulationStartTop-Le;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:st=this.manipulationStartHeight+me.y-this.manipulationStartY}Re>=0?(this.left=De,this.width=Re):(this.left=De+Re,this.width=-Re),st>=0?(this.top=Le,this.height=st):(this.top=Le+st,this.height=-st),this.setSize()},we.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},we.prototype.rotate=function(me){if(Math.abs(me.x-this.centerX)>.1){var De=Math.sign(me.x-this.centerX);this.rotationAngle=180*Math.atan((me.y-this.centerY)/(me.x-this.centerX))/Math.PI+90*De,this.applyRotation()}},we.prototype.applyRotation=function(){var me=this.container.transform.baseVal.getItem(0);me.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(me,0)},we.prototype.rotatePoint=function(me){if(this.rotationAngle===0)return me;var De=this.container.getCTM(),Re=gt.createPoint(me.x,me.y);return{x:(Re=Re.matrixTransform(De)).x,y:Re.y}},we.prototype.unrotatePoint=function(me){if(this.rotationAngle===0)return me;var De=this.container.getCTM();De=De.inverse();var Re=gt.createPoint(me.x,me.y);return{x:(Re=Re.matrixTransform(De)).x,y:Re.y}},we.prototype.select=function(){Be.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},we.prototype.deselect=function(){Be.prototype.deselect.call(this),this.controlBox.style.display="none"},we.prototype.setupControlBox=function(){this.controlBox=gt.createGroup();var me=gt.createTransform();me.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(me),this.container.appendChild(this.controlBox),this.controlRect=gt.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=gt.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 Pe,this.addControlGrips(),this.controlBox.style.display="none"},we.prototype.adjustControlBox=function(){var me=this.controlBox.transform.baseVal.getItem(0);me.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(me,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()},we.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()},we.prototype.createGrip=function(){var me=new Te;return me.visual.transform.baseVal.appendItem(gt.createTransform()),this.controlBox.appendChild(me.visual),me},we.prototype.positionGrips=function(){var me=this.controlGrips.topLeft.GRIP_SIZE,De=-me/2,Re=De,Le=(this.width+this.CB_DISTANCE)/2-me/2,st=(this.height+this.CB_DISTANCE)/2-me/2,Vt=this.height+this.CB_DISTANCE-me/2,sn=this.width+this.CB_DISTANCE-me/2;this.positionGrip(this.controlGrips.topLeft.visual,De,Re),this.positionGrip(this.controlGrips.topCenter.visual,Le,Re),this.positionGrip(this.controlGrips.topRight.visual,sn,Re),this.positionGrip(this.controlGrips.centerLeft.visual,De,st),this.positionGrip(this.controlGrips.centerRight.visual,sn,st),this.positionGrip(this.controlGrips.bottomLeft.visual,De,Vt),this.positionGrip(this.controlGrips.bottomCenter.visual,Le,Vt),this.positionGrip(this.controlGrips.bottomRight.visual,sn,Vt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Le,Re-3*this.CB_DISTANCE)},we.prototype.positionGrip=function(me,De,Re){var Le=me.transform.baseVal.getItem(0);Le.setTranslate(De,Re),me.transform.baseVal.replaceItem(Le,0)},we.prototype.hideControlBox=function(){this.controlBox.style.display="none"},we.prototype.showControlBox=function(){this.controlBox.style.display=""},we.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Ke.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Ke.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Be.prototype.getState.call(this))},we.prototype.restoreState=function(me){Be.prototype.restoreState.call(this,me);var De=me;this.left=De.left,this.top=De.top,this.width=De.width,this.height=De.height,this.rotationAngle=De.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Ke.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,De.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Ke.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,De.containerTransformMatrix))},we.prototype.scale=function(me,De){Be.prototype.scale.call(this,me,De);var Re=this.rotatePoint({x:this.left,y:this.top}),Le=this.unrotatePoint({x:Re.x*me,y:Re.y*De});this.left=Le.x,this.top=Le.y,this.width=this.width*me,this.height=this.height*De,this.adjustControlBox()},we}(ke),Xe=function(Be){function we(me,De,Re){var Le=Be.call(this,me,De,Re)||this;return Le.fillColor="transparent",Le.strokeColor="transparent",Le.strokeWidth=0,Le.strokeDasharray="",Le.opacity=1,Le.setStrokeColor=Le.setStrokeColor.bind(Le),Le.setFillColor=Le.setFillColor.bind(Le),Le.setStrokeWidth=Le.setStrokeWidth.bind(Le),Le.setStrokeDasharray=Le.setStrokeDasharray.bind(Le),Le.createVisual=Le.createVisual.bind(Le),Le}return Ne(we,Be),we.prototype.ownsTarget=function(me){return!(!Be.prototype.ownsTarget.call(this,me)&&me!==this.visual)},we.prototype.createVisual=function(){this.visual=gt.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)},we.prototype.pointerDown=function(me,De){Be.prototype.pointerDown.call(this,me,De),this.state==="new"&&(this.createVisual(),this.moveVisual(me),this._state="creating")},we.prototype.manipulate=function(me){Be.prototype.manipulate.call(this,me)},we.prototype.resize=function(me){Be.prototype.resize.call(this,me),this.setSize()},we.prototype.setSize=function(){Be.prototype.setSize.call(this),gt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},we.prototype.pointerUp=function(me){Be.prototype.pointerUp.call(this,me),this.setSize()},we.prototype.setStrokeColor=function(me){this.strokeColor=me,this.visual&&gt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(me),this.stateChanged()},we.prototype.setFillColor=function(me){this.fillColor=me,this.visual&&gt.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},we.prototype.setStrokeWidth=function(me){this.strokeWidth=me,this.visual&&gt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},we.prototype.setStrokeDasharray=function(me){this.strokeDasharray=me,this.visual&&gt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},we.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Be.prototype.getState.call(this))},we.prototype.restoreState=function(me){var De=me;this.fillColor=De.fillColor,this.strokeColor=De.strokeColor,this.strokeWidth=De.strokeWidth,this.strokeDasharray=De.strokeDasharray,this.opacity=De.opacity,this.createVisual(),Be.prototype.restoreState.call(this,me),this.setSize()},we.prototype.scale=function(me,De){Be.prototype.scale.call(this,me,De),this.setSize()},we.title="Rectangle marker",we}(et),ft=function(Be){function we(me,De,Re,Le){var st=Be.call(this,me,Le||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return st.widths=[],st.widthBoxes=[],st.widths=De,st.currentWidth=Re,st.setCurrentWidth=st.setCurrentWidth.bind(st),st}return Ne(we,Be),we.prototype.getUi=function(){var me=this,De=document.createElement("div");return De.style.display="flex",De.style.overflow="hidden",De.style.flexGrow="2",this.widths.forEach(function(Re){var Le=document.createElement("div");Le.style.display="flex",Le.style.flexGrow="2",Le.style.alignItems="center",Le.style.justifyContent="space-between",Le.style.padding="5px",Le.style.borderWidth="2px",Le.style.borderStyle="solid",Le.style.borderColor=Re===me.currentWidth?me.uiStyleSettings.toolboxAccentColor:"transparent",Le.addEventListener("click",function(){me.setCurrentWidth(Re,Le)}),De.appendChild(Le);var st=document.createElement("div");st.innerText=Re.toString(),st.style.marginRight="5px",Le.appendChild(st);var Vt=document.createElement("div");Vt.style.minHeight="20px",Vt.style.flexGrow="2",Vt.style.display="flex",Vt.style.alignItems="center";var sn=document.createElement("hr");sn.style.minWidth="20px",sn.style.border="0px",sn.style.borderTop=Re+"px solid "+me.uiStyleSettings.toolboxColor,sn.style.flexGrow="2",Vt.appendChild(sn),Le.appendChild(Vt),me.widthBoxes.push(Le)}),De},we.prototype.setCurrentWidth=function(me,De){var Re=this;this.currentWidth=me,this.widthBoxes.forEach(function(Le){Le.style.borderColor=Le===De?Re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},we}(ve),Ge=function(Be){function we(me,De,Re,Le){var st=Be.call(this,me,Le||'<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 st.styles=[],st.styleBoxes=[],st.styles=De,st.currentStyle=Re,st.setCurrentStyle=st.setCurrentStyle.bind(st),st}return Ne(we,Be),we.prototype.getUi=function(){var me=this,De=document.createElement("div");return De.style.display="flex",De.style.overflow="hidden",De.style.flexGrow="2",this.styles.forEach(function(Re){var Le=document.createElement("div");Le.style.display="flex",Le.style.alignItems="center",Le.style.justifyContent="space-between",Le.style.padding="5px",Le.style.borderWidth="2px",Le.style.borderStyle="solid",Le.style.overflow="hidden",Le.style.maxWidth=100/me.styles.length-5+"%",Le.style.borderColor=Re===me.currentStyle?me.uiStyleSettings.toolboxAccentColor:"transparent",Le.addEventListener("click",function(){me.setCurrentStyle(Re,Le)}),De.appendChild(Le);var st=document.createElement("div");st.style.minHeight="20px",st.style.flexGrow="2",st.style.overflow="hidden";var Vt=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+me.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Re!==""?'stroke-dasharray="'+Re+'"':"")+` />
</svg>`;st.innerHTML=Vt,Le.appendChild(st),me.styleBoxes.push(Le)}),De},we.prototype.setCurrentStyle=function(me,De){var Re=this;this.currentStyle=me,this.styleBoxes.forEach(function(Le){Le.style.borderColor=Le===De?Re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},we}(ve),kt=function(Be){function we(me,De,Re){var Le=Be.call(this,me,De,Re)||this;return Le.strokeColor=Re.defaultColor,Le.strokeWidth=Re.defaultStrokeWidth,Le.strokeDasharray=Re.defaultStrokeDasharray,Le.strokePanel=new Ce("Line color",Re.defaultColorSet,Re.defaultColor),Le.strokePanel.onColorChanged=Le.setStrokeColor,Le.strokeWidthPanel=new ft("Line width",Re.defaultStrokeWidths,Re.defaultStrokeWidth),Le.strokeWidthPanel.onWidthChanged=Le.setStrokeWidth,Le.strokeStylePanel=new Ge("Line style",Re.defaultStrokeDasharrays,Re.defaultStrokeDasharray),Le.strokeStylePanel.onStyleChanged=Le.setStrokeDasharray,Le}return Ne(we,Be),Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var me=Be.prototype.getState.call(this);return me.typeName=we.typeName,me},we.typeName="FrameMarker",we.title="Frame marker",we.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',we}(Xe),$e=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},zt=function(Be){function we(me,De,Re){var Le=Be.call(this,me,De,Re)||this;return Le.x1=0,Le.y1=0,Le.x2=0,Le.y2=0,Le.defaultLength=50,Le.manipulationStartX=0,Le.manipulationStartY=0,Le.manipulationStartX1=0,Le.manipulationStartY1=0,Le.manipulationStartX2=0,Le.manipulationStartY2=0,Le.setupControlBox(),Le}return Ne(we,Be),we.prototype.ownsTarget=function(me){return!!Be.prototype.ownsTarget.call(this,me)||!(!this.grip1.ownsTarget(me)&&!this.grip2.ownsTarget(me))},we.prototype.pointerDown=function(me,De){Be.prototype.pointerDown.call(this,me,De),this.manipulationStartX=me.x,this.manipulationStartY=me.y,this.state==="new"&&(this.x1=me.x,this.y1=me.y,this.x2=me.x,this.y2=me.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(De)?this.activeGrip=this.grip1:this.grip2.ownsTarget(De)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},we.prototype.pointerUp=function(me){var De=this.state;Be.prototype.pointerUp.call(this,me),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(me),this._state="select",De==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},we.prototype.adjustVisual=function(){},we.prototype.manipulate=function(me){this.state==="creating"?this.resize(me):this.state==="move"?(this.x1=this.manipulationStartX1+me.x-this.manipulationStartX,this.y1=this.manipulationStartY1+me.y-this.manipulationStartY,this.x2=this.manipulationStartX2+me.x-this.manipulationStartX,this.y2=this.manipulationStartY2+me.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(me)},we.prototype.resize=function(me){switch(this.activeGrip){case this.grip1:this.x1=me.x,this.y1=me.y;break;case this.grip2:case void 0:this.x2=me.x,this.y2=me.y}this.adjustVisual(),this.adjustControlBox()},we.prototype.select=function(){Be.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},we.prototype.deselect=function(){Be.prototype.deselect.call(this),this.controlBox.style.display="none"},we.prototype.setupControlBox=function(){this.controlBox=gt.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},we.prototype.adjustControlBox=function(){this.positionGrips()},we.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},we.prototype.createGrip=function(){var me=new Te;return me.visual.transform.baseVal.appendItem(gt.createTransform()),this.controlBox.appendChild(me.visual),me},we.prototype.positionGrips=function(){var me=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-me/2,this.y1-me/2),this.positionGrip(this.grip2.visual,this.x2-me/2,this.y2-me/2)},we.prototype.positionGrip=function(me,De,Re){var Le=me.transform.baseVal.getItem(0);Le.setTranslate(De,Re),me.transform.baseVal.replaceItem(Le,0)},we.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Be.prototype.getState.call(this))},we.prototype.restoreState=function(me){Be.prototype.restoreState.call(this,me);var De=me;this.x1=De.x1,this.y1=De.y1,this.x2=De.x2,this.y2=De.y2},we.prototype.scale=function(me,De){Be.prototype.scale.call(this,me,De),this.x1=this.x1*me,this.y1=this.y1*De,this.x2=this.x2*me,this.y2=this.y2*De,this.adjustVisual(),this.adjustControlBox()},we}(ke),Ht=function(Be){function we(me,De,Re){var Le=Be.call(this,me,De,Re)||this;return Le.strokeColor="transparent",Le.strokeWidth=0,Le.strokeDasharray="",Le.setStrokeColor=Le.setStrokeColor.bind(Le),Le.setStrokeWidth=Le.setStrokeWidth.bind(Le),Le.setStrokeDasharray=Le.setStrokeDasharray.bind(Le),Le.strokeColor=Re.defaultColor,Le.strokeWidth=Re.defaultStrokeWidth,Le.strokeDasharray=Re.defaultStrokeDasharray,Le.strokePanel=new Ce("Line color",Re.defaultColorSet,Re.defaultColor),Le.strokePanel.onColorChanged=Le.setStrokeColor,Le.strokeWidthPanel=new ft("Line width",Re.defaultStrokeWidths,Re.defaultStrokeWidth),Le.strokeWidthPanel.onWidthChanged=Le.setStrokeWidth,Le.strokeStylePanel=new Ge("Line style",Re.defaultStrokeDasharrays,Re.defaultStrokeDasharray),Le.strokeStylePanel.onStyleChanged=Le.setStrokeDasharray,Le}return Ne(we,Be),we.prototype.ownsTarget=function(me){return!(!Be.prototype.ownsTarget.call(this,me)&&me!==this.visual&&me!==this.selectorLine&&me!==this.visibleLine)},we.prototype.createVisual=function(){this.visual=gt.createGroup(),this.selectorLine=gt.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=gt.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)},we.prototype.pointerDown=function(me,De){Be.prototype.pointerDown.call(this,me,De),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},we.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()),gt.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),gt.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),gt.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},we.prototype.setStrokeColor=function(me){this.strokeColor=me,this.adjustVisual(),this.colorChanged(me)},we.prototype.setStrokeWidth=function(me){this.strokeWidth=me,this.adjustVisual()},we.prototype.setStrokeDasharray=function(me){this.strokeDasharray=me,this.adjustVisual(),this.stateChanged()},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var me=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Be.prototype.getState.call(this));return me.typeName=we.typeName,me},we.prototype.restoreState=function(me){Be.prototype.restoreState.call(this,me);var De=me;this.strokeColor=De.strokeColor,this.strokeWidth=De.strokeWidth,this.strokeDasharray=De.strokeDasharray,this.createVisual(),this.adjustVisual()},we.typeName="LineMarker",we.title="Line marker",we.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',we}(zt),Yt=function(Be){function we(me,De,Re,Le){var st=Be.call(this,me,Le||'<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 st.fonts=[],st.fontBoxes=[],st.fonts=De,st.currentFont=Re,st.setCurrentFont=st.setCurrentFont.bind(st),st}return Ne(we,Be),we.prototype.getUi=function(){var me=this,De=document.createElement("div");return De.style.overflow="hidden",De.style.flexGrow="2",this.fonts.forEach(function(Re){var Le=document.createElement("div");Le.style.display="inline-block",Le.style.alignItems="center",Le.style.justifyContent="space-between",Le.style.padding="5px",Le.style.borderWidth="2px",Le.style.borderStyle="solid",Le.style.overflow="hidden",Le.style.maxWidth=100/me.fonts.length-5+"%",Le.style.borderColor=Re===me.currentFont?me.uiStyleSettings.toolboxAccentColor:"transparent",Le.addEventListener("click",function(){me.setCurrentFont(Re,Le)}),De.appendChild(Le);var st=document.createElement("div");st.style.display="flex",st.style.minHeight="20px",st.style.flexGrow="2",st.style.fontFamily=Re,st.style.overflow="hidden";var Vt=document.createElement("div");Vt.style.whiteSpace="nowrap",Vt.style.overflow="hidden",Vt.style.textOverflow="ellipsis",Vt.innerHTML="The quick brown fox jumps over the lazy dog",st.appendChild(Vt),Le.appendChild(st),me.fontBoxes.push(Le)}),De},we.prototype.setCurrentFont=function(me,De){var Re=this;this.currentFont=me,this.fontBoxes.forEach(function(Le){Le.style.borderColor=Le===De?Re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},we}(ve),Bt=function(Be){function we(me,De,Re){var Le=Be.call(this,me,De,Re)||this;return Le.color="transparent",Le.padding=5,Le.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Le.text=Le.DEFAULT_TEXT,Le.isMoved=!1,Le.color=Re.defaultColor,Le.fontFamily=Re.defaultFontFamily,Le.defaultSize={x:100,y:30},Le.setColor=Le.setColor.bind(Le),Le.setFont=Le.setFont.bind(Le),Le.renderText=Le.renderText.bind(Le),Le.sizeText=Le.sizeText.bind(Le),Le.textEditDivClicked=Le.textEditDivClicked.bind(Le),Le.showTextEditor=Le.showTextEditor.bind(Le),Le.setSize=Le.setSize.bind(Le),Le.positionTextEditor=Le.positionTextEditor.bind(Le),Le.colorPanel=new Ce("Color",Re.defaultColorSet,Re.defaultColor),Le.colorPanel.onColorChanged=Le.setColor,Le.fontFamilyPanel=new Yt("Font",Re.defaultFontFamilies,Re.defaultFontFamily),Le.fontFamilyPanel.onFontChanged=Le.setFont,Le}return Ne(we,Be),we.prototype.ownsTarget=function(me){if(Be.prototype.ownsTarget.call(this,me)||me===this.visual||me===this.textElement||me===this.bgRectangle)return!0;var De=!1;return this.textElement.childNodes.forEach(function(Re){Re===me&&(De=!0)}),De},we.prototype.createVisual=function(){this.visual=gt.createGroup(),this.bgRectangle=gt.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=gt.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(gt.createTransform()),this.textElement.transform.baseVal.appendItem(gt.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},we.prototype.pointerDown=function(me,De){Be.prototype.pointerDown.call(this,me,De),this.isMoved=!1,this.pointerDownPoint=me,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(me),this._state="creating")},we.prototype.renderText=function(){var me=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(De){me.textElement.appendChild(gt.createTSpan(De.trim()===""?" ":De.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},we.prototype.getTextScale=function(){var me=this.textElement.getBBox(),De=1;if(me.width>0&&me.height>0){var Re=(1*this.width-this.width*this.padding*2/100)/me.width,Le=(1*this.height-this.height*this.padding*2/100)/me.height;De=Math.min(Re,Le)}return De},we.prototype.getTextPosition=function(me){var De=this.textElement.getBBox(),Re=0,Le=0;return De.width>0&&De.height>0&&(Re=(this.width-De.width*me)/2,Le=this.height/2-De.height*me/2),{x:Re,y:Le}},we.prototype.sizeText=function(){var me=this.textElement.getBBox(),De=this.getTextScale(),Re=this.getTextPosition(De);Re.y-=me.y*De,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Re.x+"px, "+Re.y+"px) scale("+De+", "+De+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Re.x,Re.y),this.textElement.transform.baseVal.getItem(1).setScale(De,De))},we.prototype.manipulate=function(me){Be.prototype.manipulate.call(this,me),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(me.x-this.pointerDownPoint.x)>5||Math.abs(me.y-this.pointerDownPoint.y)>5)},we.prototype.resize=function(me){Be.prototype.resize.call(this,me),this.isMoved=!0,this.setSize(),this.sizeText()},we.prototype.setSize=function(){Be.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(gt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),gt.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},we.prototype.pointerUp=function(me){var De=this.state;De==="creating"&&(this._suppressMarkerCreateEvent=!0),Be.prototype.pointerUp.call(this,me),this.setSize(),(De==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},we.prototype.showTextEditor=function(){var me=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(De){De.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var De=Number.parseFloat(me.textEditor.style.fontSize);me.textEditor.clientWidth>=Number.parseInt(me.textEditor.style.maxWidth)&&De>.9;)De-=.1,me.textEditor.style.fontSize=Math.max(De,.9)+"em"}),this.textEditor.addEventListener("keyup",function(De){De.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(De){if(De.clipboardData){var Re=De.clipboardData.getData("text"),Le=window.getSelection();if(!Le.rangeCount)return!1;Le.deleteFromDocument(),Le.getRangeAt(0).insertNode(document.createTextNode(Re)),De.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){me.textEditDivClicked(me.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},we.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var me=this.getTextScale(),De=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Re=this.textElement.getBBox(),Le={x:Re.width*me,y:Re.height*me};De.x-=Le.x/2,De.y-=Le.y/2,this.textEditor.style.top=De.y+"px",this.textEditor.style.left=De.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-De.x+"px",this.textEditor.style.fontSize=Math.max(16*me,12)+"px",this.textElement.style.display="none"}},we.prototype.textEditDivClicked=function(me){this.text=me.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},we.prototype.select=function(){Be.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},we.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Be.prototype.deselect.call(this)},we.prototype.dblClick=function(me,De){Be.prototype.dblClick.call(this,me,De),this.showTextEditor()},we.prototype.setColor=function(me){this.textElement&&gt.setAttributes(this.textElement,[["fill",me]]),this.color=me,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(me)},we.prototype.setFont=function(me){this.textElement&&gt.setAttributes(this.textElement,[["font-family",me]]),this.fontFamily=me,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},we.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},we.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var me=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Be.prototype.getState.call(this));return me.typeName=we.typeName,me},we.prototype.restoreState=function(me){var De=me;this.color=De.color,this.fontFamily=De.fontFamily,this.padding=De.padding,this.text=De.text,this.createVisual(),Be.prototype.restoreState.call(this,me),this.setSize()},we.prototype.scale=function(me,De){Be.prototype.scale.call(this,me,De),this.setSize(),this.sizeText(),this.positionTextEditor()},we.typeName="TextMarker",we.title="Text marker",we.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>',we}(et),Qt=function(Be){function we(me,De,Re){var Le=Be.call(this,me,De,Re)||this;return Le.color="transparent",Le.lineWidth=3,Le.drawing=!1,Le.pixelRatio=1,Le.color=Re.defaultColor,Le.lineWidth=Re.defaultStrokeWidth,Le.pixelRatio=Re.freehandPixelRatio,Le.setColor=Le.setColor.bind(Le),Le.addCanvas=Le.addCanvas.bind(Le),Le.finishCreation=Le.finishCreation.bind(Le),Le.setLineWidth=Le.setLineWidth.bind(Le),Le.colorPanel=new Ce("Color",Re.defaultColorSet,Re.defaultColor),Le.colorPanel.onColorChanged=Le.setColor,Le.lineWidthPanel=new ft("Line width",Re.defaultStrokeWidths,Re.defaultStrokeWidth),Le.lineWidthPanel.onWidthChanged=Le.setLineWidth,Le}return Ne(we,Be),we.prototype.ownsTarget=function(me){return!(!Be.prototype.ownsTarget.call(this,me)&&me!==this.visual&&me!==this.drawingImage)},we.prototype.createVisual=function(){this.visual=gt.createGroup(),this.drawingImage=gt.createImage(),this.visual.appendChild(this.drawingImage);var me=gt.createTransform();this.visual.transform.baseVal.appendItem(me),this.addMarkerVisualToContainer(this.visual)},we.prototype.pointerDown=function(me,De){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(me.x,me.y),this.drawing=!0):Be.prototype.pointerDown.call(this,me,De)},we.prototype.manipulate=function(me){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(me.x,me.y),this.canvasContext.stroke()):Be.prototype.manipulate.call(this,me)},we.prototype.resize=function(me){Be.prototype.resize.call(this,me),gt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),gt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},we.prototype.pointerUp=function(me){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Be.prototype.pointerUp.call(this,me)},we.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)},we.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Be.prototype.select.call(this)},we.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Be.prototype.deselect.call(this)},we.prototype.finishCreation=function(){for(var me=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),De=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Re=De[0],Le=De[1],st=De[2],Vt=De[3],sn=!1,ln=0;ln<this.canvasElement.height;ln++)for(var Hn=0;Hn<this.canvasElement.width;Hn++)me.data[ln*this.canvasElement.width*4+4*Hn+3]>0&&(sn=!0,ln<Le&&(Le=ln),Hn<Re&&(Re=Hn),ln>Vt&&(Vt=ln),Hn>st&&(st=Hn));if(sn){this.left=Re/this.pixelRatio,this.top=Le/this.pixelRatio,this.width=(st-Re)/this.pixelRatio,this.height=(Vt-Le)/this.pixelRatio;var wi=document.createElement("canvas");wi.width=st-Re,wi.height=Vt-Le,wi.getContext("2d").putImageData(this.canvasContext.getImageData(Re,Le,st-Re,Vt-Le),0,0),this.drawingImgUrl=wi.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},we.prototype.setDrawingImage=function(){gt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),gt.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},we.prototype.setColor=function(me){this.color=me,this.colorChanged(me)},we.prototype.setLineWidth=function(me){this.lineWidth=me},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var me=Object.assign({drawingImgUrl:this.drawingImgUrl},Be.prototype.getState.call(this));return me.typeName=we.typeName,me},we.prototype.restoreState=function(me){this.createVisual(),Be.prototype.restoreState.call(this,me),this.drawingImgUrl=me.drawingImgUrl,this.setDrawingImage()},we.prototype.scale=function(me,De){Be.prototype.scale.call(this,me,De),this.setDrawingImage()},we.typeName="FreehandMarker",we.title="Freehand marker",we.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>',we}(et),ht=function(Be){function we(me,De,Re){var Le=Be.call(this,me,Re||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Le.typeBoxes=[],Le.currentType=De,Le.setCurrentType=Le.setCurrentType.bind(Le),Le}return Ne(we,Be),we.prototype.getUi=function(){var me=this,De=document.createElement("div");De.style.display="flex",De.style.overflow="hidden",De.style.flexGrow="2";for(var Re=function(Vt){var sn="both";switch(Vt){case 0:sn="both";break;case 1:sn="start";break;case 2:sn="end";break;case 3:sn="none"}var ln=document.createElement("div");if(ln.style.display="flex",ln.style.flexGrow="2",ln.style.alignItems="center",ln.style.justifyContent="space-between",ln.style.padding="5px",ln.style.borderWidth="2px",ln.style.borderStyle="solid",ln.style.borderColor=sn===Le.currentType?Le.uiStyleSettings.toolboxAccentColor:"transparent",ln.addEventListener("click",function(){me.setCurrentType(sn,ln)}),De.appendChild(ln),sn==="both"||sn==="start"){var Hn=document.createElement("div");Hn.style.display="flex",Hn.style.alignItems="center",Hn.style.minHeight="20px",Hn.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="`+(Le.uiStyleSettings!==void 0?Le.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Hn.style.marginLeft="5px",ln.appendChild(Hn)}var wi=document.createElement("div");wi.style.display="flex",wi.style.alignItems="center",wi.style.minHeight="20px",wi.style.flexGrow="2";var Pi=document.createElement("hr");if(Pi.style.minWidth="20px",Pi.style.border="0px",Pi.style.borderTop="3px solid "+(Le.uiStyleSettings!==void 0?Le.uiStyleSettings.toolboxColor:"#eeeeee"),Pi.style.flexGrow="2",wi.appendChild(Pi),ln.appendChild(wi),sn==="both"||sn==="end"){var Ri=document.createElement("div");Ri.style.display="flex",Ri.style.alignItems="center",Ri.style.minHeight="20px",Ri.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="`+(Le.uiStyleSettings!==void 0?Le.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Ri.style.marginRight="5px",ln.appendChild(Ri)}Le.typeBoxes.push(ln)},Le=this,st=0;st<4;st++)Re(st);return De},we.prototype.setCurrentType=function(me,De){var Re=this;this.currentType=me,this.typeBoxes.forEach(function(Le){Le.style.borderColor=Le===De?Re.uiStyleSettings!==void 0?Re.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},we}(ve),je=function(Be){function we(me,De,Re){var Le=Be.call(this,me,De,Re)||this;return Le.arrowType="end",Le.arrowBaseHeight=10,Le.arrowBaseWidth=10,Le.getArrowPoints=Le.getArrowPoints.bind(Le),Le.setArrowType=Le.setArrowType.bind(Le),Le.arrowTypePanel=new ht("Arrow type","end"),Le.arrowTypePanel.onArrowTypeChanged=Le.setArrowType,Le}return Ne(we,Be),we.prototype.ownsTarget=function(me){return!(!Be.prototype.ownsTarget.call(this,me)&&me!==this.arrow1&&me!==this.arrow2)},we.prototype.getArrowPoints=function(me,De){var Re=this.arrowBaseWidth+2*this.strokeWidth,Le=this.arrowBaseHeight+2*this.strokeWidth;return me-Re/2+","+(De+Le/2)+" "+me+","+(De-Le/2)+" "+(me+Re/2)+","+(De+Le/2)},we.prototype.createTips=function(){this.arrow1=gt.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(gt.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=gt.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(gt.createTransform()),this.visual.appendChild(this.arrow2)},we.prototype.pointerDown=function(me,De){Be.prototype.pointerDown.call(this,me,De),this.state==="creating"&&this.createTips()},we.prototype.adjustVisual=function(){if(Be.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",gt.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),gt.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var me=0;Math.abs(this.x1-this.x2)>.1&&(me=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var De=this.arrow1.transform.baseVal.getItem(0);De.setRotate(me,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(De,0);var Re=this.arrow2.transform.baseVal.getItem(0);Re.setRotate(me+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Re,0)}},we.prototype.setArrowType=function(me){this.arrowType=me,this.adjustVisual(),this.stateChanged()},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var me=Object.assign({arrowType:this.arrowType},Be.prototype.getState.call(this));return me.typeName=we.typeName,me},we.prototype.restoreState=function(me){Be.prototype.restoreState.call(this,me);var De=me;this.arrowType=De.arrowType,this.createTips(),this.adjustVisual()},we.typeName="ArrowMarker",we.title="Arrow marker",we.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',we}(Ht),At=function(Be){function we(me,De,Re){var Le=Be.call(this,me,De,Re)||this;return Le.fillColor=Re.defaultFillColor,Le.strokeWidth=0,Le.fillPanel=new Ce("Color",Re.defaultColorSet,Re.defaultFillColor),Le.fillPanel.onColorChanged=Le.setFillColor,Le}return Ne(we,Be),Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var me=Be.prototype.getState.call(this);return me.typeName=we.typeName,me},we.typeName="CoverMarker",we.title="Cover marker",we.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',we}(Xe),wn=function(Be){function we(me,De,Re,Le){var st=Be.call(this,me,Le||'<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 st.opacities=[],st.opacityBoxes=[],st.opacities=De,st.currentOpacity=Re,st.setCurrentOpacity=st.setCurrentOpacity.bind(st),st}return Ne(we,Be),we.prototype.getUi=function(){var me=this,De=document.createElement("div");return De.style.display="flex",De.style.overflow="hidden",De.style.flexGrow="2",De.style.justifyContent="space-between",this.opacities.forEach(function(Re){var Le=document.createElement("div");Le.style.display="flex",Le.style.alignItems="center",Le.style.justifyContent="center",Le.style.padding="5px",Le.style.borderWidth="2px",Le.style.borderStyle="solid",Le.style.borderColor=Re===me.currentOpacity?me.uiStyleSettings.toolboxAccentColor:"transparent",Le.addEventListener("click",function(){me.setCurrentOpacity(Re,Le)}),De.appendChild(Le);var st=document.createElement("div");st.innerText=100*Re+"%",Le.appendChild(st),me.opacityBoxes.push(Le)}),De},we.prototype.setCurrentOpacity=function(me,De){var Re=this;this.currentOpacity=me,this.opacityBoxes.forEach(function(Le){Le.style.borderColor=Le===De?Re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},we}(ve),rn=function(Be){function we(me,De,Re){var Le=Be.call(this,me,De,Re)||this;return Le.setOpacity=Le.setOpacity.bind(Le),Le.fillColor=Re.defaultHighlightColor,Le.strokeWidth=0,Le.opacity=Re.defaultHighlightOpacity,Le.fillPanel=new Ce("Color",Re.defaultColorSet,Le.fillColor),Le.fillPanel.onColorChanged=Le.setFillColor,Le.opacityPanel=new wn("Opacity",Re.defaultOpacitySteps,Le.opacity),Le.opacityPanel.onOpacityChanged=Le.setOpacity,Le}return Ne(we,Be),we.prototype.setOpacity=function(me){this.opacity=me,this.visual&&gt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var me=Be.prototype.getState.call(this);return me.typeName=we.typeName,me},we.typeName="HighlightMarker",we.title="Highlight marker",we.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>',we}(At),bt='<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>',Jt='<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>',un=function(Be){function we(me,De,Re){var Le=Be.call(this,me,De,Re)||this;return Le.bgColor="transparent",Le.tipPosition={x:0,y:0},Le.tipBase1Position={x:0,y:0},Le.tipBase2Position={x:0,y:0},Le.tipMoving=!1,Le.color=Re.defaultStrokeColor,Le.bgColor=Re.defaultFillColor,Le.fontFamily=Re.defaultFontFamily,Le.defaultSize={x:100,y:30},Le.setBgColor=Le.setBgColor.bind(Le),Le.getTipPoints=Le.getTipPoints.bind(Le),Le.positionTip=Le.positionTip.bind(Le),Le.setTipPoints=Le.setTipPoints.bind(Le),Le.colorPanel=new Ce("Text color",Re.defaultColorSet,Le.color,bt),Le.colorPanel.onColorChanged=Le.setColor,Le.bgColorPanel=new Ce("Fill color",Re.defaultColorSet,Le.bgColor,Jt),Le.bgColorPanel.onColorChanged=Le.setBgColor,Le.fontFamilyPanel=new Yt("Font",Re.defaultFontFamilies,Re.defaultFontFamily),Le.fontFamilyPanel.onFontChanged=Le.setFont,Le.tipGrip=new Te,Le.tipGrip.visual.transform.baseVal.appendItem(gt.createTransform()),Le.controlBox.appendChild(Le.tipGrip.visual),Le}return Ne(we,Be),we.prototype.ownsTarget=function(me){return Be.prototype.ownsTarget.call(this,me)||this.tipGrip.ownsTarget(me)||this.tip===me},we.prototype.createTip=function(){gt.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=gt.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},we.prototype.pointerDown=function(me,De){this.state==="new"&&Be.prototype.pointerDown.call(this,me,De),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(De)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Be.prototype.pointerDown.call(this,me,De)},we.prototype.pointerUp=function(me){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Be.prototype.pointerUp.call(this,me);else{var De=this.state==="creating";Be.prototype.pointerUp.call(this,me),this.setTipPoints(De),this.positionTip()}},we.prototype.manipulate=function(me){if(this.tipMoving){var De=this.unrotatePoint(me);this.tipPosition={x:De.x-this.manipulationStartLeft,y:De.y-this.manipulationStartTop},this.positionTip()}else Be.prototype.manipulate.call(this,me)},we.prototype.setBgColor=function(me){this.bgRectangle&&this.tip&&(gt.setAttributes(this.bgRectangle,[["fill",me]]),gt.setAttributes(this.tip,[["fill",me]])),this.bgColor=me,this.fillColorChanged(me)},we.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},we.prototype.setTipPoints=function(me){me===void 0&&(me=!1);var De=Math.min(this.height/2,15),Re=this.height/5;me&&(this.tipPosition={x:De+Re/2,y:this.height+20});var Le=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Le<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Re=this.width/5,De=Math.min(this.width/2,15),this.tipBase1Position={x:De,y:0},this.tipBase2Position={x:De+Re,y:0}):(this.tipBase1Position={x:0,y:De},this.tipBase2Position={x:0,y:De+Re}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Le<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Re=this.width/5,De=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-De-Re,y:0},this.tipBase2Position={x:this.width-De,y:0}):(this.tipBase1Position={x:this.width,y:De},this.tipBase2Position={x:this.width,y:De+Re}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Le<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Re=this.width/5,De=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-De-Re,y:this.height},this.tipBase2Position={x:this.width-De,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-De-Re},this.tipBase2Position={x:this.width,y:this.height-De}):Le<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Re=this.width/5,De=Math.min(this.width/2,15),this.tipBase1Position={x:De,y:this.height},this.tipBase2Position={x:De+Re,y:this.height}):(this.tipBase1Position={x:0,y:this.height-De},this.tipBase2Position={x:0,y:this.height-De-Re})},we.prototype.resize=function(me){Be.prototype.resize.call(this,me),this.positionTip()},we.prototype.positionTip=function(){gt.setAttributes(this.tip,[["points",this.getTipPoints()]]);var me=this.tipGrip.visual.transform.baseVal.getItem(0);me.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(me,0)},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),we.prototype.select=function(){this.positionTip(),Be.prototype.select.call(this)},we.prototype.getState=function(){var me=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Be.prototype.getState.call(this));return me.typeName=we.typeName,me},we.prototype.restoreState=function(me){var De=me;this.bgColor=De.bgColor,this.tipPosition=De.tipPosition,Be.prototype.restoreState.call(this,me),this.createTip(),this.setTipPoints()},we.prototype.scale=function(me,De){Be.prototype.scale.call(this,me,De),this.tipPosition={x:this.tipPosition.x*me,y:this.tipPosition.y*De},this.positionTip()},we.typeName="CalloutMarker",we.title="Callout marker",we.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>',we}(Bt),Kn=function(Be){function we(me,De,Re){var Le=Be.call(this,me,De,Re)||this;return Le.fillColor="transparent",Le.strokeColor="transparent",Le.strokeWidth=0,Le.strokeDasharray="",Le.opacity=1,Le.strokeColor=Re.defaultColor,Le.strokeWidth=Re.defaultStrokeWidth,Le.strokeDasharray=Re.defaultStrokeDasharray,Le.fillColor=Re.defaultFillColor,Le.setStrokeColor=Le.setStrokeColor.bind(Le),Le.setFillColor=Le.setFillColor.bind(Le),Le.setStrokeWidth=Le.setStrokeWidth.bind(Le),Le.setStrokeDasharray=Le.setStrokeDasharray.bind(Le),Le.setOpacity=Le.setOpacity.bind(Le),Le.createVisual=Le.createVisual.bind(Le),Le.strokePanel=new Ce("Line color",qe(Re.defaultColorSet,["transparent"]),Re.defaultColor),Le.strokePanel.onColorChanged=Le.setStrokeColor,Le.fillPanel=new Ce("Fill color",qe(Re.defaultColorSet,["transparent"]),Le.fillColor,Jt),Le.fillPanel.onColorChanged=Le.setFillColor,Le.strokeWidthPanel=new ft("Line width",Re.defaultStrokeWidths,Re.defaultStrokeWidth),Le.strokeWidthPanel.onWidthChanged=Le.setStrokeWidth,Le.strokeStylePanel=new Ge("Line style",Re.defaultStrokeDasharrays,Re.defaultStrokeDasharray),Le.strokeStylePanel.onStyleChanged=Le.setStrokeDasharray,Le.opacityPanel=new wn("Opacity",Re.defaultOpacitySteps,Le.opacity),Le.opacityPanel.onOpacityChanged=Le.setOpacity,Le}return Ne(we,Be),we.prototype.ownsTarget=function(me){return!(!Be.prototype.ownsTarget.call(this,me)&&me!==this.visual)},we.prototype.createVisual=function(){this.visual=gt.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)},we.prototype.pointerDown=function(me,De){Be.prototype.pointerDown.call(this,me,De),this.state==="new"&&(this.createVisual(),this.moveVisual(me),this._state="creating")},we.prototype.manipulate=function(me){Be.prototype.manipulate.call(this,me)},we.prototype.resize=function(me){Be.prototype.resize.call(this,me),this.setSize()},we.prototype.setSize=function(){Be.prototype.setSize.call(this),gt.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},we.prototype.pointerUp=function(me){Be.prototype.pointerUp.call(this,me),this.setSize()},we.prototype.setStrokeColor=function(me){this.strokeColor=me,this.visual&&gt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(me),this.stateChanged()},we.prototype.setFillColor=function(me){this.fillColor=me,this.visual&&gt.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(me),this.stateChanged()},we.prototype.setStrokeWidth=function(me){this.strokeWidth=me,this.visual&&gt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},we.prototype.setStrokeDasharray=function(me){this.strokeDasharray=me,this.visual&&gt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},we.prototype.setOpacity=function(me){this.opacity=me,this.visual&&gt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var me=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Be.prototype.getState.call(this));return me.typeName=we.typeName,me},we.prototype.restoreState=function(me){var De=me;this.fillColor=De.fillColor,this.strokeColor=De.strokeColor,this.strokeWidth=De.strokeWidth,this.strokeDasharray=De.strokeDasharray,this.opacity=De.opacity,this.createVisual(),Be.prototype.restoreState.call(this,me),this.setSize()},we.prototype.scale=function(me,De){Be.prototype.scale.call(this,me,De),this.setSize()},we.typeName="EllipseMarker",we.title="Ellipse marker",we.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>',we}(et),En=function(Be){function we(me,De,Re){return Be.call(this,me,De,Re)||this}return Ne(we,Be),Object.defineProperty(we.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),we.prototype.ownsTarget=function(me){return!(!Be.prototype.ownsTarget.call(this,me)&&me!==this.tip1&&me!==this.tip2)},we.prototype.createTips=function(){this.tip1=gt.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(gt.createTransform()),this.visual.appendChild(this.tip1),this.tip2=gt.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(gt.createTransform()),this.visual.appendChild(this.tip2)},we.prototype.pointerDown=function(me,De){Be.prototype.pointerDown.call(this,me,De),this.state==="creating"&&this.createTips()},we.prototype.adjustVisual=function(){if(Be.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(gt.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()]]),gt.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 me=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),De=this.tip1.transform.baseVal.getItem(0);De.setRotate(me,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(De,0);var Re=this.tip2.transform.baseVal.getItem(0);Re.setRotate(me+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Re,0)}},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var me=Be.prototype.getState.call(this);return me.typeName=we.typeName,me},we.prototype.restoreState=function(me){Be.prototype.restoreState.call(this,me),this.createTips(),this.adjustVisual()},we.typeName="MeasurementMarker",we.title="Measurement marker",we.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>',we}(Ht),Yn=function(Be){function we(me,De,Re){var Le=Be.call(this,me,De,Re)||this;return Le.strokePanel.colors=Re.defaultColorSet,Le.fillColor="transparent",Le}return Ne(we,Be),Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var me=Be.prototype.getState.call(this);return me.typeName=we.typeName,me},we.typeName="EllipseFrameMarker",we.title="Ellipse frame marker",we.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>',we}(Kn),St=function(){function Be(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Be.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Be.prototype.addUndoStep=function(we){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(we)||(this.undoStack.push(we),JSON.stringify(this.lastRedoStep)!==JSON.stringify(we)&&this.redoStack.splice(0,this.redoStack.length))},Be.prototype.replaceLastUndoStep=function(we){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=we)},Be.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Be.prototype.undo=function(){if(this.undoStack.length>1){var we=this.undoStack.pop();return we!==void 0&&this.redoStack.push(we),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Be.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Be}(),Vn=function(Be){function we(me,De,Re){var Le=Be.call(this,me,De,Re)||this;return Le.strokeColor="transparent",Le.strokeWidth=0,Le.strokeDasharray="",Le.curveX=0,Le.curveY=0,Le.manipulationStartCurveX=0,Le.manipulationStartCurveY=0,Le.setStrokeColor=Le.setStrokeColor.bind(Le),Le.setStrokeWidth=Le.setStrokeWidth.bind(Le),Le.setStrokeDasharray=Le.setStrokeDasharray.bind(Le),Le.positionGrips=Le.positionGrips.bind(Le),Le.addControlGrips=Le.addControlGrips.bind(Le),Le.adjustVisual=Le.adjustVisual.bind(Le),Le.setupControlBox=Le.setupControlBox.bind(Le),Le.resize=Le.resize.bind(Le),Le.strokeColor=Re.defaultColor,Le.strokeWidth=Re.defaultStrokeWidth,Le.strokeDasharray=Re.defaultStrokeDasharray,Le.strokePanel=new Ce("Line color",Re.defaultColorSet,Re.defaultColor),Le.strokePanel.onColorChanged=Le.setStrokeColor,Le.strokeWidthPanel=new ft("Line width",Re.defaultStrokeWidths,Re.defaultStrokeWidth),Le.strokeWidthPanel.onWidthChanged=Le.setStrokeWidth,Le.strokeStylePanel=new Ge("Line style",Re.defaultStrokeDasharrays,Re.defaultStrokeDasharray),Le.strokeStylePanel.onStyleChanged=Le.setStrokeDasharray,Le}return Ne(we,Be),we.prototype.ownsTarget=function(me){return!(!Be.prototype.ownsTarget.call(this,me)&&me!==this.visual&&me!==this.selectorCurve&&me!==this.visibleCurve&&!this.curveGrip.ownsTarget(me))},we.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},we.prototype.createVisual=function(){this.visual=gt.createGroup(),this.selectorCurve=gt.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=gt.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)},we.prototype.pointerDown=function(me,De){Be.prototype.pointerDown.call(this,me,De),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=me.x,this.curveY=me.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(De)&&(this.activeGrip=this.curveGrip,this._state="resize")},we.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),gt.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),gt.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),gt.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},we.prototype.setupControlBox=function(){Be.prototype.setupControlBox.call(this),this.curveControlLine1=gt.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=gt.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)},we.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Be.prototype.addControlGrips.call(this)},we.prototype.positionGrips=function(){Be.prototype.positionGrips.call(this);var me=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-me/2,this.curveY-me/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()))},we.prototype.manipulate=function(me){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+me.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+me.y-this.manipulationStartY),Be.prototype.manipulate.call(this,me)},we.prototype.resize=function(me){this.activeGrip===this.curveGrip&&(this.curveX=me.x,this.curveY=me.y),Be.prototype.resize.call(this,me),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},we.prototype.setStrokeColor=function(me){this.strokeColor=me,this.adjustVisual(),this.colorChanged(me)},we.prototype.setStrokeWidth=function(me){this.strokeWidth=me,this.adjustVisual()},we.prototype.setStrokeDasharray=function(me){this.strokeDasharray=me,this.adjustVisual()},we.prototype.scale=function(me,De){this.curveX=this.curveX*me,this.curveY=this.curveY*De,Be.prototype.scale.call(this,me,De)},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var me=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Be.prototype.getState.call(this));return me.typeName=we.typeName,me},we.prototype.restoreState=function(me){Be.prototype.restoreState.call(this,me);var De=me;this.strokeColor=De.strokeColor,this.strokeWidth=De.strokeWidth,this.strokeDasharray=De.strokeDasharray,this.curveX=De.curveX,this.curveY=De.curveY,this.createVisual(),this.adjustVisual()},we.typeName="CurveMarker",we.title="Curve marker",we.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>',we}(zt),Cn=function(Be){function we(me,De,Re){var Le=Be.call(this,me,De,Re)||this;return Le.fillColor="transparent",Le.strokeColor="transparent",Le.strokeWidth=0,Le.strokeDasharray="",Le.textColor="transparent",Le.fontSize="1rem",Le.isMoved=!1,Le.captionText="Caption",Le.PADDING=5,Le.captionBoxWidth=0,Le.captionBoxHeight=0,Le.strokeColor=Re.defaultColor,Le.strokeWidth=Re.defaultStrokeWidth,Le.strokeDasharray=Re.defaultStrokeDasharray,Le.fillColor=Re.defaultFillColor,Le.textColor=Re.defaultStrokeColor,Le.fontFamily=Re.defaultFontFamily,Le.fontSize=Re.defaultCaptionFontSize,Le.captionText=Re.defaultCaptionText,Le.setStrokeColor=Le.setStrokeColor.bind(Le),Le.setFillColor=Le.setFillColor.bind(Le),Le.setStrokeWidth=Le.setStrokeWidth.bind(Le),Le.setStrokeDasharray=Le.setStrokeDasharray.bind(Le),Le.createVisual=Le.createVisual.bind(Le),Le.sizeCaption=Le.sizeCaption.bind(Le),Le.setCaptionText=Le.setCaptionText.bind(Le),Le.showTextEditor=Le.showTextEditor.bind(Le),Le.positionTextEditor=Le.positionTextEditor.bind(Le),Le.finishTextEditing=Le.finishTextEditing.bind(Le),Le.setFont=Le.setFont.bind(Le),Le.setTextColor=Le.setTextColor.bind(Le),Le.strokePanel=new Ce("Line color",qe(Re.defaultColorSet,["transparent"]),Le.strokeColor),Le.strokePanel.onColorChanged=Le.setStrokeColor,Le.fillPanel=new Ce("Fill color",qe(Re.defaultColorSet,["transparent"]),Le.fillColor,Jt),Le.fillPanel.onColorChanged=Le.setFillColor,Le.strokeWidthPanel=new ft("Line width",Re.defaultStrokeWidths,Re.defaultStrokeWidth),Le.strokeWidthPanel.onWidthChanged=Le.setStrokeWidth,Le.strokeStylePanel=new Ge("Line style",Re.defaultStrokeDasharrays,Re.defaultStrokeDasharray),Le.strokeStylePanel.onStyleChanged=Le.setStrokeDasharray,Le.fontFamilyPanel=new Yt("Font",Re.defaultFontFamilies,Re.defaultFontFamily),Le.fontFamilyPanel.onFontChanged=Le.setFont,Le.textColorPanel=new Ce("Text color",Re.defaultColorSet,Le.textColor,bt),Le.textColorPanel.onColorChanged=Le.setTextColor,Le}return Ne(we,Be),we.prototype.ownsTarget=function(me){return!(!Be.prototype.ownsTarget.call(this,me)&&me!==this.visual&&me!==this.frame&&me!==this.captionBg&&me!==this.captionElement)},we.prototype.createVisual=function(){this.visual=gt.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=gt.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=gt.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=gt.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()},we.prototype.setCaptionText=function(me){this.captionText=me,this.captionElement.textContent=this.captionText,this.sizeCaption()},we.prototype.pointerDown=function(me,De){Be.prototype.pointerDown.call(this,me,De),this.isMoved=!1,this.pointerDownPoint=me,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(me),this._state="creating")},we.prototype.manipulate=function(me){Be.prototype.manipulate.call(this,me),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(me.x-this.pointerDownPoint.x)>5||Math.abs(me.y-this.pointerDownPoint.y)>5)},we.prototype.resize=function(me){Be.prototype.resize.call(this,me),this.setSize()},we.prototype.sizeCaption=function(){var me=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=me.width+2*this.PADDING,this.captionBoxHeight=me.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),gt.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')"]]),gt.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')"]])},we.prototype.showTextEditor=function(){var me=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(De){De.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(De){De.key==="Enter"&&me.finishTextEditing(me.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(De){De.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){me.finishTextEditing(me.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){me.finishTextEditing(me.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},we.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"))},we.prototype.finishTextEditing=function(me){this.setCaptionText(me.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},we.prototype.setFont=function(me){this.captionElement&&gt.setAttributes(this.captionElement,[["font-family",me]]),this.fontFamily=me,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},we.prototype.setTextColor=function(me){this.captionElement&&gt.setAttributes(this.captionElement,[["fill",me]]),this.textColor=me,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},we.prototype.setSize=function(){Be.prototype.setSize.call(this),gt.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},we.prototype.pointerUp=function(me){Be.prototype.pointerUp.call(this,me),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},we.prototype.dblClick=function(me,De){Be.prototype.dblClick.call(this,me,De),this.showTextEditor()},we.prototype.setStrokeColor=function(me){this.strokeColor=me,this.frame&&gt.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(me),this.stateChanged()},we.prototype.setFillColor=function(me){this.fillColor=me,this.captionBg&&gt.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(me),this.stateChanged()},we.prototype.setStrokeWidth=function(me){this.strokeWidth=me,this.frame&&gt.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},we.prototype.setStrokeDasharray=function(me){this.strokeDasharray=me,this.frame&&gt.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var me=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},Be.prototype.getState.call(this));return me.typeName=this.typeName,me},we.prototype.restoreState=function(me){var De=me;this.fillColor=De.fillColor,this.strokeColor=De.strokeColor,this.strokeWidth=De.strokeWidth,this.strokeDasharray=De.strokeDasharray,this.textColor=De.textColor,this.fontFamily=De.fontFamily,this.captionText=De.captionText,this.fontSize=De.fontSize,this.createVisual(),Be.prototype.restoreState.call(this,me),this.setSize()},we.prototype.scale=function(me,De){Be.prototype.scale.call(this,me,De),this.setSize()},we.typeName="CaptionFrameMarker",we.title="Caption frame marker",we.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>',we}(et),Si=function(){function Be(we,me){me===void 0&&(me=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=we,this.cancelable=me}return Object.defineProperty(Be.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Be.prototype.preventDefault=function(){this._defaultPrevented=!0},Be}(),Bn=function(Be){function we(me,De,Re){var Le=Be.call(this,me,!1)||this;return Le.dataUrl=De,Le.state=Re,Le}return Ne(we,Be),we}(Si),tn=function(Be){function we(me,De,Re){Re===void 0&&(Re=!1);var Le=Be.call(this,me,Re)||this;return Le.marker=De,Le}return Ne(we,Be),we}(Si),$t=function(){function Be(){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 Be.prototype.addEventListener=function(we,me){this[we].push(me)},Be.prototype.removeEventListener=function(we,me){var De=this[we].indexOf(me);De>-1&&this[we].splice(De,1)},Be}(),ct=function(){function Be(we){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new $e,this._isOpen=!1,this.undoRedoManager=new St,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 $t,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Be.instanceCounter++,this.styles=new te(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=we,this.targetRoot=document.body,this.width=we.clientWidth,this.height=we.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(Be.prototype,"ALL_MARKER_TYPES",{get:function(){return[kt,Qt,je,Bt,Yn,Kn,rn,un,En,At,Ht,Vn,Cn]},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[kt,Qt,je,Bt,Kn,rn,un]},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"BASIC_MARKER_TYPES",{get:function(){return[kt,Qt,je,Bt,rn]},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(we){var me=this;this._availableMarkerTypes.splice(0),we.forEach(function(De){if(typeof De=="string"){var Re=me.ALL_MARKER_TYPES.find(function(Le){return Le.typeName===De});Re!==void 0&&me._availableMarkerTypes.push(Re)}else me._availableMarkerTypes.push(De)})},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(we){this._zoomLevel=we,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(Be.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Be.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),dt.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Be.prototype.show=function(){var we=this;this.styles.styleSheetRoot===void 0&&Me.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Me.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(me){return me(new Si(we))})},Be.prototype.render=function(){return Tt(this,void 0,void 0,function(){var we;return Ft(this,function(me){switch(me.label){case 0:return this.setCurrentMarker(),(we=new Ct).naturalSize=this.renderAtNaturalSize,we.imageType=this.renderImageType,we.imageQuality=this.renderImageQuality,we.markersOnly=this.renderMarkersOnly,we.width=this.renderWidth,we.height=this.renderHeight,[4,we.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return me.sent(),[4,we.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,me.sent()]}})})},Be.prototype.close=function(we){var me=this;if(we===void 0&&(we=!1),this.isOpen){var De=!1;we||this.eventListeners.beforeclose.forEach(function(Re){var Le=new Si(me,!0);Re(Le),Le.defaultPrevented&&(De=!0)}),De||(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(Re){return Re(new Si(me))}),this.detachEvents(),this._isOpen=!1)}},Be.prototype.addMarkersToToolbar=function(){for(var we,me=[],De=0;De<arguments.length;De++)me[De]=arguments[De];(we=this._availableMarkerTypes).push.apply(we,me)},Be.prototype.addRenderEventListener=function(we){this.addEventListener("render",function(me){we(me.dataUrl,me.state)})},Be.prototype.removeRenderEventListener=function(we){},Be.prototype.addCloseEventListener=function(we){this.addEventListener("close",function(){we()})},Be.prototype.removeCloseEventListener=function(we){},Be.prototype.setupResizeObserver=function(){var we=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){we.resize(we.target.clientWidth,we.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return we.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Be.prototype.onPopupTargetResize=function(){var we=1*this.target.clientWidth/this.target.clientHeight,me=this.editorCanvas.clientWidth/we>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*we:this.editorCanvas.clientWidth,De=me<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/we;this.resize(me,De)},Be.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Be.prototype.resize=function(we,me){this._isResizing=!0;var De=we/this.imageWidth,Re=me/this.imageHeight;this.imageWidth=Math.round(we),this.imageHeight=Math.round(me),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(De,Re),this._isResizing=!1},Be.prototype.scaleMarkers=function(we,me){var De,Re=this;this._currentMarker&&this._currentMarker instanceof Bt?this._currentMarker.scale(we,me):(De=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Le){Le!==Re._currentMarker&&Le.scale(we,me)}),De!==void 0&&this.setCurrentMarker(De)},Be.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"},Be.prototype.setTopLeft=function(){var we=this.editingTarget.getBoundingClientRect(),me=this.editorCanvas.getBoundingClientRect();this.left=we.left-me.left,this.top=we.top-me.top},Be.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)},Be.prototype.addDefs=function(){for(var we,me=[],De=0;De<arguments.length;De++)me[De]=arguments[De];this.defs=gt.createDefs(),this.addDefsToImage(),(we=this.defs).append.apply(we,me)},Be.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Be.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)},Be.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Be.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Be.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)},Be.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Be.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)},Be.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 we=document.createElement("a");we.href="https://markerjs.com/",we.target="_blank",we.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>',we.title="Powered by marker.js",we.style.display="grid",we.style.alignItems="center",we.style.justifyItems="center",we.style.padding="3px",we.style.width="20px",we.style.height="20px",this.logoUI.appendChild(we),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Be.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")},Be.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"},Be.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Be.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 we=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=we+"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 se(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 ge(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Be.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Be.prototype.removeMarker=function(we){this.markerImage.removeChild(we.container),this.markers.indexOf(we)>-1&&this.markers.splice(this.markers.indexOf(we),1),we.dispose()},Be.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())},Be.prototype.toolbarButtonClicked=function(we,me){if(we==="marker"&&me!==void 0)this.createNewMarker(me);else if(we==="action")switch(me){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()}},Be.prototype.deleteSelectedMarker=function(){var we=this;if(this._currentMarker!==void 0){var me=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Re){var Le=new tn(we,we._currentMarker,!0);Re(Le),Le.defaultPrevented&&(me=!0)}),!me){var De=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(Re){return Re(new tn(we,De))})}}},Be.prototype.clear=function(){var we=this,me=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(st){var Vt=new tn(we,void 0,!0);st(Vt),Vt.defaultPrevented&&(me=!0)}),!me)){this.setCurrentMarker();for(var De=function(st){var Vt=Re.markers[st];Re.setCurrentMarker(Re.markers[st]),Re._currentMarker.dispose(),Re.markerImage.removeChild(Re._currentMarker.container),Re.markers.splice(Re.markers.indexOf(Re._currentMarker),1),Re.eventListeners.markerdelete.forEach(function(sn){return sn(new tn(we,Vt))})},Re=this,Le=this.markers.length-1;Le>=0;Le--)De(Le);this.addUndoStep()}},Object.defineProperty(Be.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Be.prototype.showNotesEditor=function(){var we;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=(we=this._currentMarker.notes)!==null&&we!==void 0?we:"",this.overlayContainer.appendChild(this.notesArea))},Be.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)},Be.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Be.prototype.addUndoStep=function(){var we=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var me=this.getState(),De=this.undoRedoManager.getLastUndoStep();if(!De||De.width===me.width&&De.height===me.height){var Re=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(me),Re<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Le){return Le(new Si(we))})}else this.undoRedoManager.replaceLastUndoStep(me),this.eventListeners.statechange.forEach(function(Le){return Le(new Si(we))})}},Be.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Be.prototype.undoStep=function(){var we=this,me=this.undoRedoManager.undo();me!==void 0&&(this.restoreState(me),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(De){return De(new Si(we))}))},Be.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Be.prototype.redoStep=function(){var we=this,me=this.undoRedoManager.redo();me!==void 0&&(this.restoreState(me),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(De){return De(new Si(we))}))},Be.prototype.stepZoom=function(){var we=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=we<this.zoomSteps.length-1?this.zoomSteps[we+1]:this.zoomSteps[0]},Be.prototype.panTo=function(we){this.contentDiv.scrollBy({left:this.prevPanPoint.x-we.x,top:this.prevPanPoint.y-we.y}),this.prevPanPoint=we},Be.prototype.startRenderAndClose=function(){return Tt(this,void 0,void 0,function(){var we,me,De=this;return Ft(this,function(Re){switch(Re.label){case 0:return[4,this.render()];case 1:return we=Re.sent(),me=this.getState(),this.eventListeners.render.forEach(function(Le){return Le(new Bn(De,we,me))}),this.close(!0),[2]}})})},Be.prototype.getState=function(we){we===!0&&this.setCurrentMarker();var me={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(De){return me.markers.push(De.getState())}),me},Be.prototype.restoreState=function(we){var me=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);we.markers.forEach(function(De){var Re=me._availableMarkerTypes.find(function(st){return st.typeName===De.typeName});if(Re!==void 0){var Le=me.addNewMarker(Re);Le.restoreState(De),me.markers.push(Le)}}),we.width&&we.height&&(we.width!==this.imageWidth||we.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/we.width,this.imageHeight/we.height),this.eventListeners.restorestate.forEach(function(De){return De(new Si(me))})},Be.prototype.addNewMarker=function(we){var me=gt.createGroup();return this.markerImage.appendChild(me),new we(me,this.overlayContainer,this.settings)},Be.prototype.createNewMarker=function(we){var me,De=this;(me=typeof we=="string"?this._availableMarkerTypes.find(function(Re){return Re.typeName===we}):we)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(me),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(me.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Re){return Re(new tn(De,De._currentMarker))}))},Be.prototype.markerCreated=function(we){var me=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(we),this.setCurrentMarker(we),we instanceof Qt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Qt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(De){return De(new tn(me,me._currentMarker))})},Be.prototype.colorChanged=function(we){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=we,this.settings.defaultStrokeColor=we)},Be.prototype.fillColorChanged=function(we){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=we)},Be.prototype.markerStateChanged=function(we){var me=this;this.eventListeners.markerchange.forEach(function(De){return De(new tn(me,we))})},Be.prototype.setCurrentMarker=function(we){var me=this;this._currentMarker!==we&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(De){return De(new tn(me,me._currentMarker))})),this._currentMarker=we,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(De){return De(new tn(me,me._currentMarker))}))},Be.prototype.onPointerDown=function(we){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||we.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var me=this.markers.find(function(De){return De.ownsTarget(we.target)});me!==void 0?(this.setCurrentMarker(me),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(we.clientX,we.clientY),we.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:we.clientX,y:we.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(we.clientX,we.clientY))},Be.prototype.onDblClick=function(we){if(this._isFocused||this.focus(),this.mode==="select"){var me=this.markers.find(function(De){return De.ownsTarget(we.target)});me!==void 0&&me!==this._currentMarker&&this.setCurrentMarker(me),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(we.clientX,we.clientY),we.target):this.setCurrentMarker()}},Be.prototype.onPointerMove=function(we){this.touchPoints!==1&&we.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||we.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(we.clientX,we.clientY)):this.zoomLevel>1&&this.panTo({x:we.clientX,y:we.clientY}))},Be.prototype.onPointerUp=function(we){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(we.clientX,we.clientY)),this.isDragging=!1,this.addUndoStep()},Be.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Be.prototype.onKeyUp=function(we){this._currentMarker===void 0||this.notesArea!==void 0||we.key!=="Delete"&&we.key!=="Backspace"||this.deleteSelectedMarker()},Be.prototype.clientToLocalCoordinates=function(we,me){var De=this.markerImage.getBoundingClientRect();return{x:(we-De.left)/this.zoomLevel,y:(me-De.top)/this.zoomLevel}},Be.prototype.onWindowResize=function(){this.positionUI()},Be.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var we=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=we+"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()},Be.prototype.addLicenseKey=function(we){dt.addKey(we)},Be.prototype.addEventListener=function(we,me){this.eventListeners.addEventListener(we,me)},Be.prototype.removeEventListener=function(we,me){this.eventListeners.removeEventListener(we,me)},Be.prototype.renderState=function(we){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(we),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Be.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Be.prototype.focus=function(){var we=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(me){return me(new Si(we))}))},Be.prototype.blur=function(){var we=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(me){return me(new Si(we))}))},Be.instanceCounter=0,Be}(),ze=ye(70635),Ut=ye(58130),Gt=(Be,we,me)=>new Promise((De,Re)=>{var Le=sn=>{try{Vt(me.next(sn))}catch(ln){Re(ln)}},st=sn=>{try{Vt(me.throw(sn))}catch(ln){Re(ln)}},Vt=sn=>sn.done?De(sn.value):Promise.resolve(sn.value).then(Le,st);Vt((me=me.apply(Be,we)).next())}),Ve=({data:Be,className:we,fullWidth:me,style:De={},onClose:Re,onOk:Le,showFullTools:st,noAssociationId:Vt})=>{const sn=(0,xe.useRef)(null),ln=(0,xe.useRef)(null),Hn=(0,xe.useRef)(null),wi=(0,xe.useRef)(null),[Pi,Ri]=(0,xe.useState)(!1),[Zi,Ln]=(0,xe.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,xe.useEffect)(()=>{Hn.current||(Hn.current=document.createElement("style"),document.head.appendChild(Hn.current)),Be!=null&&Be.visible?(document.body.setAttribute("data-custom","y-hidden"),Hn.current.innerHTML=" html { overflow-y: hidden; }",Be!=null&&Be.src&&rr()):(document.body.removeAttribute("data-custom"),Hn.current&&(document.head.removeChild(Hn.current),Hn.current=null))},[Be==null?void 0:Be.visible]);const rr=()=>Gt(void 0,null,function*(){Ri(!0),Ln("\u6B63\u5728\u52A0\u8F7D\u4E2D");const li=yield(0,Ut.ZJ)(Be==null?void 0:Be.src);sn.current.src="",sn.current.src=li,sn.current.onload=function(){jr()},Ri(!1),Ln("")}),Kr=li=>Gt(void 0,null,function*(){Ri(!0),Ln("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ti=yield(0,ze.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Be.title,file:li.dataUrl}});Ti!=null&&Ti.id&&!Vt?(yield(0,ze.ZP)(`/api/attachments/${Be.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ti==null?void 0:Ti.id,settings:JSON.stringify(li.state)}})).status===0&&Le():Ti!=null&&Ti.id&&Le(Ti),Ri(!1),Ln("")}),Vr=()=>{const li=document.querySelector('a[href="https://markerjs.com/"]');li&&li.parentNode&&(li.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(vr=>{const ui=document.querySelector(vr.name);ui&&ui.setAttribute("title",vr.title)})},jr=()=>{ln.current=new ct(sn.current),ln.current.targetRoot=wi.current,ln.current.addEventListener("render",Kr),ln.current.addEventListener("beforeclose",Re),st&&(ln.current.availableMarkerTypes=ln.current.ALL_MARKER_TYPES,ln.current.uiStyleSettings.redoButtonVisible=!0,ln.current.uiStyleSettings.notesButtonVisible=!0,ln.current.uiStyleSettings.zoomButtonVisible=!0,ln.current.uiStyleSettings.zoomOutButtonVisible=!0,ln.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ln.current.uiStyleSettings,ln.current.show(),Be!=null&&Be.snapshotData&&ln.current.restoreState(Be.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Vr()},300)};return xe.createElement(xe.Fragment,null,(Be==null?void 0:Be.visible)&&xe.createElement(Qe.Z,{spinning:Pi,tip:Zi,style:{position:"absolute"}},xe.createElement("div",{ref:wi,className:It()(Ie.imageDimensions,we,me?Ie.fullWidth:""),style:De},xe.createElement("img",{className:Ie.img,ref:sn}))))}},75890:function(In,Fn,ye){"use strict";var xe=ye(59301),Ie=ye(95237),We=ye(43604),It=ye(99313),Qe=ye(3113),vt=ye(25711),Ne=ye(93938),Tt=ye(48136),Ft=ye(59301);const qe=(0,xe.forwardRef)(({callback:gt,showSaveButton:dt,value:Ct=""},Me)=>{const te=(0,xe.useRef)(),ne=[{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 "}]}]}],ce=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],se=Ce=>{te.current.setValue(te.current.getValue()+" "+Ce.value+" ")},ge=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ft.createElement(Ie.Z,{className:Ne.Z.lists,gutter:[10,10]},ne.map((Ce,ke)=>Ft.createElement(We.Z,{flex:"110px",className:Ne.Z.item},Ft.createElement("div",null,Ft.createElement(vt.Z,{value:`$$${Ce.value}$$`}),Ce.name),Ft.createElement("div",{className:Ne.Z.children},Ce.children.map((Pe,Te)=>Ft.createElement("div",{key:Te},Ft.createElement("h1",null,Pe.name),Ft.createElement(Ie.Z,{gutter:[10,10]},Pe.data.map((Ke,et)=>Ft.createElement(We.Z,{key:et,onClick:()=>se(Ke),className:Ne.Z.diamond},Ft.createElement(vt.Z,{value:"`$$"+Ke.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ft.createElement(Ie.Z,{className:Ne.Z.lists,gutter:[10,10]},ce.map((Ce,ke)=>Ft.createElement(We.Z,{flex:"110px",className:Ne.Z.item},Ft.createElement("div",null,Ft.createElement(vt.Z,{value:"`$$"+Ce.value+"$$`"}),Ce.name),Ft.createElement("div",{className:Ne.Z.children},Ce.children.map((Pe,Te)=>Ft.createElement("div",{key:Te},Pe.name&&Ft.createElement("h1",null,Pe.name),Ft.createElement(Ie.Z,{gutter:[10,10]},Pe.data.map((Ke,et)=>Ft.createElement(We.Z,{key:et,onClick:()=>se(Ke),className:Ne.Z.diamond},Ft.createElement(vt.Z,{value:"`$$"+Ke.value+"$$`"}))))))))))}],ve=()=>{var Ce=document.createElement("div");Ce.innerHTML=te.current.getValue();var ke=Ce.innerText;return gt&&gt(ke),ke};return(0,xe.useImperativeHandle)(Me,()=>({getData:ve})),Ft.createElement("div",{className:Ne.Z.mathWrap},Ft.createElement(It.default,{defaultActiveKey:"1",items:ge}),Ft.createElement("math-field",{locale:"zh_cn",className:Ne.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:te,style:{width:800,marginTop:30,fontSize:18}},Ct||""),dt&&Ft.createElement("div",{className:Ne.Z.button},Ft.createElement(Qe.ZP,{size:"large",onClick:ve,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Fn.Z=qe},97267:function(In,Fn,ye){"use strict";var xe=ye(59301),Ie=ye(93314),We=ye(3113),It=Object.defineProperty,Qe=Object.defineProperties,vt=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable,qe=(Me,te,ne)=>te in Me?It(Me,te,{enumerable:!0,configurable:!0,writable:!0,value:ne}):Me[te]=ne,gt=(Me,te)=>{for(var ne in te||(te={}))Tt.call(te,ne)&&qe(Me,ne,te[ne]);if(Ne)for(var ne of Ne(te))Ft.call(te,ne)&&qe(Me,ne,te[ne]);return Me},dt=(Me,te)=>Qe(Me,vt(te));const Ct=({img:Me,buttonProps:te={},styles:ne={},customText:ce,ButtonText:se,ButtonClick:ge,Buttonclass:ve,ButtonTwo:Ce,imgStyles:ke,loading:Pe=!1})=>xe.createElement("section",{className:"tc animated fadeIn",style:gt(gt({},{color:"#999",margin:"100px auto",visibility:Pe?"hidden":"visible"}),ne)},xe.createElement("img",{src:Me||Ie,style:dt(gt({},ke),{pointerEvents:"none",userSelect:"none"})}),xe.createElement("p",{className:"mt20 font14"},ce||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),se&&xe.createElement(We.ZP,gt({className:ve,onClick:ge},te),se),Ce&&Ce);Fn.Z=Ct},46898:function(In,Fn,ye){"use strict";ye.d(Fn,{Q:function(){return vt}});var xe=ye(59301),Ie=ye(57809),We=ye(5112),It=ye(88897),Qe=ye(59301),vt=(Tt=>(Tt[Tt.Number=1]="Number",Tt[Tt.Percent=2]="Percent",Tt))(vt||{});const Ne=({value:Tt,onChange:Ft,disabled:qe,hidePercentOption:gt=!1,percentType:dt="select"})=>{const Ct=(0,xe.useMemo)(()=>gt?1:2,[gt]),[Me,te]=(0,xe.useState)(Ct);console.log(Me);const ne=se=>Tt.type===1?`${se}\u5206`:`${se}%`,ce=(0,xe.useCallback)(se=>{if(Me===1){const ge=se.replace("\u5206","");return isNaN(parseInt(ge,10))?0:ge}else return se.replace("%","")},[Me]);return(0,xe.useEffect)(()=>{te(Tt.type)},[Tt]),Qe.createElement("div",{style:{display:"flex",alignItems:"center"}},dt=="select"&&Qe.createElement(Ie.default,{size:"large",onChange:se=>{te(se),Ft({type:se,inputValue:se===1?5:20})},value:Me||Ct,style:{width:100},options:gt?[{label:"\u5206\u503C",value:1}]:[{label:"\u767E\u5206\u6BD4",value:2},{label:"\u5206\u503C",value:1}],disabled:qe}),dt=="radio"&&Qe.createElement(We.ZP.Group,{size:"large",onChange:se=>{const ge=se.target.value;te(ge),Ft({type:ge,inputValue:ge===1?5:20})},value:Me||Ct,disabled:qe},!gt&&Qe.createElement(We.ZP,{value:2,style:{marginRight:"50px"}},"\u767E\u5206\u6BD4\u6263\u5206"),Qe.createElement(We.ZP,{value:1},"\u56FA\u5B9A\u5206\u503C")),dt=="radio"&&Qe.createElement("div",{style:{marginRight:"10px",color:"#000000"}},Tt.type==2?"\u6263\u9664\u8865\u4EA4\u9636\u6BB5\u5F97\u5206\u7684":"\u6263\u9664\u603B\u6210\u7EE9\u7684"),Qe.createElement(It.Z,{size:"large",disabled:qe,value:Tt.inputValue,style:{width:"120px"},parser:ce,addonAfter:Tt.type===1?"\u5206":"%",max:Me===2?100:Number.MAX_SAFE_INTEGER,min:0,precision:0,onChange:se=>{Ft({type:Me,inputValue:se})}}),dt=="radio"&&Tt.type==2&&Qe.createElement("div",{style:{marginLeft:"10px",color:"#000000"}},"\u5206\u6570"))};Fn.Z=Ne},79646:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return ve}});var xe=ye(59301),Ie={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},We=ye(3113),It=ye(63093),Qe=ye(48551),vt=ye(6848),Ne=ye(58130),Tt=ye(79124),Ft=ye(97267),qe=ye(10148),gt=ye(63486),dt=ye(59301),Ct=Object.defineProperty,Me=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,ce=(Ce,ke,Pe)=>ke in Ce?Ct(Ce,ke,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ce[ke]=Pe,se=(Ce,ke)=>{for(var Pe in ke||(ke={}))te.call(ke,Pe)&&ce(Ce,Pe,ke[Pe]);if(Me)for(var Pe of Me(ke))ne.call(ke,Pe)&&ce(Ce,Pe,ke[Pe]);return Ce},ge=(Ce,ke,Pe)=>new Promise((Te,Ke)=>{var et=Ge=>{try{ft(Pe.next(Ge))}catch(kt){Ke(kt)}},Xe=Ge=>{try{ft(Pe.throw(Ge))}catch(kt){Ke(kt)}},ft=Ge=>Ge.done?Te(Ge.value):Promise.resolve(Ge.value).then(et,Xe);ft((Pe=Pe.apply(Ce,ke)).next())}),ve=({editOffice:Ce="view",data:ke,theme:Pe,type:Te,filename:Ke,monacoEditor:et,className:Xe,style:ft,close:Ge,onClose:kt,hasMask:$e,disabledDownload:zt,onImgDimensions:Ht,showNodata:Yt,recordInfo:Bt})=>{const[Qt,ht]=(0,xe.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[je,At]=(0,xe.useState)(""),[wn,rn]=(0,xe.useState)(),bt=window.ENV==="build"?"/react/build":"",Jt=location.host.startsWith("localhost")?qe.Z.PROXY_SERVER:qe.Z.API_SERVER,Kn=10*(1024*1024),En=(0,xe.useRef)();ke!=null&&ke.startsWith("/api")&&Te!=="txt"&&(ke=qe.Z.API_SERVER+ke);const Yn=Si=>Si.substring(Si.lastIndexOf("/")+1).split(".").pop();Ke&&et&&(et.filename=Ke),(0,xe.useEffect)(()=>{var Si,Bn;const tn=(Bn=(Si=document.cookie)==null?void 0:Si.replace(/\s/g,""))==null?void 0:Bn.split(";");tn==null||tn.map($t=>{let ct=$t.split("=");ct[0]==="_educoder_session"&&At(ct[1])})},[]),(0,xe.useEffect)(()=>{Te==="office"&&(ke.indexOf("bigfilescdn.")>-1||ke.indexOf("bigfiles1")>-1?rn({url:ke,fileType:Yn(ke),model:ke.indexOf("model=edit")?"edit":"view"}):St())},[Te,ke]);const St=()=>ge(void 0,null,function*(){console.log("data:",ke);let Si=ke;ke.startsWith("http")||(Si=location.origin+Si);let Bn=new URL(Si).pathname.split("/").pop();const tn=yield(0,Tt.gJ)({attachment_id:Bn});tn.url=Jt+tn.url,rn(tn)}),Vn=()=>{if(ke.startsWith("http")||ke.startsWith("blob:")){Cn();return}(0,Ne.Sv)(Ke||"educoder",ke,Ke)},Cn=()=>{Bt&&(0,gt.fc)({id:Bt==null?void 0:Bt.id,watch_type:1,course_id:Bt==null?void 0:Bt.course_id}),(0,Ne.Nd)(Ke||"educoder",decodeURIComponent(ke))};return dt.createElement("div",{style:se({},ft||{}),className:`${$e&&Ie.bgBlack} ${Te?Ie.wrp:"hide"}`},Ge&&dt.createElement("div",{className:Ie.close,ref:En},!!Ht&&dt.createElement(vt.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>En.current},dt.createElement("span",{onClick:()=>{kt(),Ht()}},dt.createElement("i",{className:"icon-yulanpizhu"}))),!zt&&dt.createElement(vt.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>En.current},dt.createElement("span",{onClick:Cn},dt.createElement("i",{className:"icon-quxiaozhiding"}))),dt.createElement(vt.Z,{title:"\u5173\u95ED",getPopupContainer:()=>En.current},dt.createElement("span",{className:"",onClick:kt},dt.createElement("i",{className:"icon-guanbi1"})))),dt.createElement("div",{className:`${Ie[Xe]} ${Xe} ${Ie.monaco} ${Te==="txt"?"show":"hide"}`},Te==="txt"&&dt.createElement(dt.Fragment,null,dt.createElement(Qe.ZP,se({},et)))),Te==="audio"&&dt.createElement("audio",{src:`${(ke==null?void 0:ke.indexOf("http://"))>-1||(ke==null?void 0:ke.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${ke}`,autoPlay:!0}),Te==="video"&&dt.createElement(dt.Fragment,null,(ke==null?void 0:ke.indexOf("http"))>-1?dt.createElement("video",{controls:!0,src:`${ke}`,autoPlay:!0}):dt.createElement("video",{controls:!0,src:`data:video/mp4;base64,${ke}`,autoPlay:!0})),Te==="office"&&wn&&dt.createElement("iframe",{src:`${bt}/office.html?key=${wn.key}&url=${btoa(wn.url)}&callbackUrl=${Jt+(wn.callbackUrl||"")}&fileType=${wn.fileType}&title=${wn.title||""}&model=${Ce}&officeServer=${qe.Z.ONLYOFFICE}&disabledDownload=${!!zt}`}),Te==="html"&&dt.createElement("iframe",{src:ke+"&disposition=inline"}),Te==="pdf"&&dt.createElement("iframe",{src:`${bt}/js/pdfview/index.html?filename=${Ke||"educoder.pdf"}&url=${encodeURIComponent(ke)}&disabledDownload=${!!zt}`}),Te==="image"&&dt.createElement("img",{src:`${(ke==null?void 0:ke.indexOf("http://"))>-1||(ke==null?void 0:ke.indexOf("https://"))>-1?"":"data:image/png;base64,"}${ke}`}),(Te==="other"||Te==="download")&&dt.createElement(dt.Fragment,null,Yt?dt.createElement(Ft.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:dt.createElement(We.ZP,{icon:dt.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Vn,disabled:zt},"\u4E0B\u8F7D")}):dt.createElement(We.ZP,{type:"primary",size:"middle",onClick:Vn,disabled:zt},dt.createElement(It.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},25711:function(In,Fn,ye){"use strict";ye.d(Fn,{z:function(){return Te},Z:function(){return Ke}});var xe=ye(59301),Ie=ye(1751),We=ye(31087),It=ye(64018),Qe=ye(37312),vt=ye(10148),Ne=ye(58130),Tt=ye(15342),Ft=ye(1012),qe=ye(79646),gt=ye(59301),Ct=({html:et})=>{const Xe=(0,xe.useRef)(null),ft=(0,xe.useRef)(null),Ge=`.markdown-body p {
margin: 0 0 16px 0 !important;
line-height: 28px;
white-space: pre-wrap;
}
ol,
ul,
li {
list-style-type: none
}
ol,
ul,
dl {
margin-bottom: 0px;
}
.markdown-body {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
color: #333;
overflow: hidden;
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
word-break: break-word;
font-size: 16px;
line-height: 1.6;
white-space: normal;
word-wrap: break-word;
position: relative;
}
.markdown-body ul>li {
list-style-type: disc;
}
.markdown-body ol>li {
list-style-type: decimal;
}
.markdown-body a {
background: transparent;
}
.markdown-body a:active,
.markdown-body a:hover {
outline: 0;
}
.markdown-body strong {
font-weight: bold;
}
.markdown-body h1 {
font-size: 2em;
margin: 0.67em 0;
}
.markdown-body img {
border: 0;
}
.markdown-body hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
.markdown-body pre {
overflow: auto;
}
.markdown-body code,
.markdown-body kbd,
.markdown-body pre {
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
font-size: 1em;
}
.markdown-body input {
color: inherit;
font: inherit;
margin: 0;
}
.markdown-body html input[disabled] {
cursor: default;
}
.markdown-body input {
line-height: normal;
}
.markdown-body input[type="checkbox"] {
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
}
.markdown-body table {
border-collapse: collapse;
border-spacing: 0;
}
.markdown-body td,
.markdown-body th {
padding: 0;
}
.markdown-body * {
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body input {
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
}
.markdown-body a {
color: #4183c4;
text-decoration: none;
}
.markdown-body a:hover,
.markdown-body a:active {
text-decoration: underline;
}
.markdown-body hr {
height: 0;
margin: 15px 0;
overflow: hidden;
background: transparent;
border: 0;
border-bottom: 1px solid #ddd;
}
.markdown-body hr:before {
display: table;
content: "";
}
.markdown-body hr:after {
display: table;
clear: both;
content: "";
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
margin-top: 15px;
margin-bottom: 15px;
line-height: 1.1;
}
.markdown-body h1 {
font-size: 30px;
}
.markdown-body h2 {
font-size: 21px;
}
.markdown-body h3 {
font-size: 16px;
}
.markdown-body h4 {
font-size: 14px;
}
.markdown-body h5 {
font-size: 12px;
}
.markdown-body h6 {
font-size: 11px;
}
.markdown-body blockquote {
margin: 0;
}
.markdown-body ul,
.markdown-body ol {
padding: 0;
margin-top: 0;
margin-bottom: 0;
}
ul.linenums,
ol.linenums {
padding: 16px 0 0 36px !important;
}
.markdown-body ul,
.markdown-body ol {
padding-left: 2em;
}
.markdown-body ol ol,
.markdown-body ul ol {
list-style-type: lower-roman;
}
.markdown-body ul ul ol,
.markdown-body ul ol ol,
.markdown-body ol ul ol,
.markdown-body ol ol ol {
list-style-type: lower-alpha;
}
.markdown-body dd {
margin-left: 0;
}
.markdown-body code {
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
font-size: 12px;
}
.markdown-body pre {
margin-top: 0;
margin-bottom: 0;
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
.markdown-body .octicon {
font: normal normal 16px octicons-anchor;
line-height: 1;
display: inline-block;
text-decoration: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.markdown-body .octicon-link:before {
content: '\f05c';
}
.markdown-body>*:first-child {
margin-top: 0 !important;
}
.markdown-body>*:last-child {
margin-bottom: 0 !important;
}
.markdown-body .anchor {
position: absolute;
top: 0;
left: 0;
display: block;
padding-right: 6px;
padding-left: 30px;
margin-left: -30px;
}
.markdown-body .anchor:focus {
outline: none;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
position: relative;
margin-top: 1em;
margin-bottom: 16px;
font-weight: bold;
line-height: 1.4;
}
.markdown-body h1 .octicon-link,
.markdown-body h2 .octicon-link,
.markdown-body h3 .octicon-link,
.markdown-body h4 .octicon-link,
.markdown-body h5 .octicon-link,
.markdown-body h6 .octicon-link {
display: none;
color: #000;
vertical-align: middle;
}
.markdown-body h1:hover .anchor,
.markdown-body h2:hover .anchor,
.markdown-body h3:hover .anchor,
.markdown-body h4:hover .anchor,
.markdown-body h5:hover .anchor,
.markdown-body h6:hover .anchor {
padding-left: 8px;
margin-left: -30px;
text-decoration: none;
}
.markdown-body h1:hover .anchor .octicon-link,
.markdown-body h2:hover .anchor .octicon-link,
.markdown-body h3:hover .anchor .octicon-link,
.markdown-body h4:hover .anchor .octicon-link,
.markdown-body h5:hover .anchor .octicon-link,
.markdown-body h6:hover .anchor .octicon-link {
display: inline-block;
}
.markdown-body h1 {
padding-bottom: 0.3em;
font-size: 2.25em;
line-height: 1.2;
border-bottom: 1px solid #eee;
}
.markdown-body h1 .anchor {
line-height: 1;
}
.markdown-body h2 {
padding-bottom: 0.3em;
font-size: 1.75em;
line-height: 1.225;
border-bottom: 1px solid #eee;
}
.markdown-body h2 .anchor {
line-height: 1;
}
.markdown-body h3 {
font-size: 1.5em;
line-height: 1.43;
}
.markdown-body h3 .anchor {
line-height: 1.2;
}
.markdown-body h4 {
font-size: 1.25em;
}
.markdown-body h4 .anchor {
line-height: 1.2;
}
.markdown-body h5 {
font-size: 1em;
}
.markdown-body h5 .anchor {
line-height: 1.1;
}
.markdown-body h6 {
font-size: 1em;
color: #777;
}
.markdown-body h6 .anchor {
line-height: 1.1;
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}
.markdown-body ul ul,
.markdown-body ul ol,
.markdown-body ol ol,
.markdown-body ol ul {
margin-top: 0;
margin-bottom: 0;
}
.markdown-body li>p {
margin-top: 16px;
}
.markdown-body dl {
padding: 0;
}
.markdown-body dl dt {
padding: 0;
margin-top: 16px;
font-size: 1em;
font-style: italic;
font-weight: bold;
}
.markdown-body dl dd {
padding: 0 16px;
margin-bottom: 16px;
}
.markdown-body blockquote {
padding: 0 15px;
color: #777;
border-left: 4px solid #ddd;
}
.markdown-body blockquote> :first-child {
margin-top: 0;
}
.markdown-body blockquote> :last-child {
margin-bottom: 0;
}
.markdown-body table {
display: block;
width: 100%;
overflow: auto;
word-break: normal;
word-break: keep-all;
}
.markdown-body table th {
font-weight: bold;
text-align: revert;
}
.markdown-body table th,
.markdown-body table td {
padding: 6px 13px;
border: 1px solid #ddd;
}
.markdown-body table tr {
background-color: #fff;
border-top: 1px solid #ccc;
}
.markdown-body table tr:nth-child(2n) {
background-color: #f8f8f8;
}
.markdown-body img {
max-width: 100%;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body code {
padding: 0;
padding-top: 0.2em;
padding-bottom: 0.2em;
margin: 0;
font-size: 85%;
background-color: rgba(0, 0, 0, 0.04);
border-radius: 3px;
}
.markdown-body code:has(.katex) {
background-color: transparent;
}
.markdown-body code:before,
.markdown-body code:after {
letter-spacing: -0.2em;
content: "\\00a0";
}
.markdown-body pre>code {
padding: 0;
margin: 0;
font-size: 100%;
word-break: normal;
white-space: pre;
background: transparent;
border: 0;
}
.markdown-body .highlight {
margin-bottom: 16px;
}
.markdown-body .highlight pre,
.markdown-body pre {
padding: 16px;
overflow: auto;
font-size: 85%;
line-height: 1.45;
background-color: #f7f7f7;
border-radius: 3px;
}
.markdown-body .highlight pre {
margin-bottom: 0;
word-break: normal;
}
.markdown-body pre {
word-wrap: normal;
}
.markdown-body pre code {
display: inline;
max-width: initial;
padding: 0;
margin: 0;
overflow: initial;
line-height: inherit;
word-wrap: normal;
background-color: transparent;
border: 0;
}
.markdown-body pre code:before,
.markdown-body pre code:after {
content: normal;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font-size: 11px;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .pl-c {
color: #969896;
}
.markdown-body .pl-c1,
.markdown-body .pl-mdh,
.markdown-body .pl-mm,
.markdown-body .pl-mp,
.markdown-body .pl-mr,
.markdown-body .pl-s1 .pl-v,
.markdown-body .pl-s3,
.markdown-body .pl-sc,
.markdown-body .pl-sv {
color: #0086b3;
}
.markdown-body .pl-e,
.markdown-body .pl-en {
color: #795da3;
}
.markdown-body .pl-s1 .pl-s2,
.markdown-body .pl-smi,
.markdown-body .pl-smp,
.markdown-body .pl-stj,
.markdown-body .pl-vo,
.markdown-body .pl-vpf {
color: #333;
}
.markdown-body .pl-ent {
color: #63a35c;
}
.markdown-body .pl-k,
.markdown-body .pl-s,
.markdown-body .pl-st {
color: #a71d5d;
}
.markdown-body .pl-pds,
.markdown-body .pl-s1,
.markdown-body .pl-s1 .pl-pse .pl-s2,
.markdown-body .pl-sr,
.markdown-body .pl-sr .pl-cce,
.markdown-body .pl-sr .pl-sra,
.markdown-body .pl-sr .pl-sre,
.markdown-body .pl-src {
color: #df5000;
}
.markdown-body .pl-mo,
.markdown-body .pl-v {
color: #1d3e81;
}
.markdown-body .pl-id {
color: #b52a1d;
}
.markdown-body .pl-ii {
background-color: #b52a1d;
color: #f8f8f8;
}
.markdown-body .pl-sr .pl-cce {
color: #63a35c;
font-weight: bold;
}
.markdown-body .pl-ml {
color: #693a17;
}
.markdown-body .pl-mh,
.markdown-body .pl-mh .pl-en,
.markdown-body .pl-ms {
color: #1d3e81;
font-weight: bold;
}
.markdown-body .pl-mq {
color: #008080;
}
.markdown-body .pl-mi {
color: #333;
font-style: italic;
}
.markdown-body .pl-mb {
color: #333;
font-weight: bold;
}
.markdown-body .pl-md,
.markdown-body .pl-mdhf {
background-color: #ffecec;
color: #bd2c00;
}
.markdown-body .pl-mdht,
.markdown-body .pl-mi1 {
background-color: #eaffea;
color: #55a532;
}
.markdown-body .pl-mdr {
color: #795da3;
font-weight: bold;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .task-list-item {
list-style-type: none;
}
.markdown-body .task-list-item+.task-list-item {
margin-top: 3px;
}
.markdown-body .task-list-item input {
float: left;
margin: 0.3em 0 0.25em -1.6em;
vertical-align: middle;
}
.markdown-body :checked+.radio-label {
z-index: 1;
position: relative;
border-color: #4183c4;
}
/*! Pretty printing styles. Used with prettify.js. */
/* SPAN elements with the classes below are added by prettyprint. */
.pln {
color: #000
}
/* plain text */
@media screen {
.str {
color: #080
}
/* string content */
.kwd {
color: #008
}
/* a keyword */
.com {
color: #800
}
/* a comment */
.typ {
color: #606
}
/* a type name */
.lit {
color: #066
}
/* a literal value */
/* punctuation, lisp open bracket, lisp close bracket */
.pun,
.opn,
.clo {
color: #660
}
.tag {
color: #008
}
/* a markup tag name */
.atn {
color: #606
}
/* a markup attribute name */
.atv {
color: #080
}
/* a markup attribute value */
.dec,
.var {
color: #606
}
/* a declaration; a variable name */
.fun {
color: red
}
/* a function name */
}
/* Use higher contrast and text-weight for printable form. */
@media print,
projection {
.str {
color: #060
}
.kwd {
color: #006;
font-weight: bold
}
.com {
color: #600;
font-style: italic
}
.typ {
color: #404;
font-weight: bold
}
.lit {
color: #044
}
.pun,
.opn,
.clo {
color: #440
}
.tag {
color: #006;
font-weight: bold
}
.atn {
color: #404
}
.atv {
color: #060
}
}
/* Put a border around prettyprinted code snippets. */
pre.prettyprint {
padding: 2px;
/* border: 1px solid #888 */
}
/* Specify class=linenums on a pre to get line numbering */
ol.linenums {
margin-top: 0;
margin-bottom: 0
}
/* IE indents via margin-left */
li.L0,
li.L1,
li.L2,
li.L3,
li.L5,
li.L6,
li.L7,
li.L8 {
list-style-type: none
}
/* Alternate shading for lines */
li.L1,
li.L3,
li.L5,
li.L7,
li.L9 {
background: #eee
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}`;return(0,xe.useEffect)(()=>{const kt=Xe.current.attachShadow({mode:"open"});ft.current=document.createElement("div"),ft.current.className="markdown-body",ft.current.innerHTML=et,kt.appendChild(ft.current);const $e=document.createElement("style");return $e.textContent=Ge,kt.appendChild($e),()=>{kt.innerHTML=""}},[]),(0,xe.useEffect)(()=>{ft.current&&(ft.current.innerHTML=et)},[et]),gt.createElement("div",{ref:Xe})},Me=Object.defineProperty,te=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable,se=(et,Xe,ft)=>Xe in et?Me(et,Xe,{enumerable:!0,configurable:!0,writable:!0,value:ft}):et[Xe]=ft,ge=(et,Xe)=>{for(var ft in Xe||(Xe={}))ne.call(Xe,ft)&&se(et,ft,Xe[ft]);if(te)for(var ft of te(Xe))ce.call(Xe,ft)&&se(et,ft,Xe[ft]);return et};const ve="@\u2581\u2581@",Ce="@\u2581@",ke=/<pre[^>]*>/g;function Pe(et){let Xe=document.createElement("div");return Xe.innerHTML=et,Xe.childNodes.length===0?"":Xe.childNodes[0].nodeValue}const Te=(et,Xe)=>{et=et||"";const ft=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ge=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,kt=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,$e=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Xe?et.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(ft,(zt,Ht,Yt,Bt,Qt,ht,je)=>{const At=Ht||Bt||ht,wn=Yt||Qt||je||"?";return vt.Z.API_SERVER+"/api/attachments/"+At+wn+"&t="+(0,Ne.Jn)(At,Date.now())+(zt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(et=et.replace($e,(zt,Ht,Yt,Bt,Qt,ht,je)=>{const At=Ht||Bt||ht,wn=Yt||Qt||je||"?";return vt.Z.API_SERVER+"/attachments/download/"+At+wn+"&t="+(0,Ne.Jn)(At,Date.now())+(zt.indexOf(")")>-1?")":"&")}).replace(ft,(zt,Ht,Yt,Bt,Qt,ht,je)=>{const At=Ht||Bt||ht,wn=Yt||Qt||je||"?";return vt.Z.API_SERVER+"/api/attachments/"+At+wn+"&t="+(0,Ne.Jn)(At,Date.now())+(zt.indexOf(")")>-1?")":"&")}).replace(Ge,(zt,Ht,Yt,Bt,Qt)=>{const ht=Ht||Bt,je=Yt||Qt||"";return'"'+vt.Z.API_SERVER+"/api/attachments/"+ht+je+ht+je+"&t="+(0,Ne.Jn)(ht,Date.now())}).replace(kt,(zt,Ht,Yt,Bt,Qt)=>{const ht=Ht||Bt,je=Yt||Qt||"";return"("+vt.Z.API_SERVER+"/files/uploads/"+ht+je+ht+je+"&t="+(0,Ne.Jn)(ht,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`),et)};var Ke=({value:et="",className:Xe,showTextOnly:ft,showLines:Ge,style:kt={},stylesPrev:$e={},highlightKeywords:zt,showProgramFill:Ht,isProgramFill:Yt,disabledFill:Bt=!1,programFillValue:Qt,onFillChange:ht=wn=>{},onFillBlur:je=()=>{},onFillFocus:At=()=>{}})=>{let wn=String(et);const[rn,bt]=(0,xe.useState)(""),[Jt,un]=(0,xe.useState)("office"),[Kn,En]=(0,xe.useState)([]),Yn=(0,xe.useRef)("a"+(0,Ft.Z)()),St={},Vn=(Be,we,me)=>{const De=document.createElement(Be===Ce?"input":"textarea");De.style.width="100%",De.style.height=Be===Ce?"40px":"151px",De.rows=5,De.spellcheck=!1,De.name="edu-program-fill",De.placeholder="\u8BF7\u8F93\u5165",De.dataset.id=we;const Re=Object.keys(St).length;return St[Re]=De,`<span class="edu-program-fill-wrap ${Be===Ce?"":"show"}" style="width:${Be===Ce?"400px":"100%"}" title=${me||""}><span>${De.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Cn(Be){return Be=Be.replace(/!\[.*?\]\(.*?\)/g,""),Be=Be.replace(/\[.*?\]\(.*?\)/g,""),Be=Be.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Be=Be.replace(/<embed.*?>/g,""),Be=Be.replace(/<img.*?>/g,""),Be=Be.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Be=Be.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Be=Be.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Be=Be.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Be}const Si=Be=>Be.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(we,me){let De=me.replace(/(\n|\r)/g,"").split("}"),Re=[];return De.map(Le=>{Le!=""&&Re.push(`.${Yn.current} ${Le}`)}),`<style>${Re.join("}")}</style>`}),Bn=(0,xe.useMemo)(()=>{try{const De=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Re=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Le=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,st=/\(\/attachments\/download\//g;wn=wn.replace(st,"("+vt.Z.API_SERVER+"/attachments/download/").replace(De,"("+vt.Z.API_SERVER+"/api/attachments/").replace(Re,'"'+vt.Z.API_SERVER+"/api/attachments/").replace(Le,'"'+vt.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(De){}if(Ht){let De=-1;return wn=wn.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(Re,Le,st){var Vt;return++De,Vn(Re,De,(Vt=Qt==null?void 0:Qt[De])==null?void 0:Vt.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${Si(wn||"")}</pre>`}let Be=Si(wn);Be=(0,We.ZP)(Be);const we=(0,We.ez)();wn.match(/\[TOC\]/)&&(Be=Be.replace("<p>[TOC]</p>",(0,We.Qv)()),(0,We.Iy)()),Be=Be.replace(/(__special_katext_id_\d+__)/g,(De,Re)=>{const{type:Le,expression:st}=we[Re];return(0,Tt.renderToString)(Pe(st)||"",{displayMode:Le==="block",throwOnError:!1,output:"html"})}),Be=Be.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,We.AL)();const me=document.createElement("div");if(me.innerHTML=Be,ft)return me.innerText;if(zt){const De=zt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return ze(me,De),me.innerHTML}return setTimeout(()=>at(),500),me.innerHTML},[wn,zt]);(0,xe.useEffect)(()=>{Ut.current&&Ut.current.querySelectorAll(["input","textarea"]).forEach(we=>{we.oninput=tn,we.onblur=$t,we.onfocus=ct})},[Kn]),(0,xe.useEffect)(()=>{var Be,we,me,De,Re;if(Qt!=null&&Qt.length)try{const Le=Ut.current.querySelectorAll(".edu-program-fill-score"),st=Ut.current.querySelectorAll('[name="edu-program-fill"]');for(const[Vt,sn]of st.entries())sn.value=((Be=Qt==null?void 0:Qt[Vt])==null?void 0:Be.value)||"",((we=Qt==null?void 0:Qt[Vt])==null?void 0:we.type)==="warning"?sn.className="program-fill-warning":((me=Qt==null?void 0:Qt[Vt])==null?void 0:me.type)==="success"?sn.className="program-fill-success":sn.className="";for(const[Vt,sn]of Le.entries())sn.innerHTML=(De=Qt==null?void 0:Qt[Vt])!=null&&De.score?`${(Re=Qt==null?void 0:Qt[Vt])==null?void 0:Re.score}\u5206`:"";En(Qt)}catch(Le){console.log(Le,"error")}},[Qt]);const tn=Be=>{Kn[Be.target.dataset.id]=Kn[Be.target.dataset.id]||{},Kn[Be.target.dataset.id].value=Be.target.value,En([...Kn]),ht(Kn,Be.target.dataset.id)},$t=Be=>{Kn[Be.target.dataset.id]=Kn[Be.target.dataset.id]||{},Kn[Be.target.dataset.id].value=Be.target.value,En([...Kn]),je(Kn,Be.target.dataset.id)},ct=Be=>{Kn[Be.target.dataset.id]=Kn[Be.target.dataset.id]||{},Kn[Be.target.dataset.id].value=Be.target.value,En([...Kn]),At(Kn,Be.target.dataset.id)};function ze(Be,we){return Be.childNodes.forEach(me=>{var De;if(me.childNodes.length>0)ze(me,we);else if(me.nodeName!=="IMG")if(me.innerHTML)me.innerHTML=(De=me.innerHTML)==null?void 0:De.replace(new RegExp(we,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Re=document.createElement("span");Re.innerHTML=me.textContent.replace(new RegExp(we,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),me.replaceWith(Re)}})}const Ut=(0,xe.useRef)();We.jb.WebkitLineClamp=Ge,Ge&&(kt=ge(ge({},kt),We.jb));function Gt(Be){let we=Be.target;if(we.tagName.toUpperCase()==="A"){let me=we.getAttribute("href");if(me.indexOf("office")>-1)Be.preventDefault(),bt(me),un("office");else if(me.indexOf("application/pdf")>-1)Be.preventDefault(),bt(me),un("pdf");else if(me.indexOf("text/html")>-1)Be.preventDefault(),bt(me),un("html");else if(me.startsWith("#")){Be.preventDefault();let De=document.getElementById(me.replace("#",""));De&&De.scrollIntoView(!0)}}}const at=()=>{var Be;const we=(Be=Ut.current)==null?void 0:Be.querySelectorAll("video");we==null||we.forEach(me=>{if(me.oncontextmenu=()=>!1,me.src.indexOf(".m3u8")>-1&&!me.canPlayType("application/vnd.apple.mpegurl")){if(Qe.ZP.isSupported()){var De=new Qe.ZP;De.loadSource(me.src),De.attachMedia(me)}}})};(0,xe.useEffect)(()=>{if(Ut.current&&Bn&&Bn.match(ke)&&window.PR.prettyPrint(),Ut.current)return Ut.current.addEventListener("click",Gt),()=>{var Be;(Be=Ut.current)==null||Be.removeEventListener("click",Gt),(0,We.AL)(),(0,We.Iy)()}},[Bn,Ut.current,Gt]),(0,xe.useEffect)(()=>{var Be;const we=me=>{me.preventDefault(),me.clipboardData.setData("text",window.getSelection().toString())};return(Be=Ut.current)==null||Be.addEventListener("copy",we),()=>{var me;(me=Ut.current)==null||me.removeEventListener("copy",we)}},[Ut.current]);const Ve=Be=>/<style[\s\S]*?>/i.test(Be||"");return xe.createElement(xe.Fragment,null,ft&&xe.createElement("div",{ref:Ut},Bn),!ft&&!Ve(Bn)&&xe.createElement("div",{ref:Ut,style:ge({},kt),className:`${Xe||""} ${Bt?"disabled-fill":""} markdown-body ${Yn.current}`,dangerouslySetInnerHTML:{__html:Bn}}),!ft&&Ve(Bn)&&xe.createElement(Ct,{html:Bn}),xe.createElement(qe.Z,{close:!0,data:rn,type:rn!=null&&rn.length?Jt:"",style:ge({},$e),onClose:()=>bt("")}))}},36866:function(In,Fn,ye){"use strict";ye.d(Fn,{h:function(){return Ce},Z:function(){return ve}});var xe=ye(59301),Ie=ye(57809),We=ye(78241),It=ye(3113),Qe=ye(89780),vt=ye.n(Qe),Ne=ye(79906),Tt=Object.defineProperty,Ft=Object.defineProperties,qe=Object.getOwnPropertyDescriptors,gt=Object.getOwnPropertySymbols,dt=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,Me=(ke,Pe,Te)=>Pe in ke?Tt(ke,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Te}):ke[Pe]=Te,te=(ke,Pe)=>{for(var Te in Pe||(Pe={}))dt.call(Pe,Te)&&Me(ke,Te,Pe[Te]);if(gt)for(var Te of gt(Pe))Ct.call(Pe,Te)&&Me(ke,Te,Pe[Te]);return ke},ne=(ke,Pe)=>Ft(ke,qe(Pe));const ce=Ie.default.Option,se={labelCol:{span:4},wrapperCol:{span:20}},ge={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};var ve=({callback:ke,onCancel:Pe})=>{const[Te,Ke]=(0,xe.useState)("python");function et(ft){Ke(ge[ft][1])}function Xe(ft){ke(ft)}return xe.createElement(We.default,ne(te({},se),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Xe,style:{width:500}}),xe.createElement(We.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},xe.createElement(Ie.default,{getPopupContainer:ft=>ft.parentNode,onChange:et},Object.keys(ge).map(ft=>xe.createElement(ce,{key:ft,value:ft},ge[ft][0])))),xe.createElement(We.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},xe.createElement(Ce,{mode:Te})),xe.createElement("div",{className:"flex-container flex-end"},xe.createElement(It.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),xe.createElement(It.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))};function Ce({value:ke,onChange:Pe,mode:Te,options:Ke={}}){const et=(0,xe.useRef)(),[Xe,ft]=(0,xe.useState)();return(0,xe.useEffect)(()=>{if(Xe){let Ge=function(kt){const $e=kt.getValue();Pe&&Pe($e)};return Xe.on("change",Ge),()=>{Xe.off("change",Ge)}}},[Xe,Pe]),(0,xe.useEffect)(()=>{Xe&&Xe.setOption("mode",Te)},[Xe,Te]),(0,xe.useEffect)(()=>{Xe&&(ke!==Xe.getValue()||ke==="")&&setTimeout(()=>{Xe.setValue(ke||"")},300)},[Xe,ke]),(0,xe.useEffect)(()=>{if(et.current&&!Xe){const Ge=vt().fromTextArea(et.current,te({mode:Te,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ke));ft(Ge)}},[et.current,Xe]),xe.createElement("div",{className:"my-codemirror-container"},xe.createElement("textarea",{ref:et}))}},23469:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return on}});var xe=ye(59301),Ie=ye(89780),We=ye.n(Ie),It=ye(76374),Qe=ye(79906),vt=ye(6313),Ne=ye(25717),Tt=ye(99498),Ft=ye(25419),qe=ye(67549),gt=ye(25711),dt=({value:yt="",className:Et,showTextOnly:Lt,showLines:tt,style:en={}})=>{const fn=(0,xe.useMemo)(()=>"",[yt]);return xe.createElement(xe.Fragment,null,xe.createElement("div",{dangerouslySetInnerHTML:{__html:fn}}))},Ct=ye(59301),Me=Object.defineProperty,te=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,ve=(yt,Et,Lt)=>Et in yt?Me(yt,Et,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):yt[Et]=Lt,Ce=(yt,Et)=>{for(var Lt in Et||(Et={}))se.call(Et,Lt)&&ve(yt,Lt,Et[Lt]);if(ce)for(var Lt of ce(Et))ge.call(Et,Lt)&&ve(yt,Lt,Et[Lt]);return yt},ke=(yt,Et)=>te(yt,ne(Et));let Pe=[{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 Te({onActionCallback:yt,title:Et,icon:Lt,actionName:tt,className:en="",children:fn}){function xt(){yt(tt)}return Ct.createElement("a",{title:Et,className:en,onClick:xt},Ct.createElement("i",{className:`${Lt}`}),fn)}var Ke=({watch:yt,showNullButton:Et,showNullProgramButton:Lt,onActionCallback:tt,fullScreen:en,insertTemp:fn,hidetoolBar:xt,extraUse:Ue})=>{const an=[...Pe,{title:`${yt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${yt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ct.createElement("ul",{className:"markdown-toolbar-container"},!xt&&an.map((Dt,Rn)=>Ct.createElement("li",{key:Rn},Dt.actionName?Ct.createElement(Te,ke(Ce({},Dt),{onActionCallback:tt})):Ct.createElement("span",{className:"v-line"}))),Et?Ct.createElement("li",null,Ct.createElement(Te,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:tt},Ct.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Lt?Ct.createElement(Ct.Fragment,null,Ct.createElement("li",null,Ct.createElement(Te,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:tt},Ct.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ct.createElement("li",null,Ct.createElement(Te,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:tt},Ct.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,fn&&Ct.createElement("li",null,Ct.createElement(Te,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${fn}`,onActionCallback:tt},Ct.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Ue&&Ct.createElement("li",null,Ue),Ct.createElement("li",{className:"btn-full-screen"},Ct.createElement(Te,{icon:`${en?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:en?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:tt})))},et=ye(50474),Xe=ye(78241),ft=ye(92832),Ge=ye(3113),kt=Object.defineProperty,$e=Object.defineProperties,zt=Object.getOwnPropertyDescriptors,Ht=Object.getOwnPropertySymbols,Yt=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,Qt=(yt,Et,Lt)=>Et in yt?kt(yt,Et,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):yt[Et]=Lt,ht=(yt,Et)=>{for(var Lt in Et||(Et={}))Yt.call(Et,Lt)&&Qt(yt,Lt,Et[Lt]);if(Ht)for(var Lt of Ht(Et))Bt.call(Et,Lt)&&Qt(yt,Lt,Et[Lt]);return yt},je=(yt,Et)=>$e(yt,zt(Et));const At={labelCol:{span:4},wrapperCol:{span:20}};var wn=({callback:yt,onCancel:Et})=>{function Lt(tt){yt(tt)}return xe.createElement(Xe.default,je(ht({},At),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Lt,style:{width:500}}),xe.createElement(Xe.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},xe.createElement(ft.default,null)),xe.createElement(Xe.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},xe.createElement(ft.default,null)),xe.createElement("div",{className:"flex-container flex-end"},xe.createElement(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),xe.createElement(Ge.ZP,{type:"ghost",onClick:Et},"\u53D6\u6D88")))},rn=ye(36866),bt=ye(56701),Jt=ye(43418),un=ye(95237),Kn=ye(65983),En=ye(59301),Yn=({callback:yt,onCancel:Et})=>{const Lt=document.createElement("canvas"),tt=Lt.getContext("2d");Lt.width=1e3,Lt.height=800,tt.fillStyle="#ffffff",tt.fillRect(0,0,Lt.width,Lt.height);const en=Lt.toDataURL("image/png");return En.createElement(Jt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},En.createElement(un.Z,{style:{height:"100vh"}},En.createElement(Kn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:en,visible:!0,title:String(Date.now())},onOk:fn=>{yt({src:fn.url})},onClose:Et})))},St=ye(12378);function Vn(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Vn,go.CommandHandler),Vn.prototype.canAlignSelection=function(){var yt=this.diagram;return!(yt===null||yt.isReadOnly||yt.isModelReadOnly||yt.selection.count<2)},Vn.prototype.alignLeft=function(){var yt=this.diagram;yt.startTransaction("aligning left");var Et=1/0;yt.selection.each(function(Lt){Lt instanceof go.Link||(Et=Math.min(Lt.position.x,Et))}),yt.selection.each(function(Lt){Lt instanceof go.Link||Lt.move(new go.Point(Et,Lt.position.y))}),yt.commitTransaction("aligning left")},Vn.prototype.alignRight=function(){var yt=this.diagram;yt.startTransaction("aligning right");var Et=-1/0;yt.selection.each(function(Lt){if(!(Lt instanceof go.Link)){var tt=Lt.actualBounds.x+Lt.actualBounds.width;Et=Math.max(tt,Et)}}),yt.selection.each(function(Lt){Lt instanceof go.Link||Lt.move(new go.Point(Et-Lt.actualBounds.width,Lt.position.y))}),yt.commitTransaction("aligning right")},Vn.prototype.alignTop=function(){var yt=this.diagram;yt.startTransaction("alignTop");var Et=1/0;yt.selection.each(function(Lt){Lt instanceof go.Link||(Et=Math.min(Lt.position.y,Et))}),yt.selection.each(function(Lt){Lt instanceof go.Link||Lt.move(new go.Point(Lt.position.x,Et))}),yt.commitTransaction("alignTop")},Vn.prototype.alignBottom=function(){var yt=this.diagram;yt.startTransaction("aligning bottom");var Et=-1/0;yt.selection.each(function(Lt){if(!(Lt instanceof go.Link)){var tt=Lt.actualBounds.y+Lt.actualBounds.height;Et=Math.max(tt,Et)}}),yt.selection.each(function(Lt){Lt instanceof go.Link||Lt.move(new go.Point(Lt.actualBounds.x,Et-Lt.actualBounds.height))}),yt.commitTransaction("aligning bottom")},Vn.prototype.alignCenterX=function(){var yt=this.diagram,Et=yt.selection.first();if(Et){yt.startTransaction("aligning Center X");var Lt=Et.actualBounds.x+Et.actualBounds.width/2;yt.selection.each(function(tt){tt instanceof go.Link||tt.move(new go.Point(Lt-tt.actualBounds.width/2,tt.actualBounds.y))}),yt.commitTransaction("aligning Center X")}},Vn.prototype.alignCenterY=function(){var yt=this.diagram,Et=yt.selection.first();if(Et){yt.startTransaction("aligning Center Y");var Lt=Et.actualBounds.y+Et.actualBounds.height/2;yt.selection.each(function(tt){tt instanceof go.Link||tt.move(new go.Point(tt.actualBounds.x,Lt-tt.actualBounds.height/2))}),yt.commitTransaction("aligning Center Y")}},Vn.prototype.alignColumn=function(yt){var Et=this.diagram;Et.startTransaction("align Column"),yt===void 0&&(yt=0),yt=parseFloat(yt);var Lt=new Array;Et.selection.each(function(Ue){Ue instanceof go.Link||Lt.push(Ue)});for(var tt=0;tt<Lt.length-1;tt++){var en=Lt[tt],fn=en.actualBounds.y+en.actualBounds.height+yt,xt=Lt[tt+1];xt.move(new go.Point(en.actualBounds.x,fn))}Et.commitTransaction("align Column")},Vn.prototype.alignRow=function(yt){yt===void 0&&(yt=0),yt=parseFloat(yt);var Et=this.diagram;Et.startTransaction("align Row");var Lt=new Array;Et.selection.each(function(Ue){Ue instanceof go.Link||Lt.push(Ue)});for(var tt=0;tt<Lt.length-1;tt++){var en=Lt[tt],fn=en.actualBounds.x+en.actualBounds.width+yt,xt=Lt[tt+1];xt.move(new go.Point(fn,en.actualBounds.y))}Et.commitTransaction("align Row")},Vn.prototype.canRotate=function(yt){var Et=this.diagram;return!(Et===null||Et.isReadOnly||Et.isModelReadOnly||Et.selection.count<1)},Vn.prototype.rotate=function(yt){yt===void 0&&(yt=90);var Et=this.diagram;Et.startTransaction("rotate "+yt.toString());var Et=this.diagram;Et.selection.each(function(Lt){Lt instanceof go.Link||Lt instanceof go.Group||(Lt.angle+=yt)}),Et.commitTransaction("rotate "+yt.toString())},Vn.prototype.pullToFront=function(){var yt=this.diagram;yt.startTransaction("pullToFront");var Et=new go.Map;yt.selection.each(function(Lt){Et.set(Lt.layer,0)}),Et.iteratorKeys.each(function(Lt){var tt=0;Lt.parts.each(function(en){if(!en.isSelected){var fn=en.zOrder;isNaN(fn)?en.zOrder=0:tt=Math.max(tt,fn)}}),Et.set(Lt,tt)}),yt.selection.each(function(Lt){Vn._assignZOrder(Lt,Et.get(Lt.layer)+1)}),yt.commitTransaction("pullToFront")},Vn.prototype.pushToBack=function(){var yt=this.diagram;yt.startTransaction("pushToBack");var Et=new go.Map;yt.selection.each(function(Lt){Et.set(Lt.layer,0)}),Et.iteratorKeys.each(function(Lt){var tt=0;Lt.parts.each(function(en){if(!en.isSelected){var fn=en.zOrder;isNaN(fn)?en.zOrder=0:tt=Math.min(tt,fn)}}),Et.set(Lt,tt)}),yt.selection.each(function(Lt){Vn._assignZOrder(Lt,Et.get(Lt.layer)-1-Vn._findGroupDepth(Lt))}),yt.commitTransaction("pushToBack")},Vn._assignZOrder=function(yt,Et,Lt){Lt===void 0&&(Lt=yt),yt.layer===Lt.layer&&(yt.zOrder=Et),yt instanceof go.Group&&yt.memberParts.each(function(tt){Vn._assignZOrder(tt,Et+1,Lt)})},Vn._findGroupDepth=function(yt){if(yt instanceof go.Group){var Et=0;return yt.memberParts.each(function(Lt){Et=Math.max(Et,Vn._findGroupDepth(Lt))}),Et+1}else return 0},Vn.prototype.doKeyDown=function(){var yt=this.diagram;if(yt!==null){var Et=yt.lastInput;if(Et.key==="Up"||Et.key==="Down"||Et.key==="Left"||Et.key==="Right"){var Lt=this.arrowKeyBehavior;if(Lt==="none")return;if(Lt==="select"){this._arrowKeySelect();return}else if(Lt==="move"){this._arrowKeyMove();return}else if(Lt==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Vn.prototype._getAllParts=function(){var yt=new Array;return this.diagram.nodes.each(function(Et){yt.push(Et)}),this.diagram.parts.each(function(Et){yt.push(Et)}),yt},Vn.prototype._arrowKeyMove=function(){var yt=this.diagram,Et=yt.lastInput,Lt=0,tt=0;if(Et.control||Et.meta)Lt=1,tt=1;else if(yt.grid!==null){var en=yt.grid.gridCellSize;tt=en.width,Lt=en.height}yt.startTransaction("arrowKeyMove"),yt.selection.each(function(fn){Et.key==="Up"?fn.move(new go.Point(fn.actualBounds.x,fn.actualBounds.y-Lt)):Et.key==="Down"?fn.move(new go.Point(fn.actualBounds.x,fn.actualBounds.y+Lt)):Et.key==="Left"?fn.move(new go.Point(fn.actualBounds.x-tt,fn.actualBounds.y)):Et.key==="Right"&&fn.move(new go.Point(fn.actualBounds.x+tt,fn.actualBounds.y))}),yt.commitTransaction("arrowKeyMove")},Vn.prototype._arrowKeySelect=function(){var yt=this.diagram,Et=yt.lastInput,Lt=null;Et.key==="Up"?Lt=this._findNearestPartTowards(270):Et.key==="Down"?Lt=this._findNearestPartTowards(90):Et.key==="Left"?Lt=this._findNearestPartTowards(180):Et.key==="Right"&&(Lt=this._findNearestPartTowards(0)),Lt!==null&&(Et.shift?Lt.isSelected=!0:Et.control||Et.meta?Lt.isSelected=!Lt.isSelected:yt.select(Lt))},Vn.prototype._findNearestPartTowards=function(yt){var Et=this.diagram.selection.first();if(Et===null)return null;for(var Lt=Et.actualBounds.center,tt=this._getAllParts(),en=1/0,fn=Et,xt=0;xt<tt.length;xt++){var Ue=tt[xt];if(Ue!==Et&&Ue.canSelect()){var an=Ue.actualBounds.center,Dt=Lt.directionPoint(an),Rn=this._angleCloseness(Dt,yt);if(Rn<=45){var dn=Lt.distanceSquaredPoint(an);dn*=1+Math.sin(Rn*Math.PI/180),dn<en&&(en=dn,fn=Ue)}}}return fn},Vn.prototype._angleCloseness=function(yt,Et){return Math.min(Math.abs(Et-yt),Math.min(Math.abs(Et+360-yt),Math.abs(Et-360-yt)))},Vn.prototype._arrowKeyTree=function(){var yt=this.diagram,Et=yt.selection.first();if(Et instanceof go.Node){var Lt=yt.lastInput;if(Lt.key==="Right"){if(!Et.isTreeLeaf)if(!Et.isTreeExpanded)yt.commandHandler.canExpandTree(Et)&&yt.commandHandler.expandTree(Et);else{var tt=this._sortTreeChildrenByY(Et).first();tt!==null&&yt.select(tt)}}else if(Lt.key==="Left")if(!Et.isTreeLeaf&&Et.isTreeExpanded)yt.commandHandler.canCollapseTree(Et)&&yt.commandHandler.collapseTree(Et);else{var en=Et.findTreeParentNode();en!==null&&yt.select(en)}else if(Lt.key==="Up"){var en=Et.findTreeParentNode();if(en!==null){var fn=this._sortTreeChildrenByY(en),xt=fn.indexOf(Et);if(xt>0){for(var Ue=fn.elt(xt-1);Ue!==null&&Ue.isTreeExpanded&&!Ue.isTreeLeaf;){var an=this._sortTreeChildrenByY(Ue);Ue=an.last()}Ue!==null&&yt.select(Ue)}else yt.select(en)}}else if(Lt.key==="Down")if(Et.isTreeExpanded&&!Et.isTreeLeaf){var tt=this._sortTreeChildrenByY(Et).first();tt!==null&&yt.select(tt)}else for(;Et!==null;){var en=Et.findTreeParentNode();if(en===null)break;var fn=this._sortTreeChildrenByY(en),xt=fn.indexOf(Et);if(xt<fn.length-1){yt.select(fn.elt(xt+1));break}else Et=en}var Dt=yt.selection.first();Dt!==null&&yt.scrollToRect(Dt.actualBounds)}},Vn.prototype._sortTreeChildrenByY=function(yt){var Et=new go.List().addAll(yt.findTreeChildrenNodes());return Et.sort(function(Lt,tt){var en=Lt.location,fn=tt.location;return en.y<fn.y?-1:en.y>fn.y?1:en.x<fn.x?-1:en.x>fn.x?1:0}),Et},Vn.prototype.copyToClipboard=function(yt){go.CommandHandler.prototype.copyToClipboard.call(this,yt),this._lastPasteOffset.set(this.pasteOffset)},Vn.prototype.pasteFromClipboard=function(){var yt=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(yt,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),yt},Object.defineProperty(Vn.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(yt){if(yt!=="move"&&yt!=="select"&&yt!=="scroll"&&yt!=="tree"&&yt!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+yt);this._arrowKeyBehavior=yt}}),Object.defineProperty(Vn.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(yt){if(!(yt instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+yt);this._pasteOffset.set(yt)}});var Cn=Vn,Si=ye(37404),Bn=ye(43604),tn=ye(70635),$t={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ct=ye(59301),ze=(yt,Et,Lt)=>new Promise((tt,en)=>{var fn=an=>{try{Ue(Lt.next(an))}catch(Dt){en(Dt)}},xt=an=>{try{Ue(Lt.throw(an))}catch(Dt){en(Dt)}},Ue=an=>an.done?tt(an.value):Promise.resolve(an.value).then(fn,xt);Ue((Lt=Lt.apply(yt,Et)).next())});function Ut({onCancel:yt,callback:Et}){let Lt=(0,xe.useRef)(),tt=(0,xe.useRef)(),en=(0,xe.useRef)(),fn=(0,xe.useRef)(!1);const xt=(0,xe.useRef)(!1),[Ue,an]=(0,xe.useState)(0);function Dt(){const dn=St.bx.make,Pt={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"};Lt.current=new St.S0(tt.current,{padding:20,grid:dn(St.s_,"Grid",dn(St.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),dn(St.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Xt=>{var Mi=Xt.diagram.commandHandler.addTopLevelParts(Xt.diagram.selection,!0);Mi||Xt.diagram.currentTool.doCancel()},commandHandler:dn(Cn),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Xt=>{var Mi=Xt.subject;Mi.location=Mi.location.copy().snapToGridPoint(Xt.diagram.grid.gridOrigin,Xt.diagram.grid.gridCellSize),setTimeout(()=>{Xt.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Xt=>{var Mi=Xt.subject;setTimeout(()=>{Xt.diagram.commandHandler.editTextBlock()})},LinkRelinked:Xt=>{var Mi=Xt.parameter.part;Mi.invalidateConnectedLinks();var ar=Xt.subject;Xt.diagram.toolManager.linkingTool.isForwards?ar.toNode.invalidateConnectedLinks():ar.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Lt.current.nodeTemplate=dn(St.NB,"Auto",{locationSpot:St.z6.Center,locationObjectName:"SHAPE",desiredSize:new St.$u(120,60),minSize:new St.$u(40,40),resizable:!0,resizeCellSize:new St.$u(10,10),rotatable:!0},new St.KX("location","loc",St.E9.parse).makeTwoWay(St.E9.stringify),new St.KX("desiredSize","size",St.$u.parse).makeTwoWay(St.$u.stringify),dn(St.bn,{name:"SHAPE",fill:Pt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:St.z6.AllSides,toSpot:St.z6.AllSides},new St.KX("figure"),new St.KX("fill"),new St.KX("stroke","borderColor"),new St.KX("strokeWidth","thickness"),new St.KX("strokeDashArray","dash")),dn(St.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),dn(St.al,{margin:1,textAlign:"center",overflow:St.al.OverflowEllipsis,editable:!0},new St.KX("text").makeTwoWay(),new St.KX("stroke","color"))),Lt.current.nodeTemplate.toolTip=dn("ToolTip",dn(St.s_,"Vertical",{maxSize:new St.$u(200,NaN)},dn(St.al,{font:"bold 10pt sans-serif",textAlign:"center"},new St.KX("text")),dn(St.al,{font:"10pt sans-serif",textAlign:"center"},new St.KX("text","details"))));function Sn(Xt,Mi){var ar=(Wi,Mr)=>{Wi.handled=!0,Wi.diagram.model.commit(fr=>{var Br=Mr.part.adornedPart,Oi=new St.E9().setRectSpot(Br.actualBounds,Xt);Oi.subtract(Br.location),Oi.scale(2,2),Oi.x+=Math.sign(Oi.x)*130,Oi.y+=Math.sign(Oi.y)*130,Oi.add(Br.location),Oi.snapToGridPoint(Wi.diagram.grid.gridOrigin,Wi.diagram.grid.gridCellSize);var $i=fr.copyNodeData(Br.data);fr.setGroupKeyForNodeData($i,fr.getGroupKeyForNodeData(Br.data)),fr.addNodeData($i);var nr={from:Br.key,to:fr.getKeyForNodeData($i)};fr.addLinkData(nr);var Mn=Wi.diagram.findNodeForData($i);Mn.location=Oi,Wi.diagram.select(Mn),setTimeout(()=>{Wi.diagram.commandHandler.editTextBlock()},20)})};return dn(St.bn,{figure:Mi,alignment:Xt,alignmentFocus:Xt.opposite(),width:Xt.equals(St.z6.Top)||Xt.equals(St.z6.Bottom)?25:18,height:Xt.equals(St.z6.Top)||Xt.equals(St.z6.Bottom)?18:25,fill:"orange",stroke:Pt.white,strokeWidth:4,mouseEnter:(Wi,Mr)=>Mr.fill="dodgerblue",mouseLeave:(Wi,Mr)=>Mr.fill="orange",isActionable:!0,click:ar,contextClick:ar})}function Qn(Xt){return dn(St.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:(Mi,ar)=>ar.fill="dodgerblue",mouseLeave:(Mi,ar)=>ar.fill="orange",click:(Mi,ar)=>{Mi.diagram.commandHandler.showContextMenu(ar.part.adornedPart)}},Xt||{})}Lt.current.nodeTemplate.selectionAdornmentTemplate=dn(St.uz,"Spot",dn(St.Vm,{padding:10}),Sn(St.z6.Top,"TriangleUp"),Sn(St.z6.Left,"TriangleLeft"),Sn(St.z6.Right,"TriangleRight"),Sn(St.z6.Bottom,"TriangleDown"),Qn({alignment:new St.z6(.75,0)}));function Xn(Xt,Mi){return(ar,Wi)=>{ar.handled=!0,ar.diagram.model.commit(Mr=>{Mr.set(Wi.part.adornedPart.data,Xt,Mi)})}}function Rt(Xt,Mi){return Mi||(Mi="color"),dn(St.bn,{width:16,height:16,stroke:"lightgray",fill:Xt,margin:1,background:"transparent",mouseEnter:(ar,Wi)=>Wi.stroke="dodgerblue",mouseLeave:(ar,Wi)=>Wi.stroke="lightgray",click:Xn(Mi,Xt),contextClick:Xn(Mi,Xt)})}function vn(){return[dn("ContextMenuButton",dn(St.s_,"Horizontal",Rt(Pt.white,"fill"),Rt(Pt.beige,"fill"),Rt(Pt.extralightblue,"fill"),Rt(Pt.extralightred,"fill"))),dn("ContextMenuButton",dn(St.s_,"Horizontal",Rt(Pt.lightgray,"fill"),Rt(Pt.lightgreen,"fill"),Rt(Pt.lightblue,"fill"),Rt(Pt.lightred,"fill")))]}function bi(){return[dn("ContextMenuButton",dn(St.s_,"Horizontal",Rt(Pt.black),Rt(Pt.green),Rt(Pt.blue),Rt(Pt.red))),dn("ContextMenuButton",dn(St.s_,"Horizontal",Rt(Pt.white),Rt(Pt.magenta),Rt(Pt.purple),Rt(Pt.orange)))]}function vi(Xt,Mi){return Mi||(Mi="thickness"),dn(St.bn,"LineH",{width:16,height:16,strokeWidth:Xt,margin:1,background:"transparent",mouseEnter:(ar,Wi)=>Wi.background="dodgerblue",mouseLeave:(ar,Wi)=>Wi.background="transparent",click:Xn(Mi,Xt),contextClick:Xn(Mi,Xt)})}function pi(Xt,Mi){return Mi||(Mi="dash"),dn(St.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Xt,margin:1,background:"transparent",mouseEnter:(ar,Wi)=>Wi.background="dodgerblue",mouseLeave:(ar,Wi)=>Wi.background="transparent",click:Xn(Mi,Xt),contextClick:Xn(Mi,Xt)})}function ei(){return[dn("ContextMenuButton",dn(St.s_,"Horizontal",vi(1),vi(2),vi(3),vi(4))),dn("ContextMenuButton",dn(St.s_,"Horizontal",pi(null),pi([2,4]),pi([4,4])))]}function yi(Xt,Mi){return Mi||(Mi="figure"),dn(St.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Xt,margin:1,background:"transparent",mouseEnter:(ar,Wi)=>Wi.fill="dodgerblue",mouseLeave:(ar,Wi)=>Wi.fill="lightgray",click:Xn(Mi,Xt),contextClick:Xn(Mi,Xt)})}Lt.current.nodeTemplate.contextMenu=dn("ContextMenu",dn("ContextMenuButton",dn(St.s_,"Horizontal",yi("Rectangle"),yi("RoundedRectangle"),yi("Ellipse"),yi("Diamond"))),dn("ContextMenuButton",dn(St.s_,"Horizontal",yi("Parallelogram2"),yi("ManualOperation"),yi("Procedure"),yi("Cylinder1"))),dn("ContextMenuButton",dn(St.s_,"Horizontal",yi("Terminator"),yi("CreateRequest"),yi("Document"),yi("TriangleDown"))),vn(),bi(),ei()),Lt.current.groupTemplate=dn(St.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:St.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Xt,Mi)=>{var ar=Mi.addMembers(Mi.diagram.selection,!0);ar||Mi.diagram.currentTool.doCancel()},avoidable:!1},new St.KX("location","loc",St.E9.parse).makeTwoWay(St.E9.stringify),dn(St.s_,"Auto",{name:"BODY"},dn(St.bn,{parameter1:10,fill:Pt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:St.z6.AllSides,toSpot:St.z6.AllSides},new St.KX("fill"),new St.KX("stroke","color"),new St.KX("strokeWidth","thickness"),new St.KX("strokeDashArray","dash")),dn(St.Vm,{background:"transparent",margin:20})),dn(St.al,{alignment:St.z6.Top,alignmentFocus:St.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new St.KX("text"),new St.KX("stroke","color"))),Lt.current.groupTemplate.selectionAdornmentTemplate=dn(St.uz,"Spot",dn(St.s_,"Auto",dn(St.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),dn(St.Vm,{margin:1.5})),Qn({alignment:St.z6.TopRight,alignmentFocus:St.z6.BottomRight})),Lt.current.groupTemplate.contextMenu=dn("ContextMenu",vn(),bi(),ei()),Lt.current.linkTemplate=dn(St.rU,{layerName:"Foreground",routing:St.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new St.KX("fromSpot","fromSpot",St.z6.parse),new St.KX("toSpot","toSpot",St.z6.parse),new St.KX("fromShortLength","dir",Xt=>Xt>=1?10:0),new St.KX("toShortLength","dir",Xt=>Xt>=1?10:0),new St.KX("points").makeTwoWay(),dn(St.bn,{strokeWidth:2},new St.KX("stroke","color"),new St.KX("strokeWidth","thickness"),new St.KX("strokeDashArray","dash")),dn(St.bn,{segmentIndex:0,segmentOffset:new St.E9(15,0),segmentOrientation:St.rU.OrientAlong,alignmentFocus:St.z6.Right,figure:"circle",width:10,strokeWidth:0},new St.KX("fill","color"),new St.KX("visible","dir",Xt=>Xt===1)),dn(St.bn,{segmentIndex:-1,segmentOffset:new St.E9(-10,6),segmentOrientation:St.rU.OrientPlus90,alignmentFocus:St.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new St.KX("fill","color"),new St.KX("visible","dir",Xt=>Xt>=1),new St.KX("width","thickness",Xt=>7+3*Xt),new St.KX("height","thickness",Xt=>7+3*Xt),new St.KX("segmentOffset","thickness",Xt=>new St.E9(-15,4+1.5*Xt))),dn(St.bn,{segmentIndex:0,segmentOffset:new St.E9(15,-6),segmentOrientation:St.rU.OrientMinus90,alignmentFocus:St.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new St.KX("fill","color"),new St.KX("visible","dir",Xt=>Xt===2),new St.KX("width","thickness",Xt=>7+3*Xt),new St.KX("height","thickness",Xt=>7+3*Xt),new St.KX("segmentOffset","thickness",Xt=>new St.E9(-15,4+1.5*Xt))),dn(St.al,{alignmentFocus:new St.z6(0,1,-4,0),editable:!0},new St.KX("text").makeTwoWay(),new St.KX("stroke","color"))),Lt.current.linkTemplate.selectionAdornmentTemplate=dn(St.uz,dn(St.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Fi(2)},new St.KX("pathPattern","thickness",Fi)),Qn({alignmentFocus:new St.z6(0,0,-6,-4)}));function Fi(Xt){return dn(St.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Xt+4).toString()+" H3"})}function Ki(Xt){var Mi="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Xt===0?Mi="M0 0 M16 16 M0 8 L16 8":Xt===2&&(Mi="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),dn(St.bn,{geometryString:Mi,margin:2,background:"transparent",mouseEnter:(ar,Wi)=>Wi.background="dodgerblue",mouseLeave:(ar,Wi)=>Wi.background="transparent",click:Xn("dir",Xt),contextClick:Xn("dir",Xt)})}function hr(Xt){var Mi=(ar,Wi)=>{ar.handled=!0,ar.diagram.model.commit(Mr=>{var fr=Wi.part.adornedPart;Mr.set(fr.data,Xt?"toSpot":"fromSpot",St.z6.stringify(St.z6.AllSides)),(Xt?fr.toNode:fr.fromNode).invalidateConnectedLinks()})};return dn(St.bn,{width:12,height:12,fill:"transparent",mouseEnter:(ar,Wi)=>Wi.background="dodgerblue",mouseLeave:(ar,Wi)=>Wi.background="transparent",click:Mi,contextClick:Mi})}function Gn(Xt,Mi){var ar=0,Wi=St.z6.RightSide;Xt.equals(St.z6.Top)?(ar=270,Wi=St.z6.TopSide):Xt.equals(St.z6.Left)?(ar=180,Wi=St.z6.LeftSide):Xt.equals(St.z6.Bottom)&&(ar=90,Wi=St.z6.BottomSide),Mi||(ar-=180);var Mr=(fr,Br)=>{fr.handled=!0,fr.diagram.model.commit(Oi=>{var $i=Br.part.adornedPart;Oi.set($i.data,Mi?"toSpot":"fromSpot",St.z6.stringify(Wi)),(Mi?$i.toNode:$i.fromNode).invalidateConnectedLinks()})};return dn(St.bn,{alignment:Xt,alignmentFocus:Xt.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:ar,background:"transparent",mouseEnter:(fr,Br)=>Br.background="dodgerblue",mouseLeave:(fr,Br)=>Br.background="transparent",click:Mr,contextClick:Mr})}Lt.current.linkTemplate.contextMenu=dn("ContextMenu",bi(),ei(),dn("ContextMenuButton",dn(St.s_,"Horizontal",Ki(0),Ki(1),Ki(2))),dn("ContextMenuButton",dn(St.s_,"Horizontal",dn(St.s_,"Spot",hr(!1),Gn(St.z6.Top,!1),Gn(St.z6.Left,!1),Gn(St.z6.Right,!1),Gn(St.z6.Bottom,!1)),dn(St.s_,"Spot",{margin:new St.Zt(0,0,0,2)},hr(!0),Gn(St.z6.Top,!0),Gn(St.z6.Left,!0),Gn(St.z6.Right,!0),Gn(St.z6.Bottom,!0)))));const Li=`{ "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 Lr=["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 Dr(Xt){return console.log("shapeName:",Xt),Lr.indexOf(Xt)>=0}var Pr=new St.YI(en.current,{maxSelectionCount:1,linkTemplate:dn(St.rU,{locationSpot:St.z6.Center,selectionAdornmentTemplate:dn(St.uz,"Link",{locationSpot:St.z6.Center},dn(St.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),dn(St.bn,{toArrow:"Standard",stroke:null}))},{routing:St.rU.AvoidsNodes,curve:St.rU.JumpOver,corner:5,toShortLength:4},new St.KX("points"),dn(St.bn,{isPanelMain:!0,strokeWidth:2}),dn(St.bn,{toArrow:"Standard",stroke:null})),model:new St.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...St.bn.getFigureGenerators().toArray().map(Xt=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Xt.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Lt.current.addDiagramListener("TextEdited",function(Xt){var Mi;const ar=Xt.subject.part;var Wi=(Mi=document.activeElement)==null?void 0:Mi.value;typeof Wi=="string"&&Wi.trim()===""&&Lt.current.model.commit(function(Mr){Mr.set(ar.data,"text","\u672A\u547D\u540D"),Lt.current.commandHandler.stopCommand()},"increment")}),Pr.nodeTemplate=dn(St.NB,"Auto",{locationSpot:St.z6.Center},new St.KX("location","location",St.E9.parse).makeTwoWay(St.E9.stringify),dn(St.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 St.KX("stroke").makeTwoWay(),new St.KX("fill").makeTwoWay(),new St.KX("figure")),dn(St.al,{margin:new St.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new St.$u(16,16),maxSize:new St.$u(10,NaN),textAlign:"center",editable:!0},new St.KX("key").makeTwoWay())),setTimeout(()=>{Lt.current.grid=dn(St.s_,"Grid",dn(St.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),dn(St.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Lt.current.grid.visible=!0,Lt.current.grid.gridCellStroke="darkgray",Lt.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Lt.current,Lt.current}const Rn=()=>ze(this,null,function*(){var dn=Lt.current.makeImage();const Pt=yield(0,tn.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:dn.src}});Et({src:Pt.url})});return(0,xe.useEffect)(()=>(setTimeout(()=>{Dt()},500),an(Ue+1),()=>{Lt.current=null}),[]),ct.createElement("div",{ref:xt,className:fn.current?`${$t.maxH60} body-overflow-initial`:"body-overflow-initial"},ct.createElement(Jt.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Ue,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:ct.createElement(un.Z,null,ct.createElement(Bn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ct.createElement(Bn.Z,{onClick:()=>{var dn,Pt,Sn=Lt.current.selection.first();if(fn.current=!fn.current,document.activeElement&&Sn){let Qn=(Pt=(dn=document.activeElement)==null?void 0:dn.value)==null?void 0:Pt.trim();typeof Qn=="string"&&Lt.current.model.commit(function(Xn){Xn.set(Sn.data,"text",Qn||"\u672A\u547D\u540D"),Lt.current.commandHandler.stopCommand()},"increment")}an(Ue+1)}},ct.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:yt},ct.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:$t.flowChartWrp},ct.createElement("div",{style:{display:"flex",height:"100%"}},ct.createElement("div",{style:{width:"300px",height:"100%"}},ct.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),ct.createElement("div",{style:{height:"calc(100% - 50px)"},className:$t.myPaletteDiv,ref:en})),ct.createElement("div",{style:{flex:1,position:"relative"}},ct.createElement("div",{ref:tt,style:{height:"80vh"}}))),ct.createElement("div",{className:"tr"},ct.createElement(Ge.ZP,{size:"large",onClick:Rn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Gt=Ut,at=ye(5112),Ve=ye(88897);const Be=at.ZP.Group,we={margin:"0 8px"};var me=({callback:yt,onCancel:Et})=>{function Lt(tt){yt(tt)}return xe.createElement(Xe.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Lt},xe.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},xe.createElement("span",{style:we},"\u5355\u5143\u683C\u6570\uFF1A"),xe.createElement("span",{style:we},"\u884C\u6570"),xe.createElement(Xe.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},xe.createElement(Ve.Z,null)),xe.createElement("span",{style:we},"\u5217\u6570"),xe.createElement(Xe.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},xe.createElement(Ve.Z,null))),xe.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},xe.createElement("span",{style:we},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),xe.createElement(Xe.default.Item,{name:"align"},xe.createElement(Be,null,xe.createElement(at.ZP,{value:"default"},xe.createElement("i",{className:"fa fa-align-justify"})),xe.createElement(at.ZP,{value:"left"},xe.createElement("i",{className:"fa fa-align-left"})),xe.createElement(at.ZP,{value:"center"},xe.createElement("i",{className:"fa fa-align-center"})),xe.createElement(at.ZP,{value:"right"},xe.createElement("i",{className:"fa fa-align-right"}))))),xe.createElement("div",{className:"flex-container flex-end"},xe.createElement(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),xe.createElement(Ge.ZP,{type:"ghost",onClick:Et},"\u53D6\u6D88")))},De=ye(78673),Re=ye(98598),Le=ye.n(Re),Vt=(0,xe.forwardRef)(({use3d:yt,width:Et,height:Lt,callback:tt,showSaveButton:en},fn)=>{const xt=(0,xe.useRef)(),Ue=(0,xe.useRef)(),[an,Dt]=(0,xe.useState)(!1),Rn=(0,xe.useRef)({id:xt,appName:"graphing",width:Et||1e3,height:Lt||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,xe.useEffect)(()=>{Ue.current=new(Le())(Rn.current,!0),window.onload=function(){Ue.current.inject("applet_container")}},[]);const dn=()=>{var Pt=window.ggbApplet.getPNGBase64(1,!0,72);return tt&&tt(Pt),Pt};return(0,xe.useEffect)(()=>{Rn.current.appName=an?"3D":"graphing",Ue.current.inject("applet_container")},[an]),(0,xe.useEffect)(()=>{Dt(yt)},[yt]),(0,xe.useImperativeHandle)(fn,()=>({getImgData:dn})),xe.createElement(xe.Fragment,null,xe.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:xt}),xe.createElement(un.Z,{align:"middle"},xe.createElement(Bn.Z,{flex:1},xe.createElement(De.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:an,onChange:Pt=>Dt(Pt)})),xe.createElement(Bn.Z,null,xe.createElement(Ge.ZP,{size:"large",onClick:dn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),sn=ye(75890),ln=ye(8591);const Hn="link",wi="upload-image",Pi="add-flowchart",Ri="draw-image",Zi="add-flowchart",Ln="code-block",rr="add-table",Kr="------------",Vr={default:Kr,left:`:${Kr}`,center:`:${Kr}:`,right:`${Kr}:`};var jr=ye(91300);function li(){}let Ti=0;const vr=1e4,ui="\u2581",Ir="@\u2581\u2581@",zn="@\u2581@",Ee=`
**\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`,cr=["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 Xi(yt){return/^\d+$/.test(yt)?`${yt}px`:yt}const oi=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Ci={[oi+"-B"]:"bold",[oi+"-I"]:"italic"},xn={[Hn]:"\u6DFB\u52A0\u94FE\u63A5",[Ln]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[wi]:"\u6DFB\u52A0\u56FE\u7247",[Ri]:"\u6DFB\u52A0\u753B\u56FE",[Pi]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[rr]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var on=({defaultValue:yt="",onChange:Et,width:Lt="100%",height:tt=400,miniToolbar:en=!1,isFocus:fn=!1,watch:xt,insertTemp:Ue,mode:an="markdown",id:Dt="markdown-editor-id",showResizeBar:Rn=!1,noStorage:dn=!1,showNullButton:Pt=!1,showNullProgramButton:Sn=!1,hidetoolBar:Qn=!1,fullScreen:Xn=!1,onBlur:Rt,onCMBeforeChange:vn,onFullScreen:bi,className:vi="",disablePaste:pi=!1,disabled:ei=!1,disabledFill:yi=!1,placeholder:Fi="",values:Ki="",extraUse:hr})=>{const[Gn,Li]=(0,xe.useState)(null),[Lr,Dr]=(0,xe.useState)(yt),[Pr,Xt]=(0,xe.useState)(xt),[Mi,ar]=(0,xe.useState)(Xn),[Wi,Mr]=(0,xe.useState)(""),[fr,Br]=(0,xe.useState)(0),[Oi,$i]=(0,xe.useState)(tt),[nr,Mn]=(0,xe.useState)(!1),[Tr,An]=(0,xe.useState)(0),[yr,_r]=(0,xe.useState)(0),xr=(0,xe.useRef)(),Ho=(0,xe.useRef)(),ho=(0,xe.useRef)(),Sr=(0,xe.useRef)();(0,xe.useEffect)(()=>{const Bi=window.scrollY||window.pageYOffset;Dr(Ki),Gn==null||Gn.setValue(Ki),window.scrollTo(0,Bi)},[Ki]),(0,xe.useEffect)(()=>{bi==null||bi(Mi)},[Mi]),(0,xe.useEffect)(()=>{if(xr.current){let Bi=function(Yi,On){var $r;if(pi){On.preventDefault();return}const Ur=On.clipboardData;if(Ur){const Ao=Ur.types.toString(),eo=Ur.items;if(Ao==="Files"||Ur.types.indexOf("Files")>-1){if(On.preventDefault(),an=="stex")return;try{let qr=eo[1];(($r=eo[0])==null?void 0:$r.kind)==="file"&&(qr=eo[0]);const no=qr.getAsFile(),$o=no.name.split(".").pop();(0,bt.I)(no,Qo=>{var pa,qo,Pn;Qo.id?((pa=no==null?void 0:no.type)==null?void 0:pa.indexOf("image"))>-1?gi.replaceSelection(`![,](/api/attachments/${Qo.id}?type=${Qo.content_type})`):((qo=no==null?void 0:no.type)==null?void 0:qo.indexOf("video"))>-1?gi.replaceSelection(`<video width="100%" controls src="/api/attachments/${Qo.id}"></video>`):((Pn=no==null?void 0:no.type)==null?void 0:Pn.indexOf("pdf"))>-1?gi.replaceSelection(`<a href="/api/attachments/${Qo.id}?type=${no.type}&disposition=inline" target="_blank">${no.name}</a>`):cr.includes($o)?gi.replaceSelection(`<a href="/api/attachments/${Qo.id}?type=office&disposition=inline" target="_blank">${no.name}</a>`):gi.replaceSelection(`[${no.name}](/api/attachments/${Qo.id}?type=${Qo.content_type})`):(Qo==null?void 0:Qo.status)===401&&(document.location.href="/user/login")})}catch(qr){ln.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const gi=We().fromTextArea(xr.current,{mode:an,lineNumbers:!en,lineWrapping:!0,value:yt,autoCloseTags:!0,autoCloseBrackets:!0});return gi.on("keyup",function(Yi,On){On.keyCode===8&&(Yi.getValue()==""?gi.setOption("placeholder",Fi):gi.setOption("placeholder",null))}),gi.on("keydown",function(Yi,On){if(On.keyCode===8){var $r=pr(Yi);$r&&On.preventDefault()}}),fn&&gi.focus(),gi.on("paste",Bi),ei&&gi.on("beforeChange",function(Yi,On){(On.origin==="paste"||On.origin==="+input")&&On.cancel()}),Li(gi),()=>{gi.off("paste",Bi)}}},[]);const gr=(0,xe.useCallback)(()=>{if(Ho.current)try{}catch(Bi){console.log(Bi,"---- to set md editor body height")}},[Oi,Ho,Mi]);(0,xe.useEffect)(()=>{function Bi(){let gi=new It.Z(Yi=>{for(let On of Yi)(On.target.offsetHeight>0||On.target.offsetWidth>0)&&(gr(),Gn.setSize("100%","100%"),Gn.refresh())});return gi.observe(xr.current.parentElement),gi}if(Gn){const gi=Bi();return()=>{var Yi,On;(Yi=xr.current)!=null&&Yi.parentElement&&gi.unobserve((On=xr.current)==null?void 0:On.parentElement)}}},[Gn,gr]),(0,xe.useEffect)(()=>{if(Gn){let Bi=[];for(const[gi,Yi]of Object.entries(Ci)){let On={[gi]:()=>{Yr(Yi)}};Bi.push(On),Gn.addKeyMap(On)}return()=>{for(let gi of Bi)Gn.removeKeyMap(gi)}}},[Gn]),(0,xe.useEffect)(()=>{Xn!==Mi&&ar(Xn)},[Xn]),(0,jr.Z)(()=>{if(!dn&&fr>0){let Bi=new Date().getTime(),gi=window.sessionStorage.getItem(Dt);Bi>=fr+vr&&(!gi||gi!==Lr)&&(window.sessionStorage.setItem(Dt,Lr),Mn(!0))}},vr),(0,xe.useEffect)(()=>{Xt(xt)},[Gn,xt]),(0,xe.useEffect)(()=>{Gn&&fn&&Gn.focus()},[Gn,fn]),(0,xe.useEffect)(()=>{if(Pr&&Gn){let Bi=function(Yi){let On=Yi.target;if(Sr.current){let $r=On.scrollTop/On.scrollHeight;Sr.current.scrollTop=Sr.current.scrollHeight*$r}};const gi=Gn.getScrollerElement();return gi.addEventListener("scroll",Bi),()=>{gi.removeEventListener("scroll",Bi)}}},[Gn,Pr]),(0,xe.useEffect)(()=>{if(Gn&&vn){let Bi=function(gi,Yi){vn(gi,Yi)};return Gn.on("beforeChange",Bi),()=>{Gn.off("beforeChange",Bi)}}},[Gn,vn]),(0,xe.useEffect)(()=>{if(Gn&&Rt){let Bi=function(){Rt(Gn.getValue())};return Gn.on("blur",Bi),()=>{Gn.off("blur",Bi)}}},[Gn,Rt]);function pr(Bi,gi){var Yi=Bi.getDoc(),On=Yi.getCursor(),$r=Yi.getLine(On.line),Ur=$r.charAt(On.ch-1),Ao=$r.lastIndexOf("@\u2581@",On.ch),eo=$r.lastIndexOf("@\u2581\u2581@",On.ch),qr=Ao>eo?Ao:eo,no=Ao>eo?3:4;if(Ir.indexOf(Ur)===-1)return null;if(console.log("change1:",gi,Bi,$r,On,qr,Ao,eo,Ur),qr>=0&&On.ch-qr<5){var $o=qr+no;return Yi.replaceRange("",{line:On.line,ch:qr},{line:On.line,ch:$o}),{line:On.line,ch:$o}}return null}(0,xe.useEffect)(()=>{if(Gn){let Bi=function(gi,Yi){const On=gi.getValue();Dr(On),Br(new Date().getTime()),gi.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Et&&(Sn?Et(On,Wt(On)):Et(On))};return Gn.on("change",Bi),()=>{Gn.off("change",Bi)}}},[Gn,Et]),(0,xe.useEffect)(()=>{if(Gn)if(yt==null)Gn.setValue(""),Dr("");else{const Bi=window.scrollY||window.pageYOffset;yt!==Gn.getValue()&&(Gn.setValue(yt),Dr(yt),Gn.setCursor(ei?1:Gn.lineCount(),0),window.scrollTo(0,Bi))}},[Gn,yt]);const Yr=(0,xe.useCallback)(Bi=>{const gi=Gn.getCursor(),Yi=Gn.getSelection();let On=Yi.split(`
`);switch(Bi){case"bold":return Gn.replaceSelection("**"+Yi+"**"),Yi===""&&Gn.setCursor(gi.line,gi.ch+2),Gn.focus();case"italic":return Gn.replaceSelection("*"+Yi+"*"),Yi===""&&Gn.setCursor(gi.line,gi.ch+1),Gn.focus();case"code":return Gn.replaceSelection("`"+Yi+"`"),Yi===""&&Gn.setCursor(gi.line,gi.ch+1),Gn.focus();case"inline-latex":return Mr("inline-latex"),Gn.focus();case"latex":return Gn.replaceSelection("```latex\n"+Yi+"\n```"),Gn.setCursor(gi.line+1,Yi.length+1),Gn.focus();case"line-break":return Gn.replaceSelection(`<br/>
`),Gn.focus();case"list-ul":return Yi===""?Gn.replaceSelection("- "+Yi):Gn.replaceSelection(On.map($r=>$r===""?"":`- ${$r}`).join(`
`)),Gn.focus();case"list-ol":return Yi===""?Gn.replaceSelection("1. "+Yi):Gn.replaceSelection(On.map(($r,Ur)=>$r===""?"":`${Ur+1}. ${$r}`).join(`
`)),Gn.focus();case"add-null-ch":return Yi===""&&Gn.setCursor(gi.line,gi.ch),Gn.replaceSelection(ui),Gn.focus();case"add-signal":return Yi===""&&Gn.setCursor(gi.line,gi.ch),Gn.replaceSelection(zn),Gn.focus();case"add-multiple":return Yi===""&&Gn.setCursor(gi.line,gi.ch),Gn.replaceSelection(Ir),Gn.focus();case"inster-template-1":return Yi===""&&Gn.setCursor(gi.line,gi.ch),Gn.replaceSelection(Ee),Gn.focus();case"eraser":return Gn.setValue(""),Gn.focus();case"trigger-watch":return Xt(!Pr),Gn.focus();case"trigger-full-screen":return ar(!Mi),Gn.focus();case Hn:Mr(Hn);return;case Ln:Mr(Ln);return;case wi:Mr(wi);return;case Ri:Mr(Ri);return;case"maths-latex":Mr("maths-latex");return;case Pi:Mr(Pi);return;case rr:Mr(rr);return;default:throw new Error}},[Gn,Pr,Mi]),zi=(0,xe.useCallback)((Bi,gi)=>{var Yi,On,$r,Ur,Ao,eo;switch(Mr(""),Wi){case Hn:const{title:pa,link:qo}=Bi;return Gn.replaceSelection(`[${pa}](${qo})`),Gn.focus();case Ln:const{language:Pn,content:ca}=Bi;return Gn.replaceSelection(["```"+Pn,ca,"```"].join(`
`)),Gn.focus();case"maths-latex":for(var qr=atob(Bi),no=new Uint8Array(qr.length),$o=0;$o<qr.length;$o++)no[$o]=qr.charCodeAt($o);var Qo=new Blob([no],{type:"image/png"});(0,bt.I)(Qo,Pa=>{Pa.id?Gn.replaceSelection(`![,](/api/attachments/${Pa.id}?type=${Pa.content_type})`):(Pa==null?void 0:Pa.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Gn.replaceSelection("`$$"+Bi+"$$`");break;case wi:case Ri:case Zi:const{src:es,alt:ts}=Bi,Ga=gi,Ds=($r=(On=(Yi=Ga==null?void 0:Ga.name)==null?void 0:Yi.split("."))==null?void 0:On.pop)==null?void 0:$r.call(On);return((Ur=Ga==null?void 0:Ga.type)==null?void 0:Ur.indexOf("image"))>-1||!(Ga!=null&&Ga.type)?ts?Gn.replaceSelection(`![ ${ts} ]( ${es} "${ts}" )`):Gn.replaceSelection(`![,](${es})`):((Ao=Ga==null?void 0:Ga.type)==null?void 0:Ao.indexOf("video"))>-1?Gn.replaceSelection(`<video width="100%" controls src="${es}"></video>`):((eo=Ga==null?void 0:Ga.type)==null?void 0:eo.indexOf("pdf"))>-1?Gn.replaceSelection(`<a href="${es}?type=${Ga.type}&disposition=inline" target="_blank">${Ga.name}</a>`):cr.includes(Ds)?Gn.replaceSelection(`<a href="${es}?type=office&disposition=inline" target="_blank">${Ga.name}</a>`):Gn.replaceSelection(`[${Ga.name}](${es})`),Gn.focus();case rr:const{row:pl,col:ma,align:ko}=Bi;let Oo=`
`;for(let Pa=0;Pa<pl;Pa++){let io=[],No=[];for(let ao=0;ao<ma;ao++)Pa===1&&No.push(Vr[ko]),io.push(" ");Pa===1&&(Oo+=`| ${No.join(" | ")} |
`),Oo+=`| ${io.join(ma===1?"":" | ")} |
`}return Gn.replaceSelection(Oo+`
`),Gn.focus();default:throw new Error}},[Gn,Wi]),Je=(0,xe.useMemo)(()=>{switch(Wi){case Hn:return xe.createElement(wn,{callback:zi,onCancel:pt});case Ln:return xe.createElement(rn.Z,{callback:zi,onCancel:pt});case wi:return xe.createElement(bt.Z,{callback:zi,onCancel:pt});case Pi:return xe.createElement(Gt,{callback:zi,onCancel:pt});case rr:return xe.createElement(me,{callback:zi,onCancel:pt});case"maths-latex":return xe.createElement(Vt,{showSaveButton:!0,callback:zi});case"inline-latex":return xe.createElement(sn.Z,{showSaveButton:!0,callback:zi});default:return null}},[Wi]);function pt(){Mr("")}(0,xe.useEffect)(()=>{if(ho.current){let Bi=function(Ao){$r=!0,Ur=Ao.pageY},gi=function(){$r=!1},Yi=function(Ao){if($r){let eo=Ao.pageY-Ur;eo<0&&(eo=0),eo>300&&(eo=300);let qr=tt+eo+"px";$i(qr)}},On=ho.current,$r=!1,Ur=0;return On.addEventListener("mousedown",Bi),document.addEventListener("mousemove",Yi),document.addEventListener("mouseup",gi),()=>{On.removeEventListener("mousedown",Bi),document.removeEventListener("mousemove",Yi),document.removeEventListener("mouseup",gi)}}},[Gn,ho]),(0,xe.useEffect)(()=>{$i(tt)},[tt]);const Ot=Xi(Lt),cn=Xi(Oi),jn={width:Ot,height:cn},Dn=(0,xe.useMemo)(()=>{if(fr){let Bi=new Date(fr),gi=Bi.getHours(),Yi=Bi.getMinutes(),On=Bi.getSeconds();return gi=gi<10?"0"+gi:gi,Yi=Yi<10?"0"+Yi:Yi,On=On<10?"0"+On:On,`${gi}:${Yi}:${On}`}return 0},[fr]),Wt=Bi=>{const gi=[];if(Sn){let Yi=-1;Bi=Bi.replace(/(@▁▁@|@▁@)/g,function(On,$r,Ur){gi.push({multiLine:On!==zn})})}return gi};function kn(){window.sessionStorage.removeItem(Dt),Mn(!1),Br(0)}function ai(){Mn(!1),Br(0),Gn.setValue(window.sessionStorage.getItem(Dt))}(0,xe.useEffect)(()=>{xn[Wi]&&Wi!==Ri&&Wi!==Pi&&setTimeout(()=>{const Bi=document.getElementsByClassName("markdown-popup-form")[0],gi=window.innerWidth/2-Bi.offsetWidth/2,Yi=window.innerHeight/2-Bi.offsetHeight/2;An(gi),_r(Yi)},0)},[Wi]);const $n=Bi=>{Bi.preventDefault();const gi=Bi.clientX-Tr,Yi=Bi.clientY-yr;document.body.onmousemove=On=>{let $r=On.clientX-gi,Ur=On.clientY-Yi;const Ao=document.getElementsByClassName("markdown-popup-form")[0],eo=window.innerWidth-Ao.offsetWidth,qr=window.innerHeight-Ao.offsetHeight;$r=Math.max(0,Math.min($r,eo)),Ur=Math.max(0,Math.min(Ur,qr)),Ii(On.clientX,On.clientY,gi,Yi)&&(An($r),_r(Ur))},document.body.onmouseup=function(){document.body.onmousemove=null}},Ii=(Bi,gi,Yi,On)=>{const $r=document.body.clientHeight,Ur=document.body.clientWidth;return Bi<20&&Yi>Bi||Bi>Ur-20&&Yi<Bi||gi<20&&On>gi||gi>$r-20&&On<gi?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return xe.createElement(xe.Fragment,null,xe.createElement("div",{className:"markdown-editor-wrapper",ref:Ho},xe.createElement("div",{className:`markdown-editor-container ${vi} ${Pr?"on-preview":""} ${en?"mini":""} ${Mi?"full-screen":""}`,style:jn},xe.createElement(Ke,{insertTemp:Ue,watch:Pr,fullScreen:Mi,showNullButton:Pt,showNullProgramButton:Sn,onActionCallback:Yr,hidetoolBar:Qn,extraUse:hr}),xe.createElement("div",{className:"markdown-editor-body"},xe.createElement("div",{className:"codemirror-container"},xe.createElement("textarea",{ref:xr,placeholder:Fi})),Pr?xe.createElement("div",{ref:Sr,className:"preview-container"},an==="stex"&&xe.createElement(dt,{value:Lr}),an!=="stex"&&xe.createElement(gt.Z,{disabledFill:yi,showProgramFill:Sn,value:Lr})):null))),Rn?xe.createElement("a",{ref:ho,className:"editor-resize"}):null,Wi===Ri&&xe.createElement(Yn,{callback:zi,onCancel:pt}),Wi===Pi&&xe.createElement(Gt,{callback:zi,onCancel:pt}),xe.createElement(et.Z,null,xn[Wi]&&Wi!==Ri&&Wi!==Pi?xe.createElement(Jt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Tr,top:yr},title:xe.createElement("div",{style:{cursor:"move"},onMouseDown:$n},xn[Wi]),open:!0,onCancel:pt,footer:null,destroyOnClose:!0,width:Wi===Pi?"1200px":null,height:Wi===Pi?"80vh":null,className:"markdown-popup-form"},Je):null))}},56701:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return ve},I:function(){return ke}});var xe=ye(78241),Ie=ye(8591),We=ye(92832),It=ye(3113),Qe=ye(58788),vt=ye(59301),Ne=ye(59301),Tt=Object.defineProperty,Ft=Object.defineProperties,qe=Object.getOwnPropertyDescriptors,gt=Object.getOwnPropertySymbols,dt=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,Me=(Pe,Te,Ke)=>Te in Pe?Tt(Pe,Te,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Pe[Te]=Ke,te=(Pe,Te)=>{for(var Ke in Te||(Te={}))dt.call(Te,Ke)&&Me(Pe,Ke,Te[Ke]);if(gt)for(var Ke of gt(Te))Ct.call(Te,Ke)&&Me(Pe,Ke,Te[Ke]);return Pe},ne=(Pe,Te)=>Ft(Pe,qe(Te));const{useForm:ce}=xe.default,se={width:280,marginRight:10},ge={labelCol:{span:5},wrapperCol:{span:19}};var ve=({callback:Pe,onCancel:Te})=>{const[Ke]=ce();let et=(0,vt.useRef)();function Xe(kt){Pe(kt,et.current)}function ft(kt,$e){if(kt.status===-1){Ie.ZP.error(kt.message);return}Ke.setFieldsValue({src:`/api/attachments/${kt.id}`,type:$e.type})}function Ge(kt){let $e=kt.target.files[0];et.current=$e,ke($e,ft)}return Ne.createElement(xe.default,ne(te({form:Ke},ge),{className:"upload-image-panel",onFinish:Xe,style:{width:470,overflow:"hidden"}}),Ne.createElement(xe.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Ne.createElement("div",{className:"flex-container"},Ne.createElement(xe.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Ne.createElement(We.default,{style:se})),Ne.createElement(Ce,{onFileChange:Ge}))),Ne.createElement(xe.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ne.createElement(We.default,{style:{width:264}})),Ne.createElement(xe.default.Item,{style:{textAlign:"right"}},Ne.createElement(It.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ne.createElement(It.ZP,{type:"default",onClick:Te},"\u53D6\u6D88")))};function Ce({onFileChange:Pe}){return Ne.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ne.createElement("input",{type:"file",onChange:Pe}))}function ke(Pe,Te){if(!Pe)throw new String("\u6CA1\u6709\u6587\u4EF6");let Ke=new FormData;Ke.append("editormd-image-file",Pe),Ke.append("file_param_name","editormd-image-file"),Ke.append("byxhr","true");var et=new window.XMLHttpRequest;et.withCredentials=!0,et.addEventListener("load",function(Xe){Te(JSON.parse(Xe.target.responseText),Pe)},!1),et.addEventListener("error",function(Xe){console.error(Xe)},!1),et.open("POST",`${Qe.KI}/api/attachments.json`),et.send(Ke)}},50474:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return We}});var xe=ye(59301),Ie=ye(4676);class We extends xe.Component{constructor(Qe){super(Qe);const vt=window.document;this.node=vt.createElement("div"),vt.body.appendChild(this.node)}render(){const{children:Qe}=this.props;return(0,Ie.createPortal)(Qe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},48551:function(In,Fn,ye){"use strict";ye.d(Fn,{SV:function(){return Ut},ZP:function(){return ze}});var xe=ye(59301),Ie=ye(76374);const We={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"]},It={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"]},Qe={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(`
`)}]},vt={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(`
`)}]},Ne={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 Tt=ye(86061),Ft=ye.n(Tt),qe=Object.defineProperty,gt=Object.defineProperties,dt=Object.getOwnPropertyDescriptors,Ct=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,ne=(Gt,at,Ve)=>at in Gt?qe(Gt,at,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Gt[at]=Ve,ce=(Gt,at)=>{for(var Ve in at||(at={}))Me.call(at,Ve)&&ne(Gt,Ve,at[Ve]);if(Ct)for(var Ve of Ct(at))te.call(at,Ve)&&ne(Gt,Ve,at[Ve]);return Gt},se=(Gt,at)=>gt(Gt,dt(at)),ge=(Gt,at,Ve)=>new Promise((Be,we)=>{var me=Le=>{try{Re(Ve.next(Le))}catch(st){we(st)}},De=Le=>{try{Re(Ve.throw(Le))}catch(st){we(st)}},Re=Le=>Le.done?Be(Le.value):Promise.resolve(Le.value).then(me,De);Re((Ve=Ve.apply(Gt,at)).next())});const ve={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"]}},Ce=(Gt,at)=>at.map(Ve=>({label:Ve,kind:Gt.languages.CompletionItemKind.Keyword,insertText:Ve})),ke=Gt=>Object.keys(ve.tables).map(at=>({label:at,kind:Gt.languages.CompletionItemKind.Variable,insertText:at})),Pe=(Gt,at)=>{const Ve=ve.tables[Gt];return Ve?Ve.map(Be=>({label:Be,kind:at.languages.CompletionItemKind.Field,insertText:Be})):[]};function Te(Gt,at,Ve,Be,we){let me=at.getWordUntilPosition(Ve),De={startLineNumber:Ve.lineNumber,endLineNumber:Ve.lineNumber,startColumn:me.startColumn,endColumn:me.endColumn},Re=Be.map(Le=>({label:Le,kind:Gt.languages.CompletionItemKind.Keyword,insertText:Le,insertTextRules:Gt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:De}));return we.map(Le=>{Re.push(se(ce({},Le),{range:De}))}),Re}var Ke=Gt=>{ve.languages.map(we=>(Gt.languages.registerDocumentFormattingEditProvider(we,{provideDocumentFormattingEdits(me,De,Re){return ge(this,null,function*(){const Le=Ft()(me.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:me.getFullModelRange(),text:Le}]})}}),we));const at=Qe.quickKey.map(we=>({label:we.label,kind:Gt.languages.CompletionItemKind.Method,insertText:we.content,insertTextRules:Gt.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Ve=vt.quickKey.map(we=>({label:we.label,kind:Gt.languages.CompletionItemKind.Method,insertText:we.content,insertTextRules:Gt.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Be=It.quickKey.map(we=>({label:we.label,kind:Gt.languages.CompletionItemKind.Method,insertText:we.content,insertTextRules:Gt.languages.CompletionItemInsertTextRule.InsertAsSnippet}));Gt.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(we,me){var De=we.getWordUntilPosition(me),Re={startLineNumber:me.lineNumber,endLineNumber:me.lineNumber,startColumn:De.startColumn,endColumn:De.endColumn},Le=we.getLineContent(me.lineNumber).substring(De.startColumn-2,De.endColumn);return{suggestions:[...Qe.keywords.map(st=>({label:st,kind:Gt.languages.CompletionItemKind.Function,documentation:st,insertText:st,insertTextRules:Gt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Re})),...Qe.quickKey.map(st=>({label:st.label,kind:Gt.languages.CompletionItemKind.Function,documentation:st.content,insertText:Le.startsWith("#")?st.content.replace(/#/,""):st.content,insertTextRules:Gt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Re}))]}}}),Gt.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(we,me){var De=we.getWordUntilPosition(me),Re={startLineNumber:me.lineNumber,endLineNumber:me.lineNumber,startColumn:De.startColumn,endColumn:De.endColumn};return{suggestions:[...We.keywords.map(Le=>({label:Le,kind:Gt.languages.CompletionItemKind.Function,documentation:Le,insertText:Le,insertTextRules:Gt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Re}))]}}}),Gt.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(we,me){var De=we.getWordUntilPosition(me),Re={startLineNumber:me.lineNumber,endLineNumber:me.lineNumber,startColumn:De.startColumn,endColumn:De.endColumn},Le=we.getLineContent(me.lineNumber).substring(De.startColumn-2,De.endColumn);return{suggestions:[...It.keywords.map(st=>({label:st,kind:Gt.languages.CompletionItemKind.Function,documentation:st,insertText:st,insertTextRules:Gt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Re})),...It.quickKey.map(st=>({label:st.label,kind:Gt.languages.CompletionItemKind.Function,documentation:st.content,insertText:Le.startsWith("#")?st.content.replace(/#/,""):st.content,insertTextRules:Gt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Re}))]}}}),Gt.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(we,me){var De=we.getWordUntilPosition(me),Re={startLineNumber:me.lineNumber,endLineNumber:me.lineNumber,startColumn:De.startColumn,endColumn:De.endColumn},Le=we.getLineContent(me.lineNumber).substring(De.startColumn-2,De.endColumn);return{suggestions:[...Ne.keywords.map(st=>({label:st,kind:Gt.languages.CompletionItemKind.Function,documentation:st,insertText:st,insertTextRules:Gt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Re})),...Ne.quickKey.map(st=>({label:st.label,kind:Gt.languages.CompletionItemKind.Function,documentation:st.content,insertText:Le.startsWith("#")?st.content.replace(/#/,""):st.content,insertTextRules:Gt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Re}))]}}}),Gt.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(we,me){var De=we.getWordUntilPosition(me),Re={startLineNumber:me.lineNumber,endLineNumber:me.lineNumber,startColumn:De.startColumn,endColumn:De.endColumn},Le=we.getLineContent(me.lineNumber).substring(De.startColumn-2,De.endColumn);return{suggestions:[...vt.keywords.map(st=>({label:st,kind:Gt.languages.CompletionItemKind.Function,documentation:st,insertText:st,insertTextRules:Gt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Re})),...vt.quickKey.map(st=>({label:st.label,kind:Gt.languages.CompletionItemKind.Function,documentation:st.content,insertText:Le.startsWith("#")?st.content.replace(/#/,""):st.content,insertTextRules:Gt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Re}))]}}})};const et="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Xe=Object.defineProperty,ft=(Gt,at,Ve)=>at in Gt?Xe(Gt,at,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Gt[at]=Ve,Ge=(Gt,at,Ve)=>ft(Gt,typeof at!="symbol"?at+"":at,Ve);const kt=class b1{constructor(at,Ve,Be){this.placeholder=at,this.editor=Ve,this.monaco=Be,Ve.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return b1.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};Ge(kt,"ID","editor.widget.placeholderHint");var zt=kt,Ht=ye(96236),Yt=ye(8591),Bt=ye(6848),Qt=ye(89392),ht=ye(86766),je=ye(56102),At=Object.defineProperty,wn=Object.defineProperties,rn=Object.getOwnPropertyDescriptors,bt=Object.getOwnPropertySymbols,Jt=Object.prototype.hasOwnProperty,un=Object.prototype.propertyIsEnumerable,Kn=(Gt,at,Ve)=>at in Gt?At(Gt,at,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Gt[at]=Ve,En=(Gt,at)=>{for(var Ve in at||(at={}))Jt.call(at,Ve)&&Kn(Gt,Ve,at[Ve]);if(bt)for(var Ve of bt(at))un.call(at,Ve)&&Kn(Gt,Ve,at[Ve]);return Gt},Yn=(Gt,at)=>wn(Gt,rn(at)),St=(Gt,at)=>{var Ve={};for(var Be in Gt)Jt.call(Gt,Be)&&at.indexOf(Be)<0&&(Ve[Be]=Gt[Be]);if(Gt!=null&&bt)for(var Be of bt(Gt))at.indexOf(Be)<0&&un.call(Gt,Be)&&(Ve[Be]=Gt[Be]);return Ve},Vn=(Gt,at,Ve)=>new Promise((Be,we)=>{var me=Le=>{try{Re(Ve.next(Le))}catch(st){we(st)}},De=Le=>{try{Re(Ve.throw(Le))}catch(st){we(st)}},Re=Le=>Le.done?Be(Le.value):Promise.resolve(Le.value).then(me,De);Re((Ve=Ve.apply(Gt,at)).next())});function Cn(Gt){return/^\d+$/.test(Gt)?`${Gt}px`:Gt}function Si(){}let Bn=!1;const tn={"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 $t(Gt=[]){let at=Gt;if(Array.isArray(Gt)){for(let Ve=0;Ve<Gt.length;Ve++){let Be=tn[Gt[Ve]];if(Be)return Be}return at[0]}return tn[at]||at}let ct=null;var ze=Gt=>{var at=Gt,{width:Ve="100%",height:Be="100%",value:we,language:me="javascript",style:De={},options:Re={},overrideServices:Le={},theme:st="vs-dark",onEditBlur:Vt,isCopy:sn=!1,onSave:ln,autoHeight:Hn=!1,forbidCopy:wi=!1,onChange:Pi=Si,editorDidMount:Ri=Si,onFocus:Zi=Si,onBreakPoint:Ln=Si,breakPointValue:rr=[],filename:Kr="educoder.txt",errorLine:Vr,errorContent:jr="",highlightLine:li,openBreakPoint:Ti=!1,placeholder:vr=""}=at,ui=St(at,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder"]);const Ir=(0,xe.useRef)(),zn=(0,xe.useRef)({}),Ee=(0,xe.useRef)(),cr=(0,xe.useRef)(),Xi=(0,xe.useRef)([]),yn=(0,xe.useRef)(!1),oi=(0,xe.useRef)(),Ci=(0,xe.useRef)(),xn=(0,xe.useRef)(!1),[on,yt]=(0,xe.useState)(!1);function Et(){let Rt;return Ir.current&&(Rt=new Ie.Z(vn=>{for(let bi of vn)(bi.target.offsetHeight>0||bi.target.offsetWidth>0)&&zn.current.instance.layout()}),Rt.observe(Ir.current)),Rt}function Lt(){Yt.ZP.warning({content:decodeURIComponent(et),key:"monaco-editor-tip"})}const tt=()=>{let Rt=zn.current.instance;if(we!=null&&Rt&&on){const vn=Rt.getModel();vn&&we!==vn.getValue()&&(Bn=!0,vn.setValue(we),Rt.layout(),Bn=!1)}};(0,xe.useEffect)(()=>{const Rt=ht.Z.subscribe("formatDocument",vn=>{var bi;let vi=zn.current.instance;(bi=vi==null?void 0:vi.getAction)==null||bi.call(vi,"editor.action.formatDocument").run()});return window.updateMonacoValue=vn=>{Pi(vn)},Rt},[]),(0,xe.useEffect)(()=>{var Rt;let vn=zn.current.instance;cr.current&&clearTimeout(cr.current),cr.current=setTimeout(()=>{tt()},500),we&&(we!=null&&we.length)&&((Rt=vn==null?void 0:vn.updateOptions)==null||Rt.call(vn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(we.split(/\r\n|\r|\n/g).length))+3,5)}))},[we,on,zn.current]),(0,xe.useEffect)(()=>{if(Vr&&zn.current&&zn.current.instance){let vn=zn.current.instance;vn.changeViewZones(function(bi){var vi=document.createElement("div");vi.style.padding="10px 20px",vi.style.width="calc(100% - 20px)",vi.className="my-error-line-wrp",vi.innerHTML=jr,bi.addZone({afterLineNumber:Vr||11,heightInLines:3,domNode:vi})});var Rt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};vn.addOverlayWidget(Rt),vn.revealPositionInCenter({lineNumber:20,column:1})}},[Vr,zn.current,on]);const en=(Rt="",vn)=>{if(!Rt||Rt.trim()==="")return!0;const vi=zn.current.instance.getModel().getLineTokens(vn);let pi=!1;for(let ei=0;ei<2;ei++)vi.getStandardTokenType(ei)===1&&(pi=!0);return pi};(0,xe.useEffect)(()=>{var Rt;const vn=(Rt=zn.current)==null?void 0:Rt.instance;if(vn&&on&&wi){const bi=vn.onDidBlurEditorWidget(()=>{xn.current=!1}),vi=vn.onDidFocusEditorText(()=>{xn.current=!0});return()=>{bi.dispose(),vi.dispose()}}},[zn.current,on,wi]),(0,xe.useEffect)(()=>{var Rt;if((Rt=zn.current)!=null&&Rt.instance&&on&&Ti){let vn=zn.current.instance,bi=vn.getModel();if(!bi)return;(()=>{var Pr;let Xt=[],Mi=[];const ar=bi.getAllDecorations();for(let Mr of ar)Mr.options.className==="highlighted-line"&&(Xt.push((Pr=Mr==null?void 0:Mr.range)==null?void 0:Pr.startLineNumber),Mi.push(Mr==null?void 0:Mr.id));if(li===Xt[0])return;bi.deltaDecorations(Mi,[]);const Wi=bi.getLineCount();li&&li<=Wi&&(vn.deltaDecorations([],[{range:new ct.Range(li,1,li,bi.getLineMaxColumn(li)),options:{isWholeLine:!0,className:"highlighted-line"}}]),vn.revealLineInCenter(li))})();const pi=(Pr=!1)=>{var Xt;let Mi=[],ar=[];const Wi=bi.getAllDecorations();for(let Mr of Wi)Mr.options.linesDecorationsClassName==="breakpoints-select"&&(Mi.push((Xt=Mr==null?void 0:Mr.range)==null?void 0:Xt.startLineNumber),ar.push(Mr==null?void 0:Mr.id));if(Pr)return{lines:Mi,ids:ar};Ln(Mi)},ei=Pr=>Vn(void 0,null,function*(){let Xt={range:new ct.Range(Pr,1,Pr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield bi.deltaDecorations([],[Xt]),pi()}),yi=Pr=>Vn(void 0,null,function*(){let Xt=[];const Mi=vn.getLineDecorations(Pr);for(let ar of Mi)ar.options.linesDecorationsClassName==="breakpoints-select"&&Xt.push(ar.id);yield bi.deltaDecorations(Xt,[]),pi()}),Fi=Pr=>{let Xt=vn.getLineDecorations(Pr);for(let Mi of Xt)if(Mi.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Qt.isEqual)(rr,pi(!0).lines)){bi.deltaDecorations(pi(!0).ids,[]);const Pr=rr.map(Xt=>({range:new ct.Range(Xt,1,Xt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));bi.deltaDecorations([],Pr)}const Ki=vn.onDidChangeModelContent(Pr=>{let Xt=vn.getPosition();if(Xt){let Mi=Xt.lineNumber;clearTimeout(Ci.current),Ci.current=setTimeout(()=>{en(bi.getLineContent(Mi),Mi)?yi(Mi):Fi(Mi)?(yi(Mi),ei(Mi)):pi()},100)}}),hr=vn.onMouseDown(Pr=>{var Xt,Mi,ar;if(Pr.target.detail&&((ar=(Mi=(Xt=Pr.target)==null?void 0:Xt.element)==null?void 0:Mi.className)!=null&&ar.includes("line-numbers"))){let Wi=Pr.target.position.lineNumber;if(en(bi.getLineContent(Wi),Wi))return;Fi(Wi)?yi(Wi):ei(Wi)}}),Gn=Pr=>{let Xt={range:new ct.Range(Pr,1,Pr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Xi.current=vn.deltaDecorations(Xi.current,[Xt])},Li=()=>{Xi.current=vn.deltaDecorations(Xi.current,[])},Lr=vn.onMouseMove(Pr=>{var Xt,Mi,ar;if(Li(),Pr.target.detail&&((ar=(Mi=(Xt=Pr.target)==null?void 0:Xt.element)==null?void 0:Mi.className)!=null&&ar.includes("line-numbers"))){let Wi=Pr.target.position.lineNumber;if(en(bi.getLineContent(Wi),Wi))return;Gn(Wi)}}),Dr=vn.onMouseLeave(()=>{Li()});return()=>{Ki.dispose(),hr.dispose(),Lr.dispose(),Dr.dispose()}}},[zn.current,on,rr,li,Ti,me]),(0,xe.useEffect)(()=>{var Rt;(Rt=zn.current)!=null&&Rt.instance&&Ti&&zn.current.instance.setPosition({lineNumber:0,column:0})},[li]);function fn(){let Rt=zn.current.instance;if(Rt){const vn=Rt.getSelection(),bi=zn.current.pastePos||{},vi=new ct.Range(bi.startLineNumber||vn.endLineNumber,bi.startColumn||vn.endColumn,bi.endLineNumber||vn.endLineNumber,bi.endColumn||vn.endColumn);setTimeout(()=>{Rt.executeEdits("",[{range:vi,text:""}])},300)}}function xt(Rt){(window.navigator.platform.match("Mac")?Rt.metaKey:Rt.ctrlKey)&&Rt.keyCode==83&&(Rt.preventDefault(),ln())}const Ue=()=>{if(Hn&&zn.current.instance){const Rt=zn.current.instance.getContentHeight();Qn(Rt<Be?Be:Rt)}else Qn(Be)};function an(Rt){var vn=document.createEvent("MouseEvents");vn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Rt.dispatchEvent(vn)}const Dt=Rt=>{if(!xn.current)return;const{keyCode:vn,ctrlKey:bi,metaKey:vi,target:pi,type:ei}=Rt;return(ei==="paste"||(vn===67||vn===86)&&(vi||bi))&&pi.nodeName==="TEXTAREA"&&(Lt(),Rt.preventDefault()),!1};function Rn(Rt,vn){var bi=window.URL||window.webkitURL||window,vi=new Blob([vn]),pi=document.createElementNS("http://www.w3.org/1999/xhtml","a");pi.href=bi.createObjectURL(vi),pi.download=Rt,an(pi)}(0,xe.useEffect)(()=>{Ue()},[Ue]),(0,xe.useEffect)(()=>{Ir.current&&!on&&Promise.all([ye.e(8909),ye.e(1810)]).then(ye.bind(ye,71448)).then(Rt=>{try{ct=Rt,zn.current.instance=ct.editor.create(Ir.current,{value:we,language:$t(me),theme:st,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Le);const vn=zn.current.instance;let pi=[...Ht.BH._menuItems].find(Ki=>Ki[0]._debugName=="EditorContext")[1],ei=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],yi=(Ki,hr)=>{var Gn,Li;let Lr=Ki._first;do hr.includes((Li=(Gn=Lr.element)==null?void 0:Gn.command)==null?void 0:Li.id)&&Ki._remove(Lr);while(Lr=Lr.next)};if(Ri(vn,ct),setTimeout(()=>{Ue(),zn.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Rn(Kr||"educoder.txt",vn.getValue())}})},500),zn.current.subscription=vn.onDidChangeModelContent(Ki=>{yn.current?clearTimeout(oi.current):(Ue(),Pi(vn.getValue(),Ki)),oi.current=setTimeout(()=>{yn.current=!1},500)}),window.Monaco||Ke(ct,$t(me)),wi&&(yi(pi,ei),Ir.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Dt),window.removeEventListener("paste",Dt),window.addEventListener("keydown",Dt),window.addEventListener("paste",Dt)),window.Monaco=ct,Vt&&vn.onDidBlurEditorWidget(()=>{Vt(vn.getValue())}),Zi&&vn.onDidFocusEditorText(()=>{Zi(vn.getValue())}),wi)try{vn.onDidPaste(Ki=>{const hr=vn.getSelection(),Gn=zn.current.pastePos||{},Li=new ct.Range(Gn.startLineNumber||hr.endLineNumber,Gn.startColumn||hr.endColumn,Gn.endLineNumber||hr.endLineNumber,Gn.endColumn||hr.endColumn);vn.executeEdits("",[{range:Ki.range,text:""}])})}catch(Ki){}let Fi=Et();return vr&&typeof vr=="string"&&new zt(vr,vn,ct),yt(!0),()=>{const Ki=zn.current.instance;Ki.dispose();const hr=Ki.getModel();hr&&hr.dispose(),zn.current.subscription&&zn.current.subscription.dispose(),Fi.unobserve(Ir.current)}}catch(vn){}})},[]),(0,xe.useEffect)(()=>{if(zn.current.instance&&on)return document.addEventListener("keydown",xt,!1),()=>{document.removeEventListener("keydown",xt)}},[ln,on]),(0,xe.useEffect)(()=>{let Rt=zn.current.instance;if(Rt&&on){let vn=$t(me);ct.editor.setModelLanguage(Rt.getModel(),vn)}},[me,on]),(0,xe.useEffect)(()=>{zn.current.instance&&on&&ct.editor.setTheme(st)},[st,on]),(0,xe.useEffect)(()=>{let Rt=zn.current.instance;Ee.current=Re,Rt&&on&&(Rt.updateOptions(En({},Re)),setTimeout(()=>{Rt.getModel().updateOptions(En({},Re))},200))},[JSON.stringify(Re),on]),(0,xe.useEffect)(()=>{let Rt=zn.current.instance;Rt&&on&&Rt.layout()},[Ve,Be,on]);const[dn,Pt]=(0,xe.useState)(Cn(Ve)),[Sn,Qn]=(0,xe.useState)(Cn(Be)),Xn=Yn(En({},De),{width:dn,height:Sn,position:"relative"});return xe.createElement("div",{className:"my-monaco-editor",ref:Ir,style:Xn},sn&&xe.createElement(je.CopyToClipboard,{text:we,onCopy:()=>Yt.ZP.success("\u590D\u5236\u6210\u529F")},xe.createElement(Bt.Z,{title:"\u590D\u5236\u4EE3\u7801"},xe.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},xe.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Ut({width:Gt="100%",height:at="100%",original:Ve,modified:Be,language:we,options:me={}}){const De=(0,xe.useRef)(),[Re,Le]=(0,xe.useState)(null);function st(Hn){let wi;return De.current&&(wi=new Ie.Z(Pi=>{for(let Ri of Pi)(Ri.target.offsetHeight>0||Ri.target.offsetWidth>0)&&Hn.layout()}),wi.observe(De.current)),wi}(0,xe.useEffect)(()=>(De.current&&Promise.all([ye.e(8909),ye.e(9404)]).then(ye.bind(ye,2550)).then(Hn=>{ct=Hn;const wi=ct.editor.createDiffEditor(De.current,Yn(En({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},me),{wordWrap:!0}));Le(wi);let Pi=st(wi);return()=>{wi.dispose();const Ri=wi.getModel();Ri&&Ri.dispose(),Pi.unobserve(De.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,xe.useEffect)(()=>{Re&&Re.setModel({original:ct.editor.createModel(Ve,we),modified:ct.editor.createModel(Be,we)})},[Ve,Be,we,Re]);const Vt=Cn(Gt),sn=Cn(at),ln={width:Vt,height:sn};return xe.createElement("div",{className:"my-diff-editor",ref:De,style:ln})}},94606:function(In,Fn,ye){"use strict";ye.d(Fn,{jL:function(){return Qe},w9:function(){return Jt},QD:function(){return Pi},cQ:function(){return je},op:function(){return st},O5:function(){return xn},_b:function(){return Vr},t7:function(){return se},Gi:function(){return Vn},YG:function(){return Yn},qp:function(){return gt},vr:function(){return Ln},qE:function(){return ln},Je:function(){return Ce},wb:function(){return Ht},cq:function(){return ct},tp:function(){return Me}});var xe=ye(59301),Ie={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"},We="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/b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U85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",Qe=({dataSource:on=[],img:yt,imgWidth:Et=346,title:Lt,sunTitle:tt,bannerExtraContent:en})=>xe.createElement("div",{className:Ie.banner},xe.createElement("div",{className:Ie.content},xe.createElement("aside",null,xe.createElement("p",null,xe.createElement("b",null,Lt),xe.createElement("span",null,tt)),on.length>0&&xe.createElement("div",{className:Ie.btns},on.map((fn,xt)=>xe.createElement("div",{key:xt,onClick:fn.click},fn.name,fn.sign?xe.createElement("img",{src:We,width:39}):null))),en),yt&&xe.createElement("img",{style:{marginTop:33,marginRight:38},src:yt,width:Et}))),vt={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"},Ne=ye(92310),Tt=ye.n(Ne),Ft=ye(89392),gt=({dataSource:on=[],value:yt,onChange:Et,onTitleChange:Lt,className:tt,title:en,titleWidth:fn=41,style:xt={},fontColor:Ue="#6A7283",showCount:an})=>{const[Dt,Rn]=(0,xe.useState)(0),[dn,Pt]=(0,xe.useState)(!1),Sn=(0,xe.useRef)(null),Qn=(0,xe.useRef)(null);return(0,xe.useEffect)(()=>{var Xn;on.length!==0&&(((Xn=Sn==null?void 0:Sn.current)==null?void 0:Xn.clientHeight)>97?Rn(1):Rn(0)),on.length===0&&Rn(0),Pt(!1)},[on]),xe.createElement("div",{className:Tt()(vt.row,tt),style:xt},xe.createElement("div",{onClick:(0,Ft.throttle)(()=>Lt==null?void 0:Lt(),2e3),style:{width:fn,marginTop:dn?12:4},className:`${vt.title} ${Lt?"current":""}`},en),xe.createElement("div",{className:dn?`${vt.tagsWrap} ${vt.tagsBorderWrap}`:vt.tagsWrap},xe.createElement("div",{className:vt.bar,ref:Qn,style:Dt>0?{height:Dt===1?97:"auto",overflow:Dt===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},xe.createElement("div",{className:vt.tag,ref:Sn},on==null?void 0:on.map(Xn=>xe.createElement("span",{onClick:()=>Et(Xn.id),key:Xn.id,style:{color:Ue},className:yt===Xn.id?vt.active:""},xe.createElement("span",{title:Xn.name,className:vt.name},Xn.name),!!an&&xe.createElement("span",{className:vt.num},Xn.count))))),!!Dt&&xe.createElement(xe.Fragment,null,Dt===1?xe.createElement("div",{onClick:()=>{var Xn;Rn(2),((Xn=Sn==null?void 0:Sn.current)==null?void 0:Xn.clientHeight)>245?Pt(!0):Pt(!1)},className:vt.action},"\u5C55\u5F00",xe.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):xe.createElement("div",{onClick:()=>{Qn.current.scrollTop=0,Rn(1),Pt(!1)},className:vt.action},"\u6536\u8D77",xe.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},dt={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"},Me=({dataSource:on=[],value:yt,onChange:Et,className:Lt,style:tt={}})=>xe.createElement("div",{style:tt,className:Tt()(dt.tabs,Lt)},on.map(en=>xe.createElement("span",{onClick:()=>Et(en.id),className:yt===en.id?dt.active:"",key:en.id},en.name))),te={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},ne=ye(92832),se=({dataSource:on=[],value:yt="",onChange:Et,onInputChange:Lt=()=>{},className:tt,style:en={},placeholder:fn,allowClear:xt=!1})=>{var Ue;const[an,Dt]=(0,xe.useState)(""),[Rn,dn]=(0,xe.useState)("");(0,xe.useEffect)(()=>{var Qn;let Xn=yt;(Qn=JSON.stringify(yt))!=null&&Qn.includes("{")&&(Dt(yt.id),Xn=yt.value||"");try{dn(decodeURIComponent(Xn||""))}catch(Rt){dn(decodeURIComponent(Xn||""))}},[yt]);const Pt=()=>{Et(encodeURIComponent(Rn),an||null)},Sn=Qn=>{Qn!==an&&(Dt(Qn),Et(encodeURIComponent(Rn),Qn))};return xe.createElement("div",{className:Tt()(te.input,tt),style:en},!!on.length&&xe.createElement("div",{className:te.dropdown},xe.createElement("div",{className:te.text},(Ue=on.find(Qn=>Qn.id===an))==null?void 0:Ue.name,xe.createElement("i",{className:"iconfont icon-zhankai4"}),xe.createElement("b",{className:te.b1}),xe.createElement("b",{className:te.b2})),xe.createElement("div",{className:te.menu},on.map((Qn,Xn)=>xe.createElement("div",{key:Xn,onClick:()=>Sn(Qn.id)},Qn.name)))),xe.createElement(ne.default,{onPressEnter:Pt,value:Rn,onChange:Qn=>{dn(Qn.target.value),Lt(encodeURIComponent(Qn.target.value),an||null)},bordered:!1,placeholder:fn}),xe.createElement("i",{onClick:Pt,className:"iconfont icon-sousuo9 font14 pl10 current"}))},ge={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"},Ce=({value:on,onChange:yt,className:Et,total:Lt,pageSize:tt,style:en={}})=>{const fn=on<2,xt=on>=Math.ceil(Lt/tt);return Lt<=tt?xe.createElement(xe.Fragment,null):xe.createElement("div",{className:Tt()(ge.quickPager,Et),style:en},xe.createElement("div",{onClick:()=>{fn||yt(on-1,"prev")},className:fn?ge.disabled:""},"\u4E0A\u4E00\u9875"),xe.createElement("div",{onClick:()=>{xt||yt(on+1,"next")},className:xt?ge.disabled:""},"\u4E0B\u4E00\u9875"))},ke={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"},Pe=ye(71418),Te=ye(6848),Ke=ye(39978),et=ye(10148),Xe=ye(58130),ft=ye(96908),Ge=ye(57177),kt=ye(81378),$e=ye(97267),Ht=({className:on,dataSource:yt=[],col:Et=4,right:Lt,bottom:tt=23,precision:en=0,wrapWidth:fn=1200,trackEventItems:xt,loading:Ue})=>{const an=Math.floor((fn-(Et-1)*Lt)/Et);return xe.createElement(Pe.Z,{spinning:Ue},xe.createElement("div",{className:Tt()(ke.list,on)},!!yt.length&&yt.map((Dt,Rn)=>{const{name:dn,id:Pt,identifier:Sn,power:Qn,cover_image_id:Xn,pic:Rt}=Dt;return xe.createElement("div",{className:ke.wrap,key:Pt,style:{width:an,marginRight:(1+Rn)%Et===0?0:Lt+en,marginBottom:tt}},xe.createElement("a",{target:"_blank",href:`/shixuns/${Sn}/challenges`,className:ke.li,onClick:vn=>{vn.preventDefault(),xt&&(0,Xe.L9)([xt]),Qn&&(0,Xe.xg)(`/shixuns/${Sn}/challenges`)}},xe.createElement("div",{className:ke.img},xe.createElement("img",{className:ke.cover,src:`${Rt}`}),Dt.is_jupyter&&xe.createElement("img",{className:ke.sign,src:ft}),Dt.is_jupyter_lab&&xe.createElement("img",{className:ke.sign,src:Ge}),Dt.is_unity_3d&&xe.createElement("img",{className:ke.sign,src:kt})),xe.createElement("div",{className:ke.name},xe.createElement(Te.Z,{title:dn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},xe.createElement("span",{className:ke.e},dn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),xe.createElement("div",{className:ke.tags},xe.createElement(Te.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},xe.createElement("span",null,xe.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),xe.createElement("span",null,Dt.challenges_count))),!!Dt.myshixuns_count&&xe.createElement(Te.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},xe.createElement("span",null,xe.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),xe.createElement("span",null,Dt.myshixuns_count))),xe.createElement(Te.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},xe.createElement("span",null,xe.createElement("span",null,Dt.level))),xe.createElement("div",{className:ke.rate},xe.createElement(Ke.Z,{allowHalf:!0,disabled:!0,defaultValue:Dt.score_info}),xe.createElement("span",null,"\xA0",Dt.score_info?`${Dt.score_info}\u5206`:"5\u5206")))),!Qn&&xe.createElement("div",{className:ke.lockWrap},xe.createElement("img",{src:`${et.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),xe.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!yt.length&&xe.createElement($e.Z,null)))},Yt={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"},Bt=ye(2119),Qt=ye(59301),je=({className:on,dataSource:yt=[],col:Et=4,right:Lt,bottom:tt=23,precision:en=0,wrapWidth:fn=1200,trackEventItems:xt,loading:Ue,onRemove:an=()=>{},isCurrent:Dt=!0,showAlias:Rn=!1})=>{const dn=Math.floor((fn-(Et-1)*Lt)/Et),Pt=[{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 Qt.createElement(Pe.Z,{spinning:Ue},Qt.createElement("div",{className:Tt()(Yt.list,on)},!!(yt!=null&&yt.length)&&(yt==null?void 0:yt.map((Sn,Qn)=>{var Xn;const{name:Rt,id:vn,identifier:bi,featured:vi,school_name:pi,image_url:ei,excellent:yi,is_plan:Fi}=Sn;return Qt.createElement("div",{key:vn,className:Yt.wrap,style:{width:dn,marginRight:(1+Qn)%Et===0?0:Lt+en,marginBottom:tt}},Qt.createElement("a",{className:Yt.li,onClick:Ki=>{Ki.preventDefault(),Ki.stopPropagation(),xt&&(0,Xe.L9)([xt]),(0,Xe.xg)(`/paths/${bi}`)}},Qt.createElement("div",{className:Yt.img},Qt.createElement("img",{className:Yt.cover,src:`${ei}`}),Dt&&(0,Bt.bg)()&&(Sn==null?void 0:Sn.studying)&&Qt.createElement("div",{className:`${Yt.movebq} user-path-items`,onClick:Ki=>{Ki.stopPropagation(),an(Sn)}},Qt.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Qt.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Xn=Sn==null?void 0:Sn.subject_tags)==null?void 0:Xn.map((Ki,hr)=>{var Gn,Li;if(hr===0){const Dr=(Gn=Pt.find(Pr=>Pr.name==Ki))==null?void 0:Gn.swimg;return Qt.createElement("img",{className:Yt.sign,src:Dr,style:{left:"-4px"}})}const Lr=(Li=Pt.find(Dr=>Dr.name==Ki))==null?void 0:Li.ptimg;return Qt.createElement("img",{className:Yt.sign,src:Lr,style:{left:`${48+52*(hr-1)+2*hr}px`}})}),Qt.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Sn==null?void 0:Sn.excellent)&&Qt.createElement("div",{className:Yt.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Qt.createElement("div",{className:Yt.name},Qt.createElement(Te.Z,{title:Rn&&(Sn!=null&&Sn.excellent_alias_name)?Qt.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Rt}`,Qt.createElement("br",null),Qt.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Sn==null?void 0:Sn.excellent_alias_name}`)):Rt},Qt.createElement("span",{className:Yt.e},Rn&&(Sn==null?void 0:Sn.excellent_alias_name)||Rt))),Qt.createElement(Te.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${pi}`},Qt.createElement("div",{className:Yt.unit},Qt.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),pi)),Qt.createElement("div",{className:Yt.tags},Qt.createElement("div",null,Qt.createElement(Te.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Qt.createElement("span",null,Qt.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Qt.createElement("span",null,Sn.stages_count))),Qt.createElement(Te.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Qt.createElement("span",null,Qt.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Qt.createElement("span",null,Sn.members_count)))))))})),!yt.length&&Qt.createElement($e.Z,null)))},At={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"},wn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a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wLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",rn=ye(59301),Jt=({className:on,dataSource:yt=[],col:Et=4,right:Lt,bottom:tt=23,precision:en=0,wrapWidth:fn=1200,trackEventItems:xt,loading:Ue})=>{const an=Math.floor((fn-(Et-1)*Lt)/Et);return rn.createElement(Pe.Z,{spinning:Ue},rn.createElement("div",{className:Tt()(At.list,on)},!!yt.length&&yt.map((Dt,Rn)=>{const{subject_identifier:dn,id:Pt,identifier:Sn,power:Qn}=Dt,Xn=Dt.is_public!=0&&Dt.is_public;return rn.createElement("div",{className:At.wrap,key:Pt,style:{width:an,marginRight:(1+Rn)%Et===0?0:Lt+en,marginBottom:tt}},rn.createElement("a",{className:At.li,onClick:Rt=>{Rt.preventDefault(),xt&&(0,Xe.L9)([xt]),(0,Xe.xg)(Dt.first_category_url)}},rn.createElement("div",{className:At.top},rn.createElement(Te.Z,{title:Dt.name},rn.createElement("div",{className:At.name},Dt.name)),rn.createElement("img",{className:At.img,src:et.Z.IMG_SERVER+"/images/"+Dt.avatar_url}),rn.createElement("div",{className:At.text,title:Dt.creator},Dt.creator),dn&&rn.createElement("div",{className:At.btns},rn.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),rn.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Xn&&rn.createElement("div",{className:At.sign},"\u516C\u5F00")),rn.createElement("div",{className:At.bottom},Dt.visits>0&&rn.createElement(Te.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},rn.createElement("span",null,rn.createElement("i",{className:"iconfont icon-liulanyan"}),rn.createElement("span",null,Dt.visits))),Dt.course_members_count>0&&rn.createElement(Te.Z,{title:"\u6210\u5458",placement:"bottom"},rn.createElement("span",null,rn.createElement("i",{className:"iconfont icon-chengyuan"}),Dt.course_members_count)),Dt.tasks_count>0&&rn.createElement(Te.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},rn.createElement("span",null,rn.createElement("i",{className:"iconfont icon-zuoye"}),Dt.tasks_count)),Dt.is_end?rn.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):rn.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Dt.is_accessible&&rn.createElement("div",{className:At.lockWrap},rn.createElement("img",{src:`${et.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),rn.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!yt.length&&rn.createElement($e.Z,null)))},un={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"},Kn=ye(42203),Yn=({dataSource:on=[],value:yt,onChange:Et,className:Lt,style:tt={},tabBarExtraContent:en})=>xe.createElement("div",{className:Tt()(un.tabs,Lt),style:tt},xe.createElement("div",{className:un.tabsWrap},on.map((fn,xt)=>xe.createElement("aside",{className:un.tab,onClick:()=>{Et(fn.id),fn.link&&Kn.history.push(fn.link)},key:xt},xe.createElement("div",{className:yt===fn.id?un.active:""},fn.name),(fn==null?void 0:fn.resetCount)==null&&(fn==null?void 0:fn.total)!==void 0&&xe.createElement("span",null,"\uFF08",fn==null?void 0:fn.total,"\uFF09"),(fn==null?void 0:fn.resetCount)!==void 0&&(fn==null?void 0:fn.total)!==void 0&&xe.createElement(Te.Z,{title:(fn==null?void 0:fn.tip)!=null?fn==null?void 0:fn.tip:""},xe.createElement("span",{style:{color:"#9096A3"}},"\uFF08",xe.createElement("span",{style:{color:"#000"}},fn==null?void 0:fn.resetCount),"/",xe.createElement("span",null,fn==null?void 0:fn.total),"\uFF09"))))),xe.createElement("div",{className:un.tabBar},en)),Vn=({className:on,style:yt={},children:Et})=>xe.createElement("div",{className:Tt()(on),style:yt},Et),Cn={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"},Si=ye(38854),Bn=ye(20834);const tn=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var ct=({sortValue:on,dropValue:yt,className:Et,onSort:Lt,onDrop:tt,dataSource:en=tn})=>{var fn;return xe.createElement("div",{className:Tt()(Cn.orderWrap,Et)},xe.createElement(Si.Z,{dropdownRender:()=>xe.createElement(Bn.default,null,en.map((xt,Ue)=>xe.createElement(Bn.default.Item,{key:Ue,onClick:()=>tt(xt.id)},xt.name)))},xe.createElement("span",{className:Cn.orderTextWrap},(fn=en.find(xt=>yt===xt.id))==null?void 0:fn.name)),xe.createElement("span",{className:Cn.orderIconWrap},xe.createElement("span",{className:Cn.orderAsc},xe.createElement("i",{className:on==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Cn.cursorPointer} ${Cn.active}`:`iconfont icon-sanjiaoxing-up font12 ${Cn.cursorPointer}`,onClick:()=>Lt(on==="asc"?"desc":"asc")})),xe.createElement("span",{className:Cn.orderDesc},xe.createElement("i",{className:on==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Cn.cursorPointer} ${Cn.active}`:`iconfont icon-sanjiaoxing-down font12 ${Cn.cursorPointer}`,onClick:()=>Lt(on==="asc"?"desc":"asc")}))))},ze={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"},Ut=ye(3113),Gt=Object.defineProperty,at=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,we=(on,yt,Et)=>yt in on?Gt(on,yt,{enumerable:!0,configurable:!0,writable:!0,value:Et}):on[yt]=Et,me=(on,yt)=>{for(var Et in yt||(yt={}))Ve.call(yt,Et)&&we(on,Et,yt[Et]);if(at)for(var Et of at(yt))Be.call(yt,Et)&&we(on,Et,yt[Et]);return on},De=(on,yt)=>{var Et={};for(var Lt in on)Ve.call(on,Lt)&&yt.indexOf(Lt)<0&&(Et[Lt]=on[Lt]);if(on!=null&&at)for(var Lt of at(on))yt.indexOf(Lt)<0&&Be.call(on,Lt)&&(Et[Lt]=on[Lt]);return Et},Re=(on,yt,Et)=>new Promise((Lt,tt)=>{var en=Ue=>{try{xt(Et.next(Ue))}catch(an){tt(an)}},fn=Ue=>{try{xt(Et.throw(Ue))}catch(an){tt(an)}},xt=Ue=>Ue.done?Lt(Ue.value):Promise.resolve(Ue.value).then(en,fn);xt((Et=Et.apply(on,yt)).next())}),st=on=>{var yt=on,{className:Et,style:Lt,children:tt,loading:en=!1,openLoading:fn,onClick:xt=()=>{},size:Ue="middle",shape:an="round"}=yt,Dt=De(yt,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Rn,dn]=(0,xe.useState)(!1);return xe.createElement(Ut.ZP,me({onClick:(0,Ft.throttle)(Pt=>Re(void 0,null,function*(){fn&&dn(!0);try{yield xt(Pt)}catch(Sn){console.log("error",Sn)}fn&&dn(!1)}),2e3,{leading:!0,trailing:!1}),className:Tt()(ze.btn,ze[`${Ue}-${an}`],Et),style:Lt,size:Ue,shape:an,loading:Rn||en},Dt),tt)},Vt={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"},ln=({className:on,style:yt,children:Et=null,onClick:Lt,title:tt})=>xe.createElement("div",{className:Tt()(Vt.head,on),style:yt},xe.createElement("span",{className:"primary-hover",onClick:Lt},xe.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),xe.createElement("b",{title:tt},tt),xe.createElement("div",{className:Vt.node},Et)),Hn={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"},Pi=({confirmShow:on=!0,confirmTitle:yt,confirmClick:Et,cancelShow:Lt=!0,cancelTitle:tt,cancelClick:en,className:fn,style:xt,confirmLoading:Ue=!1})=>xe.createElement("div",{className:Tt()(Hn.btns,fn),style:xt},on&&xe.createElement(Ut.ZP,{loading:Ue,onClick:Et,type:"primary",className:Hn.confirm},yt),Lt&&xe.createElement(Ut.ZP,{onClick:en,className:Hn.cancel},tt)),Ri={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"},Ln=({className:on,style:yt={},LeftContent:Et,children:Lt,RightContent:tt})=>xe.createElement("div",{className:Tt()(Ri.fixedBottom,on),style:yt},xe.createElement("div",{className:Ri.wrap},xe.createElement("div",{className:Ri.left},Et),xe.createElement("div",{className:Ri.center},Lt),xe.createElement("div",{className:Ri.right},tt))),rr={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"},Vr=({className:on,style:yt={},dataSource:Et=[]})=>xe.createElement("div",{className:Tt()(rr.crumbs,on),style:yt},Et.map((Lt,tt)=>tt<Et.length-1?xe.createElement(xe.Fragment,{key:tt},Lt.path||Lt.onClick?xe.createElement("span",{className:rr.hover,onClick:Lt!=null&&Lt.onClick?Lt.onClick:()=>Kn.history.push(Lt.path)},Lt.name):xe.createElement("span",null,Lt.name),xe.createElement("span",null,"\xA0",">","\xA0")):xe.createElement("span",{key:tt,style:{color:"#5F6368"}},Lt.name))),jr=ye(31797),li=Object.defineProperty,Ti=Object.defineProperties,vr=Object.getOwnPropertyDescriptors,ui=Object.getOwnPropertySymbols,Ir=Object.prototype.hasOwnProperty,zn=Object.prototype.propertyIsEnumerable,Ee=(on,yt,Et)=>yt in on?li(on,yt,{enumerable:!0,configurable:!0,writable:!0,value:Et}):on[yt]=Et,cr=(on,yt)=>{for(var Et in yt||(yt={}))Ir.call(yt,Et)&&Ee(on,Et,yt[Et]);if(ui)for(var Et of ui(yt))zn.call(yt,Et)&&Ee(on,Et,yt[Et]);return on},Xi=(on,yt)=>Ti(on,vr(yt)),yn=(on,yt)=>{var Et={};for(var Lt in on)Ir.call(on,Lt)&&yt.indexOf(Lt)<0&&(Et[Lt]=on[Lt]);if(on!=null&&ui)for(var Lt of ui(on))yt.indexOf(Lt)<0&&zn.call(on,Lt)&&(Et[Lt]=on[Lt]);return Et};const{Countdown:oi}=jr.default;var xn=on=>{var yt=on,{onChange:Et}=yt,Lt=yn(yt,["onChange"]);const[tt,en]=(0,xe.useState)(null);(0,xe.useEffect)(()=>{typeof tt=="number"&&tt>=0&&Et(tt)},[tt]);const fn=xt=>{const Ue=Math.floor(xt/1e3);en(Ue)};return xe.createElement(oi,Xi(cr({},Lt),{onChange:fn}))}},91300:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Ie}});var xe=ye(59301);function Ie(We,It){const Qe=(0,xe.useRef)();(0,xe.useEffect)(()=>{Qe.current=We}),(0,xe.useEffect)(()=>{function vt(){Qe.current()}if(It!==null){let Ne=setInterval(vt,It);return()=>clearInterval(Ne)}},[It])}},41997:function(In,Fn,ye){"use strict";ye.r(Fn),ye.d(Fn,{default:function(){return Ci}});var xe=ye(59301),Ie={card:"card___c4ypw",head:"head___d2Dfo",element:"element___PyfcV",collaborator:"collaborator___o6MF4",btn:"btn___CF6mw",delSty:"delSty___Wm5pj",delBorder:"delBorder___IVg2Z",copHover:"copHover___rNmmw",wrap:"wrap___feope",center:"center___uU09V",tip:"tip___yCX57",title:"title___OpV1r",content:"content___XU4yH",fixedBtns:"fixedBtns___ItSdd"},We=ye(92310),It=ye.n(We),Qe=ye(94606),vt=ye(23469),Ne=ye(95237),Tt=ye(3113),Ft=ye(43418),qe=ye(92832),gt=ye(2595),dt=ye(78241),Ct=ye(6848),Me=ye(88897),te=ye(8591),ne=ye(71418),ce=ye(24905),se=ye(5112),ge=ye(78550),ve=ye(58130),Ce=ye(42203),ke=ye(44757),Pe=ye(87954),Te=ye(18257),Ke=ye(19719),et=ye(35241),Xe=ye(97267),ft=Object.defineProperty,Ge=Object.defineProperties,kt=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,zt=Object.prototype.hasOwnProperty,Ht=Object.prototype.propertyIsEnumerable,Yt=(xn,on,yt)=>on in xn?ft(xn,on,{enumerable:!0,configurable:!0,writable:!0,value:yt}):xn[on]=yt,Bt=(xn,on)=>{for(var yt in on||(on={}))zt.call(on,yt)&&Yt(xn,yt,on[yt]);if($e)for(var yt of $e(on))Ht.call(on,yt)&&Yt(xn,yt,on[yt]);return xn},Qt=(xn,on)=>Ge(xn,kt(on));const ht=xe.createContext({}),je=()=>{const{setActivatorNodeRef:xn,listeners:on}=(0,xe.useContext)(ht);return xe.createElement(Tt.ZP,Bt({type:"text",size:"small",icon:xe.createElement(Ct.Z,{title:"\u53EF\u9F20\u6807\u62D6\u62FD\u8FDB\u884C\u8BD5\u9898\u6392\u5E8F\uFF0C\u5B66\u751F\u7AEF\u5C06\u6309\u7167\u6B64\u6392\u5E8F\u5C55\u793A"},xe.createElement(ke.Z,null)),style:{cursor:"move"},ref:xn},on))},At=xn=>{const{attributes:on,listeners:yt,setNodeRef:Et,setActivatorNodeRef:Lt,transform:tt,transition:en,isDragging:fn}=(0,Ke.nB)({id:xn["data-row-key"]}),xt=Bt(Qt(Bt({},xn.style),{transform:et.ux.Translate.toString(tt),transition:en}),fn?{position:"relative",zIndex:99}:{}),Ue=(0,xe.useMemo)(()=>({setActivatorNodeRef:Lt,listeners:yt}),[Lt,yt]);return xe.createElement(ht.Provider,{value:Ue},xe.createElement("tr",Bt(Qt(Bt({},xn),{ref:Et,style:xt}),on)))};var rn=({columns:xn,dataSource:on,setDataSource:yt,loading:Et})=>{const Lt=({active:tt,over:en})=>{tt.id!==(en==null?void 0:en.id)&&yt(fn=>{const xt=fn.findIndex(an=>an.id===(tt==null?void 0:tt.id)),Ue=fn.findIndex(an=>an.id===(en==null?void 0:en.id));return(0,Ke.Rp)(fn,xt,Ue)})};return xe.createElement(Pe.LB,{modifiers:[Te.DL],onDragEnd:Lt},xe.createElement(Ke.Fo,{items:on.map(tt=>tt.id),strategy:Ke.qw},xe.createElement(gt.default,{pagination:!1,scroll:{y:400},rowKey:"id",loading:Et,locale:{emptyText:xe.createElement(Xe.Z,{styles:{margin:"80px auto"},customText:xe.createElement("span",null,"\u8FD8\u6CA1\u6709\u8BD5\u9898\uFF0C\u8BF7\u4ECE",xe.createElement("span",{style:{color:"#CA7720"}},"\u53F3\u4E0A\u89D2\u64CD\u4F5C\u6309\u94AE"),"\u8FDB\u884C\u6DFB\u52A0\uFF5E")})},dataSource:on,components:{body:{row:At}},columns:[{key:"sort",align:"center",width:80,render:()=>xe.createElement(je,null)},...xn],size:"middle"})))},bt=ye(99313),Jt=ye(19842),un=ye(57809),Kn=ye(98228),En=ye(25700),Yn=ye(70635),St={flex_box_center:"flex_box_center___Iqqr9",flex_space_between:"flex_space_between___y0uZc",flex_box_vertical_center:"flex_box_vertical_center___akeKA",flex_box_center_end:"flex_box_center_end___DEJG9",flex_box_column:"flex_box_column___pgYr1",scoremodal:"scoremodal___PYXCN",selectWrapper:"selectWrapper___RNoPX",selectWrappers:"selectWrappers___fUTXA",allqingchu:"allqingchu___k6Qgb",title:"title___AAfdA",score:"score___oYtrM",close:"close___i8V3V",content:"content___JpTOI",items:"items___je5K0",bottom:"bottom___jjylc",yes:"yes___Wh4La",no:"no___fIya2",titlecount:"titlecount___pZQaF",add:"add___hT0xx",search:"search___WBmWG",searchIcon:"searchIcon___LgZF_",tabWrap:"tabWrap___lGZ3A",previewModal:"previewModal___jPoO2"},Vn=ye(69831),Cn={flex_box_center:"flex_box_center____Tkex",flex_space_between:"flex_space_between___EZnYm",flex_box_vertical_center:"flex_box_vertical_center___e6Uyw",flex_box_center_end:"flex_box_center_end___FubGu",flex_box_column:"flex_box_column___ibm4g",warp:"warp___IgClr",shixunbutton:"shixunbutton___DTP9s",redio:"redio___wfYmJ",redioitem:"redioitem___Lx8l8",redioitemyes:"redioitemyes___KKsIv",title:"title___GXJmE",titleyes:"titleyes___yYOlS",yestag:"yestag___WQlWV",qcount:"qcount___QpuQ9",score:"score___WkTL9",qtitle:"qtitle___TQM3w",checkbox:"checkbox___XWcyb",checkboxitem:"checkboxitem___eUzWD",checkboxitemyes:"checkboxitemyes___LOyRE",bottom:"bottom___IKM1j",bottomitem:"bottomitem___TaUK6",left:"left___szEjt",right:"right___XEuVG",completion:"completion___bVp0S",content:"content___R3KZ7",items:"items___DCx2v",simple:"simple___GPeTT",shixun:"shixun___hhixj",combination:"combination___toZnZ",program:"program___alaBk"},Si=ye(25711),Bn=ye(24334);const tn=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"];var ct=({qitem:xn})=>{var on,yt,Et,Lt,tt,en,fn,xt,Ue,an;return xe.createElement("div",{className:Cn.warp},xe.createElement("div",{className:Cn.mainPart},xe.createElement("div",{className:Cn.qcount},(xn==null?void 0:xn.question_type)===8&&xe.createElement(Si.Z,{className:Cn.content,showProgramFill:!0,value:(on=xn==null?void 0:xn.program_attr)==null?void 0:on.description}),(xn==null?void 0:xn.question_type)!=8&&xe.createElement(Si.Z,{className:Cn.qtitle,value:(xn==null?void 0:xn.name)||(xn==null?void 0:xn.title)})),((xn==null?void 0:xn.question_type)===0||(xn==null?void 0:xn.question_type)===2)&&xe.createElement("div",null,(yt=xn==null?void 0:xn.choices)==null?void 0:yt.map((Dt,Rn)=>xe.createElement("div",{className:Cn.redio},!(Dt!=null&&Dt.is_answer)&&xe.createElement("span",{className:Cn.redioitem}),(Dt==null?void 0:Dt.is_answer)&&xe.createElement("i",{className:`${Cn.redioitemyes} icon-duigou1`}),xe.createElement(Si.Z,{className:Dt!=null&&Dt.is_answer?Cn.titleyes:Cn.title,value:tn[Rn]+(Dt==null?void 0:Dt.choice_text)}),(Dt==null?void 0:Dt.is_answer)&&xe.createElement("div",{className:Cn.yestag},"\u6B63\u786E\u7B54\u6848")))),(xn==null?void 0:xn.question_type)===1&&xe.createElement("div",null,(Et=xn==null?void 0:xn.choices)==null?void 0:Et.map((Dt,Rn)=>xe.createElement("div",{className:Cn.checkbox},!(Dt!=null&&Dt.is_answer)&&xe.createElement("span",{className:Cn.checkboxitem}),(Dt==null?void 0:Dt.is_answer)&&xe.createElement("i",{className:`${Cn.checkboxitemyes} icon-duigou1`}),xe.createElement(Si.Z,{className:Dt!=null&&Dt.is_answer?Cn.titleyes:Cn.title,value:tn[Rn]+(Dt==null?void 0:Dt.choice_text)}),(Dt==null?void 0:Dt.is_answer)&&xe.createElement("div",{className:Cn.yestag},"\u6B63\u786E\u7B54\u6848")))),(xn==null?void 0:xn.question_type)===3&&xe.createElement("div",{className:Cn.completion},(Lt=xn==null?void 0:xn.standard_answer)==null?void 0:Lt.map((Dt,Rn)=>{var dn;return xe.createElement("div",{style:{display:"flex"}},xe.createElement("span",{className:Cn.title},"\u586B\u7A7A\u9879",Rn+1),xe.createElement("div",{className:Cn.content},(dn=Dt==null?void 0:Dt.answer_text)==null?void 0:dn.map((Pt,Sn)=>xe.createElement("div",{className:Cn.items},Pt))))})),(xn==null?void 0:xn.question_type)===4&&xe.createElement("div",{className:Cn.simple},xe.createElement("div",{className:Cn.title},"\u53C2\u8003\u7B54\u6848"),xe.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(tt=xn==null?void 0:xn.answer_texts)!=null&&tt[0]?xe.createElement(Si.Z,{className:Cn.content,value:(en=xn==null?void 0:xn.answer_texts)==null?void 0:en[0]}):xe.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),(xn==null?void 0:xn.question_type)===5&&((fn=xn==null?void 0:xn.challenge_names)==null?void 0:fn.map((Dt,Rn)=>xe.createElement("div",{className:Cn.shixun},xe.createElement("span",{className:Cn.qtitle},xe.createElement("span",{style:{marginRight:10}},"\u7B2C",(0,ve.EM)(Rn+1),"\u9898"),Dt)))),(xn==null?void 0:xn.question_type)===6&&xe.createElement("div",{className:Cn.program},xe.createElement(Si.Z,{className:Cn.content,value:((xt=xn==null?void 0:xn.program_attr)==null?void 0:xt.description)||"- -"})),(xn==null?void 0:xn.question_type)===7&&((Ue=xn==null?void 0:xn.sub_item_banks)==null?void 0:Ue.map((Dt,Rn)=>{var dn,Pt,Sn,Qn,Xn;return xe.createElement("div",null,xe.createElement("div",{className:Cn.combination},xe.createElement("span",{className:Cn.qtitle},Dt==null?void 0:Dt.name)),xe.createElement("div",{className:Cn.warp,style:{padding:"0px",paddingTop:20}},xe.createElement("div",null,((Dt==null?void 0:Dt.item_type)=="SINGLE"||(Dt==null?void 0:Dt.item_type)=="JUDGMENT")&&((dn=Dt==null?void 0:Dt.choices)==null?void 0:dn.map((Rt,vn)=>xe.createElement("div",{className:Cn.redio},!(Rt!=null&&Rt.is_answer)&&xe.createElement("span",{className:Cn.redioitem}),(Rt==null?void 0:Rt.is_answer)&&xe.createElement("i",{className:`${Cn.redioitemyes} icon-duigou1`}),xe.createElement(Si.Z,{className:Rt!=null&&Rt.is_answer?Cn.titleyes:Cn.title,value:tn[vn]+(Rt==null?void 0:Rt.choice_text)}),(Rt==null?void 0:Rt.is_answer)&&xe.createElement("div",{className:Cn.yestag},"\u6B63\u786E\u7B54\u6848")))),(Dt==null?void 0:Dt.item_type)=="MULTIPLE"&&((Pt=Dt==null?void 0:Dt.choices)==null?void 0:Pt.map((Rt,vn)=>xe.createElement("div",{className:Cn.checkbox},!(Rt!=null&&Rt.is_answer)&&xe.createElement("span",{className:Cn.checkboxitem}),(Rt==null?void 0:Rt.is_answer)&&xe.createElement("i",{className:`${Cn.checkboxitemyes} icon-duigou1`}),xe.createElement(Si.Z,{className:Rt!=null&&Rt.is_answer?Cn.titleyes:Cn.title,value:tn[vn]+(Rt==null?void 0:Rt.choice_text)}),(Rt==null?void 0:Rt.is_answer)&&xe.createElement("div",{className:Cn.yestag},"\u6B63\u786E\u7B54\u6848")))),(Dt==null?void 0:Dt.item_type)=="COMPLETION"&&xe.createElement("div",{className:Cn.completion},(Sn=Dt==null?void 0:Dt.standard_answer)==null?void 0:Sn.map((Rt,vn)=>{var bi;return xe.createElement("div",{style:{display:"flex"}},xe.createElement("span",{className:Cn.title},"\u586B\u7A7A\u9879",vn+1),xe.createElement("div",{className:Cn.content},(bi=Rt==null?void 0:Rt.answer_text)==null?void 0:bi.map((vi,pi)=>xe.createElement("div",{className:Cn.items},vi))))})),(Dt==null?void 0:Dt.item_type)=="SUBJECTIVE"&&xe.createElement("div",{className:Cn.simple},xe.createElement("div",{className:Cn.title},"\u53C2\u8003\u7B54\u6848"),xe.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Qn=Dt==null?void 0:Dt.answer_texts)!=null&&Qn[0]?xe.createElement(Si.Z,{className:Cn.content,value:(Xn=Dt==null?void 0:Dt.answer_texts)==null?void 0:Xn[0]}):xe.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))))))})),(xn==null?void 0:xn.question_type)===8&&xe.createElement("div",null,xe.createElement(Si.Z,{disabledFill:!0,className:Cn.content,showProgramFill:!0,value:Bn.Base64.decode(((an=xn==null?void 0:xn.program_attr)==null?void 0:an.code)||"")})),(xn==null?void 0:xn.question_type)===5&&xe.createElement("div",{style:{background:"#F6F7F9",padding:"0px 20px",height:46,lineHeight:"46px",marginTop:40,display:"flex",alignItems:"center"}},xe.createElement("div",{style:{flex:1,alignItems:"center",display:"flex"}},xe.createElement("div",{style:{marginRight:30}},xe.createElement("span",{style:{marginRight:10}},"\u521B\u5EFA\u8005"),xe.createElement("span",{style:{color:"#000000"}},(xn==null?void 0:xn.author_name)||"- -")),xe.createElement("div",{style:{marginRight:30}},xe.createElement("span",{style:{marginRight:10}},"\u6240\u5C5E\u5355\u4F4D"),xe.createElement("span",{style:{color:"#000000"}},(xn==null?void 0:xn.author_school_name)||"- -")),xe.createElement("div",{style:{marginRight:30}},xe.createElement("span",{style:{marginRight:10}},"\u5B66\u4E60\u4EBA\u6570"),xe.createElement("span",{style:{color:"#000000"}},(xn==null?void 0:xn.study_count)||"0"))),xe.createElement("a",{className:Cn.shixunbutton,href:`/shixuns/${xn==null?void 0:xn.identifier}/challenges?exercise=true`,target:"_blank"},xe.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u5B9E\u8BAD\u8BE6\u60C5"))),((xn==null?void 0:xn.question_type)<=4||[6,8].includes(xn==null?void 0:xn.question_type))&&xe.createElement("div",{className:Cn.bottom},xe.createElement("div",{className:Cn.bottomitem},xe.createElement("span",{className:Cn.left},"\u89E3\u6790"),xe.createElement("span",{className:Cn.right},xn!=null&&xn.analysis?xe.createElement(Si.Z,{value:xn==null?void 0:xn.analysis}):xe.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),xe.createElement("div",{className:Cn.bottomitem},xe.createElement("span",{className:Cn.left},"\u96BE\u5EA6"),xe.createElement("span",{className:Cn.right},(xn==null?void 0:xn.difficulty)===1?"\u7B80\u5355":(xn==null?void 0:xn.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),xe.createElement("div",{className:Cn.bottomitem},xe.createElement("span",{className:Cn.left},"\u77E5\u8BC6\u70B9"),xe.createElement("span",{className:Cn.right},xn!=null&&xn.tag_discipline?xn==null?void 0:xn.tag_discipline:xe.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")))))},ze=ye(11961),Ut=ye(49731),Gt=ye(2908),at=ye(86902),Ve=ye(59301),Be=Object.defineProperty,we=Object.defineProperties,me=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,st=(xn,on,yt)=>on in xn?Be(xn,on,{enumerable:!0,configurable:!0,writable:!0,value:yt}):xn[on]=yt,Vt=(xn,on)=>{for(var yt in on||(on={}))Re.call(on,yt)&&st(xn,yt,on[yt]);if(De)for(var yt of De(on))Le.call(on,yt)&&st(xn,yt,on[yt]);return xn},sn=(xn,on)=>we(xn,me(on)),ln=(xn,on,yt)=>new Promise((Et,Lt)=>{var tt=xt=>{try{fn(yt.next(xt))}catch(Ue){Lt(Ue)}},en=xt=>{try{fn(yt.throw(xt))}catch(Ue){Lt(Ue)}},fn=xt=>xt.done?Et(xt.value):Promise.resolve(xt.value).then(tt,en);fn((yt=yt.apply(xn,on)).next())});const Hn=({setScoreShow:xn,ScoreShow:on,onOk:yt,isshixuns:Et,isloadings:Lt,dispatch:tt,selectedIds:en,user:fn,virtualId:xt,shixunsDetail:Ue})=>{var an;let[Dt,Rn]=(0,xe.useState)({type:"0",page:1,per_page:10,updated_at:"",quotes:"",item_type:"PROGRAM"}),[dn,Pt]=(0,xe.useState)([]),[Sn,Qn]=(0,xe.useState)([]),[Xn,Rt]=(0,xe.useState)([]),[vn,bi]=(0,xe.useState)([]);const[vi,pi]=(0,xe.useState)(!1),[ei]=dt.default.useForm(),[yi,Fi]=(0,xe.useState)(),[Ki,hr]=(0,xe.useState)(!1);let[Gn,Li]=(0,xe.useState)(Et);const[Lr,Dr]=(0,xe.useState)([]),[Pr,Xt]=(0,xe.useState)(0),[Mi,ar]=(0,xe.useState)(!0),[Wi,Mr]=(0,xe.useState)([]),[fr,Br]=(0,xe.useState)([]),Oi=[{name:"\u5168\u90E8",value:"",question_type:0},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u586B\u7A7A\u9898",value:"COMPLETION",question_type:3},{name:"\u7B80\u7B54\u9898",value:"SUBJECTIVE",question_type:4},{name:"\u5B9E\u8BAD\u9898",value:"SHIXUN",question_type:5},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6},{name:"\u7EC4\u5408\u9898",value:"COMBINATION",question_type:7},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM",question_type:8}],[$i,nr]=(0,xe.useState)([]),Mn=(0,xe.useRef)(new Set),Tr=(0,xe.useRef)(new Set),An=(0,xe.useRef)(1),yr=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],_r=[{name:"\u521D\u7EA7",value:1},{name:"\u4E2D\u7EA7",value:2},{name:"\u4E2D\u9AD8\u7EA7",value:3},{name:"\u9AD8\u7EA7",value:4}],xr=[{name:"\u672A\u53D1\u5E03",value:"unpublish"},{name:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{name:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],[Ho,ho]=(0,xe.useState)(!1),Sr=()=>{ei.resetFields(),Gn=!1,Li(!1),ho(!1),ei.submit()};(0,xe.useEffect)(()=>{on&&(ei.setFieldsValue({item_type:"",courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,teach_group_id:null}),Mi&&Gn&&(ei.setFieldsValue({item_type:"SHIXUN"}),Dt.item_type="SHIXUN",Rn(Vt({},Dt)),ar(!1)),Dt.type="0",Qn(en),Rt(en),Tr.current=new Set(en),gr(Dt),pr(),Yr({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),zi())},[on]),console.log(Sn,Xn,"listitems"),(0,xe.useEffect)(()=>{Pr>0&&setTimeout(()=>{Xt(0)},2e3)},[Pr]);function gr(Wt){return ln(this,null,function*(){var kn,ai,$n;if(pi(!0),Rn(Vt({},Wt)),(Xn==null?void 0:Xn.length)<=0&&Wt.type==="5"){bi([]),pi(!1);return}let Ii=Wt.type==="5"?Xn==null?void 0:Xn.filter(On=>!Lr.includes(On)):null,Bi=Wt.type==="5"?Xn==null?void 0:Xn.filter(On=>Lr.includes(On)):null;An.current=An.current+1;const gi=An.current;Wt.group_id=((kn=Wt.group_id)==null?void 0:kn.map(On=>On==null?void 0:On.value))||null;let Yi=yield(0,Yn.ZP)("/api/item_banks.json",{method:"get",params:sn(Vt({},Wt),{discipline_id:((ai=Wt==null?void 0:Wt.courseid)==null?void 0:ai[0])||null,sub_discipline_id:(($n=Wt==null?void 0:Wt.courseid)==null?void 0:$n[1])||null,ids:Ii,shixun_ids:Bi,include_shixuns:!0,keyword:Wt.keyword?encodeURIComponent(Wt.keyword):Wt.keyword,type:Wt.type==="5"?null:Wt.type,clazz:Wt.type==="3"?"ItemBanksGroup":null})});An.current===gi&&(bi(Yi),pi(!1))})}function pr(){return ln(this,null,function*(){let Wt=yield(0,Yn.ZP)("/api/disciplines.json",{method:"get",params:{source:"question",group_id:0,group_type:Dt.type==="5"?null:Dt.type,clazz:"ItemBanksGroup"}});Pt((0,Vn.L)(Wt==null?void 0:Wt.disciplines))})}function Yr(Wt){return ln(this,null,function*(){var kn;let ai=yield(0,Yn.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:Wt}),$n=[{title:"\u6839\u76EE\u5F55",id:0,pid:0,value:0,key:0,isLeaf:!1,children:(kn=ai==null?void 0:ai.data)==null?void 0:kn.map(Ii=>({title:Ii.name,id:Ii.id,pid:Ii.id,value:Ii.id,key:Ii.id,isLeaf:!Ii.have_child}))}];Mr($n)})}function zi(){return ln(this,null,function*(){let Wt=yield(0,Gt.Dm)({});(Wt==null?void 0:Wt.status)===0&&Br(Wt==null?void 0:Wt.groups)})}function Je(Wt){return ln(this,null,function*(){var kn,ai,$n,Ii;pi(!0);let Bi=(kn=Wt.list)==null?void 0:kn.filter(On=>!Lr.includes(On)),gi=(ai=Wt.list)==null?void 0:ai.filter(On=>Lr.includes(On));if(Bi.length===0&&gi.length===0){pi(!1),bi([]);return}let Yi=yield(0,Yn.ZP)("/api/item_banks.json",{method:"get",params:sn(Vt({},Wt),{discipline_id:(($n=Wt==null?void 0:Wt.courseid)==null?void 0:$n[0])||null,sub_discipline_id:((Ii=Wt==null?void 0:Wt.courseid)==null?void 0:Ii[1])||null,ids:Bi,shixun_ids:gi,type:Wt.type==="5"?null:Wt.type,clazz:Wt.type==="3"?"ItemBanksGroup":null})});pi(!1),bi(Yi)})}const pt=Wt=>ln(void 0,null,function*(){const kn=yield tt({type:"shixunsDetail/release",payload:{id:Wt}});let ai=kn==null?void 0:kn.tag_position,$n=(kn==null?void 0:kn.evaluation_set_position)||[],Ii=kn.status;return Ii===0?(te.ZP.success("\u53D1\u5E03\u6210\u529F"),gr(Dt),!0):(Ii===2?te.ZP.error(`\u7B2C${$n.join(",")}\u5173\u5C1A\u672A\u5B8C\u6210\uFF0C\u65E0\u6CD5\u7533\u8BF7\u53D1\u5E03`):Ii===3?te.ZP.error(`\u6BCF\u4E00\u4E2A\u5173\u5361\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u6280\u80FD\u6807\u7B7E, \u7B2C${ai.join(",")}\u5173\u5C1A\u672A\u8BBE\u7F6E\u6280\u80FD\u6807\u7B7E\uFF0C\u8BF7\u8865\u5145`):te.ZP.error("\u5C1A\u672A\u521B\u5EFA\u4EFB\u52A1\u7684\u5B9E\u8BAD\uFF0C\u4E0D\u80FD\u7533\u8BF7\u53D1\u5E03"),!1)}),Ot=Wt=>(Wt==null?void 0:Wt.shixun_tag_num)===1?"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528\uFF0C\u8BF7\u5148\u8FDB\u884C\u53D1\u5E03":"",cn=()=>vi?"\u6682\u65E0\u6570\u636E":Dt.type==="3"&&!(fr!=null&&fr.length)?Ve.createElement("span",null,"\u4F60\u8FD8\u672A\u52A0\u5165\u6559\u7814\u56E2\u961F\uFF0C\u8BF7\u5148 ",Ve.createElement("span",{onClick:()=>{var Wt;return(0,ve.xg)(`/users/${(Wt=fn==null?void 0:fn.userInfo)==null?void 0:Wt.login}/teach-group`)},style:{color:"#3061D0",cursor:"pointer"}},"\u65B0\u521B\u5EFA\u6559\u7814\u56E2\u961F")):Dt.type==="0"&&(vn==null?void 0:vn.items_count)===0&&!(Dt!=null&&Dt.tag_discipline_id)&&!(Dt!=null&&Dt.difficulty)&&!(Dt!=null&&Dt.keyword)&&!(Dt!=null&&Dt.group_id)&&!(Dt!=null&&Dt.difficulty)?Ve.createElement("span",null,"\u4F60\u8FD8\u672A\u521B\u5EFA\u8FC7\u7F16\u7A0B\u9898\uFF0C\u8BF7\u5148 ",Ve.createElement("span",{onClick:()=>{(0,ve.xg)(`/problems/newcreate?&pageId=${xt}`),xn(!1)},style:{color:"#3061D0",cursor:"pointer"}},"\u521B\u5EFA\u7F16\u7A0B\u9898")):"\u6682\u65E0\u6570\u636E",jn=(Wt,kn,ai)=>Wt.map($n=>$n.key===kn?Vt(Vt({},$n),ai):$n.children?sn(Vt({},$n),{children:jn($n.children,kn,ai)}):$n),Dn=Wt=>ln(void 0,null,function*(){const{key:kn}=Wt;let ai=Dt.type;const $n=yield(0,Gt.ex)({page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",group_id:Math.abs(kn),type:ai}),{data:Ii,total_count:Bi}=$n||{};Bi>0&&Mr(gi=>jn(gi,kn,{children:Ii.map(Yi=>({title:Yi.name,id:Yi.id,pid:Yi.id,value:Yi.id,key:Yi.id,isLeaf:!Yi.have_child}))}))});return Ve.createElement("div",null,Ve.createElement(Ft.default,{title:!1,footer:!1,open:on,width:1200,centered:!0,className:St.scoremodal,onCancel:()=>{xn(!1)}},Ve.createElement("div",{style:{display:"flex",alignItems:"center"}},Ve.createElement("div",{className:St.title},"\u9009\u62E9\u7F16\u7A0B\u9898")),Ve.createElement(bt.default,{className:St.tabWrap,activeKey:Dt.type,onChange:Wt=>{Wt==="3"?(Dt.show_all_share=!0,Yr({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"3"})):Dt.show_all_share=null,Wt==="0"&&Yr({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),Dt.type=Wt,Dt.page=1,Dt.updated_at="",Dt.quotes="",Dt.courseid="",Dt.tag_discipline_id=null,Dt.difficulty=null,Dt.keyword=null,Dt.group_id=null,Dt.teach_group_id=null,ei.setFieldsValue({courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[],teach_group_id:null}),(Dt==null?void 0:Dt.item_type)==="SHIXUN"&&Dt.type!=="5"&&(Gn=!0,Li(!0)),ho(!1),Dt.type==="5"&&(Gn=!1,Li(!1)),Rn(Vt({},Dt)),gr(Vt({},Dt)),pr()},items:[{label:"\u6211\u521B\u5EFA\u7684",key:"0"},{label:"\u56E2\u961F\u5171\u4EAB",key:"3"},{label:"\u516C\u5171",key:"1"},{label:Ve.createElement("div",null,"\u5DF2\u9009",Xn.length>0&&Ve.createElement("span",{className:St.titlecount},Xn.length),Pr>0&&Ve.createElement("span",{className:St.add},"+",Pr)),key:"5"}]}),Ve.createElement(dt.default,{layout:"inline",form:ei,onValuesChange:(Wt,kn)=>{const ai=Object.values(kn).some(Ii=>Ii!==null&&Ii!==""&&Ii!==void 0),$n=kn.keyword==="";if(ho(ai||!$n),Dt.page=1,(kn==null?void 0:kn.item_type)==="SHIXUN"){if(Dt.type==="5"?Li(!1):Li(!0),Wt.keyword||Wt.keyword==="")return;ei.submit()}else{if(Wt!=null&&Wt.courseid&&ei.setFieldsValue({tag_discipline_id:""}),Li(!1),Wt.keyword||Wt.keyword==="")return;ei.submit()}},onFinish:Wt=>{var kn;Dt.type==="3"&&(!Wt.group_id||((kn=Wt==null?void 0:Wt.group_id)==null?void 0:kn.length)===0)?Dt.show_all_share=!0:Dt.show_all_share=null,Rn(Vt(Vt({},Dt),Wt)),gr(Vt(Vt({},Dt),Wt))}},Ve.createElement(dt.default.Item,{name:"courseid"},Ve.createElement(Jt.Z,{className:St.selectWrapper,style:{width:160},size:"middle",placeholder:"\u65B9\u5411&\u8BFE\u7A0B",options:dn})),!Gn&&Ve.createElement(dt.default.Item,{name:"tag_discipline_id"},Ve.createElement(un.default,{className:St.selectWrapper,placeholder:"\u77E5\u8BC6\u70B9",style:{width:160},size:"middle",allowClear:!0},(an=vn==null?void 0:vn.tag_disciplines)==null?void 0:an.map(Wt=>Ve.createElement(un.default.Option,{key:Wt.id},Wt.name)))),Ve.createElement(dt.default.Item,{name:Gn?"diff":"difficulty"},Ve.createElement(un.default,{className:St.selectWrapper,placeholder:"\u96BE\u5EA6",style:{width:118},size:"middle",allowClear:!0},!Gn&&yr.map(Wt=>Ve.createElement(un.default.Option,{key:Wt.value},Wt.name)),Gn&&_r.map(Wt=>Ve.createElement(un.default.Option,{key:Wt.value},Wt.name)))),Gn&&Ve.createElement(dt.default.Item,{name:"shixun_publish_status"},Ve.createElement(un.default,{className:St.selectWrapper,placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"middle",allowClear:!0},xr.map(Wt=>Ve.createElement(un.default.Option,{key:Wt.value},Wt.name)))),Dt.type==="3"&&!Gn&&Ve.createElement(dt.default.Item,{name:"teach_group_id"},Ve.createElement(un.default,{className:St.selectWrapper,placeholder:"\u56E2\u961F",style:{width:118},size:"middle",showSearch:!0,allowClear:!0,filterOption:(Wt,kn)=>(console.log("---",Wt,kn),kn.children.toUpperCase().indexOf(Wt.toUpperCase())!==-1)},fr==null?void 0:fr.map(Wt=>Ve.createElement(un.default.Option,{key:Wt.group_id},Wt.name)))),(Dt.type==="3"||Dt.type==="0")&&!Gn&&Ve.createElement(dt.default.Item,{name:"group_id"},Ve.createElement(Kn.default,{treeDataSimpleMode:!0,style:{width:118},className:St.selectWrappers,multiple:!0,allowClear:!0,showSearch:!0,filterTreeNode:(Wt,kn)=>kn.title.toUpperCase().indexOf(Wt.toUpperCase())!==-1,dropdownStyle:{maxHeight:400,width:500,overflow:"auto"},placeholder:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939",treeCheckStrictly:!0,loadData:Dn,treeDefaultExpandedKeys:[0],maxTagCount:0,treeCheckable:!0,treeData:Wi})),Ho&&Ve.createElement("span",{className:St.allqingchu,onClick:Sr},Ve.createElement("i",{className:"iconfont icon-guanbi4"}),Ve.createElement("span",null,"\u6E05\u9664\u7B5B\u9009\u6761\u4EF6")),Ve.createElement(dt.default.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"keyword"},Ve.createElement(qe.default.Search,{className:St.search,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u9898\u7F16\u53F7\u6216\u5173\u952E\u8BCD\u641C\u7D22",allowClear:!0,suffix:Ve.createElement("i",{className:`iconfont icon-sousuo9 font14 ${St.searchIcon}`,onClick:()=>ei.submit()}),onSearch:Wt=>{ei.submit()}}))),Ve.createElement("div",{style:{background:"#F6F7F9",display:"flex",alignItems:"center",marginTop:18,height:40,paddingLeft:10,paddingRight:20}},Ve.createElement("div",{onClick:()=>{Dt.updated_at==="asc"?Dt.updated_at="desc":Dt.updated_at="asc",Rn(sn(Vt({},Dt),{page:1})),gr(sn(Vt({},Dt),{page:1}))}}," ",Dt.updated_at?Ve.createElement("img",{src:Dt.updated_at==="asc"?ze.Z:Ut.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Ve.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u66F4\u65B0\u65F6\u95F4\u6392\u5E8F"),Ve.createElement("div",{onClick:()=>{Dt.quotes==="asc"?Dt.quotes="desc":Dt.quotes="asc",Rn(sn(Vt({},Dt),{page:1})),gr(sn(Vt({},Dt),{page:1}))},style:{marginLeft:20}}," ",Dt.quotes?Ve.createElement("img",{src:Dt.quotes==="asc"?ze.Z:Ut.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Ve.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u4F7F\u7528\u6B21\u6570\u6392\u5E8F")),Ve.createElement(gt.default,{style:{marginTop:2,marginBottom:20},scroll:{y:260},dataSource:(vn==null?void 0:vn.items)||(vn==null?void 0:vn.shixun_list),pagination:!1,locale:{emptyText:Ve.createElement(Xe.Z,{styles:{margin:"18px auto"},customText:cn()})},loading:vi,rowKey:Wt=>Wt.id,rowSelection:{type:"checkbox",selectedRowKeys:Sn,getCheckboxProps:Wt=>({disabled:Wt.shixun_tag_num===1}),onSelect(Wt,kn,ai){if(kn)Gn&&Dr([...Lr,Wt.id]),Qn([...Sn,Wt.id]),nr([...$i,Wt]),Wt.identifier?Mn.current.add(Wt.id):Tr.current.add(Wt.id),Xt(1),Rt([...Xn,Wt.id]);else{const $n=$i.filter(gi=>gi.id!==Wt.id);nr($n);const Ii=$n.map(gi=>gi.id);Qn([...Ii]),Wt.identifier?Mn.current.delete(Wt.id):Tr.current.delete(Wt.id);let Bi=Xn.filter(gi=>gi!==Wt.id);if(Rt(Bi),Gn){let gi=Lr.filter(Yi=>Yi!==Wt.id);Dr([...gi])}if(Dt.type==="5"){Je(sn(Vt({},Dt),{list:[...Bi]}));return}}},onSelectAll(Wt,kn,ai){if(Wt){const $n=ai.map(Ii=>Ii.id);Gn&&Dr([...Lr,...$n]),nr([...$i,...ai]),Qn([...Sn,...$n]),Rt([...Xn,...$n]);for(const Ii of ai)Ii.identifier?Mn.current.add(Ii.id):Tr.current.add(Ii.id)}else{const $n=ai.map(gi=>gi.id),Ii=Sn.filter(gi=>!$n.some(Yi=>Yi===gi)),Bi=$i.filter(gi=>!$n.some(Yi=>Yi===gi.id));if(nr(Bi),Qn([...Ii]),Rt([...Ii]),Gn){let gi=Lr.filter(Yi=>!$n.some(On=>On===Yi.id));Dr([...gi])}Dt.type==="5"&&Je(sn(Vt({},Dt),{list:[...Ii]}));for(const gi of $n)gi.identifier?Mn.current.delete(gi):Tr.current.delete(gi)}}},columns:[{title:"\u8BD5\u9898\u7F16\u53F7",dataIndex:"id",key:"id",width:110,render:(Wt,kn,ai)=>{const $n=`No.${Wt}`;return Ve.createElement(Ct.Z,{title:$n},Ve.createElement("span",null,$n))}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:Gn?"30%":"60%",key:"name",render:(Wt,kn,ai)=>{var $n;return Ve.createElement(Ct.Z,{title:Ot(kn)},Ve.createElement("span",null,Ve.createElement(Si.Z,{key:1,showLines:1,showTextOnly:!0,value:Gn||kn!=null&&kn.challenge_names?kn!=null&&kn.title||Wt===null?"--":Wt:(kn==null?void 0:kn.item_type)=="BPROGRAM"?($n=kn==null?void 0:kn.program_attr)==null?void 0:$n.description:Wt})))}},{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline",key:"tag_discipline",ellipsis:!0,width:150,render:(Wt,kn,ai)=>Ve.createElement(Ct.Z,{title:Wt},Ve.createElement("span",null,Wt||"- -"))},{title:"\u521B\u5EFA\u8005",dataIndex:"author_name",key:"author_name",hidden:!Gn,render:(Wt,kn,ai)=>{var $n;return Ve.createElement(Ct.Z,{title:Ot(kn)},Ve.createElement("span",null,Wt?($n=Wt==null?void 0:Wt.split("\u3001"))==null?void 0:$n[0]:"- -"))}},{title:"\u6240\u5C5E\u5355\u4F4D",dataIndex:"author_school_name",key:"author_school_name",hidden:!Gn,render:(Wt,kn,ai)=>Ve.createElement(Ct.Z,{title:Ot(kn)},Ve.createElement("span",null,Wt||"- -"))},{title:"\u96BE\u5EA6",dataIndex:"difficulty",key:"difficulty",width:50,render:(Wt,kn,ai)=>{var $n,Ii,Bi,gi;return Ve.createElement(Ct.Z,{title:Ot(kn)},Ve.createElement("div",null,Gn||kn!=null&&kn.challenge_names?(kn==null?void 0:kn.level)||((Ii=($n=yr==null?void 0:yr.filter(Yi=>Yi.value===Wt))==null?void 0:$n[0])==null?void 0:Ii.name):(gi=(Bi=yr==null?void 0:yr.filter(Yi=>Yi.value===Wt))==null?void 0:Bi[0])==null?void 0:gi.name))}},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!Gn,render:(Wt,kn,ai)=>Ve.createElement(Ct.Z,{title:Ot(kn)},Ve.createElement("div",null,Wt||"- -"))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes",key:"quotes",width:74,render:(Wt,kn,ai)=>Ve.createElement(Ct.Z,{title:Ot(kn)},Ve.createElement("div",null,Gn||kn!=null&&kn.challenge_names?(kn==null?void 0:kn.study_count)||(kn==null?void 0:kn.stu_num):Wt))},{title:Ve.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",Ve.createElement(Ct.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},Ve.createElement(at.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!Gn,render:(Wt,kn,ai)=>Ve.createElement(Ct.Z,{title:Ot(kn)},Ve.createElement("div",null,Wt||"- -"))},{title:"\u64CD\u4F5C",dataIndex:"id",key:"item_type",width:50,align:"right",render:(Wt,kn,ai)=>Ve.createElement(Ct.Z,{title:Ot(kn)},Ve.createElement("div",{style:{flex:1,textAlign:"start"}},Ve.createElement("a",{onClick:()=>{var $n,Ii;Fi(sn(Vt({},kn),{question_type:Gn||kn!=null&&kn.challenge_names?5:(Ii=($n=Oi==null?void 0:Oi.filter(Bi=>Bi.value===(kn==null?void 0:kn.item_type)))==null?void 0:$n[0])==null?void 0:Ii.question_type})),hr(!0)}},"\u67E5\u770B"),(kn==null?void 0:kn.shixun_tag_num)===1&&Ve.createElement("a",{style:{marginLeft:10},onClick:()=>{Ft.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,width:400,content:Ve.createElement("div",null,"\u662F\u5426\u786E\u5B9A\u53D1\u5E03",Ve.createElement("span",{style:{cursor:"pointer",color:"#3061D0"},onClick:()=>{window.open(`/shixuns/${kn==null?void 0:kn.identifier}/challenges`)}},(kn==null?void 0:kn.shixun_name)||"--"),"\uFF1F"),onOk:()=>ln(void 0,null,function*(){if(!pt(kn==null?void 0:kn.identifier))return new Promise(($n,Ii)=>{Ii()})})})}},"\u53D1\u5E03")))}].filter(Wt=>!Wt.hidden)}),Ve.createElement(En.Z,{current:Dt.page,total:(vn==null?void 0:vn.items_count)||(vn==null?void 0:vn.shixuns_count),style:{marginBottom:20},defaultPageSize:Dt.per_page,hideOnSinglePage:!(vn!=null&&vn.items_count),showTotal:Wt=>Ve.createElement("span",null,"\u5171\xA0",Ve.createElement("span",{style:{color:"#165DFF"}},Wt),"\xA0\u6761\u6570\u636E"),pageSize:Dt.per_page,onChange:(Wt,kn)=>{Dt.page=Wt,Dt.per_page=kn,Rn(Vt({},Dt)),gr(Vt({},Dt))}}),Ve.createElement("div",{className:St.bottom},Ve.createElement(Tt.ZP,{className:St.no,onClick:()=>{xn(!1)}},"\u53D6\u6D88"),Ve.createElement(Tt.ZP,{loading:Lt,style:{width:Lt&&75},className:St.yes,onClick:()=>ln(void 0,null,function*(){if((Xn==null?void 0:Xn.length)<=0){te.ZP.info("\u5F53\u524D\u6682\u672A\u9009\u62E9\u6570\u636E");return}yt([...Tr.current],[...Mn.current],!0,Xn==null?void 0:Xn.length)})},"\u786E\u8BA4"))),Ve.createElement(Ft.default,{open:Ki,title:"\u9898\u76EE\u8BE6\u60C5",footer:!1,className:St.previewModal,width:1e3,centered:!0,onCancel:()=>{hr(!1)},onOk:()=>{hr(!1)}},Ve.createElement(ct,{qitem:yi})))};var wi=(0,Ce.connect)(({shixunsDetail:xn,user:on})=>({shixunsDetail:xn,user:on}))(Hn),Pi=ye(37010),Ri=ye(61186),Zi=ye.n(Ri),Ln=ye(59301),rr=Object.defineProperty,Kr=Object.defineProperties,Vr=Object.getOwnPropertyDescriptors,jr=Object.getOwnPropertySymbols,li=Object.prototype.hasOwnProperty,Ti=Object.prototype.propertyIsEnumerable,vr=(xn,on,yt)=>on in xn?rr(xn,on,{enumerable:!0,configurable:!0,writable:!0,value:yt}):xn[on]=yt,ui=(xn,on)=>{for(var yt in on||(on={}))li.call(on,yt)&&vr(xn,yt,on[yt]);if(jr)for(var yt of jr(on))Ti.call(on,yt)&&vr(xn,yt,on[yt]);return xn},Ir=(xn,on)=>Kr(xn,Vr(on)),zn=(xn,on)=>{var yt={};for(var Et in xn)li.call(xn,Et)&&on.indexOf(Et)<0&&(yt[Et]=xn[Et]);if(xn!=null&&jr)for(var Et of jr(xn))on.indexOf(Et)<0&&Ti.call(xn,Et)&&(yt[Et]=xn[Et]);return yt},Ee=(xn,on,yt)=>new Promise((Et,Lt)=>{var tt=xt=>{try{fn(yt.next(xt))}catch(Ue){Lt(Ue)}},en=xt=>{try{fn(yt.throw(xt))}catch(Ue){Lt(Ue)}},fn=xt=>xt.done?Et(xt.value):Promise.resolve(xt.value).then(tt,en);fn((yt=yt.apply(xn,on)).next())});const cr=({title:xn,icon:on,className:yt,style:Et,children:Lt})=>Ln.createElement("div",{className:It()(Ie.card,yt),style:Et},Ln.createElement("div",{className:Ie.head},Ln.createElement("i",{className:on}),Ln.createElement("b",null,xn)),Ln.createElement("div",{className:Ie.element},Lt)),Xi=xn=>{var on=xn,{value:yt,onChange:Et}=on,Lt=zn(on,["value","onChange"]);return Ln.createElement(vt.Z,Ir(ui({},Lt),{defaultValue:yt,onChange:Et}))},yn=({value:xn=[],onChange:on,params:yt,className:Et})=>{const[Lt,tt]=(0,xe.useState)(!1),[en,fn]=(0,xe.useState)([]),[xt,Ue]=(0,xe.useState)(""),[an,Dt]=(0,xe.useState)([]),[Rn,dn]=(0,xe.useState)("");(0,xe.useEffect)(()=>{Pt()},[]);function Pt(){return Ee(this,null,function*(){let Sn=yield(0,Yn.ZP)(`/api/courses/${yt==null?void 0:yt.coursesId}/teachers`,{method:"get",params:{homework_id:yt.categoryId,limit:1e3}});Dt((Sn==null?void 0:Sn.teacher_list)||[])})}return Ln.createElement(xe.Fragment,null,Ln.createElement("div",{className:It()(Ie.collaborator,Et)},xn==null?void 0:xn.map(Sn=>Ln.createElement(Ne.Z,{align:"middle",className:`${Ie.btn} ${Rn==(Sn==null?void 0:Sn.user_id)?Ie.delBorder:""}`,key:Sn.user_id},Ln.createElement("span",{className:"c-grey-333"},Sn==null?void 0:Sn.name),Ln.createElement("span",{className:`iconfont icon-guanbi11 current ml20 c-grey-ccc ${Ie.delSty}`,onMouseEnter:()=>{dn(Sn==null?void 0:Sn.user_id)},onMouseLeave:()=>{dn("")},onClick:()=>{const Qn=xn.filter(Xn=>Xn.user_id!==Sn.user_id);fn(Qn.map(Xn=>Xn.user_id)),on(Qn)}}))),Ln.createElement(Tt.ZP,{className:Ie.copHover,style:{height:38,padding:"6px 15px"},type:"primary",ghost:!0,onClick:()=>tt(!0)},"\u6DFB\u52A0\u534F\u4F5C\u8005")),Ln.createElement(Ft.default,{title:"\u6DFB\u52A0\u534F\u4F5C\u8005",open:Lt,onCancel:()=>tt(!1),onOk:()=>{const Sn=an.filter(Qn=>en.includes(Qn.user_id));on(Sn),tt(!1)},afterClose:()=>{Ue("")}},Ln.createElement(Ne.Z,{align:"middle"},Ln.createElement("label",null,"\u59D3\u540D\uFF1A"),Ln.createElement(qe.default.Search,{value:xt,size:"middle",style:{flex:1},onChange:Sn=>Ue(Sn.target.value)})),Ln.createElement(gt.default,{style:{marginTop:10,height:300,overflow:"auto"},rowSelection:{type:"checkbox",onChange:Sn=>{fn(Sn)},selectedRowKeys:en,getCheckboxProps:Sn=>({disabled:Sn.is_collaborator})},pagination:!1,rowKey:"user_id",size:"middle",dataSource:an.filter(Sn=>Sn.name.includes(xt)),columns:[{title:"\u59D3\u540D",dataIndex:"name"},{title:"\u89D2\u8272",dataIndex:"role"}]})))};var Ci=()=>{var xn;const on=(0,Ce.useParams)(),yt=(0,Ce.useDispatch)(),[Et]=dt.default.useForm(),Lt=dt.default.useWatch("hack_score_settings",Et),tt=dt.default.useWatch("open_code",Et),en=dt.default.useWatch("rank_forbidden",Et),fn=dt.default.useWatch("hack_analysis",Et),xt=dt.default.useWatch("hack_answer",Et),[Ue,an]=(0,xe.useState)([]),[Dt,Rn]=(0,xe.useState)({}),[dn,Pt]=(0,xe.useState)({course_end_date:null,manage_all_group:!0,send_type:0,can_publish:!0,difficult_settings:[],difficult_count:[],unified_setting:!0}),[Sn,Qn]=(0,xe.useState)(!0),[Xn,Rt]=(0,xe.useState)(!1),[vn,bi]=(0,xe.useState)(!1),[vi,pi]=(0,xe.useState)({}),[ei,yi]=(0,xe.useState)(!1),[Fi,Ki]=(0,xe.useState)(!1),hr=(0,xe.useRef)(!1),Gn=(0,xe.useRef)(String(Math.random()).slice(-6)),Li=(xn=window.location.pathname)==null?void 0:xn.includes("add");(0,xe.useEffect)(()=>(window.addEventListener("visibilitychange",Lr),()=>{window.removeEventListener("visibilitychange",Lr)}),[Ue,vi]),(0,xe.useEffect)(()=>(yt({type:"globalSetting/footerToggle",payload:!1}),()=>{yt({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,xe.useEffect)(()=>{Ue.length&&Lt!==void 0&&Wi()},[Lt,JSON.stringify(Ue==null?void 0:Ue.map(Oi=>Oi.id+Oi.hack_score))]),(0,xe.useEffect)(()=>{Dr(),Li?Qn(!1):Pr()},[]);const Lr=()=>Ee(void 0,null,function*(){var Oi;if(document.visibilityState==="visible"){Ki(!0);let $i=Ue.map(Tr=>Tr.id),nr=localStorage.getItem(Gn.current);nr&&(nr=JSON.parse(nr),nr=Array.isArray(nr)?nr:[],$i=[...$i,...nr],localStorage.removeItem(Gn.current));const Mn=yield(0,Yn.ZP)("/api/item_banks.json",{method:"get",params:{hack_item_bank_ids:$i.length?$i:-1,homework_common_id:Li?null:vi==null?void 0:vi.homework_id}});if(Mn!=null&&Mn.items){const Tr=(Oi=Mn==null?void 0:Mn.items)==null?void 0:Oi.map(An=>{const yr=Ue.find(_r=>_r.id===An.id);return yr?Ir(ui({},An),{hack_score:yr.hack_score}):An});an(Tr)}Ki(!1)}}),Dr=()=>Ee(void 0,null,function*(){const Oi=yield(0,Yn.ZP)(`/api/courses/${on.coursesId}/homework_commons/new.json`,{method:"get",params:{category:on==null?void 0:on.categoryId,type:5}});Oi!=null&&Oi.course_name&&Rn(Oi)}),Pr=()=>Ee(void 0,null,function*(){var Oi,$i;const nr=yield(0,Yn.ZP)(`/api/homework_commons/${on==null?void 0:on.categoryId}/edit_hack.json`,{method:"get"});if((nr==null?void 0:nr.status)===0){const Mn=(Oi=nr==null?void 0:nr.collaborators_data)==null?void 0:Oi.map(An=>({user_id:An.id,name:An.real_name}));Et.setFieldsValue(Ir(ui({},nr),{user_ids:Mn,rank_forbidden_start:nr!=null&&nr.rank_forbidden_start?Zi()(nr==null?void 0:nr.rank_forbidden_start):"",rank_forbidden_end:nr!=null&&nr.rank_forbidden_end?Zi()(nr==null?void 0:nr.rank_forbidden_end):""}));const Tr=($i=nr==null?void 0:nr.items)==null?void 0:$i.map((An,yr)=>{var _r,xr;return Ir(ui({},An),{hack_score:(xr=(_r=nr==null?void 0:nr.hack_settings)==null?void 0:_r[yr])==null?void 0:xr.hack_score})});an(Tr||[]),pi(ui({},nr))}Qn(!1)}),Xt=()=>{let Oi=`/classrooms/${on==null?void 0:on.coursesId}/program_homework`;return Li||(Oi=`/classrooms/${on==null?void 0:on.coursesId}/program_homework/${on==null?void 0:on.categoryId}/detail`),Oi},Mi=[{name:(Dt==null?void 0:Dt.course_name)||"",path:`/classrooms/${Dt==null?void 0:Dt.course_id}/program_homework`},{name:Li?"\u7F16\u7A0B\u4F5C\u4E1A":vi==null?void 0:vi.name,path:Xt()},{name:(Li?"\u65B0\u5EFA":"\u7F16\u8F91")+"\u7F16\u7A0B\u4F5C\u4E1A"}],ar=[{title:"\u5E8F\u53F7",dataIndex:"index",width:80,render:(Oi,$i,nr)=>nr+1},{title:"\u6807\u9898",dataIndex:"name",ellipsis:!0,render:Oi=>Ln.createElement(Ct.Z,{placement:"topLeft",title:Oi},Ln.createElement("span",null,Oi||"--"))},{title:"\u5206\u503C",dataIndex:"hack_score",render:(Oi,$i,nr)=>Ln.createElement(Me.Z,{disabled:Lt!==2,size:"middle",min:0,precision:1,addonAfter:"\u5206",value:Oi,onChange:Mn=>{Ue[nr].hack_score=Mn;const Tr=Ue.reduce((An,yr)=>An+Number(yr.hack_score||0),0);Et.setFieldsValue({total_score:Tr.toFixed(2)}),an([...Ue])}})},{title:"\u96BE\u5EA6",dataIndex:"difficulty",align:"center",width:90,render:Oi=>Ln.createElement("span",null,Oi===1?"\u7B80\u5355":Oi===2?"\u4E2D\u7B49":"\u56F0\u96BE")},{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline",render:Oi=>Ln.createElement(Ct.Z,{placement:"topLeft",title:Oi},Ln.createElement("span",{style:{backgroundColor:"#ECFAF5",color:"#1B8565",overflow:"hidden",textOverflow:"ellipsis",padding:"2px 6px"}},Oi||"--"))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes"},{title:"\u64CD\u4F5C",dataIndex:"action",width:146,render:(Oi,$i)=>Ln.createElement("span",null,Ln.createElement("span",{onClick:()=>Ee(void 0,null,function*(){var nr;yt({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u521D\u59CB\u5316\uFF0C\u8BF7\u7A0D\u540E..."}});let Mn=yield(0,Yn.ZP)(`/api/problems/${(nr=$i==null?void 0:$i.program_attr)==null?void 0:nr.identifier}/start.json`,{method:"get"});(Mn==null?void 0:Mn.status)===0&&(0,ve.xg)(`/myproblems/${Mn==null?void 0:Mn.identifier}?type=1&pageId=edit&backUrl=${Xt()}`),yt({type:"globalSetting/setGlobalLoading",payload:{show:!1}})}),className:"c-light-primary current"},"\u4F53\u9A8C"),Ln.createElement("span",{onClick:()=>{var nr;return(0,ve.xg)(`/problems/newedit/${(nr=$i==null?void 0:$i.program_attr)==null?void 0:nr.identifier}?type=1&pageId=edit&backUrl=${window.location.pathname}`)},className:"c-light-primary current mr20 ml20"},"\u7F16\u8F91"),Ln.createElement("span",{onClick:()=>{const nr=Ue.filter(Mn=>Mn.id!==$i.id);an(nr),te.ZP.success("\u5220\u9664\u6210\u529F")},className:"current",style:{color:"#E30000"}},"\u5220\u9664"))}],Wi=()=>{const Oi=[...Ue],$i=Et.getFieldValue("total_score"),nr=Oi==null?void 0:Oi.length;let Mn=0,Tr;switch(Lt){case 0:const An=($i/nr).toFixed(2);Oi.map((pr,Yr)=>{Mn=Yr,pr.hack_score=An>0?An:0}),Tr=($i-An*(nr-1)).toFixed(2),Oi[Mn].hack_score=Tr>0?Tr:0;break;case 1:const yr=[0,1,3,6];let _r=0;const xr=Oi.filter(pr=>pr.difficulty===1).length*yr[1],Ho=Oi.filter(pr=>pr.difficulty===2).length*yr[2],ho=Oi.filter(pr=>pr.difficulty===3).length*yr[3],Sr=$i/(xr+Ho+ho);Oi.map((pr,Yr)=>{Mn=Yr,pr.hack_score=(yr[pr.difficulty]*Sr).toFixed(2),_r=_r+Number(pr.hack_score)});let gr=Oi[Mn].hack_score;Tr=($i-_r+Number(gr)).toFixed(2),Oi[Mn].hack_score=Tr>0?Tr:0;break}an(Oi)},Mr=Oi=>{hr.current=Oi,Et.submit()},fr=Oi=>Ee(void 0,null,function*(){var $i;if(!Ue.length){te.ZP.error("\u672A\u8BBE\u7F6E\u7F16\u7A0B\u9898\uFF0C\u8BF7\u6DFB\u52A0\u7F16\u7A0B\u9898"),Et.scrollToField("hack_score_settings",{behavior:"smooth",block:"center"});return}yi(!0);const nr=[],Mn=Ue.map(yr=>(nr.push(yr.hack_id),{hack_id:yr.hack_id,hack_name:yr.name,hack_score:yr.hack_score,difficult:yr.difficulty})),Tr=($i=Oi==null?void 0:Oi.user_ids)==null?void 0:$i.map(yr=>yr.user_id),An=yield(0,Yn.ZP)(`/api/courses/${on.coursesId}/homework_commons/create_hack_homework.json`,{method:"post",body:Ir(ui({},Oi),{category:Li?Number(on==null?void 0:on.categoryId):null,homework_id:Li?null:vi==null?void 0:vi.homework_id,hack_settings:Mn,user_ids:Tr,hack_ids:nr})});if((An==null?void 0:An.status)===0)if(te.ZP.success("\u4FDD\u5B58\u6210\u529F"),hr.current){const yr=ui({},An);Pt(yr),yt({type:"classroomList/setActionTabs",payload:{key:"\u7ACB\u5373\u53D1\u5E03",selectArrs:[An==null?void 0:An.id],selectArrsAll:[yr],params:on,detail:!0,type:2,manage_all_group:yr==null?void 0:yr.manage_all_group}})}else Ce.history.push(`/classrooms/${on.coursesId}/program_homework/${An==null?void 0:An.id}/detail`);yi(!1)}),Br=Oi=>Ee(void 0,null,function*(){if(!Oi.length){te.ZP.warning("\u8BF7\u9009\u62E9\u7F16\u7A0B\u9898");return}if(Oi.length>200){te.ZP.warning("\u7F16\u7A0B\u9898\u6570\u91CF\u4E0D\u5F97\u8D85\u8FC7200\u9053");return}const $i=[],nr=Ue.map(An=>{var yr;return(yr=An.program_attr)==null?void 0:yr.origin_item_bank_id}),Mn=[];Oi.forEach(An=>{if(nr.includes(An)){const yr=Ue.find(_r=>{var xr;return((xr=_r.program_attr)==null?void 0:xr.origin_item_bank_id)===An});Mn.push(yr)}else $i.push(An)}),bi(!0);const Tr=yield(0,Yn.ZP)("/api/problems/copy_item_banks.json",{method:"post",body:{ids:$i}});if(Tr!=null&&Tr.items){const An=[...Mn,...Tr==null?void 0:Tr.items];if(Lt===2){const yr=An.reduce((_r,xr)=>_r+Number(xr.hack_score||0),0);Et.setFieldsValue({total_score:yr.toFixed(2)})}an(An),Rt(!1)}bi(!1)});return Ln.createElement("div",{className:Ie.wrap},Ln.createElement(ne.Z,{spinning:Sn},Ln.createElement("div",{className:Ie.center},Ln.createElement(Qe._b,{dataSource:Mi,className:"mb20"}),Ln.createElement(dt.default,{form:Et,preserve:!1,onValuesChange:Oi=>{"total_score"in Oi&&Wi()},onFinishFailed:Oi=>Ee(void 0,null,function*(){var $i,nr;te.ZP.error(Oi.errorFields[0].errors[0]),Et.scrollToField((nr=($i=Oi==null?void 0:Oi.errorFields)==null?void 0:$i[0])==null?void 0:nr.name,{behavior:"smooth",block:"center"})}),onFinish:fr,colon:!1,size:"large"},Ln.createElement(cr,{className:"mb20",title:"\u57FA\u672C\u4FE1\u606F",icon:"iconfont icon-jibenxinxi2"},Ln.createElement(dt.default.Item,{label:"\u4F5C\u4E1A\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0"},{whitespace:!0,message:"\u4F5C\u4E1A\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},Ln.createElement(qe.default,{placeholder:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0",showCount:!0,maxLength:60})),Ln.createElement(dt.default.Item,{labelCol:{flex:"81px"},label:"\u4F5C\u4E1A\u8BF4\u660E",name:"description",initialValue:"",rules:[{max:5e4,message:"\u4F5C\u4E1A\u8BF4\u660E\u6700\u5927\u9650\u523650000\u4E2A\u5B57\u7B26"}]},Ln.createElement(Xi,{placeholder:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u8BF4\u660E\uFF0C\u6700\u5927\u9650\u523650000\u4E2A\u5B57\u7B26",watch:!0}))),Ln.createElement(cr,{className:"mb20",title:"\u9898\u76EE\u8BBE\u7F6E",icon:"iconfont icon-timushezhi"},Ln.createElement(dt.default.Item,{label:"\u8BD5\u9898\u7F16\u7A0B\u8BED\u8A00",name:"languages",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BD5\u9898\u7F16\u7A0B\u8BED\u8A00"}]},Ln.createElement(ce.default.Group,null,Ln.createElement(ce.default,{value:"c"},"C\u8BED\u8A00"),Ln.createElement(ce.default,{value:"c++"},"C++\u8BED\u8A00"),Ln.createElement(ce.default,{value:"java"},"Java\u8BED\u8A00"),Ln.createElement(ce.default,{value:"python"},"Python\u8BED\u8A00"))),Ln.createElement(Ne.Z,{align:"middle"},Ln.createElement(dt.default.Item,{label:"\u603B\u5206\u503C",name:"total_score",rules:[{required:!0,message:"\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A"}],initialValue:100},Ln.createElement(Me.Z,{precision:1,disabled:Lt===2,min:0,style:{width:223},addonAfter:"\u5206"})),Ln.createElement(dt.default.Item,{label:"\u6D4B\u8BC4\u5355\u6B21\u62A5\u9519\u589E\u52A0\u65F6\u957F",name:"punish_time",initialValue:0,style:{marginLeft:40}},Ln.createElement(Me.Z,{min:0,style:{width:223},addonAfter:"\u5206\u949F"}))),Ln.createElement(dt.default.Item,{label:"\u8BD5\u9898\u5206\u503C",name:"hack_score_settings",initialValue:0},Ln.createElement(se.ZP.Group,null,Ln.createElement(se.ZP,{value:0},"\u5747\u5206\u6BD4\u4F8B"),Ln.createElement(se.ZP,{style:{margin:"0 40px"},value:1},"\u96BE\u6613\u5EA6"),Ln.createElement(se.ZP,{value:2},"\u81EA\u5B9A\u4E49\u5206\u503C"))),Ln.createElement(Ne.Z,{align:"middle"},Ln.createElement("span",null,"\u9898\u76EE\u5217\u8868"),Ln.createElement(Tt.ZP,{onClick:()=>Rt(!0),style:{marginLeft:"auto",width:110},type:"primary",ghost:!0},"\u9009\u62E9\u7F16\u7A0B\u9898"),Ln.createElement(Tt.ZP,{onClick:()=>(0,ve.xg)(`/problems/newcreate?pageId=${Gn.current}`),style:{marginLeft:20,width:110},type:"primary"},"\u65B0\u589E\u7F16\u7A0B\u9898")),Ln.createElement("div",{className:Ie.tip},Ln.createElement("i",{className:"iconfont icon-tishi12 mr5 font14"}),"\u63D0\u793A\uFF1A\u53EF\u4EE5\u70B9\u51FB\u201C\u7F16\u8F91\u201D\u5BF9\u8BE5\u8BD5\u9898\u7684\u6D4B\u8BD5\u7528\u4F8B/\u521D\u59CB\u4EE3\u7801\u8FDB\u884C\u4FEE\u6539\uFF0C\u4FEE\u6539\u7684\u5185\u5BB9\u5E76\u4E0D\u4F1A\u540C\u6B65\u5230\u8BD5\u9898\u5E93"),Ln.createElement(dt.default.Item,{name:"hack_settings",className:"mb0",initialValue:[]},Ln.createElement(rn,{dataSource:Ue,setDataSource:an,columns:ar,loading:Fi}))),Ln.createElement(cr,{style:{marginBottom:100},title:"\u4F5C\u4E1A\u8BBE\u7F6E",icon:"iconfont icon-zuoyeshezhi"},Ln.createElement("div",{className:Ie.title},"\u6392\u884C\u699C\u65F6\u95F4\u540D\u6B21\u89C4\u5219"),Ln.createElement("div",{className:`${Ie.content} mb30`},Ln.createElement(dt.default.Item,{name:"hack_rank_rule",noStyle:!0,initialValue:0},Ln.createElement(se.ZP.Group,null,Ln.createElement(se.ZP,{value:0},Ln.createElement("span",{className:"c-black"},"\u8017\u65F6\u65F6\u957F\u4F18\u5148"),Ln.createElement("span",{className:"c-grey-666 font14"},"\uFF08\u540C\u6210\u7EE9\uFF0C\u8017\u65F6\u8D8A\u77ED\u540D\u6B21\u8D8A\u524D\uFF09")),Ln.createElement(se.ZP,{style:{marginLeft:40},value:1},Ln.createElement("span",{className:"c-black"},"\u5B8C\u6210\u65F6\u95F4\u70B9\u4F18\u5148"),Ln.createElement("span",{className:"c-grey-666 font14"},"\uFF08\u540C\u6210\u7EE9\uFF0C\u5B8C\u6210\u65F6\u95F4\u8D8A\u65E9\u540D\u6B21\u8D8A\u524D\uFF09"))))),Ln.createElement("div",{className:`${Ie.title} mt30`},"\u5B66\u751F\u5B9E\u9A8C\u62A5\u544A\u4EE3\u7801\u5C55\u793A\u8BBE\u7F6E"),Ln.createElement("div",{className:Ie.content},Ln.createElement(dt.default.Item,{name:"show_late_code",noStyle:!0,valuePropName:"checked",initialValue:!0},Ln.createElement(ce.default,null,Ln.createElement("span",{className:"c-black"},"\u5C55\u793A\u6240\u6709\u8BC4\u6D4B\u4EE3\u7801"),Ln.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u52FE\u9009\u540E\uFF0C\u5C55\u793A\u6240\u6709\u8BC4\u6D4B\u4EE3\u7801\uFF0C\u5426\u5219\u53EA\u5C55\u793A\u5728\u4F5C\u4E1A\u65F6\u95F4\u8303\u56F4\u5185\u63D0\u4EA4\u7684\u4EE3\u7801\uFF09")))),Ln.createElement("div",{className:`${Ie.title} mt30`},"\u516C\u5F00\u8BBE\u7F6E"),Ln.createElement("div",{className:Ie.content},Ln.createElement(dt.default.Item,{name:"score_open",valuePropName:"checked",className:"mb0",initialValue:!1},Ln.createElement(ce.default,null,Ln.createElement("span",{className:"c-black"},"\u516C\u5F00\u6210\u7EE9"),Ln.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u52FE\u9009\u540E\u5B66\u751F\u5728\u4F5C\u4E1A\u622A\u6B62/\u8865\u4EA4\u7ED3\u675F\u540E\uFF0C\u53EF\u67E5\u770B\u5176\u4ED6\u5B66\u751F\u7684\u6210\u7EE9\uFF09"))),Ln.createElement(dt.default.Item,{name:"open_code",valuePropName:"checked",className:"mb0",initialValue:!1},Ln.createElement(ce.default,null,Ln.createElement("span",{className:"c-black"},"\u516C\u5F00\u4EE3\u7801"),Ln.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u8BBE\u7F6E\u5B66\u751F\u53EF\u5728\u6392\u884C\u699C\u4E2D\u67E5\u770B\u4ED6\u4EBA\u8BD5\u9898\u901A\u8FC7\u4EE3\u7801\u8BE6\u60C5\uFF09"))),!!tt&&Ln.createElement(dt.default.Item,{name:"open_code_type",className:"mb0 ml25",initialValue:1},Ln.createElement(se.ZP.Group,null,Ln.createElement(se.ZP,{value:1},"\u4F5C\u4E1A\u7ED3\u675F\u540E"),Ln.createElement(se.ZP,{style:{marginLeft:60},value:0},"\u4EFB\u610F\u65F6\u95F4"))),Ln.createElement(dt.default.Item,{name:"rank_forbidden",valuePropName:"checked",className:"mb0",initialValue:!1},Ln.createElement(ce.default,null,Ln.createElement("span",{className:"c-black"},"\u5F00\u542F\u5C01\u699C"),Ln.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u8BBE\u7F6E\u5B66\u751F\u4E0D\u53EF\u67E5\u770B\u6392\u884C\u699C\u4FE1\u606F\u7684\u65F6\u95F4\u6BB5\uFF09"))),!!en&&Ln.createElement(Ne.Z,{align:"middle",className:"ml25"},Ln.createElement(dt.default.Item,{label:"\u5F00\u59CB\u65F6\u95F4",name:"rank_forbidden_start",initialValue:"",rules:[{required:!0,message:"\u5C01\u699C\u5F00\u59CB\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"}],className:"mb0"},Ln.createElement(ge.default,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4",showTime:{format:"HH:mm"},allowClear:!1,format:"YYYY-MM-DD HH:mm",disabledDate:ve.Q8,disabledTime:ve.d0})),Ln.createElement(dt.default.Item,{label:"\u622A\u6B62\u65F6\u95F4",name:"rank_forbidden_end",style:{marginLeft:40},initialValue:"",rules:[{required:!0,message:"\u5C01\u699C\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"}],className:"mb0"},Ln.createElement(ge.default,{style:{width:170},allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm"},format:"YYYY-MM-DD HH:mm",disabledDate:ve.Q8,disabledTime:ve.d0}))),Ln.createElement(dt.default.Item,{name:"hack_analysis",valuePropName:"checked",className:"mb0",initialValue:!1},Ln.createElement(ce.default,null,Ln.createElement("span",{className:"c-black"},"\u516C\u5F00\u89E3\u6790"),Ln.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u8BBE\u7F6E\u5B66\u751F\u5728\u5B9E\u9A8C\u9875\u9762\u67E5\u770B\u8BD5\u9898\u89E3\u6790\uFF09"))),!!fn&&Ln.createElement(dt.default.Item,{name:"hack_analysis_type",className:"mb0 ml25",initialValue:2},Ln.createElement(se.ZP.Group,null,Ln.createElement(se.ZP,{value:2},"\u4F5C\u4E1A\u7ED3\u675F\u540E"),Ln.createElement(se.ZP,{value:0,style:{marginLeft:60}},"\u4EFB\u610F\u65F6\u95F4"),Ln.createElement(se.ZP,{style:{marginLeft:60},value:1},"\u5B66\u751F\u901A\u8FC7\u7B54\u9898\u540E/\u672A\u901A\u8FC7\u7684\u5B66\u751F\u4F5C\u4E1A\u622A\u6B62\u540E"))),Ln.createElement(dt.default.Item,{name:"hack_answer",valuePropName:"checked",className:"mb0",initialValue:!1},Ln.createElement(ce.default,null,Ln.createElement("span",{className:"c-black"},"\u516C\u5F00\u7B54\u6848"),Ln.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u8BBE\u7F6E\u5B66\u751F\u5728\u5B9E\u9A8C\u9875\u9762\u67E5\u770B\u8BD5\u9898\u7B54\u6848\uFF09"))),!!xt&&Ln.createElement(dt.default.Item,{name:"hack_answer_type",className:"mb0 ml25",initialValue:1},Ln.createElement(se.ZP.Group,null,Ln.createElement(se.ZP,{value:1},"\u4F5C\u4E1A\u7ED3\u675F\u540E"),Ln.createElement(se.ZP,{value:0,style:{marginLeft:60}},"\u4EFB\u610F\u65F6\u95F4")))),Ln.createElement("div",{className:`${Ie.title} mt30`},"\u534F\u4F5C\u8BBE\u7F6E"),Ln.createElement(dt.default.Item,{name:"user_ids",noStyle:!0,initialValue:[]},Ln.createElement(yn,{params:on}))))),Ln.createElement("div",{className:Ie.fixedBtns},Ln.createElement(Ne.Z,{align:"middle",className:Ie.center},Ln.createElement(Tt.ZP,{onClick:()=>Ce.history.push(Xt()),style:{padding:"6px 15px"},type:"primary",ghost:!0},"\u53D6\u6D88"),Ln.createElement(Tt.ZP,{loading:ei&&!hr.current,disabled:ei&&hr.current,onClick:()=>Mr(!1),style:{marginLeft:"auto",marginRight:20,padding:"6px 40px"},type:"primary",ghost:!0},"\u4FDD\u5B58\u4F5C\u4E1A"),Ln.createElement(Tt.ZP,{loading:ei&&hr.current,disabled:ei&&!hr.current,onClick:()=>Mr(!0),style:{padding:"6px 19px"},type:"primary"},"\u4FDD\u5B58\u5E76\u53D1\u5E03\u4F5C\u4E1A")))),Ln.createElement(wi,{setScoreShow:Rt,isshixuns:!1,ScoreShow:Xn,virtualId:Gn.current,isloadings:vn,onOk:Br,selectedIds:Ue.map(Oi=>{var $i;return($i=Oi.program_attr)==null?void 0:$i.origin_item_bank_id})||[]}),Ln.createElement(Pi.Z,{courseEndTime:dn==null?void 0:dn.course_end_date,onWindowBack:()=>{window.location.href=`/classrooms/${on==null?void 0:on.coursesId}/program_homework/${dn==null?void 0:dn.id}/detail`}}))}},37010:function(In,Fn,ye){"use strict";var xe=ye(59301),Ie=ye(78241),We=ye(8591),It=ye(43418),Qe=ye(95237),vt=ye(5112),Ne=ye(88897),Tt=ye(43604),Ft=ye(78550),qe=ye(24905),gt=ye(61186),dt=ye.n(gt),Ct=ye(70635),Me=ye(2119),te=ye(58130),ne=ye(42203),ce=ye(706),se=ye(16597),ge=ye(66539),ve=ye(59301),Ce=Object.defineProperty,ke=Object.defineProperties,Pe=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,Xe=(Ht,Yt,Bt)=>Yt in Ht?Ce(Ht,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Bt}):Ht[Yt]=Bt,ft=(Ht,Yt)=>{for(var Bt in Yt||(Yt={}))Ke.call(Yt,Bt)&&Xe(Ht,Bt,Yt[Bt]);if(Te)for(var Bt of Te(Yt))et.call(Yt,Bt)&&Xe(Ht,Bt,Yt[Bt]);return Ht},Ge=(Ht,Yt)=>ke(Ht,Pe(Yt)),kt=(Ht,Yt)=>{var Bt={};for(var Qt in Ht)Ke.call(Ht,Qt)&&Yt.indexOf(Qt)<0&&(Bt[Qt]=Ht[Qt]);if(Ht!=null&&Te)for(var Qt of Te(Ht))Yt.indexOf(Qt)<0&&et.call(Ht,Qt)&&(Bt[Qt]=Ht[Qt]);return Bt},$e=(Ht,Yt,Bt)=>new Promise((Qt,ht)=>{var je=rn=>{try{wn(Bt.next(rn))}catch(bt){ht(bt)}},At=rn=>{try{wn(Bt.throw(rn))}catch(bt){ht(bt)}},wn=rn=>rn.done?Qt(rn.value):Promise.resolve(rn.value).then(je,At);wn((Bt=Bt.apply(Ht,Yt)).next())});const zt=Ht=>{var Yt=Ht,{classroomList:Bt,dispatch:Qt,courseEndTime:ht,onWindowBack:je}=Yt,At=kt(Yt,["classroomList","dispatch","courseEndTime","onWindowBack"]),wn,rn,bt,Jt,un,Kn,En,Yn,St,Vn,Cn,Si,Bn,tn,$t,ct,ze,Ut,Gt,at,Ve,Be,we,me,De,Re,Le,st,Vt,sn,ln,Hn,wi,Pi,Ri,Zi,Ln,rr,Kr;const Vr=(0,ne.useParams)(),[jr]=Ie.default.useForm(),[li,Ti]=(0,xe.useState)(1),[vr,ui]=(0,xe.useState)([]),[Ir,zn]=(0,xe.useState)(0),[Ee,cr]=(0,xe.useState)(2e3),[Xi,yn]=(0,xe.useState)(!0),[oi,Ci]=(0,xe.useState)(!1),[xn,on]=(0,xe.useState)(!1),[yt,Et]=(0,xe.useState)([]),[Lt,tt]=(0,xe.useState)(!0),[en,fn]=(0,xe.useState)(!((bt=(rn=(wn=Bt.actionTabs)==null?void 0:wn.selectArrsAll)==null?void 0:rn[0])!=null&&bt.send_type));let[xt,Ue]=(0,xe.useState)([0,0,0]);(0,xe.useEffect)(()=>{var Xn,Rt,vn,bi,vi,pi,ei,yi,Fi,Ki,hr,Gn,Li;if(Bt.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03")if(dn(),(vn=(Rt=(Xn=Bt.actionTabs)==null?void 0:Xn.selectArrsAll)==null?void 0:Rt[0])!=null&&vn.can_publish?Ue([...(Fi=(yi=(ei=Bt.actionTabs)==null?void 0:ei.selectArrsAll)==null?void 0:yi[0])==null?void 0:Fi.difficult_count]):Ue([...(pi=(vi=(bi=Bt.actionTabs)==null?void 0:bi.selectArrsAll)==null?void 0:vi[0])==null?void 0:pi.difficult_settings]),fn(!((Gn=(hr=(Ki=Bt.actionTabs)==null?void 0:Ki.selectArrsAll)==null?void 0:hr[0])!=null&&Gn.send_type)),an(),Bt.actionTabs.type===2){const Lr=(Li=Bt.actionTabs.selectArrsAll)==null?void 0:Li[0];tt(Lr.unified_setting)}else tt(!1)},[Bt.actionTabs]),(0,xe.useEffect)(()=>{if(oi){if(xn)return;Qt({type:"classroomList/setActionTabs",payload:{}}),(0,Me.GJ)()?(Qt({type:"classroomList/getClassroomTeacherCommonList",payload:Ge(ft({},Bt.actionTabs.params),{type:1})}),Qt({type:"shixunHomeworks/getWorkList",payload:ft({},Vr)})):Qt({type:"classroomList/getClassroomCommonList",payload:ft({},Bt.actionTabs.params)})}},[oi]);const an=Xn=>$e(void 0,null,function*(){yn(!0);const Rt=yield(0,se.c_)(Ge(ft({},Vr),{page:Xn||li,limit:2e4,homework_id:Bt.actionTabs.type===1?"":Bt.actionTabs.selectArrs[0]}));Rt==null||Rt.course_groups.map((vn,bi)=>{vn.key=vn.id,vn.title=vn.name,vn.disabled=vn.is_published}),Rt&&(ui([...Rt==null?void 0:Rt.course_groups]),zn(Rt==null?void 0:Rt.course_groups_count),yn(!1),Xn||jr.setFieldsValue({publish_time:dt()(dt()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:dt()(dt()(new Date).add(7,"days").format("YYYY-MM-DD HH:mm"))}))}),Dt=()=>{(0,Me.GJ)()?Bt.actionTabs.detail?(Qt({type:"shixunHomeworks/setActionTabs",payload:{}}),Qt({type:"shixunHomeworks/getWorkList",payload:ft({},Vr)}),Qt({type:"shixunHomeworks/getWorkSetting",payload:ft({},Vr)})):Qt({type:"classroomList/getClassroomTeacherCommonList",payload:Ge(ft({},Bt.actionTabs.params),{type:5,category:Bt.actionTabs.params.categoryId})}):Qt({type:"classroomList/getClassroomCommonList",payload:ft({},Bt.actionTabs.params)})},Rn=()=>$e(void 0,null,function*(){var Xn,Rt;if((0,Me.Rm)()&&!((Xn=Bt.AssistantObject.hack)!=null&&Xn.can_publish)){We.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),Qn(!1);return}const vn=ft({},jr.getFieldsValue());if(vn.end_time<=vn.publish_time){We.ZP.info("\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u5927\u4E8E\u6216\u7B49\u4E8E\u53D1\u5E03\u65F6\u95F4"),Qn(!1);return}if((yt==null?void 0:yt.length)<=0&&!Lt&&vr.length>0){We.ZP.info("\u53D1\u5E03\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A"),Qn(!1);return}if(xt.reduce((pi,ei)=>pi+ei)===0&&!en){We.ZP.info("\u7B80\u5355\u9002\u4E2D\u56F0\u96BE\u9898\u6570\u76F8\u52A0\u4E0D\u80FD\u4E3A0"),Qn(!1);return}let bi={homework_ids:[...Bt.actionTabs.selectArrs],group_ids:yt.length>0?yt.map(pi=>pi.id):(Rt=Bt.detailCommonHomeworksList)==null?void 0:Rt.course_groups,end_time:dt()(vn.end_time).format("YYYY-MM-DD HH:mm"),publish_time:dt()(vn.publish_time).format("YYYY-MM-DD HH:mm"),difficult_settings:xt==null?void 0:xt.map(pi=>pi),send_type:en?"0":"1",unified_setting:!yt.length};if(Qn(!0),(yield(0,Ct.ZP)(`/api/courses/${Vr.coursesId}/homework_commons/publish_with_homework_list_position.json`,{method:"post",body:ft({},bi)})).status===0){if(Qn(!1),(0,te.L9)(["\u6559\u5B66\u8BFE\u5802","\u56FE\u6587\u4F5C\u4E1A","\u7ACB\u5373\u53D1\u5E03"]),We.ZP.success("\u53D1\u5E03\u6210\u529F"),Qt({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),je){je();return}At.onCallback&&At.onCallback(),Dt(),localStorage.getItem("Noviceguide")==="0"||Qt({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:13,text:ve.createElement("div",null,"\u6700\u540E\uFF0C\u54B1\u4EEC\u7ED9\u6559\u5B66\u8BFE\u5802\u6DFB\u52A0\u4E00\u540D\u5B66\u751F~\u70B9\u51FB\u201C\u6DFB\u52A0\u5B66\u751F\u201D\uFF0C\u5728\u5F39\u7A97\u9875\u9762\u4E2D\u8F93\u5165\u5E76\u641C\u7D22\u5B66\u751F\u59D3\u540D\uFF0C\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u5C31\u53EF\u4EE5\u4E3A\u60A8\u7684\u8BFE\u5802\u6DFB\u52A0\u7B2C\u4E00\u4F4D\u5B66\u751F\u5566~")}})}else Qn(!1)}),dn=()=>{Ti(1),ui([]),Et([])},Pt=Ir>li*Ee,[Sn,Qn]=(0,xe.useState)(!1);return ve.createElement(It.default,{width:600,confirmLoading:Sn,centered:!0,title:"\u53D1\u5E03\u4F5C\u4E1A",open:Bt.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03",okText:"\u53D1\u5E03\u4F5C\u4E1A",cancelText:"\u6682\u4E0D\u53D1\u5E03",onOk:Rn,onCancel:()=>{if(dn(),Qt({type:"classroomList/setActionTabs",payload:{}}),je){je();return}Dt()}},ve.createElement("p",{className:"tc"},"\u5B66\u751F\u5C06\u7ACB\u5373\u6536\u5230\u4F5C\u4E1A",ve.createElement("br",null),'\u672C\u64CD\u4F5C\u53EA\u5BF9"\u672A\u53D1\u5E03"\u7684\u4F5C\u4E1A\u6709\u6548'),vr&&ve.createElement(Ie.default,{form:jr},ve.createElement("div",{style:{paddingLeft:0}},Bt.actionTabs.type===2&&ve.createElement(Qe.Z,{style:{marginBottom:"10px"}},ve.createElement("span",{className:"mr5"},"\u8BD5\u9898\u53D1\u9001:"),ve.createElement(vt.ZP.Group,{value:en,disabled:!((Kn=(un=(Jt=Bt.actionTabs)==null?void 0:Jt.selectArrsAll)==null?void 0:un[0])!=null&&Kn.can_publish),onChange:Xn=>{fn(Xn.target.value)}},ve.createElement(vt.ZP,{value:!0},"\u5168\u90E8\u56FA\u5B9A\u8BD5\u9898"),ve.createElement(vt.ZP,{className:"ml20",value:!1},"\u968F\u673A\u62BD\u53D6"))),!en&&ve.createElement(Qe.Z,{style:{marginBottom:"10px"}},ve.createElement("span",{style:{marginRight:65}}),ve.createElement("span",null,"\u7B80\u5355\u9898\u6570 ",ve.createElement(Ne.Z,{value:xt[0],onChange:Xn=>{xt[0]=Xn,Ue([...xt])},min:0,disabled:!((St=(Yn=(En=Bt.actionTabs)==null?void 0:En.selectArrsAll)==null?void 0:Yn[0])!=null&&St.can_publish),placeholder:`\u6700\u5927${(Bn=(Si=(Cn=(Vn=Bt.actionTabs)==null?void 0:Vn.selectArrsAll)==null?void 0:Cn[0])==null?void 0:Si.difficult_count)==null?void 0:Bn[0]}`,max:(ze=(ct=($t=(tn=Bt.actionTabs)==null?void 0:tn.selectArrsAll)==null?void 0:$t[0])==null?void 0:ct.difficult_count)==null?void 0:ze[0],style:{width:60}})),ve.createElement("span",{style:{margin:"0px 40px"}},"\u9002\u4E2D\u9898\u6570 ",ve.createElement(Ne.Z,{value:xt[1],onChange:Xn=>{xt[1]=Xn,Ue([...xt])},min:0,disabled:!((at=(Gt=(Ut=Bt.actionTabs)==null?void 0:Ut.selectArrsAll)==null?void 0:Gt[0])!=null&&at.can_publish),max:(me=(we=(Be=(Ve=Bt.actionTabs)==null?void 0:Ve.selectArrsAll)==null?void 0:Be[0])==null?void 0:we.difficult_count)==null?void 0:me[1],placeholder:`\u6700\u5927${(st=(Le=(Re=(De=Bt.actionTabs)==null?void 0:De.selectArrsAll)==null?void 0:Re[0])==null?void 0:Le.difficult_count)==null?void 0:st[1]}`,style:{width:60}})),ve.createElement("span",null,"\u56F0\u96BE\u9898\u6570 ",ve.createElement(Ne.Z,{value:xt[2],onChange:Xn=>{xt[2]=Xn,Ue([...xt])},min:0,disabled:!((ln=(sn=(Vt=Bt.actionTabs)==null?void 0:Vt.selectArrsAll)==null?void 0:sn[0])!=null&&ln.can_publish),placeholder:`\u6700\u5927${(Ri=(Pi=(wi=(Hn=Bt.actionTabs)==null?void 0:Hn.selectArrsAll)==null?void 0:wi[0])==null?void 0:Pi.difficult_count)==null?void 0:Ri[2]}`,max:(Kr=(rr=(Ln=(Zi=Bt.actionTabs)==null?void 0:Zi.selectArrsAll)==null?void 0:Ln[0])==null?void 0:rr.difficult_count)==null?void 0:Kr[2],style:{width:60}}))),ve.createElement(Qe.Z,{className:"mt30",align:"middle"},ve.createElement(Tt.Z,null,ve.createElement(Ie.default.Item,{name:"publish_time",label:"\u53D1\u5E03\u65F6\u95F4"},ve.createElement(Ft.default,{style:{width:170,marginRight:"25px"},disabledDate:Xn=>(0,ge.Q8)(Xn,ht),disabledTime:Xn=>(0,ge.d0)(Xn),placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:dt()((0,te.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1}))),ve.createElement(Tt.Z,{className:"ml20"},ve.createElement(Ie.default.Item,{name:"end_time",label:"\u622A\u6B62\u65F6\u95F4"},ve.createElement(Ft.default,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:dt()((0,te.U6)(),"HH:mm")},disabledDate:Xn=>(0,ge.Q8)(Xn,ht,jr.getFieldValue("publish_time")),disabledTime:Xn=>(0,ge.d0)(Xn,jr.getFieldValue("publish_time")),format:"YYYY-MM-DD HH:mm",allowClear:!1})))),Bt.actionTabs.type===2&&ve.createElement(Qe.Z,{style:{marginBottom:"10px"}},ve.createElement("span",{className:"mr5"},"\u53D1\u5E03\u8BBE\u7F6E:"),ve.createElement(vt.ZP.Group,{value:Lt,onChange:Xn=>{tt(Xn.target.value),Et([])}},ve.createElement(vt.ZP,{value:!0,disabled:!Bt.actionTabs.manage_all_group},"\u7EDF\u4E00\u53D1\u5E03"),ve.createElement(vt.ZP,{className:"ml20",disabled:vr.length<=0,value:!1},"\u5206\u73ED\u53D1\u5E03"))),vr.length<=0&&Bt.actionTabs.type===2&&ve.createElement("span",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"}},'\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03"')),(Bt.actionTabs.type===1||!Lt)&&vr.length>0&&ve.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},ve.createElement("span",{style:{flex:1}},ve.createElement(qe.default,{checked:yt.length===vr.length,onChange:Xn=>{yt.length===vr.length?Et([]):Et(vr.filter(Rt=>!Rt.is_published))}},"\u5168\u9009")," "),ve.createElement("span",{style:{width:16}}),ve.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",yt.length||0,"\u4E2A\u5206\u73ED")),(Bt.actionTabs.type===1||!Lt)&&vr.length>0&&ve.createElement(ce.Z,{data:vr,selectedRowKeys:yt,setSelectedRowKeys:Et})))};Fn.Z=(0,ne.connect)(({classroomList:Ht})=>({classroomList:Ht}))(zt)},66539:function(In,Fn,ye){"use strict";ye.d(Fn,{Q8:function(){return Qt},d0:function(){return ht},w6:function(){return Bt}});var xe=ye(59301),Ie=ye(78550),We=ye(57809),It=ye(8591),Qe=ye(43418),vt=ye(5112),Ne=ye(95237),Tt=ye(43604),Ft=ye(6848),qe=ye(24905),gt=ye(3113),dt=ye(61186),Ct=ye.n(dt),Me=ye(2119),te=ye(70635),ne=ye(89392),ce=ye.n(ne),se=ye(58130),ge=ye(57534),ve=ye(42203),Ce=ye(46898),ke=ye(18032),Pe=ye(30738),Te=ye(59301),Ke=Object.defineProperty,et=Object.defineProperties,Xe=Object.getOwnPropertyDescriptors,ft=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable,$e=(rn,bt,Jt)=>bt in rn?Ke(rn,bt,{enumerable:!0,configurable:!0,writable:!0,value:Jt}):rn[bt]=Jt,zt=(rn,bt)=>{for(var Jt in bt||(bt={}))Ge.call(bt,Jt)&&$e(rn,Jt,bt[Jt]);if(ft)for(var Jt of ft(bt))kt.call(bt,Jt)&&$e(rn,Jt,bt[Jt]);return rn},Ht=(rn,bt)=>et(rn,Xe(bt)),Yt=(rn,bt,Jt)=>new Promise((un,Kn)=>{var En=Vn=>{try{St(Jt.next(Vn))}catch(Cn){Kn(Cn)}},Yn=Vn=>{try{St(Jt.throw(Vn))}catch(Cn){Kn(Cn)}},St=Vn=>Vn.done?un(Vn.value):Promise.resolve(Vn.value).then(En,Yn);St((Jt=Jt.apply(rn,bt)).next())});function Bt(rn,bt){const Jt=[];for(let un=rn;un<bt;un++)Jt.push(un);return Jt}const Qt=(rn,bt,Jt)=>{const un=rn<Ct()().startOf("day"),Kn=rn>Ct()(bt).endOf("day"),En=rn<Ct()(Jt).startOf("day");return bt?Jt?Ct()()<=Ct()(Jt)?En||Kn:un||Kn:rn&&un||Kn:Jt&&Ct()()<=Ct()(Jt)?En:un},ht=(rn,bt)=>{const Jt=parseInt(Ct()(rn).format("HH")),un=parseInt(Ct()().format("HH")),Kn=parseInt(Ct()().format("mm"));if(!rn)return{disabledHours:()=>Bt(0,un),disabledMinutes:()=>Bt(0,Kn)};if(bt){const En=parseInt(Ct()(bt).format("HH")),Yn=parseInt(Ct()(bt).format("mm"));return Ct()(rn).isSame(Ct()(bt),"day")?{disabledHours:()=>Bt(0,En),disabledMinutes:()=>Jt<=En?Bt(0,Yn):[]}:void 0}if(Ct()(rn).isSame(Ct()(),"day"))return{disabledHours:()=>Bt(0,un),disabledMinutes:()=>Ct()(rn).isSame(Ct()(),"hour")&&Jt<=un?Bt(0,Kn):[]}},{RangePicker:je}=Ie.default,{Option:At}=We.default,wn=({shixunHomeworks:rn,loading:bt,dispatch:Jt,classroomList:un,user:Kn})=>{var En,Yn,St,Vn,Cn,Si,Bn,tn,$t;const ct=(0,ve.useParams)(),{workSetting:ze,workList:Ut,shixunWorkList:Gt,headerInfo:at,changeData:Ve}=rn,[Be,we]=(0,xe.useState)(!1),[me,De]=(0,xe.useState)(!1);let[Re,Le]=(0,xe.useState)([]),[st,Vt]=(0,xe.useState)([]),[sn,ln]=(0,xe.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,penalty_type:Ce.Q.Percent,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,comment_public:!0,total_score:"",eff_score:0,action_analysis:!1,work_end_forbid_evaluate:!1});(0,xe.useEffect)(()=>()=>{Le([])},[]),(0,xe.useEffect)(()=>{we(!(0,Me.GJ)())},[(0,Me.GJ)()]);const Hn=()=>{Jt({type:"shixunHomeworks/getWorkSetting",payload:zt({},ct)})};(0,xe.useEffect)(()=>{if(!(ze!=null&&ze.course_id))return;Object.keys(sn).map(function(Ti){sn[Ti]=ze[Ti]}),(!sn.allow_late||!sn.unified_late)&&(sn.late_penalty=20,sn.penalty_type=Ce.Q.Percent),sn.unified_setting||(sn.unified_late=!1,sn.unified_anonymous_comment=!1,sn.unified_anonymous_appeal=!1),Re=JSON.parse(JSON.stringify(ze.group_settings.map(Ti=>Ht(zt({},Ti),{group_name:[Ti.group_name]})).filter(Ti=>Ti.publish_time!==null))),st=JSON.parse(JSON.stringify(ze.allow_late_settings.map(Ti=>Ht(zt({},Ti),{group_name:[Ti.group_name]})).filter(Ti=>Ti.late_time!==null))),ln(zt({},sn));const li=(0,se.QE)((Re==null?void 0:Re.length)>0?Re:[]);Le([...li]),(st==null?void 0:st.length)<=0?Vt([{penalty_type:Ce.Q.Percent,late_penalty:20}]):Vt([...st])},[ze]);const wi=()=>{var li,Ti;if(((li=Kn==null?void 0:Kn.userInfo)==null?void 0:li.user_status)===2){(0,ke.Rd)();return}const vr=JSON.parse(JSON.stringify(sn));if(vr.challenge_settings.filter(ui=>!ui.hide),vr.categoryId=ct.categoryId,(Ti=vr.challenge_settings)!=null&&Ti.every(ui=>!ui.checked)){It.ZP.warning("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(console.log(Re),!sn.unified_setting)Re=Re==null?void 0:Re.map(ui=>{var Ir;if(!ui.publish_time||!ui.end_time)throw It.ZP.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!ui.group_name)throw It.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return ui.group_name=typeof(ui==null?void 0:ui.group_name)=="string"?[ui==null?void 0:ui.group_name]:ui==null?void 0:ui.group_name,ui.group_id=(Ir=ze.group_settings)==null?void 0:Ir.filter(zn=>{var Ee;return(Ee=ui==null?void 0:ui.group_name)==null?void 0:Ee.includes(zn.group_name)}).map(zn=>zn.group_id||zn.id).toString().split(","),ui});else if(!sn.publish_time||!sn.end_time)throw It.ZP.error("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A");if(vr.group_settings=Re,sn.allow_late)if(sn.unified_late){if(sn.late_penalty===null||sn.late_penalty===void 0||sn.late_penalty<0||sn.late_penalty>100)throw It.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!sn.late_time)throw It.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else st=st==null?void 0:st.map(ui=>{var Ir,zn;if(ui.late_penalty===null||ui.late_penalty===void 0||ui.late_penalty<0||ui.late_penalty>100)throw It.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!ui.late_time)throw It.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!ui.group_name)throw It.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return ui.group_name=typeof(ui==null?void 0:ui.group_name)=="string"?[ui==null?void 0:ui.group_name]:ui==null?void 0:ui.group_name,ui.group_id=(zn=(Ir=ui==null?void 0:ui.group_name)==null?void 0:Ir.map(Ee=>{var cr,Xi;let yn=(Xi=(cr=ze.group_settings)==null?void 0:cr.filter(oi=>(oi==null?void 0:oi.group_name)===Ee))==null?void 0:Xi[0];return yn==null?void 0:yn.group_id}))==null?void 0:zn.toString().split(","),ui}),vr.allow_late_settings=st;Pi(vr)},Pi=li=>{var Ti;if(li.total_score===null){It.ZP.warning("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(li!=null&&li.work_efficiency&&li.eff_score===null){It.ZP.warning("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}const vr=li.challenge_settings.reduce((zn,Ee)=>zn+Number(Ee.challenge_score),0);if((vr==null?void 0:vr.toFixed(10))!==((Ti=li.total_score-li.eff_score)==null?void 0:Ti.toFixed(10))){It.ZP.warning(`\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A${li.total_score}\u5206`);return}const ui={shixun_evaluation:li.shixun_evaluation,challenge_settings:li.challenge_settings};let Ir=()=>{var zn;const Ee=()=>Yt(void 0,null,function*(){De(!0),(yield(0,te.ZP)(`/api/homework_commons/${ct.categoryId}/publish_setting.json`,{method:"post",body:zt({},li)})).status===0&&(It.ZP.success("\u66F4\u65B0\u6210\u529F"),Hn(),Jt({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:zt({},ct)})),De(!1)});!(0,ne.isEqual)(Ve,ui)&&!((zn=at==null?void 0:at.homework_status)!=null&&zn.includes("\u672A\u53D1\u5E03"))?Qe.default.confirm({title:"\u66F4\u65B0\u6210\u7EE9",content:"\u60A8\u6539\u52A8\u4E86\u672C\u6B21\u4F5C\u4E1A\u7684\u5173\u5361\u5F97\u5206\u8BBE\u7F6E\uFF0C\u8FD9\u53EF\u80FD\u5BFC\u81F4\u5DF2\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\u7684\u6210\u7EE9\u4EA7\u751F\u9519\u8BEF\u3002\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u6309\u94AE\u5C06\u4FDD\u5B58\u6700\u65B0\u8BBE\u7F6E\u5E76\u6309\u6700\u65B0\u8BBE\u7F6E\u66F4\u65B0\u5168\u73ED\u6210\u7EE9\u3002",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:Ee}):Ee()};ze!=null&&ze.high_resources_consume&&!(ze!=null&&ze.high_resources_consume_permission)?Jt({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:ct.coursesId,type:"shixun",type_id:ct.categoryId,name:ze.homework_name,fn:()=>{Ir()}}}):Ir()},Ri=(li,Ti,vr="group_id")=>{var ui;return Ti?Ti.find(Ir=>Ir[vr]===li):(ui=ze==null?void 0:ze.group_settings)==null?void 0:ui.find(Ir=>Ir.group_id[0]===li)},Zi=(ze==null?void 0:ze.allow_late)||(ze==null?void 0:ze.anonymous_comment),Ln=li=>{var Ti,vr;const ui=Ri(li,ze==null?void 0:ze.allow_late_settings,"id"),Ir=Ri(li,ze==null?void 0:ze.anonymous_comment_settings),zn=Ri(li);return(ze==null?void 0:ze.allow_late)&&ui&&Ct()(ui==null?void 0:ui.late_time)<=Ct()()||(ze==null?void 0:ze.anonymous_comment)&&Ir&&(Ir==null?void 0:Ir.evaluation_start)!==null||((vr=(Ct()(zn==null?void 0:zn.end_time)<=Ct()()&&((Ti=ze==null?void 0:ze.allow_late_settings)==null?void 0:Ti.filter(Ee=>Ee.group_id.includes(li))))[0])==null?void 0:vr.late_time)!=null},rr=(0,xe.useMemo)(()=>(ze==null?void 0:ze.allow_late)||(ze==null?void 0:ze.all_group_late),[ze,at]),Kr=ze==null?void 0:ze.anonymous_comment,Vr=li=>{if(!li)return!1;const Ti=Ri(li,ze==null?void 0:ze.anonymous_comment_settings);return(ze==null?void 0:ze.anonymous_comment)&&Ti&&(Ti==null?void 0:Ti.evaluation_start)!==null},jr=(li,Ti)=>{var vr,ui,Ir;Jt({type:"classroomList/setActionTabs",payload:{key:"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",data:li,index:Ti,rangePickerDisabled:Be||(Ct()()<=Ct()((ui=Ri((vr=li==null?void 0:li.group_id)==null?void 0:vr[0]))==null?void 0:ui.publish_time)?!1:[!0,Ln((Ir=li==null?void 0:li.group_id)==null?void 0:Ir[0])]),disabledDate:ze==null?void 0:ze.course_end_date}})};return Te.createElement("section",{className:ge.Z.form},Te.createElement("div",{className:ge.Z.title},"\u4F5C\u4E1A\u53D1\u5E03",Te.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\u4F5C\u4E1A\u4E00\u65E6\u53D1\u5E03\u540E\u4E0D\u53EF\u53D8\u66F4\u8BD5\u9898\u53D1\u5E03\u6A21\u5F0F\uFF09")),Te.createElement("div",null,Te.createElement("div",{style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},Te.createElement(vt.ZP.Group,{disabled:Be||!((En=at==null?void 0:at.homework_status)!=null&&En.includes("\u672A\u53D1\u5E03"))||(0,Me.Rm)()&&!((Yn=un.AssistantObject.practice)!=null&&Yn.can_publish),value:sn.unified_setting,onChange:li=>{var Ti;if(!((Ti=at==null?void 0:at.homework_status)!=null&&Ti.includes("\u672A\u53D1\u5E03"))){It.ZP.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u7EDF\u4E00\u8BBE\u7F6E");return}if(sn.unified_setting=!sn.unified_setting,sn.unified_setting||(sn.unified_late=!1,Vt([{late_penalty:5}])),ln(Object.assign({},sn)),sn.unified_setting===!1&&Re==""){Le(Re.concat({}));return}sn.unified_setting&&(Le([]),Vt([{late_penalty:5}]))}},Te.createElement(vt.ZP,{value:!0,disabled:Be||!(ze!=null&&ze.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u53D1\u5E03"),Te.createElement(vt.ZP,{disabled:Be||!((St=ze==null?void 0:ze.group_settings)!=null&&St.length),value:!1},"\u5206\u73ED\u53D1\u5E03")),((Vn=ze==null?void 0:ze.group_settings)==null?void 0:Vn.length)===0&&Te.createElement("div",{style:{color:"rgba(0, 0, 0, 0.25)",height:"22px"}},"\uFF08\u672C\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03\u201C\uFF09")),sn.unified_setting&&Te.createElement("div",{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",height:"50px",marginTop:"1px"}},Te.createElement(Ne.Z,{align:"middle"},Te.createElement(Tt.Z,{style:{marginLeft:"23px"}},"\u53D1\u5E03\u65F6\u95F4"),Te.createElement(Tt.Z,{className:"ml10"},Te.createElement(Ie.default,{size:"large",disabled:Be||!((Cn=at==null?void 0:at.homework_status)!=null&&Cn.includes("\u672A\u53D1\u5E03")||(Si=at==null?void 0:at.homework_status)!=null&&Si.includes("\u672A\u5F00\u59CB"))||(0,Me.Rm)()&&!((Bn=un.AssistantObject.practice)!=null&&Bn.can_publish),style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},allowClear:!1,format:"YYYY-MM-DD HH:mm",disabledDate:li=>Qt(li,ze==null?void 0:ze.course_end_date),disabledTime:li=>ht(li),value:sn.publish_time?Ct()(sn.publish_time):"",onChange:(li,Ti)=>{sn.publish_time=Ti,(sn.end_time==""||!sn.end_time)&&sn.unified_setting&&(sn.end_time=Ct()(li).add(7,"days").format("YYYY-MM-DD HH:mm:ss")),ln(Object.assign({},sn))}}))),Te.createElement(Ne.Z,{align:"middle",className:"pl30"},Te.createElement(Tt.Z,null,"\u622A\u6B62\u65F6\u95F4"),Te.createElement(Tt.Z,{className:"ml10"},Te.createElement(Ie.default,{size:"large",style:{width:170},allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Ct()((0,se.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:(ze==null?void 0:ze.allow_late)&&(ze==null?void 0:ze.homework_status.includes("\u5DF2\u622A\u6B62"))||Be||(ze==null?void 0:ze.allow_late)&&Ct()()>=Ct()(ze==null?void 0:ze.end_time)||(0,Me.Rm)()&&!((tn=un.AssistantObject.practice)!=null&&tn.can_publish),disabledDate:li=>Qt(li,ze==null?void 0:ze.course_end_date,sn.publish_time),disabledTime:li=>ht(li,sn.publish_time),value:sn.end_time?Ct()(sn.end_time):"",onChange:(li,Ti)=>{sn.end_time=Ti,ln(Object.assign({},sn))}})))),!sn.unified_setting&&(Re==null?void 0:Re.length)>0&&Te.createElement(Ne.Z,{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"}},Re&&Re.map(function(li,Ti){var vr,ui,Ir,zn,Ee,cr,Xi;return Te.createElement(Tt.Z,{span:24,key:Ti},Te.createElement(Ne.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:Ti==(Re==null?void 0:Re.length)-1?"0px":"10px"}},Te.createElement("div",{style:{minWidth:85,marginRight:"15px",textAlign:"right"}},"\u53D1\u5E03\u89C4\u5219",Ti+1),Te.createElement(We.default,{disabled:Be||((vr=at==null?void 0:at.homework_status)!=null&&vr.includes("\u672A\u53D1\u5E03")&&li.id||Ct()()<Ct()(li==null?void 0:li.publish_time)?!1:!!(li!=null&&li.publish_time))||(0,Me.Rm)()&&!((ui=un.AssistantObject.practice)!=null&&ui.can_publish),mode:"multiple",className:ge.Z.multiple_select,style:{width:"250px"},value:li.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:yn=>{var oi;if((0,Me.Rm)()&&!((oi=un.AssistantObject.practice)!=null&&oi.can_publish)){It.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Re[Ti].group_name=yn,Re[Ti].group_id=li.group_id;const Ci=(0,ne.flattenDeep)(Re.map(on=>on.group_name)),xn=st.map(on=>{let yt=(on==null?void 0:on.group_name)||[];return Ht(zt({},on),{group_name:(0,ne.remove)(yt,Et=>Ci.includes(Et))})});Vt(xn),Le(Re.slice())},maxTagCount:4,maxTagPlaceholder:yn=>Te.createElement("div",{style:{cursor:"pointer"},onClick:()=>jr(li,Ti)},"+",yn==null?void 0:yn.length)},ze.group_settings&&ze.group_settings.map(function(yn){if(!Re.map(Ci=>Ci.group_name).flat().includes(yn.group_name))return Te.createElement(At,{value:yn.group_name,key:yn.id},yn.group_name)})),Te.createElement("div",{className:"ml20"},Te.createElement(je,{size:"large",ranges:{\u6B64\u523B:[li.publish_time?Ct()(li.publish_time):Ct()(),Ct()()]},allowClear:!1,disabled:Be||(Ct()()<=Ct()((zn=Ri((Ir=li==null?void 0:li.group_id)==null?void 0:Ir[0]))==null?void 0:zn.publish_time)?!1:[!0,Ln((Ee=li==null?void 0:li.group_id)==null?void 0:Ee[0])]),style:{width:605},placeholder:["\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4\uFF09","\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9\uFF09"],disabledDate:yn=>Qt(yn,ze==null?void 0:ze.course_end_date),disabledTime:yn=>ht(yn),showTime:{showNow:!0,format:"HH:mm",defaultValue:[Ct()((0,se.U6)(),"HH:mm"),Ct()((0,se.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:li.publish_time&&[Ct()(li.publish_time),li.end_time?Ct()(li.end_time):void 0],onChange:(yn,oi)=>{var Ci;if((0,Me.Rm)()&&!((Ci=un.AssistantObject.practice)!=null&&Ci.can_publish)){It.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Re[Ti].publish_time=oi[0],!li.end_time&&oi[0]?Re[Ti].end_time=Ct()(oi[0]).add(7,"days"):Re[Ti].end_time=oi[1],Le([...Re])},onCalendarChange:(yn,oi,Ci)=>{if(oi!=null&&oi[0]&&!oi[1]){const xn=Ct()(oi[0]).add(7,"days");Re[Ti].publish_time=oi[0],Re[Ti].end_time=xn,Le([...Re])}}})),!Be&&Te.createElement("div",{style:{display:"flex",width:"50px"}},((cr=li==null?void 0:li.group_id)==null?void 0:cr.length)>1&&Te.createElement(Ft.Z,{title:"\u89C4\u5219\u62C6\u5206"},Te.createElement("i",{className:"iconfont icon-chaifen ml10",style:{cursor:"pointer",color:"#3061d0"},onClick:()=>jr(li,Ti)})),Re.length<((Xi=ze==null?void 0:ze.group_settings)==null?void 0:Xi.length)&&Te.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var yn;if((0,Me.Rm)()&&!((yn=un.AssistantObject.practice)!=null&&yn.can_publish)){It.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Le(Re.concat({}))}}),((li==null?void 0:li.publish_time)&&Ct()()<Ct()(li==null?void 0:li.publish_time)||!(li!=null&&li.publish_time))&&Ti!=0&&Te.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{const yn=(0,ne.cloneDeep)(st);yn.forEach((oi,Ci)=>{oi.group_name&&(oi.group_name=oi.group_name.filter(xn=>{var on;return!((on=Re[Ti].group_name)!=null&&on.includes(xn))}))}),Re=Re.filter((oi,Ci)=>Ti!==Ci),Vt(yn),Le(Re.slice()),setTimeout(()=>Le(Re.slice()),10)}}))))}))),Te.createElement(Ne.Z,null,Te.createElement(Tt.Z,null,Te.createElement("div",{className:ge.Z.title,style:{marginTop:"30px"}},"\u8865\u4EA4\u8BBE\u7F6E",Te.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\u53EF\u5BF9\u5728\u4F5C\u4E1A\u53D1\u5E03\u65F6\u95F4\u8303\u56F4\u5185\u672A\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\uFF0C\u5EF6\u957F\u65F6\u95F4\u8FDB\u884C\u8865\u4EA4\uFF09"))),Te.createElement(Tt.Z,{span:24,style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},Te.createElement(qe.default,{checked:sn.allow_late,disabled:Be||rr,onChange:li=>{var Ti;if((0,Me.Rm)()&&!((Ti=un.AssistantObject.practice)!=null&&Ti.can_late)){It.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}li.target.checked&&Qe.default.warning({title:"\u5F00\u542F\u8865\u4EA4\u63D0\u793A",centered:!0,width:480,content:Te.createElement("div",{style:{padding:10,background:"#f5f6f9"}},Te.createElement("div",null,"1.\u5F00\u542F\u8865\u4EA4\u540E\u4E0D\u53EF\u5173\u95ED\uFF0C\u8865\u4EA4\u65B9\u5F0F\u63D0\u4EA4\u4FDD\u5B58\u540E\u4E0D\u53EF\u4FEE\u6539\uFF1B"),Te.createElement("div",null,"2.\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u5FC5\u987B\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\uFF1B"),Te.createElement("div",null,"3.\u73ED\u7EA7\u9636\u6BB5\u8FDB\u5165\u201C\u8865\u4EA4\u4E2D\u201D\u5219\u4E0D\u53EF\u53D8\u66F4\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3002"))}),sn.allow_late=!sn.allow_late,st==""&&Vt([{late_penalty:5}]),ln(Object.assign({},sn))}},Te.createElement("strong",null,"\u5F00\u542F\u8865\u4EA4")))),(sn==null?void 0:sn.allow_late)&&Te.createElement("div",{style:{background:"#F6F7F9",padding:"10px 30px",marginTop:"1px",color:"#666666"}},Te.createElement("div",{style:{display:"flex"}},Te.createElement("div",{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u65B9\u5F0F"),Te.createElement(vt.ZP.Group,{style:{marginLeft:"20px"},disabled:Be||(ze==null?void 0:ze.anonymous_comment)||(ze==null?void 0:ze.allow_late),value:sn.unified_late,onChange:li=>{var Ti;if((0,Me.Rm)()&&!((Ti=un.AssistantObject.practice)!=null&&Ti.can_late)){It.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}sn.unified_late=li.target.value,st==""&&!li.target.value&&Vt([{penalty_type:Ce.Q.Percent,late_penalty:20}]),ln(zt({},sn))}},(sn==null?void 0:sn.unified_setting)&&Te.createElement(vt.ZP,{value:!0,disabled:!(ze!=null&&ze.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u8865\u4EA4"),(($t=ze==null?void 0:ze.group_settings)==null?void 0:$t.length)>0&&Te.createElement(vt.ZP,{value:!1},"\u5206\u73ED\u8865\u4EA4"))),sn!=null&&sn.unified_late?Te.createElement(Te.Fragment,null,Te.createElement(Ne.Z,{align:"middle",style:{marginTop:"10px"}},Te.createElement(Tt.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u6263\u5206"),Te.createElement(Tt.Z,{className:"ml20"},Te.createElement(Ce.Z,{disabled:Be||Kr,value:{type:sn.penalty_type,inputValue:sn.late_penalty},onChange:li=>{var Ti;if((0,Me.Rm)()&&!((Ti=un.AssistantObject.practice)!=null&&Ti.can_late)){It.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ln(Ht(zt({},sn),{late_penalty:li.inputValue,penalty_type:li.type}))}})),Te.createElement(Tt.Z,{flex:"1",className:"ml5"},Te.createElement("span",{className:"c-grey-c ml10"},sn.penalty_type===Ce.Q.Number?"(\u8865\u4EA4\u65F6\u6309\u7167\u5B66\u751F\u603B\u6210\u7EE9\u6263\u5206)":"(\u5B66\u751F\u6700\u7EC8\u5F97\u5206=\u8865\u4EA4\u524D\u5F97\u5206+\u8865\u4EA4\u9636\u6BB5\u589E\u52A0\u7684\u5206\u503C*\uFF08100%-\u767E\u5206\u6BD4%\uFF09)"))),Te.createElement(Ne.Z,{align:"middle",style:{marginTop:"15px"}},Te.createElement(Tt.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),Te.createElement(Tt.Z,{className:"ml20"},Te.createElement(Ie.default,{size:"large",allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Ct()((0,se.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:Be||Kr,value:sn.late_time?Ct()(sn.late_time):"",disabledDate:li=>Qt(li,ze==null?void 0:ze.course_end_date),onChange:(li,Ti)=>{var vr;if((0,Me.Rm)()&&!((vr=un.AssistantObject.practice)!=null&&vr.can_late)){It.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}sn.late_time=Ti,ln(Object.assign({},sn))}})))):st.map(function(li,Ti){var vr;return Te.createElement(Tt.Z,{span:24,key:Ti},Te.createElement(Ne.Z,{style:{display:"flex",alignItems:"center",marginTop:"10px"}},Te.createElement("div",{style:{width:"85px",marginLeft:"27px",textAlign:"right"}},"\u8865\u4EA4\u89C4\u5219",Ti+1),Te.createElement(We.default,{disabled:Be||!((vr=at==null?void 0:at.homework_status)!=null&&vr.includes("\u672A\u53D1\u5E03"))&&li.id||(ze==null?void 0:ze.anonymous_comment),mode:"multiple",className:ge.Z.multiple_select,style:{width:"212px",marginLeft:"18px"},value:typeof li.group_name=="string"?[li.group_name]:li.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:ui=>{var Ir;if((0,Me.Rm)()&&!((Ir=un.AssistantObject.practice)!=null&&Ir.can_late)){It.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}st[Ti].group_name=ui,st[Ti].group_id=li.group_id,Vt(st.slice())}},ze.group_settings&&ze.group_settings.map(function(ui){const Ir=st.map(Ee=>Ee.group_name).flat(),zn=Re.map(Ee=>Ee.group_name).flat();if(sn!=null&&sn.unified_setting){if(!Ir.includes(ui.group_name))return Te.createElement(At,{value:ui.group_name,key:ui.id},ui.group_name)}else if(zn.includes(ui.group_name)&&!Ir.includes(ui.group_name))return Te.createElement(At,{value:ui.group_name,key:ui.id},ui.group_name)})),Te.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u6263\u5206"),Te.createElement(Ce.Z,{disabled:Be||Vr(li.id),value:{type:li.penalty_type,inputValue:li.late_penalty},onChange:ui=>{var Ir;if((0,Me.Rm)()&&!((Ir=un.AssistantObject.practice)!=null&&Ir.can_late)){It.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}st[Ti].late_penalty=ui.inputValue,st[Ti].penalty_type=ui.type,Vt([...st])}}),Te.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),Te.createElement(Ie.default,{size:"large",disabled:Be||Vr(li.id),style:{width:225},showTime:{format:"HH:mm",defaultValue:Ct()((0,se.U6)(),"HH:mm")},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",disabledDate:ui=>Qt(ui,ze==null?void 0:ze.course_end_date),format:"YYYY-MM-DD HH:mm",value:li!=null&&li.late_time?Ct()(li.late_time):void 0,onChange:(ui,Ir)=>{var zn;if((0,Me.Rm)()&&!((zn=un.AssistantObject.practice)!=null&&zn.can_late)){It.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}st[Ti].late_time=Ir,Vt([...st])}}),!Be&&Te.createElement("div",{style:{display:"flex",width:"50px"}},Te.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var ui;if((0,Me.Rm)()&&!((ui=un.AssistantObject.practice)!=null&&ui.can_late)){It.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Vt(st.concat({penalty_type:Ce.Q.Percent,late_penalty:20}))}}),Ti>0&&!li.id&&Te.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{var ui;if((0,Me.Rm)()&&!((ui=un.AssistantObject.practice)!=null&&ui.can_late)){It.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}st=st.filter((Ir,zn)=>Ti!==zn),Vt(st.slice()),setTimeout(()=>Vt(st.slice()),10)}}))))})),!Be&&Te.createElement(Te.Fragment,null,Te.createElement(gt.ZP,{type:"primary",size:"large",loading:me,style:{width:"138px",marginTop:"30px"},onClick:()=>wi()},"\u4FDD\u5B58")),Te.createElement(Pe.Z,{onConfirm:(li,Ti)=>{Re.splice(li,0,...Ti),Re.splice(li+Ti.length,1);const vr=(0,se.QE)([...Re]);Le([...vr])}}))};Fn.ZP=(0,ve.connect)(({shixunHomeworks:rn,classroomList:bt,loading:Jt,user:un})=>({shixunHomeworks:rn,classroomList:bt,loading:Jt.effects,user:un}))(wn)},706:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return qe}});var xe=ye(59301),Ie=ye(92832),We=ye(24905),It=ye(95237),Qe={leftdiv:"leftdiv___aBzsX",listClass:"listClass___bxIEW",spantitle:"spantitle___v_Vc4",rightdiv:"rightdiv___xWu4M"},vt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC",Ne=ye(97267),Tt=(gt,dt,Ct)=>new Promise((Me,te)=>{var ne=ge=>{try{se(Ct.next(ge))}catch(ve){te(ve)}},ce=ge=>{try{se(Ct.throw(ge))}catch(ve){te(ve)}},se=ge=>ge.done?Me(ge.value):Promise.resolve(ge.value).then(ne,ce);se((Ct=Ct.apply(gt,dt)).next())}),qe=({data:gt,value:dt=[],handleChangePage:Ct,setSelectedRowKeys:Me,selectedRowKeys:te,onChange:ne=()=>{}})=>{const[ce,se]=(0,xe.useState)([]),[ge,ve]=(0,xe.useState)([]),[Ce,ke]=(0,xe.useState)([]);let[Pe,Te]=(0,xe.useState)(1),[Ke,et]=(0,xe.useState)();return(0,xe.useEffect)(()=>{se(gt),ve([]),ke([])},[gt]),(0,xe.useEffect)(()=>{Me&&(ve(te),ke(te))},[te]),xe.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},xe.createElement("div",{className:Qe.leftdiv},xe.createElement(Ie.default.Search,{size:"middle",onChange:Xe=>Tt(void 0,null,function*(){se(gt.filter(ft=>{var Ge;return(Ge=ft==null?void 0:ft.name)==null?void 0:Ge.includes(Xe.target.value)}))}),placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),ce.length===0&&xe.createElement(Ne.Z,{styles:{margin:"70px auto"},customText:"\u6682\u65E0\u5206\u73ED"}),xe.createElement("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"}},xe.createElement(We.default.Group,{value:ge.map(Xe=>`${Xe.id}`),onChange:Xe=>{Me(ce.filter(ft=>Xe.includes(`${ft.id}`)))},style:{marginTop:"10px",flexDirection:"column"}},ce.map((Xe,ft)=>xe.createElement(It.Z,{key:Xe.id,style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200}},xe.createElement(We.default,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:Xe.is_published,value:`${Xe.id}`},xe.createElement("div",{className:Qe.listClass},xe.createElement("span",{className:Qe.spantitle,style:{width:Xe.is_published?"108px":"170px"}},Xe.name),Xe.is_published&&xe.createElement("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"}},"\u5DF2\u53D1\u5E03")))))))),xe.createElement("div",{className:Qe.rightdiv},xe.createElement(Ie.default.Search,{onChange:Xe=>{ke(ge.filter(ft=>ft.name.includes(Xe.target.value)))},size:"middle",placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),Ce.length===0&&xe.createElement(Ne.Z,{styles:{margin:"70px auto"},customText:"\u6682\u672A\u9009\u62E9\u5206\u73ED"}),Ce.length>0&&xe.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},xe.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},Ce.map((Xe,ft)=>xe.createElement(It.Z,{justify:"space-between",style:{marginTop:"10px"},key:Xe.id},xe.createElement("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"}},Xe.name),xe.createElement("img",{src:vt,style:{cursor:"pointer",height:"16px",marginRight:17},onClick:()=>{Me(ge.filter(Ge=>`${Ge.id}`!=`${Xe.id}`))}})))))))}},30738:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return ne}});var xe=ye(59301),Ie=ye(42203),We=ye(78550),It=ye(43418),Qe=ye(92832),vt=ye(95237),Ne=ye(43604),Tt={title_tooltip:"title_tooltip___LLdrn",multiple_select:"multiple_select___kDXUm",modal_con:"modal_con___ERnkW"},Ft=ye(61186),qe=ye.n(Ft),gt=ye(58130),dt=ye(97267),Ct=ye(59301);const{RangePicker:Me}=We.default,te=({dispatch:ce,classroomList:se,onConfirm:ge})=>{const[ve,Ce]=(0,xe.useState)([]),[ke,Pe]=(0,xe.useState)([]),[Te,Ke]=(0,xe.useState)("");(0,xe.useEffect)(()=>{var ft;if(se.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206"){let Ge=se.actionTabs.data;console.log("data",Ge);let kt=(ft=Ge==null?void 0:Ge.group_name)==null?void 0:ft.map(($e,zt)=>{var Ht;return{group_id:Ge==null?void 0:Ge.group_id[zt],group_name:Ge==null?void 0:Ge.group_name[zt],is_admin:Ge==null?void 0:Ge.is_admin,end_time:Ge==null?void 0:Ge.end_time,publish_time:Array.isArray(Ge==null?void 0:Ge.publish_time)?(Ht=Ge==null?void 0:Ge.publish_time)==null?void 0:Ht[0]:Ge==null?void 0:Ge.publish_time}});kt&&(Ce([...kt]),Pe([...kt]))}},[se.actionTabs]);const et=()=>{ce({type:"classroomList/setActionTabs",payload:{}}),Ke("")},Xe=ft=>{if(ft){const Ge=ke==null?void 0:ke.filter(kt=>{var $e,zt;return(zt=($e=kt==null?void 0:kt.group_name)==null?void 0:$e.toLowerCase())==null?void 0:zt.includes(ft==null?void 0:ft.toLowerCase())});Ce(Ge)}else Ce(ke)};return Ct.createElement(It.default,{width:980,title:Ct.createElement("div",{style:{fontWeight:"bold",display:"flex"}},Ct.createElement("div",null,"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",Ct.createElement("span",{className:Tt.title_tooltip},"\uFF08\u5F53\u5206\u73ED\u53D1\u5E03\u65F6\u95F4\u548C\u622A\u6B62\u65F6\u95F4\u4E0D\u76F8\u540C\u65F6\u5019\uFF0C\u73ED\u7EA7\u81EA\u52A8\u62C6\u5206\u51FA\u53BB\u65B0\u8D77\u89C4\u5219\uFF09")),Ct.createElement(Qe.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",style:{width:220,marginLeft:"60px"},value:Te,onChange:ft=>{Ke(ft.target.value.trim()),Xe(ft.target.value.trim())}})),centered:!0,maskClosable:!1,open:se.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",onCancel:()=>et(),onOk:()=>{var ft;ge((ft=se.actionTabs)==null?void 0:ft.index,ke),et()}},Ct.createElement("div",{className:Tt.modal_con},Ct.createElement(vt.Z,{style:{display:"flex",color:"#666666",padding:"5px",marginTop:"1px"}},(ve==null?void 0:ve.length)>0?ve.map(function(ft,Ge){var kt,$e;return Ct.createElement(Ne.Z,{span:24,key:Ge},Ct.createElement(vt.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:Ge==(ve==null?void 0:ve.length)-1?"0px":"10px"}},Ct.createElement("div",{className:Tt.multiple_select,title:ft.group_name},ft.group_name),Ct.createElement("div",{className:"ml20"},Ct.createElement(Me,{size:"large",ranges:{\u6B64\u523B:[ft.publish_time?qe()(ft.publish_time):qe()(),qe()()]},allowClear:!1,disabled:(kt=se.actionTabs)==null?void 0:kt.rangePickerDisabled,style:{width:600},placeholder:["\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4\uFF09","\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9\uFF09"],disabledDate:zt=>{var Ht;return(0,gt.Q8)(zt,(Ht=se.actionTabs)==null?void 0:Ht.disabledDate)},disabledTime:zt=>(0,gt.d0)(zt),showTime:{showNow:!0,format:"HH:mm",defaultValue:[qe()((0,gt.U6)(),"HH:mm"),qe()((0,gt.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:ft.publish_time&&[qe()(ft.publish_time),ft.end_time?qe()(ft.end_time):void 0],onChange:(zt,Ht)=>{ve[Ge].publish_time=Ht[0],ve[Ge].end_time=Ht[1],Ce([...ve]),ke.forEach(Yt=>{Yt.group_id===ft.group_id&&(Yt.publish_time=Ht[0],Yt.end_time=Ht[1])}),Pe([...ke])}})),($e=se.actionTabs)!=null&&$e.rangePickerDisabled?Ct.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{color:"#E30000",opacity:"0.2",cursor:"not-allowed"}}):Ct.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{ve.splice(Ge,1),Ce([...ve]),ke.forEach((zt,Ht)=>{zt.group_id===ft.group_id&&ke.splice(Ht,1)}),Pe([...ke])}})))}):Ct.createElement(dt.Z,null))))};var ne=(0,Ie.connect)(({classroomList:ce})=>({classroomList:ce}))(te)},31087:function(In,Fn,ye){"use strict";ye.d(Fn,{AL:function(){return Ce},Iy:function(){return gt},Qv:function(){return Me},ez:function(){return ve},jb:function(){return dt}});var xe=ye(32834),Ie=ye.n(xe),We=ye(11690),It=ye.n(We);let Qe=1;function vt(et,Xe){const ft=et.match(/^(\s+)(?:```)/);if(ft===null)return Xe;const Ge=ft[1];return Xe.split(`
`).map(kt=>{const $e=kt.match(/^\s+/);if($e===null)return kt;const[zt]=$e;return zt.length>=Ge.length?kt.slice(Ge.length):kt}).join(`
`)}let Ne=[],Tt=["<ul>"];const Ft=new(Ie()).Renderer,qe=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function gt(){Ne.length=0,Tt=["<ul>"]}const dt={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Ct(et,Xe,ft,Ge){if(Xe>=et.length||et[Xe].level<=ft)return Xe;var kt=et[Xe];Ge.push("<li><a href='#"+Qe+kt.anchor+"'>"+kt.text+"</a>"),Xe++;var $e=[];return Xe=Ct(et,Xe,kt.level,$e),$e.length>0&&(Ge.push("<ul>"),$e.forEach(function(zt){Ge.push(zt)}),Ge.push("</ul>")),Ge.push("</li>"),Xe=Ct(et,Xe,ft,Ge),Xe}function Me(){return Ct(Ne,0,0,Tt),Tt.push("</ul>"),Tt.join("")}const te={heading(et){const Xe=qe.exec(et);if(Qe+=1,Xe)return{type:"heading",raw:Xe[0],depth:Xe[1].length,text:Xe[2]}},fences(et){const Xe=this.rules.block.fences.exec(et);if(Xe){const ft=Xe[0];let Ge=vt(ft,Xe[3]||"");const kt=Xe[2]?Xe[2].trim():Xe[2];if(["latex","katex","math"].indexOf(kt)>=0){const $e=se(),zt=Ge;Ge=$e,ge[$e]={type:"block",expression:zt}}return{type:"code",raw:ft,lang:kt,text:Ge}}}},ne=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ce=0;const se=()=>`__special_katext_id_${ce++}__`;let ge={};function ve(){return ge}function Ce(){ce=0,ge={}}function ke(et){return et=et.replace(ne,(Xe,ft)=>{const Ge=se();return ge[Ge]={type:"inline",expression:ft},Ge}),et}const Pe=Ft.listitem;Ft.listitem=function(et){return Pe(ke(et))};const Te=Ft.paragraph;Ft.paragraph=function(et){return Te(ke(et))};const Ke=Ft.tablecell;Ft.tablecell=function(et,Xe){return Ke(ke(et),Xe)},Ft.code=function(et,Xe,ft){const Ge=(Xe||"").match(/\S*/)[0];return Ge?["latex","katex","math"].indexOf(Ge)>=0?`<p class='editormd-tex'>${et}</p>`:`<pre class="prettyprint linenums"><code class="language-${Xe}">${ft?et:(0,We.escape)(et,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(ft?et:(0,We.escape)(et,!0))+"</code></pre>"},Ft.heading=function(et,Xe,ft){let Ge=this.options.headerPrefix+ft.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ne.push({anchor:Ge,level:Xe,text:et}),"<h"+Xe+' id="'+Qe+Ge+'">'+et+"</h"+Xe+">"},Ie().setOptions({silent:!0,gfm:!0,pedantic:!1}),Ie().use({tokenizer:te,renderer:Ft}),Fn.ZP=Ie()},18032:function(In,Fn,ye){"use strict";ye.d(Fn,{rX:function(){return Ce},pW:function(){return ke},gy:function(){return Pe},xY:function(){return ve},O5:function(){return ge},tJ:function(){return Me},o1:function(){return te},Rd:function(){return se}});var xe=ye(42203),Ie=ye(43418),We=ye(28103),It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8740efb.png",gt=ye(32637),dt=ye(59301),Ct=(Te,Ke,et)=>new Promise((Xe,ft)=>{var Ge=zt=>{try{$e(et.next(zt))}catch(Ht){ft(Ht)}},kt=zt=>{try{$e(et.throw(zt))}catch(Ht){ft(Ht)}},$e=zt=>zt.done?Xe(zt.value):Promise.resolve(zt.value).then(Ge,kt);$e((et=et.apply(Te,Ke)).next())});const Me=(Te,Ke=!1)=>!!(te(Te)&&ne(Ke)),te=Te=>(0,Qe.bg)()?!0:(Te({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),ne=(Te=!1)=>{var Ke;const{user:et}=(0,xe.getDvaApp)()._store.getState();return(Ke=et.userInfo)!=null&&Ke.profile_completed?!0:(Ie.default.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,vt.xg)("/account/profile/edit"),ce()}}),!1)},ce=()=>{Ie.default.success({title:"\u63D0\u793A",width:430,closable:!0,centered:!0,content:"\u5DF2\u5B8C\u5584\u4E2A\u4EBA\u8D44\u6599\uFF1F\u8BF7\u5237\u65B0\u9875\u9762",okText:"\u7ACB\u5373\u5237\u65B0",icon:null,onOk:()=>{location.reload()}})},se=()=>{Ie.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:dt.createElement("div",{style:{textAlign:"center"}},dt.createElement("div",{style:{color:"#191919",fontSize:14,marginBottom:15,textAlign:"left"}},"\u8001\u5E08\u60A8\u597D\uFF0C\u60A8\u7684\u8BFE\u5802\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u76F8\u5173\u529F\u80FD\u88AB\u9650\u5236\u3002 \u5982\u9700\u7EE7\u7EED\u4F7F\u7528\uFF0C\u8BF7\u5C3D\u5FEB\u5BF9\u63A5\u4EBA\u5DE5\u652F\u6301\uFF01"),dt.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:gt}),dt.createElement("div",{style:{color:"#666666",fontSize:14,marginTop:15}},"\u6DFB\u52A0\u5BA2\u670D\u4EBA\u5458\u5FAE\u4FE1\uFF0C\u83B7\u5F97\u66F4\u591A\u652F\u6301"))})},ge=()=>{var Te;const{user:Ke}=(0,xe.getDvaApp)()._store.getState();return(Te=Ke.userInfo)!=null&&Te.professional_certification?!0:(Ie.default.confirm({title:"\u63D0\u793A",centered:!0,content:dt.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,vt.xg)("/account/certification")}}),!1)},ve=()=>(0,Qe.V9)()?!0:(Ie.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:dt.createElement("div",{className:"tc",style:{marginLeft:-38}},dt.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),dt.createElement("img",{src:qe,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),Ce=(Te,Ke)=>Te?!0:(Ie.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:dt.createElement("div",null,dt.createElement("p",null,Ke||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),dt.createElement("div",{style:{marginLeft:"110px"}},dt.createElement("img",{src:Ft,width:200}),dt.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,vt.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),ke=Te=>{Ie.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:dt.createElement("div",null,dt.createElement("div",null,dt.createElement("p",{style:{color:"#191919",fontWeight:400,fontSize:14}},"\u201C\u4FDD\u5B58\u5B9E\u9A8C\u4E34\u65F6\u6570\u636E\u201D\u529F\u80FD\u4E3A\u4ED8\u8D39\u529F\u80FD\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425\u8FDB\u884C\u5F00\u901A\u3002"),dt.createElement(We.Z,null),dt.createElement("p",{style:{color:"#666666",fontSize:12}}," ",dt.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"1")," \u56E0\u5E73\u53F0\u7684\u5B9E\u9A8C\u6570\u636E\u50A8\u5B58\u5BB9\u91CF\u548C\u6210\u672C\u6D88\u8017\u8F83\u5927\uFF0C\u5B9E\u8DF5\u9879\u76EE\u9ED8\u8BA4\u4FDD\u5B58\u5B9E\u9A8C\u73AF\u5883\u4E2D\u4E34\u65F6\u6570\u636E ",dt.createElement("a",null,Te),"\u5929\u3002"),dt.createElement("p",{style:{color:"#666666",fontSize:12}}," ",dt.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"2"),"\u82E5\u60A8\u9700\u8981\u4E2A\u6027\u5316\u7684\u6570\u636E\u4FDD\u5B58\u5468\u671F\u670D\u52A1\uFF0C\u6211\u4EEC\u53EF\u4EE5\u63D0\u4F9B\u76F8\u5173\u6280\u672F\u652F\u6301\uFF0C\u5E76\u6839\u636E\u60A8\u7684\u9700\u6C42\u6536\u53D6\u5B9A\u5236\u8D39\u7528\u3002")),dt.createElement("div",{style:{textAlign:"center",marginTop:30}},dt.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Tt,alt:"\u4E8C\u7EF4\u7801",width:160})))})},Pe=(Te,Ke="")=>{const{shixunsDetail:{detail:et}}=(0,xe.getDvaApp)()._store.getState();if((et==null?void 0:et.public)===2||(et==null?void 0:et.public)===1||(et==null?void 0:et.shixun_status)===3){let Xe="";return(et==null?void 0:et.public)===2&&(Xe="\u5DF2\u516C\u5F00"),(et==null?void 0:et.public)===1&&(Xe="\u5F85\u5BA1\u6838"),(et==null?void 0:et.shixun_status)===3&&(Xe="\u5DF2\u5173\u95ED"),Ie.default.info({centered:!0,icon:dt.createElement(Ne.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:dt.createElement("div",{className:"tc",style:{marginLeft:-38}},dt.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},dt.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",Xe,"\uFF0C",Ke,"\u3002"),dt.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),dt.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Tt,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(et==null?void 0:et.shixun_status)===2?(Ie.default.confirm({centered:!0,icon:dt.createElement(Ne.Z,null),title:"\u63D0\u793A",content:dt.createElement("div",null,dt.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",Ke,"\u3002"),dt.createElement("br",null),dt.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>{Ie.default.confirm({width:440,centered:!0,icon:dt.createElement(Ne.Z,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>Ct(void 0,null,function*(){(yield Te({type:"shixunsDetail/cancelRelease",payload:{id:et==null?void 0:et.identifier}})).status!==401&&(It.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),Te({type:"shixunsDetail/getShixunsDetail",payload:{id:et==null?void 0:et.identifier}}),Te({type:"practiceSetting/getCommonData",payload:{id:et==null?void 0:et.identifier}}))})})}}),!0):!1}},50371:function(In,Fn){"use strict";function ye(){const xe=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Ie=1;Ie<arguments.length;Ie++){const We=Ie<0||arguments.length<=Ie?void 0:arguments[Ie];We&&Object.keys(We).forEach(It=>{const Qe=We[It];Qe!==void 0&&(xe[It]=Qe)})}return xe}Fn.Z=ye},13845:function(In,Fn,ye){"use strict";ye.d(Fn,{F:function(){return xe},Z:function(){return Ie}});function xe(We){return We!=null&&We===We.window}function Ie(We,It){var Qe,vt;if(typeof window=="undefined")return 0;const Ne=It?"scrollTop":"scrollLeft";let Tt=0;return xe(We)?Tt=We[It?"pageYOffset":"pageXOffset"]:We instanceof Document?Tt=We.documentElement[Ne]:(We instanceof HTMLElement||We)&&(Tt=We[Ne]),We&&!xe(We)&&typeof Tt!="number"&&(Tt=(vt=((Qe=We.ownerDocument)!==null&&Qe!==void 0?Qe:We).documentElement)===null||vt===void 0?void 0:vt[Ne]),Tt}},56762:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Ie}});var xe=ye(59301);function Ie(){const[,We]=xe.useReducer(It=>It+1,0);return We}},68031:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return It}});var xe=ye(23073);function Ie(Qe,vt,Ne,Tt){const Ft=Ne-vt;return Qe/=Tt/2,Qe<1?Ft/2*Qe*Qe*Qe+vt:Ft/2*((Qe-=2)*Qe*Qe+2)+vt}var We=ye(13845);function It(Qe){let vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:Ne=()=>window,callback:Tt,duration:Ft=450}=vt,qe=Ne(),gt=(0,We.Z)(qe,!0),dt=Date.now(),Ct=()=>{const te=Date.now()-dt,ne=Ie(te>Ft?Ft:te,gt,Qe,Ft);(0,We.F)(qe)?qe.scrollTo(window.pageXOffset,ne):qe instanceof Document||qe.constructor.name==="HTMLDocument"?qe.documentElement.scrollTop=ne:qe.scrollTop=ne,te<Ft?(0,xe.Z)(Ct):typeof Tt=="function"&&Tt()};(0,xe.Z)(Ct)}},19842:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Xi}});var xe=ye(26390),Ie=ye(59301),We=ye(16537),It=ye(50023),Qe=ye(53878),vt=ye(92310),Ne=ye.n(vt),Tt=ye(5891),Ft=ye(29043),qe=ye(19149),gt=ye(77861),dt=ye(17115),Ct=ye(90782),Me=ye(8107),te=ye(35788),ne=Ie.createContext(null),ce=ne,se=ye(80665),ge=ye(80962),ve=ye(57259),Ce="__rc_cascader_search_mark__",ke=function(oi,Ci,xn){var on=xn.label;return Ci.some(function(yt){return String(yt[on]).toLowerCase().includes(oi.toLowerCase())})},Pe=function(oi,Ci,xn,on){return Ci.map(function(yt){return yt[on.label]}).join(" / ")},Te=function(yn,oi,Ci,xn,on,yt){var Et=on.filter,Lt=Et===void 0?ke:Et,tt=on.render,en=tt===void 0?Pe:tt,fn=on.limit,xt=fn===void 0?50:fn,Ue=on.sort;return Ie.useMemo(function(){var an=[];if(!yn)return[];function Dt(Rn,dn){var Pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Rn.forEach(function(Sn){if(!(!Ue&&xt!==!1&&xt>0&&an.length>=xt)){var Qn=[].concat((0,xe.Z)(dn),[Sn]),Xn=Sn[Ci.children],Rt=Pt||Sn.disabled;if((!Xn||Xn.length===0||yt)&&Lt(yn,Qn,{label:Ci.label})){var vn;an.push((0,ve.Z)((0,ve.Z)({},Sn),{},(vn={disabled:Rt},(0,ge.Z)(vn,Ci.label,en(yn,Qn,xn,Ci)),(0,ge.Z)(vn,Ce,Qn),(0,ge.Z)(vn,Ci.children,void 0),vn)))}Xn&&Dt(Sn[Ci.children],Qn,Rt)}})}return Dt(oi,[]),Ue&&an.sort(function(Rn,dn){return Ue(Rn[Ce],dn[Ce],yn,Ci)}),xt!==!1&&xt>0?an.slice(0,xt):an},[yn,oi,Ci,xn,en,yt,Lt,Ue,xt])},Ke="__RC_CASCADER_SPLIT__",et="SHOW_PARENT",Xe="SHOW_CHILD";function ft(yn){return yn.join(Ke)}function Ge(yn){return yn.map(ft)}function kt(yn){return yn.split(Ke)}function $e(yn){var oi=yn||{},Ci=oi.label,xn=oi.value,on=oi.children,yt=xn||"value";return{label:Ci||"label",value:yt,key:yt,children:on||"children"}}function zt(yn,oi){var Ci,xn;return(Ci=yn.isLeaf)!==null&&Ci!==void 0?Ci:!((xn=yn[oi.children])!==null&&xn!==void 0&&xn.length)}function Ht(yn){var oi=yn.parentElement;if(oi){var Ci=yn.offsetTop-oi.offsetTop;Ci-oi.scrollTop<0?oi.scrollTo({top:Ci}):Ci+yn.offsetHeight-oi.scrollTop>oi.offsetHeight&&oi.scrollTo({top:Ci+yn.offsetHeight-oi.offsetHeight})}}function Yt(yn,oi){return yn.map(function(Ci){var xn;return(xn=Ci[Ce])===null||xn===void 0?void 0:xn.map(function(on){return on[oi.value]})})}function Bt(yn,oi,Ci){var xn=new Set(yn),on=oi();return yn.filter(function(yt){var Et=on[yt],Lt=Et?Et.parent:null,tt=Et?Et.children:null;return Et&&Et.node.disabled?!0:Ci===Xe?!(tt&&tt.some(function(en){return en.key&&xn.has(en.key)})):!(Lt&&!Lt.node.disabled&&xn.has(Lt.key))})}function Qt(yn,oi,Ci){for(var xn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,on=oi,yt=[],Et=function(){var en,fn,xt,Ue=yn[Lt],an=(en=on)===null||en===void 0?void 0:en.findIndex(function(Rn){var dn=Rn[Ci.value];return xn?String(dn)===String(Ue):dn===Ue}),Dt=an!==-1?(fn=on)===null||fn===void 0?void 0:fn[an]:null;yt.push({value:(xt=Dt==null?void 0:Dt[Ci.value])!==null&&xt!==void 0?xt:Ue,index:an,option:Dt}),on=Dt==null?void 0:Dt[Ci.children]},Lt=0;Lt<yn.length;Lt+=1)Et();return yt}var ht=function(yn,oi,Ci,xn,on){return Ie.useMemo(function(){var yt=on||function(Et){var Lt=xn?Et.slice(-1):Et,tt=" / ";return Lt.every(function(en){return["string","number"].includes((0,se.Z)(en))})?Lt.join(tt):Lt.reduce(function(en,fn,xt){var Ue=Ie.isValidElement(fn)?Ie.cloneElement(fn,{key:xt}):fn;return xt===0?[Ue]:[].concat((0,xe.Z)(en),[tt,Ue])},[])};return yn.map(function(Et){var Lt,tt,en=Qt(Et,oi,Ci),fn=yt(en.map(function(Ue){var an,Dt=Ue.option,Rn=Ue.value;return(an=Dt==null?void 0:Dt[Ci.label])!==null&&an!==void 0?an:Rn}),en.map(function(Ue){var an=Ue.option;return an})),xt=ft(Et);return{label:fn,value:xt,key:xt,valueCells:Et,disabled:(Lt=en[en.length-1])===null||Lt===void 0||(tt=Lt.option)===null||tt===void 0?void 0:tt.disabled}})},[yn,oi,Ci,on,xn])},je=ye(71430),At=function(yn,oi){var Ci=Ie.useRef({options:null,info:null}),xn=Ie.useCallback(function(){return Ci.current.options!==yn&&(Ci.current.options=yn,Ci.current.info=(0,je.I8)(yn,{fieldNames:oi,initWrapper:function(yt){return(0,ve.Z)((0,ve.Z)({},yt),{},{pathKeyEntities:{}})},processEntity:function(yt,Et){var Lt=yt.nodes.map(function(tt){return tt[oi.value]}).join(Ke);Et.pathKeyEntities[Lt]=yt,yt.key=Lt}})),Ci.current.info.pathKeyEntities},[oi,yn]);return xn},wn=function(yn,oi){return Ie.useCallback(function(Ci){var xn=[],on=[];return Ci.forEach(function(yt){var Et=Qt(yt,yn,oi);Et.every(function(Lt){return Lt.option})?on.push(yt):xn.push(yt)}),[on,xn]},[yn,oi])},rn=ye(51395);function bt(yn){return Ie.useMemo(function(){if(!yn)return[!1,{}];var oi={matchInputWidth:!0,limit:50};return yn&&(0,se.Z)(yn)==="object"&&(oi=(0,ve.Z)((0,ve.Z)({},oi),yn)),oi.limit<=0&&delete oi.limit,[!0,oi]},[yn])}var Jt=Ie.memo(function(yn){var oi=yn.children;return oi},function(yn,oi){return!oi.open}),un=Jt;function Kn(yn){var oi,Ci=yn.prefixCls,xn=yn.checked,on=yn.halfChecked,yt=yn.disabled,Et=yn.onClick,Lt=yn.disableCheckbox,tt=Ie.useContext(ce),en=tt.checkable,fn=typeof en!="boolean"?en:null;return Ie.createElement("span",{className:Ne()("".concat(Ci),(oi={},(0,ge.Z)(oi,"".concat(Ci,"-checked"),xn),(0,ge.Z)(oi,"".concat(Ci,"-indeterminate"),!xn&&on),(0,ge.Z)(oi,"".concat(Ci,"-disabled"),yt||Lt),oi)),onClick:Et},fn)}var En="__cascader_fix_label__";function Yn(yn){var oi=yn.prefixCls,Ci=yn.multiple,xn=yn.options,on=yn.activeValue,yt=yn.prevValuePath,Et=yn.onToggleOpen,Lt=yn.onSelect,tt=yn.onActive,en=yn.checkedSet,fn=yn.halfCheckedSet,xt=yn.loadingKeys,Ue=yn.isSelectable,an=yn.searchValue,Dt="".concat(oi,"-menu"),Rn="".concat(oi,"-menu-item"),dn=Ie.useContext(ce),Pt=dn.fieldNames,Sn=dn.changeOnSelect,Qn=dn.expandTrigger,Xn=dn.expandIcon,Rt=dn.loadingIcon,vn=dn.dropdownMenuColumnStyle,bi=Qn==="hover",vi=Ie.useMemo(function(){return xn.map(function(pi){var ei,yi=pi.disabled,Fi=pi.disableCheckbox,Ki=pi[Ce],hr=(ei=pi[En])!==null&&ei!==void 0?ei:pi[Pt.label],Gn=pi[Pt.value],Li=zt(pi,Pt),Lr=Ki?Ki.map(function(ar){return ar[Pt.value]}):[].concat((0,xe.Z)(yt),[Gn]),Dr=ft(Lr),Pr=xt.includes(Dr),Xt=en.has(Dr),Mi=fn.has(Dr);return{disabled:yi,label:hr,value:Gn,isLeaf:Li,isLoading:Pr,checked:Xt,halfChecked:Mi,option:pi,disableCheckbox:Fi,fullPath:Lr,fullPathKey:Dr}})},[xn,en,Pt,fn,xt,yt]);return Ie.createElement("ul",{className:Dt,role:"menu"},vi.map(function(pi){var ei,yi=pi.disabled,Fi=pi.label,Ki=pi.value,hr=pi.isLeaf,Gn=pi.isLoading,Li=pi.checked,Lr=pi.halfChecked,Dr=pi.option,Pr=pi.fullPath,Xt=pi.fullPathKey,Mi=pi.disableCheckbox,ar=function(){if(!(yi||an)){var Br=(0,xe.Z)(Pr);bi&&hr&&Br.pop(),tt(Br)}},Wi=function(){Ue(Dr)&&Lt(Pr,hr)},Mr;return typeof Dr.title=="string"?Mr=Dr.title:typeof Fi=="string"&&(Mr=Fi),Ie.createElement("li",{key:Xt,className:Ne()(Rn,(ei={},(0,ge.Z)(ei,"".concat(Rn,"-expand"),!hr),(0,ge.Z)(ei,"".concat(Rn,"-active"),on===Ki||on===Xt),(0,ge.Z)(ei,"".concat(Rn,"-disabled"),yi),(0,ge.Z)(ei,"".concat(Rn,"-loading"),Gn),ei)),style:vn,role:"menuitemcheckbox",title:Mr,"aria-checked":Li,"data-path-key":Xt,onClick:function(){ar(),!Mi&&(!Ci||hr)&&Wi()},onDoubleClick:function(){Sn&&Et(!1)},onMouseEnter:function(){bi&&ar()},onMouseDown:function(Br){Br.preventDefault()}},Ci&&Ie.createElement(Kn,{prefixCls:"".concat(oi,"-checkbox"),checked:Li,halfChecked:Lr,disabled:yi||Mi,disableCheckbox:Mi,onClick:function(Br){Mi||(Br.stopPropagation(),Wi())}}),Ie.createElement("div",{className:"".concat(Rn,"-content")},Fi),!Gn&&Xn&&!hr&&Ie.createElement("div",{className:"".concat(Rn,"-expand-icon")},Xn),Gn&&Rt&&Ie.createElement("div",{className:"".concat(Rn,"-loading-icon")},Rt))}))}var St=function(){var yn=(0,gt.lk)(),oi=yn.multiple,Ci=yn.open,xn=Ie.useContext(ce),on=xn.values,yt=Ie.useState([]),Et=(0,Ft.Z)(yt,2),Lt=Et[0],tt=Et[1];return Ie.useEffect(function(){if(Ci&&!oi){var en=on[0];tt(en||[])}},[Ci]),[Lt,tt]},Vn=ye(85108),Cn=function(yn,oi,Ci,xn,on,yt){var Et=(0,gt.lk)(),Lt=Et.direction,tt=Et.searchValue,en=Et.toggleOpen,fn=Et.open,xt=Lt==="rtl",Ue=Ie.useMemo(function(){for(var vn=-1,bi=oi,vi=[],pi=[],ei=xn.length,yi=Yt(oi,Ci),Fi=function(Dr){var Pr=bi.findIndex(function(Xt,Mi){return(yi[Mi]?ft(yi[Mi]):Xt[Ci.value])===xn[Dr]});if(Pr===-1)return"break";vn=Pr,vi.push(vn),pi.push(xn[Dr]),bi=bi[vn][Ci.children]},Ki=0;Ki<ei&&bi;Ki+=1){var hr=Fi(Ki);if(hr==="break")break}for(var Gn=oi,Li=0;Li<vi.length-1;Li+=1)Gn=Gn[vi[Li]][Ci.children];return[pi,vn,Gn,yi]},[xn,Ci,oi]),an=(0,Ft.Z)(Ue,4),Dt=an[0],Rn=an[1],dn=an[2],Pt=an[3],Sn=function(bi){on(bi)},Qn=function(bi){var vi=dn.length,pi=Rn;pi===-1&&bi<0&&(pi=vi);for(var ei=0;ei<vi;ei+=1){pi=(pi+bi+vi)%vi;var yi=dn[pi];if(yi&&!yi.disabled){var Fi=Dt.slice(0,-1).concat(Pt[pi]?ft(Pt[pi]):yi[Ci.value]);Sn(Fi);return}}},Xn=function(){if(Dt.length>1){var bi=Dt.slice(0,-1);Sn(bi)}else en(!1)},Rt=function(){var bi,vi=((bi=dn[Rn])===null||bi===void 0?void 0:bi[Ci.children])||[],pi=vi.find(function(yi){return!yi.disabled});if(pi){var ei=[].concat((0,xe.Z)(Dt),[pi[Ci.value]]);Sn(ei)}};Ie.useImperativeHandle(yn,function(){return{onKeyDown:function(bi){var vi=bi.which;switch(vi){case Vn.Z.UP:case Vn.Z.DOWN:{var pi=0;vi===Vn.Z.UP?pi=-1:vi===Vn.Z.DOWN&&(pi=1),pi!==0&&Qn(pi);break}case Vn.Z.LEFT:{if(tt)break;xt?Rt():Xn();break}case Vn.Z.RIGHT:{if(tt)break;xt?Xn():Rt();break}case Vn.Z.BACKSPACE:{tt||Xn();break}case Vn.Z.ENTER:{if(Dt.length){var ei=dn[Rn],yi=(ei==null?void 0:ei[Ce])||[];yi.length?yt(yi.map(function(Fi){return Fi[Ci.value]}),yi[yi.length-1]):yt(Dt,dn[Rn])}break}case Vn.Z.ESC:en(!1),fn&&bi.stopPropagation()}},onKeyUp:function(){}}})},Si=Ie.forwardRef(function(yn,oi){var Ci,xn,on,yt,Et=(0,gt.lk)(),Lt=Et.prefixCls,tt=Et.multiple,en=Et.searchValue,fn=Et.toggleOpen,xt=Et.notFoundContent,Ue=Et.direction,an=Et.open,Dt=Ie.useRef(),Rn=Ue==="rtl",dn=Ie.useContext(ce),Pt=dn.options,Sn=dn.values,Qn=dn.halfValues,Xn=dn.fieldNames,Rt=dn.changeOnSelect,vn=dn.onSelect,bi=dn.searchOptions,vi=dn.dropdownPrefixCls,pi=dn.loadData,ei=dn.expandTrigger,yi=vi||Lt,Fi=Ie.useState([]),Ki=(0,Ft.Z)(Fi,2),hr=Ki[0],Gn=Ki[1],Li=function(xr){if(!(!pi||en)){var Ho=Qt(xr,Pt,Xn),ho=Ho.map(function(pr){var Yr=pr.option;return Yr}),Sr=ho[ho.length-1];if(Sr&&!zt(Sr,Xn)){var gr=ft(xr);Gn(function(pr){return[].concat((0,xe.Z)(pr),[gr])}),pi(ho)}}};Ie.useEffect(function(){hr.length&&hr.forEach(function(_r){var xr=kt(_r),Ho=Qt(xr,Pt,Xn,!0).map(function(Sr){var gr=Sr.option;return gr}),ho=Ho[Ho.length-1];(!ho||ho[Xn.children]||zt(ho,Xn))&&Gn(function(Sr){return Sr.filter(function(gr){return gr!==_r})})})},[Pt,hr,Xn]);var Lr=Ie.useMemo(function(){return new Set(Ge(Sn))},[Sn]),Dr=Ie.useMemo(function(){return new Set(Ge(Qn))},[Qn]),Pr=St(),Xt=(0,Ft.Z)(Pr,2),Mi=Xt[0],ar=Xt[1],Wi=function(xr){ar(xr),Li(xr)},Mr=function(xr){var Ho=xr.disabled,ho=zt(xr,Xn);return!Ho&&(ho||Rt||tt)},fr=function(xr,Ho){var ho=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;vn(xr),!tt&&(Ho||Rt&&(ei==="hover"||ho))&&fn(!1)},Br=Ie.useMemo(function(){return en?bi:Pt},[en,bi,Pt]),Oi=Ie.useMemo(function(){for(var _r=[{options:Br}],xr=Br,Ho=Yt(xr,Xn),ho=function(){var Yr=Mi[Sr],zi=xr.find(function(pt,Ot){return(Ho[Ot]?ft(Ho[Ot]):pt[Xn.value])===Yr}),Je=zi==null?void 0:zi[Xn.children];if(!(Je!=null&&Je.length))return"break";xr=Je,_r.push({options:Je})},Sr=0;Sr<Mi.length;Sr+=1){var gr=ho();if(gr==="break")break}return _r},[Br,Mi,Xn]),$i=function(xr,Ho){Mr(Ho)&&fr(xr,zt(Ho,Xn),!0)};Cn(oi,Br,Xn,Mi,Wi,$i),Ie.useEffect(function(){for(var _r=0;_r<Mi.length;_r+=1){var xr,Ho=Mi.slice(0,_r+1),ho=ft(Ho),Sr=(xr=Dt.current)===null||xr===void 0?void 0:xr.querySelector('li[data-path-key="'.concat(ho.replace(/\\{0,2}"/g,'\\"'),'"]'));Sr&&Ht(Sr)}},[Mi]);var nr=!((Ci=Oi[0])!==null&&Ci!==void 0&&(xn=Ci.options)!==null&&xn!==void 0&&xn.length),Mn=[(on={},(0,ge.Z)(on,Xn.value,"__EMPTY__"),(0,ge.Z)(on,En,xt),(0,ge.Z)(on,"disabled",!0),on)],Tr=(0,ve.Z)((0,ve.Z)({},yn),{},{multiple:!nr&&tt,onSelect:fr,onActive:Wi,onToggleOpen:fn,checkedSet:Lr,halfCheckedSet:Dr,loadingKeys:hr,isSelectable:Mr}),An=nr?[{options:Mn}]:Oi,yr=An.map(function(_r,xr){var Ho=Mi.slice(0,xr),ho=Mi[xr];return Ie.createElement(Yn,(0,Tt.Z)({key:xr},Tr,{searchValue:en,prefixCls:yi,options:_r.options,prevValuePath:Ho,activeValue:ho}))});return Ie.createElement(un,{open:an},Ie.createElement("div",{className:Ne()("".concat(yi,"-menus"),(yt={},(0,ge.Z)(yt,"".concat(yi,"-menu-empty"),nr),(0,ge.Z)(yt,"".concat(yi,"-rtl"),Rn),yt)),ref:Dt},yr))}),Bn=Si;function tn(yn){var oi=yn.onPopupVisibleChange,Ci=yn.popupVisible,xn=yn.popupClassName,on=yn.popupPlacement;warning(!oi,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(Ci===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(xn===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(on===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function $t(yn,oi){if(yn){var Ci=function xn(on){for(var yt=0;yt<on.length;yt++){var Et=on[yt];if(Et[oi==null?void 0:oi.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(Et[oi==null?void 0:oi.children])&&xn(Et[oi==null?void 0:oi.children]))return!0}};Ci(yn)}}var ct=null,ze=["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 Ut(yn){return Array.isArray(yn)&&Array.isArray(yn[0])}function Gt(yn){return yn?Ut(yn)?yn:(yn.length===0?[]:[yn]).map(function(oi){return Array.isArray(oi)?oi:[oi]}):[]}var at=Ie.forwardRef(function(yn,oi){var Ci=yn.id,xn=yn.prefixCls,on=xn===void 0?"rc-cascader":xn,yt=yn.fieldNames,Et=yn.defaultValue,Lt=yn.value,tt=yn.changeOnSelect,en=yn.onChange,fn=yn.displayRender,xt=yn.checkable,Ue=yn.autoClearSearchValue,an=Ue===void 0?!0:Ue,Dt=yn.searchValue,Rn=yn.onSearch,dn=yn.showSearch,Pt=yn.expandTrigger,Sn=yn.options,Qn=yn.dropdownPrefixCls,Xn=yn.loadData,Rt=yn.popupVisible,vn=yn.open,bi=yn.popupClassName,vi=yn.dropdownClassName,pi=yn.dropdownMenuColumnStyle,ei=yn.popupPlacement,yi=yn.placement,Fi=yn.onDropdownVisibleChange,Ki=yn.onPopupVisibleChange,hr=yn.expandIcon,Gn=hr===void 0?">":hr,Li=yn.loadingIcon,Lr=yn.children,Dr=yn.dropdownMatchSelectWidth,Pr=Dr===void 0?!1:Dr,Xt=yn.showCheckedStrategy,Mi=Xt===void 0?et:Xt,ar=(0,qe.Z)(yn,ze),Wi=(0,dt.ZP)(Ci),Mr=!!xt,fr=(0,te.Z)(Et,{value:Lt,postState:Gt}),Br=(0,Ft.Z)(fr,2),Oi=Br[0],$i=Br[1],nr=Ie.useMemo(function(){return $e(yt)},[JSON.stringify(yt)]),Mn=Ie.useMemo(function(){return Sn||[]},[Sn]),Tr=At(Mn,nr),An=Ie.useCallback(function(eo){var qr=Tr();return eo.map(function(no){var $o=qr[no].nodes;return $o.map(function(Qo){return Qo[nr.value]})})},[Tr,nr]),yr=(0,te.Z)("",{value:Dt,postState:function(qr){return qr||""}}),_r=(0,Ft.Z)(yr,2),xr=_r[0],Ho=_r[1],ho=function(qr,no){Ho(qr),no.source!=="blur"&&Rn&&Rn(qr)},Sr=bt(dn),gr=(0,Ft.Z)(Sr,2),pr=gr[0],Yr=gr[1],zi=Te(xr,Mn,nr,Qn||on,Yr,tt),Je=wn(Mn,nr),pt=Ie.useMemo(function(){var eo=Je(Oi),qr=(0,Ft.Z)(eo,2),no=qr[0],$o=qr[1];if(!Mr||!Oi.length)return[no,[],$o];var Qo=Ge(no),pa=Tr(),qo=(0,Ct.S)(Qo,!0,pa),Pn=qo.checkedKeys,ca=qo.halfCheckedKeys;return[An(Pn),An(ca),$o]},[Mr,Oi,Tr,An,Je]),Ot=(0,Ft.Z)(pt,3),cn=Ot[0],jn=Ot[1],Dn=Ot[2],Wt=Ie.useMemo(function(){var eo=Ge(cn),qr=Bt(eo,Tr,Mi);return[].concat((0,xe.Z)(Dn),(0,xe.Z)(An(qr)))},[cn,Tr,An,Dn,Mi]),kn=ht(Wt,Mn,nr,Mr,fn),ai=(0,Me.Z)(function(eo){if($i(eo),en){var qr=Gt(eo),no=qr.map(function(pa){return Qt(pa,Mn,nr).map(function(qo){return qo.option})}),$o=Mr?qr:qr[0],Qo=Mr?no:no[0];en($o,Qo)}}),$n=(0,Me.Z)(function(eo){if((!Mr||an)&&Ho(""),!Mr)ai(eo);else{var qr=ft(eo),no=Ge(cn),$o=Ge(jn),Qo=no.includes(qr),pa=Dn.some(function(ma){return ft(ma)===qr}),qo=cn,Pn=Dn;if(pa&&!Qo)Pn=Dn.filter(function(ma){return ft(ma)!==qr});else{var ca=Qo?no.filter(function(ma){return ma!==qr}):[].concat((0,xe.Z)(no),[qr]),es=Tr(),ts;if(Qo){var Ga=(0,Ct.S)(ca,{checked:!1,halfCheckedKeys:$o},es);ts=Ga.checkedKeys}else{var Ds=(0,Ct.S)(ca,!0,es);ts=Ds.checkedKeys}var pl=Bt(ts,Tr,Mi);qo=An(pl)}ai([].concat((0,xe.Z)(Pn),(0,xe.Z)(qo)))}}),Ii=function(qr,no){if(no.type==="clear"){ai([]);return}var $o=no.values[0],Qo=$o.valueCells;$n(Qo)},Bi=vn!==void 0?vn:Rt,gi=vi||bi,Yi=yi||ei,On=function(qr){Fi==null||Fi(qr),Ki==null||Ki(qr)},$r=Ie.useMemo(function(){return{options:Mn,fieldNames:nr,values:cn,halfValues:jn,changeOnSelect:tt,onSelect:$n,checkable:xt,searchOptions:zi,dropdownPrefixCls:Qn,loadData:Xn,expandTrigger:Pt,expandIcon:Gn,loadingIcon:Li,dropdownMenuColumnStyle:pi}},[Mn,nr,cn,jn,tt,$n,xt,zi,Qn,Xn,Pt,Gn,Li,pi]),Ur=!(xr?zi:Mn).length,Ao=xr&&Yr.matchInputWidth||Ur?{}:{minWidth:"auto"};return Ie.createElement(ce.Provider,{value:$r},Ie.createElement(gt.Ac,(0,Tt.Z)({},ar,{ref:oi,id:Wi,prefixCls:on,autoClearSearchValue:an,dropdownMatchSelectWidth:Pr,dropdownStyle:Ao,displayValues:kn,onDisplayValuesChange:Ii,mode:Mr?"multiple":void 0,searchValue:xr,onSearch:ho,showSearch:pr,OptionList:Bn,emptyOptions:Ur,open:Bi,dropdownClassName:gi,placement:Yi,onDropdownVisibleChange:On,getRawInputElement:function(){return Lr}})))});at.SHOW_PARENT=et,at.SHOW_CHILD=Xe;var Ve=at,Be=Ve,we=ye(64002),me=ye(62892),De=ye(53487),Re=ye(19080),Le=ye(36355),st=ye(93891),Vt=ye(1684),sn=ye(19716),ln=ye(32441),Hn=ye(14154),wi=ye(58582),Pi=ye(84443),Ri=ye(66339),Zi=ye(33234),Ln=ye(98447),rr=ye(17313),Kr=ye(74207),Vr=ye(83116);const jr=yn=>{const{prefixCls:oi,componentCls:Ci,antCls:xn}=yn,on=`${Ci}-menu-item`,yt=`
&${on}-expand ${on}-expand-icon,
${on}-loading-icon
`;return[{[Ci]:{width:yn.controlWidth}},{[`${Ci}-dropdown`]:[(0,Ln.C2)(`${oi}-checkbox`,yn),{[`&${xn}-select-dropdown`]:{padding:0}},{[Ci]:{"&-checkbox":{top:0,marginInlineEnd:yn.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Ci}-menu-empty`]:{[`${Ci}-menu`]:{width:"100%",height:"auto",[on]:{color:yn.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:yn.controlItemWidth,height:yn.dropdownHeight,margin:0,padding:yn.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${yn.lineWidth}px ${yn.lineType} ${yn.colorSplit}`},"&-item":Object.assign(Object.assign({},rr.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:yn.optionPadding,lineHeight:yn.lineHeight,cursor:"pointer",transition:`all ${yn.motionDurationMid}`,borderRadius:yn.borderRadiusSM,"&:hover":{background:yn.controlItemBgHover},"&-disabled":{color:yn.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[yt]:{color:yn.colorTextDisabled}},[`&-active:not(${on}-disabled)`]:{"&, &:hover":{fontWeight:yn.optionSelectedFontWeight,backgroundColor:yn.optionSelectedBg}},"&-content":{flex:"auto"},[yt]:{marginInlineStart:yn.paddingXXS,color:yn.colorTextDescription,fontSize:yn.fontSizeIcon},"&-keyword":{color:yn.colorHighlight}})}}}]},{[`${Ci}-dropdown-rtl`]:{direction:"rtl"}},(0,Kr.c)(yn)]};var li=(0,Vr.Z)("Cascader",yn=>[jr(yn)],yn=>{const oi=Math.round((yn.controlHeight-yn.fontSize*yn.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:yn.controlItemBgActive,optionSelectedFontWeight:yn.fontWeightStrong,optionPadding:`${oi}px ${yn.paddingSM}px`,menuPadding:yn.paddingXXS}}),Ti=function(yn,oi){var Ci={};for(var xn in yn)Object.prototype.hasOwnProperty.call(yn,xn)&&oi.indexOf(xn)<0&&(Ci[xn]=yn[xn]);if(yn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var on=0,xn=Object.getOwnPropertySymbols(yn);on<xn.length;on++)oi.indexOf(xn[on])<0&&Object.prototype.propertyIsEnumerable.call(yn,xn[on])&&(Ci[xn[on]]=yn[xn[on]]);return Ci};const{SHOW_CHILD:vr,SHOW_PARENT:ui}=Be;function Ir(yn,oi,Ci){const xn=yn.toLowerCase().split(oi).reduce((Et,Lt,tt)=>tt===0?[Lt]:[].concat((0,xe.Z)(Et),[oi,Lt]),[]),on=[];let yt=0;return xn.forEach((Et,Lt)=>{const tt=yt+Et.length;let en=yn.slice(yt,tt);yt=tt,Lt%2===1&&(en=Ie.createElement("span",{className:`${Ci}-menu-item-keyword`,key:`separator-${Lt}`},en)),on.push(en)}),on}const zn=(yn,oi,Ci,xn)=>{const on=[],yt=yn.toLowerCase();return oi.forEach((Et,Lt)=>{Lt!==0&&on.push(" / ");let tt=Et[xn.label];const en=typeof tt;(en==="string"||en==="number")&&(tt=Ir(String(tt),yt,Ci)),on.push(tt)}),on},Ee=Ie.forwardRef((yn,oi)=>{const{prefixCls:Ci,size:xn,disabled:on,className:yt,rootClassName:Et,multiple:Lt,bordered:tt=!0,transitionName:en,choiceTransitionName:fn="",popupClassName:xt,dropdownClassName:Ue,expandIcon:an,placement:Dt,showSearch:Rn,allowClear:dn=!0,notFoundContent:Pt,direction:Sn,getPopupContainer:Qn,status:Xn,showArrow:Rt,builtinPlacements:vn,style:bi}=yn,vi=Ti(yn,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),pi=(0,we.Z)(vi,["suffixIcon"]),{getPopupContainer:ei,getPrefixCls:yi,renderEmpty:Fi,direction:Ki,popupOverflow:hr,cascader:Gn}=Ie.useContext(Le.E_),Li=Sn||Ki,Lr=Li==="rtl",{status:Dr,hasFeedback:Pr,isFormItemInput:Xt,feedbackIcon:Mi}=Ie.useContext(ln.aM),ar=(0,Re.F)(Dr,Xn),Wi=Pt||(Fi==null?void 0:Fi("Cascader"))||Ie.createElement(st.Z,{componentName:"Cascader"}),Mr=yi(),fr=yi("select",Ci),Br=yi("cascader",Ci),[Oi,$i]=(0,Hn.Z)(fr),[nr]=li(Br),{compactSize:Mn,compactItemClassnames:Tr}=(0,Zi.ri)(fr,Sn),An=Ne()(xt||Ue,`${Br}-dropdown`,{[`${Br}-dropdown-rtl`]:Li==="rtl"},Et,$i),yr=Ie.useMemo(()=>{if(!Rn)return Rn;let Dn={render:zn};return typeof Rn=="object"&&(Dn=Object.assign(Object.assign({},Dn),Rn)),Dn},[Rn]),_r=(0,sn.Z)(Dn=>{var Wt;return(Wt=xn!=null?xn:Mn)!==null&&Wt!==void 0?Wt:Dn}),xr=Ie.useContext(Vt.Z),Ho=on!=null?on:xr;let ho=an;an||(ho=Lr?Ie.createElement(We.Z,null):Ie.createElement(Qe.Z,null));const Sr=Ie.createElement("span",{className:`${fr}-menu-item-loading-icon`},Ie.createElement(It.Z,{spin:!0})),gr=Ie.useMemo(()=>Lt?Ie.createElement("span",{className:`${Br}-checkbox-inner`}):!1,[Lt]),pr=(0,Pi.Z)(yn.suffixIcon,Rt),{suffixIcon:Yr,removeIcon:zi,clearIcon:Je}=(0,Ri.Z)(Object.assign(Object.assign({},yn),{hasFeedback:Pr,feedbackIcon:Mi,showSuffixIcon:pr,multiple:Lt,prefixCls:fr,componentName:"Cascader"})),pt=Ie.useMemo(()=>Dt!==void 0?Dt:Lr?"bottomRight":"bottomLeft",[Dt,Lr]),Ot=(0,wi.Z)(vn,hr),cn=dn===!0?{clearIcon:Je}:dn,jn=Ie.createElement(Be,Object.assign({prefixCls:fr,className:Ne()(!Ci&&Br,{[`${fr}-lg`]:_r==="large",[`${fr}-sm`]:_r==="small",[`${fr}-rtl`]:Lr,[`${fr}-borderless`]:!tt,[`${fr}-in-form-item`]:Xt},(0,Re.Z)(fr,ar,Pr),Tr,Gn==null?void 0:Gn.className,yt,Et,$i),disabled:Ho,style:Object.assign(Object.assign({},Gn==null?void 0:Gn.style),bi)},pi,{builtinPlacements:Ot,direction:Li,placement:pt,notFoundContent:Wi,allowClear:cn,showSearch:yr,expandIcon:ho,suffixIcon:Yr,removeIcon:zi,loadingIcon:Sr,checkable:gr,dropdownClassName:An,dropdownPrefixCls:Ci||Br,choiceTransitionName:(0,me.m)(Mr,"",fn),transitionName:(0,me.m)(Mr,"slide-up",en),getPopupContainer:Qn||ei,ref:oi}));return nr(Oi(jn))}),cr=(0,De.Z)(Ee);Ee.SHOW_PARENT=ui,Ee.SHOW_CHILD=vr,Ee._InternalPanelDoNotUseOrYouWillBeFired=cr;var Xi=Ee},24905:function(In,Fn,ye){"use strict";ye.d(Fn,{default:function(){return Te}});var xe=ye(92310),Ie=ye.n(xe),We=ye(5630),It=ye(59301),Qe=ye(36355),vt=ye(1684),Ne=ye(32441),Ft=It.createContext(null),qe=ye(98447),gt=ye(14088),dt=ye(4572),Ct=function(Ke,et){var Xe={};for(var ft in Ke)Object.prototype.hasOwnProperty.call(Ke,ft)&&et.indexOf(ft)<0&&(Xe[ft]=Ke[ft]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,ft=Object.getOwnPropertySymbols(Ke);Ge<ft.length;Ge++)et.indexOf(ft[Ge])<0&&Object.prototype.propertyIsEnumerable.call(Ke,ft[Ge])&&(Xe[ft[Ge]]=Ke[ft[Ge]]);return Xe};const Me=(Ke,et)=>{var Xe;const{prefixCls:ft,className:Ge,rootClassName:kt,children:$e,indeterminate:zt=!1,style:Ht,onMouseEnter:Yt,onMouseLeave:Bt,skipGroup:Qt=!1,disabled:ht}=Ke,je=Ct(Ke,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:At,direction:wn,checkbox:rn}=It.useContext(Qe.E_),bt=It.useContext(Ft),{isFormItemInput:Jt}=It.useContext(Ne.aM),un=It.useContext(vt.Z),Kn=(Xe=(bt==null?void 0:bt.disabled)||ht)!==null&&Xe!==void 0?Xe:un,En=It.useRef(je.value);It.useEffect(()=>{bt==null||bt.registerValue(je.value)},[]),It.useEffect(()=>{if(!Qt)return je.value!==En.current&&(bt==null||bt.cancelValue(En.current),bt==null||bt.registerValue(je.value),En.current=je.value),()=>bt==null?void 0:bt.cancelValue(je.value)},[je.value]);const Yn=At("checkbox",ft),[St,Vn]=(0,qe.ZP)(Yn),Cn=Object.assign({},je);bt&&!Qt&&(Cn.onChange=function(){je.onChange&&je.onChange.apply(je,arguments),bt.toggleOption&&bt.toggleOption({label:$e,value:je.value})},Cn.name=bt.name,Cn.checked=bt.value.includes(je.value));const Si=Ie()(`${Yn}-wrapper`,{[`${Yn}-rtl`]:wn==="rtl",[`${Yn}-wrapper-checked`]:Cn.checked,[`${Yn}-wrapper-disabled`]:Kn,[`${Yn}-wrapper-in-form-item`]:Jt},rn==null?void 0:rn.className,Ge,kt,Vn),Bn=Ie()({[`${Yn}-indeterminate`]:zt},dt.A,Vn),tn=zt?"mixed":void 0;return St(It.createElement(gt.Z,{component:"Checkbox",disabled:Kn},It.createElement("label",{className:Si,style:Object.assign(Object.assign({},rn==null?void 0:rn.style),Ht),onMouseEnter:Yt,onMouseLeave:Bt},It.createElement(We.Z,Object.assign({"aria-checked":tn},Cn,{prefixCls:Yn,className:Bn,disabled:Kn,ref:et})),$e!==void 0&&It.createElement("span",null,$e))))};var ne=It.forwardRef(Me),ce=ye(26390),se=ye(64002),ge=function(Ke,et){var Xe={};for(var ft in Ke)Object.prototype.hasOwnProperty.call(Ke,ft)&&et.indexOf(ft)<0&&(Xe[ft]=Ke[ft]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,ft=Object.getOwnPropertySymbols(Ke);Ge<ft.length;Ge++)et.indexOf(ft[Ge])<0&&Object.prototype.propertyIsEnumerable.call(Ke,ft[Ge])&&(Xe[ft[Ge]]=Ke[ft[Ge]]);return Xe};const ve=(Ke,et)=>{const{defaultValue:Xe,children:ft,options:Ge=[],prefixCls:kt,className:$e,rootClassName:zt,style:Ht,onChange:Yt}=Ke,Bt=ge(Ke,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Qt,direction:ht}=It.useContext(Qe.E_),[je,At]=It.useState(Bt.value||Xe||[]),[wn,rn]=It.useState([]);It.useEffect(()=>{"value"in Bt&&At(Bt.value||[])},[Bt.value]);const bt=It.useMemo(()=>Ge.map($t=>typeof $t=="string"||typeof $t=="number"?{label:$t,value:$t}:$t),[Ge]),Jt=$t=>{rn(ct=>ct.filter(ze=>ze!==$t))},un=$t=>{rn(ct=>[].concat((0,ce.Z)(ct),[$t]))},Kn=$t=>{const ct=je.indexOf($t.value),ze=(0,ce.Z)(je);ct===-1?ze.push($t.value):ze.splice(ct,1),"value"in Bt||At(ze),Yt==null||Yt(ze.filter(Ut=>wn.includes(Ut)).sort((Ut,Gt)=>{const at=bt.findIndex(Be=>Be.value===Ut),Ve=bt.findIndex(Be=>Be.value===Gt);return at-Ve}))},En=Qt("checkbox",kt),Yn=`${En}-group`,[St,Vn]=(0,qe.ZP)(En),Cn=(0,se.Z)(Bt,["value","disabled"]),Si=Ge.length?bt.map($t=>It.createElement(ne,{prefixCls:En,key:$t.value.toString(),disabled:"disabled"in $t?$t.disabled:Bt.disabled,value:$t.value,checked:je.includes($t.value),onChange:$t.onChange,className:`${Yn}-item`,style:$t.style,title:$t.title},$t.label)):ft,Bn={toggleOption:Kn,value:je,disabled:Bt.disabled,name:Bt.name,registerValue:un,cancelValue:Jt},tn=Ie()(Yn,{[`${Yn}-rtl`]:ht==="rtl"},$e,zt,Vn);return St(It.createElement("div",Object.assign({className:tn,style:Ht},Cn,{ref:et}),It.createElement(Ft.Provider,{value:Bn},Si)))},Ce=It.forwardRef(ve);var ke=It.memo(Ce);const Pe=ne;Pe.Group=ke,Pe.__ANT_CHECKBOX=!0;var Te=Pe},98447:function(In,Fn,ye){"use strict";ye.d(Fn,{C2:function(){return Qe}});var xe=ye(17313),Ie=ye(37613),We=ye(83116);const It=vt=>{const{checkboxCls:Ne}=vt,Tt=`${Ne}-wrapper`;return[{[`${Ne}-group`]:Object.assign(Object.assign({},(0,xe.Wf)(vt)),{display:"inline-flex",flexWrap:"wrap",columnGap:vt.marginXS,[`> ${vt.antCls}-row`]:{flex:1}}),[Tt]:Object.assign(Object.assign({},(0,xe.Wf)(vt)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Tt}`]:{marginInlineStart:0},[`&${Tt}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[Ne]:Object.assign(Object.assign({},(0,xe.Wf)(vt)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:vt.borderRadiusSM,alignSelf:"center",[`${Ne}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Ne}-inner`]:Object.assign({},(0,xe.oN)(vt))},[`${Ne}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:vt.checkboxSize,height:vt.checkboxSize,direction:"ltr",backgroundColor:vt.colorBgContainer,border:`${vt.lineWidth}px ${vt.lineType} ${vt.colorBorder}`,borderRadius:vt.borderRadiusSM,borderCollapse:"separate",transition:`all ${vt.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:vt.checkboxSize/14*5,height:vt.checkboxSize/14*8,border:`${vt.lineWidthBold}px solid ${vt.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${vt.motionDurationFast} ${vt.motionEaseInBack}, opacity ${vt.motionDurationFast}`}},"& + span":{paddingInlineStart:vt.paddingXS,paddingInlineEnd:vt.paddingXS}})},{[`
${Tt}:not(${Tt}-disabled),
${Ne}:not(${Ne}-disabled)
`]:{[`&:hover ${Ne}-inner`]:{borderColor:vt.colorPrimary}},[`${Tt}:not(${Tt}-disabled)`]:{[`&:hover ${Ne}-checked:not(${Ne}-disabled) ${Ne}-inner`]:{backgroundColor:vt.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Ne}-checked:not(${Ne}-disabled):after`]:{borderColor:vt.colorPrimaryHover}}},{[`${Ne}-checked`]:{[`${Ne}-inner`]:{backgroundColor:vt.colorPrimary,borderColor:vt.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${vt.motionDurationMid} ${vt.motionEaseOutBack} ${vt.motionDurationFast}`}}},[`
${Tt}-checked:not(${Tt}-disabled),
${Ne}-checked:not(${Ne}-disabled)
`]:{[`&:hover ${Ne}-inner`]:{backgroundColor:vt.colorPrimaryHover,borderColor:"transparent"}}},{[Ne]:{"&-indeterminate":{[`${Ne}-inner`]:{backgroundColor:vt.colorBgContainer,borderColor:vt.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:vt.fontSizeLG/2,height:vt.fontSizeLG/2,backgroundColor:vt.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Tt}-disabled`]:{cursor:"not-allowed"},[`${Ne}-disabled`]:{[`&, ${Ne}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Ne}-inner`]:{background:vt.colorBgContainerDisabled,borderColor:vt.colorBorder,"&:after":{borderColor:vt.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:vt.colorTextDisabled},[`&${Ne}-indeterminate ${Ne}-inner::after`]:{background:vt.colorTextDisabled}}}]};function Qe(vt,Ne){const Tt=(0,Ie.TS)(Ne,{checkboxCls:`.${vt}`,checkboxSize:Ne.controlInteractiveSize});return[It(Tt)]}Fn.ZP=(0,We.Z)("Checkbox",(vt,Ne)=>{let{prefixCls:Tt}=Ne;return[Qe(Tt,vt)]})},93891:function(In,Fn,ye){"use strict";var xe=ye(59301),Ie=ye(36355),We=ye(64165);const It=Qe=>{const{componentName:vt}=Qe,{getPrefixCls:Ne}=(0,xe.useContext)(Ie.E_),Tt=Ne("empty");switch(vt){case"Table":case"List":return xe.createElement(We.Z,{image:We.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return xe.createElement(We.Z,{image:We.Z.PRESENTED_IMAGE_SIMPLE,className:`${Tt}-small`});default:return xe.createElement(We.Z,null)}};Fn.Z=It},78550:function(In,Fn,ye){"use strict";ye.d(Fn,{default:function(){return ol}});var xe=ye(61186),Ie=ye.n(xe),We=ye(51395),It=ye(90111),Qe=ye.n(It),vt=ye(58319),Ne=ye.n(vt),Tt=ye(23250),Ft=ye.n(Tt),qe=ye(74959),gt=ye.n(qe),dt=ye(10238),Ct=ye.n(dt),Me=ye(33656),te=ye.n(Me);Ie().extend(te()),Ie().extend(Ct()),Ie().extend(Qe()),Ie().extend(Ne()),Ie().extend(Ft()),Ie().extend(gt()),Ie().extend(function(He,_e){var lt=_e.prototype,nn=lt.format;lt.format=function(Tn){var Wn=(Tn||"").replace("Wo","wo");return nn.bind(this)(Wn)}});var ne={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},ce=function(_e){var lt=ne[_e];return lt||_e.split("_")[0]},se=function(){(0,We.ET)(!1,"Not match any format. Please help to fire a issue about this.")},ge={getNow:function(){return Ie()()},getFixedDate:function(_e){return Ie()(_e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(_e){return _e.endOf("month")},getWeekDay:function(_e){var lt=_e.locale("en");return lt.weekday()+lt.localeData().firstDayOfWeek()},getYear:function(_e){return _e.year()},getMonth:function(_e){return _e.month()},getDate:function(_e){return _e.date()},getHour:function(_e){return _e.hour()},getMinute:function(_e){return _e.minute()},getSecond:function(_e){return _e.second()},addYear:function(_e,lt){return _e.add(lt,"year")},addMonth:function(_e,lt){return _e.add(lt,"month")},addDate:function(_e,lt){return _e.add(lt,"day")},setYear:function(_e,lt){return _e.year(lt)},setMonth:function(_e,lt){return _e.month(lt)},setDate:function(_e,lt){return _e.date(lt)},setHour:function(_e,lt){return _e.hour(lt)},setMinute:function(_e,lt){return _e.minute(lt)},setSecond:function(_e,lt){return _e.second(lt)},isAfter:function(_e,lt){return _e.isAfter(lt)},isValidate:function(_e){return _e.isValid()},locale:{getWeekFirstDay:function(_e){return Ie()().locale(ce(_e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(_e,lt){return lt.locale(ce(_e)).weekday(0)},getWeek:function(_e,lt){return lt.locale(ce(_e)).week()},getShortWeekDays:function(_e){return Ie()().locale(ce(_e)).localeData().weekdaysMin()},getShortMonths:function(_e){return Ie()().locale(ce(_e)).localeData().monthsShort()},format:function(_e,lt,nn){return lt.locale(ce(_e)).format(nn)},parse:function(_e,lt,nn){for(var hn=ce(_e),Tn=0;Tn<nn.length;Tn+=1){var Wn=nn[Tn],ri=lt;if(Wn.includes("wo")||Wn.includes("Wo")){for(var ci=ri.split("-")[0],ki=ri.split("-")[1],lr=Ie()(ci,"YYYY").startOf("year").locale(hn),Ai=0;Ai<=52;Ai+=1){var qi=lr.add(Ai,"week");if(qi.format("Wo")===ki)return qi}return se(),null}var Ei=Ie()(ri,Wn,!0).locale(hn);if(Ei.isValid())return Ei}return lt&&se(),null}}},ve=ge,Ce=ye(53487),ke=ye(5891),Pe=ye(59301),Te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},Ke=Te,et=ye(88853),Xe=function(_e,lt){return Pe.createElement(et.Z,(0,ke.Z)({},_e,{ref:lt,icon:Ke}))},ft=Pe.forwardRef(Xe),Ge=ft,kt={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:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},$e=kt,zt=function(_e,lt){return Pe.createElement(et.Z,(0,ke.Z)({},_e,{ref:lt,icon:$e}))},Ht=Pe.forwardRef(zt),Yt=Ht,Bt=ye(33130),Qt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},ht=Qt,je=function(_e,lt){return Pe.createElement(et.Z,(0,ke.Z)({},_e,{ref:lt,icon:ht}))},At=Pe.forwardRef(je),wn=At,rn=ye(92310),bt=ye.n(rn),Jt=ye(79545),un=ye(68550),Kn=ye(21882),En=ye(17928),Yn=ye(7711),St=ye(80962),Vn=ye(57259),Cn=ye(29043),Si=ye(35788),Bn=ye(36994),tn=ye(79722),$t=ye(51346),ct=10,ze=ct*10,Ut=7;function Gt(He,_e){if(!He&&!_e)return!0;if(!He||!_e)return!1}function at(He,_e,lt){var nn=Gt(_e,lt);if(typeof nn=="boolean")return nn;var hn=Math.floor(He.getYear(_e)/10),Tn=Math.floor(He.getYear(lt)/10);return hn===Tn}function Ve(He,_e,lt){var nn=Gt(_e,lt);return typeof nn=="boolean"?nn:He.getYear(_e)===He.getYear(lt)}function Be(He,_e){var lt=Math.floor(He.getMonth(_e)/3);return lt+1}function we(He,_e,lt){var nn=Gt(_e,lt);return typeof nn=="boolean"?nn:Ve(He,_e,lt)&&Be(He,_e)===Be(He,lt)}function me(He,_e,lt){var nn=Gt(_e,lt);return typeof nn=="boolean"?nn:Ve(He,_e,lt)&&He.getMonth(_e)===He.getMonth(lt)}function De(He,_e,lt){var nn=Gt(_e,lt);return typeof nn=="boolean"?nn:He.getYear(_e)===He.getYear(lt)&&He.getMonth(_e)===He.getMonth(lt)&&He.getDate(_e)===He.getDate(lt)}function Re(He,_e,lt){var nn=Gt(_e,lt);return typeof nn=="boolean"?nn:He.getHour(_e)===He.getHour(lt)&&He.getMinute(_e)===He.getMinute(lt)&&He.getSecond(_e)===He.getSecond(lt)}function Le(He,_e,lt,nn){var hn=Gt(lt,nn);return typeof hn=="boolean"?hn:Ve(He,lt,nn)&&He.locale.getWeek(_e,lt)===He.locale.getWeek(_e,nn)}function st(He,_e,lt){return De(He,_e,lt)&&Re(He,_e,lt)}function Vt(He,_e,lt,nn){return!_e||!lt||!nn?!1:!De(He,_e,nn)&&!De(He,lt,nn)&&He.isAfter(nn,_e)&&He.isAfter(lt,nn)}function sn(He,_e,lt){var nn=_e.locale.getWeekFirstDay(He),hn=_e.setDate(lt,1),Tn=_e.getWeekDay(hn),Wn=_e.addDate(hn,nn-Tn);return _e.getMonth(Wn)===_e.getMonth(lt)&&_e.getDate(Wn)>1&&(Wn=_e.addDate(Wn,-7)),Wn}function ln(He,_e,lt){var nn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(_e){case"year":return lt.addYear(He,nn*10);case"quarter":case"month":return lt.addYear(He,nn);default:return lt.addMonth(He,nn)}}function Hn(He,_e){var lt=_e.generateConfig,nn=_e.locale,hn=_e.format;return typeof hn=="function"?hn(He):lt.locale.format(nn.locale,He,hn)}function wi(He,_e){var lt=_e.generateConfig,nn=_e.locale,hn=_e.formatList;return!He||typeof hn[0]=="function"?null:lt.locale.parse(nn.locale,He,hn)}function Pi(He){var _e=He.cellDate,lt=He.mode,nn=He.disabledDate,hn=He.generateConfig;if(!nn)return!1;var Tn=function(Cr,ti,er){for(var br=ti;br<=er;){var fo=void 0;switch(Cr){case"date":{if(fo=hn.setDate(_e,br),!nn(fo))return!1;break}case"month":{if(fo=hn.setMonth(_e,br),!Pi({cellDate:fo,mode:"month",generateConfig:hn,disabledDate:nn}))return!1;break}case"year":{if(fo=hn.setYear(_e,br),!Pi({cellDate:fo,mode:"year",generateConfig:hn,disabledDate:nn}))return!1;break}}br+=1}return!0};switch(lt){case"date":case"week":return nn(_e);case"month":{var Wn=1,ri=hn.getDate(hn.getEndDate(_e));return Tn("date",Wn,ri)}case"quarter":{var ci=Math.floor(hn.getMonth(_e)/3)*3,ki=ci+2;return Tn("month",ci,ki)}case"year":return Tn("month",0,11);case"decade":{var lr=hn.getYear(_e),Ai=Math.floor(lr/ct)*ct,qi=Ai+ct-1;return Tn("year",Ai,qi)}}}function Ri(He,_e){var lt=_e.formatList,nn=_e.generateConfig,hn=_e.locale;return(0,tn.Z)(function(){if(!He)return[[""],""];for(var Tn="",Wn=[],ri=0;ri<lt.length;ri+=1){var ci=lt[ri],ki=Hn(He,{generateConfig:nn,locale:hn,format:ci});Wn.push(ki),ri===0&&(Tn=ki)}return[Wn,Tn]},[He,lt,hn],function(Tn,Wn){return!st(nn,Tn[0],Wn[0])||!(0,$t.Z)(Tn[1],Wn[1],!0)||!(0,$t.Z)(Tn[2],Wn[2],!0)})}function Zi(He,_e){var lt=_e.formatList,nn=_e.generateConfig,hn=_e.locale,Tn=(0,Pe.useState)(null),Wn=(0,Cn.Z)(Tn,2),ri=Wn[0],ci=Wn[1],ki=(0,Pe.useRef)(null);function lr(er){var br=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(ki.current),br){ci(er);return}ki.current=requestAnimationFrame(function(){ci(er)})}var Ai=Ri(ri,{formatList:lt,generateConfig:nn,locale:hn}),qi=(0,Cn.Z)(Ai,2),Ei=qi[1];function Cr(er){lr(er)}function ti(){var er=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;lr(null,er)}return(0,Pe.useEffect)(function(){ti(!0)},[He]),(0,Pe.useEffect)(function(){return function(){return cancelAnimationFrame(ki.current)}},[]),[Ei,Cr,ti]}var Ln=ye(85108),rr=ye(23073),Kr=ye(26390),Vr=ye(48886),jr=new Map;function li(He,_e){var lt;function nn(){(0,Vr.Z)(He)?_e():lt=(0,rr.Z)(function(){nn()})}return nn(),function(){rr.Z.cancel(lt)}}function Ti(He,_e,lt){if(jr.get(He)&&cancelAnimationFrame(jr.get(He)),lt<=0){jr.set(He,requestAnimationFrame(function(){He.scrollTop=_e}));return}var nn=_e-He.scrollTop,hn=nn/lt*10;jr.set(He,requestAnimationFrame(function(){He.scrollTop+=hn,He.scrollTop!==_e&&Ti(He,_e,lt-10)}))}function vr(He,_e){var lt=_e.onLeftRight,nn=_e.onCtrlLeftRight,hn=_e.onUpDown,Tn=_e.onPageUpDown,Wn=_e.onEnter,ri=He.which,ci=He.ctrlKey,ki=He.metaKey;switch(ri){case Ln.Z.LEFT:if(ci||ki){if(nn)return nn(-1),!0}else if(lt)return lt(-1),!0;break;case Ln.Z.RIGHT:if(ci||ki){if(nn)return nn(1),!0}else if(lt)return lt(1),!0;break;case Ln.Z.UP:if(hn)return hn(-1),!0;break;case Ln.Z.DOWN:if(hn)return hn(1),!0;break;case Ln.Z.PAGE_UP:if(Tn)return Tn(-1),!0;break;case Ln.Z.PAGE_DOWN:if(Tn)return Tn(1),!0;break;case Ln.Z.ENTER:if(Wn)return Wn(),!0;break}return!1}function ui(He,_e,lt,nn){var hn=He;if(!hn)switch(_e){case"time":hn=nn?"hh:mm:ss a":"HH:mm:ss";break;case"week":hn="gggg-wo";break;case"month":hn="YYYY-MM";break;case"quarter":hn="YYYY-[Q]Q";break;case"year":hn="YYYY";break;default:hn=lt?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return hn}function Ir(He,_e,lt){var nn=He==="time"?8:10,hn=typeof _e=="function"?_e(lt.getNow()).length:_e.length;return Math.max(nn,hn)+2}var zn=null,Ee=new Set;function cr(He){return!zn&&typeof window!="undefined"&&window.addEventListener&&(zn=function(lt){(0,Kr.Z)(Ee).forEach(function(nn){nn(lt)})},window.addEventListener("mousedown",zn)),Ee.add(He),function(){Ee.delete(He),Ee.size===0&&(window.removeEventListener("mousedown",zn),zn=null)}}function Xi(He){var _e=He.target;if(He.composed&&_e.shadowRoot){var lt;return((lt=He.composedPath)===null||lt===void 0?void 0:lt.call(He)[0])||_e}return _e}var yn=function(_e){return _e==="month"||_e==="date"?"year":_e},oi=function(_e){return _e==="date"?"month":_e},Ci=function(_e){return _e==="month"||_e==="date"?"quarter":_e},xn=function(_e){return _e==="date"?"week":_e},on={year:yn,month:oi,quarter:Ci,week:xn,time:null,date:null};function yt(He,_e){return He.some(function(lt){return lt&&lt.contains(_e)})}function Et(He){var _e=He.open,lt=He.value,nn=He.isClickOutside,hn=He.triggerOpen,Tn=He.forwardKeyDown,Wn=He.onKeyDown,ri=He.blurToCancel,ci=He.onSubmit,ki=He.onCancel,lr=He.onFocus,Ai=He.onBlur,qi=He.changeOnBlur,Ei=(0,Pe.useState)(!1),Cr=(0,Cn.Z)(Ei,2),ti=Cr[0],er=Cr[1],br=(0,Pe.useState)(!1),fo=(0,Cn.Z)(br,2),ro=fo[0],vo=fo[1],yo=(0,Pe.useRef)(!1),po=(0,Pe.useRef)(!1),ur=(0,Pe.useRef)(!1),aa={onMouseDown:function(){er(!0),hn(!0)},onKeyDown:function(Sa){var Ka=function(){ur.current=!0};if(Wn(Sa,Ka),!ur.current){switch(Sa.which){case Ln.Z.ENTER:{_e?ci()!==!1&&er(!0):hn(!0),Sa.preventDefault();return}case Ln.Z.TAB:{ti&&_e&&!Sa.shiftKey?(er(!1),Sa.preventDefault()):!ti&&_e&&!Tn(Sa)&&Sa.shiftKey&&(er(!0),Sa.preventDefault());return}case Ln.Z.ESC:{er(!0),ki();return}}!_e&&![Ln.Z.SHIFT].includes(Sa.which)?hn(!0):ti||Tn(Sa)}},onFocus:function(Sa){er(!0),vo(!0),lr&&lr(Sa)},onBlur:function(Sa){if(yo.current||!nn(document.activeElement)){yo.current=!1;return}ri?setTimeout(function(){for(var Ka=document,Ha=Ka.activeElement;Ha&&Ha.shadowRoot;)Ha=Ha.shadowRoot.activeElement;nn(Ha)&&ki()},0):_e&&(hn(!1),po.current&&ci()),vo(!1),Ai==null||Ai(Sa)}};return(0,Pe.useEffect)(function(){po.current=!1},[_e]),(0,Pe.useEffect)(function(){po.current=!0},[lt]),(0,Pe.useEffect)(function(){return cr(function(ea){var Sa=Xi(ea),Ka=nn(Sa);_e&&(Ka?!qi&&(!ro||Ka)&&hn(!1):(yo.current=!0,(0,rr.Z)(function(){yo.current=!1})))})}),[aa,{focused:ro,typing:ti}]}function Lt(He,_e){return Pe.useMemo(function(){return He||(_e?((0,We.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(_e).map(function(lt){var nn=(0,Cn.Z)(lt,2),hn=nn[0],Tn=nn[1];return{label:hn,value:Tn}})):[])},[He,_e])}var tt=ye(28800);function en(He){var _e=He.valueTexts,lt=He.onTextChange,nn=Pe.useState(""),hn=(0,Cn.Z)(nn,2),Tn=hn[0],Wn=hn[1],ri=Pe.useRef([]);ri.current=_e;function ci(lr){Wn(lr),lt(lr)}function ki(){Wn(ri.current[0])}return(0,tt.Z)(function(){_e.every(function(lr){return lr!==Tn})&&ki()},[_e.join("||")]),[Tn,ci,ki]}var fn=Pe.createContext({}),xt=fn,Ue=ye(80665);function an(He){var _e=He.cellRender,lt=He.monthCellRender,nn=He.dateRender,hn=Pe.useMemo(function(){if(_e)return _e;if(!(!lt&&!nn))return function(Tn,Wn){var ri=Tn;return nn&&Wn.type==="date"?nn(ri,Wn.today):lt&&Wn.type==="month"?lt(ri,Wn.locale):Wn.originNode}},[_e,lt,nn]);return hn}function Dt(He,_e){for(var lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",nn=String(He);nn.length<_e;)nn="".concat(lt).concat(He);return nn}var Rn=function(){for(var _e=arguments.length,lt=new Array(_e),nn=0;nn<_e;nn++)lt[nn]=arguments[nn];return lt};function dn(He){return He==null?[]:Array.isArray(He)?He:[He]}function Pt(He,_e){return He?He[_e]:null}function Sn(He,_e,lt){var nn=[Pt(He,0),Pt(He,1)];return nn[lt]=typeof _e=="function"?_e(nn[lt]):_e,!nn[0]&&!nn[1]?null:nn}function Qn(He){return typeof He=="function"?He():He}function Xn(He){var _e=He.cellPrefixCls,lt=He.generateConfig,nn=He.rangedValue,hn=He.hoverRangedValue,Tn=He.isInView,Wn=He.isSameCell,ri=He.offsetCell,ci=He.today,ki=He.value;function lr(Ai){var qi,Ei=ri(Ai,-1),Cr=ri(Ai,1),ti=Pt(nn,0),er=Pt(nn,1),br=Pt(hn,0),fo=Pt(hn,1),ro=Vt(lt,br,fo,Ai);function vo(Sa){return Wn(ti,Sa)}function yo(Sa){return Wn(er,Sa)}var po=Wn(br,Ai),ur=Wn(fo,Ai),aa=(ro||ur)&&(!Tn(Ei)||yo(Ei)),ea=(ro||po)&&(!Tn(Cr)||vo(Cr));return qi={},(0,St.Z)(qi,"".concat(_e,"-in-view"),Tn(Ai)),(0,St.Z)(qi,"".concat(_e,"-in-range"),Vt(lt,ti,er,Ai)),(0,St.Z)(qi,"".concat(_e,"-range-start"),vo(Ai)),(0,St.Z)(qi,"".concat(_e,"-range-end"),yo(Ai)),(0,St.Z)(qi,"".concat(_e,"-range-start-single"),vo(Ai)&&!er),(0,St.Z)(qi,"".concat(_e,"-range-end-single"),yo(Ai)&&!ti),(0,St.Z)(qi,"".concat(_e,"-range-start-near-hover"),vo(Ai)&&(Wn(Ei,br)||Vt(lt,br,fo,Ei))),(0,St.Z)(qi,"".concat(_e,"-range-end-near-hover"),yo(Ai)&&(Wn(Cr,fo)||Vt(lt,br,fo,Cr))),(0,St.Z)(qi,"".concat(_e,"-range-hover"),ro),(0,St.Z)(qi,"".concat(_e,"-range-hover-start"),po),(0,St.Z)(qi,"".concat(_e,"-range-hover-end"),ur),(0,St.Z)(qi,"".concat(_e,"-range-hover-edge-start"),aa),(0,St.Z)(qi,"".concat(_e,"-range-hover-edge-end"),ea),(0,St.Z)(qi,"".concat(_e,"-range-hover-edge-start-near-range"),aa&&Wn(Ei,er)),(0,St.Z)(qi,"".concat(_e,"-range-hover-edge-end-near-range"),ea&&Wn(Cr,ti)),(0,St.Z)(qi,"".concat(_e,"-today"),Wn(ci,Ai)),(0,St.Z)(qi,"".concat(_e,"-selected"),Wn(ki,Ai)),qi}return lr}var Rt=Pe.createContext({}),vn=Rt;function bi(He,_e,lt,nn,hn){var Tn=He.setHour(_e,lt);return Tn=He.setMinute(Tn,nn),Tn=He.setSecond(Tn,hn),Tn}function vi(He,_e,lt){if(!lt)return _e;var nn=_e;return nn=He.setHour(nn,He.getHour(lt)),nn=He.setMinute(nn,He.getMinute(lt)),nn=He.setSecond(nn,He.getSecond(lt)),nn}function pi(He,_e,lt,nn,hn,Tn){var Wn=Math.floor(He/nn)*nn;if(Wn<He)return[Wn,60-hn,60-Tn];var ri=Math.floor(_e/hn)*hn;if(ri<_e)return[Wn,ri,60-Tn];var ci=Math.floor(lt/Tn)*Tn;return[Wn,ri,ci]}function ei(He,_e){var lt=He.getYear(_e),nn=He.getMonth(_e)+1,hn=He.getEndDate(He.getFixedDate("".concat(lt,"-").concat(nn,"-01"))),Tn=He.getDate(hn),Wn=nn<10?"0".concat(nn):"".concat(nn);return"".concat(lt,"-").concat(Wn,"-").concat(Tn)}function yi(He){for(var _e=He.prefixCls,lt=He.disabledDate,nn=He.onSelect,hn=He.picker,Tn=He.rowNum,Wn=He.colNum,ri=He.prefixColumn,ci=He.rowClassName,ki=He.baseDate,lr=He.getCellClassName,Ai=He.getCellText,qi=He.getCellNode,Ei=He.getCellDate,Cr=He.generateConfig,ti=He.titleCell,er=He.headerCells,br=Pe.useContext(xt),fo=br.onDateMouseEnter,ro=br.onDateMouseLeave,vo=br.mode,yo="".concat(_e,"-cell"),po=[],ur=0;ur<Tn;ur+=1){for(var aa=[],ea=void 0,Sa=function(){var Ba,fs=ur*Wn+Ka,La=Ei(ki,fs),Ca=Pi({cellDate:La,mode:vo,disabledDate:lt,generateConfig:Cr});Ka===0&&(ea=La,ri&&aa.push(ri(ea)));var Ta=ti&&ti(La),as=Pe.createElement("div",{className:"".concat(yo,"-inner")},Ai(La));aa.push(Pe.createElement("td",{key:Ka,title:Ta,className:bt()(yo,(0,Vn.Z)((Ba={},(0,St.Z)(Ba,"".concat(yo,"-disabled"),Ca),(0,St.Z)(Ba,"".concat(yo,"-start"),Ai(La)===1||hn==="year"&&Number(Ta)%10===0),(0,St.Z)(Ba,"".concat(yo,"-end"),Ta===ei(Cr,La)||hn==="year"&&Number(Ta)%10===9),Ba),lr(La))),onClick:function(){Ca||nn(La)},onMouseEnter:function(){!Ca&&fo&&fo(La)},onMouseLeave:function(){!Ca&&ro&&ro(La)}},qi?qi(La,as):as))},Ka=0;Ka<Wn;Ka+=1)Sa();po.push(Pe.createElement("tr",{key:ur,className:ci&&ci(ea)},aa))}return Pe.createElement("div",{className:"".concat(_e,"-body")},Pe.createElement("table",{className:"".concat(_e,"-content")},er&&Pe.createElement("thead",null,Pe.createElement("tr",null,er)),Pe.createElement("tbody",null,po)))}function Fi(He){var _e=He.prefixCls,lt=He.generateConfig,nn=He.prefixColumn,hn=He.locale,Tn=He.rowCount,Wn=He.viewDate,ri=He.value,ci=He.cellRender,ki=He.isSameCell,lr=Pe.useContext(vn),Ai=lr.rangedValue,qi=lr.hoverRangedValue,Ei=sn(hn.locale,lt,Wn),Cr="".concat(_e,"-cell"),ti=lt.locale.getWeekFirstDay(hn.locale),er=lt.getNow(),br=[],fo=hn.shortWeekDays||(lt.locale.getShortWeekDays?lt.locale.getShortWeekDays(hn.locale):[]);nn&&br.push(Pe.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var ro=0;ro<Ut;ro+=1)br.push(Pe.createElement("th",{key:ro},fo[(ro+ti)%Ut]));var vo=Xn({cellPrefixCls:Cr,today:er,value:ri,generateConfig:lt,rangedValue:nn?null:Ai,hoverRangedValue:nn?null:qi,isSameCell:ki||function(po,ur){return De(lt,po,ur)},isInView:function(ur){return me(lt,ur,Wn)},offsetCell:function(ur,aa){return lt.addDate(ur,aa)}}),yo=ci?function(po,ur){return ci(po,{originNode:ur,today:er,type:"date",locale:hn})}:void 0;return Pe.createElement(yi,(0,ke.Z)({},He,{rowNum:Tn,colNum:Ut,baseDate:Ei,getCellNode:yo,getCellText:lt.getDate,getCellClassName:vo,getCellDate:lt.addDate,titleCell:function(ur){return Hn(ur,{locale:hn,format:"YYYY-MM-DD",generateConfig:lt})},headerCells:br}))}var Ki=Fi,hr={visibility:"hidden"};function Gn(He){var _e=He.prefixCls,lt=He.prevIcon,nn=lt===void 0?"\u2039":lt,hn=He.nextIcon,Tn=hn===void 0?"\u203A":hn,Wn=He.superPrevIcon,ri=Wn===void 0?"\xAB":Wn,ci=He.superNextIcon,ki=ci===void 0?"\xBB":ci,lr=He.onSuperPrev,Ai=He.onSuperNext,qi=He.onPrev,Ei=He.onNext,Cr=He.children,ti=Pe.useContext(xt),er=ti.hideNextBtn,br=ti.hidePrevBtn;return Pe.createElement("div",{className:_e},lr&&Pe.createElement("button",{type:"button",onClick:lr,tabIndex:-1,className:"".concat(_e,"-super-prev-btn"),style:br?hr:{}},ri),qi&&Pe.createElement("button",{type:"button",onClick:qi,tabIndex:-1,className:"".concat(_e,"-prev-btn"),style:br?hr:{}},nn),Pe.createElement("div",{className:"".concat(_e,"-view")},Cr),Ei&&Pe.createElement("button",{type:"button",onClick:Ei,tabIndex:-1,className:"".concat(_e,"-next-btn"),style:er?hr:{}},Tn),Ai&&Pe.createElement("button",{type:"button",onClick:Ai,tabIndex:-1,className:"".concat(_e,"-super-next-btn"),style:er?hr:{}},ki))}var Li=Gn;function Lr(He){var _e=He.prefixCls,lt=He.generateConfig,nn=He.locale,hn=He.viewDate,Tn=He.onNextMonth,Wn=He.onPrevMonth,ri=He.onNextYear,ci=He.onPrevYear,ki=He.onYearClick,lr=He.onMonthClick,Ai=Pe.useContext(xt),qi=Ai.hideHeader;if(qi)return null;var Ei="".concat(_e,"-header"),Cr=nn.shortMonths||(lt.locale.getShortMonths?lt.locale.getShortMonths(nn.locale):[]),ti=lt.getMonth(hn),er=Pe.createElement("button",{type:"button",key:"year",onClick:ki,tabIndex:-1,className:"".concat(_e,"-year-btn")},Hn(hn,{locale:nn,format:nn.yearFormat,generateConfig:lt})),br=Pe.createElement("button",{type:"button",key:"month",onClick:lr,tabIndex:-1,className:"".concat(_e,"-month-btn")},nn.monthFormat?Hn(hn,{locale:nn,format:nn.monthFormat,generateConfig:lt}):Cr[ti]),fo=nn.monthBeforeYear?[br,er]:[er,br];return Pe.createElement(Li,(0,ke.Z)({},He,{prefixCls:Ei,onSuperPrev:ci,onPrev:Wn,onNext:Tn,onSuperNext:ri}),fo)}var Dr=Lr,Pr=6;function Xt(He){var _e=He.prefixCls,lt=He.panelName,nn=lt===void 0?"date":lt,hn=He.keyboardConfig,Tn=He.active,Wn=He.operationRef,ri=He.generateConfig,ci=He.value,ki=He.viewDate,lr=He.onViewDateChange,Ai=He.onPanelChange,qi=He.onSelect,Ei="".concat(_e,"-").concat(nn,"-panel");Wn.current={onKeyDown:function(br){return vr(br,(0,Vn.Z)({onLeftRight:function(ro){qi(ri.addDate(ci||ki,ro),"key")},onCtrlLeftRight:function(ro){qi(ri.addYear(ci||ki,ro),"key")},onUpDown:function(ro){qi(ri.addDate(ci||ki,ro*Ut),"key")},onPageUpDown:function(ro){qi(ri.addMonth(ci||ki,ro),"key")}},hn))}};var Cr=function(br){var fo=ri.addYear(ki,br);lr(fo),Ai(null,fo)},ti=function(br){var fo=ri.addMonth(ki,br);lr(fo),Ai(null,fo)};return Pe.createElement("div",{className:bt()(Ei,(0,St.Z)({},"".concat(Ei,"-active"),Tn))},Pe.createElement(Dr,(0,ke.Z)({},He,{prefixCls:_e,value:ci,viewDate:ki,onPrevYear:function(){Cr(-1)},onNextYear:function(){Cr(1)},onPrevMonth:function(){ti(-1)},onNextMonth:function(){ti(1)},onMonthClick:function(){Ai("month",ki)},onYearClick:function(){Ai("year",ki)}})),Pe.createElement(Ki,(0,ke.Z)({},He,{onSelect:function(br){return qi(br,"mouse")},prefixCls:_e,value:ci,viewDate:ki,rowCount:Pr})))}var Mi=Xt;function ar(He){var _e=Pe.useContext(xt),lt=_e.hideHeader;if(lt)return null;var nn=He.prefixCls,hn=He.generateConfig,Tn=He.locale,Wn=He.value,ri=He.format,ci="".concat(nn,"-header");return Pe.createElement(Li,{prefixCls:ci},Wn?Hn(Wn,{locale:Tn,format:ri,generateConfig:hn}):"\xA0")}var Wi=ar;function Mr(He){var _e=He.value,lt=He.generateConfig,nn=He.disabledMinutes,hn=He.disabledSeconds,Tn=He.minutes,Wn=He.seconds,ri=He.use12Hours,ci=function(lr,Ai,qi,Ei){var Cr=lt.getNow(),ti=_e||Cr,er=Ai<0?lt.getHour(Cr):Ai,br=qi<0?lt.getMinute(Cr):qi,fo=Ei<0?lt.getSecond(Cr):Ei,ro=nn&&nn(er);if(ro!=null&&ro.includes(br)){var vo=Tn.find(function(ur){return!ro.includes(ur.value)});if(vo)br=vo.value;else return null}var yo=hn&&hn(er,br);if(yo!=null&&yo.includes(fo)){var po=Wn.find(function(ur){return!yo.includes(ur.value)});if(po)fo=po.value;else return null}return ti=bi(lt,ti,!ri||!lr?er:er+12,br,fo),ti};return ci}function fr(He){var _e=He.prefixCls,lt=He.units,nn=He.onSelect,hn=He.value,Tn=He.active,Wn=He.hideDisabledOptions,ri=He.info,ci=He.type,ki="".concat(_e,"-cell"),lr=Pe.useContext(xt),Ai=lr.open,qi=(0,Pe.useRef)(null),Ei=(0,Pe.useRef)(new Map),Cr=(0,Pe.useRef)();return(0,Pe.useLayoutEffect)(function(){var ti=Ei.current.get(hn);ti&&Ai!==!1&&Ti(qi.current,ti.offsetTop,120)},[hn]),(0,Pe.useLayoutEffect)(function(){if(Ai){var ti=Ei.current.get(hn);ti&&(Cr.current=li(ti,function(){Ti(qi.current,ti.offsetTop,0)}))}return function(){var er;(er=Cr.current)===null||er===void 0||er.call(Cr)}},[Ai]),Pe.createElement("ul",{className:bt()("".concat(_e,"-column"),(0,St.Z)({},"".concat(_e,"-column-active"),Tn)),ref:qi,style:{position:"relative"}},lt.map(function(ti){var er;return Wn&&ti.disabled?null:Pe.createElement("li",{key:ti.value,ref:function(fo){Ei.current.set(ti.value,fo)},className:bt()(ki,(er={},(0,St.Z)(er,"".concat(ki,"-disabled"),ti.disabled),(0,St.Z)(er,"".concat(ki,"-selected"),hn===ti.value),er)),onClick:function(){ti.disabled||nn(ti.value)}},ri.cellRender?ri.cellRender(ti.value,{today:ri.today,locale:ri.locale,originNode:Pe.createElement("div",{className:"".concat(ki,"-inner")},ti.label),type:"time",subType:ci}):Pe.createElement("div",{className:"".concat(ki,"-inner")},ti.label))}))}var Br=fr;function Oi(He,_e){if(He.length!==_e.length)return!0;for(var lt=0;lt<He.length;lt+=1)if(He[lt].disabled!==_e[lt].disabled)return!0;return!1}function $i(He,_e,lt,nn){for(var hn=[],Tn=lt>=1?lt|0:1,Wn=He;Wn<=_e;Wn+=Tn)hn.push({label:Dt(Wn,2),value:Wn,disabled:(nn||[]).includes(Wn)});return hn}function nr(He){var _e=He.generateConfig,lt=He.prefixCls,nn=He.operationRef,hn=He.activeColumnIndex,Tn=He.value,Wn=He.showHour,ri=He.showMinute,ci=He.showSecond,ki=He.use12Hours,lr=He.hourStep,Ai=lr===void 0?1:lr,qi=He.minuteStep,Ei=qi===void 0?1:qi,Cr=He.secondStep,ti=Cr===void 0?1:Cr,er=He.disabledHours,br=He.disabledMinutes,fo=He.disabledSeconds,ro=He.disabledTime,vo=He.hideDisabledOptions,yo=He.onSelect,po=He.cellRender,ur=He.locale,aa=[],ea="".concat(lt,"-content"),Sa="".concat(lt,"-time-panel"),Ka,Ha=Tn?_e.getHour(Tn):-1,Ba=Ha,fs=Tn?_e.getMinute(Tn):-1,La=Tn?_e.getSecond(Tn):-1,Ca=_e.getNow(),Ta=Pe.useMemo(function(){if(ro){var ni=ro(Ca);return[ni.disabledHours,ni.disabledMinutes,ni.disabledSeconds]}return[er,br,fo]},[er,br,fo,ro,Ca]),as=(0,Cn.Z)(Ta,3),gs=as[0],Ja=as[1],Oa=as[2],Rs=$i(0,23,Ai,gs&&gs()),hl=(0,tn.Z)(function(){return Rs},Rs,Oi);ki&&(Ka=Ba>=12,Ba%=12);var nt=Pe.useMemo(function(){if(!ki)return[!1,!1];var ni=[!0,!0];return hl.forEach(function(mi){var _i=mi.disabled,Ji=mi.value;_i||(Ji>=12?ni[1]=!1:ni[0]=!1)}),ni},[ki,hl]),ut=(0,Cn.Z)(nt,2),_t=ut[0],qt=ut[1],bn=Pe.useMemo(function(){return ki?hl.filter(Ka?function(ni){return ni.value>=12}:function(ni){return ni.value<12}).map(function(ni){var mi=ni.value%12,_i=mi===0?"12":Dt(mi,2);return(0,Vn.Z)((0,Vn.Z)({},ni),{},{label:_i,value:mi})}):hl},[ki,Ka,hl]),gn=$i(0,59,Ei,Ja&&Ja(Ha)),Jn=$i(0,59,ti,Oa&&Oa(Ha,fs)),Un=Mr({value:Tn,generateConfig:_e,disabledMinutes:Ja,disabledSeconds:Oa,minutes:gn,seconds:Jn,use12Hours:ki});nn.current={onUpDown:function(mi){var _i=aa[hn];if(_i)for(var Ji=_i.units.findIndex(function(kr){return kr.value===_i.value}),ji=_i.units.length,wr=1;wr<ji;wr+=1){var Vi=_i.units[(Ji+mi*wr+ji)%ji];if(Vi.disabled!==!0){_i.onSelect(Vi.value);break}}}};function Zn(ni,mi,_i,Ji,ji){ni!==!1&&aa.push({node:Pe.cloneElement(mi,{prefixCls:Sa,value:_i,active:hn===aa.length,onSelect:ji,units:Ji,hideDisabledOptions:vo}),onSelect:ji,value:_i,units:Ji})}Zn(Wn,Pe.createElement(Br,{key:"hour",type:"hour",info:{today:Ca,locale:ur,cellRender:po}}),Ba,bn,function(ni){yo(Un(Ka,ni,fs,La),"mouse")}),Zn(ri,Pe.createElement(Br,{key:"minute",type:"minute",info:{today:Ca,locale:ur,cellRender:po}}),fs,gn,function(ni){yo(Un(Ka,Ba,ni,La),"mouse")}),Zn(ci,Pe.createElement(Br,{key:"second",type:"second",info:{today:Ca,locale:ur,cellRender:po}}),La,Jn,function(ni){yo(Un(Ka,Ba,fs,ni),"mouse")});var xi=-1;return typeof Ka=="boolean"&&(xi=Ka?1:0),Zn(ki===!0,Pe.createElement(Br,{key:"meridiem",type:"meridiem",info:{today:Ca,locale:ur,cellRender:po}}),xi,[{label:"AM",value:0,disabled:_t},{label:"PM",value:1,disabled:qt}],function(ni){yo(Un(!!ni,Ba,fs,La),"mouse")}),Pe.createElement("div",{className:ea},aa.map(function(ni){var mi=ni.node;return mi}))}var Mn=nr,Tr=function(_e){return _e.filter(function(lt){return lt!==!1}).length};function An(He){var _e=He.generateConfig,lt=He.format,nn=lt===void 0?"HH:mm:ss":lt,hn=He.prefixCls,Tn=He.active,Wn=He.operationRef,ri=He.showHour,ci=He.showMinute,ki=He.showSecond,lr=He.use12Hours,Ai=lr===void 0?!1:lr,qi=He.onSelect,Ei=He.value,Cr="".concat(hn,"-time-panel"),ti=Pe.useRef(),er=Pe.useState(-1),br=(0,Cn.Z)(er,2),fo=br[0],ro=br[1],vo=Tr([ri,ci,ki,Ai]);return Wn.current={onKeyDown:function(po){return vr(po,{onLeftRight:function(aa){ro((fo+aa+vo)%vo)},onUpDown:function(aa){fo===-1?ro(0):ti.current&&ti.current.onUpDown(aa)},onEnter:function(){qi(Ei||_e.getNow(),"key"),ro(-1)}})},onBlur:function(){ro(-1)}},Pe.createElement("div",{className:bt()(Cr,(0,St.Z)({},"".concat(Cr,"-active"),Tn))},Pe.createElement(Wi,(0,ke.Z)({},He,{format:nn,prefixCls:hn})),Pe.createElement(Mn,(0,ke.Z)({},He,{prefixCls:hn,activeColumnIndex:fo,operationRef:ti})))}var yr=An,_r=Rn("date","time");function xr(He){var _e=He.prefixCls,lt=He.operationRef,nn=He.generateConfig,hn=He.value,Tn=He.defaultValue,Wn=He.disabledTime,ri=He.showTime,ci=He.onSelect,ki=He.cellRender,lr="".concat(_e,"-datetime-panel"),Ai=Pe.useState(null),qi=(0,Cn.Z)(Ai,2),Ei=qi[0],Cr=qi[1],ti=Pe.useRef({}),er=Pe.useRef({}),br=(0,Ue.Z)(ri)==="object"?(0,Vn.Z)({},ri):{};function fo(po){var ur=_r.indexOf(Ei)+po,aa=_r[ur]||null;return aa}var ro=function(ur){er.current.onBlur&&er.current.onBlur(ur),Cr(null)};lt.current={onKeyDown:function(ur){if(ur.which===Ln.Z.TAB){var aa=fo(ur.shiftKey?-1:1);return Cr(aa),aa&&ur.preventDefault(),!0}if(Ei){var ea=Ei==="date"?ti:er;return ea.current&&ea.current.onKeyDown&&ea.current.onKeyDown(ur),!0}return[Ln.Z.LEFT,Ln.Z.RIGHT,Ln.Z.UP,Ln.Z.DOWN].includes(ur.which)?(Cr("date"),!0):!1},onBlur:ro,onClose:ro};var vo=function(ur,aa){var ea=ur;aa==="date"&&!hn&&br.defaultValue?(ea=nn.setHour(ea,nn.getHour(br.defaultValue)),ea=nn.setMinute(ea,nn.getMinute(br.defaultValue)),ea=nn.setSecond(ea,nn.getSecond(br.defaultValue))):aa==="time"&&!hn&&Tn&&(ea=nn.setYear(ea,nn.getYear(Tn)),ea=nn.setMonth(ea,nn.getMonth(Tn)),ea=nn.setDate(ea,nn.getDate(Tn))),ci&&ci(ea,"mouse")},yo=Wn?Wn(hn||null):{};return Pe.createElement("div",{className:bt()(lr,(0,St.Z)({},"".concat(lr,"-active"),Ei))},Pe.createElement(Mi,(0,ke.Z)({},He,{cellRender:ki,operationRef:ti,active:Ei==="date",onSelect:function(ur){vo(vi(nn,ur,!hn&&(0,Ue.Z)(ri)==="object"?ri.defaultValue:null),"date")}})),Pe.createElement(yr,(0,ke.Z)({},He,{cellRender:ki?function(po,ur){return ki(po,(0,Vn.Z)((0,Vn.Z)({},ur),{},{type:"time"}))}:void 0,format:void 0},br,yo,{disabledTime:null,defaultValue:void 0,operationRef:er,active:Ei==="time",onSelect:function(ur){vo(ur,"time")}})))}var Ho=xr;function ho(He){var _e=He.prefixCls,lt=He.generateConfig,nn=He.viewDate,hn=He.onPrevDecades,Tn=He.onNextDecades,Wn=Pe.useContext(xt),ri=Wn.hideHeader;if(ri)return null;var ci="".concat(_e,"-header"),ki=lt.getYear(nn),lr=Math.floor(ki/ze)*ze,Ai=lr+ze-1;return Pe.createElement(Li,(0,ke.Z)({},He,{prefixCls:ci,onSuperPrev:hn,onSuperNext:Tn}),lr,"-",Ai)}var Sr=ho,gr=3,pr=4;function Yr(He){var _e=ct-1,lt=He.prefixCls,nn=He.viewDate,hn=He.generateConfig,Tn=He.cellRender,Wn=He.locale,ri="".concat(lt,"-cell"),ci=hn.getYear(nn),ki=Math.floor(ci/ct)*ct,lr=Math.floor(ci/ze)*ze,Ai=lr+ze-1,qi=hn.setYear(nn,lr-Math.ceil((gr*pr*ct-ze)/2)),Ei=function(er){var br,fo=hn.getYear(er),ro=fo+_e;return br={},(0,St.Z)(br,"".concat(ri,"-in-view"),lr<=fo&&ro<=Ai),(0,St.Z)(br,"".concat(ri,"-selected"),fo===ki),br},Cr=Tn?function(ti,er){return Tn(ti,{originNode:er,today:hn.getNow(),type:"decade",locale:Wn})}:void 0;return Pe.createElement(yi,(0,ke.Z)({},He,{rowNum:pr,colNum:gr,baseDate:qi,getCellNode:Cr,getCellText:function(er){var br=hn.getYear(er);return"".concat(br,"-").concat(br+_e)},getCellClassName:Ei,getCellDate:function(er,br){return hn.addYear(er,br*ct)}}))}var zi=Yr;function Je(He){var _e=He.prefixCls,lt=He.onViewDateChange,nn=He.generateConfig,hn=He.viewDate,Tn=He.operationRef,Wn=He.onSelect,ri=He.onPanelChange,ci="".concat(_e,"-decade-panel");Tn.current={onKeyDown:function(qi){return vr(qi,{onLeftRight:function(Cr){Wn(nn.addYear(hn,Cr*ct),"key")},onCtrlLeftRight:function(Cr){Wn(nn.addYear(hn,Cr*ze),"key")},onUpDown:function(Cr){Wn(nn.addYear(hn,Cr*ct*gr),"key")},onEnter:function(){ri("year",hn)}})}};var ki=function(qi){var Ei=nn.addYear(hn,qi*ze);lt(Ei),ri(null,Ei)},lr=function(qi){Wn(qi,"mouse"),ri("year",qi)};return Pe.createElement("div",{className:ci},Pe.createElement(Sr,(0,ke.Z)({},He,{prefixCls:_e,onPrevDecades:function(){ki(-1)},onNextDecades:function(){ki(1)}})),Pe.createElement(zi,(0,ke.Z)({},He,{prefixCls:_e,onSelect:lr})))}var pt=Je;function Ot(He){var _e=He.prefixCls,lt=He.generateConfig,nn=He.locale,hn=He.viewDate,Tn=He.onNextYear,Wn=He.onPrevYear,ri=He.onYearClick,ci=Pe.useContext(xt),ki=ci.hideHeader;if(ki)return null;var lr="".concat(_e,"-header");return Pe.createElement(Li,(0,ke.Z)({},He,{prefixCls:lr,onSuperPrev:Wn,onSuperNext:Tn}),Pe.createElement("button",{type:"button",onClick:ri,className:"".concat(_e,"-year-btn")},Hn(hn,{locale:nn,format:nn.yearFormat,generateConfig:lt})))}var cn=Ot,jn=3,Dn=4;function Wt(He){var _e=He.prefixCls,lt=He.locale,nn=He.value,hn=He.viewDate,Tn=He.generateConfig,Wn=He.cellRender,ri=Pe.useContext(vn),ci=ri.rangedValue,ki=ri.hoverRangedValue,lr="".concat(_e,"-cell"),Ai=Xn({cellPrefixCls:lr,value:nn,generateConfig:Tn,rangedValue:ci,hoverRangedValue:ki,isSameCell:function(er,br){return me(Tn,er,br)},isInView:function(){return!0},offsetCell:function(er,br){return Tn.addMonth(er,br)}}),qi=lt.shortMonths||(Tn.locale.getShortMonths?Tn.locale.getShortMonths(lt.locale):[]),Ei=Tn.setMonth(hn,0),Cr=Wn?function(ti,er){return Wn(ti,{originNode:er,locale:lt,today:Tn.getNow(),type:"month"})}:void 0;return Pe.createElement(yi,(0,ke.Z)({},He,{rowNum:Dn,colNum:jn,baseDate:Ei,getCellNode:Cr,getCellText:function(er){return lt.monthFormat?Hn(er,{locale:lt,format:lt.monthFormat,generateConfig:Tn}):qi[Tn.getMonth(er)]},getCellClassName:Ai,getCellDate:Tn.addMonth,titleCell:function(er){return Hn(er,{locale:lt,format:"YYYY-MM",generateConfig:Tn})}}))}var kn=Wt;function ai(He){var _e=He.prefixCls,lt=He.operationRef,nn=He.onViewDateChange,hn=He.generateConfig,Tn=He.value,Wn=He.viewDate,ri=He.onPanelChange,ci=He.onSelect,ki="".concat(_e,"-month-panel");lt.current={onKeyDown:function(qi){return vr(qi,{onLeftRight:function(Cr){ci(hn.addMonth(Tn||Wn,Cr),"key")},onCtrlLeftRight:function(Cr){ci(hn.addYear(Tn||Wn,Cr),"key")},onUpDown:function(Cr){ci(hn.addMonth(Tn||Wn,Cr*jn),"key")},onEnter:function(){ri("date",Tn||Wn)}})}};var lr=function(qi){var Ei=hn.addYear(Wn,qi);nn(Ei),ri(null,Ei)};return Pe.createElement("div",{className:ki},Pe.createElement(cn,(0,ke.Z)({},He,{prefixCls:_e,onPrevYear:function(){lr(-1)},onNextYear:function(){lr(1)},onYearClick:function(){ri("year",Wn)}})),Pe.createElement(kn,(0,ke.Z)({},He,{prefixCls:_e,onSelect:function(qi){ci(qi,"mouse"),ri("date",qi)}})))}var $n=ai;function Ii(He){var _e=He.prefixCls,lt=He.generateConfig,nn=He.locale,hn=He.viewDate,Tn=He.onNextYear,Wn=He.onPrevYear,ri=He.onYearClick,ci=Pe.useContext(xt),ki=ci.hideHeader;if(ki)return null;var lr="".concat(_e,"-header");return Pe.createElement(Li,(0,ke.Z)({},He,{prefixCls:lr,onSuperPrev:Wn,onSuperNext:Tn}),Pe.createElement("button",{type:"button",onClick:ri,className:"".concat(_e,"-year-btn")},Hn(hn,{locale:nn,format:nn.yearFormat,generateConfig:lt})))}var Bi=Ii,gi=4,Yi=1;function On(He){var _e=He.prefixCls,lt=He.locale,nn=He.value,hn=He.viewDate,Tn=He.generateConfig,Wn=He.cellRender,ri=Pe.useContext(vn),ci=ri.rangedValue,ki=ri.hoverRangedValue,lr="".concat(_e,"-cell"),Ai=Xn({cellPrefixCls:lr,value:nn,generateConfig:Tn,rangedValue:ci,hoverRangedValue:ki,isSameCell:function(ti,er){return we(Tn,ti,er)},isInView:function(){return!0},offsetCell:function(ti,er){return Tn.addMonth(ti,er*3)}}),qi=Tn.setDate(Tn.setMonth(hn,0),1),Ei=Wn?function(Cr,ti){return Wn(Cr,{originNode:ti,locale:lt,today:Tn.getNow(),type:"quarter"})}:void 0;return Pe.createElement(yi,(0,ke.Z)({},He,{rowNum:Yi,colNum:gi,baseDate:qi,getCellNode:Ei,getCellText:function(ti){return Hn(ti,{locale:lt,format:lt.quarterFormat||"[Q]Q",generateConfig:Tn})},getCellClassName:Ai,getCellDate:function(ti,er){return Tn.addMonth(ti,er*3)},titleCell:function(ti){return Hn(ti,{locale:lt,format:"YYYY-[Q]Q",generateConfig:Tn})}}))}var $r=On;function Ur(He){var _e=He.prefixCls,lt=He.operationRef,nn=He.onViewDateChange,hn=He.generateConfig,Tn=He.value,Wn=He.viewDate,ri=He.onPanelChange,ci=He.onSelect,ki="".concat(_e,"-quarter-panel");lt.current={onKeyDown:function(qi){return vr(qi,{onLeftRight:function(Cr){ci(hn.addMonth(Tn||Wn,Cr*3),"key")},onCtrlLeftRight:function(Cr){ci(hn.addYear(Tn||Wn,Cr),"key")},onUpDown:function(Cr){ci(hn.addYear(Tn||Wn,Cr),"key")}})}};var lr=function(qi){var Ei=hn.addYear(Wn,qi);nn(Ei),ri(null,Ei)};return Pe.createElement("div",{className:ki},Pe.createElement(Bi,(0,ke.Z)({},He,{prefixCls:_e,onPrevYear:function(){lr(-1)},onNextYear:function(){lr(1)},onYearClick:function(){ri("year",Wn)}})),Pe.createElement($r,(0,ke.Z)({},He,{prefixCls:_e,onSelect:function(qi){ci(qi,"mouse")}})))}var Ao=Ur;function eo(He){var _e=He.prefixCls,lt=He.generateConfig,nn=He.locale,hn=He.value,Tn=He.disabledDate,Wn=He.onSelect,ri=Pe.useContext(vn),ci=ri.rangedValue,ki=ri.hoverRangedValue,lr=Pe.useContext(xt),Ai=lr.onDateMouseEnter,qi=lr.onDateMouseLeave,Ei=(ki==null?void 0:ki[0])||(ci==null?void 0:ci[0]),Cr=(ki==null?void 0:ki[1])||(ci==null?void 0:ci[1]),ti="".concat(_e,"-cell"),er=function(vo){var yo=Pi({cellDate:vo,mode:"week",disabledDate:Tn,generateConfig:lt});return Pe.createElement("td",{key:"week",className:bt()(ti,"".concat(ti,"-week")),onClick:function(){yo||Wn(vo,"mouse")},onMouseEnter:function(){!yo&&Ai&&Ai(vo)},onMouseLeave:function(){!yo&&qi&&qi(vo)}},Pe.createElement("div",{className:"".concat(ti,"-inner")},lt.locale.getWeek(nn.locale,vo)))},br="".concat(_e,"-week-panel-row"),fo=function(vo){var yo,po=Le(lt,nn.locale,Ei,vo),ur=Le(lt,nn.locale,Cr,vo);return bt()(br,(yo={},(0,St.Z)(yo,"".concat(br,"-selected"),!ci&&Le(lt,nn.locale,hn,vo)),(0,St.Z)(yo,"".concat(br,"-range-start"),po),(0,St.Z)(yo,"".concat(br,"-range-end"),ur),(0,St.Z)(yo,"".concat(br,"-range-hover"),!po&&!ur&&Vt(lt,Ei,Cr,vo)),yo))};return Pe.createElement(Mi,(0,ke.Z)({},He,{panelName:"week",prefixColumn:er,rowClassName:fo,keyboardConfig:{onLeftRight:null},isSameCell:function(){return!1}}))}var qr=eo,no=10;function $o(He){var _e=He.prefixCls,lt=He.generateConfig,nn=He.viewDate,hn=He.onPrevDecade,Tn=He.onNextDecade,Wn=He.onDecadeClick,ri=Pe.useContext(xt),ci=ri.hideHeader;if(ci)return null;var ki="".concat(_e,"-header"),lr=lt.getYear(nn),Ai=Math.floor(lr/no)*no,qi=Ai+no-1;return Pe.createElement(Li,(0,ke.Z)({},He,{prefixCls:ki,onSuperPrev:hn,onSuperNext:Tn}),Pe.createElement("button",{type:"button",onClick:Wn,className:"".concat(_e,"-decade-btn")},Ai,"-",qi))}var Qo=$o,pa=3,qo=4;function Pn(He){var _e=He.prefixCls,lt=He.value,nn=He.viewDate,hn=He.locale,Tn=He.generateConfig,Wn=He.cellRender,ri=Pe.useContext(vn),ci=ri.rangedValue,ki=ri.hoverRangedValue,lr="".concat(_e,"-cell"),Ai=Tn.getYear(nn),qi=Math.floor(Ai/no)*no,Ei=qi+no-1,Cr=Tn.setYear(nn,qi-Math.ceil((pa*qo-no)/2)),ti=Tn.getNow(),er=function(vo){var yo=Tn.getYear(vo);return qi<=yo&&yo<=Ei},br=Xn({cellPrefixCls:lr,value:lt,generateConfig:Tn,rangedValue:ci,hoverRangedValue:ki,isSameCell:function(vo,yo){return Ve(Tn,vo,yo)},isInView:er,offsetCell:function(vo,yo){return Tn.addYear(vo,yo)}}),fo=Wn?function(ro,vo){return Wn(ro,{originNode:vo,today:ti,type:"year",locale:hn})}:void 0;return Pe.createElement(yi,(0,ke.Z)({},He,{rowNum:qo,colNum:pa,baseDate:Cr,getCellNode:fo,getCellText:Tn.getYear,getCellClassName:br,getCellDate:Tn.addYear,titleCell:function(vo){return Hn(vo,{locale:hn,format:"YYYY",generateConfig:Tn})}}))}var ca=Pn;function es(He){var _e=He.prefixCls,lt=He.operationRef,nn=He.onViewDateChange,hn=He.generateConfig,Tn=He.value,Wn=He.viewDate,ri=He.sourceMode,ci=He.onSelect,ki=He.onPanelChange,lr="".concat(_e,"-year-panel");lt.current={onKeyDown:function(Ei){return vr(Ei,{onLeftRight:function(ti){ci(hn.addYear(Tn||Wn,ti),"key")},onCtrlLeftRight:function(ti){ci(hn.addYear(Tn||Wn,ti*no),"key")},onUpDown:function(ti){ci(hn.addYear(Tn||Wn,ti*pa),"key")},onEnter:function(){ki(ri==="date"?"date":"month",Tn||Wn)}})}};var Ai=function(Ei){var Cr=hn.addYear(Wn,Ei*10);nn(Cr),ki(null,Cr)};return Pe.createElement("div",{className:lr},Pe.createElement(Qo,(0,ke.Z)({},He,{prefixCls:_e,onPrevDecade:function(){Ai(-1)},onNextDecade:function(){Ai(1)},onDecadeClick:function(){ki("decade",Wn)}})),Pe.createElement(ca,(0,ke.Z)({},He,{prefixCls:_e,onSelect:function(Ei){ki(ri==="date"?"date":"month",Ei),ci(Ei,"mouse")}})))}var ts=es;function Ga(He,_e,lt){return lt?Pe.createElement("div",{className:"".concat(He,"-footer-extra")},lt(_e)):null}function Ds(He){var _e=He.prefixCls,lt=He.components,nn=lt===void 0?{}:lt,hn=He.needConfirmButton,Tn=He.onNow,Wn=He.onOk,ri=He.okDisabled,ci=He.showNow,ki=He.locale,lr,Ai;if(hn){var qi=nn.button||"button";Tn&&ci!==!1&&(lr=Pe.createElement("li",{className:"".concat(_e,"-now")},Pe.createElement("a",{className:"".concat(_e,"-now-btn"),onClick:Tn},ki.now))),Ai=hn&&Pe.createElement("li",{className:"".concat(_e,"-ok")},Pe.createElement(qi,{disabled:ri,onClick:Wn},ki.ok))}return!lr&&!Ai?null:Pe.createElement("ul",{className:"".concat(_e,"-ranges")},lr,Ai)}var pl=["date","month"];function ma(He){var _e,lt=He,nn=lt.prefixCls,hn=nn===void 0?"rc-picker":nn,Tn=lt.className,Wn=lt.style,ri=lt.locale,ci=lt.generateConfig,ki=lt.value,lr=lt.defaultValue,Ai=lt.pickerValue,qi=lt.defaultPickerValue,Ei=lt.disabledDate,Cr=lt.mode,ti=lt.picker,er=ti===void 0?"date":ti,br=lt.tabIndex,fo=br===void 0?0:br,ro=lt.showNow,vo=lt.showTime,yo=lt.showToday,po=lt.renderExtraFooter,ur=lt.hideHeader,aa=lt.onSelect,ea=lt.onChange,Sa=lt.onPanelChange,Ka=lt.onMouseDown,Ha=lt.onPickerValueChange,Ba=lt.onOk,fs=lt.components,La=lt.direction,Ca=lt.hourStep,Ta=Ca===void 0?1:Ca,as=lt.minuteStep,gs=as===void 0?1:as,Ja=lt.secondStep,Oa=Ja===void 0?1:Ja,Rs=lt.dateRender,hl=lt.monthCellRender,nt=lt.cellRender,ut=er==="date"&&!!vo||er==="time",_t=24%Ta===0,qt=60%gs===0,bn=60%Oa===0,gn=Pe.useContext(xt),Jn=gn.operationRef,Un=gn.onSelect,Zn=gn.hideRanges,xi=gn.defaultOpenValue,ni=Pe.useContext(vn),mi=ni.inRange,_i=ni.panelPosition,Ji=ni.rangedValue,ji=ni.hoverRangedValue,wr=Pe.useRef({}),Vi=Pe.useRef(!0),kr=(0,Si.Z)(null,{value:ki,defaultValue:lr,postState:function(tr){return!tr&&xi&&er==="time"?xi:tr}}),Er=(0,Cn.Z)(kr,2),Or=Er[0],So=Er[1],Lo=(0,Si.Z)(null,{value:Ai,defaultValue:qi||Or,postState:function(tr){var Gr=ci.getNow();if(!tr)return Gr;if(!Or&&vo){var Uo=(0,Ue.Z)(vo)==="object"?vo.defaultValue:lr;return vi(ci,Array.isArray(tr)?tr[0]:tr,Uo||Gr)}return Array.isArray(tr)?tr[0]:tr}}),Wr=(0,Cn.Z)(Lo,2),to=Wr[0],Ko=Wr[1],Rr=function(tr){Ko(tr),Ha&&Ha(tr)},lo=function(tr){var Gr=on[er];return Gr?Gr(tr):tr},Zr=(0,Si.Z)(function(){return er==="time"?"time":lo("date")},{value:Cr}),mr=(0,Cn.Z)(Zr,2),Nr=mr[0],uo=mr[1];Pe.useEffect(function(){uo(er)},[er]);var Mo=Pe.useState(function(){return Nr}),Fo=(0,Cn.Z)(Mo,2),Fr=Fo[0],Vo=Fo[1],_o=function(tr,Gr){var Uo=lo(tr||Nr);Vo(Nr),uo(Uo),Sa&&(Nr!==Uo||st(ci,to,to))&&Sa(Gr,Uo)},na=function(tr,Gr){var Uo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(Nr===er||Uo)&&(So(tr),aa&&aa(tr),Un&&Un(tr,Gr),ea&&!st(ci,tr,Or)&&!(Ei!=null&&Ei(tr))&&ea(tr))},ta=function(tr){if(pl.includes(Nr)){var Gr,Uo,sa=Nr==="date";switch(tr===Ln.Z.PAGE_UP||tr===Ln.Z.PAGE_DOWN?Uo=sa?ci.addMonth:ci.addYear:Uo=sa?ci.addDate:ci.addMonth,tr){case Ln.Z.LEFT:case Ln.Z.PAGE_UP:Gr=Uo(to,-1);break;case Ln.Z.RIGHT:case Ln.Z.PAGE_DOWN:Gr=Uo(to,1);break;case Ln.Z.UP:case Ln.Z.DOWN:Gr=Uo(to,Number("".concat(tr===Ln.Z.UP?"-":"").concat(sa?Ut:jn)));break}if(Gr)return!(Ei!=null&&Ei(Gr))}return!0},Qa=function(tr){if(wr.current&&wr.current.onKeyDown){var Gr=!0,Uo=tr.which;if([Ln.Z.LEFT,Ln.Z.RIGHT,Ln.Z.UP,Ln.Z.DOWN,Ln.Z.PAGE_UP,Ln.Z.PAGE_DOWN,Ln.Z.ENTER].includes(Uo)&&(tr.preventDefault(),Uo!==Ln.Z.ENTER&&fo===0&&(Gr=ta(Uo))),Gr)return wr.current.onKeyDown(tr)}return(0,We.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1},fa=function(tr){wr.current&&wr.current.onBlur&&wr.current.onBlur(tr)};Jn&&_i!=="right"&&(Jn.current={onKeyDown:Qa,onClose:function(){wr.current&&wr.current.onClose&&wr.current.onClose()}}),Pe.useEffect(function(){ki&&!Vi.current&&Ko(ki)},[ki]),Pe.useEffect(function(){Vi.current=!1},[]);var Wo,Po=an({cellRender:nt,monthCellRender:hl,dateRender:Rs}),To=(0,Vn.Z)((0,Vn.Z)({},He),{},{cellRender:Po,operationRef:wr,prefixCls:hn,viewDate:to,value:Or,onViewDateChange:Rr,sourceMode:Fr,onPanelChange:_o,disabledDate:Ei});switch(delete To.onChange,delete To.onSelect,Nr){case"decade":Wo=Pe.createElement(pt,(0,ke.Z)({},To,{onSelect:function(tr,Gr){Rr(tr),na(tr,Gr)}}));break;case"year":Wo=Pe.createElement(ts,(0,ke.Z)({},To,{onSelect:function(tr,Gr){Rr(tr),na(tr,Gr)}}));break;case"month":Wo=Pe.createElement($n,(0,ke.Z)({},To,{onSelect:function(tr,Gr){Rr(tr),na(tr,Gr)}}));break;case"quarter":Wo=Pe.createElement(Ao,(0,ke.Z)({},To,{onSelect:function(tr,Gr){Rr(tr),na(tr,Gr)}}));break;case"week":Wo=Pe.createElement(qr,(0,ke.Z)({},To,{onSelect:function(tr,Gr){Rr(tr),na(tr,Gr)}}));break;case"time":delete To.showTime,Wo=Pe.createElement(yr,(0,ke.Z)({},To,(0,Ue.Z)(vo)==="object"?vo:null,{onSelect:function(tr,Gr){Rr(tr),na(tr,Gr)}}));break;default:vo?Wo=Pe.createElement(Ho,(0,ke.Z)({},To,{onSelect:function(tr,Gr){Rr(tr),na(tr,Gr)}})):Wo=Pe.createElement(Mi,(0,ke.Z)({},To,{onSelect:function(tr,Gr){Rr(tr),na(tr,Gr)}}))}var Ya,Ia,ns=function(){var tr=ci.getNow(),Gr=pi(ci.getHour(tr),ci.getMinute(tr),ci.getSecond(tr),_t?Ta:1,qt?gs:1,bn?Oa:1),Uo=bi(ci,tr,Gr[0],Gr[1],Gr[2]);na(Uo,"submit")};Zn||(Ya=Ga(hn,Nr,po),vo&&Nr!=="date"?Ia=null:Ia=Ds({prefixCls:hn,components:fs,needConfirmButton:ut,okDisabled:!Or||Ei&&Ei(Or),locale:ri,showNow:ro,onNow:ut&&ns,onOk:function(){Or&&(na(Or,"submit",!0),Ba&&Ba(Or))}}));var Ro;if(yo&&Nr==="date"&&er==="date"&&!vo){var bo=ci.getNow(),Zo="".concat(hn,"-today-btn"),wo=Ei&&Ei(bo);Ro=Pe.createElement("a",{className:bt()(Zo,wo&&"".concat(Zo,"-disabled")),"aria-disabled":wo,onClick:function(){wo||na(bo,"mouse",!0)}},ri.today)}return Pe.createElement(xt.Provider,{value:(0,Vn.Z)((0,Vn.Z)({},gn),{},{mode:Nr,hideHeader:"hideHeader"in He?ur:gn.hideHeader,hidePrevBtn:mi&&_i==="right",hideNextBtn:mi&&_i==="left"})},Pe.createElement("div",{tabIndex:fo,className:bt()("".concat(hn,"-panel"),Tn,(_e={},(0,St.Z)(_e,"".concat(hn,"-panel-has-range"),Ji&&Ji[0]&&Ji[1]),(0,St.Z)(_e,"".concat(hn,"-panel-has-range-hover"),ji&&ji[0]&&ji[1]),(0,St.Z)(_e,"".concat(hn,"-panel-rtl"),La==="rtl"),_e)),style:Wn,onKeyDown:Qa,onBlur:fa,onMouseDown:Ka},Wo,Ya||Ia||Ro?Pe.createElement("div",{className:"".concat(hn,"-footer")},Ya,Ia,Ro):null))}var ko=ma,Oo=ye(35593),Pa={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function io(He){var _e,lt=He.prefixCls,nn=He.popupElement,hn=He.popupStyle,Tn=He.visible,Wn=He.dropdownClassName,ri=He.dropdownAlign,ci=He.transitionName,ki=He.getPopupContainer,lr=He.children,Ai=He.range,qi=He.popupPlacement,Ei=He.direction,Cr="".concat(lt,"-dropdown"),ti=function(){return qi!==void 0?qi:Ei==="rtl"?"bottomRight":"bottomLeft"};return Pe.createElement(Oo.Z,{showAction:[],hideAction:[],popupPlacement:ti(),builtinPlacements:Pa,prefixCls:Cr,popupTransitionName:ci,popup:nn,popupAlign:ri,popupVisible:Tn,popupClassName:bt()(Wn,(_e={},(0,St.Z)(_e,"".concat(Cr,"-range"),Ai),(0,St.Z)(_e,"".concat(Cr,"-rtl"),Ei==="rtl"),_e)),popupStyle:hn,getPopupContainer:ki},lr)}var No=io;function ao(He){var _e=He.prefixCls,lt=He.presets,nn=He.onClick,hn=He.onHover;return lt.length?Pe.createElement("div",{className:"".concat(_e,"-presets")},Pe.createElement("ul",null,lt.map(function(Tn,Wn){var ri=Tn.label,ci=Tn.value;return Pe.createElement("li",{key:Wn,onClick:function(){return nn==null?void 0:nn(Qn(ci))},onMouseEnter:function(){return hn==null?void 0:hn(Qn(ci))},onMouseLeave:function(){return hn==null?void 0:hn(null)}},ri)}))):null}function Gi(He){var _e=He.picker,lt=He.disabledHours,nn=He.disabledMinutes,hn=He.disabledSeconds;_e==="time"&&(lt||nn||hn)&&warning(!1,"'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.")}function ha(He,_e,lt){var nn=(0,Ue.Z)(_e)==="object"?_e.clearIcon:lt;return nn||Pe.createElement("span",{className:"".concat(He,"-clear-btn")})}function Fa(He){var _e,lt=He,nn=lt.prefixCls,hn=nn===void 0?"rc-picker":nn,Tn=lt.id,Wn=lt.name,ri=lt.tabIndex,ci=lt.style,ki=lt.className,lr=lt.dropdownClassName,Ai=lt.dropdownAlign,qi=lt.popupStyle,Ei=lt.transitionName,Cr=lt.generateConfig,ti=lt.locale,er=lt.inputReadOnly,br=lt.allowClear,fo=lt.autoFocus,ro=lt.showTime,vo=lt.picker,yo=vo===void 0?"date":vo,po=lt.format,ur=lt.use12Hours,aa=lt.value,ea=lt.defaultValue,Sa=lt.presets,Ka=lt.open,Ha=lt.defaultOpen,Ba=lt.defaultOpenValue,fs=lt.suffixIcon,La=lt.clearIcon,Ca=lt.disabled,Ta=lt.disabledDate,as=lt.placeholder,gs=lt.getPopupContainer,Ja=lt.pickerRef,Oa=lt.panelRender,Rs=lt.onChange,hl=lt.onOpenChange,nt=lt.onFocus,ut=lt.onBlur,_t=lt.onMouseDown,qt=lt.onMouseUp,bn=lt.onMouseEnter,gn=lt.onMouseLeave,Jn=lt.onContextMenu,Un=lt.onClick,Zn=lt.onKeyDown,xi=lt.onSelect,ni=lt.direction,mi=lt.autoComplete,_i=mi===void 0?"off":mi,Ji=lt.inputRender,ji=lt.changeOnBlur,wr=Pe.useRef(null),Vi=yo==="date"&&!!ro||yo==="time",kr=Lt(Sa),Er=dn(ui(po,yo,ro,ur)),Or=Pe.useRef(null),So=Pe.useRef(null),Lo=Pe.useRef(null),Wr=(0,Si.Z)(null,{value:aa,defaultValue:ea}),to=(0,Cn.Z)(Wr,2),Ko=to[0],Rr=to[1],lo=Pe.useState(Ko),Zr=(0,Cn.Z)(lo,2),mr=Zr[0],Nr=Zr[1],uo=Pe.useRef(null),Mo=(0,Si.Z)(!1,{value:Ka,defaultValue:Ha,postState:function(zo){return Ca?!1:zo},onChange:function(zo){hl&&hl(zo),!zo&&uo.current&&uo.current.onClose&&uo.current.onClose()}}),Fo=(0,Cn.Z)(Mo,2),Fr=Fo[0],Vo=Fo[1],_o=Ri(mr,{formatList:Er,generateConfig:Cr,locale:ti}),na=(0,Cn.Z)(_o,2),ta=na[0],Qa=na[1],fa=en({valueTexts:ta,onTextChange:function(zo){var Ms=wi(zo,{locale:ti,formatList:Er,generateConfig:Cr});Ms&&(!Ta||!Ta(Ms))&&Nr(Ms)}}),Wo=(0,Cn.Z)(fa,3),Po=Wo[0],To=Wo[1],Ya=Wo[2],Ia=function(zo){Nr(zo),Rr(zo),Rs&&!st(Cr,Ko,zo)&&Rs(zo,zo?Hn(zo,{generateConfig:Cr,locale:ti,format:Er[0]}):"")},ns=function(zo){Ca&&zo||Vo(zo)},Ro=function(zo){return Fr&&uo.current&&uo.current.onKeyDown?uo.current.onKeyDown(zo):((0,We.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},bo=function(){for(var zo=arguments.length,Ms=new Array(zo),Ys=0;Ys<zo;Ys++)Ms[Ys]=arguments[Ys];Un==null||Un.apply(void 0,Ms),wr.current&&(wr.current.focus(),ns(!0))},Zo=function(zo){ji&&Ia(mr),ut==null||ut(zo)},wo=Et({blurToCancel:Vi,open:Fr,value:Po,triggerOpen:ns,forwardKeyDown:Ro,isClickOutside:function(zo){return!yt([Or.current,So.current,Lo.current],zo)},onSubmit:function(){return!mr||Ta&&Ta(mr)?!1:(Ia(mr),ns(!1),Ya(),!0)},onCancel:function(){ns(!1),Nr(Ko),Ya()},onKeyDown:function(zo,Ms){Zn==null||Zn(zo,Ms)},onFocus:nt,onBlur:Zo,changeOnBlur:ji}),so=(0,Cn.Z)(wo,2),tr=so[0],Gr=so[1],Uo=Gr.focused,sa=Gr.typing;Pe.useEffect(function(){Fr||(Nr(Ko),!ta.length||ta[0]===""?To(""):Qa!==Po&&Ya())},[Fr,ta]),Pe.useEffect(function(){Fr||Ya()},[yo]),Pe.useEffect(function(){Nr(Ko)},[Ko]),Ja&&(Ja.current={focus:function(){var zo;(zo=wr.current)===null||zo===void 0||zo.focus()},blur:function(){var zo;(zo=wr.current)===null||zo===void 0||zo.blur()}});var al=Zi(Po,{formatList:Er,generateConfig:Cr,locale:ti}),zs=(0,Cn.Z)(al,3),Al=zs[0],Na=zs[1],Ua=zs[2],Do=(0,Vn.Z)((0,Vn.Z)({},He),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null}),Vs=Pe.createElement("div",{className:"".concat(hn,"-panel-layout")},Pe.createElement(ao,{prefixCls:hn,presets:kr,onClick:function(zo){Ia(zo),ns(!1)}}),Pe.createElement(ko,(0,ke.Z)({},Do,{generateConfig:Cr,className:bt()((0,St.Z)({},"".concat(hn,"-panel-focused"),!sa)),value:mr,locale:ti,tabIndex:-1,onSelect:function(zo){xi==null||xi(zo),Nr(zo)},direction:ni,onPanelChange:function(zo,Ms){var Ys=He.onPanelChange;Ua(!0),Ys==null||Ys(zo,Ms)}})));Oa&&(Vs=Oa(Vs));var Ll=Pe.createElement("div",{className:"".concat(hn,"-panel-container"),ref:Or,onMouseDown:function(zo){zo.preventDefault()}},Vs),Wa;fs&&(Wa=Pe.createElement("span",{className:"".concat(hn,"-suffix"),onMouseDown:function(zo){zo.preventDefault()}},fs));var _a=ha(hn,br,La),is=Pe.createElement("span",{onMouseDown:function(zo){zo.preventDefault(),zo.stopPropagation()},onMouseUp:function(zo){zo.preventDefault(),zo.stopPropagation(),Ia(null),ns(!1)},className:"".concat(hn,"-clear"),role:"button"},_a),bs=!!br&&Ko&&!Ca,Gs=(0,Vn.Z)((0,Vn.Z)((0,Vn.Z)({id:Tn,tabIndex:ri,disabled:Ca,readOnly:er||typeof Er[0]=="function"||!sa,value:Al||Po,onChange:function(zo){To(zo.target.value)},autoFocus:fo,placeholder:as,ref:wr,title:Po},tr),{},{size:Ir(yo,Er[0],Cr),name:Wn},(0,Bn.Z)(He,{aria:!0,data:!0})),{},{autoComplete:_i}),xa=Ji?Ji(Gs):Pe.createElement("input",Gs),ss=function(zo,Ms){(Ms==="submit"||Ms!=="key"&&!Vi)&&(Ia(zo),ns(!1))},Js=ni==="rtl"?"bottomRight":"bottomLeft";return Pe.createElement(xt.Provider,{value:{operationRef:uo,hideHeader:yo==="time",onSelect:ss,open:Fr,defaultOpenValue:Ba,onDateMouseEnter:Na,onDateMouseLeave:Ua}},Pe.createElement(No,{visible:Fr,popupElement:Ll,popupStyle:qi,prefixCls:hn,dropdownClassName:lr,dropdownAlign:Ai,getPopupContainer:gs,transitionName:Ei,popupPlacement:Js,direction:ni},Pe.createElement("div",{ref:Lo,className:bt()(hn,ki,(_e={},(0,St.Z)(_e,"".concat(hn,"-disabled"),Ca),(0,St.Z)(_e,"".concat(hn,"-focused"),Uo),(0,St.Z)(_e,"".concat(hn,"-rtl"),ni==="rtl"),_e)),style:ci,onMouseDown:_t,onMouseUp:qt,onMouseEnter:bn,onMouseLeave:gn,onContextMenu:Jn,onClick:bo},Pe.createElement("div",{className:bt()("".concat(hn,"-input"),(0,St.Z)({},"".concat(hn,"-input-placeholder"),!!Al)),ref:So},xa,Wa,bs&&is))))}var Bs=function(He){(0,En.Z)(lt,He);var _e=(0,Yn.Z)(lt);function lt(){var nn;(0,Jt.Z)(this,lt);for(var hn=arguments.length,Tn=new Array(hn),Wn=0;Wn<hn;Wn++)Tn[Wn]=arguments[Wn];return nn=_e.call.apply(_e,[this].concat(Tn)),(0,St.Z)((0,Kn.Z)(nn),"pickerRef",Pe.createRef()),(0,St.Z)((0,Kn.Z)(nn),"focus",function(){nn.pickerRef.current&&nn.pickerRef.current.focus()}),(0,St.Z)((0,Kn.Z)(nn),"blur",function(){nn.pickerRef.current&&nn.pickerRef.current.blur()}),nn}return(0,un.Z)(lt,[{key:"render",value:function(){return Pe.createElement(Fa,(0,ke.Z)({},this.props,{pickerRef:this.pickerRef}))}}]),lt}(Pe.Component),ys=Bs;function nl(He,_e){var lt=He.picker,nn=He.locale,hn=He.selectedValue,Tn=He.disabledDate,Wn=He.disabled,ri=He.generateConfig,ci=Pt(hn,0),ki=Pt(hn,1);function lr(ti){return ri.locale.getWeekFirstDate(nn.locale,ti)}function Ai(ti){var er=ri.getYear(ti),br=ri.getMonth(ti);return er*100+br}function qi(ti){var er=ri.getYear(ti),br=Be(ri,ti);return er*10+br}var Ei=Pe.useCallback(function(ti){if(Wn[0]||Tn&&Tn(ti))return!0;if(Wn[1]&&ki)return!De(ri,ti,ki)&&ri.isAfter(ti,ki);if(!_e&&ki)switch(lt){case"quarter":return qi(ti)>qi(ki);case"month":return Ai(ti)>Ai(ki);case"week":return lr(ti)>lr(ki);default:return!De(ri,ti,ki)&&ri.isAfter(ti,ki)}return!1},[Tn,Wn[1],ki,_e]),Cr=Pe.useCallback(function(ti){if(Wn[1]||Tn&&Tn(ti))return!0;if(Wn[0]&&ci)return!De(ri,ti,ki)&&ri.isAfter(ci,ti);if(!_e&&ci)switch(lt){case"quarter":return qi(ti)<qi(ci);case"month":return Ai(ti)<Ai(ci);case"week":return lr(ti)<lr(ci);default:return!De(ri,ti,ci)&&ri.isAfter(ci,ti)}return!1},[Tn,Wn[0],ci,_e]);return[Ei,Cr]}var Ui=ye(80764),Da=ye(8107);function ga(He,_e,lt,nn,hn,Tn,Wn,ri,ci,ki){var lr=Pe.useState(!1),Ai=(0,Cn.Z)(lr,2),qi=Ai[0],Ei=Ai[1],Cr=(0,Ui.useMergedState)(He||!1,{value:_e}),ti=(0,Cn.Z)(Cr,2),er=ti[0],br=ti[1],fo=(0,Ui.useMergedState)(He||!1,{value:_e,onChange:function(Ta){ki==null||ki(Ta)}}),ro=(0,Cn.Z)(fo,2),vo=ro[0],yo=ro[1],po=(0,Ui.useMergedState)(0,{value:lt}),ur=(0,Cn.Z)(po,2),aa=ur[0],ea=ur[1],Sa=Pe.useState(null),Ka=(0,Cn.Z)(Sa,2),Ha=Ka[0],Ba=Ka[1];Pe.useEffect(function(){vo&&Ei(!0)},[vo]);var fs=function(Ta){return Ta===0?1:0},La=(0,Da.Z)(function(Ca,Ta,as){if(Ta===!1)yo(Ca);else if(Ca){ea(Ta),yo(Ca);var gs=fs(Ta);!vo||![Wn,ri][gs]?Ba(gs):(Ei(!1),Ha!==null&&Ba(null))}else if(as==="confirm"||as==="blur"&&nn){var Ja=er?fs(Ta):Ha;Ja!==null&&(Ei(!1),ea(Ja)),Ba(null),Ja!==null&&!ci[Ja]?(0,rr.Z)(function(){var Oa,Rs=[hn,Tn][Ja];(Oa=Rs.current)===null||Oa===void 0||Oa.focus()}):yo(!1)}else yo(!1),br(!1)});return[vo,aa,qi,La]}function Is(He,_e,lt,nn){var hn=ln(He,lt,nn,1);function Tn(Wn){return Wn(He,_e)?"same":Wn(hn,_e)?"closing":"far"}switch(lt){case"year":return Tn(function(Wn,ri){return at(nn,Wn,ri)});case"quarter":case"month":return Tn(function(Wn,ri){return Ve(nn,Wn,ri)});default:return Tn(function(Wn,ri){return me(nn,Wn,ri)})}}function ml(He,_e,lt,nn){var hn=Pt(He,0),Tn=Pt(He,1);if(_e===0)return hn;if(hn&&Tn){var Wn=Is(hn,Tn,lt,nn);switch(Wn){case"same":return hn;case"closing":return hn;default:return ln(Tn,lt,nn,-1)}}return hn}function Gl(He){var _e=He.values,lt=He.picker,nn=He.defaultDates,hn=He.generateConfig,Tn=Pe.useState(function(){return[Pt(nn,0),Pt(nn,1)]}),Wn=(0,Cn.Z)(Tn,2),ri=Wn[0],ci=Wn[1],ki=Pe.useState(null),lr=(0,Cn.Z)(ki,2),Ai=lr[0],qi=lr[1],Ei=Pt(_e,0),Cr=Pt(_e,1);function ti(br){return ri[br]?ri[br]:Pt(Ai,br)||ml(_e,br,lt,hn)||Ei||Cr||hn.getNow()}function er(br,fo){if(br){var ro=Sn(Ai,br,fo);ci(Sn(ri,null,fo)||[null,null]);var vo=(fo+1)%2;Pt(_e,vo)||(ro=Sn(ro,br,vo)),qi(ro)}else(Ei||Cr)&&qi(null)}return[ti,er]}function xo(He,_e){return He&&He[0]&&He[1]&&_e.isAfter(He[0],He[1])?[He[1],He[0]]:He}function Au(He,_e,lt,nn){return!!(He||nn&&nn[_e]||lt[(_e+1)%2])}function il(He){var _e,lt,nn,hn=He,Tn=hn.prefixCls,Wn=Tn===void 0?"rc-picker":Tn,ri=hn.id,ci=hn.style,ki=hn.className,lr=hn.popupStyle,Ai=hn.dropdownClassName,qi=hn.transitionName,Ei=hn.dropdownAlign,Cr=hn.getPopupContainer,ti=hn.generateConfig,er=hn.locale,br=hn.placeholder,fo=hn.autoFocus,ro=hn.disabled,vo=hn.format,yo=hn.picker,po=yo===void 0?"date":yo,ur=hn.showTime,aa=hn.use12Hours,ea=hn.separator,Sa=ea===void 0?"~":ea,Ka=hn.value,Ha=hn.defaultValue,Ba=hn.defaultPickerValue,fs=hn.open,La=hn.defaultOpen,Ca=hn.disabledDate,Ta=hn.disabledTime,as=hn.dateRender,gs=hn.monthCellRender,Ja=hn.cellRender,Oa=hn.panelRender,Rs=hn.presets,hl=hn.ranges,nt=hn.allowEmpty,ut=hn.allowClear,_t=hn.suffixIcon,qt=hn.clearIcon,bn=hn.pickerRef,gn=hn.inputReadOnly,Jn=hn.mode,Un=hn.renderExtraFooter,Zn=hn.onChange,xi=hn.onOpenChange,ni=hn.onPanelChange,mi=hn.onCalendarChange,_i=hn.onFocus,Ji=hn.onBlur,ji=hn.onMouseDown,wr=hn.onMouseUp,Vi=hn.onMouseEnter,kr=hn.onMouseLeave,Er=hn.onClick,Or=hn.onOk,So=hn.onKeyDown,Lo=hn.components,Wr=hn.order,to=hn.direction,Ko=hn.activePickerIndex,Rr=hn.autoComplete,lo=Rr===void 0?"off":Rr,Zr=hn.changeOnBlur,mr=po==="date"&&!!ur||po==="time",Nr=(0,Pe.useRef)(null),uo=(0,Pe.useRef)(null),Mo=(0,Pe.useRef)(null),Fo=(0,Pe.useRef)(null),Fr=(0,Pe.useRef)(null),Vo=(0,Pe.useRef)(null),_o=(0,Pe.useRef)(null),na=(0,Pe.useRef)(null),ta=dn(ui(vo,po,ur,aa)),Qa=(0,Pe.useRef)(null),fa=Pe.useMemo(function(){return Array.isArray(ro)?ro:[ro||!1,ro||!1]},[ro]),Wo=(0,Si.Z)(null,{value:Ka,defaultValue:Ha,postState:function(Go){return po==="time"&&!Wr?Go:xo(Go,ti)}}),Po=(0,Cn.Z)(Wo,2),To=Po[0],Ya=Po[1],Ia=Gl({values:To,picker:po,defaultDates:Ba,generateConfig:ti}),ns=(0,Cn.Z)(Ia,2),Ro=ns[0],bo=ns[1],Zo=(0,Si.Z)(To,{postState:function(Go){var la=Go;if(fa[0]&&fa[1])return la;for(var rs=0;rs<2;rs+=1)fa[rs]&&!la&&!Pt(la,rs)&&!Pt(nt,rs)&&(la=Sn(la,ti.getNow(),rs));return la}}),wo=(0,Cn.Z)(Zo,2),so=wo[0],tr=wo[1],Gr=(0,Si.Z)([po,po],{value:Jn}),Uo=(0,Cn.Z)(Gr,2),sa=Uo[0],al=Uo[1];(0,Pe.useEffect)(function(){al([po,po])},[po]);var zs=function(Go,la){al(Go),ni&&ni(la,Go)},Al=ga(La,fs,Ko,Zr,Vo,_o,Pt(so,0),Pt(so,1),fa,xi),Na=(0,Cn.Z)(Al,4),Ua=Na[0],Do=Na[1],Vs=Na[2],Ll=Na[3],Wa=Ua&&Do===0,_a=Ua&&Do===1,is=nl({picker:po,selectedValue:so,locale:er,disabled:fa,disabledDate:Ca,generateConfig:ti},!Ua||Vs),bs=(0,Cn.Z)(is,2),Gs=bs[0],xa=bs[1],ss=(0,Pe.useState)(0),Js=(0,Cn.Z)(ss,2),Xa=Js[0],zo=Js[1];(0,Pe.useEffect)(function(){!Ua&&Nr.current&&zo(Nr.current.offsetWidth)},[Ua]);function Ms(us){Ll(!0,us,"open"),(0,rr.Z)(function(){var Go,la=[Vo,_o][us];(Go=la.current)===null||Go===void 0||Go.focus()},0)}function Ys(us,Go){var la=us,rs=Pt(la,0),ll=Pt(la,1);rs&&ll&&ti.isAfter(rs,ll)&&(po==="week"&&!Le(ti,er.locale,rs,ll)||po==="quarter"&&!we(ti,rs,ll)||po!=="week"&&po!=="quarter"&&po!=="time"&&!De(ti,rs,ll)?Go===0?(la=[rs,null],ll=null):(rs=null,la=[null,ll]):(po!=="time"||Wr!==!1)&&(la=xo(la,ti))),tr(la);var md=la&&la[0]?Hn(la[0],{generateConfig:ti,locale:er,format:ta[0]}):"",tu=la&&la[1]?Hn(la[1],{generateConfig:ti,locale:er,format:ta[0]}):"";if(mi){var td={range:Go===0?"start":"end"};mi(la,[md,tu],td)}var Ac=Au(rs,0,fa,nt),ph=Au(ll,1,fa,nt),nd=la===null||Ac&&ph;nd&&(Ya(la),Zn&&(!st(ti,Pt(To,0),rs)||!st(ti,Pt(To,1),ll))&&Zn(la,[md,tu]))}var Wu=function(Go){return Ua&&Qa.current&&Qa.current.onKeyDown?Qa.current.onKeyDown(Go):((0,We.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},vu={formatList:ta,generateConfig:ti,locale:er},$a=Ri(Pt(so,0),vu),Ml=(0,Cn.Z)($a,2),Ps=Ml[0],ps=Ml[1],Nu=Ri(Pt(so,1),vu),Cc=(0,Cn.Z)(Nu,2),ql=Cc[0],ac=Cc[1],sc=function(Go,la){var rs=wi(Go,{locale:er,formatList:ta,generateConfig:ti}),ll=la===0?Gs:xa;rs&&!ll(rs)&&(tr(Sn(so,rs,la)),bo(rs,la))},yu=en({valueTexts:Ps,onTextChange:function(Go){return sc(Go,0)}}),Ra=(0,Cn.Z)(yu,3),ls=Ra[0],Qs=Ra[1],ms=Ra[2],za=en({valueTexts:ql,onTextChange:function(Go){return sc(Go,1)}}),_s=(0,Cn.Z)(za,3),Rl=_s[0],Zu=_s[1],uh=_s[2],pn=(0,Pe.useState)(null),Rc=(0,Cn.Z)(pn,2),bc=Rc[0],jh=Rc[1],bd=(0,Pe.useState)(null),_c=(0,Cn.Z)(bd,2),zc=_c[0],gf=_c[1],Fl=Zi(ls,{formatList:ta,generateConfig:ti,locale:er}),fd=(0,Cn.Z)(Fl,3),Wd=fd[0],Zd=fd[1],Kd=fd[2],pf=Zi(Rl,{formatList:ta,generateConfig:ti,locale:er}),Vd=(0,Cn.Z)(pf,3),Gd=Vd[0],Fu=Vd[1],$c=Vd[2],Hh=function(Go){gf(Sn(so,Go,Do)),Do===0?Zd(Go):Fu(Go)},lc=function(){gf(Sn(so,null,Do)),Do===0?Kd():$c()},qc=Pe.useState(Ua),gd=(0,Cn.Z)(qc,2),pd=gd[0],eu=gd[1];Pe.useEffect(function(){eu(Ua)},[Ua]);var ch=function(Go){if(Zr&&pd){var la=Pt(so,Do);la&&Ys(so,Do)}return Ji==null?void 0:Ji(Go)},Yd=function(Go,la){return{blurToCancel:!Zr&&mr,forwardKeyDown:Wu,onBlur:ch,isClickOutside:function(ll){return!yt([uo.current,Mo.current,Fo.current,Nr.current],ll)},onFocus:function(ll){_i&&_i(ll)},triggerOpen:function(ll){ll?Ll(ll,Go,"open"):Ll(ll,Pt(so,Go)?Go:!1,"blur")},onSubmit:function(){if(!so||Ca&&Ca(so[Go]))return!1;Ys(so,Go),la(),Ll(!1,Do,"confirm")},onCancel:function(){Ll(!1,Go,"cancel"),tr(To),la()}}},Su={onKeyDown:function(Go,la){So==null||So(Go,la)},changeOnBlur:Zr},Ed=Et((0,Vn.Z)((0,Vn.Z)({},Yd(0,ms)),{},{open:Wa,value:ls},Su)),Ud=(0,Cn.Z)(Ed,2),dh=Ud[0],jc=Ud[1],Hl=jc.focused,Xd=jc.typing,sl=Et((0,Vn.Z)((0,Vn.Z)({},Yd(1,uh)),{},{open:_a,value:Rl},Su)),Va=(0,Cn.Z)(sl,2),Es=Va[0],Dl=Va[1],Du=Dl.focused,Bu=Dl.typing,hh=function(Go){Er&&Er(Go),!Ua&&!Vo.current.contains(Go.target)&&!_o.current.contains(Go.target)&&(fa[0]?fa[1]||Ms(1):Ms(0))},ed=function(Go){ji&&ji(Go),Ua&&(Hl||Du)&&!Vo.current.contains(Go.target)&&!_o.current.contains(Go.target)&&Go.preventDefault()},Jd=To&&To[0]?Hn(To[0],{locale:er,format:"YYYYMMDDHHmmss",generateConfig:ti}):"",Qu=To&&To[1]?Hn(To[1],{locale:er,format:"YYYYMMDDHHmmss",generateConfig:ti}):"";(0,Pe.useEffect)(function(){Ua||(tr(To),!Ps.length||Ps[0]===""?Qs(""):ps!==ls&&ms(),!ql.length||ql[0]===""?Zu(""):ac!==Rl&&uh())},[Ua,Ps,ql]),(0,Pe.useEffect)(function(){tr(To)},[Jd,Qu]);var uc=an({cellRender:Ja,monthCellRender:gs,dateRender:as}),mf=Pe.useMemo(function(){if(uc)return function(us,Go){return uc(us,(0,Vn.Z)((0,Vn.Z)({},Go),{},{range:Do?"end":"start"}))}},[Do,uc]);bn&&(bn.current={focus:function(){Vo.current&&Vo.current.focus()},blur:function(){Vo.current&&Vo.current.blur(),_o.current&&_o.current.blur()}});var vf=Lt(Rs,hl);function fh(){var us=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Go=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},la=null;Ua&&zc&&zc[0]&&zc[1]&&ti.isAfter(zc[1],zc[0])&&(la=zc);var rs=ur;if(ur&&(0,Ue.Z)(ur)==="object"&&ur.defaultValue){var ll=ur.defaultValue;rs=(0,Vn.Z)((0,Vn.Z)({},ur),{},{defaultValue:Pt(ll,Do)||void 0})}return Pe.createElement(vn.Provider,{value:{inRange:!0,panelPosition:us,rangedValue:bc||so,hoverRangedValue:la}},Pe.createElement(ko,(0,ke.Z)({},He,Go,{cellRender:mf,showTime:rs,mode:sa[Do],generateConfig:ti,style:void 0,direction:to,disabledDate:Do===0?Gs:xa,disabledTime:function(tu){return Ta?Ta(tu,Do===0?"start":"end"):!1},className:bt()((0,St.Z)({},"".concat(Wn,"-panel-focused"),Do===0?!Xd:!Bu)),value:Pt(so,Do),locale:er,tabIndex:-1,onPanelChange:function(tu,td){Do===0&&Kd(!0),Do===1&&$c(!0),zs(Sn(sa,td,Do),Sn(so,tu,Do));var Ac=tu;us==="right"&&sa[Do]===td&&(Ac=ln(Ac,td,ti,-1)),bo(Ac,Do)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:Do===0?Pt(so,1):Pt(so,0)})))}var _u=0,yf=0;if(Do&&Mo.current&&Fr.current&&uo.current&&na.current){_u=Mo.current.offsetWidth+Fr.current.offsetWidth;var Kf=na.current.offsetLeft>_u?na.current.offsetLeft-_u:na.current.offsetLeft,Sf=uo.current.offsetWidth,Ec=na.current.offsetWidth;Sf&&Ec&&_u>Sf-Ec-(to==="rtl"?0:Kf)&&(yf=_u)}var wg=to==="rtl"?{right:_u}:{left:_u};function Vf(){var us,Go=Ga(Wn,sa[Do],Un),la=Ds({prefixCls:Wn,components:Lo,needConfirmButton:mr,okDisabled:!Pt(so,Do)||Ca&&Ca(so[Do]),locale:er,onOk:function(){var Lc=Pt(so,Do);Lc&&(Ys(so,Do),Or==null||Or(so),Ll(!1,Do,"confirm"))}});if(po!=="time"&&!ur){var rs=Ro(Do),ll=ln(rs,po,ti),md=sa[Do],tu=md===po,td=fh(tu?"left":!1,{pickerValue:rs,onPickerValueChange:function(Lc){bo(Lc,Do)}}),Ac=fh("right",{pickerValue:ll,onPickerValueChange:function(Lc){bo(ln(Lc,po,ti,-1),Do)}});to==="rtl"?us=Pe.createElement(Pe.Fragment,null,Ac,tu&&td):us=Pe.createElement(Pe.Fragment,null,td,tu&&Ac)}else us=fh();var ph=Pe.createElement("div",{className:"".concat(Wn,"-panel-layout")},Pe.createElement(ao,{prefixCls:Wn,presets:vf,onClick:function(Lc){Ys(Lc,null),Ll(!1,Do,"preset")},onHover:function(Lc){jh(Lc)}}),Pe.createElement("div",null,Pe.createElement("div",{className:"".concat(Wn,"-panels")},us),(Go||la)&&Pe.createElement("div",{className:"".concat(Wn,"-footer")},Go,la)));return Oa&&(ph=Oa(ph)),Pe.createElement("div",{className:"".concat(Wn,"-panel-container"),style:{marginLeft:yf},ref:uo,onMouseDown:function(Lc){Lc.preventDefault()}},ph)}var gh=Pe.createElement("div",{className:bt()("".concat(Wn,"-range-wrapper"),"".concat(Wn,"-").concat(po,"-range-wrapper")),style:{minWidth:Xa}},Pe.createElement("div",{ref:na,className:"".concat(Wn,"-range-arrow"),style:wg}),Vf()),Ad;_t&&(Ad=Pe.createElement("span",{className:"".concat(Wn,"-suffix"),onMouseDown:function(Go){Go.preventDefault()}},_t));var Gf=ha(Wn,ut,qt),Hc=Pe.createElement("span",{onMouseDown:function(Go){Go.preventDefault(),Go.stopPropagation()},onMouseUp:function(Go){Go.preventDefault(),Go.stopPropagation();var la=To;fa[0]||(la=Sn(la,null,0)),fa[1]||(la=Sn(la,null,1)),Ys(la,null),Ll(!1,Do,"clear")},className:"".concat(Wn,"-clear"),role:"button"},Gf),Yf=ut&&(Pt(To,0)&&!fa[0]||Pt(To,1)&&!fa[1]),Wh={size:Ir(po,ta[0],ti)},xf=0,Zh=0;Mo.current&&Fo.current&&Fr.current&&(Do===0?Zh=Mo.current.offsetWidth:(xf=_u,Zh=Fo.current.offsetWidth));var Uf=to==="rtl"?{right:xf}:{left:xf},up=function(Go,la){var rs=Sn(so,Go,Do);if(la==="submit"||la!=="key"&&!mr){Ys(rs,Do),Do===0?Kd():$c();var ll=Do===0?1:0;fa[ll]?Ll(!1,!1,"confirm"):Ll(!1,Do,"confirm")}else tr(rs)};return Pe.createElement(xt.Provider,{value:{operationRef:Qa,hideHeader:po==="time",onDateMouseEnter:Hh,onDateMouseLeave:lc,hideRanges:!0,onSelect:up,open:Ua}},Pe.createElement(No,{visible:Ua,popupElement:gh,popupStyle:lr,prefixCls:Wn,dropdownClassName:Ai,dropdownAlign:Ei,getPopupContainer:Cr,transitionName:qi,range:!0,direction:to},Pe.createElement("div",(0,ke.Z)({ref:Nr,className:bt()(Wn,"".concat(Wn,"-range"),ki,(_e={},(0,St.Z)(_e,"".concat(Wn,"-disabled"),fa[0]&&fa[1]),(0,St.Z)(_e,"".concat(Wn,"-focused"),Do===0?Hl:Du),(0,St.Z)(_e,"".concat(Wn,"-rtl"),to==="rtl"),_e)),style:ci,onClick:hh,onMouseEnter:Vi,onMouseLeave:kr,onMouseDown:ed,onMouseUp:wr},(0,Bn.Z)(He,{aria:!0,data:!0})),Pe.createElement("div",{className:bt()("".concat(Wn,"-input"),(lt={},(0,St.Z)(lt,"".concat(Wn,"-input-active"),Do===0),(0,St.Z)(lt,"".concat(Wn,"-input-placeholder"),!!Wd),lt)),ref:Mo},Pe.createElement("input",(0,ke.Z)({id:ri,disabled:fa[0],readOnly:gn||typeof ta[0]=="function"||!Xd,value:Wd||ls,onChange:function(Go){Qs(Go.target.value)},autoFocus:fo,placeholder:Pt(br,0)||"",ref:Vo},dh,Wh,{autoComplete:lo}))),Pe.createElement("div",{className:"".concat(Wn,"-range-separator"),ref:Fr},Sa),Pe.createElement("div",{className:bt()("".concat(Wn,"-input"),(nn={},(0,St.Z)(nn,"".concat(Wn,"-input-active"),Do===1),(0,St.Z)(nn,"".concat(Wn,"-input-placeholder"),!!Gd),nn)),ref:Fo},Pe.createElement("input",(0,ke.Z)({disabled:fa[1],readOnly:gn||typeof ta[0]=="function"||!Bu,value:Gd||Rl,onChange:function(Go){Zu(Go.target.value)},placeholder:Pt(br,1)||"",ref:_o},Es,Wh,{autoComplete:lo}))),Pe.createElement("div",{className:"".concat(Wn,"-active-bar"),style:(0,Vn.Z)((0,Vn.Z)({},Uf),{},{width:Zh,position:"absolute"})}),Ad,Yf&&Hc)))}var Nl=function(He){(0,En.Z)(lt,He);var _e=(0,Yn.Z)(lt);function lt(){var nn;(0,Jt.Z)(this,lt);for(var hn=arguments.length,Tn=new Array(hn),Wn=0;Wn<hn;Wn++)Tn[Wn]=arguments[Wn];return nn=_e.call.apply(_e,[this].concat(Tn)),(0,St.Z)((0,Kn.Z)(nn),"pickerRef",Pe.createRef()),(0,St.Z)((0,Kn.Z)(nn),"focus",function(){nn.pickerRef.current&&nn.pickerRef.current.focus()}),(0,St.Z)((0,Kn.Z)(nn),"blur",function(){nn.pickerRef.current&&nn.pickerRef.current.blur()}),nn}return(0,un.Z)(lt,[{key:"render",value:function(){return Pe.createElement(il,(0,ke.Z)({},this.props,{pickerRef:this.pickerRef}))}}]),lt}(Pe.Component),vl=Nl,fu=ys,yl=ye(19080),rl=ye(36355),Sl=ye(1684),oc=ye(19716),Sc=ye(32441),xc=ye(9763),Qc=ye(33234),gu=ye(48183),zl=ye(64993),xl=ye(9937),Tl=ye(17313),pu=ye(47585),wc=ye(74207),mu=ye(13826),Xo=ye(92899),va=ye(37613),dl=ye(83116);const Cs=(He,_e,lt,nn)=>{const{lineHeight:hn}=He,Tn=Math.floor(lt*hn)+2,Wn=Math.max((_e-Tn)/2,0),ri=Math.max(_e-Tn-Wn,0);return{padding:`${Wn}px ${nn}px ${ri}px`}},Ss=He=>{const{componentCls:_e,pickerCellCls:lt,pickerCellInnerCls:nn,cellHeight:hn,motionDurationSlow:Tn,borderRadiusSM:Wn,motionDurationMid:ri,cellHoverBg:ci,lineWidth:ki,lineType:lr,colorPrimary:Ai,cellActiveWithRangeBg:qi,colorTextLightSolid:Ei,controlHeightSM:Cr,cellRangeBorderColor:ti,pickerCellBorderGap:er,cellHoverWithRangeBg:br,cellWidth:fo,colorTextDisabled:ro,cellBgDisabled:vo}=He;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:hn,transform:"translateY(-50%)",transition:`all ${Tn}`,content:'""'},[nn]:{position:"relative",zIndex:2,display:"inline-block",minWidth:hn,height:hn,lineHeight:`${hn}px`,borderRadius:Wn,transition:`background ${ri}, border ${ri}`},"&-range-hover-start, &-range-hover-end":{[nn]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:hover:not(${lt}-in-view),
&:hover:not(${lt}-selected):not(${lt}-range-start):not(${lt}-range-end):not(${lt}-range-hover-start):not(${lt}-range-hover-end)`]:{[nn]:{background:ci}},[`&-in-view${lt}-today ${nn}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${ki}px ${lr} ${Ai}`,borderRadius:Wn,content:'""'}},[`&-in-view${lt}-in-range`]:{position:"relative","&::before":{background:qi}},[`&-in-view${lt}-selected ${nn},
&-in-view${lt}-range-start ${nn},
&-in-view${lt}-range-end ${nn}`]:{color:Ei,background:Ai},[`&-in-view${lt}-range-start:not(${lt}-range-start-single),
&-in-view${lt}-range-end:not(${lt}-range-end-single)`]:{"&::before":{background:qi}},[`&-in-view${lt}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${lt}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${lt}-range-hover-start:not(${lt}-in-range):not(${lt}-range-start):not(${lt}-range-end),
&-in-view${lt}-range-hover-end:not(${lt}-in-range):not(${lt}-range-start):not(${lt}-range-end),
&-in-view${lt}-range-hover-start${lt}-range-start-single,
&-in-view${lt}-range-hover-start${lt}-range-start${lt}-range-end${lt}-range-end-near-hover,
&-in-view${lt}-range-hover-end${lt}-range-start${lt}-range-end${lt}-range-start-near-hover,
&-in-view${lt}-range-hover-end${lt}-range-end-single,
&-in-view${lt}-range-hover:not(${lt}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:Cr,borderTop:`${ki}px dashed ${ti}`,borderBottom:`${ki}px dashed ${ti}`,transform:"translateY(-50%)",transition:`all ${Tn}`,content:'""'}},"&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after":{insetInlineEnd:0,insetInlineStart:er},[`&-in-view${lt}-in-range${lt}-range-hover::before,
&-in-view${lt}-in-range${lt}-range-hover-start::before,
&-in-view${lt}-in-range${lt}-range-hover-end::before,
&-in-view${lt}-range-start${lt}-range-hover::before,
&-in-view${lt}-range-end${lt}-range-hover::before,
&-in-view${lt}-range-start:not(${lt}-range-start-single)${lt}-range-hover-start::before,
&-in-view${lt}-range-end:not(${lt}-range-end-single)${lt}-range-hover-end::before,
${_e}-panel
> :not(${_e}-date-panel)
&-in-view${lt}-in-range${lt}-range-hover-start::before,
${_e}-panel
> :not(${_e}-date-panel)
&-in-view${lt}-in-range${lt}-range-hover-end::before`]:{background:br},[`&-in-view${lt}-range-start:not(${lt}-range-start-single):not(${lt}-range-end) ${nn}`]:{borderStartStartRadius:Wn,borderEndStartRadius:Wn,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${lt}-range-end:not(${lt}-range-end-single):not(${lt}-range-start) ${nn}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:Wn,borderEndEndRadius:Wn},[`&-range-hover${lt}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${lt}-range-hover:first-child::after,
tr > &-in-view${lt}-range-hover-end:first-child::after,
&-in-view${lt}-start${lt}-range-hover-edge-start${lt}-range-hover-edge-start-near-range::after,
&-in-view${lt}-range-hover-edge-start:not(${lt}-range-hover-edge-start-near-range)::after,
&-in-view${lt}-range-hover-start::after`]:{insetInlineStart:(fo-hn)/2,borderInlineStart:`${ki}px dashed ${ti}`,borderStartStartRadius:Wn,borderEndStartRadius:Wn},[`tr > &-in-view${lt}-range-hover:last-child::after,
tr > &-in-view${lt}-range-hover-start:last-child::after,
&-in-view${lt}-end${lt}-range-hover-edge-end${lt}-range-hover-edge-end-near-range::after,
&-in-view${lt}-range-hover-edge-end:not(${lt}-range-hover-edge-end-near-range)::after,
&-in-view${lt}-range-hover-end::after`]:{insetInlineEnd:(fo-hn)/2,borderInlineEnd:`${ki}px dashed ${ti}`,borderStartEndRadius:Wn,borderEndEndRadius:Wn},"&-disabled":{color:ro,pointerEvents:"none",[nn]:{background:"transparent"},"&::before":{background:vo}},[`&-disabled${lt}-today ${nn}::before`]:{borderColor:ro}}},os=He=>{const{componentCls:_e,pickerCellCls:lt,pickerCellInnerCls:nn,pickerYearMonthCellWidth:hn,pickerControlIconSize:Tn,cellWidth:Wn,paddingSM:ri,paddingXS:ci,paddingXXS:ki,colorBgContainer:lr,lineWidth:Ai,lineType:qi,borderRadiusLG:Ei,colorPrimary:Cr,colorTextHeading:ti,colorSplit:er,pickerControlIconBorderWidth:br,colorIcon:fo,textHeight:ro,motionDurationMid:vo,colorIconHover:yo,fontWeightStrong:po,cellHeight:ur,pickerCellPaddingVertical:aa,colorTextDisabled:ea,colorText:Sa,fontSize:Ka,cellHoverWithRangeBg:Ha,motionDurationSlow:Ba,withoutTimeCellHeight:fs,pickerQuarterPanelContentHeight:La,colorLink:Ca,colorLinkActive:Ta,colorLinkHover:as,cellRangeBorderColor:gs,borderRadiusSM:Ja,colorTextLightSolid:Oa,cellHoverBg:Rs,timeColumnHeight:hl,timeColumnWidth:nt,timeCellHeight:ut,controlItemBgActive:_t,marginXXS:qt,pickerDatePanelPaddingHorizontal:bn}=He,gn=Wn*7+bn*2,Jn=(gn-ci*2)/3-hn-ri,Un=(gn-ci*2)/4-hn;return{[_e]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:lr,border:`${Ai}px ${qi} ${er}`,borderRadius:Ei,outline:"none","&-focused":{borderColor:Cr},"&-rtl":{direction:"rtl",[`${_e}-prev-icon,
${_e}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${_e}-next-icon,
${_e}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:gn},"&-header":{display:"flex",padding:`0 ${ci}px`,color:ti,borderBottom:`${Ai}px ${qi} ${er}`,"> *":{flex:"none"},button:{padding:0,color:fo,lineHeight:`${ro}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${vo}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:Ka,"&:hover":{color:yo}},"&-view":{flex:"auto",fontWeight:po,lineHeight:`${ro}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:ci},"&:hover":{color:Cr}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:Tn,height:Tn,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:Tn,height:Tn,border:"0 solid currentcolor",borderBlockStartWidth:br,borderBlockEndWidth:0,borderInlineStartWidth:br,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Math.ceil(Tn/2),insetInlineStart:Math.ceil(Tn/2),display:"inline-block",width:Tn,height:Tn,border:"0 solid currentcolor",borderBlockStartWidth:br,borderBlockEndWidth:0,borderInlineStartWidth:br,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:ur,fontWeight:"normal"},th:{height:ur+aa*2,color:Sa,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${aa}px 0`,color:ea,cursor:"pointer","&-in-view":{color:Sa}},Ss(He)),[`&-date-panel ${_e}-cell-in-view${_e}-cell-in-range${_e}-cell-range-hover-start ${nn},
&-date-panel ${_e}-cell-in-view${_e}-cell-in-range${_e}-cell-range-hover-end ${nn}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:Ha,transition:`all ${Ba}`,content:'""'}},[`&-date-panel
${_e}-cell-in-view${_e}-cell-in-range${_e}-cell-range-hover-start
${nn}::after`]:{insetInlineEnd:-(Wn-ur)/2,insetInlineStart:0},[`&-date-panel ${_e}-cell-in-view${_e}-cell-in-range${_e}-cell-range-hover-end ${nn}::after`]:{insetInlineEnd:0,insetInlineStart:-(Wn-ur)/2},[`&-range-hover${_e}-range-start::after`]:{insetInlineEnd:"50%"},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${_e}-content`]:{height:fs*4},[nn]:{padding:`0 ${ci}px`}},"&-quarter-panel":{[`${_e}-content`]:{height:La},[`${_e}-cell-range-hover-start::after`]:{insetInlineStart:Un,borderInlineStart:`${Ai}px dashed ${gs}`,[`${_e}-panel-rtl &`]:{insetInlineEnd:Un,borderInlineEnd:`${Ai}px dashed ${gs}`}},[`${_e}-cell-range-hover-end::after`]:{insetInlineEnd:Un,borderInlineEnd:`${Ai}px dashed ${gs}`,[`${_e}-panel-rtl &`]:{insetInlineStart:Un,borderInlineStart:`${Ai}px dashed ${gs}`}}},[`&-panel ${_e}-footer`]:{borderTop:`${Ai}px ${qi} ${er}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:`${ro-2*Ai}px`,textAlign:"center","&-extra":{padding:`0 ${ri}px`,lineHeight:`${ro-2*Ai}px`,textAlign:"start","&:not(:last-child)":{borderBottom:`${Ai}px ${qi} ${er}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:Ca,"&:hover":{color:as},"&:active":{color:Ta},[`&${_e}-today-btn-disabled`]:{color:ea,cursor:"not-allowed"}},"&-decade-panel":{[nn]:{padding:`0 ${ci/2}px`},[`${_e}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${_e}-body`]:{padding:`0 ${ci}px`},[nn]:{width:hn},[`${_e}-cell-range-hover-start::after`]:{borderStartStartRadius:Ja,borderEndStartRadius:Ja,borderStartEndRadius:0,borderEndEndRadius:0,[`${_e}-panel-rtl &`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:Ja,borderEndEndRadius:Ja}},[`${_e}-cell-range-hover-end::after`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:Ja,borderEndEndRadius:Ja,[`${_e}-panel-rtl &`]:{borderStartStartRadius:Ja,borderEndStartRadius:Ja,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-year-panel,\n &-month-panel":{[`${_e}-cell-range-hover-start::after`]:{insetInlineStart:Jn,borderInlineStart:`${Ai}px dashed ${gs}`,[`${_e}-panel-rtl &`]:{insetInlineEnd:Jn,borderInlineEnd:`${Ai}px dashed ${gs}`}},[`${_e}-cell-range-hover-end::after`]:{insetInlineEnd:Jn,borderInlineEnd:`${Ai}px dashed ${gs}`,[`${_e}-panel-rtl &`]:{insetInlineStart:Jn,borderInlineStart:`${Ai}px dashed ${gs}`}}},"&-week-panel":{[`${_e}-body`]:{padding:`${ci}px ${ri}px`},[`${_e}-cell`]:{[`&:hover ${nn},
&-selected ${nn},
${nn}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${vo}`},"&:first-child:before":{borderStartStartRadius:Ja,borderEndStartRadius:Ja},"&:last-child:before":{borderStartEndRadius:Ja,borderEndEndRadius:Ja}},"&:hover td":{"&:before":{background:Rs}},"&-range-start td,\n &-range-end td,\n &-selected td":{[`&${lt}`]:{"&:before":{background:Cr},[`&${_e}-cell-week`]:{color:new zl.C(Oa).setAlpha(.5).toHexString()},[nn]:{color:Oa}}},"&-range-hover td:before":{background:_t}}},"&-date-panel":{[`${_e}-body`]:{padding:`${ci}px ${bn}px`},[`${_e}-content`]:{width:Wn*7,th:{width:Wn,boxSizing:"border-box",padding:0}}},"&-datetime-panel":{display:"flex",[`${_e}-time-panel`]:{borderInlineStart:`${Ai}px ${qi} ${er}`},[`${_e}-date-panel,
${_e}-time-panel`]:{transition:`opacity ${Ba}`},"&-active":{[`${_e}-date-panel,
${_e}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${_e}-content`]:{display:"flex",flex:"auto",height:hl},"&-column":{flex:"1 0 auto",width:nt,margin:`${ki}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${vo}`,overflowX:"hidden","&::after":{display:"block",height:hl-ut,content:'""'},"&:not(:first-child)":{borderInlineStart:`${Ai}px ${qi} ${er}`},"&-active":{background:new zl.C(_t).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${_e}-time-panel-cell`]:{marginInline:qt,[`${_e}-time-panel-cell-inner`]:{display:"block",width:nt-2*qt,height:ut,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(nt-ut)/2,color:Sa,lineHeight:`${ut}px`,borderRadius:Ja,cursor:"pointer",transition:`background ${vo}`,"&:hover":{background:Rs}},"&-selected":{[`${_e}-time-panel-cell-inner`]:{background:_t}},"&-disabled":{[`${_e}-time-panel-cell-inner`]:{color:ea,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${_e}-time-panel-column:after`]:{height:hl-ut+ki*2}}}},hs=He=>{const{componentCls:_e,colorBgContainer:lt,colorError:nn,errorActiveShadow:hn,colorWarning:Tn,warningActiveShadow:Wn}=He;return{[`${_e}:not(${_e}-disabled)`]:{[`&${_e}-status-error`]:{"&, &:not([disabled]):hover":{backgroundColor:lt,borderColor:nn},[`&${_e}-focused, &:focus`]:Object.assign({},(0,xl.M1)((0,va.TS)(He,{activeBorderColor:nn,activeShadow:hn}))),[`${_e}-active-bar`]:{background:nn}},[`&${_e}-status-warning`]:{"&, &:not([disabled]):hover":{backgroundColor:lt,borderColor:Tn},[`&${_e}-focused, &:focus`]:Object.assign({},(0,xl.M1)((0,va.TS)(He,{activeBorderColor:Tn,activeShadow:Wn}))),[`${_e}-active-bar`]:{background:Tn}}}}},Ls=He=>{const{componentCls:_e,antCls:lt,controlHeight:nn,fontSize:hn,paddingInline:Tn,colorBgContainer:Wn,lineWidth:ri,lineType:ci,colorBorder:ki,borderRadius:lr,motionDurationMid:Ai,colorBgContainerDisabled:qi,colorTextDisabled:Ei,colorTextPlaceholder:Cr,controlHeightLG:ti,fontSizeLG:er,controlHeightSM:br,paddingInlineSM:fo,paddingXS:ro,marginXS:vo,colorTextDescription:yo,lineWidthBold:po,lineHeight:ur,colorPrimary:aa,motionDurationSlow:ea,zIndexPopup:Sa,paddingXXS:Ka,paddingSM:Ha,textHeight:Ba,cellActiveWithRangeBg:fs,colorPrimaryBorder:La,sizePopupArrow:Ca,borderRadiusXS:Ta,borderRadiusOuter:as,colorBgElevated:gs,borderRadiusLG:Ja,boxShadowSecondary:Oa,borderRadiusSM:Rs,colorSplit:hl,cellHoverBg:nt,presetsWidth:ut,presetsMaxWidth:_t,boxShadowPopoverArrow:qt,colorTextQuaternary:bn}=He;return[{[_e]:Object.assign(Object.assign(Object.assign({},(0,Tl.Wf)(He)),Cs(He,nn,hn,Tn)),{position:"relative",display:"inline-flex",alignItems:"center",background:Wn,lineHeight:1,border:`${ri}px ${ci} ${ki}`,borderRadius:lr,transition:`border ${Ai}, box-shadow ${Ai}`,"&:hover, &-focused":Object.assign({},(0,xl.pU)(He)),"&-focused":Object.assign({},(0,xl.M1)(He)),[`&${_e}-disabled`]:{background:qi,borderColor:ki,cursor:"not-allowed",[`${_e}-suffix`]:{color:bn}},[`&${_e}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${_e}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({},(0,xl.ik)(He)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,borderRadius:0,"&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${_e}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:Cr}}},"&-large":Object.assign(Object.assign({},Cs(He,ti,er,Tn)),{[`${_e}-input > input`]:{fontSize:er}}),"&-small":Object.assign({},Cs(He,br,hn,fo)),[`${_e}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:ro/2,color:Ei,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:vo}}},[`${_e}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:Ei,lineHeight:1,background:Wn,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${Ai}, color ${Ai}`,"> *":{verticalAlign:"top"},"&:hover":{color:yo}},[`${_e}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:er,color:Ei,fontSize:er,verticalAlign:"top",cursor:"default",[`${_e}-focused &`]:{color:yo},[`${_e}-range-separator &`]:{[`${_e}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${_e}-clear`]:{insetInlineEnd:Tn},"&:hover":{[`${_e}-clear`]:{opacity:1}},[`${_e}-active-bar`]:{bottom:-ri,height:po,marginInlineStart:Tn,background:aa,opacity:0,transition:`all ${ea} ease-out`,pointerEvents:"none"},[`&${_e}-focused`]:{[`${_e}-active-bar`]:{opacity:1}},[`${_e}-range-separator`]:{alignItems:"center",padding:`0 ${ro}px`,lineHeight:1},[`&${_e}-small`]:{[`${_e}-clear`]:{insetInlineEnd:fo},[`${_e}-active-bar`]:{marginInlineStart:fo}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,Tl.Wf)(He)),os(He)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Sa,[`&${_e}-dropdown-hidden`]:{display:"none"},[`&${_e}-dropdown-placement-bottomLeft`]:{[`${_e}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${_e}-dropdown-placement-topLeft`]:{[`${_e}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${lt}-slide-up-enter${lt}-slide-up-enter-active${_e}-dropdown-placement-topLeft,
&${lt}-slide-up-enter${lt}-slide-up-enter-active${_e}-dropdown-placement-topRight,
&${lt}-slide-up-appear${lt}-slide-up-appear-active${_e}-dropdown-placement-topLeft,
&${lt}-slide-up-appear${lt}-slide-up-appear-active${_e}-dropdown-placement-topRight`]:{animationName:mu.Qt},[`&${lt}-slide-up-enter${lt}-slide-up-enter-active${_e}-dropdown-placement-bottomLeft,
&${lt}-slide-up-enter${lt}-slide-up-enter-active${_e}-dropdown-placement-bottomRight,
&${lt}-slide-up-appear${lt}-slide-up-appear-active${_e}-dropdown-placement-bottomLeft,
&${lt}-slide-up-appear${lt}-slide-up-appear-active${_e}-dropdown-placement-bottomRight`]:{animationName:mu.fJ},[`&${lt}-slide-up-leave${lt}-slide-up-leave-active${_e}-dropdown-placement-topLeft,
&${lt}-slide-up-leave${lt}-slide-up-leave-active${_e}-dropdown-placement-topRight`]:{animationName:mu.ly},[`&${lt}-slide-up-leave${lt}-slide-up-leave-active${_e}-dropdown-placement-bottomLeft,
&${lt}-slide-up-leave${lt}-slide-up-leave-active${_e}-dropdown-placement-bottomRight`]:{animationName:mu.Uw},[`${_e}-panel > ${_e}-time-panel`]:{paddingTop:Ka},[`${_e}-ranges`]:{marginBottom:0,padding:`${Ka}px ${Ha}px`,overflow:"hidden",lineHeight:`${Ba-2*ri-ro/2}px`,textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${_e}-preset > ${lt}-tag-blue`]:{color:aa,background:fs,borderColor:La,cursor:"pointer"},[`${_e}-ok`]:{marginInlineStart:"auto"}},[`${_e}-range-wrapper`]:{display:"flex",position:"relative"},[`${_e}-range-arrow`]:Object.assign({position:"absolute",zIndex:1,display:"none",marginInlineStart:Tn*1.5,transition:`left ${ea} ease-out`},(0,pu.r)(Ca,Ta,as,gs,qt)),[`${_e}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:gs,borderRadius:Ja,boxShadow:Oa,transition:`margin ${ea}`,[`${_e}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${_e}-presets`]:{display:"flex",flexDirection:"column",minWidth:ut,maxWidth:_t,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:ro,borderInlineEnd:`${ri}px ${ci} ${hl}`,li:Object.assign(Object.assign({},Tl.vS),{borderRadius:Rs,paddingInline:ro,paddingBlock:(br-Math.round(hn*ur))/2,cursor:"pointer",transition:`all ${ea}`,"+ li":{marginTop:vo},"&:hover":{background:nt}})}},[`${_e}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${_e}-panel`]:{borderWidth:`0 0 ${ri}px`},"&:last-child":{[`${_e}-panel`]:{borderWidth:0}}},[`${_e}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${_e}-content,
table`]:{textAlign:"center"},"&-focused":{borderColor:ki}}}}),"&-dropdown-range":{padding:`${Ca*2/3}px 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${_e}-separator`]:{transform:"rotate(180deg)"},[`${_e}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,mu.oN)(He,"slide-up"),(0,mu.oN)(He,"slide-down"),(0,Xo.Fm)(He,"move-up"),(0,Xo.Fm)(He,"move-down")]},xs=He=>{const{componentCls:_e,controlHeightLG:lt,paddingXXS:nn,padding:hn}=He;return{pickerCellCls:`${_e}-cell`,pickerCellInnerCls:`${_e}-cell-inner`,pickerYearMonthCellWidth:lt*1.5,pickerQuarterPanelContentHeight:lt*1.4,pickerCellPaddingVertical:nn+nn/2,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:hn+nn/2}},Ks=He=>({cellHoverBg:He.controlItemBgHover,cellActiveWithRangeBg:He.controlItemBgActive,cellHoverWithRangeBg:new zl.C(He.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new zl.C(He.colorPrimary).lighten(20).toHexString(),cellBgDisabled:He.colorBgContainerDisabled,timeColumnWidth:He.controlHeightLG*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:He.controlHeightSM*1.5,cellHeight:He.controlHeightSM,textHeight:He.controlHeightLG,withoutTimeCellHeight:He.controlHeightLG*1.65});var Ts=(0,dl.Z)("DatePicker",He=>{const _e=(0,va.TS)((0,xl.e5)(He),xs(He));return[Ls(_e),hs(_e),(0,wc.c)(He,{focusElCls:`${He.componentCls}-focused`})]},He=>Object.assign(Object.assign(Object.assign({},(0,xl.TM)(He)),Ks(He)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:He.zIndexPopupBase+50}));function ka(He,_e,lt){return lt!==void 0?lt:_e==="year"&&He.lang.yearPlaceholder?He.lang.yearPlaceholder:_e==="quarter"&&He.lang.quarterPlaceholder?He.lang.quarterPlaceholder:_e==="month"&&He.lang.monthPlaceholder?He.lang.monthPlaceholder:_e==="week"&&He.lang.weekPlaceholder?He.lang.weekPlaceholder:_e==="time"&&He.timePickerLocale.placeholder?He.timePickerLocale.placeholder:He.lang.placeholder}function Hu(He,_e,lt){return lt!==void 0?lt:_e==="year"&&He.lang.yearPlaceholder?He.lang.rangeYearPlaceholder:_e==="quarter"&&He.lang.quarterPlaceholder?He.lang.rangeQuarterPlaceholder:_e==="month"&&He.lang.monthPlaceholder?He.lang.rangeMonthPlaceholder:_e==="week"&&He.lang.weekPlaceholder?He.lang.rangeWeekPlaceholder:_e==="time"&&He.timePickerLocale.placeholder?He.timePickerLocale.rangePlaceholder:He.lang.rangePlaceholder}function Ol(He,_e){const lt={adjustX:1,adjustY:1};switch(_e){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:lt};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:lt};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:lt};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:lt};default:return{points:He==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:lt}}}function El(He){return He?Array.isArray(He)?He:[He]:[]}function Hr(He){const{format:_e,picker:lt,showHour:nn,showMinute:hn,showSecond:Tn,use12Hours:Wn}=He,ri=El(_e)[0],ci=Object.assign({},He);return _e&&Array.isArray(_e)&&(ci.format=ri),ri&&typeof ri=="string"&&(!ri.includes("s")&&Tn===void 0&&(ci.showSecond=!1),!ri.includes("m")&&hn===void 0&&(ci.showMinute=!1),!ri.includes("H")&&!ri.includes("h")&&!ri.includes("K")&&!ri.includes("k")&&nn===void 0&&(ci.showHour=!1),(ri.includes("a")||ri.includes("A"))&&Wn===void 0&&(ci.use12Hours=!0)),lt==="time"?ci:(typeof ri=="function"&&delete ci.format,{showTime:ci})}function Lu(He,_e,lt){if(He===!1)return!1;const nn={clearIcon:_e!=null?_e:lt};return typeof He=="object"?Object.assign(Object.assign({},nn),He):nn}var Zt=ye(3113);function di(He){return Pe.createElement(Zt.ZP,Object.assign({size:"small",type:"primary"},He))}var ku={button:di},_l=function(He,_e){var lt={};for(var nn in He)Object.prototype.hasOwnProperty.call(He,nn)&&_e.indexOf(nn)<0&&(lt[nn]=He[nn]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var hn=0,nn=Object.getOwnPropertySymbols(He);hn<nn.length;hn++)_e.indexOf(nn[hn])<0&&Object.prototype.propertyIsEnumerable.call(He,nn[hn])&&(lt[nn[hn]]=He[nn[hn]]);return lt};function $l(He){return(0,Pe.forwardRef)((lt,nn)=>{const{prefixCls:hn,getPopupContainer:Tn,className:Wn,placement:ri,size:ci,disabled:ki,bordered:lr=!0,placeholder:Ai,popupClassName:qi,dropdownClassName:Ei,status:Cr,clearIcon:ti,allowClear:er,rootClassName:br}=lt,fo=_l(lt,["prefixCls","getPopupContainer","className","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","clearIcon","allowClear","rootClassName"]),ro=Pe.useRef(null),{getPrefixCls:vo,direction:yo,getPopupContainer:po}=(0,Pe.useContext)(rl.E_),ur=vo("picker",hn),{compactSize:aa,compactItemClassnames:ea}=(0,Qc.ri)(ur,yo),{format:Sa,showTime:Ka,picker:Ha}=lt,Ba=vo(),[fs,La]=Ts(ur),Ca=Object.assign(Object.assign({},Ka?Hr(Object.assign({format:Sa,picker:Ha},Ka)):{}),Ha==="time"?Hr(Object.assign(Object.assign({format:Sa},lt),{picker:Ha})):{}),Ta=(0,oc.Z)(qt=>{var bn;return(bn=ci!=null?ci:aa)!==null&&bn!==void 0?bn:qt}),as=Pe.useContext(Sl.Z),gs=ki!=null?ki:as,Ja=(0,Pe.useContext)(Sc.aM),{hasFeedback:Oa,status:Rs,feedbackIcon:hl}=Ja,nt=Pe.createElement(Pe.Fragment,null,Ha==="time"?Pe.createElement(Yt,null):Pe.createElement(Ge,null),Oa&&hl);(0,Pe.useImperativeHandle)(nn,()=>({focus:()=>{var qt;return(qt=ro.current)===null||qt===void 0?void 0:qt.focus()},blur:()=>{var qt;return(qt=ro.current)===null||qt===void 0?void 0:qt.blur()}}));const[ut]=(0,xc.Z)("Calendar",gu.Z),_t=Object.assign(Object.assign({},ut),lt.locale);return fs(Pe.createElement(vl,Object.assign({separator:Pe.createElement("span",{"aria-label":"to",className:`${ur}-separator`},Pe.createElement(wn,null)),disabled:gs,ref:ro,dropdownAlign:Ol(yo,ri),placeholder:Hu(_t,Ha,Ai),suffixIcon:nt,prevIcon:Pe.createElement("span",{className:`${ur}-prev-icon`}),nextIcon:Pe.createElement("span",{className:`${ur}-next-icon`}),superPrevIcon:Pe.createElement("span",{className:`${ur}-super-prev-icon`}),superNextIcon:Pe.createElement("span",{className:`${ur}-super-next-icon`}),transitionName:`${Ba}-slide-up`},fo,Ca,{className:bt()({[`${ur}-${Ta}`]:Ta,[`${ur}-borderless`]:!lr},(0,yl.Z)(ur,(0,yl.F)(Rs,Cr),Oa),La,ea,Wn,br),locale:_t.lang,prefixCls:ur,getPopupContainer:Tn||po,generateConfig:He,components:ku,direction:yo,dropdownClassName:bt()(La,qi||Ei,br),allowClear:Lu(er,ti,Pe.createElement(Bt.Z,null))})))})}var jl=function(He,_e){var lt={};for(var nn in He)Object.prototype.hasOwnProperty.call(He,nn)&&_e.indexOf(nn)<0&&(lt[nn]=He[nn]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var hn=0,nn=Object.getOwnPropertySymbols(He);hn<nn.length;hn++)_e.indexOf(nn[hn])<0&&Object.prototype.propertyIsEnumerable.call(He,nn[hn])&&(lt[nn[hn]]=He[nn[hn]]);return lt};function Pc(He){function _e(ci,ki){const lr=ki==="TimePicker"?"timePicker":"datePicker",Ai=(0,Pe.forwardRef)((qi,Ei)=>{const{prefixCls:Cr,getPopupContainer:ti,style:er,className:br,rootClassName:fo,size:ro,bordered:vo=!0,placement:yo,placeholder:po,popupClassName:ur,dropdownClassName:aa,disabled:ea,status:Sa,clearIcon:Ka,allowClear:Ha}=qi,Ba=jl(qi,["prefixCls","getPopupContainer","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","clearIcon","allowClear"]),{getPrefixCls:fs,direction:La,getPopupContainer:Ca,[lr]:Ta}=(0,Pe.useContext)(rl.E_),as=fs("picker",Cr),{compactSize:gs,compactItemClassnames:Ja}=(0,Qc.ri)(as,La),Oa=Pe.useRef(null),{format:Rs,showTime:hl}=qi,[nt,ut]=Ts(as);(0,Pe.useImperativeHandle)(Ei,()=>({focus:()=>{var Vi;return(Vi=Oa.current)===null||Vi===void 0?void 0:Vi.focus()},blur:()=>{var Vi;return(Vi=Oa.current)===null||Vi===void 0?void 0:Vi.blur()}}));const _t={showToday:!0};let qt={};ci&&(qt.picker=ci);const bn=ci||qi.picker;qt=Object.assign(Object.assign(Object.assign({},qt),hl?Hr(Object.assign({format:Rs,picker:bn},hl)):{}),bn==="time"?Hr(Object.assign(Object.assign({format:Rs},qi),{picker:bn})):{});const gn=fs(),Jn=(0,oc.Z)(Vi=>{var kr;return(kr=ro!=null?ro:gs)!==null&&kr!==void 0?kr:Vi}),Un=Pe.useContext(Sl.Z),Zn=ea!=null?ea:Un,xi=(0,Pe.useContext)(Sc.aM),{hasFeedback:ni,status:mi,feedbackIcon:_i}=xi,Ji=Pe.createElement(Pe.Fragment,null,bn==="time"?Pe.createElement(Yt,null):Pe.createElement(Ge,null),ni&&_i),[ji]=(0,xc.Z)("DatePicker",gu.Z),wr=Object.assign(Object.assign({},ji),qi.locale);return nt(Pe.createElement(fu,Object.assign({ref:Oa,placeholder:ka(wr,bn,po),suffixIcon:Ji,dropdownAlign:Ol(La,yo),prevIcon:Pe.createElement("span",{className:`${as}-prev-icon`}),nextIcon:Pe.createElement("span",{className:`${as}-next-icon`}),superPrevIcon:Pe.createElement("span",{className:`${as}-super-prev-icon`}),superNextIcon:Pe.createElement("span",{className:`${as}-super-next-icon`}),transitionName:`${gn}-slide-up`},_t,Ba,qt,{locale:wr.lang,className:bt()({[`${as}-${Jn}`]:Jn,[`${as}-borderless`]:!vo},(0,yl.Z)(as,(0,yl.F)(mi,Sa),ni),ut,Ja,Ta==null?void 0:Ta.className,br,fo),style:Object.assign(Object.assign({},Ta==null?void 0:Ta.style),er),prefixCls:as,getPopupContainer:ti||Ca,generateConfig:He,components:ku,direction:La,disabled:Zn,dropdownClassName:bt()(ut,fo,ur||aa),allowClear:Lu(Ha,Ka,Pe.createElement(Bt.Z,null))})))});return ki&&(Ai.displayName=ki),Ai}const lt=_e(),nn=_e("week","WeekPicker"),hn=_e("month","MonthPicker"),Tn=_e("year","YearPicker"),Wn=_e("time","TimePicker"),ri=_e("quarter","QuarterPicker");return{DatePicker:lt,WeekPicker:nn,MonthPicker:hn,YearPicker:Tn,TimePicker:Wn,QuarterPicker:ri}}const Ic=null;function Os(He){const{DatePicker:_e,WeekPicker:lt,MonthPicker:nn,YearPicker:hn,TimePicker:Tn,QuarterPicker:Wn}=Pc(He),ri=$l(He),ci=_e;return ci.WeekPicker=lt,ci.MonthPicker=nn,ci.YearPicker=hn,ci.RangePicker=ri,ci.TimePicker=Tn,ci.QuarterPicker=Wn,ci}var Io=Os;const wl=Io(ve);function Il(He){const _e=Ol(He.direction,He.placement);return _e.overflow.adjustY=!1,_e.overflow.adjustX=!1,Object.assign(Object.assign({},He),{dropdownAlign:_e})}const ws=(0,Ce.Z)(wl,"picker",null,Il);wl._InternalPanelDoNotUseOrYouWillBeFired=ws;const ya=(0,Ce.Z)(wl.RangePicker,"picker",null,Il);wl._InternalRangePanelDoNotUseOrYouWillBeFired=ya,wl.generatePicker=Io;var ol=wl},28103:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return dt}});var xe=ye(92310),Ie=ye.n(xe),We=ye(59301),It=ye(36355),Qe=ye(17313),vt=ye(83116),Ne=ye(37613);const Tt=Ct=>{const{componentCls:Me,sizePaddingEdgeHorizontal:te,colorSplit:ne,lineWidth:ce,textPaddingInline:se,orientationMargin:ge,verticalMarginInline:ve}=Ct;return{[Me]:Object.assign(Object.assign({},(0,Qe.Wf)(Ct)),{borderBlockStart:`${ce}px solid ${ne}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:ve,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${ce}px solid ${ne}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Ct.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${Me}-with-text`]:{display:"flex",alignItems:"center",margin:`${Ct.dividerHorizontalWithTextGutterMargin}px 0`,color:Ct.colorTextHeading,fontWeight:500,fontSize:Ct.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${ne}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${ce}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${Me}-with-text-left`]:{"&::before":{width:`${ge*100}%`},"&::after":{width:`${100-ge*100}%`}},[`&-horizontal${Me}-with-text-right`]:{"&::before":{width:`${100-ge*100}%`},"&::after":{width:`${ge*100}%`}},[`${Me}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:se},"&-dashed":{background:"none",borderColor:ne,borderStyle:"dashed",borderWidth:`${ce}px 0 0`},[`&-horizontal${Me}-with-text${Me}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Me}-dashed`]:{borderInlineStartWidth:ce,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Me}-with-text`]:{color:Ct.colorText,fontWeight:"normal",fontSize:Ct.fontSize},[`&-horizontal${Me}-with-text-left${Me}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Me}-inner-text`]:{paddingInlineStart:te}},[`&-horizontal${Me}-with-text-right${Me}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Me}-inner-text`]:{paddingInlineEnd:te}}})}};var Ft=(0,vt.Z)("Divider",Ct=>{const Me=(0,Ne.TS)(Ct,{dividerHorizontalWithTextGutterMargin:Ct.margin,dividerHorizontalGutterMargin:Ct.marginLG,sizePaddingEdgeHorizontal:0});return[Tt(Me)]},Ct=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Ct.marginXS})),qe=function(Ct,Me){var te={};for(var ne in Ct)Object.prototype.hasOwnProperty.call(Ct,ne)&&Me.indexOf(ne)<0&&(te[ne]=Ct[ne]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,ne=Object.getOwnPropertySymbols(Ct);ce<ne.length;ce++)Me.indexOf(ne[ce])<0&&Object.prototype.propertyIsEnumerable.call(Ct,ne[ce])&&(te[ne[ce]]=Ct[ne[ce]]);return te},dt=Ct=>{const{getPrefixCls:Me,direction:te,divider:ne}=We.useContext(It.E_),{prefixCls:ce,type:se="horizontal",orientation:ge="center",orientationMargin:ve,className:Ce,rootClassName:ke,children:Pe,dashed:Te,plain:Ke,style:et}=Ct,Xe=qe(Ct,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),ft=Me("divider",ce),[Ge,kt]=Ft(ft),$e=ge.length>0?`-${ge}`:ge,zt=!!Pe,Ht=ge==="left"&&ve!=null,Yt=ge==="right"&&ve!=null,Bt=Ie()(ft,ne==null?void 0:ne.className,kt,`${ft}-${se}`,{[`${ft}-with-text`]:zt,[`${ft}-with-text${$e}`]:zt,[`${ft}-dashed`]:!!Te,[`${ft}-plain`]:!!Ke,[`${ft}-rtl`]:te==="rtl",[`${ft}-no-default-orientation-margin-left`]:Ht,[`${ft}-no-default-orientation-margin-right`]:Yt},Ce,ke),Qt=We.useMemo(()=>typeof ve=="number"?ve:/^\d+$/.test(ve)?Number(ve):ve,[ve]),ht=Object.assign(Object.assign({},Ht&&{marginLeft:Qt}),Yt&&{marginRight:Qt});return Ge(We.createElement("div",Object.assign({className:Bt,style:Object.assign(Object.assign({},ne==null?void 0:ne.style),et)},Xe,{role:"separator"}),Pe&&se!=="vertical"&&We.createElement("span",{className:`${ft}-inner-text`,style:ht},Pe)))}},91857:function(In,Fn,ye){"use strict";var xe=ye(59301),Ie=ye(53878),We=ye(92310),It=ye.n(We),Qe=ye(31561),vt=ye(80764),Ne=ye(35788),Tt=ye(64002),Ft=ye(79676),qe=ye(53487),gt=ye(92343),dt=ye(36355),Ct=ye(20834),Me=ye(40875),te=ye(88088),ne=ye(47211);const ce=null,se=ke=>{const{menu:Pe,arrow:Te,prefixCls:Ke,children:et,trigger:Xe,disabled:ft,dropdownRender:Ge,getPopupContainer:kt,overlayClassName:$e,rootClassName:zt,open:Ht,onOpenChange:Yt,visible:Bt,onVisibleChange:Qt,mouseEnterDelay:ht=.15,mouseLeaveDelay:je=.1,autoAdjustOverflow:At=!0,placement:wn="",overlay:rn,transitionName:bt}=ke,{getPopupContainer:Jt,getPrefixCls:un,direction:Kn}=xe.useContext(dt.E_),En=xe.useMemo(()=>{const me=un();return bt!==void 0?bt:wn.includes("top")?`${me}-slide-down`:`${me}-slide-up`},[un,wn,bt]),Yn=xe.useMemo(()=>wn?wn.includes("Center")?wn.slice(0,wn.indexOf("Center")):wn:Kn==="rtl"?"bottomRight":"bottomLeft",[wn,Kn]),St=un("dropdown",Ke),[Vn,Cn]=(0,ne.Z)(St),[,Si]=(0,te.Z)(),Bn=xe.Children.only(et),tn=(0,gt.Tm)(Bn,{className:It()(`${St}-trigger`,{[`${St}-rtl`]:Kn==="rtl"},Bn.props.className),disabled:ft}),$t=ft?[]:Xe;let ct;$t&&$t.includes("contextMenu")&&(ct=!0);const[ze,Ut]=(0,Ne.Z)(!1,{value:Ht!=null?Ht:Bt}),Gt=(0,vt.useEvent)(me=>{Yt==null||Yt(me),Qt==null||Qt(me),Ut(me)}),at=It()($e,zt,Cn,{[`${St}-rtl`]:Kn==="rtl"}),Ve=(0,Ft.Z)({arrowPointAtCenter:typeof Te=="object"&&Te.pointAtCenter,autoAdjustOverflow:At,offset:Si.marginXXS,arrowWidth:Te?Si.sizePopupArrow:0,borderRadius:Si.borderRadius}),Be=xe.useCallback(()=>{Ut(!1)},[]),we=()=>{let me;return Pe!=null&&Pe.items?me=xe.createElement(Ct.default,Object.assign({},Pe)):typeof rn=="function"?me=rn():me=rn,Ge&&(me=Ge(me)),me=xe.Children.only(typeof me=="string"?xe.createElement("span",null,me):me),xe.createElement(Me.J,{prefixCls:`${St}-menu`,expandIcon:xe.createElement("span",{className:`${St}-menu-submenu-arrow`},xe.createElement(Ie.Z,{className:`${St}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Be,validator:De=>{let{mode:Re}=De}},me)};return Vn(xe.createElement(Qe.Z,Object.assign({alignPoint:ct},(0,Tt.Z)(ke,["rootClassName"]),{mouseEnterDelay:ht,mouseLeaveDelay:je,visible:ze,builtinPlacements:Ve,arrow:!!Te,overlayClassName:at,prefixCls:St,getPopupContainer:kt||Jt,transitionName:En,trigger:$t,overlay:we,placement:Yn,onVisibleChange:Gt}),tn))};function ge(ke){return Object.assign(Object.assign({},ke),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ve=(0,qe.Z)(se,"dropdown",ke=>ke,ge),Ce=ke=>xe.createElement(ve,Object.assign({},ke),xe.createElement("span",null));se._InternalPanelDoNotUseOrYouWillBeFired=Ce,Fn.Z=se},38854:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return te}});var xe=ye(91857),Ie=ye(92310),We=ye.n(Ie),It=ye(59301),Qe=ye(19362),vt=ye(3113),Ne=ye(36355),Tt=ye(81327),Ft=ye(33234),qe=ye(47211),gt=function(ne,ce){var se={};for(var ge in ne)Object.prototype.hasOwnProperty.call(ne,ge)&&ce.indexOf(ge)<0&&(se[ge]=ne[ge]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,ge=Object.getOwnPropertySymbols(ne);ve<ge.length;ve++)ce.indexOf(ge[ve])<0&&Object.prototype.propertyIsEnumerable.call(ne,ge[ve])&&(se[ge[ve]]=ne[ge[ve]]);return se};const dt=ne=>{const{getPopupContainer:ce,getPrefixCls:se,direction:ge}=It.useContext(Ne.E_),{prefixCls:ve,type:Ce="default",danger:ke,disabled:Pe,loading:Te,onClick:Ke,htmlType:et,children:Xe,className:ft,menu:Ge,arrow:kt,autoFocus:$e,overlay:zt,trigger:Ht,align:Yt,open:Bt,onOpenChange:Qt,placement:ht,getPopupContainer:je,href:At,icon:wn=It.createElement(Qe.Z,null),title:rn,buttonsRender:bt=we=>we,mouseEnterDelay:Jt,mouseLeaveDelay:un,overlayClassName:Kn,overlayStyle:En,destroyPopupOnHide:Yn,dropdownRender:St}=ne,Vn=gt(ne,["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"]),Cn=se("dropdown",ve),Si=`${Cn}-button`,[Bn,tn]=(0,qe.Z)(Cn),$t={menu:Ge,arrow:kt,autoFocus:$e,align:Yt,disabled:Pe,trigger:Pe?[]:Ht,onOpenChange:Qt,getPopupContainer:je||ce,mouseEnterDelay:Jt,mouseLeaveDelay:un,overlayClassName:Kn,overlayStyle:En,destroyPopupOnHide:Yn,dropdownRender:St},{compactSize:ct,compactItemClassnames:ze}=(0,Ft.ri)(Cn,ge),Ut=We()(Si,ze,ft,tn);"overlay"in ne&&($t.overlay=zt),"open"in ne&&($t.open=Bt),"placement"in ne?$t.placement=ht:$t.placement=ge==="rtl"?"bottomLeft":"bottomRight";const Gt=It.createElement(vt.ZP,{type:Ce,danger:ke,disabled:Pe,loading:Te,onClick:Ke,htmlType:et,href:At,title:rn},Xe),at=It.createElement(vt.ZP,{type:Ce,danger:ke,icon:wn}),[Ve,Be]=bt([Gt,at]);return Bn(It.createElement(Tt.Z.Compact,Object.assign({className:Ut,size:ct,block:!0},Vn),Ve,It.createElement(xe.Z,Object.assign({},$t),Be)))};dt.__ANT_BUTTON=!0;var Ct=dt;const Me=xe.Z;Me.Button=Ct;var te=Me},47211:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return gt}});var xe=ye(17313),Ie=ye(13826),We=ye(92899),It=ye(29878),Qe=ye(19447),vt=ye(83116),Ne=ye(37613),Ft=dt=>{const{componentCls:Ct,menuCls:Me,colorError:te,colorTextLightSolid:ne}=dt,ce=`${Me}-item`;return{[`${Ct}, ${Ct}-menu-submenu`]:{[`${Me} ${ce}`]:{[`&${ce}-danger:not(${ce}-disabled)`]:{color:te,"&:hover":{color:ne,backgroundColor:te}}}}}};const qe=dt=>{const{componentCls:Ct,menuCls:Me,zIndexPopup:te,dropdownArrowDistance:ne,sizePopupArrow:ce,antCls:se,iconCls:ge,motionDurationMid:ve,dropdownPaddingVertical:Ce,fontSize:ke,dropdownEdgeChildPadding:Pe,colorTextDisabled:Te,fontSizeIcon:Ke,controlPaddingHorizontal:et,colorBgElevated:Xe}=dt;return[{[Ct]:Object.assign(Object.assign({},(0,xe.Wf)(dt)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:te,display:"block","&::before":{position:"absolute",insetBlock:-ne+ce/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${se}-btn`]:{[`& > ${ge}-down, & > ${se}-btn-icon > ${ge}-down`]:{fontSize:Ke}},[`${Ct}-wrap`]:{position:"relative",[`${se}-btn > ${ge}-down`]:{fontSize:Ke},[`${ge}-down::before`]:{transition:`transform ${ve}`}},[`${Ct}-wrap-open`]:{[`${ge}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${se}-slide-down-enter${se}-slide-down-enter-active${Ct}-placement-bottomLeft,
&${se}-slide-down-appear${se}-slide-down-appear-active${Ct}-placement-bottomLeft,
&${se}-slide-down-enter${se}-slide-down-enter-active${Ct}-placement-bottom,
&${se}-slide-down-appear${se}-slide-down-appear-active${Ct}-placement-bottom,
&${se}-slide-down-enter${se}-slide-down-enter-active${Ct}-placement-bottomRight,
&${se}-slide-down-appear${se}-slide-down-appear-active${Ct}-placement-bottomRight`]:{animationName:Ie.fJ},[`&${se}-slide-up-enter${se}-slide-up-enter-active${Ct}-placement-topLeft,
&${se}-slide-up-appear${se}-slide-up-appear-active${Ct}-placement-topLeft,
&${se}-slide-up-enter${se}-slide-up-enter-active${Ct}-placement-top,
&${se}-slide-up-appear${se}-slide-up-appear-active${Ct}-placement-top,
&${se}-slide-up-enter${se}-slide-up-enter-active${Ct}-placement-topRight,
&${se}-slide-up-appear${se}-slide-up-appear-active${Ct}-placement-topRight`]:{animationName:Ie.Qt},[`&${se}-slide-down-leave${se}-slide-down-leave-active${Ct}-placement-bottomLeft,
&${se}-slide-down-leave${se}-slide-down-leave-active${Ct}-placement-bottom,
&${se}-slide-down-leave${se}-slide-down-leave-active${Ct}-placement-bottomRight`]:{animationName:Ie.Uw},[`&${se}-slide-up-leave${se}-slide-up-leave-active${Ct}-placement-topLeft,
&${se}-slide-up-leave${se}-slide-up-leave-active${Ct}-placement-top,
&${se}-slide-up-leave${se}-slide-up-leave-active${Ct}-placement-topRight`]:{animationName:Ie.ly}})},(0,Qe.ZP)(dt,{colorBg:Xe,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Ct} ${Me}`]:{position:"relative",margin:0},[`${Me}-submenu-popup`]:{position:"absolute",zIndex:te,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ct}, ${Ct}-menu-submenu`]:{[Me]:Object.assign(Object.assign({padding:Pe,listStyleType:"none",backgroundColor:Xe,backgroundClip:"padding-box",borderRadius:dt.borderRadiusLG,outline:"none",boxShadow:dt.boxShadowSecondary},(0,xe.Qy)(dt)),{[`${Me}-item-group-title`]:{padding:`${Ce}px ${et}px`,color:dt.colorTextDescription,transition:`all ${ve}`},[`${Me}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Me}-item-icon`]:{minWidth:ke,marginInlineEnd:dt.marginXS,fontSize:dt.fontSizeSM},[`${Me}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${ve}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${Me}-item, ${Me}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${Ce}px ${et}px`,color:dt.colorText,fontWeight:"normal",fontSize:ke,lineHeight:dt.lineHeight,cursor:"pointer",transition:`all ${ve}`,borderRadius:dt.borderRadiusSM,"&:hover, &-active":{backgroundColor:dt.controlItemBgHover}},(0,xe.Qy)(dt)),{"&-selected":{color:dt.colorPrimary,backgroundColor:dt.controlItemBgActive,"&:hover, &-active":{backgroundColor:dt.controlItemBgActiveHover}},"&-disabled":{color:Te,cursor:"not-allowed","&:hover":{color:Te,backgroundColor:Xe,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${dt.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:dt.colorSplit},[`${Ct}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:dt.paddingXS,[`${Ct}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:dt.colorTextDescription,fontSize:Ke,fontStyle:"normal"}}}),[`${Me}-item-group-list`]:{margin:`0 ${dt.marginXS}px`,padding:0,listStyle:"none"},[`${Me}-submenu-title`]:{paddingInlineEnd:et+dt.fontSizeSM},[`${Me}-submenu-vertical`]:{position:"relative"},[`${Me}-submenu${Me}-submenu-disabled ${Ct}-menu-submenu-title`]:{[`&, ${Ct}-menu-submenu-arrow-icon`]:{color:Te,backgroundColor:Xe,cursor:"not-allowed"}},[`${Me}-submenu-selected ${Ct}-menu-submenu-title`]:{color:dt.colorPrimary}})}},[(0,Ie.oN)(dt,"slide-up"),(0,Ie.oN)(dt,"slide-down"),(0,We.Fm)(dt,"move-up"),(0,We.Fm)(dt,"move-down"),(0,It._y)(dt,"zoom-big")]]};var gt=(0,vt.Z)("Dropdown",(dt,Ct)=>{let{rootPrefixCls:Me}=Ct;const{marginXXS:te,sizePopupArrow:ne,controlHeight:ce,fontSize:se,lineHeight:ge,paddingXXS:ve,componentCls:Ce,borderRadiusLG:ke}=dt,Pe=(ce-se*ge)/2,{dropdownArrowOffset:Te}=(0,Qe.fS)({contentRadius:ke}),Ke=(0,Ne.TS)(dt,{menuCls:`${Ce}-menu`,rootPrefixCls:Me,dropdownArrowDistance:ne/2+te,dropdownArrowOffset:Te,dropdownPaddingVertical:Pe,dropdownEdgeChildPadding:ve});return[qe(Ke),Ft(Ke)]},dt=>({zIndexPopup:dt.zIndexPopupBase+50}))},64165:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return ve}});var xe=ye(92310),Ie=ye.n(xe),We=ye(59301),It=ye(36355),Qe=ye(9763),vt=ye(64993),Ne=ye(88088),Ft=()=>{const[,Ce]=(0,Ne.Z)(),Pe=new vt.C(Ce.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return We.createElement("svg",{style:Pe,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},We.createElement("g",{fill:"none",fillRule:"evenodd"},We.createElement("g",{transform:"translate(24 31.67)"},We.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),We.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"}),We.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)"}),We.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"}),We.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"})),We.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"}),We.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},We.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),We.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},gt=()=>{const[,Ce]=(0,Ne.Z)(),{colorFill:ke,colorFillTertiary:Pe,colorFillQuaternary:Te,colorBgContainer:Ke}=Ce,{borderColor:et,shadowColor:Xe,contentColor:ft}=(0,We.useMemo)(()=>({borderColor:new vt.C(ke).onBackground(Ke).toHexShortString(),shadowColor:new vt.C(Pe).onBackground(Ke).toHexShortString(),contentColor:new vt.C(Te).onBackground(Ke).toHexShortString()}),[ke,Pe,Te,Ke]);return We.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},We.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},We.createElement("ellipse",{fill:Xe,cx:"32",cy:"33",rx:"32",ry:"7"}),We.createElement("g",{fillRule:"nonzero",stroke:et},We.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"}),We.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:ft}))))},dt=ye(83116),Ct=ye(37613);const Me=Ce=>{const{componentCls:ke,margin:Pe,marginXS:Te,marginXL:Ke,fontSize:et,lineHeight:Xe}=Ce;return{[ke]:{marginInline:Te,fontSize:et,lineHeight:Xe,textAlign:"center",[`${ke}-image`]:{height:Ce.emptyImgHeight,marginBottom:Te,opacity:Ce.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${ke}-description`]:{color:Ce.colorText},[`${ke}-footer`]:{marginTop:Pe},"&-normal":{marginBlock:Ke,color:Ce.colorTextDisabled,[`${ke}-description`]:{color:Ce.colorTextDisabled},[`${ke}-image`]:{height:Ce.emptyImgHeightMD}},"&-small":{marginBlock:Te,color:Ce.colorTextDisabled,[`${ke}-image`]:{height:Ce.emptyImgHeightSM}}}}};var te=(0,dt.Z)("Empty",Ce=>{const{componentCls:ke,controlHeightLG:Pe}=Ce,Te=(0,Ct.TS)(Ce,{emptyImgCls:`${ke}-img`,emptyImgHeight:Pe*2.5,emptyImgHeightMD:Pe,emptyImgHeightSM:Pe*.875});return[Me(Te)]}),ne=function(Ce,ke){var Pe={};for(var Te in Ce)Object.prototype.hasOwnProperty.call(Ce,Te)&&ke.indexOf(Te)<0&&(Pe[Te]=Ce[Te]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,Te=Object.getOwnPropertySymbols(Ce);Ke<Te.length;Ke++)ke.indexOf(Te[Ke])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Te[Ke])&&(Pe[Te[Ke]]=Ce[Te[Ke]]);return Pe};const ce=We.createElement(Ft,null),se=We.createElement(gt,null),ge=Ce=>{var{className:ke,rootClassName:Pe,prefixCls:Te,image:Ke=ce,description:et,children:Xe,imageStyle:ft,style:Ge}=Ce,kt=ne(Ce,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:$e,direction:zt,empty:Ht}=We.useContext(It.E_),Yt=$e("empty",Te),[Bt,Qt]=te(Yt),[ht]=(0,Qe.Z)("Empty"),je=typeof et!="undefined"?et:ht==null?void 0:ht.description,At=typeof je=="string"?je:"empty";let wn=null;return typeof Ke=="string"?wn=We.createElement("img",{alt:At,src:Ke}):wn=Ke,Bt(We.createElement("div",Object.assign({className:Ie()(Qt,Yt,Ht==null?void 0:Ht.className,{[`${Yt}-normal`]:Ke===se,[`${Yt}-rtl`]:zt==="rtl"},ke,Pe),style:Object.assign(Object.assign({},Ht==null?void 0:Ht.style),Ge)},kt),We.createElement("div",{className:`${Yt}-image`,style:ft},wn),je&&We.createElement("div",{className:`${Yt}-description`},je),Xe&&We.createElement("div",{className:`${Yt}-footer`},Xe)))};ge.PRESENTED_IMAGE_DEFAULT=ce,ge.PRESENTED_IMAGE_SIMPLE=se;var ve=ge},78241:function(In,Fn,ye){"use strict";ye.d(Fn,{default:function(){return Lt}});var xe=ye(26390),Ie=ye(92310),We=ye.n(Ie),It=ye(43469),Qe=ye(59301),vt=ye(62892),Ne=ye(32441);function Tt(tt){const[en,fn]=Qe.useState(tt);return Qe.useEffect(()=>{const xt=setTimeout(()=>{fn(tt)},tt.length?0:10);return()=>{clearTimeout(xt)}},[tt]),en}var Ft=ye(17313),qe=ye(29878),gt=ye(8378),dt=ye(37613),Ct=ye(83116),te=tt=>{const{componentCls:en}=tt,fn=`${en}-show-help`,xt=`${en}-show-help-item`;return{[fn]:{transition:`opacity ${tt.motionDurationSlow} ${tt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[xt]:{overflow:"hidden",transition:`height ${tt.motionDurationSlow} ${tt.motionEaseInOut},
opacity ${tt.motionDurationSlow} ${tt.motionEaseInOut},
transform ${tt.motionDurationSlow} ${tt.motionEaseInOut} !important`,[`&${xt}-appear, &${xt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${xt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const ne=tt=>({legend:{display:"block",width:"100%",marginBottom:tt.marginLG,padding:0,color:tt.colorTextDescription,fontSize:tt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${tt.lineWidth}px ${tt.lineType} ${tt.colorBorder}`},label:{fontSize:tt.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 ${tt.controlOutlineWidth}px ${tt.controlOutline}`},output:{display:"block",paddingTop:15,color:tt.colorText,fontSize:tt.fontSize,lineHeight:tt.lineHeight}}),ce=(tt,en)=>{const{formItemCls:fn}=tt;return{[fn]:{[`${fn}-label > label`]:{height:en},[`${fn}-control-input`]:{minHeight:en}}}},se=tt=>{const{componentCls:en}=tt;return{[tt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Ft.Wf)(tt)),ne(tt)),{[`${en}-text`]:{display:"inline-block",paddingInlineEnd:tt.paddingSM},"&-small":Object.assign({},ce(tt,tt.controlHeightSM)),"&-large":Object.assign({},ce(tt,tt.controlHeightLG))})}},ge=tt=>{const{formItemCls:en,iconCls:fn,componentCls:xt,rootPrefixCls:Ue,labelRequiredMarkColor:an,labelColor:Dt,labelFontSize:Rn,labelHeight:dn,labelColonMarginInlineStart:Pt,labelColonMarginInlineEnd:Sn,itemMarginBottom:Qn}=tt;return{[en]:Object.assign(Object.assign({},(0,Ft.Wf)(tt)),{marginBottom:Qn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden.${Ue}-row`]:{display:"none"},"&-has-warning":{[`${en}-split`]:{color:tt.colorError}},"&-has-error":{[`${en}-split`]:{color:tt.colorWarning}},[`${en}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${tt.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:dn,color:Dt,fontSize:Rn,[`> ${fn}`]:{fontSize:tt.fontSize,verticalAlign:"top"},[`&${en}-required:not(${en}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:tt.marginXXS,color:an,fontSize:tt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${xt}-hide-required-mark &`]:{display:"none"}},[`${en}-optional`]:{display:"inline-block",marginInlineStart:tt.marginXXS,color:tt.colorTextDescription,[`${xt}-hide-required-mark &`]:{display:"none"}},[`${en}-tooltip`]:{color:tt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:tt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Pt,marginInlineEnd:Sn},[`&${en}-no-colon::after`]:{content:'"\\a0"'}}},[`${en}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Ue}-col-'"]):not([class*="' ${Ue}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:tt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[en]:{"&-explain, &-extra":{clear:"both",color:tt.colorTextDescription,fontSize:tt.fontSize,lineHeight:tt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:tt.controlHeightSM,transition:`color ${tt.motionDurationMid} ${tt.motionEaseOut}`},"&-explain":{"&-error":{color:tt.colorError},"&-warning":{color:tt.colorWarning}}},[`&-with-help ${en}-explain`]:{height:"auto",opacity:1},[`${en}-feedback-icon`]:{fontSize:tt.fontSize,textAlign:"center",visibility:"visible",animationName:qe.kr,animationDuration:tt.motionDurationMid,animationTimingFunction:tt.motionEaseOutBack,pointerEvents:"none","&-success":{color:tt.colorSuccess},"&-error":{color:tt.colorError},"&-warning":{color:tt.colorWarning},"&-validating":{color:tt.colorPrimary}}})}},ve=tt=>{const{componentCls:en,formItemCls:fn}=tt;return{[`${en}-horizontal`]:{[`${fn}-label`]:{flexGrow:0},[`${fn}-control`]:{flex:"1 1 0",minWidth:0},[`${fn}-label[class$='-24'], ${fn}-label[class*='-24 ']`]:{[`& + ${fn}-control`]:{minWidth:"unset"}}}}},Ce=tt=>{const{componentCls:en,formItemCls:fn}=tt;return{[`${en}-inline`]:{display:"flex",flexWrap:"wrap",[fn]:{flex:"none",marginInlineEnd:tt.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${fn}-label,
> ${fn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${fn}-label`]:{flex:"none"},[`${en}-text`]:{display:"inline-block"},[`${fn}-has-feedback`]:{display:"inline-block"}}}}},ke=tt=>({padding:tt.verticalLabelPadding,margin:tt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Pe=tt=>{const{componentCls:en,formItemCls:fn,rootPrefixCls:xt}=tt;return{[`${fn} ${fn}-label`]:ke(tt),[en]:{[fn]:{flexWrap:"wrap",[`${fn}-label, ${fn}-control`]:{[`&:not([class*=" ${xt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Te=tt=>{const{componentCls:en,formItemCls:fn,rootPrefixCls:xt}=tt;return{[`${en}-vertical`]:{[fn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${en}-item-control`]:{width:"100%"}}},[`${en}-vertical ${fn}-label,
.${xt}-col-24${fn}-label,
.${xt}-col-xl-24${fn}-label`]:ke(tt),[`@media (max-width: ${tt.screenXSMax}px)`]:[Pe(tt),{[en]:{[`.${xt}-col-xs-24${fn}-label`]:ke(tt)}}],[`@media (max-width: ${tt.screenSMMax}px)`]:{[en]:{[`.${xt}-col-sm-24${fn}-label`]:ke(tt)}},[`@media (max-width: ${tt.screenMDMax}px)`]:{[en]:{[`.${xt}-col-md-24${fn}-label`]:ke(tt)}},[`@media (max-width: ${tt.screenLGMax}px)`]:{[en]:{[`.${xt}-col-lg-24${fn}-label`]:ke(tt)}}}},Ke=(tt,en)=>(0,dt.TS)(tt,{formItemCls:`${tt.componentCls}-item`,rootPrefixCls:en});var et=(0,Ct.Z)("Form",(tt,en)=>{let{rootPrefixCls:fn}=en;const xt=Ke(tt,fn);return[se(xt),ge(xt),te(xt),ve(xt),Ce(xt),Te(xt),(0,gt.Z)(xt),qe.kr]},tt=>({labelRequiredMarkColor:tt.colorError,labelColor:tt.colorTextHeading,labelFontSize:tt.fontSize,labelHeight:tt.controlHeight,labelColonMarginInlineStart:tt.marginXXS/2,labelColonMarginInlineEnd:tt.marginXS,itemMarginBottom:tt.marginLG,verticalLabelPadding:`0 0 ${tt.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Xe=[];function ft(tt,en,fn){let xt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof tt=="string"?tt:`${en}-${xt}`,error:tt,errorStatus:fn}}var kt=tt=>{let{help:en,helpStatus:fn,errors:xt=Xe,warnings:Ue=Xe,className:an,fieldId:Dt,onVisibleChanged:Rn}=tt;const{prefixCls:dn}=Qe.useContext(Ne.Rk),Pt=`${dn}-item-explain`,[,Sn]=et(dn),Qn=(0,Qe.useMemo)(()=>(0,vt.Z)(dn),[dn]),Xn=Tt(xt),Rt=Tt(Ue),vn=Qe.useMemo(()=>en!=null?[ft(en,"help",fn)]:[].concat((0,xe.Z)(Xn.map((vi,pi)=>ft(vi,"error","error",pi))),(0,xe.Z)(Rt.map((vi,pi)=>ft(vi,"warning","warning",pi)))),[en,fn,Xn,Rt]),bi={};return Dt&&(bi.id=`${Dt}_help`),Qe.createElement(It.default,{motionDeadline:Qn.motionDeadline,motionName:`${dn}-show-help`,visible:!!vn.length,onVisibleChanged:Rn},vi=>{const{className:pi,style:ei}=vi;return Qe.createElement("div",Object.assign({},bi,{className:We()(Pt,pi,an,Sn),style:ei,role:"alert"}),Qe.createElement(It.CSSMotionList,Object.assign({keys:vn},(0,vt.Z)(dn),{motionName:`${dn}-show-help-item`,component:!1}),yi=>{const{key:Fi,error:Ki,errorStatus:hr,className:Gn,style:Li}=yi;return Qe.createElement("div",{key:Fi,className:We()(Gn,{[`${Pt}-${hr}`]:hr}),style:Li},Ki)}))})},$e=ye(95013),zt=ye(36355),Ht=ye(1684),Yt=ye(52946),Bt=ye(19716),Qt=ye(16722);const ht=["parentNode"],je="form_item";function At(tt){return tt===void 0||tt===!1?[]:Array.isArray(tt)?tt:[tt]}function wn(tt,en){if(!tt.length)return;const fn=tt.join("_");return en?`${en}_${fn}`:ht.includes(fn)?`${je}_${fn}`:fn}function rn(tt,en,fn,xt,Ue,an){let Dt=xt;return an!==void 0?Dt=an:fn.validating?Dt="validating":tt.length?Dt="error":en.length?Dt="warning":(fn.touched||Ue&&fn.validated)&&(Dt="success"),Dt}function bt(tt){return At(tt).join("_")}function Jt(tt){const[en]=(0,$e.useForm)(),fn=Qe.useRef({}),xt=Qe.useMemo(()=>tt!=null?tt:Object.assign(Object.assign({},en),{__INTERNAL__:{itemRef:Ue=>an=>{const Dt=bt(Ue);an?fn.current[Dt]=an:delete fn.current[Dt]}},scrollToField:function(Ue){let an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Dt=At(Ue),Rn=wn(Dt,xt.__INTERNAL__.name),dn=Rn?document.getElementById(Rn):null;dn&&(0,Qt.Z)(dn,Object.assign({scrollMode:"if-needed",block:"nearest"},an))},getFieldInstance:Ue=>{const an=bt(Ue);return fn.current[an]}}),[tt,en]);return[xt]}var un=ye(28726),Kn=function(tt,en){var fn={};for(var xt in tt)Object.prototype.hasOwnProperty.call(tt,xt)&&en.indexOf(xt)<0&&(fn[xt]=tt[xt]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,xt=Object.getOwnPropertySymbols(tt);Ue<xt.length;Ue++)en.indexOf(xt[Ue])<0&&Object.prototype.propertyIsEnumerable.call(tt,xt[Ue])&&(fn[xt[Ue]]=tt[xt[Ue]]);return fn};const En=(tt,en)=>{const fn=Qe.useContext(Ht.Z),{getPrefixCls:xt,direction:Ue,form:an}=Qe.useContext(zt.E_),{prefixCls:Dt,className:Rn,rootClassName:dn,size:Pt,disabled:Sn=fn,form:Qn,colon:Xn,labelAlign:Rt,labelWrap:vn,labelCol:bi,wrapperCol:vi,hideRequiredMark:pi,layout:ei="horizontal",scrollToFirstError:yi,requiredMark:Fi,onFinishFailed:Ki,name:hr,style:Gn,feedbackIcons:Li}=tt,Lr=Kn(tt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Dr=(0,Bt.Z)(Pt),Pr=Qe.useContext(un.Z),Xt=(0,Qe.useMemo)(()=>Fi!==void 0?Fi:an&&an.requiredMark!==void 0?an.requiredMark:!pi,[pi,Fi,an]),Mi=Xn!=null?Xn:an==null?void 0:an.colon,ar=xt("form",Dt),[Wi,Mr]=et(ar),fr=We()(ar,`${ar}-${ei}`,{[`${ar}-hide-required-mark`]:Xt===!1,[`${ar}-rtl`]:Ue==="rtl",[`${ar}-${Dr}`]:Dr},Mr,an==null?void 0:an.className,Rn,dn),[Br]=Jt(Qn),{__INTERNAL__:Oi}=Br;Oi.name=hr;const $i=(0,Qe.useMemo)(()=>({name:hr,labelAlign:Rt,labelCol:bi,labelWrap:vn,wrapperCol:vi,vertical:ei==="vertical",colon:Mi,requiredMark:Xt,itemRef:Oi.itemRef,form:Br,feedbackIcons:Li}),[hr,Rt,bi,vi,ei,Mi,Xt,Br,Li]);Qe.useImperativeHandle(en,()=>Br);const nr=(Tr,An)=>{if(Tr){let yr={block:"nearest"};typeof Tr=="object"&&(yr=Tr),Br.scrollToField(An,yr)}},Mn=Tr=>{if(Ki==null||Ki(Tr),Tr.errorFields.length){const An=Tr.errorFields[0].name;if(yi!==void 0){nr(yi,An);return}an&&an.scrollToFirstError!==void 0&&nr(an.scrollToFirstError,An)}};return Wi(Qe.createElement(Ht.n,{disabled:Sn},Qe.createElement(Yt.q,{size:Dr},Qe.createElement(Ne.RV,Object.assign({},{validateMessages:Pr}),Qe.createElement(Ne.q3.Provider,{value:$i},Qe.createElement($e.default,Object.assign({id:hr},Lr,{name:hr,onFinishFailed:Mn,form:Br,style:Object.assign(Object.assign({},an==null?void 0:an.style),Gn),className:fr})))))))};var St=Qe.forwardRef(En),Vn=ye(12383),Cn=ye(20475),Si=ye(92343),Bn=ye(38298);function tn(tt){if(typeof tt=="function")return tt;const en=(0,Bn.Z)(tt);return en.length<=1?en[0]:en}const $t=()=>{const{status:tt,errors:en=[],warnings:fn=[]}=(0,Qe.useContext)(Ne.aM);return{status:tt,errors:en,warnings:fn}};$t.Context=Ne.aM;var ct=$t,ze=ye(23073);function Ut(tt){const[en,fn]=Qe.useState(tt),xt=(0,Qe.useRef)(null),Ue=(0,Qe.useRef)([]),an=(0,Qe.useRef)(!1);Qe.useEffect(()=>(an.current=!1,()=>{an.current=!0,ze.Z.cancel(xt.current),xt.current=null}),[]);function Dt(Rn){an.current||(xt.current===null&&(Ue.current=[],xt.current=(0,ze.Z)(()=>{xt.current=null,fn(dn=>{let Pt=dn;return Ue.current.forEach(Sn=>{Pt=Sn(Pt)}),Pt})})),Ue.current.push(Rn))}return[en,Dt]}function Gt(){const{itemRef:tt}=Qe.useContext(Ne.q3),en=Qe.useRef({});function fn(xt,Ue){const an=Ue&&typeof Ue=="object"&&Ue.ref,Dt=xt.join("_");return(en.current.name!==Dt||en.current.originRef!==an)&&(en.current.name=Dt,en.current.originRef=an,en.current.ref=(0,Cn.sQ)(tt(xt),an)),en.current.ref}return fn}var at=ye(48886),Ve=ye(28800),Be=ye(64002),we=ye(27382),me=ye(37028);const De=tt=>{const{formItemCls:en}=tt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${en}-control`]:{display:"flex"}}}};var Re=(0,Ct.b)(["Form","item-item"],(tt,en)=>{let{rootPrefixCls:fn}=en;const xt=Ke(tt,fn);return[De(xt)]}),st=tt=>{const{prefixCls:en,status:fn,wrapperCol:xt,children:Ue,errors:an,warnings:Dt,_internalItemRender:Rn,extra:dn,help:Pt,fieldId:Sn,marginBottom:Qn,onErrorVisibleChanged:Xn}=tt,Rt=`${en}-item`,vn=Qe.useContext(Ne.q3),bi=xt||vn.wrapperCol||{},vi=We()(`${Rt}-control`,bi.className),pi=Qe.useMemo(()=>Object.assign({},vn),[vn]);delete pi.labelCol,delete pi.wrapperCol;const ei=Qe.createElement("div",{className:`${Rt}-control-input`},Qe.createElement("div",{className:`${Rt}-control-input-content`},Ue)),yi=Qe.useMemo(()=>({prefixCls:en,status:fn}),[en,fn]),Fi=Qn!==null||an.length||Dt.length?Qe.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},Qe.createElement(Ne.Rk.Provider,{value:yi},Qe.createElement(kt,{fieldId:Sn,errors:an,warnings:Dt,help:Pt,helpStatus:fn,className:`${Rt}-explain-connected`,onVisibleChanged:Xn})),!!Qn&&Qe.createElement("div",{style:{width:0,height:Qn}})):null,Ki={};Sn&&(Ki.id=`${Sn}_extra`);const hr=dn?Qe.createElement("div",Object.assign({},Ki,{className:`${Rt}-extra`}),dn):null,Gn=Rn&&Rn.mark==="pro_table_render"&&Rn.render?Rn.render(tt,{input:ei,errorList:Fi,extra:hr}):Qe.createElement(Qe.Fragment,null,ei,Fi,hr);return Qe.createElement(Ne.q3.Provider,{value:pi},Qe.createElement(me.Z,Object.assign({},bi,{className:vi}),Gn),Qe.createElement(Re,{prefixCls:en}))},Vt=ye(86902),sn=ye(31724),ln=ye(9763),Hn=ye(6848),wi=function(tt,en){var fn={};for(var xt in tt)Object.prototype.hasOwnProperty.call(tt,xt)&&en.indexOf(xt)<0&&(fn[xt]=tt[xt]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,xt=Object.getOwnPropertySymbols(tt);Ue<xt.length;Ue++)en.indexOf(xt[Ue])<0&&Object.prototype.propertyIsEnumerable.call(tt,xt[Ue])&&(fn[xt[Ue]]=tt[xt[Ue]]);return fn};function Pi(tt){return tt?typeof tt=="object"&&!Qe.isValidElement(tt)?tt:{title:tt}:null}var Zi=tt=>{let{prefixCls:en,label:fn,htmlFor:xt,labelCol:Ue,labelAlign:an,colon:Dt,required:Rn,requiredMark:dn,tooltip:Pt}=tt;var Sn;const[Qn]=(0,ln.Z)("Form"),{vertical:Xn,labelAlign:Rt,labelCol:vn,labelWrap:bi,colon:vi}=Qe.useContext(Ne.q3);if(!fn)return null;const pi=Ue||vn||{},ei=an||Rt,yi=`${en}-item-label`,Fi=We()(yi,ei==="left"&&`${yi}-left`,pi.className,{[`${yi}-wrap`]:!!bi});let Ki=fn;const hr=Dt===!0||vi!==!1&&Dt!==!1;hr&&!Xn&&typeof fn=="string"&&fn.trim()!==""&&(Ki=fn.replace(/[:|]\s*$/,""));const Li=Pi(Pt);if(Li){const{icon:Xt=Qe.createElement(Vt.Z,null)}=Li,Mi=wi(Li,["icon"]),ar=Qe.createElement(Hn.Z,Object.assign({},Mi),Qe.cloneElement(Xt,{className:`${en}-item-tooltip`,title:""}));Ki=Qe.createElement(Qe.Fragment,null,Ki,ar)}const Lr=dn==="optional",Dr=typeof dn=="function";Dr?Ki=dn(Ki,{required:!!Rn}):Lr&&!Rn&&(Ki=Qe.createElement(Qe.Fragment,null,Ki,Qe.createElement("span",{className:`${en}-item-optional`,title:""},(Qn==null?void 0:Qn.optional)||((Sn=sn.Z.Form)===null||Sn===void 0?void 0:Sn.optional))));const Pr=We()({[`${en}-item-required`]:Rn,[`${en}-item-required-mark-optional`]:Lr||Dr,[`${en}-item-no-colon`]:!hr});return Qe.createElement(me.Z,Object.assign({},pi,{className:Fi}),Qe.createElement("label",{htmlFor:xt,className:Pr,title:typeof fn=="string"?fn:""},Ki))},Ln=ye(79999),rr=ye(33130),Kr=ye(85404),Vr=ye(50023);const jr={success:Ln.Z,warning:Kr.Z,error:rr.Z,validating:Vr.Z};function li(tt){let{children:en,errors:fn,warnings:xt,hasFeedback:Ue,validateStatus:an,prefixCls:Dt,meta:Rn,noStyle:dn}=tt;const Pt=`${Dt}-item`,{feedbackIcons:Sn}=Qe.useContext(Ne.q3),Qn=rn(fn,xt,Rn,null,!!Ue,an),{isFormItemInput:Xn,status:Rt}=Qe.useContext(Ne.aM),vn=Qe.useMemo(()=>{var bi;let vi;if(Ue){const yi=Ue!==!0&&Ue.icons||Sn,Fi=Qn&&((bi=yi==null?void 0:yi({status:Qn,errors:fn,warnings:xt}))===null||bi===void 0?void 0:bi[Qn]),Ki=Qn&&jr[Qn];vi=Fi!==!1&&Ki?Qe.createElement("span",{className:We()(`${Pt}-feedback-icon`,`${Pt}-feedback-icon-${Qn}`)},Fi||Qe.createElement(Ki,null)):null}let pi=!0,ei=Qn||"";return dn&&(pi=Xn,ei=(Qn!=null?Qn:Rt)||""),{status:ei,errors:fn,warnings:xt,hasFeedback:!!Ue,feedbackIcon:vi,isFormItemInput:pi}},[Qn,Ue,dn,Xn,Rt]);return Qe.createElement(Ne.aM.Provider,{value:vn},en)}var Ti=function(tt,en){var fn={};for(var xt in tt)Object.prototype.hasOwnProperty.call(tt,xt)&&en.indexOf(xt)<0&&(fn[xt]=tt[xt]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,xt=Object.getOwnPropertySymbols(tt);Ue<xt.length;Ue++)en.indexOf(xt[Ue])<0&&Object.prototype.propertyIsEnumerable.call(tt,xt[Ue])&&(fn[xt[Ue]]=tt[xt[Ue]]);return fn};function vr(tt){const{prefixCls:en,className:fn,rootClassName:xt,style:Ue,help:an,errors:Dt,warnings:Rn,validateStatus:dn,meta:Pt,hasFeedback:Sn,hidden:Qn,children:Xn,fieldId:Rt,required:vn,isRequired:bi,onSubItemMetaChange:vi}=tt,pi=Ti(tt,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),ei=`${en}-item`,{requiredMark:yi}=Qe.useContext(Ne.q3),Fi=Qe.useRef(null),Ki=Tt(Dt),hr=Tt(Rn),Gn=an!=null,Li=!!(Gn||Dt.length||Rn.length),Lr=!!Fi.current&&(0,at.Z)(Fi.current),[Dr,Pr]=Qe.useState(null);(0,Ve.Z)(()=>{if(Li&&Fi.current){const Mr=getComputedStyle(Fi.current);Pr(parseInt(Mr.marginBottom,10))}},[Li,Lr]);const Xt=Mr=>{Mr||Pr(null)},ar=function(){let Mr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const fr=Mr?Ki:Pt.errors,Br=Mr?hr:Pt.warnings;return rn(fr,Br,Pt,"",!!Sn,dn)}(),Wi=We()(ei,fn,xt,{[`${ei}-with-help`]:Gn||Ki.length||hr.length,[`${ei}-has-feedback`]:ar&&Sn,[`${ei}-has-success`]:ar==="success",[`${ei}-has-warning`]:ar==="warning",[`${ei}-has-error`]:ar==="error",[`${ei}-is-validating`]:ar==="validating",[`${ei}-hidden`]:Qn});return Qe.createElement("div",{className:Wi,style:Ue,ref:Fi},Qe.createElement(we.Z,Object.assign({className:`${ei}-row`},(0,Be.Z)(pi,["_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"])),Qe.createElement(Zi,Object.assign({htmlFor:Rt},tt,{requiredMark:yi,required:vn!=null?vn:bi,prefixCls:en})),Qe.createElement(st,Object.assign({},tt,Pt,{errors:Ki,warnings:hr,prefixCls:en,status:ar,help:an,marginBottom:Dr,onErrorVisibleChanged:Xt}),Qe.createElement(Ne.qI.Provider,{value:vi},Qe.createElement(li,{prefixCls:en,meta:Pt,errors:Pt.errors,warnings:Pt.warnings,hasFeedback:Sn,validateStatus:ar},Xn)))),!!Dr&&Qe.createElement("div",{className:`${ei}-margin-offset`,style:{marginBottom:-Dr}}))}const ui="__SPLIT__",Ir=null,zn=Qe.memo(tt=>{let{children:en}=tt;return en},(tt,en)=>tt.value===en.value&&tt.update===en.update&&tt.childProps.length===en.childProps.length&&tt.childProps.every((fn,xt)=>fn===en.childProps[xt]));function Ee(tt){return tt!=null}function cr(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Xi(tt){const{name:en,noStyle:fn,className:xt,dependencies:Ue,prefixCls:an,shouldUpdate:Dt,rules:Rn,children:dn,required:Pt,label:Sn,messageVariables:Qn,trigger:Xn="onChange",validateTrigger:Rt,hidden:vn,help:bi}=tt,{getPrefixCls:vi}=Qe.useContext(zt.E_),{name:pi}=Qe.useContext(Ne.q3),ei=tn(dn),yi=typeof ei=="function",Fi=Qe.useContext(Ne.qI),{validateTrigger:Ki}=Qe.useContext($e.FieldContext),hr=Rt!==void 0?Rt:Ki,Gn=Ee(en),Li=vi("form",an),[Lr,Dr]=et(Li),Pr=Qe.useContext($e.ListContext),Xt=Qe.useRef(),[Mi,ar]=Ut({}),[Wi,Mr]=(0,Vn.Z)(()=>cr()),fr=An=>{const yr=Pr==null?void 0:Pr.getKey(An.name);if(Mr(An.destroy?cr():An,!0),fn&&bi!==!1&&Fi){let _r=An.name;if(An.destroy)_r=Xt.current||_r;else if(yr!==void 0){const[xr,Ho]=yr;_r=[xr].concat((0,xe.Z)(Ho)),Xt.current=_r}Fi(An,_r)}},Br=(An,yr)=>{ar(_r=>{const xr=Object.assign({},_r),ho=[].concat((0,xe.Z)(An.name.slice(0,-1)),(0,xe.Z)(yr)).join(ui);return An.destroy?delete xr[ho]:xr[ho]=An,xr})},[Oi,$i]=Qe.useMemo(()=>{const An=(0,xe.Z)(Wi.errors),yr=(0,xe.Z)(Wi.warnings);return Object.values(Mi).forEach(_r=>{An.push.apply(An,(0,xe.Z)(_r.errors||[])),yr.push.apply(yr,(0,xe.Z)(_r.warnings||[]))}),[An,yr]},[Mi,Wi.errors,Wi.warnings]),nr=Gt();function Mn(An,yr,_r){return fn&&!vn?Qe.createElement(li,{prefixCls:Li,hasFeedback:tt.hasFeedback,validateStatus:tt.validateStatus,meta:Wi,errors:Oi,warnings:$i,noStyle:!0},An):Qe.createElement(vr,Object.assign({key:"row"},tt,{className:We()(xt,Dr),prefixCls:Li,fieldId:yr,isRequired:_r,errors:Oi,warnings:$i,meta:Wi,onSubItemMetaChange:Br}),An)}if(!Gn&&!yi&&!Ue)return Lr(Mn(ei));let Tr={};return typeof Sn=="string"?Tr.label=Sn:en&&(Tr.label=String(en)),Qn&&(Tr=Object.assign(Object.assign({},Tr),Qn)),Lr(Qe.createElement($e.Field,Object.assign({},tt,{messageVariables:Tr,trigger:Xn,validateTrigger:hr,onMetaChange:fr}),(An,yr,_r)=>{const xr=At(en).length&&yr?yr.name:[],Ho=wn(xr,pi),ho=Pt!==void 0?Pt:!!(Rn&&Rn.some(pr=>{if(pr&&typeof pr=="object"&&pr.required&&!pr.warningOnly)return!0;if(typeof pr=="function"){const Yr=pr(_r);return Yr&&Yr.required&&!Yr.warningOnly}return!1})),Sr=Object.assign({},An);let gr=null;if(Array.isArray(ei)&&Gn)gr=ei;else if(!(yi&&(!(Dt||Ue)||Gn))){if(!(Ue&&!yi&&!Gn))if((0,Si.l$)(ei)){const pr=Object.assign(Object.assign({},ei.props),Sr);if(pr.id||(pr.id=Ho),bi||Oi.length>0||$i.length>0||tt.extra){const Je=[];(bi||Oi.length>0)&&Je.push(`${Ho}_help`),tt.extra&&Je.push(`${Ho}_extra`),pr["aria-describedby"]=Je.join(" ")}Oi.length>0&&(pr["aria-invalid"]="true"),ho&&(pr["aria-required"]="true"),(0,Cn.Yr)(ei)&&(pr.ref=nr(xr,ei)),new Set([].concat((0,xe.Z)(At(Xn)),(0,xe.Z)(At(hr)))).forEach(Je=>{pr[Je]=function(){for(var pt,Ot,cn,jn,Dn,Wt=arguments.length,kn=new Array(Wt),ai=0;ai<Wt;ai++)kn[ai]=arguments[ai];(cn=Sr[Je])===null||cn===void 0||(pt=cn).call.apply(pt,[Sr].concat(kn)),(Dn=(jn=ei.props)[Je])===null||Dn===void 0||(Ot=Dn).call.apply(Ot,[jn].concat(kn))}});const zi=[pr["aria-required"],pr["aria-invalid"],pr["aria-describedby"]];gr=Qe.createElement(zn,{value:Sr[tt.valuePropName||"value"],update:ei,childProps:zi},(0,Si.Tm)(ei,pr))}else yi&&(Dt||Ue)&&!Gn?gr=ei(_r):gr=ei}return Mn(gr,Ho,ho)}))}const yn=Xi;yn.useStatus=ct;var oi=yn,Ci=function(tt,en){var fn={};for(var xt in tt)Object.prototype.hasOwnProperty.call(tt,xt)&&en.indexOf(xt)<0&&(fn[xt]=tt[xt]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,xt=Object.getOwnPropertySymbols(tt);Ue<xt.length;Ue++)en.indexOf(xt[Ue])<0&&Object.prototype.propertyIsEnumerable.call(tt,xt[Ue])&&(fn[xt[Ue]]=tt[xt[Ue]]);return fn},on=tt=>{var{prefixCls:en,children:fn}=tt,xt=Ci(tt,["prefixCls","children"]);const{getPrefixCls:Ue}=Qe.useContext(zt.E_),an=Ue("form",en),Dt=Qe.useMemo(()=>({prefixCls:an,status:"error"}),[an]);return Qe.createElement($e.List,Object.assign({},xt),(Rn,dn,Pt)=>Qe.createElement(Ne.Rk.Provider,{value:Dt},fn(Rn.map(Sn=>Object.assign(Object.assign({},Sn),{fieldKey:Sn.key})),dn,{errors:Pt.errors,warnings:Pt.warnings})))};function yt(){const{form:tt}=(0,Qe.useContext)(Ne.q3);return tt}const Et=St;Et.Item=oi,Et.List=on,Et.ErrorList=kt,Et.useForm=Jt,Et.useFormInstance=yt,Et.useWatch=$e.useWatch,Et.Provider=Ne.RV,Et.create=()=>{};var Lt=Et},8628:function(In,Fn,ye){"use strict";var xe=ye(59301),Ie=ye(28800),We=ye(56762),It=ye(69507);function Qe(){let vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const Ne=(0,xe.useRef)({}),Tt=(0,We.Z)(),Ft=(0,It.ZP)();return(0,Ie.Z)(()=>{const qe=Ft.subscribe(gt=>{Ne.current=gt,vt&&Tt()});return()=>Ft.unsubscribe(qe)},[]),Ne.current}Fn.Z=Qe},9432:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return ge},n:function(){return ce}});var xe=ye(33130),Ie=ye(92310),We=ye.n(Ie),It=ye(93681),Qe=ye(20475),vt=ye(59301),Ne=ye(19080),Tt=ye(36355),Ft=ye(1684),qe=ye(19716),gt=ye(32441),dt=ye(33234),Ct=ye(59412),Me=ye(9937);function te(ve){return!!(ve.prefix||ve.suffix||ve.allowClear)}var ne=function(ve,Ce){var ke={};for(var Pe in ve)Object.prototype.hasOwnProperty.call(ve,Pe)&&Ce.indexOf(Pe)<0&&(ke[Pe]=ve[Pe]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,Pe=Object.getOwnPropertySymbols(ve);Te<Pe.length;Te++)Ce.indexOf(Pe[Te])<0&&Object.prototype.propertyIsEnumerable.call(ve,Pe[Te])&&(ke[Pe[Te]]=ve[Pe[Te]]);return ke};function ce(ve,Ce){if(!ve)return;ve.focus(Ce);const{cursor:ke}=Ce||{};if(ke){const Pe=ve.value.length;switch(ke){case"start":ve.setSelectionRange(0,0);break;case"end":ve.setSelectionRange(Pe,Pe);break;default:ve.setSelectionRange(0,Pe);break}}}var ge=(0,vt.forwardRef)((ve,Ce)=>{var ke;const{prefixCls:Pe,bordered:Te=!0,status:Ke,size:et,disabled:Xe,onBlur:ft,onFocus:Ge,suffix:kt,allowClear:$e,addonAfter:zt,addonBefore:Ht,className:Yt,style:Bt,styles:Qt,rootClassName:ht,onChange:je,classNames:At}=ve,wn=ne(ve,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:rn,direction:bt,input:Jt}=vt.useContext(Tt.E_),un=rn("input",Pe),Kn=(0,vt.useRef)(null),[En,Yn]=(0,Me.ZP)(un),{compactSize:St,compactItemClassnames:Vn}=(0,dt.ri)(un,bt),Cn=(0,qe.Z)(Re=>{var Le;return(Le=et!=null?et:St)!==null&&Le!==void 0?Le:Re}),Si=vt.useContext(Ft.Z),Bn=Xe!=null?Xe:Si,{status:tn,hasFeedback:$t,feedbackIcon:ct}=(0,vt.useContext)(gt.aM),ze=(0,Ne.F)(tn,Ke),Ut=te(ve)||!!$t,Gt=(0,vt.useRef)(Ut);(0,vt.useEffect)(()=>{var Re;Ut&&Gt.current,Gt.current=Ut},[Ut]);const at=(0,Ct.Z)(Kn,!0),Ve=Re=>{at(),ft==null||ft(Re)},Be=Re=>{at(),Ge==null||Ge(Re)},we=Re=>{at(),je==null||je(Re)},me=($t||kt)&&vt.createElement(vt.Fragment,null,kt,$t&&ct);let De;return typeof $e=="object"&&($e!=null&&$e.clearIcon)?De=$e:$e&&(De={clearIcon:vt.createElement(xe.Z,null)}),En(vt.createElement(It.default,Object.assign({ref:(0,Qe.sQ)(Ce,Kn),prefixCls:un,autoComplete:Jt==null?void 0:Jt.autoComplete},wn,{disabled:Bn,onBlur:Ve,onFocus:Be,style:Object.assign(Object.assign({},Jt==null?void 0:Jt.style),Bt),styles:Object.assign(Object.assign({},Jt==null?void 0:Jt.styles),Qt),suffix:me,allowClear:De,className:We()(Yt,ht,Vn,Jt==null?void 0:Jt.className),onChange:we,addonAfter:zt&&vt.createElement(dt.BR,null,vt.createElement(gt.Ux,{override:!0,status:!0},zt)),addonBefore:Ht&&vt.createElement(dt.BR,null,vt.createElement(gt.Ux,{override:!0,status:!0},Ht)),classNames:Object.assign(Object.assign(Object.assign({},At),Jt==null?void 0:Jt.classNames),{input:We()({[`${un}-sm`]:Cn==="small",[`${un}-lg`]:Cn==="large",[`${un}-rtl`]:bt==="rtl",[`${un}-borderless`]:!Te},!Ut&&(0,Ne.Z)(un,ze),At==null?void 0:At.input,(ke=Jt==null?void 0:Jt.classNames)===null||ke===void 0?void 0:ke.input,Yn)}),classes:{affixWrapper:We()({[`${un}-affix-wrapper-sm`]:Cn==="small",[`${un}-affix-wrapper-lg`]:Cn==="large",[`${un}-affix-wrapper-rtl`]:bt==="rtl",[`${un}-affix-wrapper-borderless`]:!Te},(0,Ne.Z)(`${un}-affix-wrapper`,ze,$t),Yn),wrapper:We()({[`${un}-group-rtl`]:bt==="rtl"},Yn),group:We()({[`${un}-group-wrapper-sm`]:Cn==="small",[`${un}-group-wrapper-lg`]:Cn==="large",[`${un}-group-wrapper-rtl`]:bt==="rtl",[`${un}-group-wrapper-disabled`]:Bn},(0,Ne.Z)(`${un}-group-wrapper`,ze,$t),Yn)}})))})},1643:function(In,Fn,ye){"use strict";var xe=ye(33130),Ie=ye(92310),We=ye.n(Ie),It=ye(9296),Qe=ye(59301),vt=ye(19080),Ne=ye(36355),Tt=ye(1684),Ft=ye(19716),qe=ye(32441),gt=ye(9432),dt=ye(9937),Ct=function(te,ne){var ce={};for(var se in te)Object.prototype.hasOwnProperty.call(te,se)&&ne.indexOf(se)<0&&(ce[se]=te[se]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,se=Object.getOwnPropertySymbols(te);ge<se.length;ge++)ne.indexOf(se[ge])<0&&Object.prototype.propertyIsEnumerable.call(te,se[ge])&&(ce[se[ge]]=te[se[ge]]);return ce};const Me=(0,Qe.forwardRef)((te,ne)=>{const{prefixCls:ce,bordered:se=!0,size:ge,disabled:ve,status:Ce,allowClear:ke,showCount:Pe,classNames:Te,rootClassName:Ke,className:et}=te,Xe=Ct(te,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:ft,direction:Ge}=Qe.useContext(Ne.E_),kt=(0,Ft.Z)(ge),$e=Qe.useContext(Tt.Z),zt=ve!=null?ve:$e,{status:Ht,hasFeedback:Yt,feedbackIcon:Bt}=Qe.useContext(qe.aM),Qt=(0,vt.F)(Ht,Ce),ht=Qe.useRef(null);Qe.useImperativeHandle(ne,()=>{var bt;return{resizableTextArea:(bt=ht.current)===null||bt===void 0?void 0:bt.resizableTextArea,focus:Jt=>{var un,Kn;(0,gt.n)((Kn=(un=ht.current)===null||un===void 0?void 0:un.resizableTextArea)===null||Kn===void 0?void 0:Kn.textArea,Jt)},blur:()=>{var Jt;return(Jt=ht.current)===null||Jt===void 0?void 0:Jt.blur()}}});const je=ft("input",ce);let At;typeof ke=="object"&&(ke!=null&&ke.clearIcon)?At=ke:ke&&(At={clearIcon:Qe.createElement(xe.Z,null)});const[wn,rn]=(0,dt.ZP)(je);return wn(Qe.createElement(It.default,Object.assign({},Xe,{disabled:zt,allowClear:At,className:We()(et,Ke),classes:{affixWrapper:We()(`${je}-textarea-affix-wrapper`,{[`${je}-affix-wrapper-rtl`]:Ge==="rtl",[`${je}-affix-wrapper-borderless`]:!se,[`${je}-affix-wrapper-sm`]:kt==="small",[`${je}-affix-wrapper-lg`]:kt==="large",[`${je}-textarea-show-count`]:Pe},(0,vt.Z)(`${je}-affix-wrapper`,Qt),rn)},classNames:Object.assign(Object.assign({},Te),{textarea:We()({[`${je}-borderless`]:!se,[`${je}-sm`]:kt==="small",[`${je}-lg`]:kt==="large"},(0,vt.Z)(je,Qt),rn,Te==null?void 0:Te.textarea)}),prefixCls:je,suffix:Yt&&Qe.createElement("span",{className:`${je}-textarea-suffix`},Bt),showCount:Pe,ref:ht})))});Fn.Z=Me},59412:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Ie}});var xe=ye(59301);function Ie(We,It){const Qe=(0,xe.useRef)([]),vt=()=>{Qe.current.push(setTimeout(()=>{var Ne,Tt,Ft,qe;!((Ne=We.current)===null||Ne===void 0)&&Ne.input&&((Tt=We.current)===null||Tt===void 0?void 0:Tt.input.getAttribute("type"))==="password"&&(!((Ft=We.current)===null||Ft===void 0)&&Ft.input.hasAttribute("value"))&&((qe=We.current)===null||qe===void 0||qe.input.removeAttribute("value"))}))};return(0,xe.useEffect)(()=>(It&&vt(),()=>Qe.current.forEach(Ne=>{Ne&&clearTimeout(Ne)})),[]),vt}},92832:function(In,Fn,ye){"use strict";ye.d(Fn,{default:function(){return kt}});var xe=ye(92310),Ie=ye.n(xe),We=ye(59301),It=ye(36355),Qe=ye(32441),vt=ye(9937),Tt=$e=>{const{getPrefixCls:zt,direction:Ht}=(0,We.useContext)(It.E_),{prefixCls:Yt,className:Bt}=$e,Qt=zt("input-group",Yt),ht=zt("input"),[je,At]=(0,vt.ZP)(ht),wn=Ie()(Qt,{[`${Qt}-lg`]:$e.size==="large",[`${Qt}-sm`]:$e.size==="small",[`${Qt}-compact`]:$e.compact,[`${Qt}-rtl`]:Ht==="rtl"},At,Bt),rn=(0,We.useContext)(Qe.aM),bt=(0,We.useMemo)(()=>Object.assign(Object.assign({},rn),{isFormItemInput:!1}),[rn]);return je(We.createElement("span",{className:wn,style:$e.style,onMouseEnter:$e.onMouseEnter,onMouseLeave:$e.onMouseLeave,onFocus:$e.onFocus,onBlur:$e.onBlur},We.createElement(Qe.aM.Provider,{value:bt},$e.children)))},Ft=ye(9432),qe=ye(61441),gt=ye(30631),dt=ye(64002),Ct=ye(20475),Me=ye(59412),te=function($e,zt){var Ht={};for(var Yt in $e)Object.prototype.hasOwnProperty.call($e,Yt)&&zt.indexOf(Yt)<0&&(Ht[Yt]=$e[Yt]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,Yt=Object.getOwnPropertySymbols($e);Bt<Yt.length;Bt++)zt.indexOf(Yt[Bt])<0&&Object.prototype.propertyIsEnumerable.call($e,Yt[Bt])&&(Ht[Yt[Bt]]=$e[Yt[Bt]]);return Ht};const ne=$e=>$e?We.createElement(gt.Z,null):We.createElement(qe.Z,null),ce={click:"onClick",hover:"onMouseOver"};var ge=We.forwardRef(($e,zt)=>{const{visibilityToggle:Ht=!0}=$e,Yt=typeof Ht=="object"&&Ht.visible!==void 0,[Bt,Qt]=(0,We.useState)(()=>Yt?Ht.visible:!1),ht=(0,We.useRef)(null);We.useEffect(()=>{Yt&&Qt(Ht.visible)},[Yt,Ht]);const je=(0,Me.Z)(ht),At=()=>{const{disabled:Bn}=$e;Bn||(Bt&&je(),Qt(tn=>{var $t;const ct=!tn;return typeof Ht=="object"&&(($t=Ht.onVisibleChange)===null||$t===void 0||$t.call(Ht,ct)),ct}))},wn=Bn=>{const{action:tn="click",iconRender:$t=ne}=$e,ct=ce[tn]||"",ze=$t(Bt),Ut={[ct]:At,className:`${Bn}-icon`,key:"passwordIcon",onMouseDown:Gt=>{Gt.preventDefault()},onMouseUp:Gt=>{Gt.preventDefault()}};return We.cloneElement(We.isValidElement(ze)?ze:We.createElement("span",null,ze),Ut)},{className:rn,prefixCls:bt,inputPrefixCls:Jt,size:un}=$e,Kn=te($e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:En}=We.useContext(It.E_),Yn=En("input",Jt),St=En("input-password",bt),Vn=Ht&&wn(St),Cn=Ie()(St,rn,{[`${St}-${un}`]:!!un}),Si=Object.assign(Object.assign({},(0,dt.Z)(Kn,["suffix","iconRender","visibilityToggle"])),{type:Bt?"text":"password",className:Cn,prefixCls:Yn,suffix:Vn});return un&&(Si.size=un),We.createElement(Ft.Z,Object.assign({ref:(0,Ct.sQ)(zt,ht)},Si))}),ve=ye(21970),Ce=ye(92343),ke=ye(3113),Pe=ye(19716),Te=ye(33234),Ke=function($e,zt){var Ht={};for(var Yt in $e)Object.prototype.hasOwnProperty.call($e,Yt)&&zt.indexOf(Yt)<0&&(Ht[Yt]=$e[Yt]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,Yt=Object.getOwnPropertySymbols($e);Bt<Yt.length;Bt++)zt.indexOf(Yt[Bt])<0&&Object.prototype.propertyIsEnumerable.call($e,Yt[Bt])&&(Ht[Yt[Bt]]=$e[Yt[Bt]]);return Ht},Xe=We.forwardRef(($e,zt)=>{const{prefixCls:Ht,inputPrefixCls:Yt,className:Bt,size:Qt,suffix:ht,enterButton:je=!1,addonAfter:At,loading:wn,disabled:rn,onSearch:bt,onChange:Jt,onCompositionStart:un,onCompositionEnd:Kn}=$e,En=Ke($e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Yn,direction:St}=We.useContext(It.E_),Vn=We.useRef(!1),Cn=Yn("input-search",Ht),Si=Yn("input",Yt),{compactSize:Bn}=(0,Te.ri)(Cn,St),tn=(0,Pe.Z)(st=>{var Vt;return(Vt=Qt!=null?Qt:Bn)!==null&&Vt!==void 0?Vt:st}),$t=We.useRef(null),ct=st=>{st&&st.target&&st.type==="click"&&bt&&bt(st.target.value,st,{source:"clear"}),Jt&&Jt(st)},ze=st=>{var Vt;document.activeElement===((Vt=$t.current)===null||Vt===void 0?void 0:Vt.input)&&st.preventDefault()},Ut=st=>{var Vt,sn;bt&&bt((sn=(Vt=$t.current)===null||Vt===void 0?void 0:Vt.input)===null||sn===void 0?void 0:sn.value,st,{source:"input"})},Gt=st=>{Vn.current||wn||Ut(st)},at=typeof je=="boolean"?We.createElement(ve.Z,null):null,Ve=`${Cn}-button`;let Be;const we=je||{},me=we.type&&we.type.__ANT_BUTTON===!0;me||we.type==="button"?Be=(0,Ce.Tm)(we,Object.assign({onMouseDown:ze,onClick:st=>{var Vt,sn;(sn=(Vt=we==null?void 0:we.props)===null||Vt===void 0?void 0:Vt.onClick)===null||sn===void 0||sn.call(Vt,st),Ut(st)},key:"enterButton"},me?{className:Ve,size:tn}:{})):Be=We.createElement(ke.ZP,{className:Ve,type:je?"primary":void 0,size:tn,disabled:rn,key:"enterButton",onMouseDown:ze,onClick:Ut,loading:wn,icon:at},je),At&&(Be=[Be,(0,Ce.Tm)(At,{key:"addonAfter"})]);const De=Ie()(Cn,{[`${Cn}-rtl`]:St==="rtl",[`${Cn}-${tn}`]:!!tn,[`${Cn}-with-button`]:!!je},Bt),Re=st=>{Vn.current=!0,un==null||un(st)},Le=st=>{Vn.current=!1,Kn==null||Kn(st)};return We.createElement(Ft.Z,Object.assign({ref:(0,Ct.sQ)($t,zt),onPressEnter:Gt},En,{size:tn,onCompositionStart:Re,onCompositionEnd:Le,prefixCls:Si,addonAfter:Be,suffix:ht,onChange:ct,className:De,disabled:rn}))}),ft=ye(1643);const Ge=Ft.Z;Ge.Group=Tt,Ge.Search=Xe,Ge.TextArea=ft.Z,Ge.Password=ge;var kt=Ge},99580:function(In,Fn,ye){"use strict";ye.d(Fn,{D:function(){return ve},Z:function(){return Pe}});var xe=ye(5891),Ie=ye(59301),We={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"},It=We,Qe=ye(88853),vt=function(Ke,et){return Ie.createElement(Qe.Z,(0,xe.Z)({},Ke,{ref:et,icon:It}))},Ne=Ie.forwardRef(vt),Tt=Ne,Ft=ye(16537),qe=ye(53878),gt=ye(92310),dt=ye.n(gt),Ct=ye(64002),te=Te=>!isNaN(parseFloat(Te))&&isFinite(Te),ne=ye(36355),ce=ye(84966),se=function(Te,Ke){var et={};for(var Xe in Te)Object.prototype.hasOwnProperty.call(Te,Xe)&&Ke.indexOf(Xe)<0&&(et[Xe]=Te[Xe]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Xe=Object.getOwnPropertySymbols(Te);ft<Xe.length;ft++)Ke.indexOf(Xe[ft])<0&&Object.prototype.propertyIsEnumerable.call(Te,Xe[ft])&&(et[Xe[ft]]=Te[Xe[ft]]);return et};const ge={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ve=Ie.createContext({}),Ce=(()=>{let Te=0;return function(){let Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Te+=1,`${Ke}${Te}`}})();var Pe=Ie.forwardRef((Te,Ke)=>{const{prefixCls:et,className:Xe,trigger:ft,children:Ge,defaultCollapsed:kt=!1,theme:$e="dark",style:zt={},collapsible:Ht=!1,reverseArrow:Yt=!1,width:Bt=200,collapsedWidth:Qt=80,zeroWidthTriggerStyle:ht,breakpoint:je,onCollapse:At,onBreakpoint:wn}=Te,rn=se(Te,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:bt}=(0,Ie.useContext)(ce.Gs),[Jt,un]=(0,Ie.useState)("collapsed"in Te?Te.collapsed:kt),[Kn,En]=(0,Ie.useState)(!1);(0,Ie.useEffect)(()=>{"collapsed"in Te&&un(Te.collapsed)},[Te.collapsed]);const Yn=(tn,$t)=>{"collapsed"in Te||un(tn),At==null||At(tn,$t)},St=(0,Ie.useRef)();St.current=tn=>{En(tn.matches),wn==null||wn(tn.matches),Jt!==tn.matches&&Yn(tn.matches,"responsive")},(0,Ie.useEffect)(()=>{function tn(ct){return St.current(ct)}let $t;if(typeof window!="undefined"){const{matchMedia:ct}=window;if(ct&&je&&je in ge){$t=ct(`(max-width: ${ge[je]})`);try{$t.addEventListener("change",tn)}catch(ze){$t.addListener(tn)}tn($t)}}return()=>{try{$t==null||$t.removeEventListener("change",tn)}catch(ct){$t==null||$t.removeListener(tn)}}},[je]),(0,Ie.useEffect)(()=>{const tn=Ce("ant-sider-");return bt.addSider(tn),()=>bt.removeSider(tn)},[]);const Vn=()=>{Yn(!Jt,"clickTrigger")},{getPrefixCls:Cn}=(0,Ie.useContext)(ne.E_),Si=()=>{const tn=Cn("layout-sider",et),$t=(0,Ct.Z)(rn,["collapsed"]),ct=Jt?Qt:Bt,ze=te(ct)?`${ct}px`:String(ct),Ut=parseFloat(String(Qt||0))===0?Ie.createElement("span",{onClick:Vn,className:dt()(`${tn}-zero-width-trigger`,`${tn}-zero-width-trigger-${Yt?"right":"left"}`),style:ht},ft||Ie.createElement(Tt,null)):null,Ve={expanded:Yt?Ie.createElement(qe.Z,null):Ie.createElement(Ft.Z,null),collapsed:Yt?Ie.createElement(Ft.Z,null):Ie.createElement(qe.Z,null)}[Jt?"collapsed":"expanded"],Be=ft!==null?Ut||Ie.createElement("div",{className:`${tn}-trigger`,onClick:Vn,style:{width:ze}},ft||Ve):null,we=Object.assign(Object.assign({},zt),{flex:`0 0 ${ze}`,maxWidth:ze,minWidth:ze,width:ze}),me=dt()(tn,`${tn}-${$e}`,{[`${tn}-collapsed`]:!!Jt,[`${tn}-has-trigger`]:Ht&&ft!==null&&!Ut,[`${tn}-below`]:!!Kn,[`${tn}-zero-width`]:parseFloat(ze)===0},Xe);return Ie.createElement("aside",Object.assign({className:me},$t,{style:we,ref:Ke}),Ie.createElement("div",{className:`${tn}-children`},Ge),Ht||Kn&&Ut?Be:null)},Bn=Ie.useMemo(()=>({siderCollapsed:Jt}),[Jt]);return Ie.createElement(ve.Provider,{value:Bn},Si())})},84966:function(In,Fn,ye){"use strict";ye.d(Fn,{VY:function(){return ve},$_:function(){return ge},h4:function(){return se},Gs:function(){return Ct},ZP:function(){return Ce}});var xe=ye(26390),Ie=ye(92310),We=ye.n(Ie),It=ye(64002),Qe=ye(59301),vt=ye(36355),Ne=ye(83116),Ft=ke=>{const{componentCls:Pe,bodyBg:Te,lightSiderBg:Ke,lightTriggerBg:et,lightTriggerColor:Xe}=ke;return{[`${Pe}-sider-light`]:{background:Ke,[`${Pe}-sider-trigger`]:{color:Xe,background:et},[`${Pe}-sider-zero-width-trigger`]:{color:Xe,background:et,border:`1px solid ${Te}`,borderInlineStart:0}}}};const qe=ke=>{const{antCls:Pe,componentCls:Te,colorText:Ke,triggerColor:et,footerBg:Xe,triggerBg:ft,headerHeight:Ge,headerPadding:kt,headerColor:$e,footerPadding:zt,triggerHeight:Ht,zeroTriggerHeight:Yt,zeroTriggerWidth:Bt,motionDurationMid:Qt,motionDurationSlow:ht,fontSize:je,borderRadius:At,bodyBg:wn,headerBg:rn,siderBg:bt}=ke;return{[Te]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:wn,"&, *":{boxSizing:"border-box"},[`&${Te}-has-sider`]:{flexDirection:"row",[`> ${Te}, > ${Te}-content`]:{width:0}},[`${Te}-header, &${Te}-footer`]:{flex:"0 0 auto"},[`${Te}-sider`]:{position:"relative",minWidth:0,background:bt,transition:`all ${Qt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Pe}-menu${Pe}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Ht},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Ht,color:et,lineHeight:`${Ht}px`,textAlign:"center",background:ft,cursor:"pointer",transition:`all ${Qt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ge,insetInlineEnd:-Bt,zIndex:1,width:Bt,height:Yt,color:et,fontSize:ke.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:bt,borderStartStartRadius:0,borderStartEndRadius:At,borderEndEndRadius:At,borderEndStartRadius:0,cursor:"pointer",transition:`background ${ht} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ht}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Bt,borderStartStartRadius:At,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:At}}}}},Ft(ke)),{"&-rtl":{direction:"rtl"}}),[`${Te}-header`]:{height:Ge,padding:kt,color:$e,lineHeight:`${Ge}px`,background:rn,[`${Pe}-menu`]:{lineHeight:"inherit"}},[`${Te}-footer`]:{padding:zt,color:Ke,fontSize:je,background:Xe},[`${Te}-content`]:{flex:"auto",minHeight:0}}};var gt=(0,Ne.Z)("Layout",ke=>[qe(ke)],ke=>{const{colorBgLayout:Pe,controlHeight:Te,controlHeightLG:Ke,colorText:et,controlHeightSM:Xe,marginXXS:ft,colorTextLightSolid:Ge,colorBgContainer:kt}=ke,$e=Ke*1.25;return{colorBgHeader:"#001529",colorBgBody:Pe,colorBgTrigger:"#002140",bodyBg:Pe,headerBg:"#001529",headerHeight:Te*2,headerPadding:`0 ${$e}px`,headerColor:et,footerPadding:`${Xe}px ${$e}px`,footerBg:Pe,siderBg:"#001529",triggerHeight:Ke+ft*2,triggerBg:"#002140",triggerColor:Ge,zeroTriggerWidth:Ke,zeroTriggerHeight:Ke,lightSiderBg:kt,lightTriggerBg:kt,lightTriggerColor:et}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),dt=function(ke,Pe){var Te={};for(var Ke in ke)Object.prototype.hasOwnProperty.call(ke,Ke)&&Pe.indexOf(Ke)<0&&(Te[Ke]=ke[Ke]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,Ke=Object.getOwnPropertySymbols(ke);et<Ke.length;et++)Pe.indexOf(Ke[et])<0&&Object.prototype.propertyIsEnumerable.call(ke,Ke[et])&&(Te[Ke[et]]=ke[Ke[et]]);return Te};const Ct=Qe.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function Me(ke){let{suffixCls:Pe,tagName:Te,displayName:Ke}=ke;return et=>Qe.forwardRef((ft,Ge)=>Qe.createElement(et,Object.assign({ref:Ge,suffixCls:Pe,tagName:Te},ft)))}const te=Qe.forwardRef((ke,Pe)=>{const{prefixCls:Te,suffixCls:Ke,className:et,tagName:Xe}=ke,ft=dt(ke,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ge}=Qe.useContext(vt.E_),kt=Ge("layout",Te),[$e,zt]=gt(kt),Ht=Ke?`${kt}-${Ke}`:kt;return $e(Qe.createElement(Xe,Object.assign({className:We()(Te||Ht,et,zt),ref:Pe},ft)))}),ne=Qe.forwardRef((ke,Pe)=>{const{direction:Te}=Qe.useContext(vt.E_),[Ke,et]=Qe.useState([]),{prefixCls:Xe,className:ft,rootClassName:Ge,children:kt,hasSider:$e,tagName:zt,style:Ht}=ke,Yt=dt(ke,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Bt=(0,It.Z)(Yt,["suffixCls"]),{getPrefixCls:Qt,layout:ht}=Qe.useContext(vt.E_),je=Qt("layout",Xe),[At,wn]=gt(je),rn=We()(je,{[`${je}-has-sider`]:typeof $e=="boolean"?$e:Ke.length>0,[`${je}-rtl`]:Te==="rtl"},ht==null?void 0:ht.className,ft,Ge,wn),bt=Qe.useMemo(()=>({siderHook:{addSider:Jt=>{et(un=>[].concat((0,xe.Z)(un),[Jt]))},removeSider:Jt=>{et(un=>un.filter(Kn=>Kn!==Jt))}}}),[]);return At(Qe.createElement(Ct.Provider,{value:bt},Qe.createElement(zt,Object.assign({ref:Pe,className:rn,style:Object.assign(Object.assign({},ht==null?void 0:ht.style),Ht)},Bt),kt)))}),ce=Me({tagName:"div",displayName:"Layout"})(ne),se=Me({suffixCls:"header",tagName:"header",displayName:"Header"})(te),ge=Me({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(te),ve=Me({suffixCls:"content",tagName:"main",displayName:"Content"})(te);var Ce=ce},40875:function(In,Fn,ye){"use strict";ye.d(Fn,{J:function(){return vt}});var xe=ye(59301),Ie=ye(33234),We=ye(80764),It=function(Ne,Tt){var Ft={};for(var qe in Ne)Object.prototype.hasOwnProperty.call(Ne,qe)&&Tt.indexOf(qe)<0&&(Ft[qe]=Ne[qe]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,qe=Object.getOwnPropertySymbols(Ne);gt<qe.length;gt++)Tt.indexOf(qe[gt])<0&&Object.prototype.propertyIsEnumerable.call(Ne,qe[gt])&&(Ft[qe[gt]]=Ne[qe[gt]]);return Ft};const Qe=xe.createContext(null),vt=xe.forwardRef((Ne,Tt)=>{const{children:Ft}=Ne,qe=It(Ne,["children"]),gt=xe.useContext(Qe),dt=xe.useMemo(()=>Object.assign(Object.assign({},gt),qe),[gt,qe.prefixCls,qe.mode,qe.selectable]);return xe.createElement(Qe.Provider,{value:dt},xe.createElement(Ie.BR,null,(0,We.supportNodeRef)(Ft)?xe.cloneElement(Ft,{ref:Tt}):Ft))});Fn.Z=Qe},20834:function(In,Fn,ye){"use strict";ye.d(Fn,{default:function(){return Bn}});var xe=ye(22798),Ie=ye(59301),We=ye(99580),It=ye(92310),Qe=ye.n(It),vt=ye(36355),Ne=function(tn,$t){var ct={};for(var ze in tn)Object.prototype.hasOwnProperty.call(tn,ze)&&$t.indexOf(ze)<0&&(ct[ze]=tn[ze]);if(tn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ut=0,ze=Object.getOwnPropertySymbols(tn);Ut<ze.length;Ut++)$t.indexOf(ze[Ut])<0&&Object.prototype.propertyIsEnumerable.call(tn,ze[Ut])&&(ct[ze[Ut]]=tn[ze[Ut]]);return ct},Ft=tn=>{const{prefixCls:$t,className:ct,dashed:ze}=tn,Ut=Ne(tn,["prefixCls","className","dashed"]),{getPrefixCls:Gt}=Ie.useContext(vt.E_),at=Gt("menu",$t),Ve=Qe()({[`${at}-item-divider-dashed`]:!!ze},ct);return Ie.createElement(xe.iz,Object.assign({className:Ve},Ut))},qe=ye(38298),gt=ye(64002),dt=ye(6848),Ct=ye(92343),te=(0,Ie.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ce=tn=>{var $t;const{className:ct,children:ze,icon:Ut,title:Gt,danger:at}=tn,{prefixCls:Ve,firstLevel:Be,direction:we,disableMenuItemTitleTooltip:me,inlineCollapsed:De}=Ie.useContext(te),Re=Hn=>{const wi=Ie.createElement("span",{className:`${Ve}-title-content`},ze);return(!Ut||(0,Ct.l$)(ze)&&ze.type==="span")&&ze&&Hn&&Be&&typeof ze=="string"?Ie.createElement("div",{className:`${Ve}-inline-collapsed-noicon`},ze.charAt(0)):wi},{siderCollapsed:Le}=Ie.useContext(We.D);let st=Gt;typeof Gt=="undefined"?st=Be?ze:"":Gt===!1&&(st="");const Vt={title:st};!Le&&!De&&(Vt.title=null,Vt.open=!1);const sn=(0,qe.Z)(ze).length;let ln=Ie.createElement(xe.ck,Object.assign({},(0,gt.Z)(tn,["title","icon","danger"]),{className:Qe()({[`${Ve}-item-danger`]:at,[`${Ve}-item-only-child`]:(Ut?sn+1:sn)===1},ct),title:typeof Gt=="string"?Gt:void 0}),(0,Ct.Tm)(Ut,{className:Qe()((0,Ct.l$)(Ut)?($t=Ut.props)===null||$t===void 0?void 0:$t.className:"",`${Ve}-item-icon`)}),Re(De));return me||(ln=Ie.createElement(dt.Z,Object.assign({},Vt,{placement:we==="rtl"?"left":"right",overlayClassName:`${Ve}-inline-collapsed-tooltip`}),ln)),ln},ge=tn=>{var $t;const{popupClassName:ct,icon:ze,title:Ut,theme:Gt}=tn,at=Ie.useContext(te),{prefixCls:Ve,inlineCollapsed:Be,theme:we}=at,me=(0,xe.Xl)();let De;if(!ze)De=Be&&!me.length&&Ut&&typeof Ut=="string"?Ie.createElement("div",{className:`${Ve}-inline-collapsed-noicon`},Ut.charAt(0)):Ie.createElement("span",{className:`${Ve}-title-content`},Ut);else{const Le=(0,Ct.l$)(Ut)&&Ut.type==="span";De=Ie.createElement(Ie.Fragment,null,(0,Ct.Tm)(ze,{className:Qe()((0,Ct.l$)(ze)?($t=ze.props)===null||$t===void 0?void 0:$t.className:"",`${Ve}-item-icon`)}),Le?Ut:Ie.createElement("span",{className:`${Ve}-title-content`},Ut))}const Re=Ie.useMemo(()=>Object.assign(Object.assign({},at),{firstLevel:!1}),[at]);return Ie.createElement(te.Provider,{value:Re},Ie.createElement(xe.Wd,Object.assign({},(0,gt.Z)(tn,["icon"]),{title:De,popupClassName:Qe()(Ve,ct,`${Ve}-${Gt||we}`)})))},ve=ye(19362),Ce=ye(80764),ke=ye(62892),Pe=ye(40875),Te=function(tn,$t){var ct={};for(var ze in tn)Object.prototype.hasOwnProperty.call(tn,ze)&&$t.indexOf(ze)<0&&(ct[ze]=tn[ze]);if(tn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ut=0,ze=Object.getOwnPropertySymbols(tn);Ut<ze.length;Ut++)$t.indexOf(ze[Ut])<0&&Object.prototype.propertyIsEnumerable.call(tn,ze[Ut])&&(ct[ze[Ut]]=tn[ze[Ut]]);return ct};function Ke(tn){return(tn||[]).map(($t,ct)=>{if($t&&typeof $t=="object"){const ze=$t,{label:Ut,children:Gt,key:at,type:Ve}=ze,Be=Te(ze,["label","children","key","type"]),we=at!=null?at:`tmp-${ct}`;return Gt||Ve==="group"?Ve==="group"?Ie.createElement(xe.BW,Object.assign({key:we},Be,{title:Ut}),Ke(Gt)):Ie.createElement(ge,Object.assign({key:we},Be,{title:Ut}),Ke(Gt)):Ve==="divider"?Ie.createElement(Ft,Object.assign({key:we},Be)):Ie.createElement(ce,Object.assign({key:we},Be),Ut)}return null}).filter($t=>$t)}function et(tn){return Ie.useMemo(()=>tn&&Ke(tn),[tn])}var Xe=ye(64993),ft=ye(17313),Ge=ye(8378),kt=ye(13826),$e=ye(29878),zt=ye(83116),Ht=ye(37613),Bt=tn=>{const{componentCls:$t,motionDurationSlow:ct,horizontalLineHeight:ze,colorSplit:Ut,lineWidth:Gt,lineType:at,itemPaddingInline:Ve}=tn;return{[`${$t}-horizontal`]:{lineHeight:ze,border:0,borderBottom:`${Gt}px ${at} ${Ut}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${$t}-item, ${$t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Ve},[`> ${$t}-item:hover,
> ${$t}-item-active,
> ${$t}-submenu ${$t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${$t}-item, ${$t}-submenu-title`]:{transition:[`border-color ${ct}`,`background ${ct}`].join(",")},[`${$t}-submenu-arrow`]:{display:"none"}}}},ht=tn=>{let{componentCls:$t,menuArrowOffset:ct}=tn;return{[`${$t}-rtl`]:{direction:"rtl"},[`${$t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${$t}-rtl${$t}-vertical,
${$t}-submenu-rtl ${$t}-vertical`]:{[`${$t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${ct})`},"&::after":{transform:`rotate(45deg) translateY(${ct})`}}}}};const je=tn=>Object.assign({},(0,ft.oN)(tn));var wn=(tn,$t)=>{const{componentCls:ct,itemColor:ze,itemSelectedColor:Ut,groupTitleColor:Gt,itemBg:at,subMenuItemBg:Ve,itemSelectedBg:Be,activeBarHeight:we,activeBarWidth:me,activeBarBorderWidth:De,motionDurationSlow:Re,motionEaseInOut:Le,motionEaseOut:st,itemPaddingInline:Vt,motionDurationMid:sn,itemHoverColor:ln,lineType:Hn,colorSplit:wi,itemDisabledColor:Pi,dangerItemColor:Ri,dangerItemHoverColor:Zi,dangerItemSelectedColor:Ln,dangerItemActiveBg:rr,dangerItemSelectedBg:Kr,itemHoverBg:Vr,itemActiveBg:jr,menuSubMenuBg:li,horizontalItemSelectedColor:Ti,horizontalItemSelectedBg:vr,horizontalItemBorderRadius:ui,horizontalItemHoverBg:Ir,popupBg:zn}=tn;return{[`${ct}-${$t}, ${ct}-${$t} > ${ct}`]:{color:ze,background:at,[`&${ct}-root:focus-visible`]:Object.assign({},je(tn)),[`${ct}-item-group-title`]:{color:Gt},[`${ct}-submenu-selected`]:{[`> ${ct}-submenu-title`]:{color:Ut}},[`${ct}-item-disabled, ${ct}-submenu-disabled`]:{color:`${Pi} !important`},[`${ct}-item:not(${ct}-item-selected):not(${ct}-submenu-selected)`]:{[`&:hover, > ${ct}-submenu-title:hover`]:{color:ln}},[`&:not(${ct}-horizontal)`]:{[`${ct}-item:not(${ct}-item-selected)`]:{"&:hover":{backgroundColor:Vr},"&:active":{backgroundColor:jr}},[`${ct}-submenu-title`]:{"&:hover":{backgroundColor:Vr},"&:active":{backgroundColor:jr}}},[`${ct}-item-danger`]:{color:Ri,[`&${ct}-item:hover`]:{[`&:not(${ct}-item-selected):not(${ct}-submenu-selected)`]:{color:Zi}},[`&${ct}-item:active`]:{background:rr}},[`${ct}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ct}-item-selected`]:{color:Ut,[`&${ct}-item-danger`]:{color:Ln},"a, a:hover":{color:"inherit"}},[`& ${ct}-item-selected`]:{backgroundColor:Be,[`&${ct}-item-danger`]:{backgroundColor:Kr}},[`${ct}-item, ${ct}-submenu-title`]:{[`&:not(${ct}-item-disabled):focus-visible`]:Object.assign({},je(tn))},[`&${ct}-submenu > ${ct}`]:{backgroundColor:li},[`&${ct}-popup > ${ct}`]:{backgroundColor:zn},[`&${ct}-horizontal`]:Object.assign(Object.assign({},$t==="dark"?{borderBottom:0}:{}),{[`> ${ct}-item, > ${ct}-submenu`]:{top:De,marginTop:-De,marginBottom:0,borderRadius:ui,"&::after":{position:"absolute",insetInline:Vt,bottom:0,borderBottom:`${we}px solid transparent`,transition:`border-color ${Re} ${Le}`,content:'""'},"&:hover, &-active, &-open":{background:Ir,"&::after":{borderBottomWidth:we,borderBottomColor:Ti}},"&-selected":{color:Ti,backgroundColor:vr,"&:hover":{backgroundColor:vr},"&::after":{borderBottomWidth:we,borderBottomColor:Ti}}}}),[`&${ct}-root`]:{[`&${ct}-inline, &${ct}-vertical`]:{borderInlineEnd:`${De}px ${Hn} ${wi}`}},[`&${ct}-inline`]:{[`${ct}-sub${ct}-inline`]:{background:Ve},[`${ct}-item, ${ct}-submenu-title`]:De&&me?{width:`calc(100% + ${De}px)`}:{},[`${ct}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${me}px solid ${Ut}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${sn} ${st}`,`opacity ${sn} ${st}`].join(","),content:'""'},[`&${ct}-item-danger`]:{"&::after":{borderInlineEndColor:Ln}}},[`${ct}-selected, ${ct}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${sn} ${Le}`,`opacity ${sn} ${Le}`].join(",")}}}}}};const rn=tn=>{const{componentCls:$t,itemHeight:ct,itemMarginInline:ze,padding:Ut,menuArrowSize:Gt,marginXS:at,itemMarginBlock:Ve}=tn,Be=Ut+Gt+at;return{[`${$t}-item`]:{position:"relative",overflow:"hidden"},[`${$t}-item, ${$t}-submenu-title`]:{height:ct,lineHeight:`${ct}px`,paddingInline:Ut,overflow:"hidden",textOverflow:"ellipsis",marginInline:ze,marginBlock:Ve,width:`calc(100% - ${ze*2}px)`},[`> ${$t}-item,
> ${$t}-submenu > ${$t}-submenu-title`]:{height:ct,lineHeight:`${ct}px`},[`${$t}-item-group-list ${$t}-submenu-title,
${$t}-submenu-title`]:{paddingInlineEnd:Be}}};var Jt=tn=>{const{componentCls:$t,iconCls:ct,itemHeight:ze,colorTextLightSolid:Ut,dropdownWidth:Gt,controlHeightLG:at,motionDurationMid:Ve,motionEaseOut:Be,paddingXL:we,itemMarginInline:me,fontSizeLG:De,motionDurationSlow:Re,paddingXS:Le,boxShadowSecondary:st,collapsedWidth:Vt,collapsedIconSize:sn}=tn,ln={height:ze,lineHeight:`${ze}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[$t]:{"&-inline, &-vertical":Object.assign({[`&${$t}-root`]:{boxShadow:"none"}},rn(tn))},[`${$t}-submenu-popup`]:{[`${$t}-vertical`]:Object.assign(Object.assign({},rn(tn)),{boxShadow:st})}},{[`${$t}-submenu-popup ${$t}-vertical${$t}-sub`]:{minWidth:Gt,maxHeight:`calc(100vh - ${at*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${$t}-inline`]:{width:"100%",[`&${$t}-root`]:{[`${$t}-item, ${$t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Re}`,`background ${Re}`,`padding ${Ve} ${Be}`].join(","),[`> ${$t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${$t}-sub${$t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${$t}-submenu > ${$t}-submenu-title`]:ln,[`& ${$t}-item-group-title`]:{paddingInlineStart:we}},[`${$t}-item`]:ln}},{[`${$t}-inline-collapsed`]:{width:Vt,[`&${$t}-root`]:{[`${$t}-item, ${$t}-submenu ${$t}-submenu-title`]:{[`> ${$t}-inline-collapsed-noicon`]:{fontSize:De,textAlign:"center"}}},[`> ${$t}-item,
> ${$t}-item-group > ${$t}-item-group-list > ${$t}-item,
> ${$t}-item-group > ${$t}-item-group-list > ${$t}-submenu > ${$t}-submenu-title,
> ${$t}-submenu > ${$t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${De/2}px - ${me}px)`,textOverflow:"clip",[`
${$t}-submenu-arrow,
${$t}-submenu-expand-icon
`]:{opacity:0},[`${$t}-item-icon, ${ct}`]:{margin:0,fontSize:sn,lineHeight:`${ze}px`,"+ span":{display:"inline-block",opacity:0}}},[`${$t}-item-icon, ${ct}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${$t}-item-icon, ${ct}`]:{display:"none"},"a, a:hover":{color:Ut}},[`${$t}-item-group-title`]:Object.assign(Object.assign({},ft.vS),{paddingInline:Le})}}]};const un=tn=>{const{componentCls:$t,motionDurationSlow:ct,motionDurationMid:ze,motionEaseInOut:Ut,motionEaseOut:Gt,iconCls:at,iconSize:Ve,iconMarginInlineEnd:Be}=tn;return{[`${$t}-item, ${$t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${ct}`,`background ${ct}`,`padding ${ct} ${Ut}`].join(","),[`${$t}-item-icon, ${at}`]:{minWidth:Ve,fontSize:Ve,transition:[`font-size ${ze} ${Gt}`,`margin ${ct} ${Ut}`,`color ${ct}`].join(","),"+ span":{marginInlineStart:Be,opacity:1,transition:[`opacity ${ct} ${Ut}`,`margin ${ct}`,`color ${ct}`].join(",")}},[`${$t}-item-icon`]:Object.assign({},(0,ft.Ro)()),[`&${$t}-item-only-child`]:{[`> ${at}, > ${$t}-item-icon`]:{marginInlineEnd:0}}},[`${$t}-item-disabled, ${$t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${$t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Kn=tn=>{const{componentCls:$t,motionDurationSlow:ct,motionEaseInOut:ze,borderRadius:Ut,menuArrowSize:Gt,menuArrowOffset:at}=tn;return{[`${$t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:tn.margin,width:Gt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ct} ${ze}, opacity ${ct}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Gt*.6,height:Gt*.15,backgroundColor:"currentcolor",borderRadius:Ut,transition:[`background ${ct} ${ze}`,`transform ${ct} ${ze}`,`top ${ct} ${ze}`,`color ${ct} ${ze}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${at})`},"&::after":{transform:`rotate(-45deg) translateY(${at})`}}}}},En=tn=>{const{antCls:$t,componentCls:ct,fontSize:ze,motionDurationSlow:Ut,motionDurationMid:Gt,motionEaseInOut:at,paddingXS:Ve,padding:Be,colorSplit:we,lineWidth:me,zIndexPopup:De,borderRadiusLG:Re,subMenuItemBorderRadius:Le,menuArrowSize:st,menuArrowOffset:Vt,lineType:sn,menuPanelMaskInset:ln,groupTitleLineHeight:Hn,groupTitleFontSize:wi}=tn;return[{"":{[`${ct}`]:Object.assign(Object.assign({},(0,ft.dF)()),{"&-hidden":{display:"none"}})},[`${ct}-submenu-hidden`]:{display:"none"}},{[ct]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ft.Wf)(tn)),(0,ft.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ze,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ut} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${ct}-item`]:{flex:"none"}},[`${ct}-item, ${ct}-submenu, ${ct}-submenu-title`]:{borderRadius:tn.itemBorderRadius},[`${ct}-item-group-title`]:{padding:`${Ve}px ${Be}px`,fontSize:wi,lineHeight:Hn,transition:`all ${Ut}`},[`&-horizontal ${ct}-submenu`]:{transition:[`border-color ${Ut} ${at}`,`background ${Ut} ${at}`].join(",")},[`${ct}-submenu, ${ct}-submenu-inline`]:{transition:[`border-color ${Ut} ${at}`,`background ${Ut} ${at}`,`padding ${Gt} ${at}`].join(",")},[`${ct}-submenu ${ct}-sub`]:{cursor:"initial",transition:[`background ${Ut} ${at}`,`padding ${Ut} ${at}`].join(",")},[`${ct}-title-content`]:{transition:`color ${Ut}`},[`${ct}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${ct}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:we,borderStyle:sn,borderWidth:0,borderTopWidth:me,marginBlock:me,padding:0,"&-dashed":{borderStyle:"dashed"}}}),un(tn)),{[`${ct}-item-group`]:{[`${ct}-item-group-list`]:{margin:0,padding:0,[`${ct}-item, ${ct}-submenu-title`]:{paddingInline:`${ze*2}px ${Be}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:De,borderRadius:Re,boxShadow:"none",transformOrigin:"0 0",[`&${ct}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${ln}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:ln},"\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:tn.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:tn.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:tn.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:tn.paddingXS},[`> ${ct}`]:Object.assign(Object.assign(Object.assign({borderRadius:Re},un(tn)),Kn(tn)),{[`${ct}-item, ${ct}-submenu > ${ct}-submenu-title`]:{borderRadius:Le},[`${ct}-submenu-title::after`]:{transition:`transform ${Ut} ${at}`}})}}),Kn(tn)),{[`&-inline-collapsed ${ct}-submenu-arrow,
&-inline ${ct}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Vt})`},"&::after":{transform:`rotate(45deg) translateX(-${Vt})`}},[`${ct}-submenu-open${ct}-submenu-inline > ${ct}-submenu-title > ${ct}-submenu-arrow`]:{transform:`translateY(-${st*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Vt})`},"&::before":{transform:`rotate(45deg) translateX(${Vt})`}}})},{[`${$t}-layout-header`]:{[ct]:{lineHeight:"inherit"}}}]};var Yn=(tn,$t)=>(0,zt.Z)("Menu",ze=>{if($t===!1)return[];const{colorBgElevated:Ut,colorPrimary:Gt,colorTextLightSolid:at,controlHeightLG:Ve,fontSize:Be,darkItemColor:we,darkDangerItemColor:me,darkItemBg:De,darkSubMenuItemBg:Re,darkItemSelectedColor:Le,darkItemSelectedBg:st,darkDangerItemSelectedBg:Vt,darkItemHoverBg:sn,darkGroupTitleColor:ln,darkItemHoverColor:Hn,darkItemDisabledColor:wi,darkDangerItemHoverColor:Pi,darkDangerItemSelectedColor:Ri,darkDangerItemActiveBg:Zi}=ze,Ln=Be/7*5,rr=(0,Ht.TS)(ze,{menuArrowSize:Ln,menuHorizontalHeight:Ve*1.15,menuArrowOffset:`${Ln*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ut}),Kr=(0,Ht.TS)(rr,{itemColor:we,itemHoverColor:Hn,groupTitleColor:ln,itemSelectedColor:Le,itemBg:De,popupBg:De,subMenuItemBg:Re,itemActiveBg:"transparent",itemSelectedBg:st,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:sn,itemDisabledColor:wi,dangerItemColor:me,dangerItemHoverColor:Pi,dangerItemSelectedColor:Ri,dangerItemActiveBg:Zi,dangerItemSelectedBg:Vt,menuSubMenuBg:Re,horizontalItemSelectedColor:at,horizontalItemSelectedBg:Gt});return[En(rr),Bt(rr),Jt(rr),wn(rr,"light"),wn(Kr,"dark"),ht(rr),(0,Ge.Z)(rr),(0,kt.oN)(rr,"slide-up"),(0,kt.oN)(rr,"slide-down"),(0,$e._y)(rr,"zoom-big")]},ze=>{const{colorPrimary:Ut,colorError:Gt,colorTextDisabled:at,colorErrorBg:Ve,colorText:Be,colorTextDescription:we,colorBgContainer:me,colorFillAlter:De,colorFillContent:Re,lineWidth:Le,lineWidthBold:st,controlItemBgActive:Vt,colorBgTextHover:sn,controlHeightLG:ln,lineHeight:Hn,colorBgElevated:wi,marginXXS:Pi,padding:Ri,fontSize:Zi,controlHeightSM:Ln,fontSizeLG:rr,colorTextLightSolid:Kr,colorErrorHover:Vr}=ze,jr=new Xe.C(Kr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ze.zIndexPopupBase+50,radiusItem:ze.borderRadiusLG,itemBorderRadius:ze.borderRadiusLG,radiusSubMenuItem:ze.borderRadiusSM,subMenuItemBorderRadius:ze.borderRadiusSM,colorItemText:Be,itemColor:Be,colorItemTextHover:Be,itemHoverColor:Be,colorItemTextHoverHorizontal:Ut,horizontalItemHoverColor:Ut,colorGroupTitle:we,groupTitleColor:we,colorItemTextSelected:Ut,itemSelectedColor:Ut,colorItemTextSelectedHorizontal:Ut,horizontalItemSelectedColor:Ut,colorItemBg:me,itemBg:me,colorItemBgHover:sn,itemHoverBg:sn,colorItemBgActive:Re,itemActiveBg:Vt,colorSubItemBg:De,subMenuItemBg:De,colorItemBgSelected:Vt,itemSelectedBg:Vt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:st,activeBarHeight:st,colorActiveBarBorderSize:Le,activeBarBorderWidth:Le,colorItemTextDisabled:at,itemDisabledColor:at,colorDangerItemText:Gt,dangerItemColor:Gt,colorDangerItemTextHover:Gt,dangerItemHoverColor:Gt,colorDangerItemTextSelected:Gt,dangerItemSelectedColor:Gt,colorDangerItemBgActive:Ve,dangerItemActiveBg:Ve,colorDangerItemBgSelected:Ve,dangerItemSelectedBg:Ve,itemMarginInline:ze.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:ln,groupTitleLineHeight:Hn,collapsedWidth:ln*2,popupBg:wi,itemMarginBlock:Pi,itemPaddingInline:Ri,horizontalLineHeight:`${ln*1.15}px`,iconSize:Zi,iconMarginInlineEnd:Ln-Zi,collapsedIconSize:rr,groupTitleFontSize:Zi,darkItemDisabledColor:new Xe.C(Kr).setAlpha(.25).toRgbString(),darkItemColor:jr,darkDangerItemColor:Gt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Kr,darkItemSelectedBg:Ut,darkDangerItemSelectedBg:Gt,darkItemHoverBg:"transparent",darkGroupTitleColor:jr,darkItemHoverColor:Kr,darkDangerItemHoverColor:Vr,darkDangerItemSelectedColor:Kr,darkDangerItemActiveBg:Gt}},{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"]]})(tn),St=function(tn,$t){var ct={};for(var ze in tn)Object.prototype.hasOwnProperty.call(tn,ze)&&$t.indexOf(ze)<0&&(ct[ze]=tn[ze]);if(tn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ut=0,ze=Object.getOwnPropertySymbols(tn);Ut<ze.length;Ut++)$t.indexOf(ze[Ut])<0&&Object.prototype.propertyIsEnumerable.call(tn,ze[Ut])&&(ct[ze[Ut]]=tn[ze[Ut]]);return ct},Cn=(0,Ie.forwardRef)((tn,$t)=>{var ct,ze;const Ut=Ie.useContext(Pe.Z),Gt=Ut||{},{getPrefixCls:at,getPopupContainer:Ve,direction:Be,menu:we}=Ie.useContext(vt.E_),me=at(),{prefixCls:De,className:Re,style:Le,theme:st="light",expandIcon:Vt,_internalDisableMenuItemTitleTooltip:sn,inlineCollapsed:ln,siderCollapsed:Hn,items:wi,children:Pi,rootClassName:Ri,mode:Zi,selectable:Ln,onClick:rr,overflowedIndicatorPopupClassName:Kr}=tn,Vr=St(tn,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),jr=(0,gt.Z)(Vr,["collapsedWidth"]),li=et(wi)||Pi;(ct=Gt.validator)===null||ct===void 0||ct.call(Gt,{mode:Zi});const Ti=(0,Ce.useEvent)(function(){var xn;rr==null||rr.apply(void 0,arguments),(xn=Gt.onClick)===null||xn===void 0||xn.call(Gt)}),vr=Gt.mode||Zi,ui=Ln!=null?Ln:Gt.selectable,Ir=Ie.useMemo(()=>Hn!==void 0?Hn:ln,[ln,Hn]),zn={horizontal:{motionName:`${me}-slide-up`},inline:(0,ke.Z)(me),other:{motionName:`${me}-zoom-big`}},Ee=at("menu",De||Gt.prefixCls),[cr,Xi]=Yn(Ee,!Ut),yn=Qe()(`${Ee}-${st}`,we==null?void 0:we.className,Re);let oi;if(typeof Vt=="function")oi=Vt;else if(Vt===null||Vt===!1)oi=null;else if(Gt.expandIcon===null||Gt.expandIcon===!1)oi=null;else{const xn=Vt!=null?Vt:Gt.expandIcon;oi=(0,Ct.Tm)(xn,{className:Qe()(`${Ee}-submenu-expand-icon`,(0,Ct.l$)(xn)?(ze=xn.props)===null||ze===void 0?void 0:ze.className:"")})}const Ci=Ie.useMemo(()=>({prefixCls:Ee,inlineCollapsed:Ir||!1,direction:Be,firstLevel:!0,theme:st,mode:vr,disableMenuItemTitleTooltip:sn}),[Ee,Ir,Be,sn,st]);return cr(Ie.createElement(Pe.Z.Provider,{value:null},Ie.createElement(te.Provider,{value:Ci},Ie.createElement(xe.ZP,Object.assign({getPopupContainer:Ve,overflowedIndicator:Ie.createElement(ve.Z,null),overflowedIndicatorPopupClassName:Qe()(Ee,`${Ee}-${st}`,Kr),mode:vr,selectable:ui,onClick:Ti},jr,{inlineCollapsed:Ir,style:Object.assign(Object.assign({},we==null?void 0:we.style),Le),className:yn,prefixCls:Ee,direction:Be,defaultMotions:zn,expandIcon:oi,ref:$t,rootClassName:Qe()(Ri,Xi)}),li))))});const Si=(0,Ie.forwardRef)((tn,$t)=>{const ct=(0,Ie.useRef)(null),ze=Ie.useContext(We.D);return(0,Ie.useImperativeHandle)($t,()=>({menu:ct.current,focus:Ut=>{var Gt;(Gt=ct.current)===null||Gt===void 0||Gt.focus(Ut)}})),Ie.createElement(Cn,Object.assign({ref:ct},tn,ze))});Si.Item=ce,Si.SubMenu=ge,Si.Divider=Ft,Si.ItemGroup=xe.BW;var Bn=Si},25700:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Gt}});var xe=ye(5891),Ie=ye(59301),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},It=We,Qe=ye(88853),vt=function(Ve,Be){return Ie.createElement(Qe.Z,(0,xe.Z)({},Ve,{ref:Be,icon:It}))},Ne=Ie.forwardRef(vt),Tt=Ne,Ft=ye(93343),qe=ye(16537),gt=ye(53878),dt=ye(92310),Ct=ye.n(dt),Me=ye(80962),te=ye(57259),ne=ye(79545),ce=ye(68550),se=ye(17928),ge=ye(7711),ve=ye(36994),Ce={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},ke=Ce,Pe=ye(91735),Te=function(at){(0,se.Z)(Be,at);var Ve=(0,ge.Z)(Be);function Be(){var we;(0,ne.Z)(this,Be);for(var me=arguments.length,De=new Array(me),Re=0;Re<me;Re++)De[Re]=arguments[Re];return we=Ve.call.apply(Ve,[this].concat(De)),we.state={goInputText:""},we.getValidValue=function(){var Le=we.state.goInputText;return!Le||Number.isNaN(Le)?void 0:Number(Le)},we.buildOptionText=function(Le){return"".concat(Le," ").concat(we.props.locale.items_per_page)},we.changeSize=function(Le){we.props.changeSize(Number(Le))},we.handleChange=function(Le){we.setState({goInputText:Le.target.value})},we.handleBlur=function(Le){var st=we.props,Vt=st.goButton,sn=st.quickGo,ln=st.rootPrefixCls,Hn=we.state.goInputText;Vt||Hn===""||(we.setState({goInputText:""}),!(Le.relatedTarget&&(Le.relatedTarget.className.indexOf("".concat(ln,"-item-link"))>=0||Le.relatedTarget.className.indexOf("".concat(ln,"-item"))>=0))&&sn(we.getValidValue()))},we.go=function(Le){var st=we.state.goInputText;st!==""&&(Le.keyCode===ke.ENTER||Le.type==="click")&&(we.setState({goInputText:""}),we.props.quickGo(we.getValidValue()))},we}return(0,ce.Z)(Be,[{key:"getPageSizeOptions",value:function(){var me=this.props,De=me.pageSize,Re=me.pageSizeOptions;return Re.some(function(Le){return Le.toString()===De.toString()})?Re:Re.concat([De.toString()]).sort(function(Le,st){var Vt=Number.isNaN(Number(Le))?0:Number(Le),sn=Number.isNaN(Number(st))?0:Number(st);return Vt-sn})}},{key:"render",value:function(){var me=this,De=this.props,Re=De.pageSize,Le=De.locale,st=De.rootPrefixCls,Vt=De.changeSize,sn=De.quickGo,ln=De.goButton,Hn=De.selectComponentClass,wi=De.buildOptionText,Pi=De.selectPrefixCls,Ri=De.disabled,Zi=this.state.goInputText,Ln="".concat(st,"-options"),rr=Hn,Kr=null,Vr=null,jr=null;if(!Vt&&!sn)return null;var li=this.getPageSizeOptions();if(Vt&&rr){var Ti=li.map(function(vr,ui){return Ie.createElement(rr.Option,{key:ui,value:vr.toString()},(wi||me.buildOptionText)(vr))});Kr=Ie.createElement(rr,{disabled:Ri,prefixCls:Pi,showSearch:!1,className:"".concat(Ln,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Re||li[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ui){return ui.parentNode},"aria-label":Le.page_size,defaultOpen:!1},Ti)}return sn&&(ln&&(jr=typeof ln=="boolean"?Ie.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Ri,className:"".concat(Ln,"-quick-jumper-button")},Le.jump_to_confirm):Ie.createElement("span",{onClick:this.go,onKeyUp:this.go},ln)),Vr=Ie.createElement("div",{className:"".concat(Ln,"-quick-jumper")},Le.jump_to,Ie.createElement("input",{disabled:Ri,type:"text",value:Zi,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Le.page}),Le.page,jr)),Ie.createElement("li",{className:"".concat(Ln)},Kr,Vr)}}]),Be}(Ie.Component);Te.defaultProps={pageSizeOptions:["10","20","50","100"]};var Ke=Te,et=function(Ve){var Be,we=Ve.rootPrefixCls,me=Ve.page,De=Ve.active,Re=Ve.className,Le=Ve.showTitle,st=Ve.onClick,Vt=Ve.onKeyPress,sn=Ve.itemRender,ln="".concat(we,"-item"),Hn=Ct()(ln,"".concat(ln,"-").concat(me),(Be={},(0,Me.Z)(Be,"".concat(ln,"-active"),De),(0,Me.Z)(Be,"".concat(ln,"-disabled"),!me),(0,Me.Z)(Be,Ve.className,Re),Be)),wi=function(){st(me)},Pi=function(Ln){Vt(Ln,st,me)},Ri=sn(me,"page",Ie.createElement("a",{rel:"nofollow"},me));return Ri?Ie.createElement("li",{title:Le?me.toString():null,className:Hn,onClick:wi,onKeyPress:Pi,tabIndex:0},Ri):null},Xe=et;function ft(){}function Ge(at){var Ve=Number(at);return typeof Ve=="number"&&!Number.isNaN(Ve)&&isFinite(Ve)&&Math.floor(Ve)===Ve}var kt=function(Ve,Be,we){return we};function $e(at,Ve,Be){var we=typeof at=="undefined"?Ve.pageSize:at;return Math.floor((Be.total-1)/we)+1}var zt=function(at){(0,se.Z)(Be,at);var Ve=(0,ge.Z)(Be);function Be(we){var me;(0,ne.Z)(this,Be),me=Ve.call(this,we),me.paginationNode=Ie.createRef(),me.getJumpPrevPage=function(){return Math.max(1,me.state.current-(me.props.showLessItems?3:5))},me.getJumpNextPage=function(){return Math.min($e(void 0,me.state,me.props),me.state.current+(me.props.showLessItems?3:5))},me.getItemIcon=function(Vt,sn){var ln=me.props.prefixCls,Hn=Vt||Ie.createElement("button",{type:"button","aria-label":sn,className:"".concat(ln,"-item-link")});return typeof Vt=="function"&&(Hn=Ie.createElement(Vt,(0,te.Z)({},me.props))),Hn},me.isValid=function(Vt){var sn=me.props.total;return Ge(Vt)&&Vt!==me.state.current&&Ge(sn)&&sn>0},me.shouldDisplayQuickJumper=function(){var Vt=me.props,sn=Vt.showQuickJumper,ln=Vt.total,Hn=me.state.pageSize;return ln<=Hn?!1:sn},me.handleKeyDown=function(Vt){(Vt.keyCode===ke.ARROW_UP||Vt.keyCode===ke.ARROW_DOWN)&&Vt.preventDefault()},me.handleKeyUp=function(Vt){var sn=me.getValidValue(Vt),ln=me.state.currentInputValue;sn!==ln&&me.setState({currentInputValue:sn}),Vt.keyCode===ke.ENTER?me.handleChange(sn):Vt.keyCode===ke.ARROW_UP?me.handleChange(sn-1):Vt.keyCode===ke.ARROW_DOWN&&me.handleChange(sn+1)},me.handleBlur=function(Vt){var sn=me.getValidValue(Vt);me.handleChange(sn)},me.changePageSize=function(Vt){var sn=me.state.current,ln=$e(Vt,me.state,me.props);sn=sn>ln?ln:sn,ln===0&&(sn=me.state.current),typeof Vt=="number"&&("pageSize"in me.props||me.setState({pageSize:Vt}),"current"in me.props||me.setState({current:sn,currentInputValue:sn})),me.props.onShowSizeChange(sn,Vt),"onChange"in me.props&&me.props.onChange&&me.props.onChange(sn,Vt)},me.handleChange=function(Vt){var sn=me.props,ln=sn.disabled,Hn=sn.onChange,wi=me.state,Pi=wi.pageSize,Ri=wi.current,Zi=wi.currentInputValue;if(me.isValid(Vt)&&!ln){var Ln=$e(void 0,me.state,me.props),rr=Vt;return Vt>Ln?rr=Ln:Vt<1&&(rr=1),"current"in me.props||me.setState({current:rr}),rr!==Zi&&me.setState({currentInputValue:rr}),Hn(rr,Pi),rr}return Ri},me.prev=function(){me.hasPrev()&&me.handleChange(me.state.current-1)},me.next=function(){me.hasNext()&&me.handleChange(me.state.current+1)},me.jumpPrev=function(){me.handleChange(me.getJumpPrevPage())},me.jumpNext=function(){me.handleChange(me.getJumpNextPage())},me.hasPrev=function(){return me.state.current>1},me.hasNext=function(){return me.state.current<$e(void 0,me.state,me.props)},me.runIfEnter=function(Vt,sn){if(Vt.key==="Enter"||Vt.charCode===13){for(var ln=arguments.length,Hn=new Array(ln>2?ln-2:0),wi=2;wi<ln;wi++)Hn[wi-2]=arguments[wi];sn.apply(void 0,Hn)}},me.runIfEnterPrev=function(Vt){me.runIfEnter(Vt,me.prev)},me.runIfEnterNext=function(Vt){me.runIfEnter(Vt,me.next)},me.runIfEnterJumpPrev=function(Vt){me.runIfEnter(Vt,me.jumpPrev)},me.runIfEnterJumpNext=function(Vt){me.runIfEnter(Vt,me.jumpNext)},me.handleGoTO=function(Vt){(Vt.keyCode===ke.ENTER||Vt.type==="click")&&me.handleChange(me.state.currentInputValue)},me.renderPrev=function(Vt){var sn=me.props,ln=sn.prevIcon,Hn=sn.itemRender,wi=Hn(Vt,"prev",me.getItemIcon(ln,"prev page")),Pi=!me.hasPrev();return(0,Ie.isValidElement)(wi)?(0,Ie.cloneElement)(wi,{disabled:Pi}):wi},me.renderNext=function(Vt){var sn=me.props,ln=sn.nextIcon,Hn=sn.itemRender,wi=Hn(Vt,"next",me.getItemIcon(ln,"next page")),Pi=!me.hasNext();return(0,Ie.isValidElement)(wi)?(0,Ie.cloneElement)(wi,{disabled:Pi}):wi};var De=we.onChange!==ft,Re="current"in we;Re&&!De&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Le=we.defaultCurrent;"current"in we&&(Le=we.current);var st=we.defaultPageSize;return"pageSize"in we&&(st=we.pageSize),Le=Math.min(Le,$e(st,void 0,we)),me.state={current:Le,currentInputValue:Le,pageSize:st},me}return(0,ce.Z)(Be,[{key:"componentDidUpdate",value:function(me,De){var Re=this.props.prefixCls;if(De.current!==this.state.current&&this.paginationNode.current){var Le=this.paginationNode.current.querySelector(".".concat(Re,"-item-").concat(De.current));if(Le&&document.activeElement===Le){var st;Le==null||(st=Le.blur)===null||st===void 0||st.call(Le)}}}},{key:"getValidValue",value:function(me){var De=me.target.value,Re=$e(void 0,this.state,this.props),Le=this.state.currentInputValue,st;return De===""?st=De:Number.isNaN(Number(De))?st=Le:De>=Re?st=Re:st=Number(De),st}},{key:"getShowSizeChanger",value:function(){var me=this.props,De=me.showSizeChanger,Re=me.total,Le=me.totalBoundaryShowSizeChanger;return typeof De!="undefined"?De:Re>Le}},{key:"render",value:function(){var me=this.props,De=me.prefixCls,Re=me.className,Le=me.style,st=me.disabled,Vt=me.hideOnSinglePage,sn=me.total,ln=me.locale,Hn=me.showQuickJumper,wi=me.showLessItems,Pi=me.showTitle,Ri=me.showTotal,Zi=me.simple,Ln=me.itemRender,rr=me.showPrevNextJumpers,Kr=me.jumpPrevIcon,Vr=me.jumpNextIcon,jr=me.selectComponentClass,li=me.selectPrefixCls,Ti=me.pageSizeOptions,vr=this.state,ui=vr.current,Ir=vr.pageSize,zn=vr.currentInputValue;if(Vt===!0&&sn<=Ir)return null;var Ee=$e(void 0,this.state,this.props),cr=[],Xi=null,yn=null,oi=null,Ci=null,xn=null,on=Hn&&Hn.goButton,yt=wi?1:2,Et=ui-1>0?ui-1:0,Lt=ui+1<Ee?ui+1:Ee,tt=(0,ve.Z)(this.props,{aria:!0,data:!0}),en=Ri&&Ie.createElement("li",{className:"".concat(De,"-total-text")},Ri(sn,[sn===0?0:(ui-1)*Ir+1,ui*Ir>sn?sn:ui*Ir]));if(Zi){on&&(typeof on=="boolean"?xn=Ie.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},ln.jump_to_confirm):xn=Ie.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},on),xn=Ie.createElement("li",{title:Pi?"".concat(ln.jump_to).concat(ui,"/").concat(Ee):null,className:"".concat(De,"-simple-pager")},xn));var fn=this.renderPrev(Et);return Ie.createElement("ul",(0,xe.Z)({className:Ct()(De,"".concat(De,"-simple"),(0,Me.Z)({},"".concat(De,"-disabled"),st),Re),style:Le,ref:this.paginationNode},tt),en,fn?Ie.createElement("li",{title:Pi?ln.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Ct()("".concat(De,"-prev"),(0,Me.Z)({},"".concat(De,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},fn):null,Ie.createElement("li",{title:Pi?"".concat(ui,"/").concat(Ee):null,className:"".concat(De,"-simple-pager")},Ie.createElement("input",{type:"text",value:zn,disabled:st,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),Ie.createElement("span",{className:"".concat(De,"-slash")},"/"),Ee),Ie.createElement("li",{title:Pi?ln.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Ct()("".concat(De,"-next"),(0,Me.Z)({},"".concat(De,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Lt)),xn)}if(Ee<=3+yt*2){var xt={locale:ln,rootPrefixCls:De,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Pi,itemRender:Ln};Ee||cr.push(Ie.createElement(Xe,(0,xe.Z)({},xt,{key:"noPager",page:1,className:"".concat(De,"-item-disabled")})));for(var Ue=1;Ue<=Ee;Ue+=1){var an=ui===Ue;cr.push(Ie.createElement(Xe,(0,xe.Z)({},xt,{key:Ue,page:Ue,active:an})))}}else{var Dt=wi?ln.prev_3:ln.prev_5,Rn=wi?ln.next_3:ln.next_5,dn=Ln(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Kr,"prev page")),Pt=Ln(this.getJumpNextPage(),"jump-next",this.getItemIcon(Vr,"next page"));rr&&(Xi=dn?Ie.createElement("li",{title:Pi?Dt:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Ct()("".concat(De,"-jump-prev"),(0,Me.Z)({},"".concat(De,"-jump-prev-custom-icon"),!!Kr))},dn):null,yn=Pt?Ie.createElement("li",{title:Pi?Rn:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Ct()("".concat(De,"-jump-next"),(0,Me.Z)({},"".concat(De,"-jump-next-custom-icon"),!!Vr))},Pt):null),Ci=Ie.createElement(Xe,{locale:ln,last:!0,rootPrefixCls:De,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Ee,page:Ee,active:!1,showTitle:Pi,itemRender:Ln}),oi=Ie.createElement(Xe,{locale:ln,rootPrefixCls:De,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Pi,itemRender:Ln});var Sn=Math.max(1,ui-yt),Qn=Math.min(ui+yt,Ee);ui-1<=yt&&(Qn=1+yt*2),Ee-ui<=yt&&(Sn=Ee-yt*2);for(var Xn=Sn;Xn<=Qn;Xn+=1){var Rt=ui===Xn;cr.push(Ie.createElement(Xe,{locale:ln,rootPrefixCls:De,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Xn,page:Xn,active:Rt,showTitle:Pi,itemRender:Ln}))}ui-1>=yt*2&&ui!==3&&(cr[0]=(0,Ie.cloneElement)(cr[0],{className:"".concat(De,"-item-after-jump-prev")}),cr.unshift(Xi)),Ee-ui>=yt*2&&ui!==Ee-2&&(cr[cr.length-1]=(0,Ie.cloneElement)(cr[cr.length-1],{className:"".concat(De,"-item-before-jump-next")}),cr.push(yn)),Sn!==1&&cr.unshift(oi),Qn!==Ee&&cr.push(Ci)}var vn=!this.hasPrev()||!Ee,bi=!this.hasNext()||!Ee,vi=this.renderPrev(Et),pi=this.renderNext(Lt);return Ie.createElement("ul",(0,xe.Z)({className:Ct()(De,Re,(0,Me.Z)({},"".concat(De,"-disabled"),st)),style:Le,ref:this.paginationNode},tt),en,vi?Ie.createElement("li",{title:Pi?ln.prev_page:null,onClick:this.prev,tabIndex:vn?null:0,onKeyPress:this.runIfEnterPrev,className:Ct()("".concat(De,"-prev"),(0,Me.Z)({},"".concat(De,"-disabled"),vn)),"aria-disabled":vn},vi):null,cr,pi?Ie.createElement("li",{title:Pi?ln.next_page:null,onClick:this.next,tabIndex:bi?null:0,onKeyPress:this.runIfEnterNext,className:Ct()("".concat(De,"-next"),(0,Me.Z)({},"".concat(De,"-disabled"),bi)),"aria-disabled":bi},pi):null,Ie.createElement(Ke,{disabled:st,locale:ln,rootPrefixCls:De,selectComponentClass:jr,selectPrefixCls:li,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:ui,pageSize:Ir,pageSizeOptions:Ti,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:on}))}}],[{key:"getDerivedStateFromProps",value:function(me,De){var Re={};if("current"in me&&(Re.current=me.current,me.current!==De.current&&(Re.currentInputValue=Re.current)),"pageSize"in me&&me.pageSize!==De.pageSize){var Le=De.current,st=$e(me.pageSize,De,me);Le=Le>st?st:Le,"current"in me||(Re.current=Le,Re.currentInputValue=Le),Re.pageSize=me.pageSize}return Re}}]),Be}(Ie.Component);zt.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:ft,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:ft,locale:Pe.Z,style:{},itemRender:kt,totalBoundaryShowSizeChanger:50};var Ht=zt,Yt=ye(22075),Bt=ye(36355),Qt=ye(19716),ht=ye(8628),je=ye(9763),At=ye(57809);const wn=at=>Ie.createElement(At.default,Object.assign({},at,{showSearch:!0,size:"small"})),rn=at=>Ie.createElement(At.default,Object.assign({},at,{showSearch:!0,size:"middle"}));wn.Option=At.default.Option,rn.Option=At.default.Option;var bt=ye(9937),Jt=ye(17313),un=ye(83116),Kn=ye(37613);const En=at=>{const{componentCls:Ve}=at;return{[`${Ve}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Ve}-item-link`]:{color:at.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Ve}-item-link`]:{color:at.colorTextDisabled,cursor:"not-allowed"}}},[`&${Ve}-disabled`]:{cursor:"not-allowed",[`${Ve}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:at.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:at.colorBorder,backgroundColor:at.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:at.itemActiveBgDisabled},a:{color:at.itemActiveColorDisabled}}},[`${Ve}-item-link`]:{color:at.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Ve}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Ve}-simple-pager`]:{color:at.colorTextDisabled},[`${Ve}-jump-prev, ${Ve}-jump-next`]:{[`${Ve}-item-link-icon`]:{opacity:0},[`${Ve}-item-ellipsis`]:{opacity:1}}},[`&${Ve}-simple`]:{[`${Ve}-prev, ${Ve}-next`]:{[`&${Ve}-disabled ${Ve}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Yn=at=>{const{componentCls:Ve}=at;return{[`&${Ve}-mini ${Ve}-total-text, &${Ve}-mini ${Ve}-simple-pager`]:{height:at.itemSizeSM,lineHeight:`${at.itemSizeSM}px`},[`&${Ve}-mini ${Ve}-item`]:{minWidth:at.itemSizeSM,height:at.itemSizeSM,margin:0,lineHeight:`${at.itemSizeSM-2}px`},[`&${Ve}-mini:not(${Ve}-disabled) ${Ve}-item:not(${Ve}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:at.colorBgTextHover},"&:active":{backgroundColor:at.colorBgTextActive}},[`&${Ve}-mini ${Ve}-prev, &${Ve}-mini ${Ve}-next`]:{minWidth:at.itemSizeSM,height:at.itemSizeSM,margin:0,lineHeight:`${at.itemSizeSM}px`},[`&${Ve}-mini:not(${Ve}-disabled)`]:{[`${Ve}-prev, ${Ve}-next`]:{[`&:hover ${Ve}-item-link`]:{backgroundColor:at.colorBgTextHover},[`&:active ${Ve}-item-link`]:{backgroundColor:at.colorBgTextActive},[`&${Ve}-disabled:hover ${Ve}-item-link`]:{backgroundColor:"transparent"}}},[`
&${Ve}-mini ${Ve}-prev ${Ve}-item-link,
&${Ve}-mini ${Ve}-next ${Ve}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:at.itemSizeSM,lineHeight:`${at.itemSizeSM}px`}},[`&${Ve}-mini ${Ve}-jump-prev, &${Ve}-mini ${Ve}-jump-next`]:{height:at.itemSizeSM,marginInlineEnd:0,lineHeight:`${at.itemSizeSM}px`},[`&${Ve}-mini ${Ve}-options`]:{marginInlineStart:at.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:at.miniOptionsSizeChangerTop},"&-quick-jumper":{height:at.itemSizeSM,lineHeight:`${at.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,bt.x0)(at)),{width:at.paginationMiniQuickJumperInputWidth,height:at.controlHeightSM})}}}},St=at=>{const{componentCls:Ve}=at;return{[`
&${Ve}-simple ${Ve}-prev,
&${Ve}-simple ${Ve}-next
`]:{height:at.itemSizeSM,lineHeight:`${at.itemSizeSM}px`,verticalAlign:"top",[`${Ve}-item-link`]:{height:at.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:at.colorBgTextHover},"&:active":{backgroundColor:at.colorBgTextActive},"&::after":{height:at.itemSizeSM,lineHeight:`${at.itemSizeSM}px`}}},[`&${Ve}-simple ${Ve}-simple-pager`]:{display:"inline-block",height:at.itemSizeSM,marginInlineEnd:at.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:at.marginXS,padding:`0 ${at.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:at.itemInputBg,border:`${at.lineWidth}px ${at.lineType} ${at.colorBorder}`,borderRadius:at.borderRadius,outline:"none",transition:`border-color ${at.motionDurationMid}`,color:"inherit","&:hover":{borderColor:at.colorPrimary},"&:focus":{borderColor:at.colorPrimaryHover,boxShadow:`${at.inputOutlineOffset}px 0 ${at.controlOutlineWidth}px ${at.controlOutline}`},"&[disabled]":{color:at.colorTextDisabled,backgroundColor:at.colorBgContainerDisabled,borderColor:at.colorBorder,cursor:"not-allowed"}}}}},Vn=at=>{const{componentCls:Ve}=at;return{[`${Ve}-jump-prev, ${Ve}-jump-next`]:{outline:0,[`${Ve}-item-container`]:{position:"relative",[`${Ve}-item-link-icon`]:{color:at.colorPrimary,fontSize:at.fontSizeSM,opacity:0,transition:`all ${at.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Ve}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:at.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:at.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:at.paginationEllipsisTextIndent,opacity:1,transition:`all ${at.motionDurationMid}`}},"&:hover":{[`${Ve}-item-link-icon`]:{opacity:1},[`${Ve}-item-ellipsis`]:{opacity:0}}},[`
${Ve}-prev,
${Ve}-jump-prev,
${Ve}-jump-next
`]:{marginInlineEnd:at.marginXS},[`
${Ve}-prev,
${Ve}-next,
${Ve}-jump-prev,
${Ve}-jump-next
`]:{display:"inline-block",minWidth:at.itemSize,height:at.itemSize,color:at.colorText,fontFamily:at.fontFamily,lineHeight:`${at.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:at.borderRadius,cursor:"pointer",transition:`all ${at.motionDurationMid}`},[`${Ve}-prev, ${Ve}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:at.colorText,cursor:"pointer",userSelect:"none"},[`${Ve}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:at.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${at.lineWidth}px ${at.lineType} transparent`,borderRadius:at.borderRadius,outline:"none",transition:`all ${at.motionDurationMid}`},[`&:hover ${Ve}-item-link`]:{backgroundColor:at.colorBgTextHover},[`&:active ${Ve}-item-link`]:{backgroundColor:at.colorBgTextActive},[`&${Ve}-disabled:hover`]:{[`${Ve}-item-link`]:{backgroundColor:"transparent"}}},[`${Ve}-slash`]:{marginInlineEnd:at.paginationSlashMarginInlineEnd,marginInlineStart:at.paginationSlashMarginInlineStart},[`${Ve}-options`]:{display:"inline-block",marginInlineStart:at.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:at.controlHeight,marginInlineStart:at.marginXS,lineHeight:`${at.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,bt.ik)(at)),{width:at.controlHeightLG*1.25,height:at.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:at.marginXS,marginInlineEnd:at.marginXS})}}}},Cn=at=>{const{componentCls:Ve}=at;return{[`${Ve}-item`]:{display:"inline-block",minWidth:at.itemSize,height:at.itemSize,marginInlineEnd:at.marginXS,fontFamily:at.fontFamily,lineHeight:`${at.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${at.lineWidth}px ${at.lineType} transparent`,borderRadius:at.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${at.paginationItemPaddingInline}px`,color:at.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Ve}-item-active)`]:{"&:hover":{transition:`all ${at.motionDurationMid}`,backgroundColor:at.colorBgTextHover},"&:active":{backgroundColor:at.colorBgTextActive}},"&-active":{fontWeight:at.fontWeightStrong,backgroundColor:at.itemActiveBg,borderColor:at.colorPrimary,a:{color:at.colorPrimary},"&:hover":{borderColor:at.colorPrimaryHover},"&:hover a":{color:at.colorPrimaryHover}}}}},Si=at=>{const{componentCls:Ve}=at;return{[Ve]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Jt.Wf)(at)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Ve}-total-text`]:{display:"inline-block",height:at.itemSize,marginInlineEnd:at.marginXS,lineHeight:`${at.itemSize-2}px`,verticalAlign:"middle"}}),Cn(at)),Vn(at)),St(at)),Yn(at)),En(at)),{[`@media only screen and (max-width: ${at.screenLG}px)`]:{[`${Ve}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${at.screenSM}px)`]:{[`${Ve}-options`]:{display:"none"}}}),[`&${at.componentCls}-rtl`]:{direction:"rtl"}}},Bn=at=>{const{componentCls:Ve}=at;return{[`${Ve}${Ve}-disabled:not(${Ve}-mini)`]:{"&, &:hover":{[`${Ve}-item-link`]:{borderColor:at.colorBorder}},"&:focus-visible":{[`${Ve}-item-link`]:{borderColor:at.colorBorder}},[`${Ve}-item, ${Ve}-item-link`]:{backgroundColor:at.colorBgContainerDisabled,borderColor:at.colorBorder,[`&:hover:not(${Ve}-item-active)`]:{backgroundColor:at.colorBgContainerDisabled,borderColor:at.colorBorder,a:{color:at.colorTextDisabled}},[`&${Ve}-item-active`]:{backgroundColor:at.itemActiveBgDisabled}},[`${Ve}-prev, ${Ve}-next`]:{"&:hover button":{backgroundColor:at.colorBgContainerDisabled,borderColor:at.colorBorder,color:at.colorTextDisabled},[`${Ve}-item-link`]:{backgroundColor:at.colorBgContainerDisabled,borderColor:at.colorBorder}}},[`${Ve}:not(${Ve}-mini)`]:{[`${Ve}-prev, ${Ve}-next`]:{"&:hover button":{borderColor:at.colorPrimaryHover,backgroundColor:at.itemBg},[`${Ve}-item-link`]:{backgroundColor:at.itemLinkBg,borderColor:at.colorBorder},[`&:hover ${Ve}-item-link`]:{borderColor:at.colorPrimary,backgroundColor:at.itemBg,color:at.colorPrimary},[`&${Ve}-disabled`]:{[`${Ve}-item-link`]:{borderColor:at.colorBorder,color:at.colorTextDisabled}}},[`${Ve}-item`]:{backgroundColor:at.itemBg,border:`${at.lineWidth}px ${at.lineType} ${at.colorBorder}`,[`&:hover:not(${Ve}-item-active)`]:{borderColor:at.colorPrimary,backgroundColor:at.itemBg,a:{color:at.colorPrimary}},"&-active":{borderColor:at.colorPrimary}}}}},tn=at=>{const{componentCls:Ve}=at;return{[`${Ve}:not(${Ve}-disabled)`]:{[`${Ve}-item`]:Object.assign({},(0,Jt.Qy)(at)),[`${Ve}-jump-prev, ${Ve}-jump-next`]:{"&:focus-visible":Object.assign({[`${Ve}-item-link-icon`]:{opacity:1},[`${Ve}-item-ellipsis`]:{opacity:0}},(0,Jt.oN)(at))},[`${Ve}-prev, ${Ve}-next`]:{[`&:focus-visible ${Ve}-item-link`]:Object.assign({},(0,Jt.oN)(at))}}}};var $t=(0,un.Z)("Pagination",at=>{const Ve=(0,Kn.TS)(at,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:at.marginXXS/2,paginationMiniQuickJumperInputWidth:at.controlHeightLG*1.1,paginationItemPaddingInline:at.marginXXS*1.5,paginationEllipsisLetterSpacing:at.marginXXS/2,paginationSlashMarginInlineStart:at.marginXXS,paginationSlashMarginInlineEnd:at.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,bt.e5)(at),(0,bt.TM)(at));return[Si(Ve),tn(Ve),at.wireframe&&Bn(Ve)]},at=>({itemBg:at.colorBgContainer,itemSize:at.controlHeight,itemSizeSM:at.controlHeightSM,itemActiveBg:at.colorBgContainer,itemLinkBg:at.colorBgContainer,itemActiveColorDisabled:at.colorTextDisabled,itemActiveBgDisabled:at.controlItemBgActiveDisabled,itemInputBg:at.colorBgContainer,miniOptionsSizeChangerTop:0})),ct=function(at,Ve){var Be={};for(var we in at)Object.prototype.hasOwnProperty.call(at,we)&&Ve.indexOf(we)<0&&(Be[we]=at[we]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,we=Object.getOwnPropertySymbols(at);me<we.length;me++)Ve.indexOf(we[me])<0&&Object.prototype.propertyIsEnumerable.call(at,we[me])&&(Be[we[me]]=at[we[me]]);return Be},Ut=at=>{const{prefixCls:Ve,selectPrefixCls:Be,className:we,rootClassName:me,style:De,size:Re,locale:Le,selectComponentClass:st,responsive:Vt,showSizeChanger:sn}=at,ln=ct(at,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Hn}=(0,ht.Z)(Vt),{getPrefixCls:wi,direction:Pi,pagination:Ri={}}=Ie.useContext(Bt.E_),Zi=wi("pagination",Ve),[Ln,rr]=$t(Zi),Kr=sn!=null?sn:Ri.showSizeChanger,Vr=Ie.useMemo(()=>{const Ee=Ie.createElement("span",{className:`${Zi}-item-ellipsis`},"\u2022\u2022\u2022"),cr=Ie.createElement("button",{className:`${Zi}-item-link`,type:"button",tabIndex:-1},Pi==="rtl"?Ie.createElement(gt.Z,null):Ie.createElement(qe.Z,null)),Xi=Ie.createElement("button",{className:`${Zi}-item-link`,type:"button",tabIndex:-1},Pi==="rtl"?Ie.createElement(qe.Z,null):Ie.createElement(gt.Z,null)),yn=Ie.createElement("a",{className:`${Zi}-item-link`},Ie.createElement("div",{className:`${Zi}-item-container`},Pi==="rtl"?Ie.createElement(Ft.Z,{className:`${Zi}-item-link-icon`}):Ie.createElement(Tt,{className:`${Zi}-item-link-icon`}),Ee)),oi=Ie.createElement("a",{className:`${Zi}-item-link`},Ie.createElement("div",{className:`${Zi}-item-container`},Pi==="rtl"?Ie.createElement(Tt,{className:`${Zi}-item-link-icon`}):Ie.createElement(Ft.Z,{className:`${Zi}-item-link-icon`}),Ee));return{prevIcon:cr,nextIcon:Xi,jumpPrevIcon:yn,jumpNextIcon:oi}},[Pi,Zi]),[jr]=(0,je.Z)("Pagination",Yt.Z),li=Object.assign(Object.assign({},jr),Le),Ti=(0,Qt.Z)(Re),vr=Ti==="small"||!!(Hn&&!Ti&&Vt),ui=wi("select",Be),Ir=Ct()({[`${Zi}-mini`]:vr,[`${Zi}-rtl`]:Pi==="rtl"},Ri==null?void 0:Ri.className,we,me,rr),zn=Object.assign(Object.assign({},Ri==null?void 0:Ri.style),De);return Ln(Ie.createElement(Ht,Object.assign({},Vr,ln,{style:zn,prefixCls:Zi,selectPrefixCls:ui,className:Ir,selectComponentClass:st||(vr?wn:rn),locale:li,showSizeChanger:Kr})))},Gt=Ut},39978:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return je}});var xe=ye(5891),Ie=ye(59301),We={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"},It=We,Qe=ye(88853),vt=function(wn,rn){return Ie.createElement(Qe.Z,(0,xe.Z)({},wn,{ref:rn,icon:It}))},Ne=Ie.forwardRef(vt),Tt=Ne,Ft=ye(92310),qe=ye.n(Ft),gt=ye(80962),dt=ye(29043),Ct=ye(19149),Me=ye(35788),te=ye(85108),ne=ye(36994);function ce(At,wn){var rn=At.disabled,bt=At.prefixCls,Jt=At.character,un=At.characterRender,Kn=At.index,En=At.count,Yn=At.value,St=At.allowHalf,Vn=At.focused,Cn=At.onHover,Si=At.onClick,Bn=function(Ve){Cn(Ve,Kn)},tn=function(Ve){Si(Ve,Kn)},$t=function(Ve){Ve.keyCode===te.Z.ENTER&&Si(Ve,Kn)},ct=Kn+1,ze=new Set([bt]);Yn===0&&Kn===0&&Vn?ze.add("".concat(bt,"-focused")):St&&Yn+.5>=ct&&Yn<ct?(ze.add("".concat(bt,"-half")),ze.add("".concat(bt,"-active")),Vn&&ze.add("".concat(bt,"-focused"))):(ct<=Yn?ze.add("".concat(bt,"-full")):ze.add("".concat(bt,"-zero")),ct===Yn&&Vn&&ze.add("".concat(bt,"-focused")));var Ut=typeof Jt=="function"?Jt(At):Jt,Gt=Ie.createElement("li",{className:qe()(Array.from(ze)),ref:wn},Ie.createElement("div",{onClick:rn?null:tn,onKeyDown:rn?null:$t,onMouseMove:rn?null:Bn,role:"radio","aria-checked":Yn>Kn?"true":"false","aria-posinset":Kn+1,"aria-setsize":En,tabIndex:rn?-1:0},Ie.createElement("div",{className:"".concat(bt,"-first")},Ut),Ie.createElement("div",{className:"".concat(bt,"-second")},Ut)));return un&&(Gt=un(Gt,At)),Gt}var se=Ie.forwardRef(ce);function ge(){var At=Ie.useRef({});function wn(bt){return At.current[bt]}function rn(bt){return function(Jt){At.current[bt]=Jt}}return[wn,rn]}function ve(At){var wn=At.pageXOffset,rn="scrollLeft";if(typeof wn!="number"){var bt=At.document;wn=bt.documentElement[rn],typeof wn!="number"&&(wn=bt.body[rn])}return wn}function Ce(At){var wn,rn,bt=At.ownerDocument,Jt=bt.body,un=bt&&bt.documentElement,Kn=At.getBoundingClientRect();return wn=Kn.left,rn=Kn.top,wn-=un.clientLeft||Jt.clientLeft||0,rn-=un.clientTop||Jt.clientTop||0,{left:wn,top:rn}}function ke(At){var wn=Ce(At),rn=At.ownerDocument,bt=rn.defaultView||rn.parentWindow;return wn.left+=ve(bt),wn.left}var Pe=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Te(At,wn){var rn,bt=At.prefixCls,Jt=bt===void 0?"rc-rate":bt,un=At.className,Kn=At.defaultValue,En=At.value,Yn=At.count,St=Yn===void 0?5:Yn,Vn=At.allowHalf,Cn=Vn===void 0?!1:Vn,Si=At.allowClear,Bn=Si===void 0?!0:Si,tn=At.character,$t=tn===void 0?"\u2605":tn,ct=At.characterRender,ze=At.disabled,Ut=At.direction,Gt=Ut===void 0?"ltr":Ut,at=At.tabIndex,Ve=at===void 0?0:at,Be=At.autoFocus,we=At.onHoverChange,me=At.onChange,De=At.onFocus,Re=At.onBlur,Le=At.onKeyDown,st=At.onMouseLeave,Vt=(0,Ct.Z)(At,Pe),sn=ge(),ln=(0,dt.Z)(sn,2),Hn=ln[0],wi=ln[1],Pi=Ie.useRef(null),Ri=function(){if(!ze){var Ue;(Ue=Pi.current)===null||Ue===void 0||Ue.focus()}};Ie.useImperativeHandle(wn,function(){return{focus:Ri,blur:function(){if(!ze){var Ue;(Ue=Pi.current)===null||Ue===void 0||Ue.blur()}}}});var Zi=(0,Me.Z)(Kn||0,{value:En}),Ln=(0,dt.Z)(Zi,2),rr=Ln[0],Kr=Ln[1],Vr=(0,Me.Z)(null),jr=(0,dt.Z)(Vr,2),li=jr[0],Ti=jr[1],vr=function(Ue,an){var Dt=Gt==="rtl",Rn=Ue+1;if(Cn){var dn=Hn(Ue),Pt=ke(dn),Sn=dn.clientWidth;(Dt&&an-Pt>Sn/2||!Dt&&an-Pt<Sn/2)&&(Rn-=.5)}return Rn},ui=function(Ue){Kr(Ue),me==null||me(Ue)},Ir=Ie.useState(!1),zn=(0,dt.Z)(Ir,2),Ee=zn[0],cr=zn[1],Xi=function(){cr(!0),De==null||De()},yn=function(){cr(!1),Re==null||Re()},oi=Ie.useState(null),Ci=(0,dt.Z)(oi,2),xn=Ci[0],on=Ci[1],yt=function(Ue,an){var Dt=vr(an,Ue.pageX);Dt!==li&&(on(Dt),Ti(null)),we==null||we(Dt)},Et=function(Ue){ze||(on(null),Ti(null),we==null||we(void 0)),Ue&&(st==null||st(Ue))},Lt=function(Ue,an){var Dt=vr(an,Ue.pageX),Rn=!1;Bn&&(Rn=Dt===rr),Et(),ui(Rn?0:Dt),Ti(Rn?Dt:null)},tt=function(Ue){var an=Ue.keyCode,Dt=Gt==="rtl",Rn=rr;an===te.Z.RIGHT&&Rn<St&&!Dt?(Cn?Rn+=.5:Rn+=1,ui(Rn),Ue.preventDefault()):an===te.Z.LEFT&&Rn>0&&!Dt||an===te.Z.RIGHT&&Rn>0&&Dt?(Cn?Rn-=.5:Rn-=1,ui(Rn),Ue.preventDefault()):an===te.Z.LEFT&&Rn<St&&Dt&&(Cn?Rn+=.5:Rn+=1,ui(Rn),Ue.preventDefault()),Le==null||Le(Ue)};Ie.useEffect(function(){Be&&!ze&&Ri()},[]);var en=new Array(St).fill(0).map(function(xt,Ue){return Ie.createElement(se,{ref:wi(Ue),index:Ue,count:St,disabled:ze,prefixCls:"".concat(Jt,"-star"),allowHalf:Cn,value:xn===null?rr:xn,onClick:Lt,onHover:yt,key:xt||Ue,character:$t,characterRender:ct,focused:Ee})}),fn=qe()(Jt,un,(rn={},(0,gt.Z)(rn,"".concat(Jt,"-disabled"),ze),(0,gt.Z)(rn,"".concat(Jt,"-rtl"),Gt==="rtl"),rn));return Ie.createElement("ul",(0,xe.Z)({className:fn,onMouseLeave:Et,tabIndex:ze?-1:Ve,onFocus:ze?null:Xi,onBlur:ze?null:yn,onKeyDown:ze?null:tt,ref:Pi,role:"radiogroup"},(0,ne.Z)(Vt,{aria:!0,data:!0,attr:!0})),en)}var Ke=Ie.forwardRef(Te),et=Ke,Xe=ye(36355),ft=ye(6848),Ge=ye(17313),kt=ye(83116),$e=ye(37613);const zt=At=>{const{componentCls:wn}=At;return{[`${wn}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:At.marginXS},"> div":{transition:`all ${At.motionDurationMid}, outline 0s`,"&:hover":{transform:At.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${At.lineWidth}px dashed ${At.starColor}`,transform:At.starHoverScale}},"&-first, &-second":{color:At.starBg,transition:`all ${At.motionDurationMid}`,userSelect:"none",[At.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${wn}-star-first, &-half ${wn}-star-second`]:{opacity:1},[`&-half ${wn}-star-first, &-full ${wn}-star-second`]:{color:"inherit"}}}},Ht=At=>({[`&-rtl${At.componentCls}`]:{direction:"rtl"}}),Yt=At=>{const{componentCls:wn}=At;return{[wn]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ge.Wf)(At)),{display:"inline-block",margin:0,padding:0,color:At.starColor,fontSize:At.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${wn} ${wn}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),zt(At)),{[`+ ${wn}-text`]:{display:"inline-block",marginInlineStart:At.marginXS,fontSize:At.fontSize}}),Ht(At))}};var Bt=(0,kt.Z)("Rate",At=>{const wn=(0,$e.TS)(At,{});return[Yt(wn)]},At=>({starColor:At.yellow6,starSize:At.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:At.colorFillContent})),Qt=function(At,wn){var rn={};for(var bt in At)Object.prototype.hasOwnProperty.call(At,bt)&&wn.indexOf(bt)<0&&(rn[bt]=At[bt]);if(At!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jt=0,bt=Object.getOwnPropertySymbols(At);Jt<bt.length;Jt++)wn.indexOf(bt[Jt])<0&&Object.prototype.propertyIsEnumerable.call(At,bt[Jt])&&(rn[bt[Jt]]=At[bt[Jt]]);return rn},je=Ie.forwardRef((At,wn)=>{const{prefixCls:rn,className:bt,rootClassName:Jt,style:un,tooltips:Kn,character:En=Ie.createElement(Tt,null)}=At,Yn=Qt(At,["prefixCls","className","rootClassName","style","tooltips","character"]),St=(ze,Ut)=>{let{index:Gt}=Ut;return Kn?Ie.createElement(ft.Z,{title:Kn[Gt]},ze):ze},{getPrefixCls:Vn,direction:Cn,rate:Si}=Ie.useContext(Xe.E_),Bn=Vn("rate",rn),[tn,$t]=Bt(Bn),ct=Object.assign(Object.assign({},Si==null?void 0:Si.style),un);return tn(Ie.createElement(et,Object.assign({ref:wn,character:En,characterRender:St},Yn,{className:qe()(bt,Jt,$t,Si==null?void 0:Si.className),style:ct,prefixCls:Bn,direction:Cn})))})},57809:function(In,Fn,ye){"use strict";var xe=ye(92310),Ie=ye.n(xe),We=ye(77861),It=ye(64002),Qe=ye(59301),vt=ye(53487),Ne=ye(62892),Tt=ye(19080),Ft=ye(36355),qe=ye(1684),gt=ye(93891),dt=ye(19716),Ct=ye(32441),Me=ye(33234),te=ye(14154),ne=ye(58582),ce=ye(84443),se=ye(66339),ge=function(Te,Ke){var et={};for(var Xe in Te)Object.prototype.hasOwnProperty.call(Te,Xe)&&Ke.indexOf(Xe)<0&&(et[Xe]=Te[Xe]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Xe=Object.getOwnPropertySymbols(Te);ft<Xe.length;ft++)Ke.indexOf(Xe[ft])<0&&Object.prototype.propertyIsEnumerable.call(Te,Xe[ft])&&(et[Xe[ft]]=Te[Xe[ft]]);return et};const ve="SECRET_COMBOBOX_MODE_DO_NOT_USE",Ce=(Te,Ke)=>{var et,{prefixCls:Xe,bordered:ft=!0,className:Ge,rootClassName:kt,getPopupContainer:$e,popupClassName:zt,dropdownClassName:Ht,listHeight:Yt=256,placement:Bt,listItemHeight:Qt=24,size:ht,disabled:je,notFoundContent:At,status:wn,builtinPlacements:rn,dropdownMatchSelectWidth:bt,popupMatchSelectWidth:Jt,direction:un,style:Kn,allowClear:En}=Te,Yn=ge(Te,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:St,getPrefixCls:Vn,renderEmpty:Cn,direction:Si,virtual:Bn,popupMatchSelectWidth:tn,popupOverflow:$t,select:ct}=Qe.useContext(Ft.E_),ze=Vn("select",Xe),Ut=Vn(),Gt=un!=null?un:Si,{compactSize:at,compactItemClassnames:Ve}=(0,Me.ri)(ze,Gt),[Be,we]=(0,te.Z)(ze),me=Qe.useMemo(()=>{const{mode:zn}=Yn;if(zn!=="combobox")return zn===ve?"combobox":zn},[Yn.mode]),De=me==="multiple"||me==="tags",Re=(0,ce.Z)(Yn.suffixIcon,Yn.showArrow),Le=(et=Jt!=null?Jt:bt)!==null&&et!==void 0?et:tn,{status:st,hasFeedback:Vt,isFormItemInput:sn,feedbackIcon:ln}=Qe.useContext(Ct.aM),Hn=(0,Tt.F)(st,wn);let wi;At!==void 0?wi=At:me==="combobox"?wi=null:wi=(Cn==null?void 0:Cn("Select"))||Qe.createElement(gt.Z,{componentName:"Select"});const{suffixIcon:Pi,itemIcon:Ri,removeIcon:Zi,clearIcon:Ln}=(0,se.Z)(Object.assign(Object.assign({},Yn),{multiple:De,hasFeedback:Vt,feedbackIcon:ln,showSuffixIcon:Re,prefixCls:ze,showArrow:Yn.showArrow,componentName:"Select"})),rr=En===!0?{clearIcon:Ln}:En,Kr=(0,It.Z)(Yn,["suffixIcon","itemIcon"]),Vr=Ie()(zt||Ht,{[`${ze}-dropdown-${Gt}`]:Gt==="rtl"},kt,we),jr=(0,dt.Z)(zn=>{var Ee;return(Ee=ht!=null?ht:at)!==null&&Ee!==void 0?Ee:zn}),li=Qe.useContext(qe.Z),Ti=je!=null?je:li,vr=Ie()({[`${ze}-lg`]:jr==="large",[`${ze}-sm`]:jr==="small",[`${ze}-rtl`]:Gt==="rtl",[`${ze}-borderless`]:!ft,[`${ze}-in-form-item`]:sn},(0,Tt.Z)(ze,Hn,Vt),Ve,ct==null?void 0:ct.className,Ge,kt,we),ui=Qe.useMemo(()=>Bt!==void 0?Bt:Gt==="rtl"?"bottomRight":"bottomLeft",[Bt,Gt]),Ir=(0,ne.Z)(rn,$t);return Be(Qe.createElement(We.ZP,Object.assign({ref:Ke,virtual:Bn,showSearch:ct==null?void 0:ct.showSearch},Kr,{style:Object.assign(Object.assign({},ct==null?void 0:ct.style),Kn),dropdownMatchSelectWidth:Le,builtinPlacements:Ir,transitionName:(0,Ne.m)(Ut,"slide-up",Yn.transitionName),listHeight:Yt,listItemHeight:Qt,mode:me,prefixCls:ze,placement:ui,direction:Gt,suffixIcon:Pi,menuItemSelectedIcon:Ri,removeIcon:Zi,allowClear:rr,notFoundContent:wi,className:vr,getPopupContainer:$e||St,dropdownClassName:Vr,disabled:Ti})))},ke=Qe.forwardRef(Ce),Pe=(0,vt.Z)(ke);ke.SECRET_COMBOBOX_MODE_DO_NOT_USE=ve,ke.Option=We.Wx,ke.OptGroup=We.Xo,ke._InternalPanelDoNotUseOrYouWillBeFired=Pe,Fn.default=ke},14154:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return ke}});var xe=ye(17313),Ie=ye(74207),We=ye(37613),It=ye(83116),Qe=ye(13826),vt=ye(92899);const Ne=Pe=>{const{optionHeight:Te,optionFontSize:Ke,optionLineHeight:et,optionPadding:Xe}=Pe;return{position:"relative",display:"block",minHeight:Te,padding:Xe,color:Pe.colorText,fontWeight:"normal",fontSize:Ke,lineHeight:et,boxSizing:"border-box"}};var Ft=Pe=>{const{antCls:Te,componentCls:Ke}=Pe,et=`${Ke}-item`,Xe=`&${Te}-slide-up-enter${Te}-slide-up-enter-active`,ft=`&${Te}-slide-up-appear${Te}-slide-up-appear-active`,Ge=`&${Te}-slide-up-leave${Te}-slide-up-leave-active`,kt=`${Ke}-dropdown-placement-`;return[{[`${Ke}-dropdown`]:Object.assign(Object.assign({},(0,xe.Wf)(Pe)),{position:"absolute",top:-9999,zIndex:Pe.zIndexPopup,boxSizing:"border-box",padding:Pe.paddingXXS,overflow:"hidden",fontSize:Pe.fontSize,fontVariant:"initial",backgroundColor:Pe.colorBgElevated,borderRadius:Pe.borderRadiusLG,outline:"none",boxShadow:Pe.boxShadowSecondary,[`
${Xe}${kt}bottomLeft,
${ft}${kt}bottomLeft
`]:{animationName:Qe.fJ},[`
${Xe}${kt}topLeft,
${ft}${kt}topLeft,
${Xe}${kt}topRight,
${ft}${kt}topRight
`]:{animationName:Qe.Qt},[`${Ge}${kt}bottomLeft`]:{animationName:Qe.Uw},[`
${Ge}${kt}topLeft,
${Ge}${kt}topRight
`]:{animationName:Qe.ly},"&-hidden":{display:"none"},[`${et}`]:Object.assign(Object.assign({},Ne(Pe)),{cursor:"pointer",transition:`background ${Pe.motionDurationSlow} ease`,borderRadius:Pe.borderRadiusSM,"&-group":{color:Pe.colorTextDescription,fontSize:Pe.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},xe.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${et}-option-disabled)`]:{backgroundColor:Pe.optionActiveBg},[`&-selected:not(${et}-option-disabled)`]:{color:Pe.optionSelectedColor,fontWeight:Pe.optionSelectedFontWeight,backgroundColor:Pe.optionSelectedBg,[`${et}-option-state`]:{color:Pe.colorPrimary}},"&-disabled":{[`&${et}-option-selected`]:{backgroundColor:Pe.colorBgContainerDisabled},color:Pe.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Pe.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,Qe.oN)(Pe,"slide-up"),(0,Qe.oN)(Pe,"slide-down"),(0,vt.Fm)(Pe,"move-up"),(0,vt.Fm)(Pe,"move-down")]};const qe=2,gt=Pe=>{let{controlHeightSM:Te,controlHeight:Ke,lineWidth:et}=Pe;const Xe=(Ke-Te)/2-et,ft=Math.ceil(Xe/2);return[Xe,ft]};function dt(Pe,Te){const{componentCls:Ke,iconCls:et}=Pe,Xe=`${Ke}-selection-overflow`,ft=Pe.multipleSelectItemHeight,[Ge]=gt(Pe),kt=Te?`${Ke}-${Te}`:"";return{[`${Ke}-multiple${kt}`]:{fontSize:Pe.fontSize,[Xe]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Ke}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${Ge-qe}px ${qe*2}px`,borderRadius:Pe.borderRadius,[`${Ke}-show-search&`]:{cursor:"text"},[`${Ke}-disabled&`]:{background:Pe.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${qe}px 0`,lineHeight:`${ft}px`,visibility:"hidden",content:'"\\a0"'}},[`
&${Ke}-show-arrow ${Ke}-selector,
&${Ke}-allow-clear ${Ke}-selector
`]:{paddingInlineEnd:Pe.fontSizeIcon+Pe.controlPaddingHorizontal},[`${Ke}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:ft,marginTop:qe,marginBottom:qe,lineHeight:`${ft-Pe.lineWidth*2}px`,background:Pe.multipleItemBg,border:`${Pe.lineWidth}px ${Pe.lineType} ${Pe.multipleItemBorderColor}`,borderRadius:Pe.borderRadiusSM,cursor:"default",transition:`font-size ${Pe.motionDurationSlow}, line-height ${Pe.motionDurationSlow}, height ${Pe.motionDurationSlow}`,userSelect:"none",marginInlineEnd:qe*2,paddingInlineStart:Pe.paddingXS,paddingInlineEnd:Pe.paddingXS/2,[`${Ke}-disabled&`]:{color:Pe.multipleItemColorDisabled,borderColor:Pe.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Pe.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,xe.Ro)()),{display:"inline-flex",alignItems:"center",color:Pe.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${et}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Pe.colorIconHover}})},[`${Xe}-item + ${Xe}-item`]:{[`${Ke}-selection-search`]:{marginInlineStart:0}},[`${Ke}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Pe.inputPaddingHorizontalBase-Ge,"\n &-input,\n &-mirror\n ":{height:ft,fontFamily:Pe.fontFamily,lineHeight:`${ft}px`,transition:`all ${Pe.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Ke}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Pe.inputPaddingHorizontalBase,insetInlineEnd:Pe.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Pe.motionDurationSlow}`}}}}var Me=Pe=>{const{componentCls:Te}=Pe,Ke=(0,We.TS)(Pe,{controlHeight:Pe.controlHeightSM,multipleSelectItemHeight:Pe.controlHeightXS,borderRadius:Pe.borderRadiusSM,borderRadiusSM:Pe.borderRadiusXS}),et=(0,We.TS)(Pe,{fontSize:Pe.fontSizeLG,controlHeight:Pe.controlHeightLG,multipleSelectItemHeight:Pe.multipleItemHeightLG,borderRadius:Pe.borderRadiusLG,borderRadiusSM:Pe.borderRadius}),[,Xe]=gt(Pe);return[dt(Pe),dt(Ke,"sm"),{[`${Te}-multiple${Te}-sm`]:{[`${Te}-selection-placeholder`]:{insetInline:Pe.controlPaddingHorizontalSM-Pe.lineWidth},[`${Te}-selection-search`]:{marginInlineStart:Xe}}},dt(et,"lg")]};function te(Pe,Te){const{componentCls:Ke,inputPaddingHorizontalBase:et,borderRadius:Xe}=Pe,ft=Pe.controlHeight-Pe.lineWidth*2,Ge=Math.ceil(Pe.fontSize*1.25),kt=Te?`${Ke}-${Te}`:"";return{[`${Ke}-single${kt}`]:{fontSize:Pe.fontSize,[`${Ke}-selector`]:Object.assign(Object.assign({},(0,xe.Wf)(Pe)),{display:"flex",borderRadius:Xe,[`${Ke}-selection-search`]:{position:"absolute",top:0,insetInlineStart:et,insetInlineEnd:et,bottom:0,"&-input":{width:"100%"}},[`
${Ke}-selection-item,
${Ke}-selection-placeholder
`]:{padding:0,lineHeight:`${ft}px`,transition:`all ${Pe.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${ft}px`}},[`${Ke}-selection-item`]:{position:"relative",userSelect:"none"},[`${Ke}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Ke}-selection-item:after`,`${Ke}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${Ke}-show-arrow ${Ke}-selection-item,
&${Ke}-show-arrow ${Ke}-selection-placeholder
`]:{paddingInlineEnd:Ge},[`&${Ke}-open ${Ke}-selection-item`]:{color:Pe.colorTextPlaceholder},[`&:not(${Ke}-customize-input)`]:{[`${Ke}-selector`]:{width:"100%",height:Pe.controlHeight,padding:`0 ${et}px`,[`${Ke}-selection-search-input`]:{height:ft},"&:after":{lineHeight:`${ft}px`}}},[`&${Ke}-customize-input`]:{[`${Ke}-selector`]:{"&:after":{display:"none"},[`${Ke}-selection-search`]:{position:"static",width:"100%"},[`${Ke}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${et}px`,"&:after":{display:"none"}}}}}}}function ne(Pe){const{componentCls:Te}=Pe,Ke=Pe.controlPaddingHorizontalSM-Pe.lineWidth;return[te(Pe),te((0,We.TS)(Pe,{controlHeight:Pe.controlHeightSM,borderRadius:Pe.borderRadiusSM}),"sm"),{[`${Te}-single${Te}-sm`]:{[`&:not(${Te}-customize-input)`]:{[`${Te}-selection-search`]:{insetInlineStart:Ke,insetInlineEnd:Ke},[`${Te}-selector`]:{padding:`0 ${Ke}px`},[`&${Te}-show-arrow ${Te}-selection-search`]:{insetInlineEnd:Ke+Pe.fontSize*1.5},[`
&${Te}-show-arrow ${Te}-selection-item,
&${Te}-show-arrow ${Te}-selection-placeholder
`]:{paddingInlineEnd:Pe.fontSize*1.5}}}},te((0,We.TS)(Pe,{controlHeight:Pe.singleItemHeightLG,fontSize:Pe.fontSizeLG,borderRadius:Pe.borderRadiusLG}),"lg")]}const ce=Pe=>{const{componentCls:Te,selectorBg:Ke}=Pe;return{position:"relative",backgroundColor:Ke,border:`${Pe.lineWidth}px ${Pe.lineType} ${Pe.colorBorder}`,transition:`all ${Pe.motionDurationMid} ${Pe.motionEaseInOut}`,input:{cursor:"pointer"},[`${Te}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Te}-disabled&`]:{color:Pe.colorTextDisabled,background:Pe.colorBgContainerDisabled,cursor:"not-allowed",[`${Te}-multiple&`]:{background:Pe.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},se=function(Pe,Te){let Ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:et,borderHoverColor:Xe,outlineColor:ft,antCls:Ge}=Te,kt=Ke?{[`${et}-selector`]:{borderColor:Xe}}:{};return{[Pe]:{[`&:not(${et}-disabled):not(${et}-customize-input):not(${Ge}-pagination-size-changer)`]:Object.assign(Object.assign({},kt),{[`${et}-focused& ${et}-selector`]:{borderColor:Xe,boxShadow:`0 0 0 ${Te.controlOutlineWidth}px ${ft}`,outline:0},[`&:hover ${et}-selector`]:{borderColor:Xe}})}}},ge=Pe=>{const{componentCls:Te}=Pe;return{[`${Te}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},ve=Pe=>{const{componentCls:Te,inputPaddingHorizontalBase:Ke,iconCls:et}=Pe;return{[Te]:Object.assign(Object.assign({},(0,xe.Wf)(Pe)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Te}-customize-input) ${Te}-selector`]:Object.assign(Object.assign({},ce(Pe)),ge(Pe)),[`${Te}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},xe.vS),[`${Te}-selection-placeholder`]:Object.assign(Object.assign({},xe.vS),{flex:1,color:Pe.colorTextPlaceholder,pointerEvents:"none"}),[`${Te}-arrow`]:Object.assign(Object.assign({},(0,xe.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ke,height:Pe.fontSizeIcon,marginTop:-Pe.fontSizeIcon/2,color:Pe.colorTextQuaternary,fontSize:Pe.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[et]:{verticalAlign:"top",transition:`transform ${Pe.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Te}-suffix)`]:{pointerEvents:"auto"}},[`${Te}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Te}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ke,zIndex:1,display:"inline-block",width:Pe.fontSizeIcon,height:Pe.fontSizeIcon,marginTop:-Pe.fontSizeIcon/2,color:Pe.colorTextQuaternary,fontSize:Pe.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Pe.clearBg,cursor:"pointer",opacity:0,transition:`color ${Pe.motionDurationMid} ease, opacity ${Pe.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Pe.colorTextTertiary}},"&:hover":{[`${Te}-clear`]:{opacity:1}}}),[`${Te}-has-feedback`]:{[`${Te}-clear`]:{insetInlineEnd:Ke+Pe.fontSize+Pe.paddingXS}}}},Ce=Pe=>{const{componentCls:Te}=Pe;return[{[Te]:{[`&-borderless ${Te}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Te}-in-form-item`]:{width:"100%"}}},ve(Pe),ne(Pe),Me(Pe),Ft(Pe),{[`${Te}-rtl`]:{direction:"rtl"}},se(Te,(0,We.TS)(Pe,{borderHoverColor:Pe.colorPrimaryHover,outlineColor:Pe.controlOutline})),se(`${Te}-status-error`,(0,We.TS)(Pe,{borderHoverColor:Pe.colorErrorHover,outlineColor:Pe.colorErrorOutline}),!0),se(`${Te}-status-warning`,(0,We.TS)(Pe,{borderHoverColor:Pe.colorWarningHover,outlineColor:Pe.colorWarningOutline}),!0),(0,Ie.c)(Pe,{borderElCls:`${Te}-selector`,focusElCls:`${Te}-focused`})]};var ke=(0,It.Z)("Select",(Pe,Te)=>{let{rootPrefixCls:Ke}=Te;const et=(0,We.TS)(Pe,{rootPrefixCls:Ke,inputPaddingHorizontalBase:Pe.paddingSM-1,multipleSelectItemHeight:Pe.multipleItemHeight});return[Ce(et)]},Pe=>{const{fontSize:Te,lineHeight:Ke,controlHeight:et,controlPaddingHorizontal:Xe,zIndexPopupBase:ft,colorText:Ge,fontWeightStrong:kt,controlItemBgActive:$e,controlItemBgHover:zt,colorBgContainer:Ht,colorFillSecondary:Yt,controlHeightLG:Bt,controlHeightSM:Qt,colorBgContainerDisabled:ht,colorTextDisabled:je}=Pe;return{zIndexPopup:ft+50,optionSelectedColor:Ge,optionSelectedFontWeight:kt,optionSelectedBg:$e,optionActiveBg:zt,optionPadding:`${(et-Te*Ke)/2}px ${Xe}px`,optionFontSize:Te,optionLineHeight:Ke,optionHeight:et,selectorBg:Ht,clearBg:Ht,singleItemHeightLG:Bt,multipleItemBg:Yt,multipleItemBorderColor:"transparent",multipleItemHeight:Qt,multipleItemHeightLG:et,multipleSelectorBgDisabled:ht,multipleItemColorDisabled:je,multipleItemBorderColorDisabled:"transparent"}})},58582:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Ie}});const xe=We=>{const Qe={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:We==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},Qe),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Qe),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Qe),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Qe),{points:["br","tr"],offset:[0,-4]})}};function Ie(We,It){return We||xe(It)}},84443:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return xe}});function xe(Ie,We){return We!==void 0?We:Ie!==null}},66339:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Tt}});var xe=ye(10402),Ie=ye(33130),We=ye(72119),It=ye(18290),Qe=ye(50023),vt=ye(21970),Ne=ye(59301);function Tt(Ft){let{suffixIcon:qe,clearIcon:gt,menuItemSelectedIcon:dt,removeIcon:Ct,loading:Me,multiple:te,hasFeedback:ne,prefixCls:ce,showSuffixIcon:se,feedbackIcon:ge,showArrow:ve,componentName:Ce}=Ft;const ke=gt!=null?gt:Ne.createElement(Ie.Z,null),Pe=Xe=>qe===null&&!ne&&!ve?null:Ne.createElement(Ne.Fragment,null,se!==!1&&Xe,ne&&ge);let Te=null;if(qe!==void 0)Te=Pe(qe);else if(Me)Te=Pe(Ne.createElement(Qe.Z,{spin:!0}));else{const Xe=`${ce}-suffix`;Te=ft=>{let{open:Ge,showSearch:kt}=ft;return Pe(Ge&&kt?Ne.createElement(vt.Z,{className:Xe}):Ne.createElement(It.Z,{className:Xe}))}}let Ke=null;dt!==void 0?Ke=dt:te?Ke=Ne.createElement(xe.Z,null):Ke=null;let et=null;return Ct!==void 0?et=Ct:et=Ne.createElement(We.Z,null),{clearIcon:ke,suffixIcon:Te,itemIcon:Ke,removeIcon:et}}},78485:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return $t}});var xe=ye(92310),Ie=ye.n(xe),We=ye(59301),It=ye(36355),Qe=ye(64002),Ne=ct=>{const{prefixCls:ze,className:Ut,style:Gt,size:at,shape:Ve}=ct,Be=Ie()({[`${ze}-lg`]:at==="large",[`${ze}-sm`]:at==="small"}),we=Ie()({[`${ze}-circle`]:Ve==="circle",[`${ze}-square`]:Ve==="square",[`${ze}-round`]:Ve==="round"}),me=We.useMemo(()=>typeof at=="number"?{width:at,height:at,lineHeight:`${at}px`}:{},[at]);return We.createElement("span",{className:Ie()(ze,Be,we,Ut),style:Object.assign(Object.assign({},me),Gt)})},Tt=ye(9792),Ft=ye(83116),qe=ye(37613);const gt=new Tt.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),dt=ct=>({height:ct,lineHeight:`${ct}px`}),Ct=ct=>Object.assign({width:ct},dt(ct)),Me=ct=>({background:ct.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:gt,animationDuration:ct.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),te=ct=>Object.assign({width:ct*5,minWidth:ct*5},dt(ct)),ne=ct=>{const{skeletonAvatarCls:ze,gradientFromColor:Ut,controlHeight:Gt,controlHeightLG:at,controlHeightSM:Ve}=ct;return{[`${ze}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ut},Ct(Gt)),[`${ze}${ze}-circle`]:{borderRadius:"50%"},[`${ze}${ze}-lg`]:Object.assign({},Ct(at)),[`${ze}${ze}-sm`]:Object.assign({},Ct(Ve))}},ce=ct=>{const{controlHeight:ze,borderRadiusSM:Ut,skeletonInputCls:Gt,controlHeightLG:at,controlHeightSM:Ve,gradientFromColor:Be}=ct;return{[`${Gt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Be,borderRadius:Ut},te(ze)),[`${Gt}-lg`]:Object.assign({},te(at)),[`${Gt}-sm`]:Object.assign({},te(Ve))}},se=ct=>Object.assign({width:ct},dt(ct)),ge=ct=>{const{skeletonImageCls:ze,imageSizeBase:Ut,gradientFromColor:Gt,borderRadiusSM:at}=ct;return{[`${ze}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Gt,borderRadius:at},se(Ut*2)),{[`${ze}-path`]:{fill:"#bfbfbf"},[`${ze}-svg`]:Object.assign(Object.assign({},se(Ut)),{maxWidth:Ut*4,maxHeight:Ut*4}),[`${ze}-svg${ze}-svg-circle`]:{borderRadius:"50%"}}),[`${ze}${ze}-circle`]:{borderRadius:"50%"}}},ve=(ct,ze,Ut)=>{const{skeletonButtonCls:Gt}=ct;return{[`${Ut}${Gt}-circle`]:{width:ze,minWidth:ze,borderRadius:"50%"},[`${Ut}${Gt}-round`]:{borderRadius:ze}}},Ce=ct=>Object.assign({width:ct*2,minWidth:ct*2},dt(ct)),ke=ct=>{const{borderRadiusSM:ze,skeletonButtonCls:Ut,controlHeight:Gt,controlHeightLG:at,controlHeightSM:Ve,gradientFromColor:Be}=ct;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Ut}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Be,borderRadius:ze,width:Gt*2,minWidth:Gt*2},Ce(Gt))},ve(ct,Gt,Ut)),{[`${Ut}-lg`]:Object.assign({},Ce(at))}),ve(ct,at,`${Ut}-lg`)),{[`${Ut}-sm`]:Object.assign({},Ce(Ve))}),ve(ct,Ve,`${Ut}-sm`))},Pe=ct=>{const{componentCls:ze,skeletonAvatarCls:Ut,skeletonTitleCls:Gt,skeletonParagraphCls:at,skeletonButtonCls:Ve,skeletonInputCls:Be,skeletonImageCls:we,controlHeight:me,controlHeightLG:De,controlHeightSM:Re,gradientFromColor:Le,padding:st,marginSM:Vt,borderRadius:sn,titleHeight:ln,blockRadius:Hn,paragraphLiHeight:wi,controlHeightXS:Pi,paragraphMarginTop:Ri}=ct;return{[`${ze}`]:{display:"table",width:"100%",[`${ze}-header`]:{display:"table-cell",paddingInlineEnd:st,verticalAlign:"top",[`${Ut}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Le},Ct(me)),[`${Ut}-circle`]:{borderRadius:"50%"},[`${Ut}-lg`]:Object.assign({},Ct(De)),[`${Ut}-sm`]:Object.assign({},Ct(Re))},[`${ze}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Gt}`]:{width:"100%",height:ln,background:Le,borderRadius:Hn,[`+ ${at}`]:{marginBlockStart:Re}},[`${at}`]:{padding:0,"> li":{width:"100%",height:wi,listStyle:"none",background:Le,borderRadius:Hn,"+ li":{marginBlockStart:Pi}}},[`${at}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${ze}-content`]:{[`${Gt}, ${at} > li`]:{borderRadius:sn}}},[`${ze}-with-avatar ${ze}-content`]:{[`${Gt}`]:{marginBlockStart:Vt,[`+ ${at}`]:{marginBlockStart:Ri}}},[`${ze}${ze}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},ke(ct)),ne(ct)),ce(ct)),ge(ct)),[`${ze}${ze}-block`]:{width:"100%",[`${Ve}`]:{width:"100%"},[`${Be}`]:{width:"100%"}},[`${ze}${ze}-active`]:{[`
${Gt},
${at} > li,
${Ut},
${Ve},
${Be},
${we}
`]:Object.assign({},Me(ct))}}};var Te=(0,Ft.Z)("Skeleton",ct=>{const{componentCls:ze}=ct,Ut=(0,qe.TS)(ct,{skeletonAvatarCls:`${ze}-avatar`,skeletonTitleCls:`${ze}-title`,skeletonParagraphCls:`${ze}-paragraph`,skeletonButtonCls:`${ze}-button`,skeletonInputCls:`${ze}-input`,skeletonImageCls:`${ze}-image`,imageSizeBase:ct.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${ct.gradientFromColor} 25%, ${ct.gradientToColor} 37%, ${ct.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Pe(Ut)]},ct=>{const{colorFillContent:ze,colorFill:Ut}=ct,Gt=ze,at=Ut;return{color:Gt,colorGradientEnd:at,gradientFromColor:Gt,gradientToColor:at,titleHeight:ct.controlHeight/2,blockRadius:ct.borderRadiusSM,paragraphMarginTop:ct.marginLG+ct.marginXXS,paragraphLiHeight:ct.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),et=ct=>{const{prefixCls:ze,className:Ut,rootClassName:Gt,active:at,shape:Ve="circle",size:Be="default"}=ct,{getPrefixCls:we}=We.useContext(It.E_),me=we("skeleton",ze),[De,Re]=Te(me),Le=(0,Qe.Z)(ct,["prefixCls","className"]),st=Ie()(me,`${me}-element`,{[`${me}-active`]:at},Ut,Gt,Re);return De(We.createElement("div",{className:st},We.createElement(Ne,Object.assign({prefixCls:`${me}-avatar`,shape:Ve,size:Be},Le))))},ft=ct=>{const{prefixCls:ze,className:Ut,rootClassName:Gt,active:at,block:Ve=!1,size:Be="default"}=ct,{getPrefixCls:we}=We.useContext(It.E_),me=we("skeleton",ze),[De,Re]=Te(me),Le=(0,Qe.Z)(ct,["prefixCls"]),st=Ie()(me,`${me}-element`,{[`${me}-active`]:at,[`${me}-block`]:Ve},Ut,Gt,Re);return De(We.createElement("div",{className:st},We.createElement(Ne,Object.assign({prefixCls:`${me}-button`,size:Be},Le))))};const Ge="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var $e=ct=>{const{prefixCls:ze,className:Ut,rootClassName:Gt,style:at,active:Ve}=ct,{getPrefixCls:Be}=We.useContext(It.E_),we=Be("skeleton",ze),[me,De]=Te(we),Re=Ie()(we,`${we}-element`,{[`${we}-active`]:Ve},Ut,Gt,De);return me(We.createElement("div",{className:Re},We.createElement("div",{className:Ie()(`${we}-image`,Ut),style:at},We.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${we}-image-svg`},We.createElement("path",{d:Ge,className:`${we}-image-path`})))))},Ht=ct=>{const{prefixCls:ze,className:Ut,rootClassName:Gt,active:at,block:Ve,size:Be="default"}=ct,{getPrefixCls:we}=We.useContext(It.E_),me=we("skeleton",ze),[De,Re]=Te(me),Le=(0,Qe.Z)(ct,["prefixCls"]),st=Ie()(me,`${me}-element`,{[`${me}-active`]:at,[`${me}-block`]:Ve},Ut,Gt,Re);return De(We.createElement("div",{className:st},We.createElement(Ne,Object.assign({prefixCls:`${me}-input`,size:Be},Le))))},Yt=ye(5891),Bt={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"},Qt=Bt,ht=ye(88853),je=function(ze,Ut){return We.createElement(ht.Z,(0,Yt.Z)({},ze,{ref:Ut,icon:Qt}))},At=We.forwardRef(je),wn=At,bt=ct=>{const{prefixCls:ze,className:Ut,rootClassName:Gt,style:at,active:Ve,children:Be}=ct,{getPrefixCls:we}=We.useContext(It.E_),me=we("skeleton",ze),[De,Re]=Te(me),Le=Ie()(me,`${me}-element`,{[`${me}-active`]:Ve},Re,Ut,Gt),st=Be!=null?Be:We.createElement(wn,null);return De(We.createElement("div",{className:Le},We.createElement("div",{className:Ie()(`${me}-image`,Ut),style:at},st)))},Jt=ye(26390),Kn=ct=>{const ze=we=>{const{width:me,rows:De=2}=ct;if(Array.isArray(me))return me[we];if(De-1===we)return me},{prefixCls:Ut,className:Gt,style:at,rows:Ve}=ct,Be=(0,Jt.Z)(Array(Ve)).map((we,me)=>We.createElement("li",{key:me,style:{width:ze(me)}}));return We.createElement("ul",{className:Ie()(Ut,Gt),style:at},Be)},Yn=ct=>{let{prefixCls:ze,className:Ut,width:Gt,style:at}=ct;return We.createElement("h3",{className:Ie()(ze,Ut),style:Object.assign({width:Gt},at)})};function St(ct){return ct&&typeof ct=="object"?ct:{}}function Vn(ct,ze){return ct&&!ze?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Cn(ct,ze){return!ct&&ze?{width:"38%"}:ct&&ze?{width:"50%"}:{}}function Si(ct,ze){const Ut={};return(!ct||!ze)&&(Ut.width="61%"),!ct&&ze?Ut.rows=3:Ut.rows=2,Ut}const Bn=ct=>{const{prefixCls:ze,loading:Ut,className:Gt,rootClassName:at,style:Ve,children:Be,avatar:we=!1,title:me=!0,paragraph:De=!0,active:Re,round:Le}=ct,{getPrefixCls:st,direction:Vt,skeleton:sn}=We.useContext(It.E_),ln=st("skeleton",ze),[Hn,wi]=Te(ln);if(Ut||!("loading"in ct)){const Pi=!!we,Ri=!!me,Zi=!!De;let Ln;if(Pi){const Vr=Object.assign(Object.assign({prefixCls:`${ln}-avatar`},Vn(Ri,Zi)),St(we));Ln=We.createElement("div",{className:`${ln}-header`},We.createElement(Ne,Object.assign({},Vr)))}let rr;if(Ri||Zi){let Vr;if(Ri){const li=Object.assign(Object.assign({prefixCls:`${ln}-title`},Cn(Pi,Zi)),St(me));Vr=We.createElement(Yn,Object.assign({},li))}let jr;if(Zi){const li=Object.assign(Object.assign({prefixCls:`${ln}-paragraph`},Si(Pi,Ri)),St(De));jr=We.createElement(Kn,Object.assign({},li))}rr=We.createElement("div",{className:`${ln}-content`},Vr,jr)}const Kr=Ie()(ln,{[`${ln}-with-avatar`]:Pi,[`${ln}-active`]:Re,[`${ln}-rtl`]:Vt==="rtl",[`${ln}-round`]:Le},sn==null?void 0:sn.className,Gt,at,wi);return Hn(We.createElement("div",{className:Kr,style:Object.assign(Object.assign({},sn==null?void 0:sn.style),Ve)},Ln,rr))}return typeof Be!="undefined"?Be:null};Bn.Button=ft,Bn.Avatar=et,Bn.Input=Ht,Bn.Image=$e,Bn.Node=bt;var tn=Bn,$t=tn},81327:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return ce}});var xe=ye(59301),Ie=ye(92310),We=ye.n(Ie),It=ye(38298),Qe=ye(36355),vt=ye(33234);const Ne=xe.createContext({latestIndex:0}),Tt=Ne.Provider;var qe=se=>{let{className:ge,index:ve,children:Ce,split:ke,style:Pe}=se;const{latestIndex:Te}=xe.useContext(Ne);return Ce==null?null:xe.createElement(xe.Fragment,null,xe.createElement("div",{className:ge,style:Pe},Ce),ve<Te&&ke&&xe.createElement("span",{className:`${ge}-split`},ke))},gt=ye(2856);function dt(se){return["small","middle","large"].includes(se)}function Ct(se){return se?typeof se=="number"&&!Number.isNaN(se):!1}var Me=function(se,ge){var ve={};for(var Ce in se)Object.prototype.hasOwnProperty.call(se,Ce)&&ge.indexOf(Ce)<0&&(ve[Ce]=se[Ce]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Ce=Object.getOwnPropertySymbols(se);ke<Ce.length;ke++)ge.indexOf(Ce[ke])<0&&Object.prototype.propertyIsEnumerable.call(se,Ce[ke])&&(ve[Ce[ke]]=se[Ce[ke]]);return ve};const ne=xe.forwardRef((se,ge)=>{var ve,Ce;const{getPrefixCls:ke,space:Pe,direction:Te}=xe.useContext(Qe.E_),{size:Ke=(Pe==null?void 0:Pe.size)||"small",align:et,className:Xe,rootClassName:ft,children:Ge,direction:kt="horizontal",prefixCls:$e,split:zt,style:Ht,wrap:Yt=!1,classNames:Bt,styles:Qt}=se,ht=Me(se,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[je,At]=Array.isArray(Ke)?Ke:[Ke,Ke],wn=dt(At),rn=dt(je),bt=Ct(At),Jt=Ct(je),un=(0,It.Z)(Ge,{keepEmpty:!0}),Kn=et===void 0&&kt==="horizontal"?"center":et,En=ke("space",$e),[Yn,St]=(0,gt.Z)(En),Vn=We()(En,Pe==null?void 0:Pe.className,St,`${En}-${kt}`,{[`${En}-rtl`]:Te==="rtl",[`${En}-align-${Kn}`]:Kn,[`${En}-gap-row-${At}`]:wn,[`${En}-gap-col-${je}`]:rn},Xe,ft),Cn=We()(`${En}-item`,(ve=Bt==null?void 0:Bt.item)!==null&&ve!==void 0?ve:(Ce=Pe==null?void 0:Pe.classNames)===null||Ce===void 0?void 0:Ce.item);let Si=0;const Bn=un.map((ct,ze)=>{var Ut,Gt;ct!=null&&(Si=ze);const at=ct&&ct.key||`${Cn}-${ze}`;return xe.createElement(qe,{className:Cn,key:at,index:ze,split:zt,style:(Ut=Qt==null?void 0:Qt.item)!==null&&Ut!==void 0?Ut:(Gt=Pe==null?void 0:Pe.styles)===null||Gt===void 0?void 0:Gt.item},ct)}),tn=xe.useMemo(()=>({latestIndex:Si}),[Si]);if(un.length===0)return null;const $t={};return Yt&&($t.flexWrap="wrap"),!rn&&Jt&&($t.columnGap=je),!wn&&bt&&($t.rowGap=At),Yn(xe.createElement("div",Object.assign({ref:ge,className:Vn,style:Object.assign(Object.assign(Object.assign({},$t),Pe==null?void 0:Pe.style),Ht)},ht),xe.createElement(Tt,{value:tn},Bn)))});ne.Compact=vt.ZP;var ce=ne},31797:function(In,Fn,ye){"use strict";ye.d(Fn,{default:function(){return Te}});var xe=ye(59301),Ie=ye(56762),We=ye(92343),It=ye(92310),Qe=ye.n(It),vt=ye(36355),Ne=ye(78485),Ft=Ke=>{const{value:et,formatter:Xe,precision:ft,decimalSeparator:Ge,groupSeparator:kt="",prefixCls:$e}=Ke;let zt;if(typeof Xe=="function")zt=Xe(et);else{const Ht=String(et),Yt=Ht.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Yt||Ht==="-")zt=Ht;else{const Bt=Yt[1];let Qt=Yt[2]||"0",ht=Yt[4]||"";Qt=Qt.replace(/\B(?=(\d{3})+(?!\d))/g,kt),typeof ft=="number"&&(ht=ht.padEnd(ft,"0").slice(0,ft>0?ft:0)),ht&&(ht=`${Ge}${ht}`),zt=[xe.createElement("span",{key:"int",className:`${$e}-content-value-int`},Bt,Qt),ht&&xe.createElement("span",{key:"decimal",className:`${$e}-content-value-decimal`},ht)]}}return xe.createElement("span",{className:`${$e}-content-value`},zt)},qe=ye(17313),gt=ye(83116),dt=ye(37613);const Ct=Ke=>{const{componentCls:et,marginXXS:Xe,padding:ft,colorTextDescription:Ge,titleFontSize:kt,colorTextHeading:$e,contentFontSize:zt,fontFamily:Ht}=Ke;return{[`${et}`]:Object.assign(Object.assign({},(0,qe.Wf)(Ke)),{[`${et}-title`]:{marginBottom:Xe,color:Ge,fontSize:kt},[`${et}-skeleton`]:{paddingTop:ft},[`${et}-content`]:{color:$e,fontSize:zt,fontFamily:Ht,[`${et}-content-value`]:{display:"inline-block",direction:"ltr"},[`${et}-content-prefix, ${et}-content-suffix`]:{display:"inline-block"},[`${et}-content-prefix`]:{marginInlineEnd:Xe},[`${et}-content-suffix`]:{marginInlineStart:Xe}}})}};var Me=(0,gt.Z)("Statistic",Ke=>{const et=(0,dt.TS)(Ke,{});return[Ct(et)]},Ke=>{const{fontSizeHeading3:et,fontSize:Xe}=Ke;return{titleFontSize:Xe,contentFontSize:et}}),ne=Ke=>{const{prefixCls:et,className:Xe,rootClassName:ft,style:Ge,valueStyle:kt,value:$e=0,title:zt,valueRender:Ht,prefix:Yt,suffix:Bt,loading:Qt=!1,onMouseEnter:ht,onMouseLeave:je,decimalSeparator:At=".",groupSeparator:wn=","}=Ke,{getPrefixCls:rn,direction:bt,statistic:Jt}=xe.useContext(vt.E_),un=rn("statistic",et),[Kn,En]=Me(un),Yn=xe.createElement(Ft,Object.assign({decimalSeparator:At,groupSeparator:wn,prefixCls:un},Ke,{value:$e})),St=Qe()(un,{[`${un}-rtl`]:bt==="rtl"},Jt==null?void 0:Jt.className,Xe,ft,En);return Kn(xe.createElement("div",{className:St,style:Object.assign(Object.assign({},Jt==null?void 0:Jt.style),Ge),onMouseEnter:ht,onMouseLeave:je},zt&&xe.createElement("div",{className:`${un}-title`},zt),xe.createElement(Ne.Z,{paragraph:!1,loading:Qt,className:`${un}-skeleton`},xe.createElement("div",{style:kt,className:`${un}-content`},Yt&&xe.createElement("span",{className:`${un}-content-prefix`},Yt),Ht?Ht(Yn):Yn,Bt&&xe.createElement("span",{className:`${un}-content-suffix`},Bt)))))};const ce=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function se(Ke,et){let Xe=Ke;const ft=/\[[^\]]*]/g,Ge=(et.match(ft)||[]).map(Ht=>Ht.slice(1,-1)),kt=et.replace(ft,"[]"),$e=ce.reduce((Ht,Yt)=>{let[Bt,Qt]=Yt;if(Ht.includes(Bt)){const ht=Math.floor(Xe/Qt);return Xe-=ht*Qt,Ht.replace(new RegExp(`${Bt}+`,"g"),je=>{const At=je.length;return ht.toString().padStart(At,"0")})}return Ht},kt);let zt=0;return $e.replace(ft,()=>{const Ht=Ge[zt];return zt+=1,Ht})}function ge(Ke,et){const{format:Xe=""}=et,ft=new Date(Ke).getTime(),Ge=Date.now(),kt=Math.max(ft-Ge,0);return se(kt,Xe)}const ve=1e3/30;function Ce(Ke){return new Date(Ke).getTime()}const ke=Ke=>{const{value:et,format:Xe="HH:mm:ss",onChange:ft,onFinish:Ge}=Ke,kt=(0,Ie.Z)(),$e=xe.useRef(null),zt=()=>{Ge==null||Ge(),$e.current&&(clearInterval($e.current),$e.current=null)},Ht=()=>{const Qt=Ce(et);Qt>=Date.now()&&($e.current=setInterval(()=>{kt(),ft==null||ft(Qt-Date.now()),Qt<Date.now()&&zt()},ve))};xe.useEffect(()=>(Ht(),()=>{$e.current&&(clearInterval($e.current),$e.current=null)}),[et]);const Yt=(Qt,ht)=>ge(Qt,Object.assign(Object.assign({},ht),{format:Xe})),Bt=Qt=>(0,We.Tm)(Qt,{title:void 0});return xe.createElement(ne,Object.assign({},Ke,{valueRender:Bt,formatter:Yt}))};var Pe=xe.memo(ke);ne.Countdown=Pe;var Te=ne},15969:function(In,Fn,ye){"use strict";ye.d(Fn,{N:function(){return xe}});const xe=Ie=>({color:Ie.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${Ie.motionDurationSlow}`,"&:focus, &:hover":{color:Ie.colorLinkHover},"&:active":{color:Ie.colorLinkActive}})},78673:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return kt}});var xe=ye(50023),Ie=ye(92310),We=ye.n(Ie),It=ye(5891),Qe=ye(80962),vt=ye(29043),Ne=ye(19149),Tt=ye(59301),Ft=ye(35788),qe=ye(85108),gt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],dt=Tt.forwardRef(function($e,zt){var Ht,Yt=$e.prefixCls,Bt=Yt===void 0?"rc-switch":Yt,Qt=$e.className,ht=$e.checked,je=$e.defaultChecked,At=$e.disabled,wn=$e.loadingIcon,rn=$e.checkedChildren,bt=$e.unCheckedChildren,Jt=$e.onClick,un=$e.onChange,Kn=$e.onKeyDown,En=(0,Ne.Z)($e,gt),Yn=(0,Ft.Z)(!1,{value:ht,defaultValue:je}),St=(0,vt.Z)(Yn,2),Vn=St[0],Cn=St[1];function Si(ct,ze){var Ut=Vn;return At||(Ut=ct,Cn(Ut),un==null||un(Ut,ze)),Ut}function Bn(ct){ct.which===qe.Z.LEFT?Si(!1,ct):ct.which===qe.Z.RIGHT&&Si(!0,ct),Kn==null||Kn(ct)}function tn(ct){var ze=Si(!Vn,ct);Jt==null||Jt(ze,ct)}var $t=We()(Bt,Qt,(Ht={},(0,Qe.Z)(Ht,"".concat(Bt,"-checked"),Vn),(0,Qe.Z)(Ht,"".concat(Bt,"-disabled"),At),Ht));return Tt.createElement("button",(0,It.Z)({},En,{type:"button",role:"switch","aria-checked":Vn,disabled:At,className:$t,ref:zt,onKeyDown:Bn,onClick:tn}),wn,Tt.createElement("span",{className:"".concat(Bt,"-inner")},Tt.createElement("span",{className:"".concat(Bt,"-inner-checked")},rn),Tt.createElement("span",{className:"".concat(Bt,"-inner-unchecked")},bt)))});dt.displayName="Switch";var Ct=dt,Me=ye(14088),te=ye(36355),ne=ye(1684),ce=ye(19716),se=ye(64993),ge=ye(17313),ve=ye(83116),Ce=ye(37613);const ke=$e=>{const{componentCls:zt,trackHeightSM:Ht,trackPadding:Yt,trackMinWidthSM:Bt,innerMinMarginSM:Qt,innerMaxMarginSM:ht,handleSizeSM:je}=$e,At=`${zt}-inner`;return{[zt]:{[`&${zt}-small`]:{minWidth:Bt,height:Ht,lineHeight:`${Ht}px`,[`${zt}-inner`]:{paddingInlineStart:ht,paddingInlineEnd:Qt,[`${At}-checked`]:{marginInlineStart:`calc(-100% + ${je+Yt*2}px - ${ht*2}px)`,marginInlineEnd:`calc(100% - ${je+Yt*2}px + ${ht*2}px)`},[`${At}-unchecked`]:{marginTop:-Ht,marginInlineStart:0,marginInlineEnd:0}},[`${zt}-handle`]:{width:je,height:je},[`${zt}-loading-icon`]:{top:(je-$e.switchLoadingIconSize)/2,fontSize:$e.switchLoadingIconSize},[`&${zt}-checked`]:{[`${zt}-inner`]:{paddingInlineStart:Qt,paddingInlineEnd:ht,[`${At}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${At}-unchecked`]:{marginInlineStart:`calc(100% - ${je+Yt*2}px + ${ht*2}px)`,marginInlineEnd:`calc(-100% + ${je+Yt*2}px - ${ht*2}px)`}},[`${zt}-handle`]:{insetInlineStart:`calc(100% - ${je+Yt}px)`}},[`&:not(${zt}-disabled):active`]:{[`&:not(${zt}-checked) ${At}`]:{[`${At}-unchecked`]:{marginInlineStart:$e.marginXXS/2,marginInlineEnd:-$e.marginXXS/2}},[`&${zt}-checked ${At}`]:{[`${At}-checked`]:{marginInlineStart:-$e.marginXXS/2,marginInlineEnd:$e.marginXXS/2}}}}}}},Pe=$e=>{const{componentCls:zt,handleSize:Ht}=$e;return{[zt]:{[`${zt}-loading-icon${$e.iconCls}`]:{position:"relative",top:(Ht-$e.fontSize)/2,color:$e.switchLoadingIconColor,verticalAlign:"top"},[`&${zt}-checked ${zt}-loading-icon`]:{color:$e.switchColor}}}},Te=$e=>{const{componentCls:zt,motion:Ht,trackPadding:Yt,handleBg:Bt,handleShadow:Qt,handleSize:ht}=$e,je=`${zt}-handle`;return{[zt]:{[je]:{position:"absolute",top:Yt,insetInlineStart:Yt,width:ht,height:ht,transition:`all ${$e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Bt,borderRadius:ht/2,boxShadow:Qt,transition:`all ${$e.switchDuration} ease-in-out`,content:'""'}},[`&${zt}-checked ${je}`]:{insetInlineStart:`calc(100% - ${ht+Yt}px)`},[`&:not(${zt}-disabled):active`]:Ht?{[`${je}::before`]:{insetInlineEnd:$e.switchHandleActiveInset,insetInlineStart:0},[`&${zt}-checked ${je}::before`]:{insetInlineEnd:0,insetInlineStart:$e.switchHandleActiveInset}}:{}}}},Ke=$e=>{const{componentCls:zt,trackHeight:Ht,trackPadding:Yt,innerMinMargin:Bt,innerMaxMargin:Qt,handleSize:ht}=$e,je=`${zt}-inner`;return{[zt]:{[je]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Qt,paddingInlineEnd:Bt,transition:`padding-inline-start ${$e.switchDuration} ease-in-out, padding-inline-end ${$e.switchDuration} ease-in-out`,[`${je}-checked, ${je}-unchecked`]:{display:"block",color:$e.colorTextLightSolid,fontSize:$e.fontSizeSM,transition:`margin-inline-start ${$e.switchDuration} ease-in-out, margin-inline-end ${$e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${je}-checked`]:{marginInlineStart:`calc(-100% + ${ht+Yt*2}px - ${Qt*2}px)`,marginInlineEnd:`calc(100% - ${ht+Yt*2}px + ${Qt*2}px)`},[`${je}-unchecked`]:{marginTop:-Ht,marginInlineStart:0,marginInlineEnd:0}},[`&${zt}-checked ${je}`]:{paddingInlineStart:Bt,paddingInlineEnd:Qt,[`${je}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${je}-unchecked`]:{marginInlineStart:`calc(100% - ${ht+Yt*2}px + ${Qt*2}px)`,marginInlineEnd:`calc(-100% + ${ht+Yt*2}px - ${Qt*2}px)`}},[`&:not(${zt}-disabled):active`]:{[`&:not(${zt}-checked) ${je}`]:{[`${je}-unchecked`]:{marginInlineStart:Yt*2,marginInlineEnd:-Yt*2}},[`&${zt}-checked ${je}`]:{[`${je}-checked`]:{marginInlineStart:-Yt*2,marginInlineEnd:Yt*2}}}}}},et=$e=>{const{componentCls:zt,trackHeight:Ht,trackMinWidth:Yt}=$e;return{[zt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ge.Wf)($e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Yt,height:Ht,lineHeight:`${Ht}px`,verticalAlign:"middle",background:$e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${$e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${zt}-disabled)`]:{background:$e.colorTextTertiary}}),(0,ge.Qy)($e)),{[`&${zt}-checked`]:{background:$e.switchColor,[`&:hover:not(${zt}-disabled)`]:{background:$e.colorPrimaryHover}},[`&${zt}-loading, &${zt}-disabled`]:{cursor:"not-allowed",opacity:$e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${zt}-rtl`]:{direction:"rtl"}})}};var Xe=(0,ve.Z)("Switch",$e=>{const zt=(0,Ce.TS)($e,{switchDuration:$e.motionDurationMid,switchColor:$e.colorPrimary,switchDisabledOpacity:$e.opacityLoading,switchLoadingIconSize:$e.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${$e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[et(zt),Ke(zt),Te(zt),Pe(zt),ke(zt)]},$e=>{const{fontSize:zt,lineHeight:Ht,controlHeight:Yt,colorWhite:Bt}=$e,Qt=zt*Ht,ht=Yt/2,je=2,At=Qt-je*2,wn=ht-je*2;return{trackHeight:Qt,trackHeightSM:ht,trackMinWidth:At*2+je*4,trackMinWidthSM:wn*2+je*2,trackPadding:je,handleBg:Bt,handleSize:At,handleSizeSM:wn,handleShadow:`0 2px 4px 0 ${new se.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:At/2,innerMaxMargin:At+je+je*2,innerMinMarginSM:wn/2,innerMaxMarginSM:wn+je+je*2}}),ft=function($e,zt){var Ht={};for(var Yt in $e)Object.prototype.hasOwnProperty.call($e,Yt)&&zt.indexOf(Yt)<0&&(Ht[Yt]=$e[Yt]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,Yt=Object.getOwnPropertySymbols($e);Bt<Yt.length;Bt++)zt.indexOf(Yt[Bt])<0&&Object.prototype.propertyIsEnumerable.call($e,Yt[Bt])&&(Ht[Yt[Bt]]=$e[Yt[Bt]]);return Ht};const Ge=Tt.forwardRef(($e,zt)=>{const{prefixCls:Ht,size:Yt,disabled:Bt,loading:Qt,className:ht,rootClassName:je,style:At}=$e,wn=ft($e,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:rn,direction:bt,switch:Jt}=Tt.useContext(te.E_),un=Tt.useContext(ne.Z),Kn=(Bt!=null?Bt:un)||Qt,En=rn("switch",Ht),Yn=Tt.createElement("div",{className:`${En}-handle`},Qt&&Tt.createElement(xe.Z,{className:`${En}-loading-icon`})),[St,Vn]=Xe(En),Cn=(0,ce.Z)(Yt),Si=We()(Jt==null?void 0:Jt.className,{[`${En}-small`]:Cn==="small",[`${En}-loading`]:Qt,[`${En}-rtl`]:bt==="rtl"},ht,je,Vn),Bn=Object.assign(Object.assign({},Jt==null?void 0:Jt.style),At);return St(Tt.createElement(Me.Z,{component:"Switch"},Tt.createElement(Ct,Object.assign({},wn,{prefixCls:En,className:Si,style:Bn,disabled:Kn,ref:zt,loadingIcon:Yn}))))});Ge.__ANT_SWITCH=!0;var kt=Ge},2595:function(In,Fn,ye){"use strict";ye.d(Fn,{default:function(){return hl}});var xe={},Ie="rc-table-internal-hook",We=ye(29043),It=ye(8107),Qe=ye(28800),vt=ye(51346),Ne=ye(59301),Tt=ye(4676);function Ft(nt){var ut=Ne.createContext(void 0),_t=function(bn){var gn=bn.value,Jn=bn.children,Un=Ne.useRef(gn);Un.current=gn;var Zn=Ne.useState(function(){return{getValue:function(){return Un.current},listeners:new Set}}),xi=(0,We.Z)(Zn,1),ni=xi[0];return(0,Qe.Z)(function(){(0,Tt.unstable_batchedUpdates)(function(){ni.listeners.forEach(function(mi){mi(gn)})})},[gn]),Ne.createElement(ut.Provider,{value:ni},Jn)};return{Context:ut,Provider:_t,defaultValue:nt}}function qe(nt,ut){var _t=(0,It.Z)(typeof ut=="function"?ut:function(mi){if(ut===void 0)return mi;if(!Array.isArray(ut))return mi[ut];var _i={};return ut.forEach(function(Ji){_i[Ji]=mi[Ji]}),_i}),qt=Ne.useContext(nt==null?void 0:nt.Context),bn=qt||{},gn=bn.listeners,Jn=bn.getValue,Un=Ne.useRef();Un.current=_t(qt?Jn():nt==null?void 0:nt.defaultValue);var Zn=Ne.useState({}),xi=(0,We.Z)(Zn,2),ni=xi[1];return(0,Qe.Z)(function(){if(!qt)return;function mi(_i){var Ji=_t(_i);(0,vt.Z)(Un.current,Ji,!0)||ni({})}return gn.add(mi),function(){gn.delete(mi)}},[qt]),Un.current}var gt=ye(5891),dt=ye(20475);function Ct(){var nt=Ne.createContext(null);function ut(){return Ne.useContext(nt)}function _t(bn,gn){var Jn=(0,dt.Yr)(bn),Un=function(xi,ni){var mi=Jn?{ref:ni}:{},_i=Ne.useRef(0),Ji=Ne.useRef(xi),ji=ut();return ji!==null?Ne.createElement(bn,(0,gt.Z)({},xi,mi)):((!gn||gn(Ji.current,xi))&&(_i.current+=1),Ji.current=xi,Ne.createElement(nt.Provider,{value:_i.current},Ne.createElement(bn,(0,gt.Z)({},xi,mi))))};return Jn?Ne.forwardRef(Un):Un}function qt(bn,gn){var Jn=(0,dt.Yr)(bn),Un=function(xi,ni){var mi=Jn?{ref:ni}:{};return ut(),Ne.createElement(bn,(0,gt.Z)({},xi,mi))};return Jn?Ne.memo(Ne.forwardRef(Un),gn):Ne.memo(Un,gn)}return{makeImmutable:_t,responseImmutable:qt,useImmutableMark:ut}}var Me=Ct(),te=Me.makeImmutable,ne=Me.responseImmutable,ce=Me.useImmutableMark,se=Ct(),ge=se.makeImmutable,ve=se.responseImmutable,Ce=se.useImmutableMark,ke=Ft(),Pe=ke;function Te(nt,ut){var _t=Ne.useRef(0);_t.current+=1;var qt=Ne.useRef(nt),bn=[];Object.keys(nt||{}).map(function(Jn){var Un;(nt==null?void 0:nt[Jn])!==((Un=qt.current)===null||Un===void 0?void 0:Un[Jn])&&bn.push(Jn)}),qt.current=nt;var gn=Ne.useRef([]);return bn.length&&(gn.current=bn),Ne.useDebugValue(_t.current),Ne.useDebugValue(gn.current.join(", ")),ut&&console.log("".concat(ut,":"),_t.current,gn.current),_t.current}var Ke=null,et=Ne.memo(function(){var nt=Te();return Ne.createElement("h1",null,"Render Times: ",nt)});et.displayName="RenderBlock";var Xe=ye(80665),ft=ye(57259),Ge=ye(80962),kt=ye(92310),$e=ye.n(kt),zt=ye(79722),Ht=ye(69004),Yt=ye(51395),Bt=Ne.createContext({renderWithProps:!1}),Qt=Bt,ht="RC_TABLE_KEY";function je(nt){return nt==null?[]:Array.isArray(nt)?nt:[nt]}function At(nt){var ut=[],_t={};return nt.forEach(function(qt){for(var bn=qt||{},gn=bn.key,Jn=bn.dataIndex,Un=gn||je(Jn).join("-")||ht;_t[Un];)Un="".concat(Un,"_next");_t[Un]=!0,ut.push(Un)}),ut}function wn(nt){return nt!=null}function rn(nt){return nt&&(0,Xe.Z)(nt)==="object"&&!Array.isArray(nt)&&!Ne.isValidElement(nt)}function bt(nt,ut,_t,qt,bn,gn){var Jn=Ne.useContext(Qt),Un=Ce(),Zn=(0,zt.Z)(function(){if(wn(qt))return[qt];var xi=ut==null||ut===""?[]:Array.isArray(ut)?ut:[ut],ni=(0,Ht.Z)(nt,xi),mi=ni,_i=void 0;if(bn){var Ji=bn(ni,nt,_t);rn(Ji)?(mi=Ji.children,_i=Ji.props,Jn.renderWithProps=!0):mi=Ji}return[mi,_i]},[Un,nt,qt,ut,bn,_t],function(xi,ni){if(gn){var mi=(0,We.Z)(xi,2),_i=mi[1],Ji=(0,We.Z)(ni,2),ji=Ji[1];return gn(ji,_i)}return Jn.renderWithProps?!0:!(0,vt.Z)(xi,ni,!0)});return Zn}function Jt(nt,ut,_t,qt){var bn=nt+ut-1;return nt<=qt&&bn>=_t}function un(nt,ut){return qe(Pe,function(_t){var qt=Jt(nt,ut||1,_t.hoverStartRow,_t.hoverEndRow);return[qt,_t.onHover]})}var Kn=function(ut){var _t=ut.ellipsis,qt=ut.rowType,bn=ut.children,gn,Jn=_t===!0?{showTitle:!0}:_t;return Jn&&(Jn.showTitle||qt==="header")&&(typeof bn=="string"||typeof bn=="number"?gn=bn.toString():Ne.isValidElement(bn)&&typeof bn.props.children=="string"&&(gn=bn.props.children)),gn};function En(nt){var ut,_t,qt,bn,gn,Jn,Un,Zn,xi=nt.component,ni=nt.children,mi=nt.ellipsis,_i=nt.scope,Ji=nt.prefixCls,ji=nt.className,wr=nt.align,Vi=nt.record,kr=nt.render,Er=nt.dataIndex,Or=nt.renderIndex,So=nt.shouldCellUpdate,Lo=nt.index,Wr=nt.rowType,to=nt.colSpan,Ko=nt.rowSpan,Rr=nt.fixLeft,lo=nt.fixRight,Zr=nt.firstFixLeft,mr=nt.lastFixLeft,Nr=nt.firstFixRight,uo=nt.lastFixRight,Mo=nt.appendNode,Fo=nt.additionalProps,Fr=Fo===void 0?{}:Fo,Vo=nt.isSticky,_o="".concat(Ji,"-cell"),na=qe(Pe,["supportSticky","allColumnsFixedLeft"]),ta=na.supportSticky,Qa=na.allColumnsFixedLeft,fa=bt(Vi,Er,Or,ni,kr,So),Wo=(0,We.Z)(fa,2),Po=Wo[0],To=Wo[1],Ya={},Ia=typeof Rr=="number"&&ta,ns=typeof lo=="number"&&ta;Ia&&(Ya.position="sticky",Ya.left=Rr),ns&&(Ya.position="sticky",Ya.right=lo);var Ro=(ut=(_t=(qt=To==null?void 0:To.colSpan)!==null&&qt!==void 0?qt:Fr.colSpan)!==null&&_t!==void 0?_t:to)!==null&&ut!==void 0?ut:1,bo=(bn=(gn=(Jn=To==null?void 0:To.rowSpan)!==null&&Jn!==void 0?Jn:Fr.rowSpan)!==null&&gn!==void 0?gn:Ko)!==null&&bn!==void 0?bn:1,Zo=un(Lo,bo),wo=(0,We.Z)(Zo,2),so=wo[0],tr=wo[1],Gr=function(Do){var Vs;Vi&&tr(Lo,Lo+bo-1),Fr==null||(Vs=Fr.onMouseEnter)===null||Vs===void 0||Vs.call(Fr,Do)},Uo=function(Do){var Vs;Vi&&tr(-1,-1),Fr==null||(Vs=Fr.onMouseLeave)===null||Vs===void 0||Vs.call(Fr,Do)};if(Ro===0||bo===0)return null;var sa=(Un=Fr.title)!==null&&Un!==void 0?Un:Kn({rowType:Wr,ellipsis:mi,children:Po}),al=$e()(_o,ji,(Zn={},(0,Ge.Z)(Zn,"".concat(_o,"-fix-left"),Ia&&ta),(0,Ge.Z)(Zn,"".concat(_o,"-fix-left-first"),Zr&&ta),(0,Ge.Z)(Zn,"".concat(_o,"-fix-left-last"),mr&&ta),(0,Ge.Z)(Zn,"".concat(_o,"-fix-left-all"),mr&&Qa&&ta),(0,Ge.Z)(Zn,"".concat(_o,"-fix-right"),ns&&ta),(0,Ge.Z)(Zn,"".concat(_o,"-fix-right-first"),Nr&&ta),(0,Ge.Z)(Zn,"".concat(_o,"-fix-right-last"),uo&&ta),(0,Ge.Z)(Zn,"".concat(_o,"-ellipsis"),mi),(0,Ge.Z)(Zn,"".concat(_o,"-with-append"),Mo),(0,Ge.Z)(Zn,"".concat(_o,"-fix-sticky"),(Ia||ns)&&Vo&&ta),(0,Ge.Z)(Zn,"".concat(_o,"-row-hover"),!To&&so),Zn),Fr.className,To==null?void 0:To.className),zs={};wr&&(zs.textAlign=wr);var Al=(0,ft.Z)((0,ft.Z)((0,ft.Z)((0,ft.Z)({},Ya),Fr.style),zs),To==null?void 0:To.style),Na=Po;return(0,Xe.Z)(Na)==="object"&&!Array.isArray(Na)&&!Ne.isValidElement(Na)&&(Na=null),mi&&(mr||Nr)&&(Na=Ne.createElement("span",{className:"".concat(_o,"-content")},Na)),Ne.createElement(xi,(0,gt.Z)({},To,Fr,{className:al,style:Al,title:sa,scope:_i,onMouseEnter:Gr,onMouseLeave:Uo,colSpan:Ro!==1?Ro:null,rowSpan:bo!==1?bo:null}),Mo,Na)}var Yn=Ne.memo(En);function St(nt,ut,_t,qt,bn,gn){var Jn=_t[nt]||{},Un=_t[ut]||{},Zn,xi;Jn.fixed==="left"?Zn=qt.left[bn==="rtl"?ut:nt]:Un.fixed==="right"&&(xi=qt.right[bn==="rtl"?nt:ut]);var ni=!1,mi=!1,_i=!1,Ji=!1,ji=_t[ut+1],wr=_t[nt-1],Vi=!(gn!=null&&gn.children);if(bn==="rtl"){if(Zn!==void 0){var kr=wr&&wr.fixed==="left";Ji=!kr&&Vi}else if(xi!==void 0){var Er=ji&&ji.fixed==="right";_i=!Er&&Vi}}else if(Zn!==void 0){var Or=ji&&ji.fixed==="left";ni=!Or&&Vi}else if(xi!==void 0){var So=wr&&wr.fixed==="right";mi=!So&&Vi}return{fixLeft:Zn,fixRight:xi,lastFixLeft:ni,firstFixRight:mi,lastFixRight:_i,firstFixLeft:Ji,isSticky:qt.isSticky}}var Vn=Ne.createContext({}),Cn=Vn;function Si(nt){var ut=nt.className,_t=nt.index,qt=nt.children,bn=nt.colSpan,gn=bn===void 0?1:bn,Jn=nt.rowSpan,Un=nt.align,Zn=qe(Pe,["prefixCls","direction"]),xi=Zn.prefixCls,ni=Zn.direction,mi=Ne.useContext(Cn),_i=mi.scrollColumnIndex,Ji=mi.stickyOffsets,ji=mi.flattenColumns,wr=mi.columns,Vi=_t+gn-1,kr=Vi+1===_i?gn+1:gn,Er=St(_t,_t+kr-1,ji,Ji,ni,wr==null?void 0:wr[_t]);return Ne.createElement(Yn,(0,gt.Z)({className:ut,index:_t,component:"td",prefixCls:xi,record:null,dataIndex:null,align:Un,colSpan:kr,rowSpan:Jn,render:function(){return qt}},Er))}var Bn=ye(19149),tn=["children"];function $t(nt){var ut=nt.children,_t=(0,Bn.Z)(nt,tn);return Ne.createElement("tr",_t,ut)}function ct(nt){var ut=nt.children;return ut}ct.Row=$t,ct.Cell=Si;var ze=ct;function Ut(nt){var ut=nt.children,_t=nt.stickyOffsets,qt=nt.flattenColumns,bn=nt.columns,gn=qe(Pe,"prefixCls"),Jn=qt.length-1,Un=qt[Jn],Zn=Ne.useMemo(function(){return{stickyOffsets:_t,flattenColumns:qt,scrollColumnIndex:Un!=null&&Un.scrollbar?Jn:null,columns:bn}},[Un,qt,Jn,_t,bn]);return Ne.createElement(Cn.Provider,{value:Zn},Ne.createElement("tfoot",{className:"".concat(gn,"-summary")},ut))}var Gt=ve(Ut),at=ze,Ve=ye(80764),Be=ye(29301),we=ye(48886),me=ye(24387),De=ye(59055),Re=ye(36994);function Le(nt,ut,_t,qt,bn,gn,Jn){nt.push({record:ut,indent:_t,index:Jn});var Un=gn(ut),Zn=bn==null?void 0:bn.has(Un);if(ut&&Array.isArray(ut[qt])&&Zn)for(var xi=0;xi<ut[qt].length;xi+=1)Le(nt,ut[qt][xi],_t+1,qt,bn,gn,xi)}function st(nt,ut,_t,qt){var bn=Ne.useMemo(function(){if(_t!=null&&_t.size){for(var gn=[],Jn=0;Jn<(nt==null?void 0:nt.length);Jn+=1){var Un=nt[Jn];Le(gn,Un,0,ut,_t,qt,Jn)}return gn}return nt==null?void 0:nt.map(function(Zn,xi){return{record:Zn,indent:0,index:xi}})},[nt,ut,_t,qt]);return bn}function Vt(nt){var ut=nt.prefixCls,_t=nt.children,qt=nt.component,bn=nt.cellComponent,gn=nt.className,Jn=nt.expanded,Un=nt.colSpan,Zn=nt.isEmpty,xi=qe(Pe,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),ni=xi.scrollbarSize,mi=xi.fixHeader,_i=xi.fixColumn,Ji=xi.componentWidth,ji=xi.horizonScroll,wr=_t;return(Zn?ji&&Ji:_i)&&(wr=Ne.createElement("div",{style:{width:Ji-(mi?ni:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(ut,"-expanded-row-fixed")},wr)),Ne.createElement(qt,{className:gn,style:{display:Jn?null:"none"}},Ne.createElement(Yn,{component:bn,prefixCls:ut,colSpan:Un},wr))}var sn=Vt;function ln(nt,ut,_t,qt){var bn=qe(Pe,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),gn=bn.flattenColumns,Jn=bn.expandableType,Un=bn.expandedKeys,Zn=bn.childrenColumnName,xi=bn.onTriggerExpand,ni=bn.rowExpandable,mi=bn.onRow,_i=bn.expandRowByClick,Ji=bn.rowClassName,ji=Jn==="nest",wr=Jn==="row"&&(!ni||ni(nt)),Vi=wr||ji,kr=Un&&Un.has(ut),Er=Zn&&nt&&nt[Zn],Or=(0,Ve.useEvent)(xi),So=mi==null?void 0:mi(nt,_t),Lo=So==null?void 0:So.onClick,Wr=function(lo){_i&&Vi&&xi(nt,lo);for(var Zr=arguments.length,mr=new Array(Zr>1?Zr-1:0),Nr=1;Nr<Zr;Nr++)mr[Nr-1]=arguments[Nr];Lo==null||Lo.apply(void 0,[lo].concat(mr))},to;typeof Ji=="string"?to=Ji:typeof Ji=="function"&&(to=Ji(nt,_t,qt));var Ko=At(gn);return(0,ft.Z)((0,ft.Z)({},bn),{},{columnsKey:Ko,nestExpandable:ji,expanded:kr,hasNestChildren:Er,record:nt,onTriggerExpand:Or,rowSupportExpand:wr,expandable:Vi,rowProps:(0,ft.Z)((0,ft.Z)({},So),{},{className:$e()(to,So==null?void 0:So.className),onClick:Wr})})}function Hn(nt,ut,_t,qt,bn){var gn=nt.record,Jn=nt.prefixCls,Un=nt.columnsKey,Zn=nt.fixedInfoList,xi=nt.expandIconColumnIndex,ni=nt.nestExpandable,mi=nt.indentSize,_i=nt.expandIcon,Ji=nt.expanded,ji=nt.hasNestChildren,wr=nt.onTriggerExpand,Vi=Un[_t],kr=Zn[_t],Er;_t===(xi||0)&&ni&&(Er=Ne.createElement(Ne.Fragment,null,Ne.createElement("span",{style:{paddingLeft:"".concat(mi*qt,"px")},className:"".concat(Jn,"-row-indent indent-level-").concat(qt)}),_i({prefixCls:Jn,expanded:Ji,expandable:ji,record:gn,onExpand:wr})));var Or;return ut.onCell&&(Or=ut.onCell(gn,bn)),{key:Vi,fixedInfo:kr,appendCellNode:Er,additionalCellProps:Or||{}}}function wi(nt){var ut=nt.className,_t=nt.style,qt=nt.record,bn=nt.index,gn=nt.renderIndex,Jn=nt.rowKey,Un=nt.indent,Zn=Un===void 0?0:Un,xi=nt.rowComponent,ni=nt.cellComponent,mi=nt.scopeCellComponent,_i=ln(qt,Jn,bn,Zn),Ji=_i.prefixCls,ji=_i.flattenColumns,wr=_i.expandedRowClassName,Vi=_i.expandedRowRender,kr=_i.rowProps,Er=_i.expanded,Or=_i.rowSupportExpand,So=Ne.useState(!1),Lo=(0,We.Z)(So,2),Wr=Lo[0],to=Lo[1];Ne.useEffect(function(){Er&&to(!0)},[Er]);var Ko=Ne.createElement(xi,(0,gt.Z)({},kr,{"data-row-key":Jn,className:$e()(ut,"".concat(Ji,"-row"),"".concat(Ji,"-row-level-").concat(Zn),kr==null?void 0:kr.className),style:(0,ft.Z)((0,ft.Z)({},_t),kr==null?void 0:kr.style)}),ji.map(function(mr,Nr){var uo=mr.render,Mo=mr.dataIndex,Fo=mr.className,Fr=Hn(_i,mr,Nr,Zn,bn),Vo=Fr.key,_o=Fr.fixedInfo,na=Fr.appendCellNode,ta=Fr.additionalCellProps;return Ne.createElement(Yn,(0,gt.Z)({className:Fo,ellipsis:mr.ellipsis,align:mr.align,scope:mr.rowScope,component:mr.rowScope?mi:ni,prefixCls:Ji,key:Vo,record:qt,index:bn,renderIndex:gn,dataIndex:Mo,render:uo,shouldCellUpdate:mr.shouldCellUpdate},_o,{appendNode:na,additionalProps:ta}))})),Rr;if(Or&&(Wr||Er)){var lo=Vi(qt,bn,Zn+1,Er),Zr=wr&&wr(qt,bn,Zn);Rr=Ne.createElement(sn,{expanded:Er,className:$e()("".concat(Ji,"-expanded-row"),"".concat(Ji,"-expanded-row-level-").concat(Zn+1),Zr),prefixCls:Ji,component:xi,cellComponent:ni,colSpan:ji.length,isEmpty:!1},lo)}return Ne.createElement(Ne.Fragment,null,Ko,Rr)}wi.displayName="BodyRow";var Pi=ve(wi);function Ri(nt){var ut=nt.columnKey,_t=nt.onColumnResize,qt=Ne.useRef();return Ne.useEffect(function(){qt.current&&_t(ut,qt.current.offsetWidth)},[]),Ne.createElement(Be.Z,{data:ut},Ne.createElement("td",{ref:qt,style:{padding:0,border:0,height:0}},Ne.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Zi(nt){var ut=nt.prefixCls,_t=nt.columnsKey,qt=nt.onColumnResize;return Ne.createElement("tr",{"aria-hidden":"true",className:"".concat(ut,"-measure-row"),style:{height:0,fontSize:0}},Ne.createElement(Be.Z.Collection,{onBatchResize:function(gn){gn.forEach(function(Jn){var Un=Jn.data,Zn=Jn.size;qt(Un,Zn.offsetWidth)})}},_t.map(function(bn){return Ne.createElement(Ri,{key:bn,columnKey:bn,onColumnResize:qt})})))}function Ln(nt){var ut=nt.data,_t=nt.measureColumnWidth,qt=qe(Pe,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),bn=qt.prefixCls,gn=qt.getComponent,Jn=qt.onColumnResize,Un=qt.flattenColumns,Zn=qt.getRowKey,xi=qt.expandedKeys,ni=qt.childrenColumnName,mi=qt.emptyNode,_i=st(ut,ni,xi,Zn),Ji=Ne.useRef({renderWithProps:!1}),ji=gn(["body","wrapper"],"tbody"),wr=gn(["body","row"],"tr"),Vi=gn(["body","cell"],"td"),kr=gn(["body","cell"],"th"),Er;ut.length?Er=_i.map(function(So,Lo){var Wr=So.record,to=So.indent,Ko=So.index,Rr=Zn(Wr,Lo);return Ne.createElement(Pi,{key:Rr,rowKey:Rr,record:Wr,index:Lo,renderIndex:Ko,rowComponent:wr,cellComponent:Vi,scopeCellComponent:kr,getRowKey:Zn,indent:to})}):Er=Ne.createElement(sn,{expanded:!0,className:"".concat(bn,"-placeholder"),prefixCls:bn,component:wr,cellComponent:Vi,colSpan:Un.length,isEmpty:!0},mi);var Or=At(Un);return Ne.createElement(Qt.Provider,{value:Ji.current},Ne.createElement(ji,{className:"".concat(bn,"-tbody")},_t&&Ne.createElement(Zi,{prefixCls:bn,columnsKey:Or,onColumnResize:Jn}),Er))}Ln.displayName="Body";var rr=ve(Ln),Kr=["expandable"],Vr="RC_TABLE_INTERNAL_COL_DEFINE";function jr(nt){var ut=nt.expandable,_t=(0,Bn.Z)(nt,Kr),qt;return"expandable"in nt?qt=(0,ft.Z)((0,ft.Z)({},_t),ut):qt=_t,qt.showExpandColumn===!1&&(qt.expandIconColumnIndex=-1),qt}var li=["columnType"];function Ti(nt){for(var ut=nt.colWidths,_t=nt.columns,qt=nt.columCount,bn=[],gn=qt||_t.length,Jn=!1,Un=gn-1;Un>=0;Un-=1){var Zn=ut[Un],xi=_t&&_t[Un],ni=xi&&xi[Vr];if(Zn||ni||Jn){var mi=ni||{},_i=mi.columnType,Ji=(0,Bn.Z)(mi,li);bn.unshift(Ne.createElement("col",(0,gt.Z)({key:Un,style:{width:Zn}},Ji))),Jn=!0}}return Ne.createElement("colgroup",null,bn)}var vr=Ti,ui=ye(26390),Ir=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function zn(nt,ut){return(0,Ne.useMemo)(function(){for(var _t=[],qt=0;qt<ut;qt+=1){var bn=nt[qt];if(bn!==void 0)_t[qt]=bn;else return null}return _t},[nt.join("_"),ut])}var Ee=Ne.forwardRef(function(nt,ut){var _t=nt.className,qt=nt.noData,bn=nt.columns,gn=nt.flattenColumns,Jn=nt.colWidths,Un=nt.columCount,Zn=nt.stickyOffsets,xi=nt.direction,ni=nt.fixHeader,mi=nt.stickyTopOffset,_i=nt.stickyBottomOffset,Ji=nt.stickyClassName,ji=nt.onScroll,wr=nt.maxContentScroll,Vi=nt.children,kr=(0,Bn.Z)(nt,Ir),Er=qe(Pe,["prefixCls","scrollbarSize","isSticky"]),Or=Er.prefixCls,So=Er.scrollbarSize,Lo=Er.isSticky,Wr=Lo&&!ni?0:So,to=Ne.useRef(null),Ko=Ne.useCallback(function(Fo){(0,dt.mH)(ut,Fo),(0,dt.mH)(to,Fo)},[]);Ne.useEffect(function(){var Fo;function Fr(Vo){var _o=Vo,na=_o.currentTarget,ta=_o.deltaX;ta&&(ji({currentTarget:na,scrollLeft:na.scrollLeft+ta}),Vo.preventDefault())}return(Fo=to.current)===null||Fo===void 0||Fo.addEventListener("wheel",Fr),function(){var Vo;(Vo=to.current)===null||Vo===void 0||Vo.removeEventListener("wheel",Fr)}},[]);var Rr=Ne.useMemo(function(){return gn.every(function(Fo){return Fo.width})},[gn]),lo=gn[gn.length-1],Zr={fixed:lo?lo.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Or,"-cell-scrollbar")}}},mr=(0,Ne.useMemo)(function(){return Wr?[].concat((0,ui.Z)(bn),[Zr]):bn},[Wr,bn]),Nr=(0,Ne.useMemo)(function(){return Wr?[].concat((0,ui.Z)(gn),[Zr]):gn},[Wr,gn]),uo=(0,Ne.useMemo)(function(){var Fo=Zn.right,Fr=Zn.left;return(0,ft.Z)((0,ft.Z)({},Zn),{},{left:xi==="rtl"?[].concat((0,ui.Z)(Fr.map(function(Vo){return Vo+Wr})),[0]):Fr,right:xi==="rtl"?Fo:[].concat((0,ui.Z)(Fo.map(function(Vo){return Vo+Wr})),[0]),isSticky:Lo})},[Wr,Zn,Lo]),Mo=zn(Jn,Un);return Ne.createElement("div",{style:(0,ft.Z)({overflow:"hidden"},Lo?{top:mi,bottom:_i}:{}),ref:Ko,className:$e()(_t,(0,Ge.Z)({},Ji,!!Ji))},Ne.createElement("table",{style:{tableLayout:"fixed",visibility:qt||Mo?null:"hidden"}},(!qt||!wr||Rr)&&Ne.createElement(vr,{colWidths:Mo?[].concat((0,ui.Z)(Mo),[Wr]):[],columCount:Un+1,columns:Nr}),Vi((0,ft.Z)((0,ft.Z)({},kr),{},{stickyOffsets:uo,columns:mr,flattenColumns:Nr}))))});Ee.displayName="FixedHolder";var cr=Ne.memo(Ee);function Xi(nt){var ut=nt.cells,_t=nt.stickyOffsets,qt=nt.flattenColumns,bn=nt.rowComponent,gn=nt.cellComponent,Jn=nt.tdCellComponent,Un=nt.onHeaderRow,Zn=nt.index,xi=qe(Pe,["prefixCls","direction"]),ni=xi.prefixCls,mi=xi.direction,_i;Un&&(_i=Un(ut.map(function(ji){return ji.column}),Zn));var Ji=At(ut.map(function(ji){return ji.column}));return Ne.createElement(bn,_i,ut.map(function(ji,wr){var Vi=ji.column,kr=St(ji.colStart,ji.colEnd,qt,_t,mi,Vi),Er;return Vi&&Vi.onHeaderCell&&(Er=ji.column.onHeaderCell(Vi)),Ne.createElement(Yn,(0,gt.Z)({},ji,{scope:Vi.title?ji.colSpan>1?"colgroup":"col":null,ellipsis:Vi.ellipsis,align:Vi.align,component:Vi.title?gn:Jn,prefixCls:ni,key:Ji[wr]},kr,{additionalProps:Er,rowType:"header"}))}))}Xi.displayName="HeaderRow";var yn=Xi;function oi(nt){var ut=[];function _t(Jn,Un){var Zn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ut[Zn]=ut[Zn]||[];var xi=Un,ni=Jn.filter(Boolean).map(function(mi){var _i={key:mi.key,className:mi.className||"",children:mi.title,column:mi,colStart:xi},Ji=1,ji=mi.children;return ji&&ji.length>0&&(Ji=_t(ji,xi,Zn+1).reduce(function(wr,Vi){return wr+Vi},0),_i.hasSubColumns=!0),"colSpan"in mi&&(Ji=mi.colSpan),"rowSpan"in mi&&(_i.rowSpan=mi.rowSpan),_i.colSpan=Ji,_i.colEnd=_i.colStart+Ji-1,ut[Zn].push(_i),xi+=Ji,Ji});return ni}_t(nt,0);for(var qt=ut.length,bn=function(Un){ut[Un].forEach(function(Zn){!("rowSpan"in Zn)&&!Zn.hasSubColumns&&(Zn.rowSpan=qt-Un)})},gn=0;gn<qt;gn+=1)bn(gn);return ut}function Ci(nt){var ut=nt.stickyOffsets,_t=nt.columns,qt=nt.flattenColumns,bn=nt.onHeaderRow,gn=qe(Pe,["prefixCls","getComponent"]),Jn=gn.prefixCls,Un=gn.getComponent,Zn=Ne.useMemo(function(){return oi(_t)},[_t]),xi=Un(["header","wrapper"],"thead"),ni=Un(["header","row"],"tr"),mi=Un(["header","cell"],"th"),_i=Un(["header","cell"],"td");return Ne.createElement(xi,{className:"".concat(Jn,"-thead")},Zn.map(function(Ji,ji){var wr=Ne.createElement(yn,{key:ji,flattenColumns:qt,cells:Ji,stickyOffsets:ut,rowComponent:ni,cellComponent:mi,tdCellComponent:_i,onHeaderRow:bn,index:ji});return wr}))}var xn=ve(Ci),on=ye(38298);function yt(nt){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof ut=="number"?ut:ut.endsWith("%")?nt*parseFloat(ut)/100:null}function Et(nt,ut){return Ne.useMemo(function(){if(ut&&ut>0){var _t=0,qt=0;nt.forEach(function(xi){var ni=yt(ut,xi.width);ni?_t+=ni:qt+=1});var bn=ut-_t,gn=qt,Jn=bn/qt,Un=0,Zn=nt.map(function(xi){var ni=(0,ft.Z)({},xi),mi=yt(ut,ni.width);if(mi)ni.width=mi;else{var _i=Math.floor(Jn);ni.width=gn===1?bn:_i,bn-=_i,gn-=1}return Un+=ni.width,ni});return[Zn,Un]}return[nt,ut]},[nt,ut])}var Lt=["children"],tt=["fixed"];function en(nt){return(0,on.Z)(nt).filter(function(ut){return Ne.isValidElement(ut)}).map(function(ut){var _t=ut.key,qt=ut.props,bn=qt.children,gn=(0,Bn.Z)(qt,Lt),Jn=(0,ft.Z)({key:_t},gn);return bn&&(Jn.children=en(bn)),Jn})}function fn(nt){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return nt.filter(function(_t){return _t&&(0,Xe.Z)(_t)==="object"}).reduce(function(_t,qt,bn){var gn=qt.fixed,Jn=gn===!0?"left":gn,Un="".concat(ut,"-").concat(bn),Zn=qt.children;return Zn&&Zn.length>0?[].concat((0,ui.Z)(_t),(0,ui.Z)(fn(Zn,Un).map(function(xi){return(0,ft.Z)({fixed:Jn},xi)}))):[].concat((0,ui.Z)(_t),[(0,ft.Z)((0,ft.Z)({key:Un},qt),{},{fixed:Jn})])},[])}function xt(nt){for(var ut=!0,_t=0;_t<nt.length;_t+=1){var qt=nt[_t];if(ut&&qt.fixed!=="left")ut=!1;else if(!ut&&qt.fixed==="left"){warning(!1,"Index ".concat(_t-1," of `columns` missing `fixed='left'` prop."));break}}for(var bn=!0,gn=nt.length-1;gn>=0;gn-=1){var Jn=nt[gn];if(bn&&Jn.fixed!=="right")bn=!1;else if(!bn&&Jn.fixed==="right"){warning(!1,"Index ".concat(gn+1," of `columns` missing `fixed='right'` prop."));break}}}function Ue(nt){return nt.map(function(ut){var _t=ut.fixed,qt=(0,Bn.Z)(ut,tt),bn=_t;return _t==="left"?bn="right":_t==="right"&&(bn="left"),(0,ft.Z)({fixed:bn},qt)})}function an(nt,ut){var _t=nt.prefixCls,qt=nt.columns,bn=nt.children,gn=nt.expandable,Jn=nt.expandedKeys,Un=nt.columnTitle,Zn=nt.getRowKey,xi=nt.onTriggerExpand,ni=nt.expandIcon,mi=nt.rowExpandable,_i=nt.expandIconColumnIndex,Ji=nt.direction,ji=nt.expandRowByClick,wr=nt.columnWidth,Vi=nt.fixed,kr=nt.scrollWidth,Er=Ne.useMemo(function(){return qt||en(bn)},[qt,bn]),Or=Ne.useMemo(function(){if(gn){var lo,Zr=Er.slice();if(!Zr.includes(xe)){var mr=_i||0;mr>=0&&Zr.splice(mr,0,xe)}var Nr=Zr.indexOf(xe);Zr=Zr.filter(function(Fr,Vo){return Fr!==xe||Vo===Nr});var uo=Er[Nr],Mo;(Vi==="left"||Vi)&&!_i?Mo="left":(Vi==="right"||Vi)&&_i===Er.length?Mo="right":Mo=uo?uo.fixed:null;var Fo=(lo={},(0,Ge.Z)(lo,Vr,{className:"".concat(_t,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Ge.Z)(lo,"title",Un),(0,Ge.Z)(lo,"fixed",Mo),(0,Ge.Z)(lo,"className","".concat(_t,"-row-expand-icon-cell")),(0,Ge.Z)(lo,"width",wr),(0,Ge.Z)(lo,"render",function(Vo,_o,na){var ta=Zn(_o,na),Qa=Jn.has(ta),fa=mi?mi(_o):!0,Wo=ni({prefixCls:_t,expanded:Qa,expandable:fa,record:_o,onExpand:xi});return ji?Ne.createElement("span",{onClick:function(To){return To.stopPropagation()}},Wo):Wo}),lo);return Zr.map(function(Fr){return Fr===xe?Fo:Fr})}return Er.filter(function(Fr){return Fr!==xe})},[gn,Er,Zn,Jn,ni,Ji]),So=Ne.useMemo(function(){var lo=Or;return ut&&(lo=ut(lo)),lo.length||(lo=[{render:function(){return null}}]),lo},[ut,Or,Ji]),Lo=Ne.useMemo(function(){return Ji==="rtl"?Ue(fn(So)):fn(So)},[So,Ji,kr]),Wr=Et(Lo,kr),to=(0,We.Z)(Wr,2),Ko=to[0],Rr=to[1];return[So,Ko,Rr]}var Dt=an;function Rn(nt){var ut,_t=nt.prefixCls,qt=nt.record,bn=nt.onExpand,gn=nt.expanded,Jn=nt.expandable,Un="".concat(_t,"-row-expand-icon");if(!Jn)return Ne.createElement("span",{className:$e()(Un,"".concat(_t,"-row-spaced"))});var Zn=function(ni){bn(qt,ni),ni.stopPropagation()};return Ne.createElement("span",{className:$e()(Un,(ut={},(0,Ge.Z)(ut,"".concat(_t,"-row-expanded"),gn),(0,Ge.Z)(ut,"".concat(_t,"-row-collapsed"),!gn),ut)),onClick:Zn})}function dn(nt,ut,_t){var qt=[];function bn(gn){(gn||[]).forEach(function(Jn,Un){qt.push(ut(Jn,Un)),bn(Jn[_t])})}return bn(nt),qt}function Pt(nt,ut,_t){var qt=jr(nt),bn=qt.expandIcon,gn=qt.expandedRowKeys,Jn=qt.defaultExpandedRowKeys,Un=qt.defaultExpandAllRows,Zn=qt.expandedRowRender,xi=qt.onExpand,ni=qt.onExpandedRowsChange,mi=qt.childrenColumnName,_i=bn||Rn,Ji=mi||"children",ji=Ne.useMemo(function(){return Zn?"row":nt.expandable&&nt.internalHooks===Ie&&nt.expandable.__PARENT_RENDER_ICON__||ut.some(function(Lo){return Lo&&(0,Xe.Z)(Lo)==="object"&&Lo[Ji]})?"nest":!1},[!!Zn,ut]),wr=Ne.useState(function(){return Jn||(Un?dn(ut,_t,Ji):[])}),Vi=(0,We.Z)(wr,2),kr=Vi[0],Er=Vi[1],Or=Ne.useMemo(function(){return new Set(gn||kr||[])},[gn,kr]),So=Ne.useCallback(function(Lo){var Wr=_t(Lo,ut.indexOf(Lo)),to,Ko=Or.has(Wr);Ko?(Or.delete(Wr),to=(0,ui.Z)(Or)):to=[].concat((0,ui.Z)(Or),[Wr]),Er(to),xi&&xi(!Ko,Lo),ni&&ni(to)},[_t,Or,ut,xi,ni]);return[qt,ji,Or,_i,Ji,So]}function Sn(nt,ut,_t,qt){var bn=nt.map(function(gn,Jn){return St(Jn,Jn,nt,ut,_t,qt==null?void 0:qt[Jn])});return(0,zt.Z)(function(){return bn},[bn],function(gn,Jn){return!(0,vt.Z)(gn,Jn)})}function Qn(nt){var ut=(0,Ne.useRef)(nt),_t=(0,Ne.useState)({}),qt=(0,We.Z)(_t,2),bn=qt[1],gn=(0,Ne.useRef)(null),Jn=(0,Ne.useRef)([]);function Un(Zn){Jn.current.push(Zn);var xi=Promise.resolve();gn.current=xi,xi.then(function(){if(gn.current===xi){var ni=Jn.current,mi=ut.current;Jn.current=[],ni.forEach(function(_i){ut.current=_i(ut.current)}),gn.current=null,mi!==ut.current&&bn({})}})}return(0,Ne.useEffect)(function(){return function(){gn.current=null}},[]),[ut.current,Un]}function Xn(nt){var ut=(0,Ne.useRef)(nt||null),_t=(0,Ne.useRef)();function qt(){window.clearTimeout(_t.current)}function bn(Jn){ut.current=Jn,qt(),_t.current=window.setTimeout(function(){ut.current=null,_t.current=void 0},100)}function gn(){return ut.current}return(0,Ne.useEffect)(function(){return qt},[]),[bn,gn]}function Rt(){var nt=Ne.useState(-1),ut=(0,We.Z)(nt,2),_t=ut[0],qt=ut[1],bn=Ne.useState(-1),gn=(0,We.Z)(bn,2),Jn=gn[0],Un=gn[1],Zn=Ne.useCallback(function(xi,ni){qt(xi),Un(ni)},[]);return[_t,Jn,Zn]}var vn=ye(87746),bi=(0,vn.Z)()?window:null;function vi(nt,ut){var _t=(0,Xe.Z)(nt)==="object"?nt:{},qt=_t.offsetHeader,bn=qt===void 0?0:qt,gn=_t.offsetSummary,Jn=gn===void 0?0:gn,Un=_t.offsetScroll,Zn=Un===void 0?0:Un,xi=_t.getContainer,ni=xi===void 0?function(){return bi}:xi,mi=ni()||bi;return Ne.useMemo(function(){var _i=!!nt;return{isSticky:_i,stickyClassName:_i?"".concat(ut,"-sticky-holder"):"",offsetHeader:bn,offsetSummary:Jn,offsetScroll:Zn,container:mi}},[Zn,bn,Jn,ut,mi])}function pi(nt,ut,_t){var qt=(0,Ne.useMemo)(function(){for(var bn=[],gn=[],Jn=0,Un=0,Zn=0;Zn<ut;Zn+=1)if(_t==="rtl"){gn[Zn]=Un,Un+=nt[Zn]||0;var xi=ut-Zn-1;bn[xi]=Jn,Jn+=nt[xi]||0}else{bn[Zn]=Jn,Jn+=nt[Zn]||0;var ni=ut-Zn-1;gn[ni]=Un,Un+=nt[ni]||0}return{left:bn,right:gn}},[nt,ut,_t]);return qt}var ei=pi;function yi(nt){var ut=nt.className,_t=nt.children;return Ne.createElement("div",{className:ut},_t)}var Fi=yi,Ki=ye(8178),hr=ye(21783),Gn=function(ut,_t){var qt,bn,gn=ut.scrollBodyRef,Jn=ut.onScroll,Un=ut.offsetScroll,Zn=ut.container,xi=qe(Pe,"prefixCls"),ni=((qt=gn.current)===null||qt===void 0?void 0:qt.scrollWidth)||0,mi=((bn=gn.current)===null||bn===void 0?void 0:bn.clientWidth)||0,_i=ni&&mi*(mi/ni),Ji=Ne.useRef(),ji=Qn({scrollLeft:0,isHiddenScrollBar:!1}),wr=(0,We.Z)(ji,2),Vi=wr[0],kr=wr[1],Er=Ne.useRef({delta:0,x:0}),Or=Ne.useState(!1),So=(0,We.Z)(Or,2),Lo=So[0],Wr=So[1],to=function(){Wr(!1)},Ko=function(Nr){Nr.persist(),Er.current.delta=Nr.pageX-Vi.scrollLeft,Er.current.x=0,Wr(!0),Nr.preventDefault()},Rr=function(Nr){var uo,Mo=Nr||((uo=window)===null||uo===void 0?void 0:uo.event),Fo=Mo.buttons;if(!Lo||Fo===0){Lo&&Wr(!1);return}var Fr=Er.current.x+Nr.pageX-Er.current.x-Er.current.delta;Fr<=0&&(Fr=0),Fr+_i>=mi&&(Fr=mi-_i),Jn({scrollLeft:Fr/mi*(ni+2)}),Er.current.x=Nr.pageX},lo=function(){if(gn.current){var Nr=(0,hr.os)(gn.current).top,uo=Nr+gn.current.offsetHeight,Mo=Zn===window?document.documentElement.scrollTop+window.innerHeight:(0,hr.os)(Zn).top+Zn.clientHeight;uo-(0,De.Z)()<=Mo||Nr>=Mo-Un?kr(function(Fo){return(0,ft.Z)((0,ft.Z)({},Fo),{},{isHiddenScrollBar:!0})}):kr(function(Fo){return(0,ft.Z)((0,ft.Z)({},Fo),{},{isHiddenScrollBar:!1})})}},Zr=function(Nr){kr(function(uo){return(0,ft.Z)((0,ft.Z)({},uo),{},{scrollLeft:Nr/ni*mi||0})})};return Ne.useImperativeHandle(_t,function(){return{setScrollLeft:Zr}}),Ne.useEffect(function(){var mr=(0,Ki.Z)(document.body,"mouseup",to,!1),Nr=(0,Ki.Z)(document.body,"mousemove",Rr,!1);return lo(),function(){mr.remove(),Nr.remove()}},[_i,Lo]),Ne.useEffect(function(){var mr=(0,Ki.Z)(Zn,"scroll",lo,!1),Nr=(0,Ki.Z)(window,"resize",lo,!1);return function(){mr.remove(),Nr.remove()}},[Zn]),Ne.useEffect(function(){Vi.isHiddenScrollBar||kr(function(mr){var Nr=gn.current;return Nr?(0,ft.Z)((0,ft.Z)({},mr),{},{scrollLeft:Nr.scrollLeft/Nr.scrollWidth*Nr.clientWidth}):mr})},[Vi.isHiddenScrollBar]),ni<=mi||!_i||Vi.isHiddenScrollBar?null:Ne.createElement("div",{style:{height:(0,De.Z)(),width:mi,bottom:Un},className:"".concat(xi,"-sticky-scroll")},Ne.createElement("div",{onMouseDown:Ko,ref:Ji,className:$e()("".concat(xi,"-sticky-scroll-bar"),(0,Ge.Z)({},"".concat(xi,"-sticky-scroll-bar-active"),Lo)),style:{width:"".concat(_i,"px"),transform:"translate3d(".concat(Vi.scrollLeft,"px, 0, 0)")}}))},Li=Ne.forwardRef(Gn);function Lr(nt){return null}var Dr=Lr;function Pr(nt){return null}var Xt=Pr,Mi="rc-table",ar=[],Wi={};function Mr(){return"No Data"}function fr(nt){var ut,_t=(0,ft.Z)({rowKey:"key",prefixCls:Mi,emptyText:Mr},nt),qt=_t.prefixCls,bn=_t.className,gn=_t.rowClassName,Jn=_t.style,Un=_t.data,Zn=_t.rowKey,xi=_t.scroll,ni=_t.tableLayout,mi=_t.direction,_i=_t.title,Ji=_t.footer,ji=_t.summary,wr=_t.caption,Vi=_t.id,kr=_t.showHeader,Er=_t.components,Or=_t.emptyText,So=_t.onRow,Lo=_t.onHeaderRow,Wr=_t.internalHooks,to=_t.transformColumns,Ko=_t.internalRefs,Rr=_t.tailor,lo=_t.sticky,Zr=Un||ar,mr=!!Zr.length,Nr=Wr===Ie,uo=Ne.useCallback(function(Va,Es){return(0,Ht.Z)(Er,Va)||Es},[Er]),Mo=Ne.useMemo(function(){return typeof Zn=="function"?Zn:function(Va){var Es=Va&&Va[Zn];return Es}},[Zn]),Fo=uo(["body"]),Fr=Rt(),Vo=(0,We.Z)(Fr,3),_o=Vo[0],na=Vo[1],ta=Vo[2],Qa=Pt(_t,Zr,Mo),fa=(0,We.Z)(Qa,6),Wo=fa[0],Po=fa[1],To=fa[2],Ya=fa[3],Ia=fa[4],ns=fa[5],Ro=xi==null?void 0:xi.x,bo=Ne.useState(0),Zo=(0,We.Z)(bo,2),wo=Zo[0],so=Zo[1],tr=Dt((0,ft.Z)((0,ft.Z)((0,ft.Z)({},_t),Wo),{},{expandable:!!Wo.expandedRowRender,columnTitle:Wo.columnTitle,expandedKeys:To,getRowKey:Mo,onTriggerExpand:ns,expandIcon:Ya,expandIconColumnIndex:Wo.expandIconColumnIndex,direction:mi,scrollWidth:Nr&&Rr&&typeof Ro=="number"?Ro:null}),Nr?to:null),Gr=(0,We.Z)(tr,3),Uo=Gr[0],sa=Gr[1],al=Gr[2],zs=al!=null?al:Ro,Al=Ne.useMemo(function(){return{columns:Uo,flattenColumns:sa}},[Uo,sa]),Na=Ne.useRef(),Ua=Ne.useRef(),Do=Ne.useRef(),Vs=Ne.useRef(),Ll=Ne.useRef(),Wa=Ne.useState(!1),_a=(0,We.Z)(Wa,2),is=_a[0],bs=_a[1],Gs=Ne.useState(!1),xa=(0,We.Z)(Gs,2),ss=xa[0],Js=xa[1],Xa=Qn(new Map),zo=(0,We.Z)(Xa,2),Ms=zo[0],Ys=zo[1],Wu=At(sa),vu=Wu.map(function(Va){return Ms.get(Va)}),$a=Ne.useMemo(function(){return vu},[vu.join("_")]),Ml=ei($a,sa.length,mi),Ps=xi&&wn(xi.y),ps=xi&&wn(zs)||!!Wo.fixed,Nu=ps&&sa.some(function(Va){var Es=Va.fixed;return Es}),Cc=Ne.useRef(),ql=vi(lo,qt),ac=ql.isSticky,sc=ql.offsetHeader,yu=ql.offsetSummary,Ra=ql.offsetScroll,ls=ql.stickyClassName,Qs=ql.container,ms=Ne.useMemo(function(){return ji==null?void 0:ji(Zr)},[ji,Zr]),za=(Ps||ac)&&Ne.isValidElement(ms)&&ms.type===ze&&ms.props.fixed,_s,Rl,Zu;Ps&&(Rl={overflowY:"scroll",maxHeight:xi.y}),ps&&(_s={overflowX:"auto"},Ps||(Rl={overflowY:"hidden"}),Zu={width:zs===!0?"auto":zs,minWidth:"100%"});var uh=Ne.useCallback(function(Va,Es){(0,we.Z)(Na.current)&&Ys(function(Dl){if(Dl.get(Va)!==Es){var Du=new Map(Dl);return Du.set(Va,Es),Du}return Dl})},[]),pn=Xn(null),Rc=(0,We.Z)(pn,2),bc=Rc[0],jh=Rc[1];function bd(Va,Es){Es&&(typeof Es=="function"?Es(Va):Es.scrollLeft!==Va&&(Es.scrollLeft=Va,Es.scrollLeft!==Va&&setTimeout(function(){Es.scrollLeft=Va},0)))}var _c=(0,It.Z)(function(Va){var Es=Va.currentTarget,Dl=Va.scrollLeft,Du=mi==="rtl",Bu=typeof Dl=="number"?Dl:Es.scrollLeft,hh=Es||Wi;if(!jh()||jh()===hh){var ed;bc(hh),bd(Bu,Ua.current),bd(Bu,Do.current),bd(Bu,Ll.current),bd(Bu,(ed=Cc.current)===null||ed===void 0?void 0:ed.setScrollLeft)}var Jd=Es||Ua.current;if(Jd){var Qu=Jd.scrollWidth,uc=Jd.clientWidth;if(Qu===uc){bs(!1),Js(!1);return}Du?(bs(-Bu<Qu-uc),Js(-Bu>0)):(bs(Bu>0),Js(Bu<Qu-uc))}}),zc=function(){ps&&Do.current?_c({currentTarget:Do.current}):(bs(!1),Js(!1))},gf=function(Es){var Dl=Es.width;Dl!==wo&&(zc(),so(Na.current?Na.current.offsetWidth:Dl))},Fl=Ne.useRef(!1);Ne.useEffect(function(){Fl.current&&zc()},[ps,Un,Uo.length]),Ne.useEffect(function(){Fl.current=!0},[]);var fd=Ne.useState(0),Wd=(0,We.Z)(fd,2),Zd=Wd[0],Kd=Wd[1],pf=Ne.useState(!0),Vd=(0,We.Z)(pf,2),Gd=Vd[0],Fu=Vd[1];Ne.useEffect(function(){(!Rr||!Nr)&&(Do.current instanceof Element?Kd((0,De.o)(Do.current).width):Kd((0,De.o)(Vs.current).width)),Fu((0,me.G)("position","sticky"))},[]),Ne.useEffect(function(){Nr&&Ko&&(Ko.body.current=Do.current)});var $c=Ne.useCallback(function(Va){return Ne.createElement(Ne.Fragment,null,Ne.createElement(xn,Va),za==="top"&&Ne.createElement(Gt,Va,ms))},[za,ms]),Hh=Ne.useCallback(function(Va){return Ne.createElement(Gt,Va,ms)},[ms]),lc=uo(["table"],"table"),qc=Ne.useMemo(function(){return ni||(Nu?zs==="max-content"?"auto":"fixed":Ps||ac||sa.some(function(Va){var Es=Va.ellipsis;return Es})?"fixed":"auto")},[Ps,Nu,sa,ni,ac]),gd,pd={colWidths:$a,columCount:sa.length,stickyOffsets:Ml,onHeaderRow:Lo,fixHeader:Ps,scroll:xi},eu=Ne.useMemo(function(){return mr?null:typeof Or=="function"?Or():Or},[mr,Or]),ch=Ne.createElement(rr,{data:Zr,measureColumnWidth:Ps||ps||ac}),Yd=Ne.createElement(vr,{colWidths:sa.map(function(Va){var Es=Va.width;return Es}),columns:sa}),Su=wr!=null?Ne.createElement("caption",{className:"".concat(qt,"-caption")},wr):void 0,Ed=(0,Re.Z)(_t,{data:!0}),Ud=(0,Re.Z)(_t,{aria:!0});if(Ps||ac){var dh;typeof Fo=="function"?(dh=Fo(Zr,{scrollbarSize:Zd,ref:Do,onScroll:_c}),pd.colWidths=sa.map(function(Va,Es){var Dl=Va.width,Du=Es===sa.length-1?Dl-Zd:Dl;return typeof Du=="number"&&!Number.isNaN(Du)?Du:0})):dh=Ne.createElement("div",{style:(0,ft.Z)((0,ft.Z)({},_s),Rl),onScroll:_c,ref:Do,className:$e()("".concat(qt,"-body"))},Ne.createElement(lc,(0,gt.Z)({style:(0,ft.Z)((0,ft.Z)({},Zu),{},{tableLayout:qc})},Ud),Su,Yd,ch,!za&&ms&&Ne.createElement(Gt,{stickyOffsets:Ml,flattenColumns:sa,columns:Uo},ms)));var jc=(0,ft.Z)((0,ft.Z)((0,ft.Z)({noData:!Zr.length,maxContentScroll:ps&&zs==="max-content"},pd),Al),{},{direction:mi,stickyClassName:ls,onScroll:_c});gd=Ne.createElement(Ne.Fragment,null,kr!==!1&&Ne.createElement(cr,(0,gt.Z)({},jc,{stickyTopOffset:sc,className:"".concat(qt,"-header"),ref:Ua}),$c),dh,za&&za!=="top"&&Ne.createElement(cr,(0,gt.Z)({},jc,{stickyBottomOffset:yu,className:"".concat(qt,"-summary"),ref:Ll}),Hh),ac&&Ne.createElement(Li,{ref:Cc,offsetScroll:Ra,scrollBodyRef:Do,onScroll:_c,container:Qs}))}else gd=Ne.createElement("div",{style:(0,ft.Z)((0,ft.Z)({},_s),Rl),className:$e()("".concat(qt,"-content")),onScroll:_c,ref:Do},Ne.createElement(lc,(0,gt.Z)({style:(0,ft.Z)((0,ft.Z)({},Zu),{},{tableLayout:qc})},Ud),Su,Yd,kr!==!1&&Ne.createElement(xn,(0,gt.Z)({},pd,Al)),ch,ms&&Ne.createElement(Gt,{stickyOffsets:Ml,flattenColumns:sa,columns:Uo},ms)));var Hl=Ne.createElement("div",(0,gt.Z)({className:$e()(qt,bn,(ut={},(0,Ge.Z)(ut,"".concat(qt,"-rtl"),mi==="rtl"),(0,Ge.Z)(ut,"".concat(qt,"-ping-left"),is),(0,Ge.Z)(ut,"".concat(qt,"-ping-right"),ss),(0,Ge.Z)(ut,"".concat(qt,"-layout-fixed"),ni==="fixed"),(0,Ge.Z)(ut,"".concat(qt,"-fixed-header"),Ps),(0,Ge.Z)(ut,"".concat(qt,"-fixed-column"),Nu),(0,Ge.Z)(ut,"".concat(qt,"-scroll-horizontal"),ps),(0,Ge.Z)(ut,"".concat(qt,"-has-fix-left"),sa[0]&&sa[0].fixed),(0,Ge.Z)(ut,"".concat(qt,"-has-fix-right"),sa[sa.length-1]&&sa[sa.length-1].fixed==="right"),ut)),style:Jn,id:Vi,ref:Na},Ed),_i&&Ne.createElement(Fi,{className:"".concat(qt,"-title")},_i(Zr)),Ne.createElement("div",{ref:Vs,className:"".concat(qt,"-container")},gd),Ji&&Ne.createElement(Fi,{className:"".concat(qt,"-footer")},Ji(Zr)));ps&&(Hl=Ne.createElement(Be.Z,{onResize:gf},Hl));var Xd=Sn(sa,Ml,mi,Uo),sl=Ne.useMemo(function(){return{scrollX:zs,prefixCls:qt,getComponent:uo,scrollbarSize:Zd,direction:mi,fixedInfoList:Xd,isSticky:ac,supportSticky:Gd,componentWidth:wo,fixHeader:Ps,fixColumn:Nu,horizonScroll:ps,tableLayout:qc,rowClassName:gn,expandedRowClassName:Wo.expandedRowClassName,expandIcon:Ya,expandableType:Po,expandRowByClick:Wo.expandRowByClick,expandedRowRender:Wo.expandedRowRender,onTriggerExpand:ns,expandIconColumnIndex:Wo.expandIconColumnIndex,indentSize:Wo.indentSize,allColumnsFixedLeft:sa.every(function(Va){return Va.fixed==="left"}),emptyNode:eu,columns:Uo,flattenColumns:sa,onColumnResize:uh,hoverStartRow:_o,hoverEndRow:na,onHover:ta,rowExpandable:Wo.rowExpandable,onRow:So,getRowKey:Mo,expandedKeys:To,childrenColumnName:Ia}},[zs,qt,uo,Zd,mi,Xd,ac,Gd,wo,Ps,Nu,ps,qc,gn,Wo.expandedRowClassName,Ya,Po,Wo.expandRowByClick,Wo.expandedRowRender,ns,Wo.expandIconColumnIndex,Wo.indentSize,eu,Uo,sa,uh,_o,na,ta,Wo.rowExpandable,So,Mo,To,Ia]);return Ne.createElement(Pe.Provider,{value:sl},Hl)}function Br(nt){return ge(fr,nt)}var Oi=Br();Oi.EXPAND_COLUMN=xe,Oi.INTERNAL_HOOKS=Ie,Oi.Column=Dr,Oi.ColumnGroup=Xt,Oi.Summary=at;var $i=Oi,nr=ye(21881),Mn=Ft(null),Tr=Ft(null);function An(nt,ut,_t){var qt=ut||1;return _t[nt+qt]-(_t[nt]||0)}function yr(nt){var ut=nt.rowInfo,_t=nt.column,qt=nt.colIndex,bn=nt.indent,gn=nt.index,Jn=nt.renderIndex,Un=nt.record,Zn=nt.style,xi=nt.className,ni=nt.inverse,mi=nt.getHeight,_i=_t.render,Ji=_t.dataIndex,ji=_t.className,wr=_t.width,Vi=qe(Tr,["columnsOffset"]),kr=Vi.columnsOffset,Er=Hn(ut,_t,qt,bn,gn),Or=Er.key,So=Er.fixedInfo,Lo=Er.appendCellNode,Wr=Er.additionalCellProps,to=Wr.style,Ko=Wr.colSpan,Rr=Ko===void 0?1:Ko,lo=Wr.rowSpan,Zr=lo===void 0?1:lo,mr=qt-1,Nr=An(mr,Rr,kr),uo=Rr>1?wr-Nr:0,Mo=(0,ft.Z)((0,ft.Z)((0,ft.Z)({},to),Zn),{},{flex:"0 0 ".concat(Nr,"px"),width:"".concat(Nr,"px"),marginRight:uo,pointerEvents:"auto"}),Fo=Ne.useMemo(function(){return ni?Zr<=1:Rr===0||Zr===0||Zr>1},[Zr,Rr,ni]);Fo?Mo.visibility="hidden":ni&&(Mo.height=mi==null?void 0:mi(Zr));var Fr=Fo?function(){return null}:_i,Vo={};return(Zr===0||Rr===0)&&(Vo.rowSpan=1,Vo.colSpan=1),Ne.createElement(Yn,(0,gt.Z)({className:$e()(ji,xi),ellipsis:_t.ellipsis,align:_t.align,scope:_t.rowScope,component:"div",prefixCls:ut.prefixCls,key:Or,record:Un,index:gn,renderIndex:Jn,dataIndex:Ji,render:Fr,shouldCellUpdate:_t.shouldCellUpdate},So,{appendNode:Lo,additionalProps:(0,ft.Z)((0,ft.Z)({},Wr),{},{style:Mo},Vo)}))}var _r=yr,xr=["data","index","className","rowKey","style","extra","getHeight"],Ho=Ne.forwardRef(function(nt,ut){var _t=nt.data,qt=nt.index,bn=nt.className,gn=nt.rowKey,Jn=nt.style,Un=nt.extra,Zn=nt.getHeight,xi=(0,Bn.Z)(nt,xr),ni=_t.record,mi=_t.indent,_i=_t.index,Ji=qe(Pe,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),ji=Ji.scrollX,wr=Ji.flattenColumns,Vi=Ji.prefixCls,kr=Ji.fixColumn,Er=Ji.componentWidth,Or=ln(ni,gn,qt,mi),So=Or.rowSupportExpand,Lo=Or.expanded,Wr=Or.rowProps,to=Or.expandedRowRender,Ko=Or.expandedRowClassName,Rr;if(So&&Lo){var lo=to(ni,qt,mi+1,Lo),Zr=Ko==null?void 0:Ko(ni,qt,mi),mr={};kr&&(mr={style:(0,Ge.Z)({},"--virtual-width","".concat(Er,"px"))});var Nr="".concat(Vi,"-expanded-row-cell");Rr=Ne.createElement("div",{className:$e()("".concat(Vi,"-expanded-row"),"".concat(Vi,"-expanded-row-level-").concat(mi+1),Zr)},Ne.createElement(Yn,{component:"div",prefixCls:Vi,className:$e()(Nr,(0,Ge.Z)({},"".concat(Nr,"-fixed"),kr)),additionalProps:mr},lo))}var uo=(0,ft.Z)((0,ft.Z)({},Jn),{},{width:ji});Un&&(uo.position="absolute",uo.pointerEvents="none");var Mo=Ne.createElement("div",(0,gt.Z)({},Wr,xi,{ref:So?null:ut,className:$e()(bn,"".concat(Vi,"-row"),Wr==null?void 0:Wr.className,(0,Ge.Z)({},"".concat(Vi,"-row-extra"),Un)),style:(0,ft.Z)((0,ft.Z)({},uo),Wr==null?void 0:Wr.style)}),wr.map(function(Fo,Fr){return Ne.createElement(_r,{key:Fr,rowInfo:Or,column:Fo,colIndex:Fr,indent:mi,index:qt,renderIndex:_i,record:ni,inverse:Un,getHeight:Zn})}));return So?Ne.createElement("div",{ref:ut},Mo,Rr):Mo}),ho=ve(Ho),Sr=ho,gr=Ne.forwardRef(function(nt,ut){var _t=nt.data,qt=nt.onScroll,bn=qe(Pe,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),gn=bn.flattenColumns,Jn=bn.onColumnResize,Un=bn.getRowKey,Zn=bn.expandedKeys,xi=bn.prefixCls,ni=bn.childrenColumnName,mi=bn.emptyNode,_i=bn.scrollX,Ji=qe(Mn),ji=Ji.scrollY,wr=Ji.listItemHeight,Vi=Ne.useRef(),kr=st(_t,ni,Zn,Un),Er=Ne.useMemo(function(){var Rr=0;return gn.map(function(lo){var Zr=lo.width,mr=lo.key;return Rr+=Zr,[mr,Zr,Rr]})},[gn]),Or=Ne.useMemo(function(){return Er.map(function(Rr){return Rr[2]})},[Er]);Ne.useEffect(function(){Er.forEach(function(Rr){var lo=(0,We.Z)(Rr,2),Zr=lo[0],mr=lo[1];Jn(Zr,mr)})},[Er]),Ne.useImperativeHandle(ut,function(){var Rr={};return Object.defineProperty(Rr,"scrollLeft",{get:function(){var Zr;return((Zr=Vi.current)===null||Zr===void 0?void 0:Zr.getScrollInfo().x)||0},set:function(Zr){var mr;(mr=Vi.current)===null||mr===void 0||mr.scrollTo({left:Zr})}}),Rr});var So=function(lo,Zr){var mr,Nr=(mr=kr[Zr])===null||mr===void 0?void 0:mr.record,uo=lo.onCell;if(uo){var Mo,Fo=uo(Nr,Zr);return(Mo=Fo==null?void 0:Fo.rowSpan)!==null&&Mo!==void 0?Mo:1}return 1},Lo=function(lo){var Zr=lo.start,mr=lo.end,Nr=lo.getSize,uo=lo.offsetY;if(mr<0)return null;for(var Mo=gn.filter(function(Ro){return So(Ro,Zr)===0}),Fo=Zr,Fr=function(bo){if(Mo=Mo.filter(function(Zo){return So(Zo,bo)===0}),!Mo.length)return Fo=bo,"break"},Vo=Zr;Vo>=0;Vo-=1){var _o=Fr(Vo);if(_o==="break")break}for(var na=gn.filter(function(Ro){return So(Ro,mr)!==1}),ta=mr,Qa=function(bo){if(na=na.filter(function(Zo){return So(Zo,bo)!==1}),!na.length)return ta=Math.max(bo-1,mr),"break"},fa=mr;fa<kr.length;fa+=1){var Wo=Qa(fa);if(Wo==="break")break}for(var Po=[],To=function(bo){var Zo=kr[bo];if(!Zo)return"continue";gn.some(function(wo){return So(wo,bo)>1})&&Po.push(bo)},Ya=Fo;Ya<=ta;Ya+=1)var Ia=To(Ya);var ns=Po.map(function(Ro){var bo=kr[Ro],Zo=Un(bo.record,Ro),wo=function(Gr){var Uo=Ro+Gr-1,sa=Un(kr[Uo].record,Uo),al=Nr(Zo,sa);return al.bottom-al.top},so=Nr(Zo);return Ne.createElement(Sr,{key:Ro,data:bo,rowKey:Zo,index:Ro,style:{top:-uo+so.top},extra:!0,getHeight:wo})});return ns},Wr=Ne.useMemo(function(){return{columnsOffset:Or}},[Or]),to="".concat(xi,"-tbody"),Ko;return kr.length?Ko=Ne.createElement(nr.Z,{fullHeight:!1,ref:Vi,className:$e()(to,"".concat(to,"-virtual")),height:ji,itemHeight:wr||24,data:kr,itemKey:function(lo){return Un(lo.record)},scrollWidth:_i,onVirtualScroll:function(lo){var Zr=lo.x;qt({scrollLeft:Zr})},extraRender:Lo},function(Rr,lo,Zr){var mr=Un(Rr.record,lo);return Ne.createElement(Sr,(0,gt.Z)({data:Rr,rowKey:mr,index:lo},Zr))}):Ko=Ne.createElement("div",{className:$e()("".concat(xi,"-placeholder"))},Ne.createElement(Yn,{component:"div",prefixCls:xi},mi)),Ne.createElement(Tr.Provider,{value:Wr},Ko)}),pr=ve(gr),Yr=pr,zi=function(ut,_t){var qt=_t.ref,bn=_t.onScroll;return Ne.createElement(Yr,{ref:qt,data:ut,onScroll:bn})},Je=100;function pt(nt){var ut=nt.columns,_t=nt.scroll,qt=nt.prefixCls,bn=qt===void 0?Mi:qt,gn=nt.className,Jn=nt.listItemHeight,Un=_t||{},Zn=Un.x,xi=Un.y;typeof Zn!="number"&&(Zn=((ut||[]).length+1)*Je),typeof xi!="number"&&(xi=500);var ni=Ne.useMemo(function(){return{scrollY:xi,listItemHeight:Jn}},[xi,Jn]);return Ne.createElement(Mn.Provider,{value:ni},Ne.createElement($i,(0,gt.Z)({},nt,{className:$e()(gn,"".concat(bn,"-virtual")),scroll:(0,ft.Z)((0,ft.Z)({},_t),{},{x:Zn}),components:{body:zi},columns:ut,internalHooks:Ie,tailor:!0})))}function Ot(nt){return ge(pt,nt)}var cn=Ot(),jn=null;function Dn(nt){return null}var Wt=Dn;function kn(nt){return null}var ai=kn,$n=ye(64002),Ii=ye(68031),Bi=ye(36355),gi=ye(93891),Yi=ye(19716),On=ye(8628),$r=ye(31724),Ur=ye(25700),Ao=ye(71418),eo=ye(88088);function qr(nt){return function(_t){let{prefixCls:qt,onExpand:bn,record:gn,expanded:Jn,expandable:Un}=_t;const Zn=`${qt}-row-expand-icon`;return Ne.createElement("button",{type:"button",onClick:xi=>{bn(gn,xi),xi.stopPropagation()},className:$e()(Zn,{[`${Zn}-spaced`]:!Un,[`${Zn}-expanded`]:Un&&Jn,[`${Zn}-collapsed`]:Un&&!Jn}),"aria-label":Jn?nt.collapse:nt.expand,"aria-expanded":Jn})}}var no=qr;function $o(nt,ut){return"key"in nt&&nt.key!==void 0&&nt.key!==null?nt.key:nt.dataIndex?Array.isArray(nt.dataIndex)?nt.dataIndex.join("."):nt.dataIndex:ut}function Qo(nt,ut){return ut?`${ut}-${nt}`:`${nt}`}function pa(nt,ut){return typeof nt=="function"?nt(ut):nt}function qo(nt,ut){const _t=pa(nt,ut);return Object.prototype.toString.call(_t)==="[object Object]"?"":_t}var Pn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},ca=Pn,es=ye(88853),ts=function(ut,_t){return Ne.createElement(es.Z,(0,gt.Z)({},ut,{ref:_t,icon:ca}))},Ga=Ne.forwardRef(ts),Ds=Ga,pl=ye(56762);function ma(nt){const ut=Ne.useRef(nt),_t=(0,pl.Z)();return[()=>ut.current,qt=>{ut.current=qt,_t()}]}var ko=ye(3113),Oo=ye(24905),Pa=ye(38854),io=ye(64165),No=ye(20834),ao=ye(40875),Gi=ye(5112),ha=ye(86914),Fa=ye(21970),Bs=ye(92832);function ys(nt){let{value:ut,onChange:_t,filterSearch:qt,tablePrefixCls:bn,locale:gn}=nt;return qt?Ne.createElement("div",{className:`${bn}-filter-dropdown-search`},Ne.createElement(Bs.default,{prefix:Ne.createElement(Fa.Z,null),placeholder:gn.filterSearchPlaceholder,onChange:_t,value:ut,htmlSize:1,className:`${bn}-filter-dropdown-search-input`})):null}var nl=ys,Ui=ye(85108);const Da=nt=>{const{keyCode:ut}=nt;ut===Ui.Z.ENTER&&nt.stopPropagation()};var Is=Ne.forwardRef((nt,ut)=>Ne.createElement("div",{className:nt.className,onClick:_t=>_t.stopPropagation(),onKeyDown:Da,ref:ut},nt.children));function ml(nt){let ut=[];return(nt||[]).forEach(_t=>{let{value:qt,children:bn}=_t;ut.push(qt),bn&&(ut=[].concat((0,ui.Z)(ut),(0,ui.Z)(ml(bn))))}),ut}function Gl(nt){return nt.some(ut=>{let{children:_t}=ut;return _t})}function xo(nt,ut){return typeof ut=="string"||typeof ut=="number"?ut==null?void 0:ut.toString().toLowerCase().includes(nt.trim().toLowerCase()):!1}function Au(nt){let{filters:ut,prefixCls:_t,filteredKeys:qt,filterMultiple:bn,searchValue:gn,filterSearch:Jn}=nt;return ut.map((Un,Zn)=>{const xi=String(Un.value);if(Un.children)return{key:xi||Zn,label:Un.text,popupClassName:`${_t}-dropdown-submenu`,children:Au({filters:Un.children,prefixCls:_t,filteredKeys:qt,filterMultiple:bn,searchValue:gn,filterSearch:Jn})};const ni=bn?Oo.default:Gi.ZP,mi={key:Un.value!==void 0?xi:Zn,label:Ne.createElement(Ne.Fragment,null,Ne.createElement(ni,{checked:qt.includes(xi)}),Ne.createElement("span",null,Un.text))};return gn.trim()?typeof Jn=="function"?Jn(gn,Un)?mi:null:xo(gn,Un.text)?mi:null:mi})}function il(nt){var ut,_t;const{tablePrefixCls:qt,prefixCls:bn,column:gn,dropdownPrefixCls:Jn,columnKey:Un,filterMultiple:Zn,filterMode:xi="menu",filterSearch:ni=!1,filterState:mi,triggerFilter:_i,locale:Ji,children:ji,getPopupContainer:wr}=nt,{filterDropdownOpen:Vi,onFilterDropdownOpenChange:kr,filterResetToDefaultFilteredValue:Er,defaultFilteredValue:Or,filterDropdownVisible:So,onFilterDropdownVisibleChange:Lo}=gn,[Wr,to]=Ne.useState(!1),Ko=!!(mi&&(!((ut=mi.filteredKeys)===null||ut===void 0)&&ut.length||mi.forceFiltered)),Rr=tr=>{to(tr),kr==null||kr(tr),Lo==null||Lo(tr)},lo=(_t=Vi!=null?Vi:So)!==null&&_t!==void 0?_t:Wr,Zr=mi==null?void 0:mi.filteredKeys,[mr,Nr]=ma(Zr||[]),uo=tr=>{let{selectedKeys:Gr}=tr;Nr(Gr)},Mo=(tr,Gr)=>{let{node:Uo,checked:sa}=Gr;uo(Zn?{selectedKeys:tr}:{selectedKeys:sa&&Uo.key?[Uo.key]:[]})};Ne.useEffect(()=>{Wr&&uo({selectedKeys:Zr||[]})},[Zr]);const[Fo,Fr]=Ne.useState([]),Vo=tr=>{Fr(tr)},[_o,na]=Ne.useState(""),ta=tr=>{const{value:Gr}=tr.target;na(Gr)};Ne.useEffect(()=>{Wr||na("")},[Wr]);const Qa=tr=>{const Gr=tr&&tr.length?tr:null;if(Gr===null&&(!mi||!mi.filteredKeys)||(0,vt.Z)(Gr,mi==null?void 0:mi.filteredKeys,!0))return null;_i({column:gn,key:Un,filteredKeys:Gr})},fa=()=>{Rr(!1),Qa(mr())},Wo=function(){let{confirm:tr,closeDropdown:Gr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};tr&&Qa([]),Gr&&Rr(!1),na(""),Nr(Er?(Or||[]).map(Uo=>String(Uo)):[])},Po=function(){let{closeDropdown:tr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};tr&&Rr(!1),Qa(mr())},To=tr=>{tr&&Zr!==void 0&&Nr(Zr||[]),Rr(tr),!tr&&!gn.filterDropdown&&fa()},Ya=$e()({[`${Jn}-menu-without-submenu`]:!Gl(gn.filters||[])}),Ia=tr=>{if(tr.target.checked){const Gr=ml(gn==null?void 0:gn.filters).map(Uo=>String(Uo));Nr(Gr)}else Nr([])},ns=tr=>{let{filters:Gr}=tr;return(Gr||[]).map((Uo,sa)=>{const al=String(Uo.value),zs={title:Uo.text,key:Uo.value!==void 0?al:sa};return Uo.children&&(zs.children=ns({filters:Uo.children})),zs})},Ro=tr=>{var Gr;return Object.assign(Object.assign({},tr),{text:tr.title,value:tr.key,children:((Gr=tr.children)===null||Gr===void 0?void 0:Gr.map(Uo=>Ro(Uo)))||[]})};let bo;if(typeof gn.filterDropdown=="function")bo=gn.filterDropdown({prefixCls:`${Jn}-custom`,setSelectedKeys:tr=>uo({selectedKeys:tr}),selectedKeys:mr(),confirm:Po,clearFilters:Wo,filters:gn.filters,visible:lo,close:()=>{Rr(!1)}});else if(gn.filterDropdown)bo=gn.filterDropdown;else{const tr=mr()||[],Gr=()=>(gn.filters||[]).length===0?Ne.createElement(io.Z,{image:io.Z.PRESENTED_IMAGE_SIMPLE,description:Ji.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):xi==="tree"?Ne.createElement(Ne.Fragment,null,Ne.createElement(nl,{filterSearch:ni,value:_o,onChange:ta,tablePrefixCls:qt,locale:Ji}),Ne.createElement("div",{className:`${qt}-filter-dropdown-tree`},Zn?Ne.createElement(Oo.default,{checked:tr.length===ml(gn.filters).length,indeterminate:tr.length>0&&tr.length<ml(gn.filters).length,className:`${qt}-filter-dropdown-checkall`,onChange:Ia},Ji.filterCheckall):null,Ne.createElement(ha.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Zn,checkStrictly:!Zn,className:`${Jn}-menu`,onCheck:Mo,checkedKeys:tr,selectedKeys:tr,showIcon:!1,treeData:ns({filters:gn.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:_o.trim()?sa=>typeof ni=="function"?ni(_o,Ro(sa)):xo(_o,sa.title):void 0}))):Ne.createElement(Ne.Fragment,null,Ne.createElement(nl,{filterSearch:ni,value:_o,onChange:ta,tablePrefixCls:qt,locale:Ji}),Ne.createElement(No.default,{selectable:!0,multiple:Zn,prefixCls:`${Jn}-menu`,className:Ya,onSelect:uo,onDeselect:uo,selectedKeys:tr,getPopupContainer:wr,openKeys:Fo,onOpenChange:Vo,items:Au({filters:gn.filters||[],filterSearch:ni,prefixCls:bn,filteredKeys:mr(),filterMultiple:Zn,searchValue:_o})})),Uo=()=>Er?(0,vt.Z)((Or||[]).map(sa=>String(sa)),tr,!0):tr.length===0;bo=Ne.createElement(Ne.Fragment,null,Gr(),Ne.createElement("div",{className:`${bn}-dropdown-btns`},Ne.createElement(ko.ZP,{type:"link",size:"small",disabled:Uo(),onClick:()=>Wo()},Ji.filterReset),Ne.createElement(ko.ZP,{type:"primary",size:"small",onClick:fa},Ji.filterConfirm)))}gn.filterDropdown&&(bo=Ne.createElement(ao.J,{selectable:void 0},bo));const Zo=()=>Ne.createElement(Is,{className:`${bn}-dropdown`},bo);let wo;typeof gn.filterIcon=="function"?wo=gn.filterIcon(Ko):gn.filterIcon?wo=gn.filterIcon:wo=Ne.createElement(Ds,null);const{direction:so}=Ne.useContext(Bi.E_);return Ne.createElement("div",{className:`${bn}-column`},Ne.createElement("span",{className:`${qt}-column-title`},ji),Ne.createElement(Pa.Z,{dropdownRender:Zo,trigger:["click"],open:lo,onOpenChange:To,getPopupContainer:wr,placement:so==="rtl"?"bottomLeft":"bottomRight"},Ne.createElement("span",{role:"button",tabIndex:-1,className:$e()(`${bn}-trigger`,{active:Ko}),onClick:tr=>{tr.stopPropagation()}},wo)))}var Nl=il;function vl(nt,ut,_t){let qt=[];return(nt||[]).forEach((bn,gn)=>{var Jn;const Un=Qo(gn,_t);if(bn.filters||"filterDropdown"in bn||"onFilter"in bn)if("filteredValue"in bn){let Zn=bn.filteredValue;"filterDropdown"in bn||(Zn=(Jn=Zn==null?void 0:Zn.map(String))!==null&&Jn!==void 0?Jn:Zn),qt.push({column:bn,key:$o(bn,Un),filteredKeys:Zn,forceFiltered:bn.filtered})}else qt.push({column:bn,key:$o(bn,Un),filteredKeys:ut&&bn.defaultFilteredValue?bn.defaultFilteredValue:void 0,forceFiltered:bn.filtered});"children"in bn&&(qt=[].concat((0,ui.Z)(qt),(0,ui.Z)(vl(bn.children,ut,Un))))}),qt}function fu(nt,ut,_t,qt,bn,gn,Jn,Un){return _t.map((Zn,xi)=>{const ni=Qo(xi,Un),{filterMultiple:mi=!0,filterMode:_i,filterSearch:Ji}=Zn;let ji=Zn;if(ji.filters||ji.filterDropdown){const wr=$o(ji,ni),Vi=qt.find(kr=>{let{key:Er}=kr;return wr===Er});ji=Object.assign(Object.assign({},ji),{title:kr=>Ne.createElement(Nl,{tablePrefixCls:nt,prefixCls:`${nt}-filter`,dropdownPrefixCls:ut,column:ji,columnKey:wr,filterState:Vi,filterMultiple:mi,filterMode:_i,filterSearch:Ji,triggerFilter:gn,locale:bn,getPopupContainer:Jn},pa(Zn.title,kr))})}return"children"in ji&&(ji=Object.assign(Object.assign({},ji),{children:fu(nt,ut,ji.children,qt,bn,gn,Jn,ni)})),ji})}function yl(nt){const ut={};return nt.forEach(_t=>{let{key:qt,filteredKeys:bn,column:gn}=_t;const{filters:Jn,filterDropdown:Un}=gn;if(Un)ut[qt]=bn||null;else if(Array.isArray(bn)){const Zn=ml(Jn);ut[qt]=Zn.filter(xi=>bn.includes(String(xi)))}else ut[qt]=null}),ut}function rl(nt,ut){return ut.reduce((_t,qt)=>{const{column:{onFilter:bn,filters:gn},filteredKeys:Jn}=qt;return bn&&Jn&&Jn.length?_t.filter(Un=>Jn.some(Zn=>{const xi=ml(gn),ni=xi.findIndex(_i=>String(_i)===String(Zn)),mi=ni!==-1?xi[ni]:Zn;return bn(mi,Un)})):_t},nt)}const Sl=nt=>nt.flatMap(ut=>"children"in ut?[ut].concat((0,ui.Z)(Sl(ut.children||[]))):[ut]);function oc(nt){let{prefixCls:ut,dropdownPrefixCls:_t,mergedColumns:qt,onFilterChange:bn,getPopupContainer:gn,locale:Jn}=nt;const Un=Ne.useMemo(()=>Sl(qt||[]),[qt]),[Zn,xi]=Ne.useState(()=>vl(Un,!0)),ni=Ne.useMemo(()=>{const ji=vl(Un,!1);if(ji.length===0)return ji;let wr=!0,Vi=!0;if(ji.forEach(kr=>{let{filteredKeys:Er}=kr;Er!==void 0?wr=!1:Vi=!1}),wr){const kr=(Un||[]).map((Er,Or)=>$o(Er,Qo(Or)));return Zn.filter(Er=>{let{key:Or}=Er;return kr.includes(Or)}).map(Er=>{const Or=Un[kr.findIndex(So=>So===Er.key)];return Object.assign(Object.assign({},Er),{column:Object.assign(Object.assign({},Er.column),Or),forceFiltered:Or.filtered})})}return ji},[Un,Zn]),mi=Ne.useMemo(()=>yl(ni),[ni]),_i=ji=>{const wr=ni.filter(Vi=>{let{key:kr}=Vi;return kr!==ji.key});wr.push(ji),xi(wr),bn(yl(wr),wr)};return[ji=>fu(ut,_t,ji,ni,Jn,_i,gn),ni,mi]}var Sc=oc;function xc(nt,ut,_t){const qt=Ne.useRef({});function bn(gn){if(!qt.current||qt.current.data!==nt||qt.current.childrenColumnName!==ut||qt.current.getRowKey!==_t){let Un=function(Zn){Zn.forEach((xi,ni)=>{const mi=_t(xi,ni);Jn.set(mi,xi),xi&&typeof xi=="object"&&ut in xi&&Un(xi[ut]||[])})};const Jn=new Map;Un(nt),qt.current={data:nt,childrenColumnName:ut,kvMap:Jn,getRowKey:_t}}return qt.current.kvMap.get(gn)}return[bn]}var Qc=ye(50371),gu=function(nt,ut){var _t={};for(var qt in nt)Object.prototype.hasOwnProperty.call(nt,qt)&&ut.indexOf(qt)<0&&(_t[qt]=nt[qt]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bn=0,qt=Object.getOwnPropertySymbols(nt);bn<qt.length;bn++)ut.indexOf(qt[bn])<0&&Object.prototype.propertyIsEnumerable.call(nt,qt[bn])&&(_t[qt[bn]]=nt[qt[bn]]);return _t};const zl=10;function xl(nt,ut){const _t={current:nt.current,pageSize:nt.pageSize};return Object.keys(ut&&typeof ut=="object"?ut:{}).forEach(bn=>{const gn=nt[bn];typeof gn!="function"&&(_t[bn]=gn)}),_t}function Tl(nt,ut,_t){const qt=_t&&typeof _t=="object"?_t:{},{total:bn=0}=qt,gn=gu(qt,["total"]),[Jn,Un]=(0,Ne.useState)(()=>({current:"defaultCurrent"in gn?gn.defaultCurrent:1,pageSize:"defaultPageSize"in gn?gn.defaultPageSize:zl})),Zn=(0,Qc.Z)(Jn,gn,{total:bn>0?bn:nt}),xi=Math.ceil((bn||nt)/Zn.pageSize);Zn.current>xi&&(Zn.current=xi||1);const ni=(_i,Ji)=>{Un({current:_i!=null?_i:1,pageSize:Ji||Zn.pageSize})},mi=(_i,Ji)=>{var ji;_t&&((ji=_t.onChange)===null||ji===void 0||ji.call(_t,_i,Ji)),ni(_i,Ji),ut(_i,Ji||(Zn==null?void 0:Zn.pageSize))};return _t===!1?[{},()=>{}]:[Object.assign(Object.assign({},Zn),{onChange:mi}),ni]}var pu=Tl,wc=ye(18290),mu=ye(35654),Xo=ye(90782),va=ye(71430),dl=ye(35788);const Cs={},Ss="SELECT_ALL",os="SELECT_INVERT",hs="SELECT_NONE",Ls=[],xs=(nt,ut)=>{let _t=[];return(ut||[]).forEach(qt=>{_t.push(qt),qt&&typeof qt=="object"&&nt in qt&&(_t=[].concat((0,ui.Z)(_t),(0,ui.Z)(xs(nt,qt[nt]))))}),_t};var Ts=(nt,ut)=>{const{preserveSelectedRowKeys:_t,selectedRowKeys:qt,defaultSelectedRowKeys:bn,getCheckboxProps:gn,onChange:Jn,onSelect:Un,onSelectAll:Zn,onSelectInvert:xi,onSelectNone:ni,onSelectMultiple:mi,columnWidth:_i,type:Ji,selections:ji,fixed:wr,renderCell:Vi,hideSelectAll:kr,checkStrictly:Er=!0}=ut||{},{prefixCls:Or,data:So,pageData:Lo,getRecordByKey:Wr,getRowKey:to,expandType:Ko,childrenColumnName:Rr,locale:lo,getPopupContainer:Zr}=nt,[mr,Nr]=(0,dl.Z)(qt||bn||Ls,{value:qt}),uo=Ne.useRef(new Map),Mo=(0,Ne.useCallback)(Ro=>{if(_t){const bo=new Map;Ro.forEach(Zo=>{let wo=Wr(Zo);!wo&&uo.current.has(Zo)&&(wo=uo.current.get(Zo)),bo.set(Zo,wo)}),uo.current=bo}},[Wr,_t]);Ne.useEffect(()=>{Mo(mr)},[mr]);const{keyEntities:Fo}=(0,Ne.useMemo)(()=>{if(Er)return{keyEntities:null};let Ro=So;if(_t){const bo=new Set(So.map((wo,so)=>to(wo,so))),Zo=Array.from(uo.current).reduce((wo,so)=>{let[tr,Gr]=so;return bo.has(tr)?wo:wo.concat(Gr)},[]);Ro=[].concat((0,ui.Z)(Ro),(0,ui.Z)(Zo))}return(0,va.I8)(Ro,{externalGetKey:to,childrenPropName:Rr})},[So,to,Er,Rr,_t]),Fr=(0,Ne.useMemo)(()=>xs(Rr,Lo),[Rr,Lo]),Vo=(0,Ne.useMemo)(()=>{const Ro=new Map;return Fr.forEach((bo,Zo)=>{const wo=to(bo,Zo),so=(gn?gn(bo):null)||{};Ro.set(wo,so)}),Ro},[Fr,to,gn]),_o=(0,Ne.useCallback)(Ro=>{var bo;return!!(!((bo=Vo.get(to(Ro)))===null||bo===void 0)&&bo.disabled)},[Vo,to]),[na,ta]=(0,Ne.useMemo)(()=>{if(Er)return[mr||[],[]];const{checkedKeys:Ro,halfCheckedKeys:bo}=(0,Xo.S)(mr,!0,Fo,_o);return[Ro||[],bo]},[mr,Er,Fo,_o]),Qa=(0,Ne.useMemo)(()=>{const Ro=Ji==="radio"?na.slice(0,1):na;return new Set(Ro)},[na,Ji]),fa=(0,Ne.useMemo)(()=>Ji==="radio"?new Set:new Set(ta),[ta,Ji]),[Wo,Po]=(0,Ne.useState)(null);Ne.useEffect(()=>{ut||Nr(Ls)},[!!ut]);const To=(0,Ne.useCallback)((Ro,bo)=>{let Zo,wo;Mo(Ro),_t?(Zo=Ro,wo=Ro.map(so=>uo.current.get(so))):(Zo=[],wo=[],Ro.forEach(so=>{const tr=Wr(so);tr!==void 0&&(Zo.push(so),wo.push(tr))})),Nr(Zo),Jn==null||Jn(Zo,wo,{type:bo})},[Nr,Wr,Jn,_t]),Ya=(0,Ne.useCallback)((Ro,bo,Zo,wo)=>{if(Un){const so=Zo.map(tr=>Wr(tr));Un(Wr(Ro),bo,so,wo)}To(Zo,"single")},[Un,Wr,To]),Ia=(0,Ne.useMemo)(()=>!ji||kr?null:(ji===!0?[Ss,os,hs]:ji).map(bo=>bo===Ss?{key:"all",text:lo.selectionAll,onSelect(){To(So.map((Zo,wo)=>to(Zo,wo)).filter(Zo=>{const wo=Vo.get(Zo);return!(wo!=null&&wo.disabled)||Qa.has(Zo)}),"all")}}:bo===os?{key:"invert",text:lo.selectInvert,onSelect(){const Zo=new Set(Qa);Lo.forEach((so,tr)=>{const Gr=to(so,tr),Uo=Vo.get(Gr);Uo!=null&&Uo.disabled||(Zo.has(Gr)?Zo.delete(Gr):Zo.add(Gr))});const wo=Array.from(Zo);xi&&xi(wo),To(wo,"invert")}}:bo===hs?{key:"none",text:lo.selectNone,onSelect(){ni==null||ni(),To(Array.from(Qa).filter(Zo=>{const wo=Vo.get(Zo);return wo==null?void 0:wo.disabled}),"none")}}:bo).map(bo=>Object.assign(Object.assign({},bo),{onSelect:function(){for(var Zo,wo,so=arguments.length,tr=new Array(so),Gr=0;Gr<so;Gr++)tr[Gr]=arguments[Gr];(wo=bo.onSelect)===null||wo===void 0||(Zo=wo).call.apply(Zo,[bo].concat(tr)),Po(null)}})),[ji,Qa,Lo,to,xi,To]);return[(0,Ne.useCallback)(Ro=>{var bo;if(!ut)return Ro.filter(Wa=>Wa!==Cs);let Zo=(0,ui.Z)(Ro);const wo=new Set(Qa),so=Fr.map(to).filter(Wa=>!Vo.get(Wa).disabled),tr=so.every(Wa=>wo.has(Wa)),Gr=so.some(Wa=>wo.has(Wa)),Uo=()=>{const Wa=[];tr?so.forEach(is=>{wo.delete(is),Wa.push(is)}):so.forEach(is=>{wo.has(is)||(wo.add(is),Wa.push(is))});const _a=Array.from(wo);Zn==null||Zn(!tr,_a.map(is=>Wr(is)),Wa.map(is=>Wr(is))),To(_a,"all"),Po(null)};let sa;if(Ji!=="radio"){let Wa;if(Ia){const xa={getPopupContainer:Zr,items:Ia.map((ss,Js)=>{const{key:Xa,text:zo,onSelect:Ms}=ss;return{key:Xa!=null?Xa:Js,onClick:()=>{Ms==null||Ms(so)},label:zo}})};Wa=Ne.createElement("div",{className:`${Or}-selection-extra`},Ne.createElement(Pa.Z,{menu:xa,getPopupContainer:Zr},Ne.createElement("span",null,Ne.createElement(wc.Z,null))))}const _a=Fr.map((xa,ss)=>{const Js=to(xa,ss),Xa=Vo.get(Js)||{};return Object.assign({checked:wo.has(Js)},Xa)}).filter(xa=>{let{disabled:ss}=xa;return ss}),is=!!_a.length&&_a.length===Fr.length,bs=is&&_a.every(xa=>{let{checked:ss}=xa;return ss}),Gs=is&&_a.some(xa=>{let{checked:ss}=xa;return ss});sa=!kr&&Ne.createElement("div",{className:`${Or}-selection`},Ne.createElement(Oo.default,{checked:is?bs:!!Fr.length&&tr,indeterminate:is?!bs&&Gs:!tr&&Gr,onChange:Uo,disabled:Fr.length===0||is,"aria-label":Wa?"Custom selection":"Select all",skipGroup:!0}),Wa)}let al;Ji==="radio"?al=(Wa,_a,is)=>{const bs=to(_a,is),Gs=wo.has(bs);return{node:Ne.createElement(Gi.ZP,Object.assign({},Vo.get(bs),{checked:Gs,onClick:xa=>xa.stopPropagation(),onChange:xa=>{wo.has(bs)||Ya(bs,!0,[bs],xa.nativeEvent)}})),checked:Gs}}:al=(Wa,_a,is)=>{var bs;const Gs=to(_a,is),xa=wo.has(Gs),ss=fa.has(Gs),Js=Vo.get(Gs);let Xa;return Ko==="nest"?Xa=ss:Xa=(bs=Js==null?void 0:Js.indeterminate)!==null&&bs!==void 0?bs:ss,{node:Ne.createElement(Oo.default,Object.assign({},Js,{indeterminate:Xa,checked:xa,skipGroup:!0,onClick:zo=>zo.stopPropagation(),onChange:zo=>{let{nativeEvent:Ms}=zo;const{shiftKey:Ys}=Ms;let Wu=-1,vu=-1;if(Ys&&Er){const $a=new Set([Wo,Gs]);so.some((Ml,Ps)=>{if($a.has(Ml))if(Wu===-1)Wu=Ps;else return vu=Ps,!0;return!1})}if(vu!==-1&&Wu!==vu&&Er){const $a=so.slice(Wu,vu+1),Ml=[];xa?$a.forEach(ps=>{wo.has(ps)&&(Ml.push(ps),wo.delete(ps))}):$a.forEach(ps=>{wo.has(ps)||(Ml.push(ps),wo.add(ps))});const Ps=Array.from(wo);mi==null||mi(!xa,Ps.map(ps=>Wr(ps)),Ml.map(ps=>Wr(ps))),To(Ps,"multiple")}else{const $a=na;if(Er){const Ml=xa?(0,mu._5)($a,Gs):(0,mu.L0)($a,Gs);Ya(Gs,!xa,Ml,Ms)}else{const Ml=(0,Xo.S)([].concat((0,ui.Z)($a),[Gs]),!0,Fo,_o),{checkedKeys:Ps,halfCheckedKeys:ps}=Ml;let Nu=Ps;if(xa){const Cc=new Set(Ps);Cc.delete(Gs),Nu=(0,Xo.S)(Array.from(Cc),{checked:!1,halfCheckedKeys:ps},Fo,_o).checkedKeys}Ya(Gs,!xa,Nu,Ms)}}Po(xa?null:Gs)}})),checked:xa}};const zs=(Wa,_a,is)=>{const{node:bs,checked:Gs}=al(Wa,_a,is);return Vi?Vi(Gs,_a,is,bs):bs};if(!Zo.includes(Cs))if(Zo.findIndex(Wa=>{var _a;return((_a=Wa[Vr])===null||_a===void 0?void 0:_a.columnType)==="EXPAND_COLUMN"})===0){const[Wa,..._a]=Zo;Zo=[Wa,Cs].concat((0,ui.Z)(_a))}else Zo=[Cs].concat((0,ui.Z)(Zo));const Al=Zo.indexOf(Cs);Zo=Zo.filter((Wa,_a)=>Wa!==Cs||_a===Al);const Na=Zo[Al-1],Ua=Zo[Al+1];let Do=wr;Do===void 0&&((Ua==null?void 0:Ua.fixed)!==void 0?Do=Ua.fixed:(Na==null?void 0:Na.fixed)!==void 0&&(Do=Na.fixed)),Do&&Na&&((bo=Na[Vr])===null||bo===void 0?void 0:bo.columnType)==="EXPAND_COLUMN"&&Na.fixed===void 0&&(Na.fixed=Do);const Vs=$e()(`${Or}-selection-col`,{[`${Or}-selection-col-with-dropdown`]:ji&&Ji==="checkbox"}),Ll={fixed:Do,width:_i,className:`${Or}-selection-column`,title:ut.columnTitle||sa,render:zs,onCell:ut.onCell,[Vr]:{className:Vs}};return Zo.map(Wa=>Wa===Cs?Ll:Wa)},[to,Fr,ut,na,Qa,fa,_i,Ia,Ko,Wo,Vo,mi,Ya,_o]),Qa]},ka=ye(35323),Hu=ye(19155),Ol=ye(6848);const El="ascend",Hr="descend";function Lu(nt){return typeof nt.sorter=="object"&&typeof nt.sorter.multiple=="number"?nt.sorter.multiple:!1}function Zt(nt){return typeof nt=="function"?nt:nt&&typeof nt=="object"&&nt.compare?nt.compare:!1}function di(nt,ut){return ut?nt[nt.indexOf(ut)+1]:nt[0]}function Mu(nt,ut,_t){let qt=[];function bn(gn,Jn){qt.push({column:gn,key:$o(gn,Jn),multiplePriority:Lu(gn),sortOrder:gn.sortOrder})}return(nt||[]).forEach((gn,Jn)=>{const Un=Qo(Jn,_t);gn.children?("sortOrder"in gn&&bn(gn,Un),qt=[].concat((0,ui.Z)(qt),(0,ui.Z)(Mu(gn.children,ut,Un)))):gn.sorter&&("sortOrder"in gn?bn(gn,Un):ut&&gn.defaultSortOrder&&qt.push({column:gn,key:$o(gn,Un),multiplePriority:Lu(gn),sortOrder:gn.defaultSortOrder}))}),qt}function ku(nt,ut,_t,qt,bn,gn,Jn,Un){return(ut||[]).map((Zn,xi)=>{const ni=Qo(xi,Un);let mi=Zn;if(mi.sorter){const _i=mi.sortDirections||bn,Ji=mi.showSorterTooltip===void 0?Jn:mi.showSorterTooltip,ji=$o(mi,ni),wr=_t.find(Ko=>{let{key:Rr}=Ko;return Rr===ji}),Vi=wr?wr.sortOrder:null,kr=di(_i,Vi);let Er;if(Zn.sortIcon)Er=Zn.sortIcon({sortOrder:Vi});else{const Ko=_i.includes(El)&&Ne.createElement(Hu.Z,{className:$e()(`${nt}-column-sorter-up`,{active:Vi===El})}),Rr=_i.includes(Hr)&&Ne.createElement(ka.Z,{className:$e()(`${nt}-column-sorter-down`,{active:Vi===Hr})});Er=Ne.createElement("span",{className:$e()(`${nt}-column-sorter`,{[`${nt}-column-sorter-full`]:!!(Ko&&Rr)})},Ne.createElement("span",{className:`${nt}-column-sorter-inner`,"aria-hidden":"true"},Ko,Rr))}const{cancelSort:Or,triggerAsc:So,triggerDesc:Lo}=gn||{};let Wr=Or;kr===Hr?Wr=Lo:kr===El&&(Wr=So);const to=typeof Ji=="object"?Ji:{title:Wr};mi=Object.assign(Object.assign({},mi),{className:$e()(mi.className,{[`${nt}-column-sort`]:Vi}),title:Ko=>{const Rr=Ne.createElement("div",{className:`${nt}-column-sorters`},Ne.createElement("span",{className:`${nt}-column-title`},pa(Zn.title,Ko)),Er);return Ji?Ne.createElement(Ol.Z,Object.assign({},to),Rr):Rr},onHeaderCell:Ko=>{const Rr=Zn.onHeaderCell&&Zn.onHeaderCell(Ko)||{},lo=Rr.onClick,Zr=Rr.onKeyDown;Rr.onClick=uo=>{qt({column:Zn,key:ji,sortOrder:kr,multiplePriority:Lu(Zn)}),lo==null||lo(uo)},Rr.onKeyDown=uo=>{uo.keyCode===Ui.Z.ENTER&&(qt({column:Zn,key:ji,sortOrder:kr,multiplePriority:Lu(Zn)}),Zr==null||Zr(uo))};const mr=qo(Zn.title,{}),Nr=mr==null?void 0:mr.toString();return Vi?Rr["aria-sort"]=Vi==="ascend"?"ascending":"descending":Rr["aria-label"]=Nr||"",Rr.className=$e()(Rr.className,`${nt}-column-has-sorters`),Rr.tabIndex=0,Zn.ellipsis&&(Rr.title=(mr!=null?mr:"").toString()),Rr}})}return"children"in mi&&(mi=Object.assign(Object.assign({},mi),{children:ku(nt,mi.children,_t,qt,bn,gn,Jn,ni)})),mi})}function _l(nt){const{column:ut,sortOrder:_t}=nt;return{column:ut,order:_t,field:ut.dataIndex,columnKey:ut.key}}function $l(nt){const ut=nt.filter(_t=>{let{sortOrder:qt}=_t;return qt}).map(_l);return ut.length===0&&nt.length?Object.assign(Object.assign({},_l(nt[nt.length-1])),{column:void 0}):ut.length<=1?ut[0]||{}:ut}function jl(nt,ut,_t){const qt=ut.slice().sort((Jn,Un)=>Un.multiplePriority-Jn.multiplePriority),bn=nt.slice(),gn=qt.filter(Jn=>{let{column:{sorter:Un},sortOrder:Zn}=Jn;return Zt(Un)&&Zn});return gn.length?bn.sort((Jn,Un)=>{for(let Zn=0;Zn<gn.length;Zn+=1){const xi=gn[Zn],{column:{sorter:ni},sortOrder:mi}=xi,_i=Zt(ni);if(_i&&mi){const Ji=_i(Jn,Un,mi);if(Ji!==0)return mi===El?Ji:-Ji}}return 0}).map(Jn=>{const Un=Jn[_t];return Un?Object.assign(Object.assign({},Jn),{[_t]:jl(Un,ut,_t)}):Jn}):bn}function Pc(nt){let{prefixCls:ut,mergedColumns:_t,onSorterChange:qt,sortDirections:bn,tableLocale:gn,showSorterTooltip:Jn}=nt;const[Un,Zn]=Ne.useState(Mu(_t,!0)),xi=Ne.useMemo(()=>{let ji=!0;const wr=Mu(_t,!1);if(!wr.length)return Un;const Vi=[];function kr(Or){ji?Vi.push(Or):Vi.push(Object.assign(Object.assign({},Or),{sortOrder:null}))}let Er=null;return wr.forEach(Or=>{Er===null?(kr(Or),Or.sortOrder&&(Or.multiplePriority===!1?ji=!1:Er=!0)):(Er&&Or.multiplePriority!==!1||(ji=!1),kr(Or))}),Vi},[_t,Un]),ni=Ne.useMemo(()=>{const ji=xi.map(wr=>{let{column:Vi,sortOrder:kr}=wr;return{column:Vi,order:kr}});return{sortColumns:ji,sortColumn:ji[0]&&ji[0].column,sortOrder:ji[0]&&ji[0].order}},[xi]);function mi(ji){let wr;ji.multiplePriority===!1||!xi.length||xi[0].multiplePriority===!1?wr=[ji]:wr=[].concat((0,ui.Z)(xi.filter(Vi=>{let{key:kr}=Vi;return kr!==ji.key})),[ji]),Zn(wr),qt($l(wr),wr)}return[ji=>ku(ut,ji,xi,mi,bn,gn,Jn),xi,ni,()=>$l(xi)]}function Ic(nt,ut){return nt.map(_t=>{const qt=Object.assign({},_t);return qt.title=pa(_t.title,ut),"children"in qt&&(qt.children=Ic(qt.children,ut)),qt})}function Os(nt){return[Ne.useCallback(_t=>Ic(_t,nt),[nt])]}var Io=Br((nt,ut)=>{const{_renderTimes:_t}=nt,{_renderTimes:qt}=ut;return _t!==qt}),wl=Ot((nt,ut)=>{const{_renderTimes:_t}=nt,{_renderTimes:qt}=ut;return _t!==qt}),Il=ye(64993),ws=ye(17313),ya=ye(83116),ol=ye(37613),_e=nt=>{const{componentCls:ut}=nt,_t=`${nt.lineWidth}px ${nt.lineType} ${nt.tableBorderColor}`,qt=(bn,gn,Jn)=>({[`&${ut}-${bn}`]:{[`> ${ut}-container`]:{[`> ${ut}-content, > ${ut}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${ut}-expanded-row-fixed`]:{margin:`-${gn}px -${Jn+nt.lineWidth}px`}}}}}});return{[`${ut}-wrapper`]:{[`${ut}${ut}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${ut}-title`]:{border:_t,borderBottom:0},[`> ${ut}-container`]:{borderInlineStart:_t,borderTop:_t,[`
> ${ut}-content,
> ${ut}-header,
> ${ut}-body,
> ${ut}-summary
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:_t},"> thead":{"> tr:not(:last-child) > th":{borderBottom:_t},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${ut}-cell-fix-right-first::after`]:{borderInlineEnd:_t}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${ut}-expanded-row-fixed`]:{margin:`-${nt.tablePaddingVertical}px -${nt.tablePaddingHorizontal+nt.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:nt.lineWidth,bottom:0,borderInlineEnd:_t,content:'""'}}}}}},[`&${ut}-scroll-horizontal`]:{[`> ${ut}-container > ${ut}-body`]:{"> table > tbody":{[`
> tr${ut}-expanded-row,
> tr${ut}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},qt("middle",nt.tablePaddingVerticalMiddle,nt.tablePaddingHorizontalMiddle)),qt("small",nt.tablePaddingVerticalSmall,nt.tablePaddingHorizontalSmall)),{[`> ${ut}-footer`]:{border:_t,borderTop:0}}),[`${ut}-cell`]:{[`${ut}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${nt.lineWidth}px 0 ${nt.lineWidth}px ${nt.tableHeaderBg}`}},[`${ut}-bordered ${ut}-cell-scrollbar`]:{borderInlineEnd:_t}}}},nn=nt=>{const{componentCls:ut}=nt;return{[`${ut}-wrapper`]:{[`${ut}-cell-ellipsis`]:Object.assign(Object.assign({},ws.vS),{wordBreak:"keep-all",[`
&${ut}-cell-fix-left-last,
&${ut}-cell-fix-right-first
`]:{overflow:"visible",[`${ut}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${ut}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Tn=nt=>{const{componentCls:ut}=nt;return{[`${ut}-wrapper`]:{[`${ut}-tbody > tr${ut}-placeholder`]:{textAlign:"center",color:nt.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:nt.colorBgContainer}}}}},Wn=ye(15969),ci=nt=>{const{componentCls:ut,antCls:_t,controlInteractiveSize:qt,motionDurationSlow:bn,lineWidth:gn,paddingXS:Jn,lineType:Un,tableBorderColor:Zn,tableExpandIconBg:xi,tableExpandColumnWidth:ni,borderRadius:mi,fontSize:_i,fontSizeSM:Ji,lineHeight:ji,tablePaddingVertical:wr,tablePaddingHorizontal:Vi,tableExpandedRowBg:kr,paddingXXS:Er}=nt,Or=qt/2-gn,So=Or*2+gn*3,Lo=`${gn}px ${Un} ${Zn}`,Wr=Er-gn;return{[`${ut}-wrapper`]:{[`${ut}-expand-icon-col`]:{width:ni},[`${ut}-row-expand-icon-cell`]:{textAlign:"center",[`${ut}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${ut}-row-indent`]:{height:1,float:"left"},[`${ut}-row-expand-icon`]:Object.assign(Object.assign({},(0,Wn.N)(nt)),{position:"relative",float:"left",boxSizing:"border-box",width:So,height:So,padding:0,color:"inherit",lineHeight:`${So}px`,background:xi,border:Lo,borderRadius:mi,transform:`scale(${qt/So})`,transition:`all ${bn}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${bn} ease-out`,content:'""'},"&::before":{top:Or,insetInlineEnd:Wr,insetInlineStart:Wr,height:gn},"&::after":{top:Wr,bottom:Wr,insetInlineStart:Or,width:gn,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${ut}-row-indent + ${ut}-row-expand-icon`]:{marginTop:(_i*ji-gn*3)/2-Math.ceil((Ji*1.4-gn*3)/2),marginInlineEnd:Jn},[`tr${ut}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:kr}},[`${_t}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${ut}-expanded-row-fixed`]:{position:"relative",margin:`-${wr}px -${Vi}px`,padding:`${wr}px ${Vi}px`}}}},lr=nt=>{const{componentCls:ut,antCls:_t,iconCls:qt,tableFilterDropdownWidth:bn,tableFilterDropdownSearchWidth:gn,paddingXXS:Jn,paddingXS:Un,colorText:Zn,lineWidth:xi,lineType:ni,tableBorderColor:mi,tableHeaderIconColor:_i,fontSizeSM:Ji,tablePaddingHorizontal:ji,borderRadius:wr,motionDurationSlow:Vi,colorTextDescription:kr,colorPrimary:Er,tableHeaderFilterActiveBg:Or,colorTextDisabled:So,tableFilterDropdownBg:Lo,tableFilterDropdownHeight:Wr,controlItemBgHover:to,controlItemBgActive:Ko,boxShadowSecondary:Rr,filterDropdownMenuBg:lo}=nt,Zr=`${_t}-dropdown`,mr=`${ut}-filter-dropdown`,Nr=`${_t}-tree`,uo=`${xi}px ${ni} ${mi}`;return[{[`${ut}-wrapper`]:{[`${ut}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${ut}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Jn,marginInline:`${Jn}px ${-ji/2}px`,padding:`0 ${Jn}px`,color:_i,fontSize:Ji,borderRadius:wr,cursor:"pointer",transition:`all ${Vi}`,"&:hover":{color:kr,background:Or},"&.active":{color:Er}}}},{[`${_t}-dropdown`]:{[mr]:Object.assign(Object.assign({},(0,ws.Wf)(nt)),{minWidth:bn,backgroundColor:Lo,borderRadius:wr,boxShadow:Rr,overflow:"hidden",[`${Zr}-menu`]:{maxHeight:Wr,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:lo,"&:empty::after":{display:"block",padding:`${Un}px 0`,color:So,fontSize:Ji,textAlign:"center",content:'"Not Found"'}},[`${mr}-tree`]:{paddingBlock:`${Un}px 0`,paddingInline:Un,[Nr]:{padding:0},[`${Nr}-treenode ${Nr}-node-content-wrapper:hover`]:{backgroundColor:to},[`${Nr}-treenode-checkbox-checked ${Nr}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Ko}}},[`${mr}-search`]:{padding:Un,borderBottom:uo,"&-input":{input:{minWidth:gn},[qt]:{color:So}}},[`${mr}-checkall`]:{width:"100%",marginBottom:Jn,marginInlineStart:Jn},[`${mr}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Un-xi}px ${Un}px`,overflow:"hidden",borderTop:uo}})}},{[`${_t}-dropdown ${mr}, ${mr}-submenu`]:{[`${_t}-checkbox-wrapper + span`]:{paddingInlineStart:Un,color:Zn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},qi=nt=>{const{componentCls:ut,lineWidth:_t,colorSplit:qt,motionDurationSlow:bn,zIndexTableFixed:gn,tableBg:Jn,zIndexTableSticky:Un}=nt,Zn=qt;return{[`${ut}-wrapper`]:{[`
${ut}-cell-fix-left,
${ut}-cell-fix-right
`]:{position:"sticky !important",zIndex:gn,background:Jn},[`
${ut}-cell-fix-left-first::after,
${ut}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-_t,width:30,transform:"translateX(100%)",transition:`box-shadow ${bn}`,content:'""',pointerEvents:"none"},[`${ut}-cell-fix-left-all::after`]:{display:"none"},[`
${ut}-cell-fix-right-first::after,
${ut}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:-_t,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${bn}`,content:'""',pointerEvents:"none"},[`${ut}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Un+1,width:30,transition:`box-shadow ${bn}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${ut}-ping-left`]:{[`&:not(${ut}-has-fix-left) ${ut}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Zn}`}},[`
${ut}-cell-fix-left-first::after,
${ut}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${Zn}`},[`${ut}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${ut}-ping-right`]:{[`&:not(${ut}-has-fix-right) ${ut}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Zn}`}},[`
${ut}-cell-fix-right-first::after,
${ut}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${Zn}`}}}}},Cr=nt=>{const{componentCls:ut,antCls:_t}=nt;return{[`${ut}-wrapper`]:{[`${ut}-pagination${_t}-pagination`]:{margin:`${nt.margin}px 0`},[`${ut}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:nt.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},er=nt=>{const{componentCls:ut,tableRadius:_t}=nt;return{[`${ut}-wrapper`]:{[ut]:{[`${ut}-title, ${ut}-header`]:{borderRadius:`${_t}px ${_t}px 0 0`},[`${ut}-title + ${ut}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${ut}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:_t,borderStartEndRadius:_t,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:_t},"> *:last-child":{borderStartEndRadius:_t}}},"&-footer":{borderRadius:`0 0 ${_t}px ${_t}px`}}}}},fo=nt=>{const{componentCls:ut}=nt;return{[`${ut}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${ut}-pagination-left`]:{justifyContent:"flex-end"},[`${ut}-pagination-right`]:{justifyContent:"flex-start"},[`${ut}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${ut}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${ut}-row-indent`]:{float:"right"}}}}},vo=nt=>{const{componentCls:ut,antCls:_t,iconCls:qt,fontSizeIcon:bn,padding:gn,paddingXS:Jn,tableHeaderIconColor:Un,tableHeaderIconColorHover:Zn,tableSelectionColumnWidth:xi}=nt;return{[`${ut}-wrapper`]:{[`${ut}-selection-col`]:{width:xi,[`&${ut}-selection-col-with-dropdown`]:{width:xi+bn+gn/4}},[`${ut}-bordered ${ut}-selection-col`]:{width:xi+Jn*2,[`&${ut}-selection-col-with-dropdown`]:{width:xi+bn+gn/4+Jn*2}},[`
table tr th${ut}-selection-column,
table tr td${ut}-selection-column
`]:{paddingInlineEnd:nt.paddingXS,paddingInlineStart:nt.paddingXS,textAlign:"center",[`${_t}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${ut}-selection-column${ut}-cell-fix-left`]:{zIndex:nt.zIndexTableFixed+1},[`table tr th${ut}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${ut}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${ut}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${nt.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${nt.tablePaddingHorizontal/4}px`,[qt]:{color:Un,fontSize:bn,verticalAlign:"baseline","&:hover":{color:Zn}}}}}},po=nt=>{const{componentCls:ut}=nt,_t=(qt,bn,gn,Jn)=>({[`${ut}${ut}-${qt}`]:{fontSize:Jn,[`
${ut}-title,
${ut}-footer,
${ut}-cell,
${ut}-thead > tr > th,
${ut}-tbody > tr > th,
${ut}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${bn}px ${gn}px`},[`${ut}-filter-trigger`]:{marginInlineEnd:`-${gn/2}px`},[`${ut}-expanded-row-fixed`]:{margin:`-${bn}px -${gn}px`},[`${ut}-tbody`]:{[`${ut}-wrapper:only-child ${ut}`]:{marginBlock:`-${bn}px`,marginInline:`${nt.tableExpandColumnWidth-gn}px -${gn}px`}},[`${ut}-selection-column`]:{paddingInlineStart:`${gn/4}px`}}});return{[`${ut}-wrapper`]:Object.assign(Object.assign({},_t("middle",nt.tablePaddingVerticalMiddle,nt.tablePaddingHorizontalMiddle,nt.tableFontSizeMiddle)),_t("small",nt.tablePaddingVerticalSmall,nt.tablePaddingHorizontalSmall,nt.tableFontSizeSmall))}},aa=nt=>{const{componentCls:ut,marginXXS:_t,fontSizeIcon:qt,tableHeaderIconColor:bn,tableHeaderIconColorHover:gn}=nt;return{[`${ut}-wrapper`]:{[`${ut}-thead th${ut}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${nt.motionDurationSlow}`,"&:hover":{background:nt.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:nt.colorPrimary},[`
&${ut}-cell-fix-left:hover,
&${ut}-cell-fix-right:hover
`]:{background:nt.tableFixedHeaderSortActiveBg}},[`${ut}-thead th${ut}-column-sort`]:{background:nt.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${ut}-column-sort`]:{background:nt.tableBodySortBg},[`${ut}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${ut}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${ut}-column-sorter`]:{marginInlineStart:_t,color:bn,fontSize:0,transition:`color ${nt.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:qt,"&.active":{color:nt.colorPrimary}},[`${ut}-column-sorter-up + ${ut}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${ut}-column-sorters:hover ${ut}-column-sorter`]:{color:gn}}}},Sa=nt=>{const{componentCls:ut,opacityLoading:_t,tableScrollThumbBg:qt,tableScrollThumbBgHover:bn,tableScrollThumbSize:gn,tableScrollBg:Jn,zIndexTableSticky:Un,stickyScrollBarBorderRadius:Zn}=nt,xi=`${nt.lineWidth}px ${nt.lineType} ${nt.tableBorderColor}`;return{[`${ut}-wrapper`]:{[`${ut}-sticky`]:{"&-holder":{position:"sticky",zIndex:Un,background:nt.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${gn}px !important`,zIndex:Un,display:"flex",alignItems:"center",background:Jn,borderTop:xi,opacity:_t,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:gn,backgroundColor:qt,borderRadius:Zn,transition:`all ${nt.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:bn}}}}}}},Ha=nt=>{const{componentCls:ut,lineWidth:_t,tableBorderColor:qt}=nt,bn=`${_t}px ${nt.lineType} ${qt}`;return{[`${ut}-wrapper`]:{[`${ut}-summary`]:{position:"relative",zIndex:nt.zIndexTableFixed,background:nt.tableBg,"> tr":{"> th, > td":{borderBottom:bn}}},[`div${ut}-summary`]:{boxShadow:`0 -${_t}px 0 ${qt}`}}}},fs=nt=>{const{componentCls:ut}=nt,_t=`${nt.lineWidth}px ${nt.lineType} ${nt.tableBorderColor}`,qt=`${ut}-expanded-row-cell`;return{[`${ut}-wrapper`]:{[`${ut}-tbody-virtual`]:{[`${ut}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${ut}-cell`]:{borderBottom:_t},[`${ut}-expanded-row`]:{[`${qt}${qt}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${nt.lineWidth}px)`,borderInlineEnd:"none"}}},[`${ut}-bordered`]:{[`${ut}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:_t,position:"absolute"},[`${ut}-cell`]:{borderInlineEnd:_t,[`&${ut}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-nt.lineWidth,borderInlineStart:_t}}}}}}};const La=nt=>{const{componentCls:ut,fontWeightStrong:_t,tablePaddingVertical:qt,tablePaddingHorizontal:bn,lineWidth:gn,lineType:Jn,tableBorderColor:Un,tableFontSize:Zn,tableBg:xi,tableRadius:ni,tableHeaderTextColor:mi,motionDurationMid:_i,tableHeaderBg:Ji,tableHeaderCellSplitColor:ji,tableRowHoverBg:wr,tableSelectedRowBg:Vi,tableSelectedRowHoverBg:kr,tableFooterTextColor:Er,tableFooterBg:Or,paddingContentVerticalLG:So}=nt,Lo=`${gn}px ${Jn} ${Un}`;return{[`${ut}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,ws.dF)()),{[ut]:Object.assign(Object.assign({},(0,ws.Wf)(nt)),{fontSize:Zn,background:xi,borderRadius:`${ni}px ${ni}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${ni}px ${ni}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${ut}-cell,
${ut}-thead > tr > th,
${ut}-tbody > tr > th,
${ut}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${So}px ${bn}px`,overflowWrap:"break-word"},[`${ut}-title`]:{padding:`${qt}px ${bn}px`},[`${ut}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:mi,fontWeight:_t,textAlign:"start",background:Ji,borderBottom:Lo,transition:`background ${_i} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${ut}-selection-column):not(${ut}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:ji,transform:"translateY(-50%)",transition:`background-color ${_i}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${ut}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${_i}, border-color ${_i}`,borderBottom:Lo,[`
> ${ut}-wrapper:only-child,
> ${ut}-expanded-row-fixed > ${ut}-wrapper:only-child
`]:{[ut]:{marginBlock:`-${qt}px`,marginInline:`${nt.tableExpandColumnWidth-bn}px -${bn}px`,[`${ut}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:mi,fontWeight:_t,textAlign:"start",background:Ji,borderBottom:Lo,transition:`background ${_i} ease`},[`
&${ut}-row:hover > th,
&${ut}-row:hover > td,
> th${ut}-cell-row-hover,
> td${ut}-cell-row-hover
`]:{background:wr},[`&${ut}-row-selected`]:{"> th, > td":{background:Vi},"&:hover > th, &:hover > td":{background:kr}}}},[`${ut}-footer`]:{padding:`${qt}px ${bn}px`,color:Er,background:Or}})}};var Ca=(0,ya.Z)("Table",nt=>{const{colorTextHeading:ut,colorSplit:_t,colorIcon:qt,colorIconHover:bn,opacityLoading:gn,colorBgContainer:Jn,controlInteractiveSize:Un,headerBg:Zn,headerColor:xi,headerSortActiveBg:ni,headerSortHoverBg:mi,bodySortBg:_i,rowHoverBg:Ji,rowSelectedBg:ji,rowSelectedHoverBg:wr,rowExpandedBg:Vi,cellPaddingBlock:kr,cellPaddingInline:Er,cellPaddingBlockMD:Or,cellPaddingInlineMD:So,cellPaddingBlockSM:Lo,cellPaddingInlineSM:Wr,borderColor:to,footerBg:Ko,footerColor:Rr,headerBorderRadius:lo,cellFontSize:Zr,cellFontSizeMD:mr,cellFontSizeSM:Nr,headerSplitColor:uo,fixedHeaderSortActiveBg:Mo,headerFilterHoverBg:Fo,filterDropdownBg:Fr,expandIconBg:Vo,selectionColumnWidth:_o,stickyScrollBarBg:na}=nt,ta=new Il.C(qt),Qa=new Il.C(bn),fa=2,Wo=(0,ol.TS)(nt,{tableFontSize:Zr,tableBg:Jn,tableRadius:lo,tablePaddingVertical:kr,tablePaddingHorizontal:Er,tablePaddingVerticalMiddle:Or,tablePaddingHorizontalMiddle:So,tablePaddingVerticalSmall:Lo,tablePaddingHorizontalSmall:Wr,tableBorderColor:to,tableHeaderTextColor:xi,tableHeaderBg:Zn,tableFooterTextColor:Rr,tableFooterBg:Ko,tableHeaderCellSplitColor:uo,tableHeaderSortBg:ni,tableHeaderSortHoverBg:mi,tableHeaderIconColor:ta.clone().setAlpha(ta.getAlpha()*gn).toRgbString(),tableHeaderIconColorHover:Qa.clone().setAlpha(Qa.getAlpha()*gn).toRgbString(),tableBodySortBg:_i,tableFixedHeaderSortActiveBg:Mo,tableHeaderFilterActiveBg:Fo,tableFilterDropdownBg:Fr,tableRowHoverBg:Ji,tableSelectedRowBg:ji,tableSelectedRowHoverBg:wr,zIndexTableFixed:fa,zIndexTableSticky:fa+1,tableFontSizeMiddle:mr,tableFontSizeSmall:Nr,tableSelectionColumnWidth:_o,tableExpandIconBg:Vo,tableExpandColumnWidth:Un+2*nt.padding,tableExpandedRowBg:Vi,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:na,tableScrollThumbBgHover:ut,tableScrollBg:_t});return[La(Wo),Cr(Wo),Ha(Wo),aa(Wo),lr(Wo),_e(Wo),er(Wo),ci(Wo),Ha(Wo),Tn(Wo),vo(Wo),qi(Wo),Sa(Wo),nn(Wo),po(Wo),fo(Wo),fs(Wo)]},nt=>{const{colorFillAlter:ut,colorBgContainer:_t,colorTextHeading:qt,colorFillSecondary:bn,colorFillContent:gn,controlItemBgActive:Jn,controlItemBgActiveHover:Un,padding:Zn,paddingSM:xi,paddingXS:ni,colorBorderSecondary:mi,borderRadiusLG:_i,fontSize:Ji,controlHeight:ji,colorTextPlaceholder:wr}=nt,Vi=new Il.C(bn).onBackground(_t).toHexShortString(),kr=new Il.C(gn).onBackground(_t).toHexShortString(),Er=new Il.C(ut).onBackground(_t).toHexShortString();return{headerBg:Er,headerColor:qt,headerSortActiveBg:Vi,headerSortHoverBg:kr,bodySortBg:Er,rowHoverBg:Er,rowSelectedBg:Jn,rowSelectedHoverBg:Un,rowExpandedBg:ut,cellPaddingBlock:Zn,cellPaddingInline:Zn,cellPaddingBlockMD:xi,cellPaddingInlineMD:ni,cellPaddingBlockSM:ni,cellPaddingInlineSM:ni,borderColor:mi,headerBorderRadius:_i,footerBg:Er,footerColor:qt,cellFontSize:Ji,cellFontSizeMD:Ji,cellFontSizeSM:Ji,headerSplitColor:mi,fixedHeaderSortActiveBg:Vi,headerFilterHoverBg:gn,filterDropdownMenuBg:_t,filterDropdownBg:_t,expandIconBg:_t,selectionColumnWidth:ji,stickyScrollBarBg:wr,stickyScrollBarBorderRadius:100}});const Ta=[],as=(nt,ut)=>{const{prefixCls:_t,className:qt,rootClassName:bn,style:gn,size:Jn,bordered:Un,dropdownPrefixCls:Zn,dataSource:xi,pagination:ni,rowSelection:mi,rowKey:_i="key",rowClassName:Ji,columns:ji,children:wr,childrenColumnName:Vi,onChange:kr,getPopupContainer:Er,loading:Or,expandIcon:So,expandable:Lo,expandedRowRender:Wr,expandIconColumnIndex:to,indentSize:Ko,scroll:Rr,sortDirections:lo,locale:Zr,showSorterTooltip:mr=!0,virtual:Nr}=nt,uo=Ne.useMemo(()=>ji||en(wr),[ji,wr]),Mo=Ne.useMemo(()=>uo.some(Ra=>Ra.responsive),[uo]),Fo=(0,On.Z)(Mo),Fr=Ne.useMemo(()=>{const Ra=new Set(Object.keys(Fo).filter(ls=>Fo[ls]));return uo.filter(ls=>!ls.responsive||ls.responsive.some(Qs=>Ra.has(Qs)))},[uo,Fo]),Vo=(0,$n.Z)(nt,["className","style","columns"]),{locale:_o=$r.Z,direction:na,table:ta,renderEmpty:Qa,getPrefixCls:fa,getPopupContainer:Wo}=Ne.useContext(Bi.E_),Po=(0,Yi.Z)(Jn),To=Object.assign(Object.assign({},_o.Table),Zr),Ya=xi||Ta,Ia=fa("table",_t),ns=fa("dropdown",Zn),Ro=Object.assign({childrenColumnName:Vi,expandIconColumnIndex:to},Lo),{childrenColumnName:bo="children"}=Ro,Zo=Ne.useMemo(()=>Ya.some(Ra=>Ra==null?void 0:Ra[bo])?"nest":Wr||Lo&&Lo.expandedRowRender?"row":null,[Ya]),wo={body:Ne.useRef()},so=Ne.useMemo(()=>typeof _i=="function"?_i:Ra=>Ra==null?void 0:Ra[_i],[_i]),[tr]=xc(Ya,bo,so),Gr={},Uo=function(Ra,ls){let Qs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var ms,za,_s;const Rl=Object.assign(Object.assign({},Gr),Ra);Qs&&((ms=Gr.resetPagination)===null||ms===void 0||ms.call(Gr),!((za=Rl.pagination)===null||za===void 0)&&za.current&&(Rl.pagination.current=1),ni&&ni.onChange&&ni.onChange(1,(_s=Rl.pagination)===null||_s===void 0?void 0:_s.pageSize)),Rr&&Rr.scrollToFirstRowOnChange!==!1&&wo.body.current&&(0,Ii.Z)(0,{getContainer:()=>wo.body.current}),kr==null||kr(Rl.pagination,Rl.filters,Rl.sorter,{currentDataSource:rl(jl(Ya,Rl.sorterStates,bo),Rl.filterStates),action:ls})},sa=(Ra,ls)=>{Uo({sorter:Ra,sorterStates:ls},"sort",!1)},[al,zs,Al,Na]=Pc({prefixCls:Ia,mergedColumns:Fr,onSorterChange:sa,sortDirections:lo||["ascend","descend"],tableLocale:To,showSorterTooltip:mr}),Ua=Ne.useMemo(()=>jl(Ya,zs,bo),[Ya,zs]);Gr.sorter=Na(),Gr.sorterStates=zs;const Do=(Ra,ls)=>{Uo({filters:Ra,filterStates:ls},"filter",!0)},[Vs,Ll,Wa]=Sc({prefixCls:Ia,locale:To,dropdownPrefixCls:ns,mergedColumns:Fr,onFilterChange:Do,getPopupContainer:Er||Wo}),_a=rl(Ua,Ll);Gr.filters=Wa,Gr.filterStates=Ll;const is=Ne.useMemo(()=>{const Ra={};return Object.keys(Wa).forEach(ls=>{Wa[ls]!==null&&(Ra[ls]=Wa[ls])}),Object.assign(Object.assign({},Al),{filters:Ra})},[Al,Wa]),[bs]=Os(is),Gs=(Ra,ls)=>{Uo({pagination:Object.assign(Object.assign({},Gr.pagination),{current:Ra,pageSize:ls})},"paginate")},[xa,ss]=pu(_a.length,Gs,ni);Gr.pagination=ni===!1?{}:xl(xa,ni),Gr.resetPagination=ss;const Js=Ne.useMemo(()=>{if(ni===!1||!xa.pageSize)return _a;const{current:Ra=1,total:ls,pageSize:Qs=zl}=xa;return _a.length<ls?_a.length>Qs?_a.slice((Ra-1)*Qs,Ra*Qs):_a:_a.slice((Ra-1)*Qs,Ra*Qs)},[!!ni,_a,xa&&xa.current,xa&&xa.pageSize,xa&&xa.total]),[Xa,zo]=Ts({prefixCls:Ia,data:_a,pageData:Js,getRowKey:so,getRecordByKey:tr,expandType:Zo,childrenColumnName:bo,locale:To,getPopupContainer:Er||Wo},mi),Ms=(Ra,ls,Qs)=>{let ms;return typeof Ji=="function"?ms=$e()(Ji(Ra,ls,Qs)):ms=$e()(Ji),$e()({[`${Ia}-row-selected`]:zo.has(so(Ra,ls))},ms)};Ro.__PARENT_RENDER_ICON__=Ro.expandIcon,Ro.expandIcon=Ro.expandIcon||So||no(To),Zo==="nest"&&Ro.expandIconColumnIndex===void 0?Ro.expandIconColumnIndex=mi?1:0:Ro.expandIconColumnIndex>0&&mi&&(Ro.expandIconColumnIndex-=1),typeof Ro.indentSize!="number"&&(Ro.indentSize=typeof Ko=="number"?Ko:15);const Ys=Ne.useCallback(Ra=>bs(Xa(Vs(al(Ra)))),[al,Vs,Xa]);let Wu,vu;if(ni!==!1&&(xa!=null&&xa.total)){let Ra;xa.size?Ra=xa.size:Ra=Po==="small"||Po==="middle"?"small":void 0;const ls=za=>Ne.createElement(Ur.Z,Object.assign({},xa,{className:$e()(`${Ia}-pagination ${Ia}-pagination-${za}`,xa.className),size:Ra})),Qs=na==="rtl"?"left":"right",{position:ms}=xa;if(ms!==null&&Array.isArray(ms)){const za=ms.find(Zu=>Zu.includes("top")),_s=ms.find(Zu=>Zu.includes("bottom")),Rl=ms.every(Zu=>`${Zu}`=="none");!za&&!_s&&!Rl&&(vu=ls(Qs)),za&&(Wu=ls(za.toLowerCase().replace("top",""))),_s&&(vu=ls(_s.toLowerCase().replace("bottom","")))}else vu=ls(Qs)}let $a;typeof Or=="boolean"?$a={spinning:Or}:typeof Or=="object"&&($a=Object.assign({spinning:!0},Or));const[Ml,Ps]=Ca(Ia),[,ps]=(0,eo.Z)(),Nu=$e()(`${Ia}-wrapper`,ta==null?void 0:ta.className,{[`${Ia}-wrapper-rtl`]:na==="rtl"},qt,bn,Ps),Cc=Object.assign(Object.assign({},ta==null?void 0:ta.style),gn),ql=Zr&&Zr.emptyText||(Qa==null?void 0:Qa("Table"))||Ne.createElement(gi.Z,{componentName:"Table"}),ac=Nr?wl:Io,sc={},yu=Ne.useMemo(()=>{const{fontSize:Ra,lineHeight:ls,padding:Qs,paddingXS:ms,paddingSM:za}=ps,_s=Math.floor(Ra*ls);switch(Po){case"large":return Qs*2+_s;case"small":return ms*2+_s;default:return za*2+_s}},[ps,Po]);return Nr&&(sc.listItemHeight=yu),Ml(Ne.createElement("div",{ref:ut,className:Nu,style:Cc},Ne.createElement(Ao.Z,Object.assign({spinning:!1},$a),Wu,Ne.createElement(ac,Object.assign({},sc,Vo,{columns:Fr,direction:na,expandable:Ro,prefixCls:Ia,className:$e()({[`${Ia}-middle`]:Po==="middle",[`${Ia}-small`]:Po==="small",[`${Ia}-bordered`]:Un,[`${Ia}-empty`]:Ya.length===0}),data:Js,rowKey:so,rowClassName:Ms,emptyText:ql,internalHooks:Ie,internalRefs:wo,transformColumns:Ys})),vu)))};var gs=Ne.forwardRef(as);const Ja=(nt,ut)=>{const _t=Ne.useRef(0);return _t.current+=1,Ne.createElement(gs,Object.assign({},nt,{ref:ut,_renderTimes:_t.current}))},Oa=Ne.forwardRef(Ja);Oa.SELECTION_COLUMN=Cs,Oa.EXPAND_COLUMN=xe,Oa.SELECTION_ALL=Ss,Oa.SELECTION_INVERT=os,Oa.SELECTION_NONE=hs,Oa.Column=Wt,Oa.ColumnGroup=ai,Oa.Summary=at;var Rs=Oa,hl=Rs},98228:function(In,Fn,ye){"use strict";ye.d(Fn,{default:function(){return Ir}});var xe=ye(92310),Ie=ye.n(xe),We=ye(5891),It=ye(26390),Qe=ye(57259),vt=ye(29043),Ne=ye(19149),Tt=ye(80665),Ft=ye(77861),qe=ye(17115),gt=ye(90782),dt=ye(35788),Ct=ye(51395),Me=ye(59301),te=function(zn){var Ee=Me.useRef({valueLabels:new Map});return Me.useMemo(function(){var cr=Ee.current.valueLabels,Xi=new Map,yn=zn.map(function(oi){var Ci,xn=oi.value,on=(Ci=oi.label)!==null&&Ci!==void 0?Ci:cr.get(xn);return Xi.set(xn,on),(0,Qe.Z)((0,Qe.Z)({},oi),{},{label:on})});return Ee.current.valueLabels=Xi,[yn]},[zn])},ne=function(zn,Ee,cr,Xi){return Me.useMemo(function(){var yn=zn.map(function(on){var yt=on.value;return yt}),oi=Ee.map(function(on){var yt=on.value;return yt}),Ci=yn.filter(function(on){return!Xi[on]});if(cr){var xn=(0,gt.S)(yn,!0,Xi);yn=xn.checkedKeys,oi=xn.halfCheckedKeys}return[Array.from(new Set([].concat((0,It.Z)(Ci),(0,It.Z)(yn)))),oi]},[zn,Ee,cr,Xi])},ce=ye(71430),se=function(zn,Ee){return Me.useMemo(function(){var cr=(0,ce.I8)(zn,{fieldNames:Ee,initWrapper:function(yn){return(0,Qe.Z)((0,Qe.Z)({},yn),{},{valueEntities:new Map})},processEntity:function(yn,oi){var Ci=yn.node[Ee.value];if(0)var xn;oi.valueEntities.set(Ci,yn)}});return cr},[zn,Ee])},ge=ye(80962),ve=ye(38298),Ce=function(){return null},ke=Ce,Pe=["children","value"];function Te(zn){return(0,ve.Z)(zn).map(function(Ee){if(!Me.isValidElement(Ee)||!Ee.type)return null;var cr=Ee,Xi=cr.key,yn=cr.props,oi=yn.children,Ci=yn.value,xn=(0,Ne.Z)(yn,Pe),on=(0,Qe.Z)({key:Xi,value:Ci},xn),yt=Te(oi);return yt.length&&(on.children=yt),on}).filter(function(Ee){return Ee})}function Ke(zn){if(!zn)return zn;var Ee=(0,Qe.Z)({},zn);return"props"in Ee||Object.defineProperty(Ee,"props",{get:function(){return(0,Ct.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),Ee}}),Ee}function et(zn,Ee,cr,Xi,yn,oi){var Ci=null,xn=null;function on(){function yt(Et){var Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Et.map(function(en,fn){var xt="".concat(Lt,"-").concat(fn),Ue=en[oi.value],an=cr.includes(Ue),Dt=yt(en[oi.children]||[],xt,an),Rn=Me.createElement(ke,en,Dt.map(function(Pt){return Pt.node}));if(Ee===Ue&&(Ci=Rn),an){var dn={pos:xt,node:Rn,children:Dt};return tt||xn.push(dn),dn}return null}).filter(function(en){return en})}xn||(xn=[],yt(Xi),xn.sort(function(Et,Lt){var tt=Et.node.props.value,en=Lt.node.props.value,fn=cr.indexOf(tt),xt=cr.indexOf(en);return fn-xt}))}Object.defineProperty(zn,"triggerNode",{get:function(){return(0,Ct.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),on(),Ci}}),Object.defineProperty(zn,"allCheckedNodes",{get:function(){return(0,Ct.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),on(),yn?xn:xn.map(function(Et){var Lt=Et.node;return Lt})}})}var Xe=function(zn,Ee,cr){var Xi=cr.treeNodeFilterProp,yn=cr.filterTreeNode,oi=cr.fieldNames,Ci=oi.children;return Me.useMemo(function(){if(!Ee||yn===!1)return zn;var xn;if(typeof yn=="function")xn=yn;else{var on=Ee.toUpperCase();xn=function(Lt,tt){var en=tt[Xi];return String(en).toUpperCase().includes(on)}}function yt(Et){var Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Et.reduce(function(tt,en){var fn=en[Ci],xt=Lt||xn(Ee,Ke(en)),Ue=yt(fn||[],xt);return(xt||Ue.length)&&tt.push((0,Qe.Z)((0,Qe.Z)({},en),{},(0,ge.Z)({isLeaf:void 0},Ci,Ue))),tt},[])}return yt(zn)},[zn,Ee,Ci,Xi,yn])};function ft(zn){var Ee=Me.useRef();Ee.current=zn;var cr=Me.useCallback(function(){return Ee.current.apply(Ee,arguments)},[]);return cr}function Ge(zn,Ee){var cr=Ee.id,Xi=Ee.pId,yn=Ee.rootPId,oi={},Ci=[],xn=zn.map(function(on){var yt=(0,Qe.Z)({},on),Et=yt[cr];return oi[Et]=yt,yt.key=yt.key||Et,yt});return xn.forEach(function(on){var yt=on[Xi],Et=oi[yt];Et&&(Et.children=Et.children||[],Et.children.push(on)),(yt===yn||!Et&&yn===null)&&Ci.push(on)}),Ci}function kt(zn,Ee,cr){return Me.useMemo(function(){return zn?cr?Ge(zn,(0,Qe.Z)({id:"id",pId:"pId",rootPId:null},cr!==!0?cr:{})):zn:Te(Ee)},[Ee,cr,zn])}var $e=Me.createContext(null),zt=$e,Ht=ye(85108),Yt=ye(79722),Bt=ye(99581),Qt=Me.createContext(null),ht=Qt;function je(zn){return Array.isArray(zn)?zn:zn!==void 0?[zn]:[]}function At(zn){var Ee=zn||{},cr=Ee.label,Xi=Ee.value,yn=Ee.children,oi=Xi||"value";return{_title:cr?[cr]:["title","label"],value:oi,key:oi,children:yn||"children"}}function wn(zn){return!zn||zn.disabled||zn.disableCheckbox||zn.checkable===!1}function rn(zn,Ee){var cr=[];function Xi(yn){yn.forEach(function(oi){var Ci=oi[Ee.children];Ci&&(cr.push(oi[Ee.value]),Xi(Ci))})}return Xi(zn),cr}function bt(zn){return zn==null}var Jt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},un=function(Ee,cr){var Xi=(0,Ft.lk)(),yn=Xi.prefixCls,oi=Xi.multiple,Ci=Xi.searchValue,xn=Xi.toggleOpen,on=Xi.open,yt=Xi.notFoundContent,Et=Me.useContext(ht),Lt=Et.virtual,tt=Et.listHeight,en=Et.listItemHeight,fn=Et.treeData,xt=Et.fieldNames,Ue=Et.onSelect,an=Et.dropdownMatchSelectWidth,Dt=Et.treeExpandAction,Rn=Me.useContext(zt),dn=Rn.checkable,Pt=Rn.checkedKeys,Sn=Rn.halfCheckedKeys,Qn=Rn.treeExpandedKeys,Xn=Rn.treeDefaultExpandAll,Rt=Rn.treeDefaultExpandedKeys,vn=Rn.onTreeExpand,bi=Rn.treeIcon,vi=Rn.showTreeIcon,pi=Rn.switcherIcon,ei=Rn.treeLine,yi=Rn.treeNodeFilterProp,Fi=Rn.loadData,Ki=Rn.treeLoadedKeys,hr=Rn.treeMotion,Gn=Rn.onTreeLoad,Li=Rn.keyEntities,Lr=Me.useRef(),Dr=(0,Yt.Z)(function(){return fn},[on,fn],function(pr,Yr){return Yr[0]&&pr[1]!==Yr[1]}),Pr=Me.useState(null),Xt=(0,vt.Z)(Pr,2),Mi=Xt[0],ar=Xt[1],Wi=Li[Mi],Mr=Me.useMemo(function(){return dn?{checked:Pt,halfChecked:Sn}:null},[dn,Pt,Sn]);Me.useEffect(function(){if(on&&!oi&&Pt.length){var pr;(pr=Lr.current)===null||pr===void 0||pr.scrollTo({key:Pt[0]}),ar(Pt[0])}},[on]);var fr=String(Ci).toLowerCase(),Br=function(Yr){return fr?String(Yr[yi]).toLowerCase().includes(fr):!1},Oi=Me.useState(Rt),$i=(0,vt.Z)(Oi,2),nr=$i[0],Mn=$i[1],Tr=Me.useState(null),An=(0,vt.Z)(Tr,2),yr=An[0],_r=An[1],xr=Me.useMemo(function(){return Qn?(0,It.Z)(Qn):Ci?yr:nr},[nr,yr,Qn,Ci]);Me.useEffect(function(){Ci&&_r(rn(fn,xt))},[Ci]);var Ho=function(Yr){Mn(Yr),_r(Yr),vn&&vn(Yr)},ho=function(Yr){Yr.preventDefault()},Sr=function(Yr,zi){var Je=zi.node;dn&&wn(Je)||(Ue(Je.key,{selected:!Pt.includes(Je.key)}),oi||xn(!1))};if(Me.useImperativeHandle(cr,function(){var pr;return{scrollTo:(pr=Lr.current)===null||pr===void 0?void 0:pr.scrollTo,onKeyDown:function(zi){var Je,pt=zi.which;switch(pt){case Ht.Z.UP:case Ht.Z.DOWN:case Ht.Z.LEFT:case Ht.Z.RIGHT:(Je=Lr.current)===null||Je===void 0||Je.onKeyDown(zi);break;case Ht.Z.ENTER:{if(Wi){var Ot=(Wi==null?void 0:Wi.node)||{},cn=Ot.selectable,jn=Ot.value;cn!==!1&&Sr(null,{node:{key:Mi},selected:!Pt.includes(jn)})}break}case Ht.Z.ESC:xn(!1)}},onKeyUp:function(){}}}),Dr.length===0)return Me.createElement("div",{role:"listbox",className:"".concat(yn,"-empty"),onMouseDown:ho},yt);var gr={fieldNames:xt};return Ki&&(gr.loadedKeys=Ki),xr&&(gr.expandedKeys=xr),Me.createElement("div",{onMouseDown:ho},Wi&&on&&Me.createElement("span",{style:Jt,"aria-live":"assertive"},Wi.node.value),Me.createElement(Bt.Z,(0,We.Z)({ref:Lr,focusable:!1,prefixCls:"".concat(yn,"-tree"),treeData:Dr,height:tt,itemHeight:en,virtual:Lt!==!1&&an!==!1,multiple:oi,icon:bi,showIcon:vi,switcherIcon:pi,showLine:ei,loadData:Ci?null:Fi,motion:hr,activeKey:Mi,checkable:dn,checkStrictly:!0,checkedKeys:Mr,selectedKeys:dn?[]:Pt,defaultExpandAll:Xn},gr,{onActiveChange:ar,onSelect:Sr,onCheck:Sr,onExpand:Ho,onLoad:Gn,filterTreeNode:Br,expandAction:Dt})))},Kn=Me.forwardRef(un);Kn.displayName="OptionList";var En=Kn,Yn="SHOW_ALL",St="SHOW_PARENT",Vn="SHOW_CHILD";function Cn(zn,Ee,cr,Xi){var yn=new Set(zn);return Ee===Vn?zn.filter(function(oi){var Ci=cr[oi];return!(Ci&&Ci.children&&Ci.children.some(function(xn){var on=xn.node;return yn.has(on[Xi.value])})&&Ci.children.every(function(xn){var on=xn.node;return wn(on)||yn.has(on[Xi.value])}))}):Ee===St?zn.filter(function(oi){var Ci=cr[oi],xn=Ci?Ci.parent:null;return!(xn&&!wn(xn.node)&&yn.has(xn.key))}):zn}function Si(zn){var Ee=zn.searchPlaceholder,cr=zn.treeCheckStrictly,Xi=zn.treeCheckable,yn=zn.labelInValue,oi=zn.value,Ci=zn.multiple;warning(!Ee,"`searchPlaceholder` has been removed."),cr&&yn===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(yn||cr)&&warning(toArray(oi).every(function(xn){return xn&&_typeof(xn)==="object"&&"value"in xn}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),cr||Ci||Xi?warning(!oi||Array.isArray(oi),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(oi),"`value` should not be array when `TreeSelect` is single mode.")}var Bn=null,tn=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"];function $t(zn){return!zn||(0,Tt.Z)(zn)!=="object"}var ct=Me.forwardRef(function(zn,Ee){var cr=zn.id,Xi=zn.prefixCls,yn=Xi===void 0?"rc-tree-select":Xi,oi=zn.value,Ci=zn.defaultValue,xn=zn.onChange,on=zn.onSelect,yt=zn.onDeselect,Et=zn.searchValue,Lt=zn.inputValue,tt=zn.onSearch,en=zn.autoClearSearchValue,fn=en===void 0?!0:en,xt=zn.filterTreeNode,Ue=zn.treeNodeFilterProp,an=Ue===void 0?"value":Ue,Dt=zn.showCheckedStrategy,Rn=zn.treeNodeLabelProp,dn=zn.multiple,Pt=zn.treeCheckable,Sn=zn.treeCheckStrictly,Qn=zn.labelInValue,Xn=zn.fieldNames,Rt=zn.treeDataSimpleMode,vn=zn.treeData,bi=zn.children,vi=zn.loadData,pi=zn.treeLoadedKeys,ei=zn.onTreeLoad,yi=zn.treeDefaultExpandAll,Fi=zn.treeExpandedKeys,Ki=zn.treeDefaultExpandedKeys,hr=zn.onTreeExpand,Gn=zn.treeExpandAction,Li=zn.virtual,Lr=zn.listHeight,Dr=Lr===void 0?200:Lr,Pr=zn.listItemHeight,Xt=Pr===void 0?20:Pr,Mi=zn.onDropdownVisibleChange,ar=zn.dropdownMatchSelectWidth,Wi=ar===void 0?!0:ar,Mr=zn.treeLine,fr=zn.treeIcon,Br=zn.showTreeIcon,Oi=zn.switcherIcon,$i=zn.treeMotion,nr=(0,Ne.Z)(zn,tn),Mn=(0,qe.ZP)(cr),Tr=Pt&&!Sn,An=Pt||Sn,yr=Sn||Qn,_r=An||dn,xr=(0,dt.Z)(Ci,{value:oi}),Ho=(0,vt.Z)(xr,2),ho=Ho[0],Sr=Ho[1],gr=Me.useMemo(function(){return Pt?Dt||Vn:Yn},[Dt,Pt]),pr=Me.useMemo(function(){return At(Xn)},[JSON.stringify(Xn)]),Yr=(0,dt.Z)("",{value:Et!==void 0?Et:Lt,postState:function(ko){return ko||""}}),zi=(0,vt.Z)(Yr,2),Je=zi[0],pt=zi[1],Ot=function(ko){pt(ko),tt==null||tt(ko)},cn=kt(vn,bi,Rt),jn=se(cn,pr),Dn=jn.keyEntities,Wt=jn.valueEntities,kn=Me.useCallback(function(ma){var ko=[],Oo=[];return ma.forEach(function(Pa){Wt.has(Pa)?Oo.push(Pa):ko.push(Pa)}),{missingRawValues:ko,existRawValues:Oo}},[Wt]),ai=Xe(cn,Je,{fieldNames:pr,treeNodeFilterProp:an,filterTreeNode:xt}),$n=Me.useCallback(function(ma){if(ma){if(Rn)return ma[Rn];for(var ko=pr._title,Oo=0;Oo<ko.length;Oo+=1){var Pa=ma[ko[Oo]];if(Pa!==void 0)return Pa}}},[pr,Rn]),Ii=Me.useCallback(function(ma){var ko=je(ma);return ko.map(function(Oo){return $t(Oo)?{value:Oo}:Oo})},[]),Bi=Me.useCallback(function(ma){var ko=Ii(ma);return ko.map(function(Oo){var Pa=Oo.label,io=Oo.value,No=Oo.halfChecked,ao,Gi=Wt.get(io);if(Gi){var ha;Pa=(ha=Pa)!==null&&ha!==void 0?ha:$n(Gi.node),ao=Gi.node.disabled}else if(Pa===void 0){var Fa=Ii(ho).find(function(Bs){return Bs.value===io});Pa=Fa.label}return{label:Pa,value:io,halfChecked:No,disabled:ao}})},[Wt,$n,Ii,ho]),gi=Me.useMemo(function(){return Ii(ho)},[Ii,ho]),Yi=Me.useMemo(function(){var ma=[],ko=[];return gi.forEach(function(Oo){Oo.halfChecked?ko.push(Oo):ma.push(Oo)}),[ma,ko]},[gi]),On=(0,vt.Z)(Yi,2),$r=On[0],Ur=On[1],Ao=Me.useMemo(function(){return $r.map(function(ma){return ma.value})},[$r]),eo=ne($r,Ur,Tr,Dn),qr=(0,vt.Z)(eo,2),no=qr[0],$o=qr[1],Qo=Me.useMemo(function(){var ma=Cn(no,gr,Dn,pr),ko=ma.map(function(No){var ao,Gi,ha;return(ao=(Gi=Dn[No])===null||Gi===void 0||(ha=Gi.node)===null||ha===void 0?void 0:ha[pr.value])!==null&&ao!==void 0?ao:No}),Oo=ko.map(function(No){var ao=$r.find(function(Gi){return Gi.value===No});return{value:No,label:ao==null?void 0:ao.label}}),Pa=Bi(Oo),io=Pa[0];return!_r&&io&&bt(io.value)&&bt(io.label)?[]:Pa.map(function(No){var ao;return(0,Qe.Z)((0,Qe.Z)({},No),{},{label:(ao=No.label)!==null&&ao!==void 0?ao:No.value})})},[pr,_r,no,$r,Bi,gr,Dn]),pa=te(Qo),qo=(0,vt.Z)(pa,1),Pn=qo[0],ca=ft(function(ma,ko,Oo){var Pa=Bi(ma);if(Sr(Pa),fn&&pt(""),xn){var io=ma;if(Tr){var No=Cn(ma,gr,Dn,pr);io=No.map(function(ga){var Is=Wt.get(ga);return Is?Is.node[pr.value]:ga})}var ao=ko||{triggerValue:void 0,selected:void 0},Gi=ao.triggerValue,ha=ao.selected,Fa=io;if(Sn){var Bs=Ur.filter(function(ga){return!io.includes(ga.value)});Fa=[].concat((0,It.Z)(Fa),(0,It.Z)(Bs))}var ys=Bi(Fa),nl={preValue:$r,triggerValue:Gi},Ui=!0;(Sn||Oo==="selection"&&!ha)&&(Ui=!1),et(nl,Gi,ma,cn,Ui,pr),An?nl.checked=ha:nl.selected=ha;var Da=yr?ys:ys.map(function(ga){return ga.value});xn(_r?Da:Da[0],yr?null:ys.map(function(ga){return ga.label}),nl)}}),es=Me.useCallback(function(ma,ko){var Oo,Pa=ko.selected,io=ko.source,No=Dn[ma],ao=No==null?void 0:No.node,Gi=(Oo=ao==null?void 0:ao[pr.value])!==null&&Oo!==void 0?Oo:ma;if(!_r)ca([Gi],{selected:!0,triggerValue:Gi},"option");else{var ha=Pa?[].concat((0,It.Z)(Ao),[Gi]):no.filter(function(Is){return Is!==Gi});if(Tr){var Fa=kn(ha),Bs=Fa.missingRawValues,ys=Fa.existRawValues,nl=ys.map(function(Is){return Wt.get(Is).key}),Ui;if(Pa){var Da=(0,gt.S)(nl,!0,Dn);Ui=Da.checkedKeys}else{var ga=(0,gt.S)(nl,{checked:!1,halfCheckedKeys:$o},Dn);Ui=ga.checkedKeys}ha=[].concat((0,It.Z)(Bs),(0,It.Z)(Ui.map(function(Is){return Dn[Is].node[pr.value]})))}ca(ha,{selected:Pa,triggerValue:Gi},io||"option")}Pa||!_r?on==null||on(Gi,Ke(ao)):yt==null||yt(Gi,Ke(ao))},[kn,Wt,Dn,pr,_r,Ao,ca,Tr,on,yt,no,$o]),ts=Me.useCallback(function(ma){if(Mi){var ko={};Object.defineProperty(ko,"documentClickClose",{get:function(){return(0,Ct.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Mi(ma,ko)}},[Mi]),Ga=ft(function(ma,ko){var Oo=ma.map(function(Pa){return Pa.value});if(ko.type==="clear"){ca(Oo,{},"selection");return}ko.values.length&&es(ko.values[0].value,{selected:!1,source:"selection"})}),Ds=Me.useMemo(function(){return{virtual:Li,dropdownMatchSelectWidth:Wi,listHeight:Dr,listItemHeight:Xt,treeData:ai,fieldNames:pr,onSelect:es,treeExpandAction:Gn}},[Li,Wi,Dr,Xt,ai,pr,es,Gn]),pl=Me.useMemo(function(){return{checkable:An,loadData:vi,treeLoadedKeys:pi,onTreeLoad:ei,checkedKeys:no,halfCheckedKeys:$o,treeDefaultExpandAll:yi,treeExpandedKeys:Fi,treeDefaultExpandedKeys:Ki,onTreeExpand:hr,treeIcon:fr,treeMotion:$i,showTreeIcon:Br,switcherIcon:Oi,treeLine:Mr,treeNodeFilterProp:an,keyEntities:Dn}},[An,vi,pi,ei,no,$o,yi,Fi,Ki,hr,fr,$i,Br,Oi,Mr,an,Dn]);return Me.createElement(ht.Provider,{value:Ds},Me.createElement(zt.Provider,{value:pl},Me.createElement(Ft.Ac,(0,We.Z)({ref:Ee},nr,{id:Mn,prefixCls:yn,mode:_r?"multiple":void 0,displayValues:Pn,onDisplayValuesChange:Ga,searchValue:Je,onSearch:Ot,OptionList:En,emptyOptions:!cn.length,onDropdownVisibleChange:ts,dropdownMatchSelectWidth:Wi}))))}),ze=ct;ze.TreeNode=ke,ze.SHOW_ALL=Yn,ze.SHOW_PARENT=St,ze.SHOW_CHILD=Vn;var Ut=ze,Gt=Ut,at=ye(64002),Ve=ye(53487),Be=ye(62892),we=ye(19080),me=ye(36355),De=ye(1684),Re=ye(93891),Le=ye(19716),st=ye(32441),Vt=ye(14154),sn=ye(58582),ln=ye(84443),Hn=ye(66339),wi=ye(33234),Pi=ye(48610),Ri=ye(98447),Zi=ye(37613),Ln=ye(83116),rr=ye(20648);const Kr=zn=>{const{componentCls:Ee,treePrefixCls:cr,colorBgElevated:Xi}=zn,yn=`.${cr}`;return[{[`${Ee}-dropdown`]:[{padding:`${zn.paddingXS}px ${zn.paddingXS/2}px`},(0,rr.Yk)(cr,(0,Zi.TS)(zn,{colorBgContainer:Xi})),{[yn]:{borderRadius:0,[`${yn}-list-holder-inner`]:{alignItems:"stretch",[`${yn}-treenode`]:{[`${yn}-node-content-wrapper`]:{flex:"auto"}}}}},(0,Ri.C2)(`${cr}-checkbox`,zn),{"&-rtl":{direction:"rtl",[`${yn}-switcher${yn}-switcher_close`]:{[`${yn}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function Vr(zn,Ee){return(0,Ln.Z)("TreeSelect",cr=>{const Xi=(0,Zi.TS)(cr,{treePrefixCls:Ee});return[Kr(Xi)]},rr.TM)(zn)}var jr=function(zn,Ee){var cr={};for(var Xi in zn)Object.prototype.hasOwnProperty.call(zn,Xi)&&Ee.indexOf(Xi)<0&&(cr[Xi]=zn[Xi]);if(zn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yn=0,Xi=Object.getOwnPropertySymbols(zn);yn<Xi.length;yn++)Ee.indexOf(Xi[yn])<0&&Object.prototype.propertyIsEnumerable.call(zn,Xi[yn])&&(cr[Xi[yn]]=zn[Xi[yn]]);return cr};const li=(zn,Ee)=>{var cr,{prefixCls:Xi,size:yn,disabled:oi,bordered:Ci=!0,className:xn,rootClassName:on,treeCheckable:yt,multiple:Et,listHeight:Lt=256,listItemHeight:tt=26,placement:en,notFoundContent:fn,switcherIcon:xt,treeLine:Ue,getPopupContainer:an,popupClassName:Dt,dropdownClassName:Rn,treeIcon:dn=!1,transitionName:Pt,choiceTransitionName:Sn="",status:Qn,treeExpandAction:Xn,builtinPlacements:Rt,dropdownMatchSelectWidth:vn,popupMatchSelectWidth:bi,allowClear:vi}=zn,pi=jr(zn,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear"]);const{getPopupContainer:ei,getPrefixCls:yi,renderEmpty:Fi,direction:Ki,virtual:hr,popupMatchSelectWidth:Gn,popupOverflow:Li}=Me.useContext(me.E_),Lr=yi(),Dr=yi("select",Xi),Pr=yi("select-tree",Xi),Xt=yi("tree-select",Xi),{compactSize:Mi,compactItemClassnames:ar}=(0,wi.ri)(Dr,Ki),[Wi,Mr]=(0,Vt.Z)(Dr),[fr]=Vr(Xt,Pr),Br=Ie()(Dt||Rn,`${Xt}-dropdown`,{[`${Xt}-dropdown-rtl`]:Ki==="rtl"},on,Mr),Oi=!!(yt||Et),$i=(0,ln.Z)(pi.suffixIcon,pi.showArrow),nr=(cr=bi!=null?bi:vn)!==null&&cr!==void 0?cr:Gn,{status:Mn,hasFeedback:Tr,isFormItemInput:An,feedbackIcon:yr}=Me.useContext(st.aM),_r=(0,we.F)(Mn,Qn),{suffixIcon:xr,removeIcon:Ho,clearIcon:ho}=(0,Hn.Z)(Object.assign(Object.assign({},pi),{multiple:Oi,showSuffixIcon:$i,hasFeedback:Tr,feedbackIcon:yr,prefixCls:Dr,componentName:"TreeSelect"})),Sr=vi===!0?{clearIcon:ho}:vi;let gr;fn!==void 0?gr=fn:gr=(Fi==null?void 0:Fi("Select"))||Me.createElement(Re.Z,{componentName:"Select"});const pr=(0,at.Z)(pi,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon"]),Yr=Me.useMemo(()=>en!==void 0?en:Ki==="rtl"?"bottomRight":"bottomLeft",[en,Ki]),zi=(0,sn.Z)(Rt,Li),Je=(0,Le.Z)(Wt=>{var kn;return(kn=yn!=null?yn:Mi)!==null&&kn!==void 0?kn:Wt}),pt=Me.useContext(De.Z),Ot=oi!=null?oi:pt,cn=Ie()(!Xi&&Xt,{[`${Dr}-lg`]:Je==="large",[`${Dr}-sm`]:Je==="small",[`${Dr}-rtl`]:Ki==="rtl",[`${Dr}-borderless`]:!Ci,[`${Dr}-in-form-item`]:An},(0,we.Z)(Dr,_r,Tr),ar,xn,on,Mr),jn=Wt=>Me.createElement(Pi.Z,{prefixCls:Pr,switcherIcon:xt,treeNodeProps:Wt,showLine:Ue}),Dn=Me.createElement(Gt,Object.assign({virtual:hr,disabled:Ot},pr,{dropdownMatchSelectWidth:nr,builtinPlacements:zi,ref:Ee,prefixCls:Dr,className:cn,listHeight:Lt,listItemHeight:tt,treeCheckable:yt&&Me.createElement("span",{className:`${Dr}-tree-checkbox-inner`}),treeLine:!!Ue,suffixIcon:xr,multiple:Oi,placement:Yr,removeIcon:Ho,allowClear:Sr,switcherIcon:jn,showTreeIcon:dn,notFoundContent:gr,getPopupContainer:an||ei,treeMotion:null,dropdownClassName:Br,choiceTransitionName:(0,Be.m)(Lr,"",Sn),transitionName:(0,Be.m)(Lr,"slide-up",Pt),treeExpandAction:Xn}));return Wi(fr(Dn))},vr=Me.forwardRef(li),ui=(0,Ve.Z)(vr);vr.TreeNode=ke,vr.SHOW_ALL=Yn,vr.SHOW_PARENT=St,vr.SHOW_CHILD=Vn,vr._InternalPanelDoNotUseOrYouWillBeFired=ui;var Ir=vr},86914:function(In,Fn,ye){"use strict";ye.d(Fn,{default:function(){return ht}});var xe=ye(99581),Ie=ye(26390),We=ye(43971),It=ye(58358),Qe=ye(5891),vt=ye(59301),Ne={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"},Tt=Ne,Ft=ye(88853),qe=function(At,wn){return vt.createElement(Ft.Z,(0,Qe.Z)({},At,{ref:wn,icon:Tt}))},gt=vt.forwardRef(qe),dt=gt,Ct=ye(92310),Me=ye.n(Ct),te=ye(35654),ne=ye(71430),ce=ye(36355),se=ye(44757),ge=ye(62892),ve=ye(20648);const Ce=4;function ke(je){const{dropPosition:At,dropLevelOffset:wn,prefixCls:rn,indent:bt,direction:Jt="ltr"}=je,un=Jt==="ltr"?"left":"right",Kn=Jt==="ltr"?"right":"left",En={[un]:-wn*bt+Ce,[Kn]:0};switch(At){case-1:En.top=-3;break;case 1:En.bottom=-3;break;default:En.bottom=-3,En[un]=bt+Ce;break}return vt.createElement("div",{style:En,className:`${rn}-drop-indicator`})}var Pe=ye(48610),Ke=vt.forwardRef((je,At)=>{const{getPrefixCls:wn,direction:rn,virtual:bt,tree:Jt}=vt.useContext(ce.E_),{prefixCls:un,className:Kn,showIcon:En=!1,showLine:Yn,switcherIcon:St,blockNode:Vn=!1,children:Cn,checkable:Si=!1,selectable:Bn=!0,draggable:tn,motion:$t,style:ct}=je,ze=wn("tree",un),Ut=wn(),Gt=$t!=null?$t:Object.assign(Object.assign({},(0,ge.Z)(Ut)),{motionAppear:!1}),at=Object.assign(Object.assign({},je),{checkable:Si,selectable:Bn,showIcon:En,motion:Gt,blockNode:Vn,showLine:!!Yn,dropIndicatorRender:ke}),[Ve,Be]=(0,ve.ZP)(ze),we=vt.useMemo(()=>{if(!tn)return!1;let De={};switch(typeof tn){case"function":De.nodeDraggable=tn;break;case"object":De=Object.assign({},tn);break;default:break}return De.icon!==!1&&(De.icon=De.icon||vt.createElement(se.Z,null)),De},[tn]),me=De=>vt.createElement(Pe.Z,{prefixCls:ze,switcherIcon:St,treeNodeProps:De,showLine:Yn});return Ve(vt.createElement(xe.Z,Object.assign({itemHeight:20,ref:At,virtual:bt},at,{style:Object.assign(Object.assign({},Jt==null?void 0:Jt.style),ct),prefixCls:ze,className:Me()({[`${ze}-icon-hide`]:!En,[`${ze}-block-node`]:Vn,[`${ze}-unselectable`]:!Bn,[`${ze}-rtl`]:rn==="rtl"},Jt==null?void 0:Jt.className,Kn,Be),direction:rn,checkable:Si&&vt.createElement("span",{className:`${ze}-checkbox-inner`}),selectable:Bn,switcherIcon:me,draggable:we}),Cn))}),et;(function(je){je[je.None=0]="None",je[je.Start=1]="Start",je[je.End=2]="End"})(et||(et={}));function Xe(je,At){function wn(rn){const{key:bt,children:Jt}=rn;At(bt,rn)!==!1&&Xe(Jt||[],At)}je.forEach(wn)}function ft(je){let{treeData:At,expandedKeys:wn,startKey:rn,endKey:bt}=je;const Jt=[];let un=et.None;if(rn&&rn===bt)return[rn];if(!rn||!bt)return[];function Kn(En){return En===rn||En===bt}return Xe(At,En=>{if(un===et.End)return!1;if(Kn(En)){if(Jt.push(En),un===et.None)un=et.Start;else if(un===et.Start)return un=et.End,!1}else un===et.Start&&Jt.push(En);return wn.includes(En)}),Jt}function Ge(je,At){const wn=(0,Ie.Z)(At),rn=[];return Xe(je,(bt,Jt)=>{const un=wn.indexOf(bt);return un!==-1&&(rn.push(Jt),wn.splice(un,1)),!!wn.length}),rn}var kt=function(je,At){var wn={};for(var rn in je)Object.prototype.hasOwnProperty.call(je,rn)&&At.indexOf(rn)<0&&(wn[rn]=je[rn]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,rn=Object.getOwnPropertySymbols(je);bt<rn.length;bt++)At.indexOf(rn[bt])<0&&Object.prototype.propertyIsEnumerable.call(je,rn[bt])&&(wn[rn[bt]]=je[rn[bt]]);return wn};function $e(je){const{isLeaf:At,expanded:wn}=je;return At?vt.createElement(We.Z,null):wn?vt.createElement(It.Z,null):vt.createElement(dt,null)}function zt(je){let{treeData:At,children:wn}=je;return At||(0,ne.zn)(wn)}const Ht=(je,At)=>{var{defaultExpandAll:wn,defaultExpandParent:rn,defaultExpandedKeys:bt}=je,Jt=kt(je,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const un=vt.useRef(),Kn=vt.useRef(),En=()=>{const{keyEntities:we}=(0,ne.I8)(zt(Jt));let me;return wn?me=Object.keys(we):rn?me=(0,te.r7)(Jt.expandedKeys||bt||[],we):me=Jt.expandedKeys||bt,me},[Yn,St]=vt.useState(Jt.selectedKeys||Jt.defaultSelectedKeys||[]),[Vn,Cn]=vt.useState(()=>En());vt.useEffect(()=>{"selectedKeys"in Jt&&St(Jt.selectedKeys)},[Jt.selectedKeys]),vt.useEffect(()=>{"expandedKeys"in Jt&&Cn(Jt.expandedKeys)},[Jt.expandedKeys]);const Si=(we,me)=>{var De;return"expandedKeys"in Jt||Cn(we),(De=Jt.onExpand)===null||De===void 0?void 0:De.call(Jt,we,me)},Bn=(we,me)=>{var De;const{multiple:Re}=Jt,{node:Le,nativeEvent:st}=me,{key:Vt=""}=Le,sn=zt(Jt),ln=Object.assign(Object.assign({},me),{selected:!0}),Hn=(st==null?void 0:st.ctrlKey)||(st==null?void 0:st.metaKey),wi=st==null?void 0:st.shiftKey;let Pi;Re&&Hn?(Pi=we,un.current=Vt,Kn.current=Pi,ln.selectedNodes=Ge(sn,Pi)):Re&&wi?(Pi=Array.from(new Set([].concat((0,Ie.Z)(Kn.current||[]),(0,Ie.Z)(ft({treeData:sn,expandedKeys:Vn,startKey:Vt,endKey:un.current}))))),ln.selectedNodes=Ge(sn,Pi)):(Pi=[Vt],un.current=Vt,Kn.current=Pi,ln.selectedNodes=Ge(sn,Pi)),(De=Jt.onSelect)===null||De===void 0||De.call(Jt,Pi,ln),"selectedKeys"in Jt||St(Pi)},{getPrefixCls:tn,direction:$t}=vt.useContext(ce.E_),{prefixCls:ct,className:ze,showIcon:Ut=!0,expandAction:Gt="click"}=Jt,at=kt(Jt,["prefixCls","className","showIcon","expandAction"]),Ve=tn("tree",ct),Be=Me()(`${Ve}-directory`,{[`${Ve}-directory-rtl`]:$t==="rtl"},ze);return vt.createElement(Ke,Object.assign({icon:$e,ref:At,blockNode:!0},at,{showIcon:Ut,expandAction:Gt,prefixCls:Ve,className:Be,expandedKeys:Vn,selectedKeys:Yn,onSelect:Bn,onExpand:Si}))};var Bt=vt.forwardRef(Ht);const Qt=Ke;Qt.DirectoryTree=Bt,Qt.TreeNode=xe.O;var ht=Qt},20648:function(In,Fn,ye){"use strict";ye.d(Fn,{TM:function(){return Ct},Yk:function(){return dt}});var xe=ye(9792),Ie=ye(98447),We=ye(17313),It=ye(8378),Qe=ye(37613),vt=ye(83116);const Ne=new xe.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Tt=(Me,te)=>({[`.${Me}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${te.motionDurationSlow}`}}}),Ft=(Me,te)=>({[`.${Me}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:te.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${te.lineWidthBold}px solid ${te.colorPrimary}`,borderRadius:"50%",content:'""'}}}),qe=(Me,te)=>{const{treeCls:ne,treeNodeCls:ce,treeNodePadding:se,titleHeight:ge,nodeSelectedBg:ve,nodeHoverBg:Ce}=te,ke=te.paddingXS;return{[ne]:Object.assign(Object.assign({},(0,We.Wf)(te)),{background:te.colorBgContainer,borderRadius:te.borderRadius,transition:`background-color ${te.motionDurationSlow}`,[`&${ne}-rtl`]:{[`${ne}-switcher`]:{"&_close":{[`${ne}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${ne}-active-focused)`]:Object.assign({},(0,We.oN)(te)),[`${ne}-list-holder-inner`]:{alignItems:"flex-start"},[`&${ne}-block-node`]:{[`${ne}-list-holder-inner`]:{alignItems:"stretch",[`${ne}-node-content-wrapper`]:{flex:"auto"},[`${ce}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:se,insetInlineStart:0,border:`1px solid ${te.colorPrimary}`,opacity:0,animationName:Ne,animationDuration:te.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${ce}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${se}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${ne}-node-content-wrapper`]:{color:te.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${ne}-node-content-wrapper`]:Object.assign({},(0,We.oN)(te)),[`&:not(${ce}-disabled).filter-node ${ne}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${ne}-draggable-icon`]:{flexShrink:0,width:ge,lineHeight:`${ge}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${te.motionDurationSlow}`,[`${ce}:hover &`]:{opacity:.45}},[`&${ce}-disabled`]:{[`${ne}-draggable-icon`]:{visibility:"hidden"}}}},[`${ne}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:ge}},[`${ne}-draggable-icon`]:{visibility:"hidden"},[`${ne}-switcher`]:Object.assign(Object.assign({},Tt(Me,te)),{position:"relative",flex:"none",alignSelf:"stretch",width:ge,margin:0,lineHeight:`${ge}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${ne}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:te.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ge/2,bottom:-se,marginInlineStart:-1,borderInlineEnd:`1px solid ${te.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:ge/2*.8,height:ge/2,borderBottom:`1px solid ${te.colorBorder}`,content:'""'}}}),[`${ne}-checkbox`]:{top:"initial",marginInlineEnd:ke},[`${ne}-node-content-wrapper, ${ne}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:ge,margin:0,padding:`0 ${te.paddingXS/2}px`,color:"inherit",lineHeight:`${ge}px`,background:"transparent",borderRadius:te.borderRadius,cursor:"pointer",transition:`all ${te.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:Ce},[`&${ne}-node-selected`]:{backgroundColor:ve},[`${ne}-iconEle`]:{display:"inline-block",width:ge,height:ge,lineHeight:`${ge}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${ne}-unselectable ${ne}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${ne}-node-content-wrapper`]:Object.assign({lineHeight:`${ge}px`,userSelect:"none"},Ft(Me,te)),[`${ce}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${te.colorPrimary}`}},"&-show-line":{[`${ne}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ge/2,bottom:-se,borderInlineEnd:`1px solid ${te.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${ne}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${ce}-leaf-last`]:{[`${ne}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${ge/2}px !important`}}}}})}},gt=Me=>{const{treeCls:te,treeNodeCls:ne,treeNodePadding:ce,directoryNodeSelectedBg:se,directoryNodeSelectedColor:ge}=Me;return{[`${te}${te}-directory`]:{[ne]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:ce,insetInlineStart:0,transition:`background-color ${Me.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:Me.controlItemBgHover}},"> *":{zIndex:1},[`${te}-switcher`]:{transition:`color ${Me.motionDurationMid}`},[`${te}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${te}-node-selected`]:{color:ge,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:se},[`${te}-switcher`]:{color:ge},[`${te}-node-content-wrapper`]:{color:ge,background:"transparent"}}}}}},dt=(Me,te)=>{const ne=`.${Me}`,ce=`${ne}-treenode`,se=te.paddingXS/2,ge=(0,Qe.TS)(te,{treeCls:ne,treeNodeCls:ce,treeNodePadding:se});return[qe(Me,ge),gt(ge)]},Ct=Me=>{const{controlHeightSM:te}=Me;return{titleHeight:te,nodeHoverBg:Me.controlItemBgHover,nodeSelectedBg:Me.controlItemBgActive}};Fn.ZP=(0,vt.Z)("Tree",(Me,te)=>{let{prefixCls:ne}=te;return[{[Me.componentCls]:(0,Ie.C2)(`${ne}-checkbox`,Me)},dt(ne,Me),(0,It.Z)(Me)]},Me=>{const{colorTextLightSolid:te,colorPrimary:ne}=Me;return Object.assign(Object.assign({},Ct(Me)),{directoryNodeSelectedColor:te,directoryNodeSelectedBg:ne})})},48610:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return ce}});var xe=ye(5891),Ie=ye(59301),We={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"},It=We,Qe=ye(88853),vt=function(ge,ve){return Ie.createElement(Qe.Z,(0,xe.Z)({},ge,{ref:ve,icon:It}))},Ne=Ie.forwardRef(vt),Tt=Ne,Ft=ye(43971),qe=ye(50023),gt=ye(77042),dt=ye(5527),Ct=ye(92310),Me=ye.n(Ct),te=ye(92343),ce=se=>{const{prefixCls:ge,switcherIcon:ve,treeNodeProps:Ce,showLine:ke}=se,{isLeaf:Pe,expanded:Te,loading:Ke}=Ce;if(Ke)return Ie.createElement(qe.Z,{className:`${ge}-switcher-loading-icon`});let et;if(ke&&typeof ke=="object"&&(et=ke.showLeafIcon),Pe){if(!ke)return null;if(typeof et!="boolean"&&et){const Ge=typeof et=="function"?et(Ce):et,kt=`${ge}-switcher-line-custom-icon`;return(0,te.l$)(Ge)?(0,te.Tm)(Ge,{className:Me()(Ge.props.className||"",kt)}):Ge}return et?Ie.createElement(Ft.Z,{className:`${ge}-switcher-line-icon`}):Ie.createElement("span",{className:`${ge}-switcher-leaf-line`})}const Xe=`${ge}-switcher-icon`,ft=typeof ve=="function"?ve(Ce):ve;return(0,te.l$)(ft)?(0,te.Tm)(ft,{className:Me()(ft.props.className||"",Xe)}):ft!==void 0?ft:ke?Te?Ie.createElement(gt.Z,{className:`${ge}-switcher-line-icon`}):Ie.createElement(dt.Z,{className:`${ge}-switcher-line-icon`}):Ie.createElement(Tt,{className:Xe})}},99498:function(In,Fn,ye){(function(xe){xe(ye(89780))})(function(xe){xe.defineOption("placeholder","",function(Tt,Ft,qe){var gt=qe&&qe!=xe.Init;if(Ft&&!gt)Tt.on("blur",Qe),Tt.on("change",vt),Tt.on("swapDoc",vt),xe.on(Tt.getInputField(),"compositionupdate",Tt.state.placeholderCompose=function(){It(Tt)}),vt(Tt);else if(!Ft&&gt){Tt.off("blur",Qe),Tt.off("change",vt),Tt.off("swapDoc",vt),xe.off(Tt.getInputField(),"compositionupdate",Tt.state.placeholderCompose),Ie(Tt);var dt=Tt.getWrapperElement();dt.className=dt.className.replace(" CodeMirror-empty","")}Ft&&!Tt.hasFocus()&&Qe(Tt)});function Ie(Tt){Tt.state.placeholder&&(Tt.state.placeholder.parentNode.removeChild(Tt.state.placeholder),Tt.state.placeholder=null)}function We(Tt){Ie(Tt);var Ft=Tt.state.placeholder=document.createElement("pre");Ft.style.cssText="height: 0; overflow: visible",Ft.style.direction=Tt.getOption("direction"),Ft.className="CodeMirror-placeholder CodeMirror-line-like";var qe=Tt.getOption("placeholder");typeof qe=="string"&&(qe=document.createTextNode(qe)),Ft.appendChild(qe),Tt.display.lineSpace.insertBefore(Ft,Tt.display.lineSpace.firstChild)}function It(Tt){setTimeout(function(){var Ft=!1,qe=Tt.getInputField();qe.nodeName=="TEXTAREA"?Ft=!qe.value:Tt.lineCount()==1&&(Ft=!/[^\u200b]/.test(qe.querySelector(".CodeMirror-line").textContent)),Ft?We(Tt):Ie(Tt)},20)}function Qe(Tt){Ne(Tt)&&We(Tt)}function vt(Tt){var Ft=Tt.getWrapperElement(),qe=Ne(Tt);Ft.className=Ft.className.replace(" CodeMirror-empty","")+(qe?" CodeMirror-empty":""),qe?We(Tt):Ie(Tt)}function Ne(Tt){return Tt.lineCount()===1&&Tt.getLine(0)===""}})},25717:function(In,Fn,ye){(function(xe){xe(ye(89780))})(function(xe){var Ie={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},We=xe.Pos;xe.defineOption("autoCloseBrackets",!1,function(te,ne,ce){ce&&ce!=xe.Init&&(te.removeKeyMap(Qe),te.state.closeBrackets=null),ne&&(vt(It(ne,"pairs")),te.state.closeBrackets=ne,te.addKeyMap(Qe))});function It(te,ne){return ne=="pairs"&&typeof te=="string"?te:typeof te=="object"&&te[ne]!=null?te[ne]:Ie[ne]}var Qe={Backspace:Ft,Enter:qe};function vt(te){for(var ne=0;ne<te.length;ne++){var ce=te.charAt(ne),se="'"+ce+"'";Qe[se]||(Qe[se]=Ne(ce))}}vt(Ie.pairs+"`");function Ne(te){return function(ne){return dt(ne,te)}}function Tt(te){var ne=te.state.closeBrackets;if(!ne||ne.override)return ne;var ce=te.getModeAt(te.getCursor());return ce.closeBrackets||ne}function Ft(te){var ne=Tt(te);if(!ne||te.getOption("disableInput"))return xe.Pass;for(var ce=It(ne,"pairs"),se=te.listSelections(),ge=0;ge<se.length;ge++){if(!se[ge].empty())return xe.Pass;var ve=Ct(te,se[ge].head);if(!ve||ce.indexOf(ve)%2!=0)return xe.Pass}for(var ge=se.length-1;ge>=0;ge--){var Ce=se[ge].head;te.replaceRange("",We(Ce.line,Ce.ch-1),We(Ce.line,Ce.ch+1),"+delete")}}function qe(te){var ne=Tt(te),ce=ne&&It(ne,"explode");if(!ce||te.getOption("disableInput"))return xe.Pass;for(var se=te.listSelections(),ge=0;ge<se.length;ge++){if(!se[ge].empty())return xe.Pass;var ve=Ct(te,se[ge].head);if(!ve||ce.indexOf(ve)%2!=0)return xe.Pass}te.operation(function(){var Ce=te.lineSeparator()||`
`;te.replaceSelection(Ce+Ce,null),te.execCommand("goCharLeft"),se=te.listSelections();for(var ke=0;ke<se.length;ke++){var Pe=se[ke].head.line;te.indentLine(Pe,null,!0),te.indentLine(Pe+1,null,!0)}})}function gt(te){var ne=xe.cmpPos(te.anchor,te.head)>0;return{anchor:new We(te.anchor.line,te.anchor.ch+(ne?-1:1)),head:new We(te.head.line,te.head.ch+(ne?1:-1))}}function dt(te,ne){var ce=Tt(te);if(!ce||te.getOption("disableInput"))return xe.Pass;var se=It(ce,"pairs"),ge=se.indexOf(ne);if(ge==-1)return xe.Pass;for(var ve=It(ce,"closeBefore"),Ce=It(ce,"triples"),ke=se.charAt(ge+1)==ne,Pe=te.listSelections(),Te=ge%2==0,Ke,et=0;et<Pe.length;et++){var Xe=Pe[et],ft=Xe.head,Ge,kt=te.getRange(ft,We(ft.line,ft.ch+1));if(Te&&!Xe.empty())Ge="surround";else if((ke||!Te)&&kt==ne)ke&&Me(te,ft)?Ge="both":Ce.indexOf(ne)>=0&&te.getRange(ft,We(ft.line,ft.ch+3))==ne+ne+ne?Ge="skipThree":Ge="skip";else if(ke&&ft.ch>1&&Ce.indexOf(ne)>=0&&te.getRange(We(ft.line,ft.ch-2),ft)==ne+ne){if(ft.ch>2&&/\bstring/.test(te.getTokenTypeAt(We(ft.line,ft.ch-2))))return xe.Pass;Ge="addFour"}else if(ke){var $e=ft.ch==0?" ":te.getRange(We(ft.line,ft.ch-1),ft);if(!xe.isWordChar(kt)&&$e!=ne&&!xe.isWordChar($e))Ge="both";else return xe.Pass}else if(Te&&(kt.length===0||/\s/.test(kt)||ve.indexOf(kt)>-1))Ge="both";else return xe.Pass;if(!Ke)Ke=Ge;else if(Ke!=Ge)return xe.Pass}var zt=ge%2?se.charAt(ge-1):ne,Ht=ge%2?ne:se.charAt(ge+1);te.operation(function(){if(Ke=="skip")te.execCommand("goCharRight");else if(Ke=="skipThree")for(var Yt=0;Yt<3;Yt++)te.execCommand("goCharRight");else if(Ke=="surround"){for(var Bt=te.getSelections(),Yt=0;Yt<Bt.length;Yt++)Bt[Yt]=zt+Bt[Yt]+Ht;te.replaceSelections(Bt,"around"),Bt=te.listSelections().slice();for(var Yt=0;Yt<Bt.length;Yt++)Bt[Yt]=gt(Bt[Yt]);te.setSelections(Bt)}else Ke=="both"?(te.replaceSelection(zt+Ht,null),te.triggerElectric(zt+Ht),te.execCommand("goCharLeft")):Ke=="addFour"&&(te.replaceSelection(zt+zt+zt+zt,"before"),te.execCommand("goCharRight"))})}function Ct(te,ne){var ce=te.getRange(We(ne.line,ne.ch-1),We(ne.line,ne.ch+1));return ce.length==2?ce:null}function Me(te,ne){var ce=te.getTokenAt(We(ne.line,ne.ch+1));return/\bstring/.test(ce.type)&&ce.start==ne.ch&&(ne.ch==0||!/\bstring/.test(te.getTokenTypeAt(ne)))}})},6313:function(In,Fn,ye){(function(xe){xe(ye(89780),ye(32855))})(function(xe){xe.defineOption("autoCloseTags",!1,function(Ft,qe,gt){if(gt!=xe.Init&&gt&&Ft.removeKeyMap("autoCloseTags"),!!qe){var dt={name:"autoCloseTags"};(typeof qe!="object"||qe.whenClosing!==!1)&&(dt["'/'"]=function(Ct){return vt(Ct)}),(typeof qe!="object"||qe.whenOpening!==!1)&&(dt["'>'"]=function(Ct){return It(Ct)}),Ft.addKeyMap(dt)}});var Ie=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],We=["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 It(Ft){if(Ft.getOption("disableInput"))return xe.Pass;for(var qe=Ft.listSelections(),gt=[],dt=Ft.getOption("autoCloseTags"),Ct=0;Ct<qe.length;Ct++){if(!qe[Ct].empty())return xe.Pass;var Me=qe[Ct].head,te=Ft.getTokenAt(Me),ne=xe.innerMode(Ft.getMode(),te.state),ce=ne.state,se=ne.mode.xmlCurrentTag&&ne.mode.xmlCurrentTag(ce),ge=se&&se.name;if(!ge)return xe.Pass;var ve=ne.mode.configuration=="html",Ce=typeof dt=="object"&&dt.dontCloseTags||ve&&Ie,ke=typeof dt=="object"&&dt.indentTags||ve&&We;te.end>Me.ch&&(ge=ge.slice(0,ge.length-te.end+Me.ch));var Pe=ge.toLowerCase();if(!ge||te.type=="string"&&(te.end!=Me.ch||!/[\"\']/.test(te.string.charAt(te.string.length-1))||te.string.length==1)||te.type=="tag"&&se.close||te.string.indexOf("/")==Me.ch-te.start-1||Ce&&Ne(Ce,Pe)>-1||Tt(Ft,ne.mode.xmlCurrentContext&&ne.mode.xmlCurrentContext(ce)||[],ge,Me,!0))return xe.Pass;var Te=typeof dt=="object"&&dt.emptyTags;if(Te&&Ne(Te,ge)>-1){gt[Ct]={text:"/>",newPos:xe.Pos(Me.line,Me.ch+2)};continue}var Ke=ke&&Ne(ke,Pe)>-1;gt[Ct]={indent:Ke,text:">"+(Ke?`
`:"")+"</"+ge+">",newPos:Ke?xe.Pos(Me.line+1,0):xe.Pos(Me.line,Me.ch+1)}}for(var et=typeof dt=="object"&&dt.dontIndentOnAutoClose,Ct=qe.length-1;Ct>=0;Ct--){var Xe=gt[Ct];Ft.replaceRange(Xe.text,qe[Ct].head,qe[Ct].anchor,"+insert");var ft=Ft.listSelections().slice(0);ft[Ct]={head:Xe.newPos,anchor:Xe.newPos},Ft.setSelections(ft),!et&&Xe.indent&&(Ft.indentLine(Xe.newPos.line,null,!0),Ft.indentLine(Xe.newPos.line+1,null,!0))}}function Qe(Ft,qe){for(var gt=Ft.listSelections(),dt=[],Ct=qe?"/":"</",Me=Ft.getOption("autoCloseTags"),te=typeof Me=="object"&&Me.dontIndentOnSlash,ne=0;ne<gt.length;ne++){if(!gt[ne].empty())return xe.Pass;var ce=gt[ne].head,se=Ft.getTokenAt(ce),ge=xe.innerMode(Ft.getMode(),se.state),ve=ge.state;if(qe&&(se.type=="string"||se.string.charAt(0)!="<"||se.start!=ce.ch-1))return xe.Pass;var Ce,ke=ge.mode.name!="xml"&&Ft.getMode().name=="htmlmixed";if(ke&&ge.mode.name=="javascript")Ce=Ct+"script";else if(ke&&ge.mode.name=="css")Ce=Ct+"style";else{var Pe=ge.mode.xmlCurrentContext&&ge.mode.xmlCurrentContext(ve);if(!Pe||Pe.length&&Tt(Ft,Pe,Pe[Pe.length-1],ce))return xe.Pass;Ce=Ct+Pe[Pe.length-1]}Ft.getLine(ce.line).charAt(se.end)!=">"&&(Ce+=">"),dt[ne]=Ce}if(Ft.replaceSelections(dt),gt=Ft.listSelections(),!te)for(var ne=0;ne<gt.length;ne++)(ne==gt.length-1||gt[ne].head.line<gt[ne+1].head.line)&&Ft.indentLine(gt[ne].head.line)}function vt(Ft){return Ft.getOption("disableInput")?xe.Pass:Qe(Ft,!0)}xe.commands.closeTag=function(Ft){return Qe(Ft)};function Ne(Ft,qe){if(Ft.indexOf)return Ft.indexOf(qe);for(var gt=0,dt=Ft.length;gt<dt;++gt)if(Ft[gt]==qe)return gt;return-1}function Tt(Ft,qe,gt,dt,Ct){if(!xe.scanForClosingTag)return!1;var Me=Math.min(Ft.lastLine()+1,dt.line+500),te=xe.scanForClosingTag(Ft,dt,null,Me);if(!te||te.tag!=gt)return!1;for(var ne=Ct?1:0,ce=qe.length-1;ce>=0&&qe[ce]==gt;ce--)++ne;dt=te.to;for(var ce=1;ce<ne;ce++){var se=xe.scanForClosingTag(Ft,dt,null,Me);if(!se||se.tag!=gt)return!1;dt=se.to}return!0}})},32855:function(In,Fn,ye){(function(xe){xe(ye(89780))})(function(xe){"use strict";var Ie=xe.Pos;function We(ce,se){return ce.line-se.line||ce.ch-se.ch}var It="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",Qe=It+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",vt=new RegExp("<(/?)(["+It+"]["+Qe+"]*)","g");function Ne(ce,se,ge,ve){this.line=se,this.ch=ge,this.cm=ce,this.text=ce.getLine(se),this.min=ve?Math.max(ve.from,ce.firstLine()):ce.firstLine(),this.max=ve?Math.min(ve.to-1,ce.lastLine()):ce.lastLine()}function Tt(ce,se){var ge=ce.cm.getTokenTypeAt(Ie(ce.line,se));return ge&&/\btag\b/.test(ge)}function Ft(ce){if(!(ce.line>=ce.max))return ce.ch=0,ce.text=ce.cm.getLine(++ce.line),!0}function qe(ce){if(!(ce.line<=ce.min))return ce.text=ce.cm.getLine(--ce.line),ce.ch=ce.text.length,!0}function gt(ce){for(;;){var se=ce.text.indexOf(">",ce.ch);if(se==-1){if(Ft(ce))continue;return}if(!Tt(ce,se+1)){ce.ch=se+1;continue}var ge=ce.text.lastIndexOf("/",se),ve=ge>-1&&!/\S/.test(ce.text.slice(ge+1,se));return ce.ch=se+1,ve?"selfClose":"regular"}}function dt(ce){for(;;){var se=ce.ch?ce.text.lastIndexOf("<",ce.ch-1):-1;if(se==-1){if(qe(ce))continue;return}if(!Tt(ce,se+1)){ce.ch=se;continue}vt.lastIndex=se,ce.ch=se;var ge=vt.exec(ce.text);if(ge&&ge.index==se)return ge}}function Ct(ce){for(;;){vt.lastIndex=ce.ch;var se=vt.exec(ce.text);if(!se){if(Ft(ce))continue;return}if(!Tt(ce,se.index+1)){ce.ch=se.index+1;continue}return ce.ch=se.index+se[0].length,se}}function Me(ce){for(;;){var se=ce.ch?ce.text.lastIndexOf(">",ce.ch-1):-1;if(se==-1){if(qe(ce))continue;return}if(!Tt(ce,se+1)){ce.ch=se;continue}var ge=ce.text.lastIndexOf("/",se),ve=ge>-1&&!/\S/.test(ce.text.slice(ge+1,se));return ce.ch=se+1,ve?"selfClose":"regular"}}function te(ce,se){for(var ge=[];;){var ve=Ct(ce),Ce,ke=ce.line,Pe=ce.ch-(ve?ve[0].length:0);if(!ve||!(Ce=gt(ce)))return;if(Ce!="selfClose")if(ve[1]){for(var Te=ge.length-1;Te>=0;--Te)if(ge[Te]==ve[2]){ge.length=Te;break}if(Te<0&&(!se||se==ve[2]))return{tag:ve[2],from:Ie(ke,Pe),to:Ie(ce.line,ce.ch)}}else ge.push(ve[2])}}function ne(ce,se){for(var ge=[];;){var ve=Me(ce);if(!ve)return;if(ve=="selfClose"){dt(ce);continue}var Ce=ce.line,ke=ce.ch,Pe=dt(ce);if(!Pe)return;if(Pe[1])ge.push(Pe[2]);else{for(var Te=ge.length-1;Te>=0;--Te)if(ge[Te]==Pe[2]){ge.length=Te;break}if(Te<0&&(!se||se==Pe[2]))return{tag:Pe[2],from:Ie(ce.line,ce.ch),to:Ie(Ce,ke)}}}}xe.registerHelper("fold","xml",function(ce,se){for(var ge=new Ne(ce,se.line,0);;){var ve=Ct(ge);if(!ve||ge.line!=se.line)return;var Ce=gt(ge);if(!Ce)return;if(!ve[1]&&Ce!="selfClose"){var ke=Ie(ge.line,ge.ch),Pe=te(ge,ve[2]);return Pe&&We(Pe.from,ke)>0?{from:ke,to:Pe.from}:null}}}),xe.findMatchingTag=function(ce,se,ge){var ve=new Ne(ce,se.line,se.ch,ge);if(!(ve.text.indexOf(">")==-1&&ve.text.indexOf("<")==-1)){var Ce=gt(ve),ke=Ce&&Ie(ve.line,ve.ch),Pe=Ce&&dt(ve);if(!(!Ce||!Pe||We(ve,se)>0)){var Te={from:Ie(ve.line,ve.ch),to:ke,tag:Pe[2]};return Ce=="selfClose"?{open:Te,close:null,at:"open"}:Pe[1]?{open:ne(ve,Pe[2]),close:Te,at:"close"}:(ve=new Ne(ce,ke.line,ke.ch,ge),{open:Te,close:te(ve,Pe[2]),at:"open"})}}},xe.findEnclosingTag=function(ce,se,ge,ve){for(var Ce=new Ne(ce,se.line,se.ch,ge);;){var ke=ne(Ce,ve);if(!ke)break;var Pe=new Ne(ce,se.line,se.ch,ge),Te=te(Pe,ke.tag);if(Te)return{open:ke,close:Te}}},xe.scanForClosingTag=function(ce,se,ge,ve){var Ce=new Ne(ce,se.line,se.ch,ve?{from:0,to:ve}:null);return te(Ce,ge)}})},89780:function(In){(function(Fn,ye){In.exports=ye()})(this,function(){"use strict";var Fn=navigator.userAgent,ye=navigator.platform,xe=/gecko\/\d/i.test(Fn),Ie=/MSIE \d/.test(Fn),We=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Fn),It=/Edge\/(\d+)/.exec(Fn),Qe=Ie||We||It,vt=Qe&&(Ie?document.documentMode||6:+(It||We)[1]),Ne=!It&&/WebKit\//.test(Fn),Tt=Ne&&/Qt\/\d+\.\d+/.test(Fn),Ft=!It&&/Chrome\//.test(Fn),qe=/Opera\//.test(Fn),gt=/Apple Computer/.test(navigator.vendor),dt=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Fn),Ct=/PhantomJS/.test(Fn),Me=!It&&/AppleWebKit/.test(Fn)&&/Mobile\/\w+/.test(Fn),te=/Android/.test(Fn),ne=Me||te||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Fn),ce=Me||/Mac/.test(ye),se=/\bCrOS\b/.test(Fn),ge=/win/i.test(ye),ve=qe&&Fn.match(/Version\/(\d*\.\d*)/);ve&&(ve=Number(ve[1])),ve&&ve>=15&&(qe=!1,Ne=!0);var Ce=ce&&(Tt||qe&&(ve==null||ve<12.11)),ke=xe||Qe&&vt>=9;function Pe(ie){return new RegExp("(^|\\s)"+ie+"(?:$|\\s)\\s*")}var Te=function(ie,ae){var he=ie.className,de=Pe(ae).exec(he);if(de){var pe=he.slice(de.index+de[0].length);ie.className=he.slice(0,de.index)+(pe?de[1]+pe:"")}};function Ke(ie){for(var ae=ie.childNodes.length;ae>0;--ae)ie.removeChild(ie.firstChild);return ie}function et(ie,ae){return Ke(ie).appendChild(ae)}function Xe(ie,ae,he,de){var pe=document.createElement(ie);if(he&&(pe.className=he),de&&(pe.style.cssText=de),typeof ae=="string")pe.appendChild(document.createTextNode(ae));else if(ae)for(var Fe=0;Fe<ae.length;++Fe)pe.appendChild(ae[Fe]);return pe}function ft(ie,ae,he,de){var pe=Xe(ie,ae,he,de);return pe.setAttribute("role","presentation"),pe}var Ge;document.createRange?Ge=function(ie,ae,he,de){var pe=document.createRange();return pe.setEnd(de||ie,he),pe.setStart(ie,ae),pe}:Ge=function(ie,ae,he){var de=document.body.createTextRange();try{de.moveToElementText(ie.parentNode)}catch(pe){return de}return de.collapse(!0),de.moveEnd("character",he),de.moveStart("character",ae),de};function kt(ie,ae){if(ae.nodeType==3&&(ae=ae.parentNode),ie.contains)return ie.contains(ae);do if(ae.nodeType==11&&(ae=ae.host),ae==ie)return!0;while(ae=ae.parentNode)}function $e(){var ie;try{ie=document.activeElement}catch(ae){ie=document.body||null}for(;ie&&ie.shadowRoot&&ie.shadowRoot.activeElement;)ie=ie.shadowRoot.activeElement;return ie}function zt(ie,ae){var he=ie.className;Pe(ae).test(he)||(ie.className+=(he?" ":"")+ae)}function Ht(ie,ae){for(var he=ie.split(" "),de=0;de<he.length;de++)he[de]&&!Pe(he[de]).test(ae)&&(ae+=" "+he[de]);return ae}var Yt=function(ie){ie.select()};Me?Yt=function(ie){ie.selectionStart=0,ie.selectionEnd=ie.value.length}:Qe&&(Yt=function(ie){try{ie.select()}catch(ae){}});function Bt(ie){var ae=Array.prototype.slice.call(arguments,1);return function(){return ie.apply(null,ae)}}function Qt(ie,ae,he){ae||(ae={});for(var de in ie)ie.hasOwnProperty(de)&&(he!==!1||!ae.hasOwnProperty(de))&&(ae[de]=ie[de]);return ae}function ht(ie,ae,he,de,pe){ae==null&&(ae=ie.search(/[^\s\u00a0]/),ae==-1&&(ae=ie.length));for(var Fe=de||0,Ze=pe||0;;){var ot=ie.indexOf(" ",Fe);if(ot<0||ot>=ae)return Ze+(ae-Fe);Ze+=ot-Fe,Ze+=he-Ze%he,Fe=ot+1}}var je=function(){this.id=null,this.f=null,this.time=0,this.handler=Bt(this.onTimeout,this)};je.prototype.onTimeout=function(ie){ie.id=0,ie.time<=+new Date?ie.f():setTimeout(ie.handler,ie.time-+new Date)},je.prototype.set=function(ie,ae){this.f=ae;var he=+new Date+ie;(!this.id||he<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,ie),this.time=he)};function At(ie,ae){for(var he=0;he<ie.length;++he)if(ie[he]==ae)return he;return-1}var wn=50,rn={toString:function(){return"CodeMirror.Pass"}},bt={scroll:!1},Jt={origin:"*mouse"},un={origin:"+move"};function Kn(ie,ae,he){for(var de=0,pe=0;;){var Fe=ie.indexOf(" ",de);Fe==-1&&(Fe=ie.length);var Ze=Fe-de;if(Fe==ie.length||pe+Ze>=ae)return de+Math.min(Ze,ae-pe);if(pe+=Fe-de,pe+=he-pe%he,de=Fe+1,pe>=ae)return de}}var En=[""];function Yn(ie){for(;En.length<=ie;)En.push(St(En)+" ");return En[ie]}function St(ie){return ie[ie.length-1]}function Vn(ie,ae){for(var he=[],de=0;de<ie.length;de++)he[de]=ae(ie[de],de);return he}function Cn(ie,ae,he){for(var de=0,pe=he(ae);de<ie.length&&he(ie[de])<=pe;)de++;ie.splice(de,0,ae)}function Si(){}function Bn(ie,ae){var he;return Object.create?he=Object.create(ie):(Si.prototype=ie,he=new Si),ae&&Qt(ae,he),he}var tn=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function $t(ie){return/\w/.test(ie)||ie>"\x80"&&(ie.toUpperCase()!=ie.toLowerCase()||tn.test(ie))}function ct(ie,ae){return ae?ae.source.indexOf("\\w")>-1&&$t(ie)?!0:ae.test(ie):$t(ie)}function ze(ie){for(var ae in ie)if(ie.hasOwnProperty(ae)&&ie[ae])return!1;return!0}var Ut=/[\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 Gt(ie){return ie.charCodeAt(0)>=768&&Ut.test(ie)}function at(ie,ae,he){for(;(he<0?ae>0:ae<ie.length)&&Gt(ie.charAt(ae));)ae+=he;return ae}function Ve(ie,ae,he){for(var de=ae>he?-1:1;;){if(ae==he)return ae;var pe=(ae+he)/2,Fe=de<0?Math.ceil(pe):Math.floor(pe);if(Fe==ae)return ie(Fe)?ae:he;ie(Fe)?he=Fe:ae=Fe+de}}function Be(ie,ae,he,de){if(!ie)return de(ae,he,"ltr",0);for(var pe=!1,Fe=0;Fe<ie.length;++Fe){var Ze=ie[Fe];(Ze.from<he&&Ze.to>ae||ae==he&&Ze.to==ae)&&(de(Math.max(Ze.from,ae),Math.min(Ze.to,he),Ze.level==1?"rtl":"ltr",Fe),pe=!0)}pe||de(ae,he,"ltr")}var we=null;function me(ie,ae,he){var de;we=null;for(var pe=0;pe<ie.length;++pe){var Fe=ie[pe];if(Fe.from<ae&&Fe.to>ae)return pe;Fe.to==ae&&(Fe.from!=Fe.to&&he=="before"?de=pe:we=pe),Fe.from==ae&&(Fe.from!=Fe.to&&he!="before"?de=pe:we=pe)}return de!=null?de:we}var De=function(){var ie="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",ae="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function he(Nt){return Nt<=247?ie.charAt(Nt):1424<=Nt&&Nt<=1524?"R":1536<=Nt&&Nt<=1785?ae.charAt(Nt-1536):1774<=Nt&&Nt<=2220?"r":8192<=Nt&&Nt<=8203?"w":Nt==8204?"b":"L"}var de=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,pe=/[stwN]/,Fe=/[LRr]/,Ze=/[Lb1n]/,ot=/[1n]/;function it(Nt,Nn,Kt){this.level=Nt,this.from=Nn,this.to=Kt}return function(Nt,Nn){var Kt=Nn=="ltr"?"L":"R";if(Nt.length==0||Nn=="ltr"&&!de.test(Nt))return!1;for(var ii=Nt.length,qn=[],ir=0;ir<ii;++ir)qn.push(he(Nt.charCodeAt(ir)));for(var sr=0,Ar=Kt;sr<ii;++sr){var Qr=qn[sr];Qr=="m"?qn[sr]=Ar:Ar=Qr}for(var Eo=0,mo=Kt;Eo<ii;++Eo){var jo=qn[Eo];jo=="1"&&mo=="r"?qn[Eo]="n":Fe.test(jo)&&(mo=jo,jo=="r"&&(qn[Eo]="R"))}for(var ua=1,co=qn[0];ua<ii-1;++ua){var Ma=qn[ua];Ma=="+"&&co=="1"&&qn[ua+1]=="1"?qn[ua]="1":Ma==","&&co==qn[ua+1]&&(co=="1"||co=="n")&&(qn[ua]=co),co=Ma}for(var $s=0;$s<ii;++$s){var Ul=qn[$s];if(Ul==",")qn[$s]="N";else if(Ul=="%"){var fl=void 0;for(fl=$s+1;fl<ii&&qn[fl]=="%";++fl);for(var qu=$s&&qn[$s-1]=="!"||fl<ii&&qn[fl]=="1"?"1":"N",Tu=$s;Tu<fl;++Tu)qn[Tu]=qu;$s=fl-1}}for(var Zl=0,cc=Kt;Zl<ii;++Zl){var xu=qn[Zl];cc=="L"&&xu=="1"?qn[Zl]="L":Fe.test(xu)&&(cc=xu)}for(var Kl=0;Kl<ii;++Kl)if(pe.test(qn[Kl])){var ds=void 0;for(ds=Kl+1;ds<ii&&pe.test(qn[ds]);++ds);for(var Pl=(Kl?qn[Kl-1]:Kt)=="L",nu=(ds<ii?qn[ds]:Kt)=="L",wu=Pl==nu?Pl?"L":"R":Kt,id=Kl;id<ds;++id)qn[id]=wu;Kl=ds-1}for(var gl=[],Wc,kl=0;kl<ii;)if(Ze.test(qn[kl])){var $f=kl;for(++kl;kl<ii&&Ze.test(qn[kl]);++kl);gl.push(new it(0,$f,kl))}else{var Mc=kl,dc=gl.length,ec=Nn=="rtl"?1:0;for(++kl;kl<ii&&qn[kl]!="L";++kl);for(var Hs=Mc;Hs<kl;)if(ot.test(qn[Hs])){Mc<Hs&&(gl.splice(dc,0,new it(1,Mc,Hs)),dc+=ec);var iu=Hs;for(++Hs;Hs<kl&&ot.test(qn[Hs]);++Hs);gl.splice(dc,0,new it(2,iu,Hs)),dc+=ec,Mc=Hs}else++Hs;Mc<kl&&gl.splice(dc,0,new it(1,Mc,kl))}return Nn=="ltr"&&(gl[0].level==1&&(Wc=Nt.match(/^\s+/))&&(gl[0].from=Wc[0].length,gl.unshift(new it(0,0,Wc[0].length))),St(gl).level==1&&(Wc=Nt.match(/\s+$/))&&(St(gl).to-=Wc[0].length,gl.push(new it(0,ii-Wc[0].length,ii)))),Nn=="rtl"?gl.reverse():gl}}();function Re(ie,ae){var he=ie.order;return he==null&&(he=ie.order=De(ie.text,ae)),he}var Le=[],st=function(ie,ae,he){if(ie.addEventListener)ie.addEventListener(ae,he,!1);else if(ie.attachEvent)ie.attachEvent("on"+ae,he);else{var de=ie._handlers||(ie._handlers={});de[ae]=(de[ae]||Le).concat(he)}};function Vt(ie,ae){return ie._handlers&&ie._handlers[ae]||Le}function sn(ie,ae,he){if(ie.removeEventListener)ie.removeEventListener(ae,he,!1);else if(ie.detachEvent)ie.detachEvent("on"+ae,he);else{var de=ie._handlers,pe=de&&de[ae];if(pe){var Fe=At(pe,he);Fe>-1&&(de[ae]=pe.slice(0,Fe).concat(pe.slice(Fe+1)))}}}function ln(ie,ae){var he=Vt(ie,ae);if(he.length)for(var de=Array.prototype.slice.call(arguments,2),pe=0;pe<he.length;++pe)he[pe].apply(null,de)}function Hn(ie,ae,he){return typeof ae=="string"&&(ae={type:ae,preventDefault:function(){this.defaultPrevented=!0}}),ln(ie,he||ae.type,ie,ae),rr(ae)||ae.codemirrorIgnore}function wi(ie){var ae=ie._handlers&&ie._handlers.cursorActivity;if(ae)for(var he=ie.curOp.cursorActivityHandlers||(ie.curOp.cursorActivityHandlers=[]),de=0;de<ae.length;++de)At(he,ae[de])==-1&&he.push(ae[de])}function Pi(ie,ae){return Vt(ie,ae).length>0}function Ri(ie){ie.prototype.on=function(ae,he){st(this,ae,he)},ie.prototype.off=function(ae,he){sn(this,ae,he)}}function Zi(ie){ie.preventDefault?ie.preventDefault():ie.returnValue=!1}function Ln(ie){ie.stopPropagation?ie.stopPropagation():ie.cancelBubble=!0}function rr(ie){return ie.defaultPrevented!=null?ie.defaultPrevented:ie.returnValue==!1}function Kr(ie){Zi(ie),Ln(ie)}function Vr(ie){return ie.target||ie.srcElement}function jr(ie){var ae=ie.which;return ae==null&&(ie.button&1?ae=1:ie.button&2?ae=3:ie.button&4&&(ae=2)),ce&&ie.ctrlKey&&ae==1&&(ae=3),ae}var li=function(){if(Qe&&vt<9)return!1;var ie=Xe("div");return"draggable"in ie||"dragDrop"in ie}(),Ti;function vr(ie){if(Ti==null){var ae=Xe("span","\u200B");et(ie,Xe("span",[ae,document.createTextNode("x")])),ie.firstChild.offsetHeight!=0&&(Ti=ae.offsetWidth<=1&&ae.offsetHeight>2&&!(Qe&&vt<8))}var he=Ti?Xe("span","\u200B"):Xe("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return he.setAttribute("cm-text",""),he}var ui;function Ir(ie){if(ui!=null)return ui;var ae=et(ie,document.createTextNode("A\u062EA")),he=Ge(ae,0,1).getBoundingClientRect(),de=Ge(ae,1,2).getBoundingClientRect();return Ke(ie),!he||he.left==he.right?!1:ui=de.right-he.right<3}var zn=`
b`.split(/\n/).length!=3?function(ie){for(var ae=0,he=[],de=ie.length;ae<=de;){var pe=ie.indexOf(`
`,ae);pe==-1&&(pe=ie.length);var Fe=ie.slice(ae,ie.charAt(pe-1)=="\r"?pe-1:pe),Ze=Fe.indexOf("\r");Ze!=-1?(he.push(Fe.slice(0,Ze)),ae+=Ze+1):(he.push(Fe),ae=pe+1)}return he}:function(ie){return ie.split(/\r\n?|\n/)},Ee=window.getSelection?function(ie){try{return ie.selectionStart!=ie.selectionEnd}catch(ae){return!1}}:function(ie){var ae;try{ae=ie.ownerDocument.selection.createRange()}catch(he){}return!ae||ae.parentElement()!=ie?!1:ae.compareEndPoints("StartToEnd",ae)!=0},cr=function(){var ie=Xe("div");return"oncopy"in ie?!0:(ie.setAttribute("oncopy","return;"),typeof ie.oncopy=="function")}(),Xi=null;function yn(ie){if(Xi!=null)return Xi;var ae=et(ie,Xe("span","x")),he=ae.getBoundingClientRect(),de=Ge(ae,0,1).getBoundingClientRect();return Xi=Math.abs(he.left-de.left)>1}var oi={},Ci={};function xn(ie,ae){arguments.length>2&&(ae.dependencies=Array.prototype.slice.call(arguments,2)),oi[ie]=ae}function on(ie,ae){Ci[ie]=ae}function yt(ie){if(typeof ie=="string"&&Ci.hasOwnProperty(ie))ie=Ci[ie];else if(ie&&typeof ie.name=="string"&&Ci.hasOwnProperty(ie.name)){var ae=Ci[ie.name];typeof ae=="string"&&(ae={name:ae}),ie=Bn(ae,ie),ie.name=ae.name}else{if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(ie))return yt("application/xml");if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(ie))return yt("application/json")}return typeof ie=="string"?{name:ie}:ie||{name:"null"}}function Et(ie,ae){ae=yt(ae);var he=oi[ae.name];if(!he)return Et(ie,"text/plain");var de=he(ie,ae);if(Lt.hasOwnProperty(ae.name)){var pe=Lt[ae.name];for(var Fe in pe)pe.hasOwnProperty(Fe)&&(de.hasOwnProperty(Fe)&&(de["_"+Fe]=de[Fe]),de[Fe]=pe[Fe])}if(de.name=ae.name,ae.helperType&&(de.helperType=ae.helperType),ae.modeProps)for(var Ze in ae.modeProps)de[Ze]=ae.modeProps[Ze];return de}var Lt={};function tt(ie,ae){var he=Lt.hasOwnProperty(ie)?Lt[ie]:Lt[ie]={};Qt(ae,he)}function en(ie,ae){if(ae===!0)return ae;if(ie.copyState)return ie.copyState(ae);var he={};for(var de in ae){var pe=ae[de];pe instanceof Array&&(pe=pe.concat([])),he[de]=pe}return he}function fn(ie,ae){for(var he;ie.innerMode&&(he=ie.innerMode(ae),!(!he||he.mode==ie));)ae=he.state,ie=he.mode;return he||{mode:ie,state:ae}}function xt(ie,ae,he){return ie.startState?ie.startState(ae,he):!0}var Ue=function(ie,ae,he){this.pos=this.start=0,this.string=ie,this.tabSize=ae||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=he};Ue.prototype.eol=function(){return this.pos>=this.string.length},Ue.prototype.sol=function(){return this.pos==this.lineStart},Ue.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ue.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ue.prototype.eat=function(ie){var ae=this.string.charAt(this.pos),he;if(typeof ie=="string"?he=ae==ie:he=ae&&(ie.test?ie.test(ae):ie(ae)),he)return++this.pos,ae},Ue.prototype.eatWhile=function(ie){for(var ae=this.pos;this.eat(ie););return this.pos>ae},Ue.prototype.eatSpace=function(){for(var ie=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>ie},Ue.prototype.skipToEnd=function(){this.pos=this.string.length},Ue.prototype.skipTo=function(ie){var ae=this.string.indexOf(ie,this.pos);if(ae>-1)return this.pos=ae,!0},Ue.prototype.backUp=function(ie){this.pos-=ie},Ue.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ht(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ht(this.string,this.lineStart,this.tabSize):0)},Ue.prototype.indentation=function(){return ht(this.string,null,this.tabSize)-(this.lineStart?ht(this.string,this.lineStart,this.tabSize):0)},Ue.prototype.match=function(ie,ae,he){if(typeof ie=="string"){var de=function(Ze){return he?Ze.toLowerCase():Ze},pe=this.string.substr(this.pos,ie.length);if(de(pe)==de(ie))return ae!==!1&&(this.pos+=ie.length),!0}else{var Fe=this.string.slice(this.pos).match(ie);return Fe&&Fe.index>0?null:(Fe&&ae!==!1&&(this.pos+=Fe[0].length),Fe)}},Ue.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ue.prototype.hideFirstChars=function(ie,ae){this.lineStart+=ie;try{return ae()}finally{this.lineStart-=ie}},Ue.prototype.lookAhead=function(ie){var ae=this.lineOracle;return ae&&ae.lookAhead(ie)},Ue.prototype.baseToken=function(){var ie=this.lineOracle;return ie&&ie.baseToken(this.pos)};function an(ie,ae){if(ae-=ie.first,ae<0||ae>=ie.size)throw new Error("There is no line "+(ae+ie.first)+" in the document.");for(var he=ie;!he.lines;)for(var de=0;;++de){var pe=he.children[de],Fe=pe.chunkSize();if(ae<Fe){he=pe;break}ae-=Fe}return he.lines[ae]}function Dt(ie,ae,he){var de=[],pe=ae.line;return ie.iter(ae.line,he.line+1,function(Fe){var Ze=Fe.text;pe==he.line&&(Ze=Ze.slice(0,he.ch)),pe==ae.line&&(Ze=Ze.slice(ae.ch)),de.push(Ze),++pe}),de}function Rn(ie,ae,he){var de=[];return ie.iter(ae,he,function(pe){de.push(pe.text)}),de}function dn(ie,ae){var he=ae-ie.height;if(he)for(var de=ie;de;de=de.parent)de.height+=he}function Pt(ie){if(ie.parent==null)return null;for(var ae=ie.parent,he=At(ae.lines,ie),de=ae.parent;de;ae=de,de=de.parent)for(var pe=0;de.children[pe]!=ae;++pe)he+=de.children[pe].chunkSize();return he+ae.first}function Sn(ie,ae){var he=ie.first;e:do{for(var de=0;de<ie.children.length;++de){var pe=ie.children[de],Fe=pe.height;if(ae<Fe){ie=pe;continue e}ae-=Fe,he+=pe.chunkSize()}return he}while(!ie.lines);for(var Ze=0;Ze<ie.lines.length;++Ze){var ot=ie.lines[Ze],it=ot.height;if(ae<it)break;ae-=it}return he+Ze}function Qn(ie,ae){return ae>=ie.first&&ae<ie.first+ie.size}function Xn(ie,ae){return String(ie.lineNumberFormatter(ae+ie.firstLineNumber))}function Rt(ie,ae,he){if(he===void 0&&(he=null),!(this instanceof Rt))return new Rt(ie,ae,he);this.line=ie,this.ch=ae,this.sticky=he}function vn(ie,ae){return ie.line-ae.line||ie.ch-ae.ch}function bi(ie,ae){return ie.sticky==ae.sticky&&vn(ie,ae)==0}function vi(ie){return Rt(ie.line,ie.ch)}function pi(ie,ae){return vn(ie,ae)<0?ae:ie}function ei(ie,ae){return vn(ie,ae)<0?ie:ae}function yi(ie,ae){return Math.max(ie.first,Math.min(ae,ie.first+ie.size-1))}function Fi(ie,ae){if(ae.line<ie.first)return Rt(ie.first,0);var he=ie.first+ie.size-1;return ae.line>he?Rt(he,an(ie,he).text.length):Ki(ae,an(ie,ae.line).text.length)}function Ki(ie,ae){var he=ie.ch;return he==null||he>ae?Rt(ie.line,ae):he<0?Rt(ie.line,0):ie}function hr(ie,ae){for(var he=[],de=0;de<ae.length;de++)he[de]=Fi(ie,ae[de]);return he}var Gn=function(ie,ae){this.state=ie,this.lookAhead=ae},Li=function(ie,ae,he,de){this.state=ae,this.doc=ie,this.line=he,this.maxLookAhead=de||0,this.baseTokens=null,this.baseTokenPos=1};Li.prototype.lookAhead=function(ie){var ae=this.doc.getLine(this.line+ie);return ae!=null&&ie>this.maxLookAhead&&(this.maxLookAhead=ie),ae},Li.prototype.baseToken=function(ie){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=ie;)this.baseTokenPos+=2;var ae=this.baseTokens[this.baseTokenPos+1];return{type:ae&&ae.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-ie}},Li.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Li.fromSaved=function(ie,ae,he){return ae instanceof Gn?new Li(ie,en(ie.mode,ae.state),he,ae.lookAhead):new Li(ie,en(ie.mode,ae),he)},Li.prototype.save=function(ie){var ae=ie!==!1?en(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Gn(ae,this.maxLookAhead):ae};function Lr(ie,ae,he,de){var pe=[ie.state.modeGen],Fe={};Br(ie,ae.text,ie.doc.mode,he,function(Nt,Nn){return pe.push(Nt,Nn)},Fe,de);for(var Ze=he.state,ot=function(Nt){he.baseTokens=pe;var Nn=ie.state.overlays[Nt],Kt=1,ii=0;he.state=!0,Br(ie,ae.text,Nn.mode,he,function(qn,ir){for(var sr=Kt;ii<qn;){var Ar=pe[Kt];Ar>qn&&pe.splice(Kt,1,qn,pe[Kt+1],Ar),Kt+=2,ii=Math.min(qn,Ar)}if(ir)if(Nn.opaque)pe.splice(sr,Kt-sr,qn,"overlay "+ir),Kt=sr+2;else for(;sr<Kt;sr+=2){var Qr=pe[sr+1];pe[sr+1]=(Qr?Qr+" ":"")+"overlay "+ir}},Fe),he.state=Ze,he.baseTokens=null,he.baseTokenPos=1},it=0;it<ie.state.overlays.length;++it)ot(it);return{styles:pe,classes:Fe.bgClass||Fe.textClass?Fe:null}}function Dr(ie,ae,he){if(!ae.styles||ae.styles[0]!=ie.state.modeGen){var de=Pr(ie,Pt(ae)),pe=ae.text.length>ie.options.maxHighlightLength&&en(ie.doc.mode,de.state),Fe=Lr(ie,ae,de);pe&&(de.state=pe),ae.stateAfter=de.save(!pe),ae.styles=Fe.styles,Fe.classes?ae.styleClasses=Fe.classes:ae.styleClasses&&(ae.styleClasses=null),he===ie.doc.highlightFrontier&&(ie.doc.modeFrontier=Math.max(ie.doc.modeFrontier,++ie.doc.highlightFrontier))}return ae.styles}function Pr(ie,ae,he){var de=ie.doc,pe=ie.display;if(!de.mode.startState)return new Li(de,!0,ae);var Fe=Oi(ie,ae,he),Ze=Fe>de.first&&an(de,Fe-1).stateAfter,ot=Ze?Li.fromSaved(de,Ze,Fe):new Li(de,xt(de.mode),Fe);return de.iter(Fe,ae,function(it){Xt(ie,it.text,ot);var Nt=ot.line;it.stateAfter=Nt==ae-1||Nt%5==0||Nt>=pe.viewFrom&&Nt<pe.viewTo?ot.save():null,ot.nextLine()}),he&&(de.modeFrontier=ot.line),ot}function Xt(ie,ae,he,de){var pe=ie.doc.mode,Fe=new Ue(ae,ie.options.tabSize,he);for(Fe.start=Fe.pos=de||0,ae==""&&Mi(pe,he.state);!Fe.eol();)ar(pe,Fe,he.state),Fe.start=Fe.pos}function Mi(ie,ae){if(ie.blankLine)return ie.blankLine(ae);if(ie.innerMode){var he=fn(ie,ae);if(he.mode.blankLine)return he.mode.blankLine(he.state)}}function ar(ie,ae,he,de){for(var pe=0;pe<10;pe++){de&&(de[0]=fn(ie,he).mode);var Fe=ie.token(ae,he);if(ae.pos>ae.start)return Fe}throw new Error("Mode "+ie.name+" failed to advance stream.")}var Wi=function(ie,ae,he){this.start=ie.start,this.end=ie.pos,this.string=ie.current(),this.type=ae||null,this.state=he};function Mr(ie,ae,he,de){var pe=ie.doc,Fe=pe.mode,Ze;ae=Fi(pe,ae);var ot=an(pe,ae.line),it=Pr(ie,ae.line,he),Nt=new Ue(ot.text,ie.options.tabSize,it),Nn;for(de&&(Nn=[]);(de||Nt.pos<ae.ch)&&!Nt.eol();)Nt.start=Nt.pos,Ze=ar(Fe,Nt,it.state),de&&Nn.push(new Wi(Nt,Ze,en(pe.mode,it.state)));return de?Nn:new Wi(Nt,Ze,it.state)}function fr(ie,ae){if(ie)for(;;){var he=ie.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!he)break;ie=ie.slice(0,he.index)+ie.slice(he.index+he[0].length);var de=he[1]?"bgClass":"textClass";ae[de]==null?ae[de]=he[2]:new RegExp("(?:^|\\s)"+he[2]+"(?:$|\\s)").test(ae[de])||(ae[de]+=" "+he[2])}return ie}function Br(ie,ae,he,de,pe,Fe,Ze){var ot=he.flattenSpans;ot==null&&(ot=ie.options.flattenSpans);var it=0,Nt=null,Nn=new Ue(ae,ie.options.tabSize,de),Kt,ii=ie.options.addModeClass&&[null];for(ae==""&&fr(Mi(he,de.state),Fe);!Nn.eol();){if(Nn.pos>ie.options.maxHighlightLength?(ot=!1,Ze&&Xt(ie,ae,de,Nn.pos),Nn.pos=ae.length,Kt=null):Kt=fr(ar(he,Nn,de.state,ii),Fe),ii){var qn=ii[0].name;qn&&(Kt="m-"+(Kt?qn+" "+Kt:qn))}if(!ot||Nt!=Kt){for(;it<Nn.start;)it=Math.min(Nn.start,it+5e3),pe(it,Nt);Nt=Kt}Nn.start=Nn.pos}for(;it<Nn.pos;){var ir=Math.min(Nn.pos,it+5e3);pe(ir,Nt),it=ir}}function Oi(ie,ae,he){for(var de,pe,Fe=ie.doc,Ze=he?-1:ae-(ie.doc.mode.innerMode?1e3:100),ot=ae;ot>Ze;--ot){if(ot<=Fe.first)return Fe.first;var it=an(Fe,ot-1),Nt=it.stateAfter;if(Nt&&(!he||ot+(Nt instanceof Gn?Nt.lookAhead:0)<=Fe.modeFrontier))return ot;var Nn=ht(it.text,null,ie.options.tabSize);(pe==null||de>Nn)&&(pe=ot-1,de=Nn)}return pe}function $i(ie,ae){if(ie.modeFrontier=Math.min(ie.modeFrontier,ae),!(ie.highlightFrontier<ae-10)){for(var he=ie.first,de=ae-1;de>he;de--){var pe=an(ie,de).stateAfter;if(pe&&(!(pe instanceof Gn)||de+pe.lookAhead<ae)){he=de+1;break}}ie.highlightFrontier=Math.min(ie.highlightFrontier,he)}}var nr=!1,Mn=!1;function Tr(){nr=!0}function An(){Mn=!0}function yr(ie,ae,he){this.marker=ie,this.from=ae,this.to=he}function _r(ie,ae){if(ie)for(var he=0;he<ie.length;++he){var de=ie[he];if(de.marker==ae)return de}}function xr(ie,ae){for(var he,de=0;de<ie.length;++de)ie[de]!=ae&&(he||(he=[])).push(ie[de]);return he}function Ho(ie,ae){ie.markedSpans=ie.markedSpans?ie.markedSpans.concat([ae]):[ae],ae.marker.attachLine(ie)}function ho(ie,ae,he){var de;if(ie)for(var pe=0;pe<ie.length;++pe){var Fe=ie[pe],Ze=Fe.marker,ot=Fe.from==null||(Ze.inclusiveLeft?Fe.from<=ae:Fe.from<ae);if(ot||Fe.from==ae&&Ze.type=="bookmark"&&(!he||!Fe.marker.insertLeft)){var it=Fe.to==null||(Ze.inclusiveRight?Fe.to>=ae:Fe.to>ae);(de||(de=[])).push(new yr(Ze,Fe.from,it?null:Fe.to))}}return de}function Sr(ie,ae,he){var de;if(ie)for(var pe=0;pe<ie.length;++pe){var Fe=ie[pe],Ze=Fe.marker,ot=Fe.to==null||(Ze.inclusiveRight?Fe.to>=ae:Fe.to>ae);if(ot||Fe.from==ae&&Ze.type=="bookmark"&&(!he||Fe.marker.insertLeft)){var it=Fe.from==null||(Ze.inclusiveLeft?Fe.from<=ae:Fe.from<ae);(de||(de=[])).push(new yr(Ze,it?null:Fe.from-ae,Fe.to==null?null:Fe.to-ae))}}return de}function gr(ie,ae){if(ae.full)return null;var he=Qn(ie,ae.from.line)&&an(ie,ae.from.line).markedSpans,de=Qn(ie,ae.to.line)&&an(ie,ae.to.line).markedSpans;if(!he&&!de)return null;var pe=ae.from.ch,Fe=ae.to.ch,Ze=vn(ae.from,ae.to)==0,ot=ho(he,pe,Ze),it=Sr(de,Fe,Ze),Nt=ae.text.length==1,Nn=St(ae.text).length+(Nt?pe:0);if(ot)for(var Kt=0;Kt<ot.length;++Kt){var ii=ot[Kt];if(ii.to==null){var qn=_r(it,ii.marker);qn?Nt&&(ii.to=qn.to==null?null:qn.to+Nn):ii.to=pe}}if(it)for(var ir=0;ir<it.length;++ir){var sr=it[ir];if(sr.to!=null&&(sr.to+=Nn),sr.from==null){var Ar=_r(ot,sr.marker);Ar||(sr.from=Nn,Nt&&(ot||(ot=[])).push(sr))}else sr.from+=Nn,Nt&&(ot||(ot=[])).push(sr)}ot&&(ot=pr(ot)),it&&it!=ot&&(it=pr(it));var Qr=[ot];if(!Nt){var Eo=ae.text.length-2,mo;if(Eo>0&&ot)for(var jo=0;jo<ot.length;++jo)ot[jo].to==null&&(mo||(mo=[])).push(new yr(ot[jo].marker,null,null));for(var ua=0;ua<Eo;++ua)Qr.push(mo);Qr.push(it)}return Qr}function pr(ie){for(var ae=0;ae<ie.length;++ae){var he=ie[ae];he.from!=null&&he.from==he.to&&he.marker.clearWhenEmpty!==!1&&ie.splice(ae--,1)}return ie.length?ie:null}function Yr(ie,ae,he){var de=null;if(ie.iter(ae.line,he.line+1,function(qn){if(qn.markedSpans)for(var ir=0;ir<qn.markedSpans.length;++ir){var sr=qn.markedSpans[ir].marker;sr.readOnly&&(!de||At(de,sr)==-1)&&(de||(de=[])).push(sr)}}),!de)return null;for(var pe=[{from:ae,to:he}],Fe=0;Fe<de.length;++Fe)for(var Ze=de[Fe],ot=Ze.find(0),it=0;it<pe.length;++it){var Nt=pe[it];if(!(vn(Nt.to,ot.from)<0||vn(Nt.from,ot.to)>0)){var Nn=[it,1],Kt=vn(Nt.from,ot.from),ii=vn(Nt.to,ot.to);(Kt<0||!Ze.inclusiveLeft&&!Kt)&&Nn.push({from:Nt.from,to:ot.from}),(ii>0||!Ze.inclusiveRight&&!ii)&&Nn.push({from:ot.to,to:Nt.to}),pe.splice.apply(pe,Nn),it+=Nn.length-3}}return pe}function zi(ie){var ae=ie.markedSpans;if(ae){for(var he=0;he<ae.length;++he)ae[he].marker.detachLine(ie);ie.markedSpans=null}}function Je(ie,ae){if(ae){for(var he=0;he<ae.length;++he)ae[he].marker.attachLine(ie);ie.markedSpans=ae}}function pt(ie){return ie.inclusiveLeft?-1:0}function Ot(ie){return ie.inclusiveRight?1:0}function cn(ie,ae){var he=ie.lines.length-ae.lines.length;if(he!=0)return he;var de=ie.find(),pe=ae.find(),Fe=vn(de.from,pe.from)||pt(ie)-pt(ae);if(Fe)return-Fe;var Ze=vn(de.to,pe.to)||Ot(ie)-Ot(ae);return Ze||ae.id-ie.id}function jn(ie,ae){var he=Mn&&ie.markedSpans,de;if(he)for(var pe=void 0,Fe=0;Fe<he.length;++Fe)pe=he[Fe],pe.marker.collapsed&&(ae?pe.from:pe.to)==null&&(!de||cn(de,pe.marker)<0)&&(de=pe.marker);return de}function Dn(ie){return jn(ie,!0)}function Wt(ie){return jn(ie,!1)}function kn(ie,ae){var he=Mn&&ie.markedSpans,de;if(he)for(var pe=0;pe<he.length;++pe){var Fe=he[pe];Fe.marker.collapsed&&(Fe.from==null||Fe.from<ae)&&(Fe.to==null||Fe.to>ae)&&(!de||cn(de,Fe.marker)<0)&&(de=Fe.marker)}return de}function ai(ie,ae,he,de,pe){var Fe=an(ie,ae),Ze=Mn&&Fe.markedSpans;if(Ze)for(var ot=0;ot<Ze.length;++ot){var it=Ze[ot];if(it.marker.collapsed){var Nt=it.marker.find(0),Nn=vn(Nt.from,he)||pt(it.marker)-pt(pe),Kt=vn(Nt.to,de)||Ot(it.marker)-Ot(pe);if(!(Nn>=0&&Kt<=0||Nn<=0&&Kt>=0)&&(Nn<=0&&(it.marker.inclusiveRight&&pe.inclusiveLeft?vn(Nt.to,he)>=0:vn(Nt.to,he)>0)||Nn>=0&&(it.marker.inclusiveRight&&pe.inclusiveLeft?vn(Nt.from,de)<=0:vn(Nt.from,de)<0)))return!0}}}function $n(ie){for(var ae;ae=Dn(ie);)ie=ae.find(-1,!0).line;return ie}function Ii(ie){for(var ae;ae=Wt(ie);)ie=ae.find(1,!0).line;return ie}function Bi(ie){for(var ae,he;ae=Wt(ie);)ie=ae.find(1,!0).line,(he||(he=[])).push(ie);return he}function gi(ie,ae){var he=an(ie,ae),de=$n(he);return he==de?ae:Pt(de)}function Yi(ie,ae){if(ae>ie.lastLine())return ae;var he=an(ie,ae),de;if(!On(ie,he))return ae;for(;de=Wt(he);)he=de.find(1,!0).line;return Pt(he)+1}function On(ie,ae){var he=Mn&&ae.markedSpans;if(he){for(var de=void 0,pe=0;pe<he.length;++pe)if(de=he[pe],!!de.marker.collapsed){if(de.from==null)return!0;if(!de.marker.widgetNode&&de.from==0&&de.marker.inclusiveLeft&&$r(ie,ae,de))return!0}}}function $r(ie,ae,he){if(he.to==null){var de=he.marker.find(1,!0);return $r(ie,de.line,_r(de.line.markedSpans,he.marker))}if(he.marker.inclusiveRight&&he.to==ae.text.length)return!0;for(var pe=void 0,Fe=0;Fe<ae.markedSpans.length;++Fe)if(pe=ae.markedSpans[Fe],pe.marker.collapsed&&!pe.marker.widgetNode&&pe.from==he.to&&(pe.to==null||pe.to!=he.from)&&(pe.marker.inclusiveLeft||he.marker.inclusiveRight)&&$r(ie,ae,pe))return!0}function Ur(ie){ie=$n(ie);for(var ae=0,he=ie.parent,de=0;de<he.lines.length;++de){var pe=he.lines[de];if(pe==ie)break;ae+=pe.height}for(var Fe=he.parent;Fe;he=Fe,Fe=he.parent)for(var Ze=0;Ze<Fe.children.length;++Ze){var ot=Fe.children[Ze];if(ot==he)break;ae+=ot.height}return ae}function Ao(ie){if(ie.height==0)return 0;for(var ae=ie.text.length,he,de=ie;he=Dn(de);){var pe=he.find(0,!0);de=pe.from.line,ae+=pe.from.ch-pe.to.ch}for(de=ie;he=Wt(de);){var Fe=he.find(0,!0);ae-=de.text.length-Fe.from.ch,de=Fe.to.line,ae+=de.text.length-Fe.to.ch}return ae}function eo(ie){var ae=ie.display,he=ie.doc;ae.maxLine=an(he,he.first),ae.maxLineLength=Ao(ae.maxLine),ae.maxLineChanged=!0,he.iter(function(de){var pe=Ao(de);pe>ae.maxLineLength&&(ae.maxLineLength=pe,ae.maxLine=de)})}var qr=function(ie,ae,he){this.text=ie,Je(this,ae),this.height=he?he(this):1};qr.prototype.lineNo=function(){return Pt(this)},Ri(qr);function no(ie,ae,he,de){ie.text=ae,ie.stateAfter&&(ie.stateAfter=null),ie.styles&&(ie.styles=null),ie.order!=null&&(ie.order=null),zi(ie),Je(ie,he);var pe=de?de(ie):1;pe!=ie.height&&dn(ie,pe)}function $o(ie){ie.parent=null,zi(ie)}var Qo={},pa={};function qo(ie,ae){if(!ie||/^\s*$/.test(ie))return null;var he=ae.addModeClass?pa:Qo;return he[ie]||(he[ie]=ie.replace(/\S+/g,"cm-$&"))}function Pn(ie,ae){var he=ft("span",null,null,Ne?"padding-right: .1px":null),de={pre:ft("pre",[he],"CodeMirror-line"),content:he,col:0,pos:0,cm:ie,trailingSpace:!1,splitSpaces:ie.getOption("lineWrapping")};ae.measure={};for(var pe=0;pe<=(ae.rest?ae.rest.length:0);pe++){var Fe=pe?ae.rest[pe-1]:ae.line,Ze=void 0;de.pos=0,de.addToken=es,Ir(ie.display.measure)&&(Ze=Re(Fe,ie.doc.direction))&&(de.addToken=Ga(de.addToken,Ze)),de.map=[];var ot=ae!=ie.display.externalMeasured&&Pt(Fe);pl(Fe,de,Dr(ie,Fe,ot)),Fe.styleClasses&&(Fe.styleClasses.bgClass&&(de.bgClass=Ht(Fe.styleClasses.bgClass,de.bgClass||"")),Fe.styleClasses.textClass&&(de.textClass=Ht(Fe.styleClasses.textClass,de.textClass||""))),de.map.length==0&&de.map.push(0,0,de.content.appendChild(vr(ie.display.measure))),pe==0?(ae.measure.map=de.map,ae.measure.cache={}):((ae.measure.maps||(ae.measure.maps=[])).push(de.map),(ae.measure.caches||(ae.measure.caches=[])).push({}))}if(Ne){var it=de.content.lastChild;(/\bcm-tab\b/.test(it.className)||it.querySelector&&it.querySelector(".cm-tab"))&&(de.content.className="cm-tab-wrap-hack")}return ln(ie,"renderLine",ie,ae.line,de.pre),de.pre.className&&(de.textClass=Ht(de.pre.className,de.textClass||"")),de}function ca(ie){var ae=Xe("span","\u2022","cm-invalidchar");return ae.title="\\u"+ie.charCodeAt(0).toString(16),ae.setAttribute("aria-label",ae.title),ae}function es(ie,ae,he,de,pe,Fe,Ze){if(ae){var ot=ie.splitSpaces?ts(ae,ie.trailingSpace):ae,it=ie.cm.state.specialChars,Nt=!1,Nn;if(!it.test(ae))ie.col+=ae.length,Nn=document.createTextNode(ot),ie.map.push(ie.pos,ie.pos+ae.length,Nn),Qe&&vt<9&&(Nt=!0),ie.pos+=ae.length;else{Nn=document.createDocumentFragment();for(var Kt=0;;){it.lastIndex=Kt;var ii=it.exec(ae),qn=ii?ii.index-Kt:ae.length-Kt;if(qn){var ir=document.createTextNode(ot.slice(Kt,Kt+qn));Qe&&vt<9?Nn.appendChild(Xe("span",[ir])):Nn.appendChild(ir),ie.map.push(ie.pos,ie.pos+qn,ir),ie.col+=qn,ie.pos+=qn}if(!ii)break;Kt+=qn+1;var sr=void 0;if(ii[0]==" "){var Ar=ie.cm.options.tabSize,Qr=Ar-ie.col%Ar;sr=Nn.appendChild(Xe("span",Yn(Qr),"cm-tab")),sr.setAttribute("role","presentation"),sr.setAttribute("cm-text"," "),ie.col+=Qr}else ii[0]=="\r"||ii[0]==`
`?(sr=Nn.appendChild(Xe("span",ii[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),sr.setAttribute("cm-text",ii[0]),ie.col+=1):(sr=ie.cm.options.specialCharPlaceholder(ii[0]),sr.setAttribute("cm-text",ii[0]),Qe&&vt<9?Nn.appendChild(Xe("span",[sr])):Nn.appendChild(sr),ie.col+=1);ie.map.push(ie.pos,ie.pos+1,sr),ie.pos++}}if(ie.trailingSpace=ot.charCodeAt(ae.length-1)==32,he||de||pe||Nt||Fe||Ze){var Eo=he||"";de&&(Eo+=de),pe&&(Eo+=pe);var mo=Xe("span",[Nn],Eo,Fe);if(Ze)for(var jo in Ze)Ze.hasOwnProperty(jo)&&jo!="style"&&jo!="class"&&mo.setAttribute(jo,Ze[jo]);return ie.content.appendChild(mo)}ie.content.appendChild(Nn)}}function ts(ie,ae){if(ie.length>1&&!/ /.test(ie))return ie;for(var he=ae,de="",pe=0;pe<ie.length;pe++){var Fe=ie.charAt(pe);Fe==" "&&he&&(pe==ie.length-1||ie.charCodeAt(pe+1)==32)&&(Fe="\xA0"),de+=Fe,he=Fe==" "}return de}function Ga(ie,ae){return function(he,de,pe,Fe,Ze,ot,it){pe=pe?pe+" cm-force-border":"cm-force-border";for(var Nt=he.pos,Nn=Nt+de.length;;){for(var Kt=void 0,ii=0;ii<ae.length&&(Kt=ae[ii],!(Kt.to>Nt&&Kt.from<=Nt));ii++);if(Kt.to>=Nn)return ie(he,de,pe,Fe,Ze,ot,it);ie(he,de.slice(0,Kt.to-Nt),pe,Fe,null,ot,it),Fe=null,de=de.slice(Kt.to-Nt),Nt=Kt.to}}}function Ds(ie,ae,he,de){var pe=!de&&he.widgetNode;pe&&ie.map.push(ie.pos,ie.pos+ae,pe),!de&&ie.cm.display.input.needsContentAttribute&&(pe||(pe=ie.content.appendChild(document.createElement("span"))),pe.setAttribute("cm-marker",he.id)),pe&&(ie.cm.display.input.setUneditable(pe),ie.content.appendChild(pe)),ie.pos+=ae,ie.trailingSpace=!1}function pl(ie,ae,he){var de=ie.markedSpans,pe=ie.text,Fe=0;if(!de){for(var Ze=1;Ze<he.length;Ze+=2)ae.addToken(ae,pe.slice(Fe,Fe=he[Ze]),qo(he[Ze+1],ae.cm.options));return}for(var ot=pe.length,it=0,Nt=1,Nn="",Kt,ii,qn=0,ir,sr,Ar,Qr,Eo;;){if(qn==it){ir=sr=Ar=ii="",Eo=null,Qr=null,qn=1/0;for(var mo=[],jo=void 0,ua=0;ua<de.length;++ua){var co=de[ua],Ma=co.marker;if(Ma.type=="bookmark"&&co.from==it&&Ma.widgetNode)mo.push(Ma);else if(co.from<=it&&(co.to==null||co.to>it||Ma.collapsed&&co.to==it&&co.from==it)){if(co.to!=null&&co.to!=it&&qn>co.to&&(qn=co.to,sr=""),Ma.className&&(ir+=" "+Ma.className),Ma.css&&(ii=(ii?ii+";":"")+Ma.css),Ma.startStyle&&co.from==it&&(Ar+=" "+Ma.startStyle),Ma.endStyle&&co.to==qn&&(jo||(jo=[])).push(Ma.endStyle,co.to),Ma.title&&((Eo||(Eo={})).title=Ma.title),Ma.attributes)for(var $s in Ma.attributes)(Eo||(Eo={}))[$s]=Ma.attributes[$s];Ma.collapsed&&(!Qr||cn(Qr.marker,Ma)<0)&&(Qr=co)}else co.from>it&&qn>co.from&&(qn=co.from)}if(jo)for(var Ul=0;Ul<jo.length;Ul+=2)jo[Ul+1]==qn&&(sr+=" "+jo[Ul]);if(!Qr||Qr.from==it)for(var fl=0;fl<mo.length;++fl)Ds(ae,0,mo[fl]);if(Qr&&(Qr.from||0)==it){if(Ds(ae,(Qr.to==null?ot+1:Qr.to)-it,Qr.marker,Qr.from==null),Qr.to==null)return;Qr.to==it&&(Qr=!1)}}if(it>=ot)break;for(var qu=Math.min(ot,qn);;){if(Nn){var Tu=it+Nn.length;if(!Qr){var Zl=Tu>qu?Nn.slice(0,qu-it):Nn;ae.addToken(ae,Zl,Kt?Kt+ir:ir,Ar,it+Zl.length==qn?sr:"",ii,Eo)}if(Tu>=qu){Nn=Nn.slice(qu-it),it=qu;break}it=Tu,Ar=""}Nn=pe.slice(Fe,Fe=he[Nt++]),Kt=qo(he[Nt++],ae.cm.options)}}}function ma(ie,ae,he){this.line=ae,this.rest=Bi(ae),this.size=this.rest?Pt(St(this.rest))-he+1:1,this.node=this.text=null,this.hidden=On(ie,ae)}function ko(ie,ae,he){for(var de=[],pe,Fe=ae;Fe<he;Fe=pe){var Ze=new ma(ie.doc,an(ie.doc,Fe),Fe);pe=Fe+Ze.size,de.push(Ze)}return de}var Oo=null;function Pa(ie){Oo?Oo.ops.push(ie):ie.ownsGroup=Oo={ops:[ie],delayedCallbacks:[]}}function io(ie){var ae=ie.delayedCallbacks,he=0;do{for(;he<ae.length;he++)ae[he].call(null);for(var de=0;de<ie.ops.length;de++){var pe=ie.ops[de];if(pe.cursorActivityHandlers)for(;pe.cursorActivityCalled<pe.cursorActivityHandlers.length;)pe.cursorActivityHandlers[pe.cursorActivityCalled++].call(null,pe.cm)}}while(he<ae.length)}function No(ie,ae){var he=ie.ownsGroup;if(he)try{io(he)}finally{Oo=null,ae(he)}}var ao=null;function Gi(ie,ae){var he=Vt(ie,ae);if(he.length){var de=Array.prototype.slice.call(arguments,2),pe;Oo?pe=Oo.delayedCallbacks:ao?pe=ao:(pe=ao=[],setTimeout(ha,0));for(var Fe=function(ot){pe.push(function(){return he[ot].apply(null,de)})},Ze=0;Ze<he.length;++Ze)Fe(Ze)}}function ha(){var ie=ao;ao=null;for(var ae=0;ae<ie.length;++ae)ie[ae]()}function Fa(ie,ae,he,de){for(var pe=0;pe<ae.changes.length;pe++){var Fe=ae.changes[pe];Fe=="text"?Ui(ie,ae):Fe=="gutter"?ga(ie,ae,he,de):Fe=="class"?Da(ie,ae):Fe=="widget"&&Is(ie,ae,de)}ae.changes=null}function Bs(ie){return ie.node==ie.text&&(ie.node=Xe("div",null,null,"position: relative"),ie.text.parentNode&&ie.text.parentNode.replaceChild(ie.node,ie.text),ie.node.appendChild(ie.text),Qe&&vt<8&&(ie.node.style.zIndex=2)),ie.node}function ys(ie,ae){var he=ae.bgClass?ae.bgClass+" "+(ae.line.bgClass||""):ae.line.bgClass;if(he&&(he+=" CodeMirror-linebackground"),ae.background)he?ae.background.className=he:(ae.background.parentNode.removeChild(ae.background),ae.background=null);else if(he){var de=Bs(ae);ae.background=de.insertBefore(Xe("div",null,he),de.firstChild),ie.display.input.setUneditable(ae.background)}}function nl(ie,ae){var he=ie.display.externalMeasured;return he&&he.line==ae.line?(ie.display.externalMeasured=null,ae.measure=he.measure,he.built):Pn(ie,ae)}function Ui(ie,ae){var he=ae.text.className,de=nl(ie,ae);ae.text==ae.node&&(ae.node=de.pre),ae.text.parentNode.replaceChild(de.pre,ae.text),ae.text=de.pre,de.bgClass!=ae.bgClass||de.textClass!=ae.textClass?(ae.bgClass=de.bgClass,ae.textClass=de.textClass,Da(ie,ae)):he&&(ae.text.className=he)}function Da(ie,ae){ys(ie,ae),ae.line.wrapClass?Bs(ae).className=ae.line.wrapClass:ae.node!=ae.text&&(ae.node.className="");var he=ae.textClass?ae.textClass+" "+(ae.line.textClass||""):ae.line.textClass;ae.text.className=he||""}function ga(ie,ae,he,de){if(ae.gutter&&(ae.node.removeChild(ae.gutter),ae.gutter=null),ae.gutterBackground&&(ae.node.removeChild(ae.gutterBackground),ae.gutterBackground=null),ae.line.gutterClass){var pe=Bs(ae);ae.gutterBackground=Xe("div",null,"CodeMirror-gutter-background "+ae.line.gutterClass,"left: "+(ie.options.fixedGutter?de.fixedPos:-de.gutterTotalWidth)+"px; width: "+de.gutterTotalWidth+"px"),ie.display.input.setUneditable(ae.gutterBackground),pe.insertBefore(ae.gutterBackground,ae.text)}var Fe=ae.line.gutterMarkers;if(ie.options.lineNumbers||Fe){var Ze=Bs(ae),ot=ae.gutter=Xe("div",null,"CodeMirror-gutter-wrapper","left: "+(ie.options.fixedGutter?de.fixedPos:-de.gutterTotalWidth)+"px");if(ie.display.input.setUneditable(ot),Ze.insertBefore(ot,ae.text),ae.line.gutterClass&&(ot.className+=" "+ae.line.gutterClass),ie.options.lineNumbers&&(!Fe||!Fe["CodeMirror-linenumbers"])&&(ae.lineNumber=ot.appendChild(Xe("div",Xn(ie.options,he),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+de.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+ie.display.lineNumInnerWidth+"px"))),Fe)for(var it=0;it<ie.display.gutterSpecs.length;++it){var Nt=ie.display.gutterSpecs[it].className,Nn=Fe.hasOwnProperty(Nt)&&Fe[Nt];Nn&&ot.appendChild(Xe("div",[Nn],"CodeMirror-gutter-elt","left: "+de.gutterLeft[Nt]+"px; width: "+de.gutterWidth[Nt]+"px"))}}}function Is(ie,ae,he){ae.alignable&&(ae.alignable=null);for(var de=Pe("CodeMirror-linewidget"),pe=ae.node.firstChild,Fe=void 0;pe;pe=Fe)Fe=pe.nextSibling,de.test(pe.className)&&ae.node.removeChild(pe);Gl(ie,ae,he)}function ml(ie,ae,he,de){var pe=nl(ie,ae);return ae.text=ae.node=pe.pre,pe.bgClass&&(ae.bgClass=pe.bgClass),pe.textClass&&(ae.textClass=pe.textClass),Da(ie,ae),ga(ie,ae,he,de),Gl(ie,ae,de),ae.node}function Gl(ie,ae,he){if(xo(ie,ae.line,ae,he,!0),ae.rest)for(var de=0;de<ae.rest.length;de++)xo(ie,ae.rest[de],ae,he,!1)}function xo(ie,ae,he,de,pe){if(ae.widgets)for(var Fe=Bs(he),Ze=0,ot=ae.widgets;Ze<ot.length;++Ze){var it=ot[Ze],Nt=Xe("div",[it.node],"CodeMirror-linewidget"+(it.className?" "+it.className:""));it.handleMouseEvents||Nt.setAttribute("cm-ignore-events","true"),Au(it,Nt,he,de),ie.display.input.setUneditable(Nt),pe&&it.above?Fe.insertBefore(Nt,he.gutter||he.text):Fe.appendChild(Nt),Gi(it,"redraw")}}function Au(ie,ae,he,de){if(ie.noHScroll){(he.alignable||(he.alignable=[])).push(ae);var pe=de.wrapperWidth;ae.style.left=de.fixedPos+"px",ie.coverGutter||(pe-=de.gutterTotalWidth,ae.style.paddingLeft=de.gutterTotalWidth+"px"),ae.style.width=pe+"px"}ie.coverGutter&&(ae.style.zIndex=5,ae.style.position="relative",ie.noHScroll||(ae.style.marginLeft=-de.gutterTotalWidth+"px"))}function il(ie){if(ie.height!=null)return ie.height;var ae=ie.doc.cm;if(!ae)return 0;if(!kt(document.body,ie.node)){var he="position: relative;";ie.coverGutter&&(he+="margin-left: -"+ae.display.gutters.offsetWidth+"px;"),ie.noHScroll&&(he+="width: "+ae.display.wrapper.clientWidth+"px;"),et(ae.display.measure,Xe("div",[ie.node],null,he))}return ie.height=ie.node.parentNode.offsetHeight}function Nl(ie,ae){for(var he=Vr(ae);he!=ie.wrapper;he=he.parentNode)if(!he||he.nodeType==1&&he.getAttribute("cm-ignore-events")=="true"||he.parentNode==ie.sizer&&he!=ie.mover)return!0}function vl(ie){return ie.lineSpace.offsetTop}function fu(ie){return ie.mover.offsetHeight-ie.lineSpace.offsetHeight}function yl(ie){if(ie.cachedPaddingH)return ie.cachedPaddingH;var ae=et(ie.measure,Xe("pre","x","CodeMirror-line-like")),he=window.getComputedStyle?window.getComputedStyle(ae):ae.currentStyle,de={left:parseInt(he.paddingLeft),right:parseInt(he.paddingRight)};return!isNaN(de.left)&&!isNaN(de.right)&&(ie.cachedPaddingH=de),de}function rl(ie){return wn-ie.display.nativeBarWidth}function Sl(ie){return ie.display.scroller.clientWidth-rl(ie)-ie.display.barWidth}function oc(ie){return ie.display.scroller.clientHeight-rl(ie)-ie.display.barHeight}function Sc(ie,ae,he){var de=ie.options.lineWrapping,pe=de&&Sl(ie);if(!ae.measure.heights||de&&ae.measure.width!=pe){var Fe=ae.measure.heights=[];if(de){ae.measure.width=pe;for(var Ze=ae.text.firstChild.getClientRects(),ot=0;ot<Ze.length-1;ot++){var it=Ze[ot],Nt=Ze[ot+1];Math.abs(it.bottom-Nt.bottom)>2&&Fe.push((it.bottom+Nt.top)/2-he.top)}}Fe.push(he.bottom-he.top)}}function xc(ie,ae,he){if(ie.line==ae)return{map:ie.measure.map,cache:ie.measure.cache};for(var de=0;de<ie.rest.length;de++)if(ie.rest[de]==ae)return{map:ie.measure.maps[de],cache:ie.measure.caches[de]};for(var pe=0;pe<ie.rest.length;pe++)if(Pt(ie.rest[pe])>he)return{map:ie.measure.maps[pe],cache:ie.measure.caches[pe],before:!0}}function Qc(ie,ae){ae=$n(ae);var he=Pt(ae),de=ie.display.externalMeasured=new ma(ie.doc,ae,he);de.lineN=he;var pe=de.built=Pn(ie,de);return de.text=pe.pre,et(ie.display.lineMeasure,pe.pre),de}function gu(ie,ae,he,de){return Tl(ie,xl(ie,ae),he,de)}function zl(ie,ae){if(ae>=ie.display.viewFrom&&ae<ie.display.viewTo)return ie.display.view[Il(ie,ae)];var he=ie.display.externalMeasured;if(he&&ae>=he.lineN&&ae<he.lineN+he.size)return he}function xl(ie,ae){var he=Pt(ae),de=zl(ie,he);de&&!de.text?de=null:de&&de.changes&&(Fa(ie,de,he,Pc(ie)),ie.curOp.forceUpdate=!0),de||(de=Qc(ie,ae));var pe=xc(de,ae,he);return{line:ae,view:de,rect:null,map:pe.map,cache:pe.cache,before:pe.before,hasHeights:!1}}function Tl(ie,ae,he,de,pe){ae.before&&(he=-1);var Fe=he+(de||""),Ze;return ae.cache.hasOwnProperty(Fe)?Ze=ae.cache[Fe]:(ae.rect||(ae.rect=ae.view.text.getBoundingClientRect()),ae.hasHeights||(Sc(ie,ae.view,ae.rect),ae.hasHeights=!0),Ze=Xo(ie,ae,he,de),Ze.bogus||(ae.cache[Fe]=Ze)),{left:Ze.left,right:Ze.right,top:pe?Ze.rtop:Ze.top,bottom:pe?Ze.rbottom:Ze.bottom}}var pu={left:0,right:0,top:0,bottom:0};function wc(ie,ae,he){for(var de,pe,Fe,Ze,ot,it,Nt=0;Nt<ie.length;Nt+=3)if(ot=ie[Nt],it=ie[Nt+1],ae<ot?(pe=0,Fe=1,Ze="left"):ae<it?(pe=ae-ot,Fe=pe+1):(Nt==ie.length-3||ae==it&&ie[Nt+3]>ae)&&(Fe=it-ot,pe=Fe-1,ae>=it&&(Ze="right")),pe!=null){if(de=ie[Nt+2],ot==it&&he==(de.insertLeft?"left":"right")&&(Ze=he),he=="left"&&pe==0)for(;Nt&&ie[Nt-2]==ie[Nt-3]&&ie[Nt-1].insertLeft;)de=ie[(Nt-=3)+2],Ze="left";if(he=="right"&&pe==it-ot)for(;Nt<ie.length-3&&ie[Nt+3]==ie[Nt+4]&&!ie[Nt+5].insertLeft;)de=ie[(Nt+=3)+2],Ze="right";break}return{node:de,start:pe,end:Fe,collapse:Ze,coverStart:ot,coverEnd:it}}function mu(ie,ae){var he=pu;if(ae=="left")for(var de=0;de<ie.length&&(he=ie[de]).left==he.right;de++);else for(var pe=ie.length-1;pe>=0&&(he=ie[pe]).left==he.right;pe--);return he}function Xo(ie,ae,he,de){var pe=wc(ae.map,he,de),Fe=pe.node,Ze=pe.start,ot=pe.end,it=pe.collapse,Nt;if(Fe.nodeType==3){for(var Nn=0;Nn<4;Nn++){for(;Ze&&Gt(ae.line.text.charAt(pe.coverStart+Ze));)--Ze;for(;pe.coverStart+ot<pe.coverEnd&&Gt(ae.line.text.charAt(pe.coverStart+ot));)++ot;if(Qe&&vt<9&&Ze==0&&ot==pe.coverEnd-pe.coverStart?Nt=Fe.parentNode.getBoundingClientRect():Nt=mu(Ge(Fe,Ze,ot).getClientRects(),de),Nt.left||Nt.right||Ze==0)break;ot=Ze,Ze=Ze-1,it="right"}Qe&&vt<11&&(Nt=va(ie.display.measure,Nt))}else{Ze>0&&(it=de="right");var Kt;ie.options.lineWrapping&&(Kt=Fe.getClientRects()).length>1?Nt=Kt[de=="right"?Kt.length-1:0]:Nt=Fe.getBoundingClientRect()}if(Qe&&vt<9&&!Ze&&(!Nt||!Nt.left&&!Nt.right)){var ii=Fe.parentNode.getClientRects()[0];ii?Nt={left:ii.left,right:ii.left+jl(ie.display),top:ii.top,bottom:ii.bottom}:Nt=pu}for(var qn=Nt.top-ae.rect.top,ir=Nt.bottom-ae.rect.top,sr=(qn+ir)/2,Ar=ae.view.measure.heights,Qr=0;Qr<Ar.length-1&&!(sr<Ar[Qr]);Qr++);var Eo=Qr?Ar[Qr-1]:0,mo=Ar[Qr],jo={left:(it=="right"?Nt.right:Nt.left)-ae.rect.left,right:(it=="left"?Nt.left:Nt.right)-ae.rect.left,top:Eo,bottom:mo};return!Nt.left&&!Nt.right&&(jo.bogus=!0),ie.options.singleCursorHeightPerLine||(jo.rtop=qn,jo.rbottom=ir),jo}function va(ie,ae){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!yn(ie))return ae;var he=screen.logicalXDPI/screen.deviceXDPI,de=screen.logicalYDPI/screen.deviceYDPI;return{left:ae.left*he,right:ae.right*he,top:ae.top*de,bottom:ae.bottom*de}}function dl(ie){if(ie.measure&&(ie.measure.cache={},ie.measure.heights=null,ie.rest))for(var ae=0;ae<ie.rest.length;ae++)ie.measure.caches[ae]={}}function Cs(ie){ie.display.externalMeasure=null,Ke(ie.display.lineMeasure);for(var ae=0;ae<ie.display.view.length;ae++)dl(ie.display.view[ae])}function Ss(ie){Cs(ie),ie.display.cachedCharWidth=ie.display.cachedTextHeight=ie.display.cachedPaddingH=null,ie.options.lineWrapping||(ie.display.maxLineChanged=!0),ie.display.lineNumChars=null}function os(){return Ft&&te?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function hs(){return Ft&&te?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Ls(ie){var ae=0;if(ie.widgets)for(var he=0;he<ie.widgets.length;++he)ie.widgets[he].above&&(ae+=il(ie.widgets[he]));return ae}function xs(ie,ae,he,de,pe){if(!pe){var Fe=Ls(ae);he.top+=Fe,he.bottom+=Fe}if(de=="line")return he;de||(de="local");var Ze=Ur(ae);if(de=="local"?Ze+=vl(ie.display):Ze-=ie.display.viewOffset,de=="page"||de=="window"){var ot=ie.display.lineSpace.getBoundingClientRect();Ze+=ot.top+(de=="window"?0:hs());var it=ot.left+(de=="window"?0:os());he.left+=it,he.right+=it}return he.top+=Ze,he.bottom+=Ze,he}function Ks(ie,ae,he){if(he=="div")return ae;var de=ae.left,pe=ae.top;if(he=="page")de-=os(),pe-=hs();else if(he=="local"||!he){var Fe=ie.display.sizer.getBoundingClientRect();de+=Fe.left,pe+=Fe.top}var Ze=ie.display.lineSpace.getBoundingClientRect();return{left:de-Ze.left,top:pe-Ze.top}}function Ts(ie,ae,he,de,pe){return de||(de=an(ie.doc,ae.line)),xs(ie,de,gu(ie,de,ae.ch,pe),he)}function ka(ie,ae,he,de,pe,Fe){de=de||an(ie.doc,ae.line),pe||(pe=xl(ie,de));function Ze(ir,sr){var Ar=Tl(ie,pe,ir,sr?"right":"left",Fe);return sr?Ar.left=Ar.right:Ar.right=Ar.left,xs(ie,de,Ar,he)}var ot=Re(de,ie.doc.direction),it=ae.ch,Nt=ae.sticky;if(it>=de.text.length?(it=de.text.length,Nt="before"):it<=0&&(it=0,Nt="after"),!ot)return Ze(Nt=="before"?it-1:it,Nt=="before");function Nn(ir,sr,Ar){var Qr=ot[sr],Eo=Qr.level==1;return Ze(Ar?ir-1:ir,Eo!=Ar)}var Kt=me(ot,it,Nt),ii=we,qn=Nn(it,Kt,Nt=="before");return ii!=null&&(qn.other=Nn(it,ii,Nt!="before")),qn}function Hu(ie,ae){var he=0;ae=Fi(ie.doc,ae),ie.options.lineWrapping||(he=jl(ie.display)*ae.ch);var de=an(ie.doc,ae.line),pe=Ur(de)+vl(ie.display);return{left:he,right:he,top:pe,bottom:pe+de.height}}function Ol(ie,ae,he,de,pe){var Fe=Rt(ie,ae,he);return Fe.xRel=pe,de&&(Fe.outside=de),Fe}function El(ie,ae,he){var de=ie.doc;if(he+=ie.display.viewOffset,he<0)return Ol(de.first,0,null,-1,-1);var pe=Sn(de,he),Fe=de.first+de.size-1;if(pe>Fe)return Ol(de.first+de.size-1,an(de,Fe).text.length,null,1,1);ae<0&&(ae=0);for(var Ze=an(de,pe);;){var ot=di(ie,Ze,pe,ae,he),it=kn(Ze,ot.ch+(ot.xRel>0||ot.outside>0?1:0));if(!it)return ot;var Nt=it.find(1);if(Nt.line==pe)return Nt;Ze=an(de,pe=Nt.line)}}function Hr(ie,ae,he,de){de-=Ls(ae);var pe=ae.text.length,Fe=Ve(function(Ze){return Tl(ie,he,Ze-1).bottom<=de},pe,0);return pe=Ve(function(Ze){return Tl(ie,he,Ze).top>de},Fe,pe),{begin:Fe,end:pe}}function Lu(ie,ae,he,de){he||(he=xl(ie,ae));var pe=xs(ie,ae,Tl(ie,he,de),"line").top;return Hr(ie,ae,he,pe)}function Zt(ie,ae,he,de){return ie.bottom<=he?!1:ie.top>he?!0:(de?ie.left:ie.right)>ae}function di(ie,ae,he,de,pe){pe-=Ur(ae);var Fe=xl(ie,ae),Ze=Ls(ae),ot=0,it=ae.text.length,Nt=!0,Nn=Re(ae,ie.doc.direction);if(Nn){var Kt=(ie.options.lineWrapping?ku:Mu)(ie,ae,he,Fe,Nn,de,pe);Nt=Kt.level!=1,ot=Nt?Kt.from:Kt.to-1,it=Nt?Kt.to:Kt.from-1}var ii=null,qn=null,ir=Ve(function(ua){var co=Tl(ie,Fe,ua);return co.top+=Ze,co.bottom+=Ze,Zt(co,de,pe,!1)?(co.top<=pe&&co.left<=de&&(ii=ua,qn=co),!0):!1},ot,it),sr,Ar,Qr=!1;if(qn){var Eo=de-qn.left<qn.right-de,mo=Eo==Nt;ir=ii+(mo?0:1),Ar=mo?"after":"before",sr=Eo?qn.left:qn.right}else{!Nt&&(ir==it||ir==ot)&&ir++,Ar=ir==0?"after":ir==ae.text.length?"before":Tl(ie,Fe,ir-(Nt?1:0)).bottom+Ze<=pe==Nt?"after":"before";var jo=ka(ie,Rt(he,ir,Ar),"line",ae,Fe);sr=jo.left,Qr=pe<jo.top?-1:pe>=jo.bottom?1:0}return ir=at(ae.text,ir,1),Ol(he,ir,Ar,Qr,de-sr)}function Mu(ie,ae,he,de,pe,Fe,Ze){var ot=Ve(function(Kt){var ii=pe[Kt],qn=ii.level!=1;return Zt(ka(ie,Rt(he,qn?ii.to:ii.from,qn?"before":"after"),"line",ae,de),Fe,Ze,!0)},0,pe.length-1),it=pe[ot];if(ot>0){var Nt=it.level!=1,Nn=ka(ie,Rt(he,Nt?it.from:it.to,Nt?"after":"before"),"line",ae,de);Zt(Nn,Fe,Ze,!0)&&Nn.top>Ze&&(it=pe[ot-1])}return it}function ku(ie,ae,he,de,pe,Fe,Ze){var ot=Hr(ie,ae,de,Ze),it=ot.begin,Nt=ot.end;/\s/.test(ae.text.charAt(Nt-1))&&Nt--;for(var Nn=null,Kt=null,ii=0;ii<pe.length;ii++){var qn=pe[ii];if(!(qn.from>=Nt||qn.to<=it)){var ir=qn.level!=1,sr=Tl(ie,de,ir?Math.min(Nt,qn.to)-1:Math.max(it,qn.from)).right,Ar=sr<Fe?Fe-sr+1e9:sr-Fe;(!Nn||Kt>Ar)&&(Nn=qn,Kt=Ar)}}return Nn||(Nn=pe[pe.length-1]),Nn.from<it&&(Nn={from:it,to:Nn.to,level:Nn.level}),Nn.to>Nt&&(Nn={from:Nn.from,to:Nt,level:Nn.level}),Nn}var _l;function $l(ie){if(ie.cachedTextHeight!=null)return ie.cachedTextHeight;if(_l==null){_l=Xe("pre",null,"CodeMirror-line-like");for(var ae=0;ae<49;++ae)_l.appendChild(document.createTextNode("x")),_l.appendChild(Xe("br"));_l.appendChild(document.createTextNode("x"))}et(ie.measure,_l);var he=_l.offsetHeight/50;return he>3&&(ie.cachedTextHeight=he),Ke(ie.measure),he||1}function jl(ie){if(ie.cachedCharWidth!=null)return ie.cachedCharWidth;var ae=Xe("span","xxxxxxxxxx"),he=Xe("pre",[ae],"CodeMirror-line-like");et(ie.measure,he);var de=ae.getBoundingClientRect(),pe=(de.right-de.left)/10;return pe>2&&(ie.cachedCharWidth=pe),pe||10}function Pc(ie){for(var ae=ie.display,he={},de={},pe=ae.gutters.clientLeft,Fe=ae.gutters.firstChild,Ze=0;Fe;Fe=Fe.nextSibling,++Ze){var ot=ie.display.gutterSpecs[Ze].className;he[ot]=Fe.offsetLeft+Fe.clientLeft+pe,de[ot]=Fe.clientWidth}return{fixedPos:Ic(ae),gutterTotalWidth:ae.gutters.offsetWidth,gutterLeft:he,gutterWidth:de,wrapperWidth:ae.wrapper.clientWidth}}function Ic(ie){return ie.scroller.getBoundingClientRect().left-ie.sizer.getBoundingClientRect().left}function Os(ie){var ae=$l(ie.display),he=ie.options.lineWrapping,de=he&&Math.max(5,ie.display.scroller.clientWidth/jl(ie.display)-3);return function(pe){if(On(ie.doc,pe))return 0;var Fe=0;if(pe.widgets)for(var Ze=0;Ze<pe.widgets.length;Ze++)pe.widgets[Ze].height&&(Fe+=pe.widgets[Ze].height);return he?Fe+(Math.ceil(pe.text.length/de)||1)*ae:Fe+ae}}function Io(ie){var ae=ie.doc,he=Os(ie);ae.iter(function(de){var pe=he(de);pe!=de.height&&dn(de,pe)})}function wl(ie,ae,he,de){var pe=ie.display;if(!he&&Vr(ae).getAttribute("cm-not-content")=="true")return null;var Fe,Ze,ot=pe.lineSpace.getBoundingClientRect();try{Fe=ae.clientX-ot.left,Ze=ae.clientY-ot.top}catch(Kt){return null}var it=El(ie,Fe,Ze),Nt;if(de&&it.xRel>0&&(Nt=an(ie.doc,it.line).text).length==it.ch){var Nn=ht(Nt,Nt.length,ie.options.tabSize)-Nt.length;it=Rt(it.line,Math.max(0,Math.round((Fe-yl(ie.display).left)/jl(ie.display))-Nn))}return it}function Il(ie,ae){if(ae>=ie.display.viewTo||(ae-=ie.display.viewFrom,ae<0))return null;for(var he=ie.display.view,de=0;de<he.length;de++)if(ae-=he[de].size,ae<0)return de}function ws(ie,ae,he,de){ae==null&&(ae=ie.doc.first),he==null&&(he=ie.doc.first+ie.doc.size),de||(de=0);var pe=ie.display;if(de&&he<pe.viewTo&&(pe.updateLineNumbers==null||pe.updateLineNumbers>ae)&&(pe.updateLineNumbers=ae),ie.curOp.viewChanged=!0,ae>=pe.viewTo)Mn&&gi(ie.doc,ae)<pe.viewTo&&ol(ie);else if(he<=pe.viewFrom)Mn&&Yi(ie.doc,he+de)>pe.viewFrom?ol(ie):(pe.viewFrom+=de,pe.viewTo+=de);else if(ae<=pe.viewFrom&&he>=pe.viewTo)ol(ie);else if(ae<=pe.viewFrom){var Fe=He(ie,he,he+de,1);Fe?(pe.view=pe.view.slice(Fe.index),pe.viewFrom=Fe.lineN,pe.viewTo+=de):ol(ie)}else if(he>=pe.viewTo){var Ze=He(ie,ae,ae,-1);Ze?(pe.view=pe.view.slice(0,Ze.index),pe.viewTo=Ze.lineN):ol(ie)}else{var ot=He(ie,ae,ae,-1),it=He(ie,he,he+de,1);ot&&it?(pe.view=pe.view.slice(0,ot.index).concat(ko(ie,ot.lineN,it.lineN)).concat(pe.view.slice(it.index)),pe.viewTo+=de):ol(ie)}var Nt=pe.externalMeasured;Nt&&(he<Nt.lineN?Nt.lineN+=de:ae<Nt.lineN+Nt.size&&(pe.externalMeasured=null))}function ya(ie,ae,he){ie.curOp.viewChanged=!0;var de=ie.display,pe=ie.display.externalMeasured;if(pe&&ae>=pe.lineN&&ae<pe.lineN+pe.size&&(de.externalMeasured=null),!(ae<de.viewFrom||ae>=de.viewTo)){var Fe=de.view[Il(ie,ae)];if(Fe.node!=null){var Ze=Fe.changes||(Fe.changes=[]);At(Ze,he)==-1&&Ze.push(he)}}}function ol(ie){ie.display.viewFrom=ie.display.viewTo=ie.doc.first,ie.display.view=[],ie.display.viewOffset=0}function He(ie,ae,he,de){var pe=Il(ie,ae),Fe,Ze=ie.display.view;if(!Mn||he==ie.doc.first+ie.doc.size)return{index:pe,lineN:he};for(var ot=ie.display.viewFrom,it=0;it<pe;it++)ot+=Ze[it].size;if(ot!=ae){if(de>0){if(pe==Ze.length-1)return null;Fe=ot+Ze[pe].size-ae,pe++}else Fe=ot-ae;ae+=Fe,he+=Fe}for(;gi(ie.doc,he)!=he;){if(pe==(de<0?0:Ze.length-1))return null;he+=de*Ze[pe-(de<0?1:0)].size,pe+=de}return{index:pe,lineN:he}}function _e(ie,ae,he){var de=ie.display,pe=de.view;pe.length==0||ae>=de.viewTo||he<=de.viewFrom?(de.view=ko(ie,ae,he),de.viewFrom=ae):(de.viewFrom>ae?de.view=ko(ie,ae,de.viewFrom).concat(de.view):de.viewFrom<ae&&(de.view=de.view.slice(Il(ie,ae))),de.viewFrom=ae,de.viewTo<he?de.view=de.view.concat(ko(ie,de.viewTo,he)):de.viewTo>he&&(de.view=de.view.slice(0,Il(ie,he)))),de.viewTo=he}function lt(ie){for(var ae=ie.display.view,he=0,de=0;de<ae.length;de++){var pe=ae[de];!pe.hidden&&(!pe.node||pe.changes)&&++he}return he}function nn(ie){ie.display.input.showSelection(ie.display.input.prepareSelection())}function hn(ie,ae){ae===void 0&&(ae=!0);for(var he=ie.doc,de={},pe=de.cursors=document.createDocumentFragment(),Fe=de.selection=document.createDocumentFragment(),Ze=0;Ze<he.sel.ranges.length;Ze++)if(!(!ae&&Ze==he.sel.primIndex)){var ot=he.sel.ranges[Ze];if(!(ot.from().line>=ie.display.viewTo||ot.to().line<ie.display.viewFrom)){var it=ot.empty();(it||ie.options.showCursorWhenSelecting)&&Tn(ie,ot.head,pe),it||ri(ie,ot,Fe)}}return de}function Tn(ie,ae,he){var de=ka(ie,ae,"div",null,null,!ie.options.singleCursorHeightPerLine),pe=he.appendChild(Xe("div","\xA0","CodeMirror-cursor"));if(pe.style.left=de.left+"px",pe.style.top=de.top+"px",pe.style.height=Math.max(0,de.bottom-de.top)*ie.options.cursorHeight+"px",de.other){var Fe=he.appendChild(Xe("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Fe.style.display="",Fe.style.left=de.other.left+"px",Fe.style.top=de.other.top+"px",Fe.style.height=(de.other.bottom-de.other.top)*.85+"px"}}function Wn(ie,ae){return ie.top-ae.top||ie.left-ae.left}function ri(ie,ae,he){var de=ie.display,pe=ie.doc,Fe=document.createDocumentFragment(),Ze=yl(ie.display),ot=Ze.left,it=Math.max(de.sizerWidth,Sl(ie)-de.sizer.offsetLeft)-Ze.right,Nt=pe.direction=="ltr";function Nn(mo,jo,ua,co){jo<0&&(jo=0),jo=Math.round(jo),co=Math.round(co),Fe.appendChild(Xe("div",null,"CodeMirror-selected","position: absolute; left: "+mo+`px;
top: `+jo+"px; width: "+(ua==null?it-mo:ua)+`px;
height: `+(co-jo)+"px"))}function Kt(mo,jo,ua){var co=an(pe,mo),Ma=co.text.length,$s,Ul;function fl(Zl,cc){return Ts(ie,Rt(mo,Zl),"div",co,cc)}function qu(Zl,cc,xu){var Kl=Lu(ie,co,null,Zl),ds=cc=="ltr"==(xu=="after")?"left":"right",Pl=xu=="after"?Kl.begin:Kl.end-(/\s/.test(co.text.charAt(Kl.end-1))?2:1);return fl(Pl,ds)[ds]}var Tu=Re(co,pe.direction);return Be(Tu,jo||0,ua==null?Ma:ua,function(Zl,cc,xu,Kl){var ds=xu=="ltr",Pl=fl(Zl,ds?"left":"right"),nu=fl(cc-1,ds?"right":"left"),wu=jo==null&&Zl==0,id=ua==null&&cc==Ma,gl=Kl==0,Wc=!Tu||Kl==Tu.length-1;if(nu.top-Pl.top<=3){var kl=(Nt?wu:id)&&gl,$f=(Nt?id:wu)&&Wc,Mc=kl?ot:(ds?Pl:nu).left,dc=$f?it:(ds?nu:Pl).right;Nn(Mc,Pl.top,dc-Mc,Pl.bottom)}else{var ec,Hs,iu,Ld;ds?(ec=Nt&&wu&&gl?ot:Pl.left,Hs=Nt?it:qu(Zl,xu,"before"),iu=Nt?ot:qu(cc,xu,"after"),Ld=Nt&&id&&Wc?it:nu.right):(ec=Nt?qu(Zl,xu,"before"):ot,Hs=!Nt&&wu&&gl?it:Pl.right,iu=!Nt&&id&&Wc?ot:nu.left,Ld=Nt?qu(cc,xu,"after"):it),Nn(ec,Pl.top,Hs-ec,Pl.bottom),Pl.bottom<nu.top&&Nn(ot,Pl.bottom,null,nu.top),Nn(iu,nu.top,Ld-iu,nu.bottom)}(!$s||Wn(Pl,$s)<0)&&($s=Pl),Wn(nu,$s)<0&&($s=nu),(!Ul||Wn(Pl,Ul)<0)&&(Ul=Pl),Wn(nu,Ul)<0&&(Ul=nu)}),{start:$s,end:Ul}}var ii=ae.from(),qn=ae.to();if(ii.line==qn.line)Kt(ii.line,ii.ch,qn.ch);else{var ir=an(pe,ii.line),sr=an(pe,qn.line),Ar=$n(ir)==$n(sr),Qr=Kt(ii.line,ii.ch,Ar?ir.text.length+1:null).end,Eo=Kt(qn.line,Ar?0:null,qn.ch).start;Ar&&(Qr.top<Eo.top-2?(Nn(Qr.right,Qr.top,null,Qr.bottom),Nn(ot,Eo.top,Eo.left,Eo.bottom)):Nn(Qr.right,Qr.top,Eo.left-Qr.right,Qr.bottom)),Qr.bottom<Eo.top&&Nn(ot,Qr.bottom,null,Eo.top)}he.appendChild(Fe)}function ci(ie){if(ie.state.focused){var ae=ie.display;clearInterval(ae.blinker);var he=!0;ae.cursorDiv.style.visibility="",ie.options.cursorBlinkRate>0?ae.blinker=setInterval(function(){ie.hasFocus()||qi(ie),ae.cursorDiv.style.visibility=(he=!he)?"":"hidden"},ie.options.cursorBlinkRate):ie.options.cursorBlinkRate<0&&(ae.cursorDiv.style.visibility="hidden")}}function ki(ie){ie.state.focused||(ie.display.input.focus(),Ai(ie))}function lr(ie){ie.state.delayingBlurEvent=!0,setTimeout(function(){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1,qi(ie))},100)}function Ai(ie,ae){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1),ie.options.readOnly!="nocursor"&&(ie.state.focused||(ln(ie,"focus",ie,ae),ie.state.focused=!0,zt(ie.display.wrapper,"CodeMirror-focused"),!ie.curOp&&ie.display.selForContextMenu!=ie.doc.sel&&(ie.display.input.reset(),Ne&&setTimeout(function(){return ie.display.input.reset(!0)},20)),ie.display.input.receivedFocus()),ci(ie))}function qi(ie,ae){ie.state.delayingBlurEvent||(ie.state.focused&&(ln(ie,"blur",ie,ae),ie.state.focused=!1,Te(ie.display.wrapper,"CodeMirror-focused")),clearInterval(ie.display.blinker),setTimeout(function(){ie.state.focused||(ie.display.shift=!1)},150))}function Ei(ie){for(var ae=ie.display,he=ae.lineDiv.offsetTop,de=0;de<ae.view.length;de++){var pe=ae.view[de],Fe=ie.options.lineWrapping,Ze=void 0,ot=0;if(!pe.hidden){if(Qe&&vt<8){var it=pe.node.offsetTop+pe.node.offsetHeight;Ze=it-he,he=it}else{var Nt=pe.node.getBoundingClientRect();Ze=Nt.bottom-Nt.top,!Fe&&pe.text.firstChild&&(ot=pe.text.firstChild.getBoundingClientRect().right-Nt.left-1)}var Nn=pe.line.height-Ze;if((Nn>.005||Nn<-.005)&&(dn(pe.line,Ze),Cr(pe.line),pe.rest))for(var Kt=0;Kt<pe.rest.length;Kt++)Cr(pe.rest[Kt]);if(ot>ie.display.sizerWidth){var ii=Math.ceil(ot/jl(ie.display));ii>ie.display.maxLineLength&&(ie.display.maxLineLength=ii,ie.display.maxLine=pe.line,ie.display.maxLineChanged=!0)}}}}function Cr(ie){if(ie.widgets)for(var ae=0;ae<ie.widgets.length;++ae){var he=ie.widgets[ae],de=he.node.parentNode;de&&(he.height=de.offsetHeight)}}function ti(ie,ae,he){var de=he&&he.top!=null?Math.max(0,he.top):ie.scroller.scrollTop;de=Math.floor(de-vl(ie));var pe=he&&he.bottom!=null?he.bottom:de+ie.wrapper.clientHeight,Fe=Sn(ae,de),Ze=Sn(ae,pe);if(he&&he.ensure){var ot=he.ensure.from.line,it=he.ensure.to.line;ot<Fe?(Fe=ot,Ze=Sn(ae,Ur(an(ae,ot))+ie.wrapper.clientHeight)):Math.min(it,ae.lastLine())>=Ze&&(Fe=Sn(ae,Ur(an(ae,it))-ie.wrapper.clientHeight),Ze=it)}return{from:Fe,to:Math.max(Ze,Fe+1)}}function er(ie,ae){if(!Hn(ie,"scrollCursorIntoView")){var he=ie.display,de=he.sizer.getBoundingClientRect(),pe=null;if(ae.top+de.top<0?pe=!0:ae.bottom+de.top>(window.innerHeight||document.documentElement.clientHeight)&&(pe=!1),pe!=null&&!Ct){var Fe=Xe("div","\u200B",null,`position: absolute;
top: `+(ae.top-he.viewOffset-vl(ie.display))+`px;
height: `+(ae.bottom-ae.top+rl(ie)+he.barHeight)+`px;
left: `+ae.left+"px; width: "+Math.max(2,ae.right-ae.left)+"px;");ie.display.lineSpace.appendChild(Fe),Fe.scrollIntoView(pe),ie.display.lineSpace.removeChild(Fe)}}}function br(ie,ae,he,de){de==null&&(de=0);var pe;!ie.options.lineWrapping&&ae==he&&(ae=ae.ch?Rt(ae.line,ae.sticky=="before"?ae.ch-1:ae.ch,"after"):ae,he=ae.sticky=="before"?Rt(ae.line,ae.ch+1,"before"):ae);for(var Fe=0;Fe<5;Fe++){var Ze=!1,ot=ka(ie,ae),it=!he||he==ae?ot:ka(ie,he);pe={left:Math.min(ot.left,it.left),top:Math.min(ot.top,it.top)-de,right:Math.max(ot.left,it.left),bottom:Math.max(ot.bottom,it.bottom)+de};var Nt=ro(ie,pe),Nn=ie.doc.scrollTop,Kt=ie.doc.scrollLeft;if(Nt.scrollTop!=null&&(Sa(ie,Nt.scrollTop),Math.abs(ie.doc.scrollTop-Nn)>1&&(Ze=!0)),Nt.scrollLeft!=null&&(Ha(ie,Nt.scrollLeft),Math.abs(ie.doc.scrollLeft-Kt)>1&&(Ze=!0)),!Ze)break}return pe}function fo(ie,ae){var he=ro(ie,ae);he.scrollTop!=null&&Sa(ie,he.scrollTop),he.scrollLeft!=null&&Ha(ie,he.scrollLeft)}function ro(ie,ae){var he=ie.display,de=$l(ie.display);ae.top<0&&(ae.top=0);var pe=ie.curOp&&ie.curOp.scrollTop!=null?ie.curOp.scrollTop:he.scroller.scrollTop,Fe=oc(ie),Ze={};ae.bottom-ae.top>Fe&&(ae.bottom=ae.top+Fe);var ot=ie.doc.height+fu(he),it=ae.top<de,Nt=ae.bottom>ot-de;if(ae.top<pe)Ze.scrollTop=it?0:ae.top;else if(ae.bottom>pe+Fe){var Nn=Math.min(ae.top,(Nt?ot:ae.bottom)-Fe);Nn!=pe&&(Ze.scrollTop=Nn)}var Kt=ie.options.fixedGutter?0:he.gutters.offsetWidth,ii=ie.curOp&&ie.curOp.scrollLeft!=null?ie.curOp.scrollLeft:he.scroller.scrollLeft-Kt,qn=Sl(ie)-he.gutters.offsetWidth,ir=ae.right-ae.left>qn;return ir&&(ae.right=ae.left+qn),ae.left<10?Ze.scrollLeft=0:ae.left<ii?Ze.scrollLeft=Math.max(0,ae.left+Kt-(ir?0:10)):ae.right>qn+ii-3&&(Ze.scrollLeft=ae.right+(ir?0:10)-qn),Ze}function vo(ie,ae){ae!=null&&(aa(ie),ie.curOp.scrollTop=(ie.curOp.scrollTop==null?ie.doc.scrollTop:ie.curOp.scrollTop)+ae)}function yo(ie){aa(ie);var ae=ie.getCursor();ie.curOp.scrollToPos={from:ae,to:ae,margin:ie.options.cursorScrollMargin}}function po(ie,ae,he){(ae!=null||he!=null)&&aa(ie),ae!=null&&(ie.curOp.scrollLeft=ae),he!=null&&(ie.curOp.scrollTop=he)}function ur(ie,ae){aa(ie),ie.curOp.scrollToPos=ae}function aa(ie){var ae=ie.curOp.scrollToPos;if(ae){ie.curOp.scrollToPos=null;var he=Hu(ie,ae.from),de=Hu(ie,ae.to);ea(ie,he,de,ae.margin)}}function ea(ie,ae,he,de){var pe=ro(ie,{left:Math.min(ae.left,he.left),top:Math.min(ae.top,he.top)-de,right:Math.max(ae.right,he.right),bottom:Math.max(ae.bottom,he.bottom)+de});po(ie,pe.scrollLeft,pe.scrollTop)}function Sa(ie,ae){Math.abs(ie.doc.scrollTop-ae)<2||(xe||kr(ie,{top:ae}),Ka(ie,ae,!0),xe&&kr(ie),xi(ie,100))}function Ka(ie,ae,he){ae=Math.max(0,Math.min(ie.display.scroller.scrollHeight-ie.display.scroller.clientHeight,ae)),!(ie.display.scroller.scrollTop==ae&&!he)&&(ie.doc.scrollTop=ae,ie.display.scrollbars.setScrollTop(ae),ie.display.scroller.scrollTop!=ae&&(ie.display.scroller.scrollTop=ae))}function Ha(ie,ae,he,de){ae=Math.max(0,Math.min(ae,ie.display.scroller.scrollWidth-ie.display.scroller.clientWidth)),!((he?ae==ie.doc.scrollLeft:Math.abs(ie.doc.scrollLeft-ae)<2)&&!de)&&(ie.doc.scrollLeft=ae,Lo(ie),ie.display.scroller.scrollLeft!=ae&&(ie.display.scroller.scrollLeft=ae),ie.display.scrollbars.setScrollLeft(ae))}function Ba(ie){var ae=ie.display,he=ae.gutters.offsetWidth,de=Math.round(ie.doc.height+fu(ie.display));return{clientHeight:ae.scroller.clientHeight,viewHeight:ae.wrapper.clientHeight,scrollWidth:ae.scroller.scrollWidth,clientWidth:ae.scroller.clientWidth,viewWidth:ae.wrapper.clientWidth,barLeft:ie.options.fixedGutter?he:0,docHeight:de,scrollHeight:de+rl(ie)+ae.barHeight,nativeBarWidth:ae.nativeBarWidth,gutterWidth:he}}var fs=function(ie,ae,he){this.cm=he;var de=this.vert=Xe("div",[Xe("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),pe=this.horiz=Xe("div",[Xe("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");de.tabIndex=pe.tabIndex=-1,ie(de),ie(pe),st(de,"scroll",function(){de.clientHeight&&ae(de.scrollTop,"vertical")}),st(pe,"scroll",function(){pe.clientWidth&&ae(pe.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Qe&&vt<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};fs.prototype.update=function(ie){var ae=ie.scrollWidth>ie.clientWidth+1,he=ie.scrollHeight>ie.clientHeight+1,de=ie.nativeBarWidth;if(he){this.vert.style.display="block",this.vert.style.bottom=ae?de+"px":"0";var pe=ie.viewHeight-(ae?de:0);this.vert.firstChild.style.height=Math.max(0,ie.scrollHeight-ie.clientHeight+pe)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(ae){this.horiz.style.display="block",this.horiz.style.right=he?de+"px":"0",this.horiz.style.left=ie.barLeft+"px";var Fe=ie.viewWidth-ie.barLeft-(he?de:0);this.horiz.firstChild.style.width=Math.max(0,ie.scrollWidth-ie.clientWidth+Fe)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&ie.clientHeight>0&&(de==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:he?de:0,bottom:ae?de:0}},fs.prototype.setScrollLeft=function(ie){this.horiz.scrollLeft!=ie&&(this.horiz.scrollLeft=ie),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},fs.prototype.setScrollTop=function(ie){this.vert.scrollTop!=ie&&(this.vert.scrollTop=ie),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},fs.prototype.zeroWidthHack=function(){var ie=ce&&!dt?"12px":"18px";this.horiz.style.height=this.vert.style.width=ie,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new je,this.disableVert=new je},fs.prototype.enableZeroWidthBar=function(ie,ae,he){ie.style.pointerEvents="auto";function de(){var pe=ie.getBoundingClientRect(),Fe=he=="vert"?document.elementFromPoint(pe.right-1,(pe.top+pe.bottom)/2):document.elementFromPoint((pe.right+pe.left)/2,pe.bottom-1);Fe!=ie?ie.style.pointerEvents="none":ae.set(1e3,de)}ae.set(1e3,de)},fs.prototype.clear=function(){var ie=this.horiz.parentNode;ie.removeChild(this.horiz),ie.removeChild(this.vert)};var La=function(){};La.prototype.update=function(){return{bottom:0,right:0}},La.prototype.setScrollLeft=function(){},La.prototype.setScrollTop=function(){},La.prototype.clear=function(){};function Ca(ie,ae){ae||(ae=Ba(ie));var he=ie.display.barWidth,de=ie.display.barHeight;Ta(ie,ae);for(var pe=0;pe<4&&he!=ie.display.barWidth||de!=ie.display.barHeight;pe++)he!=ie.display.barWidth&&ie.options.lineWrapping&&Ei(ie),Ta(ie,Ba(ie)),he=ie.display.barWidth,de=ie.display.barHeight}function Ta(ie,ae){var he=ie.display,de=he.scrollbars.update(ae);he.sizer.style.paddingRight=(he.barWidth=de.right)+"px",he.sizer.style.paddingBottom=(he.barHeight=de.bottom)+"px",he.heightForcer.style.borderBottom=de.bottom+"px solid transparent",de.right&&de.bottom?(he.scrollbarFiller.style.display="block",he.scrollbarFiller.style.height=de.bottom+"px",he.scrollbarFiller.style.width=de.right+"px"):he.scrollbarFiller.style.display="",de.bottom&&ie.options.coverGutterNextToScrollbar&&ie.options.fixedGutter?(he.gutterFiller.style.display="block",he.gutterFiller.style.height=de.bottom+"px",he.gutterFiller.style.width=ae.gutterWidth+"px"):he.gutterFiller.style.display=""}var as={native:fs,null:La};function gs(ie){ie.display.scrollbars&&(ie.display.scrollbars.clear(),ie.display.scrollbars.addClass&&Te(ie.display.wrapper,ie.display.scrollbars.addClass)),ie.display.scrollbars=new as[ie.options.scrollbarStyle](function(ae){ie.display.wrapper.insertBefore(ae,ie.display.scrollbarFiller),st(ae,"mousedown",function(){ie.state.focused&&setTimeout(function(){return ie.display.input.focus()},0)}),ae.setAttribute("cm-not-content","true")},function(ae,he){he=="horizontal"?Ha(ie,ae):Sa(ie,ae)},ie),ie.display.scrollbars.addClass&&zt(ie.display.wrapper,ie.display.scrollbars.addClass)}var Ja=0;function Oa(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:++Ja},Pa(ie.curOp)}function Rs(ie){var ae=ie.curOp;ae&&No(ae,function(he){for(var de=0;de<he.ops.length;de++)he.ops[de].cm.curOp=null;hl(he)})}function hl(ie){for(var ae=ie.ops,he=0;he<ae.length;he++)nt(ae[he]);for(var de=0;de<ae.length;de++)ut(ae[de]);for(var pe=0;pe<ae.length;pe++)_t(ae[pe]);for(var Fe=0;Fe<ae.length;Fe++)qt(ae[Fe]);for(var Ze=0;Ze<ae.length;Ze++)bn(ae[Ze])}function nt(ie){var ae=ie.cm,he=ae.display;_i(ae),ie.updateMaxLine&&eo(ae),ie.mustUpdate=ie.viewChanged||ie.forceUpdate||ie.scrollTop!=null||ie.scrollToPos&&(ie.scrollToPos.from.line<he.viewFrom||ie.scrollToPos.to.line>=he.viewTo)||he.maxLineChanged&&ae.options.lineWrapping,ie.update=ie.mustUpdate&&new mi(ae,ie.mustUpdate&&{top:ie.scrollTop,ensure:ie.scrollToPos},ie.forceUpdate)}function ut(ie){ie.updatedDisplay=ie.mustUpdate&&wr(ie.cm,ie.update)}function _t(ie){var ae=ie.cm,he=ae.display;ie.updatedDisplay&&Ei(ae),ie.barMeasure=Ba(ae),he.maxLineChanged&&!ae.options.lineWrapping&&(ie.adjustWidthTo=gu(ae,he.maxLine,he.maxLine.text.length).left+3,ae.display.sizerWidth=ie.adjustWidthTo,ie.barMeasure.scrollWidth=Math.max(he.scroller.clientWidth,he.sizer.offsetLeft+ie.adjustWidthTo+rl(ae)+ae.display.barWidth),ie.maxScrollLeft=Math.max(0,he.sizer.offsetLeft+ie.adjustWidthTo-Sl(ae))),(ie.updatedDisplay||ie.selectionChanged)&&(ie.preparedSelection=he.input.prepareSelection())}function qt(ie){var ae=ie.cm;ie.adjustWidthTo!=null&&(ae.display.sizer.style.minWidth=ie.adjustWidthTo+"px",ie.maxScrollLeft<ae.doc.scrollLeft&&Ha(ae,Math.min(ae.display.scroller.scrollLeft,ie.maxScrollLeft),!0),ae.display.maxLineChanged=!1);var he=ie.focus&&ie.focus==$e();ie.preparedSelection&&ae.display.input.showSelection(ie.preparedSelection,he),(ie.updatedDisplay||ie.startHeight!=ae.doc.height)&&Ca(ae,ie.barMeasure),ie.updatedDisplay&&So(ae,ie.barMeasure),ie.selectionChanged&&ci(ae),ae.state.focused&&ie.updateInput&&ae.display.input.reset(ie.typing),he&&ki(ie.cm)}function bn(ie){var ae=ie.cm,he=ae.display,de=ae.doc;if(ie.updatedDisplay&&Vi(ae,ie.update),he.wheelStartX!=null&&(ie.scrollTop!=null||ie.scrollLeft!=null||ie.scrollToPos)&&(he.wheelStartX=he.wheelStartY=null),ie.scrollTop!=null&&Ka(ae,ie.scrollTop,ie.forceScroll),ie.scrollLeft!=null&&Ha(ae,ie.scrollLeft,!0,!0),ie.scrollToPos){var pe=br(ae,Fi(de,ie.scrollToPos.from),Fi(de,ie.scrollToPos.to),ie.scrollToPos.margin);er(ae,pe)}var Fe=ie.maybeHiddenMarkers,Ze=ie.maybeUnhiddenMarkers;if(Fe)for(var ot=0;ot<Fe.length;++ot)Fe[ot].lines.length||ln(Fe[ot],"hide");if(Ze)for(var it=0;it<Ze.length;++it)Ze[it].lines.length&&ln(Ze[it],"unhide");he.wrapper.offsetHeight&&(de.scrollTop=ae.display.scroller.scrollTop),ie.changeObjs&&ln(ae,"changes",ae,ie.changeObjs),ie.update&&ie.update.finish()}function gn(ie,ae){if(ie.curOp)return ae();Oa(ie);try{return ae()}finally{Rs(ie)}}function Jn(ie,ae){return function(){if(ie.curOp)return ae.apply(ie,arguments);Oa(ie);try{return ae.apply(ie,arguments)}finally{Rs(ie)}}}function Un(ie){return function(){if(this.curOp)return ie.apply(this,arguments);Oa(this);try{return ie.apply(this,arguments)}finally{Rs(this)}}}function Zn(ie){return function(){var ae=this.cm;if(!ae||ae.curOp)return ie.apply(this,arguments);Oa(ae);try{return ie.apply(this,arguments)}finally{Rs(ae)}}}function xi(ie,ae){ie.doc.highlightFrontier<ie.display.viewTo&&ie.state.highlight.set(ae,Bt(ni,ie))}function ni(ie){var ae=ie.doc;if(!(ae.highlightFrontier>=ie.display.viewTo)){var he=+new Date+ie.options.workTime,de=Pr(ie,ae.highlightFrontier),pe=[];ae.iter(de.line,Math.min(ae.first+ae.size,ie.display.viewTo+500),function(Fe){if(de.line>=ie.display.viewFrom){var Ze=Fe.styles,ot=Fe.text.length>ie.options.maxHighlightLength?en(ae.mode,de.state):null,it=Lr(ie,Fe,de,!0);ot&&(de.state=ot),Fe.styles=it.styles;var Nt=Fe.styleClasses,Nn=it.classes;Nn?Fe.styleClasses=Nn:Nt&&(Fe.styleClasses=null);for(var Kt=!Ze||Ze.length!=Fe.styles.length||Nt!=Nn&&(!Nt||!Nn||Nt.bgClass!=Nn.bgClass||Nt.textClass!=Nn.textClass),ii=0;!Kt&&ii<Ze.length;++ii)Kt=Ze[ii]!=Fe.styles[ii];Kt&&pe.push(de.line),Fe.stateAfter=de.save(),de.nextLine()}else Fe.text.length<=ie.options.maxHighlightLength&&Xt(ie,Fe.text,de),Fe.stateAfter=de.line%5==0?de.save():null,de.nextLine();if(+new Date>he)return xi(ie,ie.options.workDelay),!0}),ae.highlightFrontier=de.line,ae.modeFrontier=Math.max(ae.modeFrontier,de.line),pe.length&&gn(ie,function(){for(var Fe=0;Fe<pe.length;Fe++)ya(ie,pe[Fe],"text")})}}var mi=function(ie,ae,he){var de=ie.display;this.viewport=ae,this.visible=ti(de,ie.doc,ae),this.editorIsHidden=!de.wrapper.offsetWidth,this.wrapperHeight=de.wrapper.clientHeight,this.wrapperWidth=de.wrapper.clientWidth,this.oldDisplayWidth=Sl(ie),this.force=he,this.dims=Pc(ie),this.events=[]};mi.prototype.signal=function(ie,ae){Pi(ie,ae)&&this.events.push(arguments)},mi.prototype.finish=function(){for(var ie=0;ie<this.events.length;ie++)ln.apply(null,this.events[ie])};function _i(ie){var ae=ie.display;!ae.scrollbarsClipped&&ae.scroller.offsetWidth&&(ae.nativeBarWidth=ae.scroller.offsetWidth-ae.scroller.clientWidth,ae.heightForcer.style.height=rl(ie)+"px",ae.sizer.style.marginBottom=-ae.nativeBarWidth+"px",ae.sizer.style.borderRightWidth=rl(ie)+"px",ae.scrollbarsClipped=!0)}function Ji(ie){if(ie.hasFocus())return null;var ae=$e();if(!ae||!kt(ie.display.lineDiv,ae))return null;var he={activeElt:ae};if(window.getSelection){var de=window.getSelection();de.anchorNode&&de.extend&&kt(ie.display.lineDiv,de.anchorNode)&&(he.anchorNode=de.anchorNode,he.anchorOffset=de.anchorOffset,he.focusNode=de.focusNode,he.focusOffset=de.focusOffset)}return he}function ji(ie){if(!(!ie||!ie.activeElt||ie.activeElt==$e())&&(ie.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(ie.activeElt.nodeName)&&ie.anchorNode&&kt(document.body,ie.anchorNode)&&kt(document.body,ie.focusNode))){var ae=window.getSelection(),he=document.createRange();he.setEnd(ie.anchorNode,ie.anchorOffset),he.collapse(!1),ae.removeAllRanges(),ae.addRange(he),ae.extend(ie.focusNode,ie.focusOffset)}}function wr(ie,ae){var he=ie.display,de=ie.doc;if(ae.editorIsHidden)return ol(ie),!1;if(!ae.force&&ae.visible.from>=he.viewFrom&&ae.visible.to<=he.viewTo&&(he.updateLineNumbers==null||he.updateLineNumbers>=he.viewTo)&&he.renderedView==he.view&&lt(ie)==0)return!1;Wr(ie)&&(ol(ie),ae.dims=Pc(ie));var pe=de.first+de.size,Fe=Math.max(ae.visible.from-ie.options.viewportMargin,de.first),Ze=Math.min(pe,ae.visible.to+ie.options.viewportMargin);he.viewFrom<Fe&&Fe-he.viewFrom<20&&(Fe=Math.max(de.first,he.viewFrom)),he.viewTo>Ze&&he.viewTo-Ze<20&&(Ze=Math.min(pe,he.viewTo)),Mn&&(Fe=gi(ie.doc,Fe),Ze=Yi(ie.doc,Ze));var ot=Fe!=he.viewFrom||Ze!=he.viewTo||he.lastWrapHeight!=ae.wrapperHeight||he.lastWrapWidth!=ae.wrapperWidth;_e(ie,Fe,Ze),he.viewOffset=Ur(an(ie.doc,he.viewFrom)),ie.display.mover.style.top=he.viewOffset+"px";var it=lt(ie);if(!ot&&it==0&&!ae.force&&he.renderedView==he.view&&(he.updateLineNumbers==null||he.updateLineNumbers>=he.viewTo))return!1;var Nt=Ji(ie);return it>4&&(he.lineDiv.style.display="none"),Er(ie,he.updateLineNumbers,ae.dims),it>4&&(he.lineDiv.style.display=""),he.renderedView=he.view,ji(Nt),Ke(he.cursorDiv),Ke(he.selectionDiv),he.gutters.style.height=he.sizer.style.minHeight=0,ot&&(he.lastWrapHeight=ae.wrapperHeight,he.lastWrapWidth=ae.wrapperWidth,xi(ie,400)),he.updateLineNumbers=null,!0}function Vi(ie,ae){for(var he=ae.viewport,de=!0;;de=!1){if(!de||!ie.options.lineWrapping||ae.oldDisplayWidth==Sl(ie)){if(he&&he.top!=null&&(he={top:Math.min(ie.doc.height+fu(ie.display)-oc(ie),he.top)}),ae.visible=ti(ie.display,ie.doc,he),ae.visible.from>=ie.display.viewFrom&&ae.visible.to<=ie.display.viewTo)break}else de&&(ae.visible=ti(ie.display,ie.doc,he));if(!wr(ie,ae))break;Ei(ie);var pe=Ba(ie);nn(ie),Ca(ie,pe),So(ie,pe),ae.force=!1}ae.signal(ie,"update",ie),(ie.display.viewFrom!=ie.display.reportedViewFrom||ie.display.viewTo!=ie.display.reportedViewTo)&&(ae.signal(ie,"viewportChange",ie,ie.display.viewFrom,ie.display.viewTo),ie.display.reportedViewFrom=ie.display.viewFrom,ie.display.reportedViewTo=ie.display.viewTo)}function kr(ie,ae){var he=new mi(ie,ae);if(wr(ie,he)){Ei(ie),Vi(ie,he);var de=Ba(ie);nn(ie),Ca(ie,de),So(ie,de),he.finish()}}function Er(ie,ae,he){var de=ie.display,pe=ie.options.lineNumbers,Fe=de.lineDiv,Ze=Fe.firstChild;function ot(ir){var sr=ir.nextSibling;return Ne&&ce&&ie.display.currentWheelTarget==ir?ir.style.display="none":ir.parentNode.removeChild(ir),sr}for(var it=de.view,Nt=de.viewFrom,Nn=0;Nn<it.length;Nn++){var Kt=it[Nn];if(!Kt.hidden)if(!Kt.node||Kt.node.parentNode!=Fe){var ii=ml(ie,Kt,Nt,he);Fe.insertBefore(ii,Ze)}else{for(;Ze!=Kt.node;)Ze=ot(Ze);var qn=pe&&ae!=null&&ae<=Nt&&Kt.lineNumber;Kt.changes&&(At(Kt.changes,"gutter")>-1&&(qn=!1),Fa(ie,Kt,Nt,he)),qn&&(Ke(Kt.lineNumber),Kt.lineNumber.appendChild(document.createTextNode(Xn(ie.options,Nt)))),Ze=Kt.node.nextSibling}Nt+=Kt.size}for(;Ze;)Ze=ot(Ze)}function Or(ie){var ae=ie.gutters.offsetWidth;ie.sizer.style.marginLeft=ae+"px"}function So(ie,ae){ie.display.sizer.style.minHeight=ae.docHeight+"px",ie.display.heightForcer.style.top=ae.docHeight+"px",ie.display.gutters.style.height=ae.docHeight+ie.display.barHeight+rl(ie)+"px"}function Lo(ie){var ae=ie.display,he=ae.view;if(!(!ae.alignWidgets&&(!ae.gutters.firstChild||!ie.options.fixedGutter))){for(var de=Ic(ae)-ae.scroller.scrollLeft+ie.doc.scrollLeft,pe=ae.gutters.offsetWidth,Fe=de+"px",Ze=0;Ze<he.length;Ze++)if(!he[Ze].hidden){ie.options.fixedGutter&&(he[Ze].gutter&&(he[Ze].gutter.style.left=Fe),he[Ze].gutterBackground&&(he[Ze].gutterBackground.style.left=Fe));var ot=he[Ze].alignable;if(ot)for(var it=0;it<ot.length;it++)ot[it].style.left=Fe}ie.options.fixedGutter&&(ae.gutters.style.left=de+pe+"px")}}function Wr(ie){if(!ie.options.lineNumbers)return!1;var ae=ie.doc,he=Xn(ie.options,ae.first+ae.size-1),de=ie.display;if(he.length!=de.lineNumChars){var pe=de.measure.appendChild(Xe("div",[Xe("div",he)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Fe=pe.firstChild.offsetWidth,Ze=pe.offsetWidth-Fe;return de.lineGutter.style.width="",de.lineNumInnerWidth=Math.max(Fe,de.lineGutter.offsetWidth-Ze)+1,de.lineNumWidth=de.lineNumInnerWidth+Ze,de.lineNumChars=de.lineNumInnerWidth?he.length:-1,de.lineGutter.style.width=de.lineNumWidth+"px",Or(ie.display),!0}return!1}function to(ie,ae){for(var he=[],de=!1,pe=0;pe<ie.length;pe++){var Fe=ie[pe],Ze=null;if(typeof Fe!="string"&&(Ze=Fe.style,Fe=Fe.className),Fe=="CodeMirror-linenumbers")if(ae)de=!0;else continue;he.push({className:Fe,style:Ze})}return ae&&!de&&he.push({className:"CodeMirror-linenumbers",style:null}),he}function Ko(ie){var ae=ie.gutters,he=ie.gutterSpecs;Ke(ae),ie.lineGutter=null;for(var de=0;de<he.length;++de){var pe=he[de],Fe=pe.className,Ze=pe.style,ot=ae.appendChild(Xe("div",null,"CodeMirror-gutter "+Fe));Ze&&(ot.style.cssText=Ze),Fe=="CodeMirror-linenumbers"&&(ie.lineGutter=ot,ot.style.width=(ie.lineNumWidth||1)+"px")}ae.style.display=he.length?"":"none",Or(ie)}function Rr(ie){Ko(ie.display),ws(ie),Lo(ie)}function lo(ie,ae,he,de){var pe=this;this.input=he,pe.scrollbarFiller=Xe("div",null,"CodeMirror-scrollbar-filler"),pe.scrollbarFiller.setAttribute("cm-not-content","true"),pe.gutterFiller=Xe("div",null,"CodeMirror-gutter-filler"),pe.gutterFiller.setAttribute("cm-not-content","true"),pe.lineDiv=ft("div",null,"CodeMirror-code"),pe.selectionDiv=Xe("div",null,null,"position: relative; z-index: 1"),pe.cursorDiv=Xe("div",null,"CodeMirror-cursors"),pe.measure=Xe("div",null,"CodeMirror-measure"),pe.lineMeasure=Xe("div",null,"CodeMirror-measure"),pe.lineSpace=ft("div",[pe.measure,pe.lineMeasure,pe.selectionDiv,pe.cursorDiv,pe.lineDiv],null,"position: relative; outline: none");var Fe=ft("div",[pe.lineSpace],"CodeMirror-lines");pe.mover=Xe("div",[Fe],null,"position: relative"),pe.sizer=Xe("div",[pe.mover],"CodeMirror-sizer"),pe.sizerWidth=null,pe.heightForcer=Xe("div",null,null,"position: absolute; height: "+wn+"px; width: 1px;"),pe.gutters=Xe("div",null,"CodeMirror-gutters"),pe.lineGutter=null,pe.scroller=Xe("div",[pe.sizer,pe.heightForcer,pe.gutters],"CodeMirror-scroll"),pe.scroller.setAttribute("tabIndex","-1"),pe.wrapper=Xe("div",[pe.scrollbarFiller,pe.gutterFiller,pe.scroller],"CodeMirror"),Qe&&vt<8&&(pe.gutters.style.zIndex=-1,pe.scroller.style.paddingRight=0),!Ne&&!(xe&&ne)&&(pe.scroller.draggable=!0),ie&&(ie.appendChild?ie.appendChild(pe.wrapper):ie(pe.wrapper)),pe.viewFrom=pe.viewTo=ae.first,pe.reportedViewFrom=pe.reportedViewTo=ae.first,pe.view=[],pe.renderedView=null,pe.externalMeasured=null,pe.viewOffset=0,pe.lastWrapHeight=pe.lastWrapWidth=0,pe.updateLineNumbers=null,pe.nativeBarWidth=pe.barHeight=pe.barWidth=0,pe.scrollbarsClipped=!1,pe.lineNumWidth=pe.lineNumInnerWidth=pe.lineNumChars=null,pe.alignWidgets=!1,pe.cachedCharWidth=pe.cachedTextHeight=pe.cachedPaddingH=null,pe.maxLine=null,pe.maxLineLength=0,pe.maxLineChanged=!1,pe.wheelDX=pe.wheelDY=pe.wheelStartX=pe.wheelStartY=null,pe.shift=!1,pe.selForContextMenu=null,pe.activeTouch=null,pe.gutterSpecs=to(de.gutters,de.lineNumbers),Ko(pe),he.init(pe)}var Zr=0,mr=null;Qe?mr=-.53:xe?mr=15:Ft?mr=-.7:gt&&(mr=-1/3);function Nr(ie){var ae=ie.wheelDeltaX,he=ie.wheelDeltaY;return ae==null&&ie.detail&&ie.axis==ie.HORIZONTAL_AXIS&&(ae=ie.detail),he==null&&ie.detail&&ie.axis==ie.VERTICAL_AXIS?he=ie.detail:he==null&&(he=ie.wheelDelta),{x:ae,y:he}}function uo(ie){var ae=Nr(ie);return ae.x*=mr,ae.y*=mr,ae}function Mo(ie,ae){var he=Nr(ae),de=he.x,pe=he.y,Fe=ie.display,Ze=Fe.scroller,ot=Ze.scrollWidth>Ze.clientWidth,it=Ze.scrollHeight>Ze.clientHeight;if(de&&ot||pe&&it){if(pe&&ce&&Ne){e:for(var Nt=ae.target,Nn=Fe.view;Nt!=Ze;Nt=Nt.parentNode)for(var Kt=0;Kt<Nn.length;Kt++)if(Nn[Kt].node==Nt){ie.display.currentWheelTarget=Nt;break e}}if(de&&!xe&&!qe&&mr!=null){pe&&it&&Sa(ie,Math.max(0,Ze.scrollTop+pe*mr)),Ha(ie,Math.max(0,Ze.scrollLeft+de*mr)),(!pe||pe&&it)&&Zi(ae),Fe.wheelStartX=null;return}if(pe&&mr!=null){var ii=pe*mr,qn=ie.doc.scrollTop,ir=qn+Fe.wrapper.clientHeight;ii<0?qn=Math.max(0,qn+ii-50):ir=Math.min(ie.doc.height,ir+ii+50),kr(ie,{top:qn,bottom:ir})}Zr<20&&(Fe.wheelStartX==null?(Fe.wheelStartX=Ze.scrollLeft,Fe.wheelStartY=Ze.scrollTop,Fe.wheelDX=de,Fe.wheelDY=pe,setTimeout(function(){if(Fe.wheelStartX!=null){var sr=Ze.scrollLeft-Fe.wheelStartX,Ar=Ze.scrollTop-Fe.wheelStartY,Qr=Ar&&Fe.wheelDY&&Ar/Fe.wheelDY||sr&&Fe.wheelDX&&sr/Fe.wheelDX;Fe.wheelStartX=Fe.wheelStartY=null,Qr&&(mr=(mr*Zr+Qr)/(Zr+1),++Zr)}},200)):(Fe.wheelDX+=de,Fe.wheelDY+=pe))}}var Fo=function(ie,ae){this.ranges=ie,this.primIndex=ae};Fo.prototype.primary=function(){return this.ranges[this.primIndex]},Fo.prototype.equals=function(ie){if(ie==this)return!0;if(ie.primIndex!=this.primIndex||ie.ranges.length!=this.ranges.length)return!1;for(var ae=0;ae<this.ranges.length;ae++){var he=this.ranges[ae],de=ie.ranges[ae];if(!bi(he.anchor,de.anchor)||!bi(he.head,de.head))return!1}return!0},Fo.prototype.deepCopy=function(){for(var ie=[],ae=0;ae<this.ranges.length;ae++)ie[ae]=new Fr(vi(this.ranges[ae].anchor),vi(this.ranges[ae].head));return new Fo(ie,this.primIndex)},Fo.prototype.somethingSelected=function(){for(var ie=0;ie<this.ranges.length;ie++)if(!this.ranges[ie].empty())return!0;return!1},Fo.prototype.contains=function(ie,ae){ae||(ae=ie);for(var he=0;he<this.ranges.length;he++){var de=this.ranges[he];if(vn(ae,de.from())>=0&&vn(ie,de.to())<=0)return he}return-1};var Fr=function(ie,ae){this.anchor=ie,this.head=ae};Fr.prototype.from=function(){return ei(this.anchor,this.head)},Fr.prototype.to=function(){return pi(this.anchor,this.head)},Fr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Vo(ie,ae,he){var de=ie&&ie.options.selectionsMayTouch,pe=ae[he];ae.sort(function(ii,qn){return vn(ii.from(),qn.from())}),he=At(ae,pe);for(var Fe=1;Fe<ae.length;Fe++){var Ze=ae[Fe],ot=ae[Fe-1],it=vn(ot.to(),Ze.from());if(de&&!Ze.empty()?it>0:it>=0){var Nt=ei(ot.from(),Ze.from()),Nn=pi(ot.to(),Ze.to()),Kt=ot.empty()?Ze.from()==Ze.head:ot.from()==ot.head;Fe<=he&&--he,ae.splice(--Fe,2,new Fr(Kt?Nn:Nt,Kt?Nt:Nn))}}return new Fo(ae,he)}function _o(ie,ae){return new Fo([new Fr(ie,ae||ie)],0)}function na(ie){return ie.text?Rt(ie.from.line+ie.text.length-1,St(ie.text).length+(ie.text.length==1?ie.from.ch:0)):ie.to}function ta(ie,ae){if(vn(ie,ae.from)<0)return ie;if(vn(ie,ae.to)<=0)return na(ae);var he=ie.line+ae.text.length-(ae.to.line-ae.from.line)-1,de=ie.ch;return ie.line==ae.to.line&&(de+=na(ae).ch-ae.to.ch),Rt(he,de)}function Qa(ie,ae){for(var he=[],de=0;de<ie.sel.ranges.length;de++){var pe=ie.sel.ranges[de];he.push(new Fr(ta(pe.anchor,ae),ta(pe.head,ae)))}return Vo(ie.cm,he,ie.sel.primIndex)}function fa(ie,ae,he){return ie.line==ae.line?Rt(he.line,ie.ch-ae.ch+he.ch):Rt(he.line+(ie.line-ae.line),ie.ch)}function Wo(ie,ae,he){for(var de=[],pe=Rt(ie.first,0),Fe=pe,Ze=0;Ze<ae.length;Ze++){var ot=ae[Ze],it=fa(ot.from,pe,Fe),Nt=fa(na(ot),pe,Fe);if(pe=ot.to,Fe=Nt,he=="around"){var Nn=ie.sel.ranges[Ze],Kt=vn(Nn.head,Nn.anchor)<0;de[Ze]=new Fr(Kt?Nt:it,Kt?it:Nt)}else de[Ze]=new Fr(it,it)}return new Fo(de,ie.sel.primIndex)}function Po(ie){ie.doc.mode=Et(ie.options,ie.doc.modeOption),To(ie)}function To(ie){ie.doc.iter(function(ae){ae.stateAfter&&(ae.stateAfter=null),ae.styles&&(ae.styles=null)}),ie.doc.modeFrontier=ie.doc.highlightFrontier=ie.doc.first,xi(ie,100),ie.state.modeGen++,ie.curOp&&ws(ie)}function Ya(ie,ae){return ae.from.ch==0&&ae.to.ch==0&&St(ae.text)==""&&(!ie.cm||ie.cm.options.wholeLineUpdateBefore)}function Ia(ie,ae,he,de){function pe(Eo){return he?he[Eo]:null}function Fe(Eo,mo,jo){no(Eo,mo,jo,de),Gi(Eo,"change",Eo,ae)}function Ze(Eo,mo){for(var jo=[],ua=Eo;ua<mo;++ua)jo.push(new qr(Nt[ua],pe(ua),de));return jo}var ot=ae.from,it=ae.to,Nt=ae.text,Nn=an(ie,ot.line),Kt=an(ie,it.line),ii=St(Nt),qn=pe(Nt.length-1),ir=it.line-ot.line;if(ae.full)ie.insert(0,Ze(0,Nt.length)),ie.remove(Nt.length,ie.size-Nt.length);else if(Ya(ie,ae)){var sr=Ze(0,Nt.length-1);Fe(Kt,Kt.text,qn),ir&&ie.remove(ot.line,ir),sr.length&&ie.insert(ot.line,sr)}else if(Nn==Kt)if(Nt.length==1)Fe(Nn,Nn.text.slice(0,ot.ch)+ii+Nn.text.slice(it.ch),qn);else{var Ar=Ze(1,Nt.length-1);Ar.push(new qr(ii+Nn.text.slice(it.ch),qn,de)),Fe(Nn,Nn.text.slice(0,ot.ch)+Nt[0],pe(0)),ie.insert(ot.line+1,Ar)}else if(Nt.length==1)Fe(Nn,Nn.text.slice(0,ot.ch)+Nt[0]+Kt.text.slice(it.ch),pe(0)),ie.remove(ot.line+1,ir);else{Fe(Nn,Nn.text.slice(0,ot.ch)+Nt[0],pe(0)),Fe(Kt,ii+Kt.text.slice(it.ch),qn);var Qr=Ze(1,Nt.length-1);ir>1&&ie.remove(ot.line+1,ir-1),ie.insert(ot.line+1,Qr)}Gi(ie,"change",ie,ae)}function ns(ie,ae,he){function de(pe,Fe,Ze){if(pe.linked)for(var ot=0;ot<pe.linked.length;++ot){var it=pe.linked[ot];if(it.doc!=Fe){var Nt=Ze&&it.sharedHist;he&&!Nt||(ae(it.doc,Nt),de(it.doc,pe,Nt))}}}de(ie,null,!0)}function Ro(ie,ae){if(ae.cm)throw new Error("This document is already in use.");ie.doc=ae,ae.cm=ie,Io(ie),Po(ie),bo(ie),ie.options.lineWrapping||eo(ie),ie.options.mode=ae.modeOption,ws(ie)}function bo(ie){(ie.doc.direction=="rtl"?zt:Te)(ie.display.lineDiv,"CodeMirror-rtl")}function Zo(ie){gn(ie,function(){bo(ie),ws(ie)})}function wo(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 so(ie,ae){var he={from:vi(ae.from),to:na(ae),text:Dt(ie,ae.from,ae.to)};return Al(ie,he,ae.from.line,ae.to.line+1),ns(ie,function(de){return Al(de,he,ae.from.line,ae.to.line+1)},!0),he}function tr(ie){for(;ie.length;){var ae=St(ie);if(ae.ranges)ie.pop();else break}}function Gr(ie,ae){if(ae)return tr(ie.done),St(ie.done);if(ie.done.length&&!St(ie.done).ranges)return St(ie.done);if(ie.done.length>1&&!ie.done[ie.done.length-2].ranges)return ie.done.pop(),St(ie.done)}function Uo(ie,ae,he,de){var pe=ie.history;pe.undone.length=0;var Fe=+new Date,Ze,ot;if((pe.lastOp==de||pe.lastOrigin==ae.origin&&ae.origin&&(ae.origin.charAt(0)=="+"&&pe.lastModTime>Fe-(ie.cm?ie.cm.options.historyEventDelay:500)||ae.origin.charAt(0)=="*"))&&(Ze=Gr(pe,pe.lastOp==de)))ot=St(Ze.changes),vn(ae.from,ae.to)==0&&vn(ae.from,ot.to)==0?ot.to=na(ae):Ze.changes.push(so(ie,ae));else{var it=St(pe.done);for((!it||!it.ranges)&&zs(ie.sel,pe.done),Ze={changes:[so(ie,ae)],generation:pe.generation},pe.done.push(Ze);pe.done.length>pe.undoDepth;)pe.done.shift(),pe.done[0].ranges||pe.done.shift()}pe.done.push(he),pe.generation=++pe.maxGeneration,pe.lastModTime=pe.lastSelTime=Fe,pe.lastOp=pe.lastSelOp=de,pe.lastOrigin=pe.lastSelOrigin=ae.origin,ot||ln(ie,"historyAdded")}function sa(ie,ae,he,de){var pe=ae.charAt(0);return pe=="*"||pe=="+"&&he.ranges.length==de.ranges.length&&he.somethingSelected()==de.somethingSelected()&&new Date-ie.history.lastSelTime<=(ie.cm?ie.cm.options.historyEventDelay:500)}function al(ie,ae,he,de){var pe=ie.history,Fe=de&&de.origin;he==pe.lastSelOp||Fe&&pe.lastSelOrigin==Fe&&(pe.lastModTime==pe.lastSelTime&&pe.lastOrigin==Fe||sa(ie,Fe,St(pe.done),ae))?pe.done[pe.done.length-1]=ae:zs(ae,pe.done),pe.lastSelTime=+new Date,pe.lastSelOrigin=Fe,pe.lastSelOp=he,de&&de.clearRedo!==!1&&tr(pe.undone)}function zs(ie,ae){var he=St(ae);he&&he.ranges&&he.equals(ie)||ae.push(ie)}function Al(ie,ae,he,de){var pe=ae["spans_"+ie.id],Fe=0;ie.iter(Math.max(ie.first,he),Math.min(ie.first+ie.size,de),function(Ze){Ze.markedSpans&&((pe||(pe=ae["spans_"+ie.id]={}))[Fe]=Ze.markedSpans),++Fe})}function Na(ie){if(!ie)return null;for(var ae,he=0;he<ie.length;++he)ie[he].marker.explicitlyCleared?ae||(ae=ie.slice(0,he)):ae&&ae.push(ie[he]);return ae?ae.length?ae:null:ie}function Ua(ie,ae){var he=ae["spans_"+ie.id];if(!he)return null;for(var de=[],pe=0;pe<ae.text.length;++pe)de.push(Na(he[pe]));return de}function Do(ie,ae){var he=Ua(ie,ae),de=gr(ie,ae);if(!he)return de;if(!de)return he;for(var pe=0;pe<he.length;++pe){var Fe=he[pe],Ze=de[pe];if(Fe&&Ze)e:for(var ot=0;ot<Ze.length;++ot){for(var it=Ze[ot],Nt=0;Nt<Fe.length;++Nt)if(Fe[Nt].marker==it.marker)continue e;Fe.push(it)}else Ze&&(he[pe]=Ze)}return he}function Vs(ie,ae,he){for(var de=[],pe=0;pe<ie.length;++pe){var Fe=ie[pe];if(Fe.ranges){de.push(he?Fo.prototype.deepCopy.call(Fe):Fe);continue}var Ze=Fe.changes,ot=[];de.push({changes:ot});for(var it=0;it<Ze.length;++it){var Nt=Ze[it],Nn=void 0;if(ot.push({from:Nt.from,to:Nt.to,text:Nt.text}),ae)for(var Kt in Nt)(Nn=Kt.match(/^spans_(\d+)$/))&&At(ae,Number(Nn[1]))>-1&&(St(ot)[Kt]=Nt[Kt],delete Nt[Kt])}}return de}function Ll(ie,ae,he,de){if(de){var pe=ie.anchor;if(he){var Fe=vn(ae,pe)<0;Fe!=vn(he,pe)<0?(pe=ae,ae=he):Fe!=vn(ae,he)<0&&(ae=he)}return new Fr(pe,ae)}else return new Fr(he||ae,ae)}function Wa(ie,ae,he,de,pe){pe==null&&(pe=ie.cm&&(ie.cm.display.shift||ie.extend)),ss(ie,new Fo([Ll(ie.sel.primary(),ae,he,pe)],0),de)}function _a(ie,ae,he){for(var de=[],pe=ie.cm&&(ie.cm.display.shift||ie.extend),Fe=0;Fe<ie.sel.ranges.length;Fe++)de[Fe]=Ll(ie.sel.ranges[Fe],ae[Fe],null,pe);var Ze=Vo(ie.cm,de,ie.sel.primIndex);ss(ie,Ze,he)}function is(ie,ae,he,de){var pe=ie.sel.ranges.slice(0);pe[ae]=he,ss(ie,Vo(ie.cm,pe,ie.sel.primIndex),de)}function bs(ie,ae,he,de){ss(ie,_o(ae,he),de)}function Gs(ie,ae,he){var de={ranges:ae.ranges,update:function(pe){this.ranges=[];for(var Fe=0;Fe<pe.length;Fe++)this.ranges[Fe]=new Fr(Fi(ie,pe[Fe].anchor),Fi(ie,pe[Fe].head))},origin:he&&he.origin};return ln(ie,"beforeSelectionChange",ie,de),ie.cm&&ln(ie.cm,"beforeSelectionChange",ie.cm,de),de.ranges!=ae.ranges?Vo(ie.cm,de.ranges,de.ranges.length-1):ae}function xa(ie,ae,he){var de=ie.history.done,pe=St(de);pe&&pe.ranges?(de[de.length-1]=ae,Js(ie,ae,he)):ss(ie,ae,he)}function ss(ie,ae,he){Js(ie,ae,he),al(ie,ie.sel,ie.cm?ie.cm.curOp.id:NaN,he)}function Js(ie,ae,he){(Pi(ie,"beforeSelectionChange")||ie.cm&&Pi(ie.cm,"beforeSelectionChange"))&&(ae=Gs(ie,ae,he));var de=he&&he.bias||(vn(ae.primary().head,ie.sel.primary().head)<0?-1:1);Xa(ie,Ms(ie,ae,de,!0)),!(he&&he.scroll===!1)&&ie.cm&&yo(ie.cm)}function Xa(ie,ae){ae.equals(ie.sel)||(ie.sel=ae,ie.cm&&(ie.cm.curOp.updateInput=1,ie.cm.curOp.selectionChanged=!0,wi(ie.cm)),Gi(ie,"cursorActivity",ie))}function zo(ie){Xa(ie,Ms(ie,ie.sel,null,!1))}function Ms(ie,ae,he,de){for(var pe,Fe=0;Fe<ae.ranges.length;Fe++){var Ze=ae.ranges[Fe],ot=ae.ranges.length==ie.sel.ranges.length&&ie.sel.ranges[Fe],it=Wu(ie,Ze.anchor,ot&&ot.anchor,he,de),Nt=Wu(ie,Ze.head,ot&&ot.head,he,de);(pe||it!=Ze.anchor||Nt!=Ze.head)&&(pe||(pe=ae.ranges.slice(0,Fe)),pe[Fe]=new Fr(it,Nt))}return pe?Vo(ie.cm,pe,ae.primIndex):ae}function Ys(ie,ae,he,de,pe){var Fe=an(ie,ae.line);if(Fe.markedSpans)for(var Ze=0;Ze<Fe.markedSpans.length;++Ze){var ot=Fe.markedSpans[Ze],it=ot.marker,Nt="selectLeft"in it?!it.selectLeft:it.inclusiveLeft,Nn="selectRight"in it?!it.selectRight:it.inclusiveRight;if((ot.from==null||(Nt?ot.from<=ae.ch:ot.from<ae.ch))&&(ot.to==null||(Nn?ot.to>=ae.ch:ot.to>ae.ch))){if(pe&&(ln(it,"beforeCursorEnter"),it.explicitlyCleared))if(Fe.markedSpans){--Ze;continue}else break;if(!it.atomic)continue;if(he){var Kt=it.find(de<0?1:-1),ii=void 0;if((de<0?Nn:Nt)&&(Kt=vu(ie,Kt,-de,Kt&&Kt.line==ae.line?Fe:null)),Kt&&Kt.line==ae.line&&(ii=vn(Kt,he))&&(de<0?ii<0:ii>0))return Ys(ie,Kt,ae,de,pe)}var qn=it.find(de<0?-1:1);return(de<0?Nt:Nn)&&(qn=vu(ie,qn,de,qn.line==ae.line?Fe:null)),qn?Ys(ie,qn,ae,de,pe):null}}return ae}function Wu(ie,ae,he,de,pe){var Fe=de||1,Ze=Ys(ie,ae,he,Fe,pe)||!pe&&Ys(ie,ae,he,Fe,!0)||Ys(ie,ae,he,-Fe,pe)||!pe&&Ys(ie,ae,he,-Fe,!0);return Ze||(ie.cantEdit=!0,Rt(ie.first,0))}function vu(ie,ae,he,de){return he<0&&ae.ch==0?ae.line>ie.first?Fi(ie,Rt(ae.line-1)):null:he>0&&ae.ch==(de||an(ie,ae.line)).text.length?ae.line<ie.first+ie.size-1?Rt(ae.line+1,0):null:new Rt(ae.line,ae.ch+he)}function $a(ie){ie.setSelection(Rt(ie.firstLine(),0),Rt(ie.lastLine()),bt)}function Ml(ie,ae,he){var de={canceled:!1,from:ae.from,to:ae.to,text:ae.text,origin:ae.origin,cancel:function(){return de.canceled=!0}};return he&&(de.update=function(pe,Fe,Ze,ot){pe&&(de.from=Fi(ie,pe)),Fe&&(de.to=Fi(ie,Fe)),Ze&&(de.text=Ze),ot!==void 0&&(de.origin=ot)}),ln(ie,"beforeChange",ie,de),ie.cm&&ln(ie.cm,"beforeChange",ie.cm,de),de.canceled?(ie.cm&&(ie.cm.curOp.updateInput=2),null):{from:de.from,to:de.to,text:de.text,origin:de.origin}}function Ps(ie,ae,he){if(ie.cm){if(!ie.cm.curOp)return Jn(ie.cm,Ps)(ie,ae,he);if(ie.cm.state.suppressEdits)return}if(!((Pi(ie,"beforeChange")||ie.cm&&Pi(ie.cm,"beforeChange"))&&(ae=Ml(ie,ae,!0),!ae))){var de=nr&&!he&&Yr(ie,ae.from,ae.to);if(de)for(var pe=de.length-1;pe>=0;--pe)ps(ie,{from:de[pe].from,to:de[pe].to,text:pe?[""]:ae.text,origin:ae.origin});else ps(ie,ae)}}function ps(ie,ae){if(!(ae.text.length==1&&ae.text[0]==""&&vn(ae.from,ae.to)==0)){var he=Qa(ie,ae);Uo(ie,ae,he,ie.cm?ie.cm.curOp.id:NaN),ql(ie,ae,he,gr(ie,ae));var de=[];ns(ie,function(pe,Fe){!Fe&&At(de,pe.history)==-1&&(ls(pe.history,ae),de.push(pe.history)),ql(pe,ae,null,gr(pe,ae))})}}function Nu(ie,ae,he){var de=ie.cm&&ie.cm.state.suppressEdits;if(!(de&&!he)){for(var pe=ie.history,Fe,Ze=ie.sel,ot=ae=="undo"?pe.done:pe.undone,it=ae=="undo"?pe.undone:pe.done,Nt=0;Nt<ot.length&&(Fe=ot[Nt],!(he?Fe.ranges&&!Fe.equals(ie.sel):!Fe.ranges));Nt++);if(Nt!=ot.length){for(pe.lastOrigin=pe.lastSelOrigin=null;;)if(Fe=ot.pop(),Fe.ranges){if(zs(Fe,it),he&&!Fe.equals(ie.sel)){ss(ie,Fe,{clearRedo:!1});return}Ze=Fe}else if(de){ot.push(Fe);return}else break;var Nn=[];zs(Ze,it),it.push({changes:Nn,generation:pe.generation}),pe.generation=Fe.generation||++pe.maxGeneration;for(var Kt=Pi(ie,"beforeChange")||ie.cm&&Pi(ie.cm,"beforeChange"),ii=function(sr){var Ar=Fe.changes[sr];if(Ar.origin=ae,Kt&&!Ml(ie,Ar,!1))return ot.length=0,{};Nn.push(so(ie,Ar));var Qr=sr?Qa(ie,Ar):St(ot);ql(ie,Ar,Qr,Do(ie,Ar)),!sr&&ie.cm&&ie.cm.scrollIntoView({from:Ar.from,to:na(Ar)});var Eo=[];ns(ie,function(mo,jo){!jo&&At(Eo,mo.history)==-1&&(ls(mo.history,Ar),Eo.push(mo.history)),ql(mo,Ar,null,Do(mo,Ar))})},qn=Fe.changes.length-1;qn>=0;--qn){var ir=ii(qn);if(ir)return ir.v}}}}function Cc(ie,ae){if(ae!=0&&(ie.first+=ae,ie.sel=new Fo(Vn(ie.sel.ranges,function(pe){return new Fr(Rt(pe.anchor.line+ae,pe.anchor.ch),Rt(pe.head.line+ae,pe.head.ch))}),ie.sel.primIndex),ie.cm)){ws(ie.cm,ie.first,ie.first-ae,ae);for(var he=ie.cm.display,de=he.viewFrom;de<he.viewTo;de++)ya(ie.cm,de,"gutter")}}function ql(ie,ae,he,de){if(ie.cm&&!ie.cm.curOp)return Jn(ie.cm,ql)(ie,ae,he,de);if(ae.to.line<ie.first){Cc(ie,ae.text.length-1-(ae.to.line-ae.from.line));return}if(!(ae.from.line>ie.lastLine())){if(ae.from.line<ie.first){var pe=ae.text.length-1-(ie.first-ae.from.line);Cc(ie,pe),ae={from:Rt(ie.first,0),to:Rt(ae.to.line+pe,ae.to.ch),text:[St(ae.text)],origin:ae.origin}}var Fe=ie.lastLine();ae.to.line>Fe&&(ae={from:ae.from,to:Rt(Fe,an(ie,Fe).text.length),text:[ae.text[0]],origin:ae.origin}),ae.removed=Dt(ie,ae.from,ae.to),he||(he=Qa(ie,ae)),ie.cm?ac(ie.cm,ae,de):Ia(ie,ae,de),Js(ie,he,bt),ie.cantEdit&&Wu(ie,Rt(ie.firstLine(),0))&&(ie.cantEdit=!1)}}function ac(ie,ae,he){var de=ie.doc,pe=ie.display,Fe=ae.from,Ze=ae.to,ot=!1,it=Fe.line;ie.options.lineWrapping||(it=Pt($n(an(de,Fe.line))),de.iter(it,Ze.line+1,function(qn){if(qn==pe.maxLine)return ot=!0,!0})),de.sel.contains(ae.from,ae.to)>-1&&wi(ie),Ia(de,ae,he,Os(ie)),ie.options.lineWrapping||(de.iter(it,Fe.line+ae.text.length,function(qn){var ir=Ao(qn);ir>pe.maxLineLength&&(pe.maxLine=qn,pe.maxLineLength=ir,pe.maxLineChanged=!0,ot=!1)}),ot&&(ie.curOp.updateMaxLine=!0)),$i(de,Fe.line),xi(ie,400);var Nt=ae.text.length-(Ze.line-Fe.line)-1;ae.full?ws(ie):Fe.line==Ze.line&&ae.text.length==1&&!Ya(ie.doc,ae)?ya(ie,Fe.line,"text"):ws(ie,Fe.line,Ze.line+1,Nt);var Nn=Pi(ie,"changes"),Kt=Pi(ie,"change");if(Kt||Nn){var ii={from:Fe,to:Ze,text:ae.text,removed:ae.removed,origin:ae.origin};Kt&&Gi(ie,"change",ie,ii),Nn&&(ie.curOp.changeObjs||(ie.curOp.changeObjs=[])).push(ii)}ie.display.selForContextMenu=null}function sc(ie,ae,he,de,pe){var Fe;de||(de=he),vn(de,he)<0&&(Fe=[de,he],he=Fe[0],de=Fe[1]),typeof ae=="string"&&(ae=ie.splitLines(ae)),Ps(ie,{from:he,to:de,text:ae,origin:pe})}function yu(ie,ae,he,de){he<ie.line?ie.line+=de:ae<ie.line&&(ie.line=ae,ie.ch=0)}function Ra(ie,ae,he,de){for(var pe=0;pe<ie.length;++pe){var Fe=ie[pe],Ze=!0;if(Fe.ranges){Fe.copied||(Fe=ie[pe]=Fe.deepCopy(),Fe.copied=!0);for(var ot=0;ot<Fe.ranges.length;ot++)yu(Fe.ranges[ot].anchor,ae,he,de),yu(Fe.ranges[ot].head,ae,he,de);continue}for(var it=0;it<Fe.changes.length;++it){var Nt=Fe.changes[it];if(he<Nt.from.line)Nt.from=Rt(Nt.from.line+de,Nt.from.ch),Nt.to=Rt(Nt.to.line+de,Nt.to.ch);else if(ae<=Nt.to.line){Ze=!1;break}}Ze||(ie.splice(0,pe+1),pe=0)}}function ls(ie,ae){var he=ae.from.line,de=ae.to.line,pe=ae.text.length-(de-he)-1;Ra(ie.done,he,de,pe),Ra(ie.undone,he,de,pe)}function Qs(ie,ae,he,de){var pe=ae,Fe=ae;return typeof ae=="number"?Fe=an(ie,yi(ie,ae)):pe=Pt(ae),pe==null?null:(de(Fe,pe)&&ie.cm&&ya(ie.cm,pe,he),Fe)}function ms(ie){this.lines=ie,this.parent=null;for(var ae=0,he=0;he<ie.length;++he)ie[he].parent=this,ae+=ie[he].height;this.height=ae}ms.prototype={chunkSize:function(){return this.lines.length},removeInner:function(ie,ae){for(var he=ie,de=ie+ae;he<de;++he){var pe=this.lines[he];this.height-=pe.height,$o(pe),Gi(pe,"delete")}this.lines.splice(ie,ae)},collapse:function(ie){ie.push.apply(ie,this.lines)},insertInner:function(ie,ae,he){this.height+=he,this.lines=this.lines.slice(0,ie).concat(ae).concat(this.lines.slice(ie));for(var de=0;de<ae.length;++de)ae[de].parent=this},iterN:function(ie,ae,he){for(var de=ie+ae;ie<de;++ie)if(he(this.lines[ie]))return!0}};function za(ie){this.children=ie;for(var ae=0,he=0,de=0;de<ie.length;++de){var pe=ie[de];ae+=pe.chunkSize(),he+=pe.height,pe.parent=this}this.size=ae,this.height=he,this.parent=null}za.prototype={chunkSize:function(){return this.size},removeInner:function(ie,ae){this.size-=ae;for(var he=0;he<this.children.length;++he){var de=this.children[he],pe=de.chunkSize();if(ie<pe){var Fe=Math.min(ae,pe-ie),Ze=de.height;if(de.removeInner(ie,Fe),this.height-=Ze-de.height,pe==Fe&&(this.children.splice(he--,1),de.parent=null),(ae-=Fe)==0)break;ie=0}else ie-=pe}if(this.size-ae<25&&(this.children.length>1||!(this.children[0]instanceof ms))){var ot=[];this.collapse(ot),this.children=[new ms(ot)],this.children[0].parent=this}},collapse:function(ie){for(var ae=0;ae<this.children.length;++ae)this.children[ae].collapse(ie)},insertInner:function(ie,ae,he){this.size+=ae.length,this.height+=he;for(var de=0;de<this.children.length;++de){var pe=this.children[de],Fe=pe.chunkSize();if(ie<=Fe){if(pe.insertInner(ie,ae,he),pe.lines&&pe.lines.length>50){for(var Ze=pe.lines.length%25+25,ot=Ze;ot<pe.lines.length;){var it=new ms(pe.lines.slice(ot,ot+=25));pe.height-=it.height,this.children.splice(++de,0,it),it.parent=this}pe.lines=pe.lines.slice(0,Ze),this.maybeSpill()}break}ie-=Fe}},maybeSpill:function(){if(!(this.children.length<=10)){var ie=this;do{var ae=ie.children.splice(ie.children.length-5,5),he=new za(ae);if(ie.parent){ie.size-=he.size,ie.height-=he.height;var pe=At(ie.parent.children,ie);ie.parent.children.splice(pe+1,0,he)}else{var de=new za(ie.children);de.parent=ie,ie.children=[de,he],ie=de}he.parent=ie.parent}while(ie.children.length>10);ie.parent.maybeSpill()}},iterN:function(ie,ae,he){for(var de=0;de<this.children.length;++de){var pe=this.children[de],Fe=pe.chunkSize();if(ie<Fe){var Ze=Math.min(ae,Fe-ie);if(pe.iterN(ie,Ze,he))return!0;if((ae-=Ze)==0)break;ie=0}else ie-=Fe}}};var _s=function(ie,ae,he){if(he)for(var de in he)he.hasOwnProperty(de)&&(this[de]=he[de]);this.doc=ie,this.node=ae};_s.prototype.clear=function(){var ie=this.doc.cm,ae=this.line.widgets,he=this.line,de=Pt(he);if(!(de==null||!ae)){for(var pe=0;pe<ae.length;++pe)ae[pe]==this&&ae.splice(pe--,1);ae.length||(he.widgets=null);var Fe=il(this);dn(he,Math.max(0,he.height-Fe)),ie&&(gn(ie,function(){Rl(ie,he,-Fe),ya(ie,de,"widget")}),Gi(ie,"lineWidgetCleared",ie,this,de))}},_s.prototype.changed=function(){var ie=this,ae=this.height,he=this.doc.cm,de=this.line;this.height=null;var pe=il(this)-ae;pe&&(On(this.doc,de)||dn(de,de.height+pe),he&&gn(he,function(){he.curOp.forceUpdate=!0,Rl(he,de,pe),Gi(he,"lineWidgetChanged",he,ie,Pt(de))}))},Ri(_s);function Rl(ie,ae,he){Ur(ae)<(ie.curOp&&ie.curOp.scrollTop||ie.doc.scrollTop)&&vo(ie,he)}function Zu(ie,ae,he,de){var pe=new _s(ie,he,de),Fe=ie.cm;return Fe&&pe.noHScroll&&(Fe.display.alignWidgets=!0),Qs(ie,ae,"widget",function(Ze){var ot=Ze.widgets||(Ze.widgets=[]);if(pe.insertAt==null?ot.push(pe):ot.splice(Math.min(ot.length-1,Math.max(0,pe.insertAt)),0,pe),pe.line=Ze,Fe&&!On(ie,Ze)){var it=Ur(Ze)<ie.scrollTop;dn(Ze,Ze.height+il(pe)),it&&vo(Fe,pe.height),Fe.curOp.forceUpdate=!0}return!0}),Fe&&Gi(Fe,"lineWidgetAdded",Fe,pe,typeof ae=="number"?ae:Pt(ae)),pe}var uh=0,pn=function(ie,ae){this.lines=[],this.type=ae,this.doc=ie,this.id=++uh};pn.prototype.clear=function(){if(!this.explicitlyCleared){var ie=this.doc.cm,ae=ie&&!ie.curOp;if(ae&&Oa(ie),Pi(this,"clear")){var he=this.find();he&&Gi(this,"clear",he.from,he.to)}for(var de=null,pe=null,Fe=0;Fe<this.lines.length;++Fe){var Ze=this.lines[Fe],ot=_r(Ze.markedSpans,this);ie&&!this.collapsed?ya(ie,Pt(Ze),"text"):ie&&(ot.to!=null&&(pe=Pt(Ze)),ot.from!=null&&(de=Pt(Ze))),Ze.markedSpans=xr(Ze.markedSpans,ot),ot.from==null&&this.collapsed&&!On(this.doc,Ze)&&ie&&dn(Ze,$l(ie.display))}if(ie&&this.collapsed&&!ie.options.lineWrapping)for(var it=0;it<this.lines.length;++it){var Nt=$n(this.lines[it]),Nn=Ao(Nt);Nn>ie.display.maxLineLength&&(ie.display.maxLine=Nt,ie.display.maxLineLength=Nn,ie.display.maxLineChanged=!0)}de!=null&&ie&&this.collapsed&&ws(ie,de,pe+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,ie&&zo(ie.doc)),ie&&Gi(ie,"markerCleared",ie,this,de,pe),ae&&Rs(ie),this.parent&&this.parent.clear()}},pn.prototype.find=function(ie,ae){ie==null&&this.type=="bookmark"&&(ie=1);for(var he,de,pe=0;pe<this.lines.length;++pe){var Fe=this.lines[pe],Ze=_r(Fe.markedSpans,this);if(Ze.from!=null&&(he=Rt(ae?Fe:Pt(Fe),Ze.from),ie==-1))return he;if(Ze.to!=null&&(de=Rt(ae?Fe:Pt(Fe),Ze.to),ie==1))return de}return he&&{from:he,to:de}},pn.prototype.changed=function(){var ie=this,ae=this.find(-1,!0),he=this,de=this.doc.cm;!ae||!de||gn(de,function(){var pe=ae.line,Fe=Pt(ae.line),Ze=zl(de,Fe);if(Ze&&(dl(Ze),de.curOp.selectionChanged=de.curOp.forceUpdate=!0),de.curOp.updateMaxLine=!0,!On(he.doc,pe)&&he.height!=null){var ot=he.height;he.height=null;var it=il(he)-ot;it&&dn(pe,pe.height+it)}Gi(de,"markerChanged",de,ie)})},pn.prototype.attachLine=function(ie){if(!this.lines.length&&this.doc.cm){var ae=this.doc.cm.curOp;(!ae.maybeHiddenMarkers||At(ae.maybeHiddenMarkers,this)==-1)&&(ae.maybeUnhiddenMarkers||(ae.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(ie)},pn.prototype.detachLine=function(ie){if(this.lines.splice(At(this.lines,ie),1),!this.lines.length&&this.doc.cm){var ae=this.doc.cm.curOp;(ae.maybeHiddenMarkers||(ae.maybeHiddenMarkers=[])).push(this)}},Ri(pn);function Rc(ie,ae,he,de,pe){if(de&&de.shared)return jh(ie,ae,he,de,pe);if(ie.cm&&!ie.cm.curOp)return Jn(ie.cm,Rc)(ie,ae,he,de,pe);var Fe=new pn(ie,pe),Ze=vn(ae,he);if(de&&Qt(de,Fe,!1),Ze>0||Ze==0&&Fe.clearWhenEmpty!==!1)return Fe;if(Fe.replacedWith&&(Fe.collapsed=!0,Fe.widgetNode=ft("span",[Fe.replacedWith],"CodeMirror-widget"),de.handleMouseEvents||Fe.widgetNode.setAttribute("cm-ignore-events","true"),de.insertLeft&&(Fe.widgetNode.insertLeft=!0)),Fe.collapsed){if(ai(ie,ae.line,ae,he,Fe)||ae.line!=he.line&&ai(ie,he.line,ae,he,Fe))throw new Error("Inserting collapsed marker partially overlapping an existing one");An()}Fe.addToHistory&&Uo(ie,{from:ae,to:he,origin:"markText"},ie.sel,NaN);var ot=ae.line,it=ie.cm,Nt;if(ie.iter(ot,he.line+1,function(Kt){it&&Fe.collapsed&&!it.options.lineWrapping&&$n(Kt)==it.display.maxLine&&(Nt=!0),Fe.collapsed&&ot!=ae.line&&dn(Kt,0),Ho(Kt,new yr(Fe,ot==ae.line?ae.ch:null,ot==he.line?he.ch:null)),++ot}),Fe.collapsed&&ie.iter(ae.line,he.line+1,function(Kt){On(ie,Kt)&&dn(Kt,0)}),Fe.clearOnEnter&&st(Fe,"beforeCursorEnter",function(){return Fe.clear()}),Fe.readOnly&&(Tr(),(ie.history.done.length||ie.history.undone.length)&&ie.clearHistory()),Fe.collapsed&&(Fe.id=++uh,Fe.atomic=!0),it){if(Nt&&(it.curOp.updateMaxLine=!0),Fe.collapsed)ws(it,ae.line,he.line+1);else if(Fe.className||Fe.startStyle||Fe.endStyle||Fe.css||Fe.attributes||Fe.title)for(var Nn=ae.line;Nn<=he.line;Nn++)ya(it,Nn,"text");Fe.atomic&&zo(it.doc),Gi(it,"markerAdded",it,Fe)}return Fe}var bc=function(ie,ae){this.markers=ie,this.primary=ae;for(var he=0;he<ie.length;++he)ie[he].parent=this};bc.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var ie=0;ie<this.markers.length;++ie)this.markers[ie].clear();Gi(this,"clear")}},bc.prototype.find=function(ie,ae){return this.primary.find(ie,ae)},Ri(bc);function jh(ie,ae,he,de,pe){de=Qt(de),de.shared=!1;var Fe=[Rc(ie,ae,he,de,pe)],Ze=Fe[0],ot=de.widgetNode;return ns(ie,function(it){ot&&(de.widgetNode=ot.cloneNode(!0)),Fe.push(Rc(it,Fi(it,ae),Fi(it,he),de,pe));for(var Nt=0;Nt<it.linked.length;++Nt)if(it.linked[Nt].isParent)return;Ze=St(Fe)}),new bc(Fe,Ze)}function bd(ie){return ie.findMarks(Rt(ie.first,0),ie.clipPos(Rt(ie.lastLine())),function(ae){return ae.parent})}function _c(ie,ae){for(var he=0;he<ae.length;he++){var de=ae[he],pe=de.find(),Fe=ie.clipPos(pe.from),Ze=ie.clipPos(pe.to);if(vn(Fe,Ze)){var ot=Rc(ie,Fe,Ze,de.primary,de.primary.type);de.markers.push(ot),ot.parent=de}}}function zc(ie){for(var ae=function(de){var pe=ie[de],Fe=[pe.primary.doc];ns(pe.primary.doc,function(it){return Fe.push(it)});for(var Ze=0;Ze<pe.markers.length;Ze++){var ot=pe.markers[Ze];At(Fe,ot.doc)==-1&&(ot.parent=null,pe.markers.splice(Ze--,1))}},he=0;he<ie.length;he++)ae(he)}var gf=0,Fl=function(ie,ae,he,de,pe){if(!(this instanceof Fl))return new Fl(ie,ae,he,de,pe);he==null&&(he=0),za.call(this,[new ms([new qr("",null)])]),this.first=he,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=he;var Fe=Rt(he,0);this.sel=_o(Fe),this.history=new wo(null),this.id=++gf,this.modeOption=ae,this.lineSep=de,this.direction=pe=="rtl"?"rtl":"ltr",this.extend=!1,typeof ie=="string"&&(ie=this.splitLines(ie)),Ia(this,{from:Fe,to:Fe,text:ie}),ss(this,_o(Fe),bt)};Fl.prototype=Bn(za.prototype,{constructor:Fl,iter:function(ie,ae,he){he?this.iterN(ie-this.first,ae-ie,he):this.iterN(this.first,this.first+this.size,ie)},insert:function(ie,ae){for(var he=0,de=0;de<ae.length;++de)he+=ae[de].height;this.insertInner(ie-this.first,ae,he)},remove:function(ie,ae){this.removeInner(ie-this.first,ae)},getValue:function(ie){var ae=Rn(this,this.first,this.first+this.size);return ie===!1?ae:ae.join(ie||this.lineSeparator())},setValue:Zn(function(ie){var ae=Rt(this.first,0),he=this.first+this.size-1;Ps(this,{from:ae,to:Rt(he,an(this,he).text.length),text:this.splitLines(ie),origin:"setValue",full:!0},!0),this.cm&&po(this.cm,0,0),ss(this,_o(ae),bt)}),replaceRange:function(ie,ae,he,de){ae=Fi(this,ae),he=he?Fi(this,he):ae,sc(this,ie,ae,he,de)},getRange:function(ie,ae,he){var de=Dt(this,Fi(this,ie),Fi(this,ae));return he===!1?de:de.join(he||this.lineSeparator())},getLine:function(ie){var ae=this.getLineHandle(ie);return ae&&ae.text},getLineHandle:function(ie){if(Qn(this,ie))return an(this,ie)},getLineNumber:function(ie){return Pt(ie)},getLineHandleVisualStart:function(ie){return typeof ie=="number"&&(ie=an(this,ie)),$n(ie)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(ie){return Fi(this,ie)},getCursor:function(ie){var ae=this.sel.primary(),he;return ie==null||ie=="head"?he=ae.head:ie=="anchor"?he=ae.anchor:ie=="end"||ie=="to"||ie===!1?he=ae.to():he=ae.from(),he},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Zn(function(ie,ae,he){bs(this,Fi(this,typeof ie=="number"?Rt(ie,ae||0):ie),null,he)}),setSelection:Zn(function(ie,ae,he){bs(this,Fi(this,ie),Fi(this,ae||ie),he)}),extendSelection:Zn(function(ie,ae,he){Wa(this,Fi(this,ie),ae&&Fi(this,ae),he)}),extendSelections:Zn(function(ie,ae){_a(this,hr(this,ie),ae)}),extendSelectionsBy:Zn(function(ie,ae){var he=Vn(this.sel.ranges,ie);_a(this,hr(this,he),ae)}),setSelections:Zn(function(ie,ae,he){if(ie.length){for(var de=[],pe=0;pe<ie.length;pe++)de[pe]=new Fr(Fi(this,ie[pe].anchor),Fi(this,ie[pe].head));ae==null&&(ae=Math.min(ie.length-1,this.sel.primIndex)),ss(this,Vo(this.cm,de,ae),he)}}),addSelection:Zn(function(ie,ae,he){var de=this.sel.ranges.slice(0);de.push(new Fr(Fi(this,ie),Fi(this,ae||ie))),ss(this,Vo(this.cm,de,de.length-1),he)}),getSelection:function(ie){for(var ae=this.sel.ranges,he,de=0;de<ae.length;de++){var pe=Dt(this,ae[de].from(),ae[de].to());he=he?he.concat(pe):pe}return ie===!1?he:he.join(ie||this.lineSeparator())},getSelections:function(ie){for(var ae=[],he=this.sel.ranges,de=0;de<he.length;de++){var pe=Dt(this,he[de].from(),he[de].to());ie!==!1&&(pe=pe.join(ie||this.lineSeparator())),ae[de]=pe}return ae},replaceSelection:function(ie,ae,he){for(var de=[],pe=0;pe<this.sel.ranges.length;pe++)de[pe]=ie;this.replaceSelections(de,ae,he||"+input")},replaceSelections:Zn(function(ie,ae,he){for(var de=[],pe=this.sel,Fe=0;Fe<pe.ranges.length;Fe++){var Ze=pe.ranges[Fe];de[Fe]={from:Ze.from(),to:Ze.to(),text:this.splitLines(ie[Fe]),origin:he}}for(var ot=ae&&ae!="end"&&Wo(this,de,ae),it=de.length-1;it>=0;it--)Ps(this,de[it]);ot?xa(this,ot):this.cm&&yo(this.cm)}),undo:Zn(function(){Nu(this,"undo")}),redo:Zn(function(){Nu(this,"redo")}),undoSelection:Zn(function(){Nu(this,"undo",!0)}),redoSelection:Zn(function(){Nu(this,"redo",!0)}),setExtending:function(ie){this.extend=ie},getExtending:function(){return this.extend},historySize:function(){for(var ie=this.history,ae=0,he=0,de=0;de<ie.done.length;de++)ie.done[de].ranges||++ae;for(var pe=0;pe<ie.undone.length;pe++)ie.undone[pe].ranges||++he;return{undo:ae,redo:he}},clearHistory:function(){var ie=this;this.history=new wo(this.history.maxGeneration),ns(this,function(ae){return ae.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:Vs(this.history.done),undone:Vs(this.history.undone)}},setHistory:function(ie){var ae=this.history=new wo(this.history.maxGeneration);ae.done=Vs(ie.done.slice(0),null,!0),ae.undone=Vs(ie.undone.slice(0),null,!0)},setGutterMarker:Zn(function(ie,ae,he){return Qs(this,ie,"gutter",function(de){var pe=de.gutterMarkers||(de.gutterMarkers={});return pe[ae]=he,!he&&ze(pe)&&(de.gutterMarkers=null),!0})}),clearGutter:Zn(function(ie){var ae=this;this.iter(function(he){he.gutterMarkers&&he.gutterMarkers[ie]&&Qs(ae,he,"gutter",function(){return he.gutterMarkers[ie]=null,ze(he.gutterMarkers)&&(he.gutterMarkers=null),!0})})}),lineInfo:function(ie){var ae;if(typeof ie=="number"){if(!Qn(this,ie)||(ae=ie,ie=an(this,ie),!ie))return null}else if(ae=Pt(ie),ae==null)return null;return{line:ae,handle:ie,text:ie.text,gutterMarkers:ie.gutterMarkers,textClass:ie.textClass,bgClass:ie.bgClass,wrapClass:ie.wrapClass,widgets:ie.widgets}},addLineClass:Zn(function(ie,ae,he){return Qs(this,ie,ae=="gutter"?"gutter":"class",function(de){var pe=ae=="text"?"textClass":ae=="background"?"bgClass":ae=="gutter"?"gutterClass":"wrapClass";if(!de[pe])de[pe]=he;else{if(Pe(he).test(de[pe]))return!1;de[pe]+=" "+he}return!0})}),removeLineClass:Zn(function(ie,ae,he){return Qs(this,ie,ae=="gutter"?"gutter":"class",function(de){var pe=ae=="text"?"textClass":ae=="background"?"bgClass":ae=="gutter"?"gutterClass":"wrapClass",Fe=de[pe];if(Fe)if(he==null)de[pe]=null;else{var Ze=Fe.match(Pe(he));if(!Ze)return!1;var ot=Ze.index+Ze[0].length;de[pe]=Fe.slice(0,Ze.index)+(!Ze.index||ot==Fe.length?"":" ")+Fe.slice(ot)||null}else return!1;return!0})}),addLineWidget:Zn(function(ie,ae,he){return Zu(this,ie,ae,he)}),removeLineWidget:function(ie){ie.clear()},markText:function(ie,ae,he){return Rc(this,Fi(this,ie),Fi(this,ae),he,he&&he.type||"range")},setBookmark:function(ie,ae){var he={replacedWith:ae&&(ae.nodeType==null?ae.widget:ae),insertLeft:ae&&ae.insertLeft,clearWhenEmpty:!1,shared:ae&&ae.shared,handleMouseEvents:ae&&ae.handleMouseEvents};return ie=Fi(this,ie),Rc(this,ie,ie,he,"bookmark")},findMarksAt:function(ie){ie=Fi(this,ie);var ae=[],he=an(this,ie.line).markedSpans;if(he)for(var de=0;de<he.length;++de){var pe=he[de];(pe.from==null||pe.from<=ie.ch)&&(pe.to==null||pe.to>=ie.ch)&&ae.push(pe.marker.parent||pe.marker)}return ae},findMarks:function(ie,ae,he){ie=Fi(this,ie),ae=Fi(this,ae);var de=[],pe=ie.line;return this.iter(ie.line,ae.line+1,function(Fe){var Ze=Fe.markedSpans;if(Ze)for(var ot=0;ot<Ze.length;ot++){var it=Ze[ot];!(it.to!=null&&pe==ie.line&&ie.ch>=it.to||it.from==null&&pe!=ie.line||it.from!=null&&pe==ae.line&&it.from>=ae.ch)&&(!he||he(it.marker))&&de.push(it.marker.parent||it.marker)}++pe}),de},getAllMarks:function(){var ie=[];return this.iter(function(ae){var he=ae.markedSpans;if(he)for(var de=0;de<he.length;++de)he[de].from!=null&&ie.push(he[de].marker)}),ie},posFromIndex:function(ie){var ae,he=this.first,de=this.lineSeparator().length;return this.iter(function(pe){var Fe=pe.text.length+de;if(Fe>ie)return ae=ie,!0;ie-=Fe,++he}),Fi(this,Rt(he,ae))},indexFromPos:function(ie){ie=Fi(this,ie);var ae=ie.ch;if(ie.line<this.first||ie.ch<0)return 0;var he=this.lineSeparator().length;return this.iter(this.first,ie.line,function(de){ae+=de.text.length+he}),ae},copy:function(ie){var ae=new Fl(Rn(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return ae.scrollTop=this.scrollTop,ae.scrollLeft=this.scrollLeft,ae.sel=this.sel,ae.extend=!1,ie&&(ae.history.undoDepth=this.history.undoDepth,ae.setHistory(this.getHistory())),ae},linkedDoc:function(ie){ie||(ie={});var ae=this.first,he=this.first+this.size;ie.from!=null&&ie.from>ae&&(ae=ie.from),ie.to!=null&&ie.to<he&&(he=ie.to);var de=new Fl(Rn(this,ae,he),ie.mode||this.modeOption,ae,this.lineSep,this.direction);return ie.sharedHist&&(de.history=this.history),(this.linked||(this.linked=[])).push({doc:de,sharedHist:ie.sharedHist}),de.linked=[{doc:this,isParent:!0,sharedHist:ie.sharedHist}],_c(de,bd(this)),de},unlinkDoc:function(ie){if(ie instanceof cs&&(ie=ie.doc),this.linked)for(var ae=0;ae<this.linked.length;++ae){var he=this.linked[ae];if(he.doc==ie){this.linked.splice(ae,1),ie.unlinkDoc(this),zc(bd(this));break}}if(ie.history==this.history){var de=[ie.id];ns(ie,function(pe){return de.push(pe.id)},!0),ie.history=new wo(null),ie.history.done=Vs(this.history.done,de),ie.history.undone=Vs(this.history.undone,de)}},iterLinkedDocs:function(ie){ns(this,ie)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(ie){return this.lineSep?ie.split(this.lineSep):zn(ie)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Zn(function(ie){ie!="rtl"&&(ie="ltr"),ie!=this.direction&&(this.direction=ie,this.iter(function(ae){return ae.order=null}),this.cm&&Zo(this.cm))})}),Fl.prototype.eachLine=Fl.prototype.iter;var fd=0;function Wd(ie){var ae=this;if(pf(ae),!(Hn(ae,ie)||Nl(ae.display,ie))){Zi(ie),Qe&&(fd=+new Date);var he=wl(ae,ie,!0),de=ie.dataTransfer.files;if(!(!he||ae.isReadOnly()))if(de&&de.length&&window.FileReader&&window.File)for(var pe=de.length,Fe=Array(pe),Ze=0,ot=function(){++Ze==pe&&Jn(ae,function(){he=Fi(ae.doc,he);var qn={from:he,to:he,text:ae.doc.splitLines(Fe.filter(function(ir){return ir!=null}).join(ae.doc.lineSeparator())),origin:"paste"};Ps(ae.doc,qn),xa(ae.doc,_o(Fi(ae.doc,he),Fi(ae.doc,na(qn))))})()},it=function(qn,ir){if(ae.options.allowDropFileTypes&&At(ae.options.allowDropFileTypes,qn.type)==-1){ot();return}var sr=new FileReader;sr.onerror=function(){return ot()},sr.onload=function(){var Ar=sr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Ar)){ot();return}Fe[ir]=Ar,ot()},sr.readAsText(qn)},Nt=0;Nt<de.length;Nt++)it(de[Nt],Nt);else{if(ae.state.draggingText&&ae.doc.sel.contains(he)>-1){ae.state.draggingText(ie),setTimeout(function(){return ae.display.input.focus()},20);return}try{var Nn=ie.dataTransfer.getData("Text");if(Nn){var Kt;if(ae.state.draggingText&&!ae.state.draggingText.copy&&(Kt=ae.listSelections()),Js(ae.doc,_o(he,he)),Kt)for(var ii=0;ii<Kt.length;++ii)sc(ae.doc,"",Kt[ii].anchor,Kt[ii].head,"drag");ae.replaceSelection(Nn,"around","paste"),ae.display.input.focus()}}catch(qn){}}}}function Zd(ie,ae){if(Qe&&(!ie.state.draggingText||+new Date-fd<100)){Kr(ae);return}if(!(Hn(ie,ae)||Nl(ie.display,ae))&&(ae.dataTransfer.setData("Text",ie.getSelection()),ae.dataTransfer.effectAllowed="copyMove",ae.dataTransfer.setDragImage&&!gt)){var he=Xe("img",null,null,"position: fixed; left: 0; top: 0;");he.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",qe&&(he.width=he.height=1,ie.display.wrapper.appendChild(he),he._top=he.offsetTop),ae.dataTransfer.setDragImage(he,0,0),qe&&he.parentNode.removeChild(he)}}function Kd(ie,ae){var he=wl(ie,ae);if(he){var de=document.createDocumentFragment();Tn(ie,he,de),ie.display.dragCursor||(ie.display.dragCursor=Xe("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),ie.display.lineSpace.insertBefore(ie.display.dragCursor,ie.display.cursorDiv)),et(ie.display.dragCursor,de)}}function pf(ie){ie.display.dragCursor&&(ie.display.lineSpace.removeChild(ie.display.dragCursor),ie.display.dragCursor=null)}function Vd(ie){if(document.getElementsByClassName){for(var ae=document.getElementsByClassName("CodeMirror"),he=[],de=0;de<ae.length;de++){var pe=ae[de].CodeMirror;pe&&he.push(pe)}he.length&&he[0].operation(function(){for(var Fe=0;Fe<he.length;Fe++)ie(he[Fe])})}}var Gd=!1;function Fu(){Gd||($c(),Gd=!0)}function $c(){var ie;st(window,"resize",function(){ie==null&&(ie=setTimeout(function(){ie=null,Vd(Hh)},100))}),st(window,"blur",function(){return Vd(qi)})}function Hh(ie){var ae=ie.display;ae.cachedCharWidth=ae.cachedTextHeight=ae.cachedPaddingH=null,ae.scrollbarsClipped=!1,ie.setSize()}for(var lc={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"},qc=0;qc<10;qc++)lc[qc+48]=lc[qc+96]=String(qc);for(var gd=65;gd<=90;gd++)lc[gd]=String.fromCharCode(gd);for(var pd=1;pd<=12;pd++)lc[pd+111]=lc[pd+63235]="F"+pd;var eu={};eu.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"},eu.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"},eu.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"},eu.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"]},eu.default=ce?eu.macDefault:eu.pcDefault;function ch(ie){var ae=ie.split(/-(?!$)/);ie=ae[ae.length-1];for(var he,de,pe,Fe,Ze=0;Ze<ae.length-1;Ze++){var ot=ae[Ze];if(/^(cmd|meta|m)$/i.test(ot))Fe=!0;else if(/^a(lt)?$/i.test(ot))he=!0;else if(/^(c|ctrl|control)$/i.test(ot))de=!0;else if(/^s(hift)?$/i.test(ot))pe=!0;else throw new Error("Unrecognized modifier name: "+ot)}return he&&(ie="Alt-"+ie),de&&(ie="Ctrl-"+ie),Fe&&(ie="Cmd-"+ie),pe&&(ie="Shift-"+ie),ie}function Yd(ie){var ae={};for(var he in ie)if(ie.hasOwnProperty(he)){var de=ie[he];if(/^(name|fallthrough|(de|at)tach)$/.test(he))continue;if(de=="..."){delete ie[he];continue}for(var pe=Vn(he.split(" "),ch),Fe=0;Fe<pe.length;Fe++){var Ze=void 0,ot=void 0;Fe==pe.length-1?(ot=pe.join(" "),Ze=de):(ot=pe.slice(0,Fe+1).join(" "),Ze="...");var it=ae[ot];if(!it)ae[ot]=Ze;else if(it!=Ze)throw new Error("Inconsistent bindings for "+ot)}delete ie[he]}for(var Nt in ae)ie[Nt]=ae[Nt];return ie}function Su(ie,ae,he,de){ae=jc(ae);var pe=ae.call?ae.call(ie,de):ae[ie];if(pe===!1)return"nothing";if(pe==="...")return"multi";if(pe!=null&&he(pe))return"handled";if(ae.fallthrough){if(Object.prototype.toString.call(ae.fallthrough)!="[object Array]")return Su(ie,ae.fallthrough,he,de);for(var Fe=0;Fe<ae.fallthrough.length;Fe++){var Ze=Su(ie,ae.fallthrough[Fe],he,de);if(Ze)return Ze}}}function Ed(ie){var ae=typeof ie=="string"?ie:lc[ie.keyCode];return ae=="Ctrl"||ae=="Alt"||ae=="Shift"||ae=="Mod"}function Ud(ie,ae,he){var de=ie;return ae.altKey&&de!="Alt"&&(ie="Alt-"+ie),(Ce?ae.metaKey:ae.ctrlKey)&&de!="Ctrl"&&(ie="Ctrl-"+ie),(Ce?ae.ctrlKey:ae.metaKey)&&de!="Mod"&&(ie="Cmd-"+ie),!he&&ae.shiftKey&&de!="Shift"&&(ie="Shift-"+ie),ie}function dh(ie,ae){if(qe&&ie.keyCode==34&&ie.char)return!1;var he=lc[ie.keyCode];return he==null||ie.altGraphKey?!1:(ie.keyCode==3&&ie.code&&(he=ie.code),Ud(he,ie,ae))}function jc(ie){return typeof ie=="string"?eu[ie]:ie}function Hl(ie,ae){for(var he=ie.doc.sel.ranges,de=[],pe=0;pe<he.length;pe++){for(var Fe=ae(he[pe]);de.length&&vn(Fe.from,St(de).to)<=0;){var Ze=de.pop();if(vn(Ze.from,Fe.from)<0){Fe.from=Ze.from;break}}de.push(Fe)}gn(ie,function(){for(var ot=de.length-1;ot>=0;ot--)sc(ie.doc,"",de[ot].from,de[ot].to,"+delete");yo(ie)})}function Xd(ie,ae,he){var de=at(ie.text,ae+he,he);return de<0||de>ie.text.length?null:de}function sl(ie,ae,he){var de=Xd(ie,ae.ch,he);return de==null?null:new Rt(ae.line,de,he<0?"after":"before")}function Va(ie,ae,he,de,pe){if(ie){ae.doc.direction=="rtl"&&(pe=-pe);var Fe=Re(he,ae.doc.direction);if(Fe){var Ze=pe<0?St(Fe):Fe[0],ot=pe<0==(Ze.level==1),it=ot?"after":"before",Nt;if(Ze.level>0||ae.doc.direction=="rtl"){var Nn=xl(ae,he);Nt=pe<0?he.text.length-1:0;var Kt=Tl(ae,Nn,Nt).top;Nt=Ve(function(ii){return Tl(ae,Nn,ii).top==Kt},pe<0==(Ze.level==1)?Ze.from:Ze.to-1,Nt),it=="before"&&(Nt=Xd(he,Nt,1))}else Nt=pe<0?Ze.to:Ze.from;return new Rt(de,Nt,it)}}return new Rt(de,pe<0?he.text.length:0,pe<0?"before":"after")}function Es(ie,ae,he,de){var pe=Re(ae,ie.doc.direction);if(!pe)return sl(ae,he,de);he.ch>=ae.text.length?(he.ch=ae.text.length,he.sticky="before"):he.ch<=0&&(he.ch=0,he.sticky="after");var Fe=me(pe,he.ch,he.sticky),Ze=pe[Fe];if(ie.doc.direction=="ltr"&&Ze.level%2==0&&(de>0?Ze.to>he.ch:Ze.from<he.ch))return sl(ae,he,de);var ot=function(Qr,Eo){return Xd(ae,Qr instanceof Rt?Qr.ch:Qr,Eo)},it,Nt=function(Qr){return ie.options.lineWrapping?(it=it||xl(ie,ae),Lu(ie,ae,it,Qr)):{begin:0,end:ae.text.length}},Nn=Nt(he.sticky=="before"?ot(he,-1):he.ch);if(ie.doc.direction=="rtl"||Ze.level==1){var Kt=Ze.level==1==de<0,ii=ot(he,Kt?1:-1);if(ii!=null&&(Kt?ii<=Ze.to&&ii<=Nn.end:ii>=Ze.from&&ii>=Nn.begin)){var qn=Kt?"before":"after";return new Rt(he.line,ii,qn)}}var ir=function(Qr,Eo,mo){for(var jo=function($s,Ul){return Ul?new Rt(he.line,ot($s,1),"before"):new Rt(he.line,$s,"after")};Qr>=0&&Qr<pe.length;Qr+=Eo){var ua=pe[Qr],co=Eo>0==(ua.level!=1),Ma=co?mo.begin:ot(mo.end,-1);if(ua.from<=Ma&&Ma<ua.to||(Ma=co?ua.from:ot(ua.to,-1),mo.begin<=Ma&&Ma<mo.end))return jo(Ma,co)}},sr=ir(Fe+de,de,Nn);if(sr)return sr;var Ar=de>0?Nn.end:ot(Nn.begin,-1);return Ar!=null&&!(de>0&&Ar==ae.text.length)&&(sr=ir(de>0?0:pe.length-1,de,Nt(Ar)),sr)?sr:null}var Dl={selectAll:$a,singleSelection:function(ie){return ie.setSelection(ie.getCursor("anchor"),ie.getCursor("head"),bt)},killLine:function(ie){return Hl(ie,function(ae){if(ae.empty()){var he=an(ie.doc,ae.head.line).text.length;return ae.head.ch==he&&ae.head.line<ie.lastLine()?{from:ae.head,to:Rt(ae.head.line+1,0)}:{from:ae.head,to:Rt(ae.head.line,he)}}else return{from:ae.from(),to:ae.to()}})},deleteLine:function(ie){return Hl(ie,function(ae){return{from:Rt(ae.from().line,0),to:Fi(ie.doc,Rt(ae.to().line+1,0))}})},delLineLeft:function(ie){return Hl(ie,function(ae){return{from:Rt(ae.from().line,0),to:ae.from()}})},delWrappedLineLeft:function(ie){return Hl(ie,function(ae){var he=ie.charCoords(ae.head,"div").top+5,de=ie.coordsChar({left:0,top:he},"div");return{from:de,to:ae.from()}})},delWrappedLineRight:function(ie){return Hl(ie,function(ae){var he=ie.charCoords(ae.head,"div").top+5,de=ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:he},"div");return{from:ae.from(),to:de}})},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(Rt(ie.firstLine(),0))},goDocEnd:function(ie){return ie.extendSelection(Rt(ie.lastLine()))},goLineStart:function(ie){return ie.extendSelectionsBy(function(ae){return Du(ie,ae.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(ie){return ie.extendSelectionsBy(function(ae){return hh(ie,ae.head)},{origin:"+move",bias:1})},goLineEnd:function(ie){return ie.extendSelectionsBy(function(ae){return Bu(ie,ae.head.line)},{origin:"+move",bias:-1})},goLineRight:function(ie){return ie.extendSelectionsBy(function(ae){var he=ie.cursorCoords(ae.head,"div").top+5;return ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:he},"div")},un)},goLineLeft:function(ie){return ie.extendSelectionsBy(function(ae){var he=ie.cursorCoords(ae.head,"div").top+5;return ie.coordsChar({left:0,top:he},"div")},un)},goLineLeftSmart:function(ie){return ie.extendSelectionsBy(function(ae){var he=ie.cursorCoords(ae.head,"div").top+5,de=ie.coordsChar({left:0,top:he},"div");return de.ch<ie.getLine(de.line).search(/\S/)?hh(ie,ae.head):de},un)},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 ae=[],he=ie.listSelections(),de=ie.options.tabSize,pe=0;pe<he.length;pe++){var Fe=he[pe].from(),Ze=ht(ie.getLine(Fe.line),Fe.ch,de);ae.push(Yn(de-Ze%de))}ie.replaceSelections(ae)},defaultTab:function(ie){ie.somethingSelected()?ie.indentSelection("add"):ie.execCommand("insertTab")},transposeChars:function(ie){return gn(ie,function(){for(var ae=ie.listSelections(),he=[],de=0;de<ae.length;de++)if(ae[de].empty()){var pe=ae[de].head,Fe=an(ie.doc,pe.line).text;if(Fe){if(pe.ch==Fe.length&&(pe=new Rt(pe.line,pe.ch-1)),pe.ch>0)pe=new Rt(pe.line,pe.ch+1),ie.replaceRange(Fe.charAt(pe.ch-1)+Fe.charAt(pe.ch-2),Rt(pe.line,pe.ch-2),pe,"+transpose");else if(pe.line>ie.doc.first){var Ze=an(ie.doc,pe.line-1).text;Ze&&(pe=new Rt(pe.line,1),ie.replaceRange(Fe.charAt(0)+ie.doc.lineSeparator()+Ze.charAt(Ze.length-1),Rt(pe.line-1,Ze.length-1),pe,"+transpose"))}}he.push(new Fr(pe,pe))}ie.setSelections(he)})},newlineAndIndent:function(ie){return gn(ie,function(){for(var ae=ie.listSelections(),he=ae.length-1;he>=0;he--)ie.replaceRange(ie.doc.lineSeparator(),ae[he].anchor,ae[he].head,"+input");ae=ie.listSelections();for(var de=0;de<ae.length;de++)ie.indentLine(ae[de].from().line,null,!0);yo(ie)})},openLine:function(ie){return ie.replaceSelection(`
`,"start")},toggleOverwrite:function(ie){return ie.toggleOverwrite()}};function Du(ie,ae){var he=an(ie.doc,ae),de=$n(he);return de!=he&&(ae=Pt(de)),Va(!0,ie,de,ae,1)}function Bu(ie,ae){var he=an(ie.doc,ae),de=Ii(he);return de!=he&&(ae=Pt(de)),Va(!0,ie,he,ae,-1)}function hh(ie,ae){var he=Du(ie,ae.line),de=an(ie.doc,he.line),pe=Re(de,ie.doc.direction);if(!pe||pe[0].level==0){var Fe=Math.max(he.ch,de.text.search(/\S/)),Ze=ae.line==he.line&&ae.ch<=Fe&&ae.ch;return Rt(he.line,Ze?0:Fe,he.sticky)}return he}function ed(ie,ae,he){if(typeof ae=="string"&&(ae=Dl[ae],!ae))return!1;ie.display.input.ensurePolled();var de=ie.display.shift,pe=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),he&&(ie.display.shift=!1),pe=ae(ie)!=rn}finally{ie.display.shift=de,ie.state.suppressEdits=!1}return pe}function Jd(ie,ae,he){for(var de=0;de<ie.state.keyMaps.length;de++){var pe=Su(ae,ie.state.keyMaps[de],he,ie);if(pe)return pe}return ie.options.extraKeys&&Su(ae,ie.options.extraKeys,he,ie)||Su(ae,ie.options.keyMap,he,ie)}var Qu=new je;function uc(ie,ae,he,de){var pe=ie.state.keySeq;if(pe){if(Ed(ae))return"handled";if(/\'$/.test(ae)?ie.state.keySeq=null:Qu.set(50,function(){ie.state.keySeq==pe&&(ie.state.keySeq=null,ie.display.input.reset())}),mf(ie,pe+" "+ae,he,de))return!0}return mf(ie,ae,he,de)}function mf(ie,ae,he,de){var pe=Jd(ie,ae,de);return pe=="multi"&&(ie.state.keySeq=ae),pe=="handled"&&Gi(ie,"keyHandled",ie,ae,he),(pe=="handled"||pe=="multi")&&(Zi(he),ci(ie)),!!pe}function vf(ie,ae){var he=dh(ae,!0);return he?ae.shiftKey&&!ie.state.keySeq?uc(ie,"Shift-"+he,ae,function(de){return ed(ie,de,!0)})||uc(ie,he,ae,function(de){if(typeof de=="string"?/^go[A-Z]/.test(de):de.motion)return ed(ie,de)}):uc(ie,he,ae,function(de){return ed(ie,de)}):!1}function fh(ie,ae,he){return uc(ie,"'"+he+"'",ae,function(de){return ed(ie,de,!0)})}var _u=null;function yf(ie){var ae=this;if(!(ie.target&&ie.target!=ae.display.input.getField())&&(ae.curOp.focus=$e(),!Hn(ae,ie))){Qe&&vt<11&&ie.keyCode==27&&(ie.returnValue=!1);var he=ie.keyCode;ae.display.shift=he==16||ie.shiftKey;var de=vf(ae,ie);qe&&(_u=de?he:null,!de&&he==88&&!cr&&(ce?ie.metaKey:ie.ctrlKey)&&ae.replaceSelection("",null,"cut")),xe&&!ce&&!de&&he==46&&ie.shiftKey&&!ie.ctrlKey&&document.execCommand&&document.execCommand("cut"),he==18&&!/\bCodeMirror-crosshair\b/.test(ae.display.lineDiv.className)&&Kf(ae)}}function Kf(ie){var ae=ie.display.lineDiv;zt(ae,"CodeMirror-crosshair");function he(de){(de.keyCode==18||!de.altKey)&&(Te(ae,"CodeMirror-crosshair"),sn(document,"keyup",he),sn(document,"mouseover",he))}st(document,"keyup",he),st(document,"mouseover",he)}function Sf(ie){ie.keyCode==16&&(this.doc.sel.shift=!1),Hn(this,ie)}function Ec(ie){var ae=this;if(!(ie.target&&ie.target!=ae.display.input.getField())&&!(Nl(ae.display,ie)||Hn(ae,ie)||ie.ctrlKey&&!ie.altKey||ce&&ie.metaKey)){var he=ie.keyCode,de=ie.charCode;if(qe&&he==_u){_u=null,Zi(ie);return}if(!(qe&&(!ie.which||ie.which<10)&&vf(ae,ie))){var pe=String.fromCharCode(de==null?he:de);pe!="\b"&&(fh(ae,ie,pe)||ae.display.input.onKeyPress(ie))}}}var wg=400,Vf=function(ie,ae,he){this.time=ie,this.pos=ae,this.button=he};Vf.prototype.compare=function(ie,ae,he){return this.time+wg>ie&&vn(ae,this.pos)==0&&he==this.button};var gh,Ad;function Gf(ie,ae){var he=+new Date;return Ad&&Ad.compare(he,ie,ae)?(gh=Ad=null,"triple"):gh&&gh.compare(he,ie,ae)?(Ad=new Vf(he,ie,ae),gh=null,"double"):(gh=new Vf(he,ie,ae),Ad=null,"single")}function Hc(ie){var ae=this,he=ae.display;if(!(Hn(ae,ie)||he.activeTouch&&he.input.supportsTouch())){if(he.input.ensurePolled(),he.shift=ie.shiftKey,Nl(he,ie)){Ne||(he.scroller.draggable=!1,setTimeout(function(){return he.scroller.draggable=!0},100));return}if(!la(ae,ie)){var de=wl(ae,ie),pe=jr(ie),Fe=de?Gf(de,pe):"single";window.focus(),pe==1&&ae.state.selectingText&&ae.state.selectingText(ie),!(de&&Yf(ae,pe,de,Fe,ie))&&(pe==1?de?xf(ae,de,Fe,ie):Vr(ie)==he.scroller&&Zi(ie):pe==2?(de&&Wa(ae.doc,de),setTimeout(function(){return he.input.focus()},20)):pe==3&&(ke?ae.display.input.onContextMenu(ie):lr(ae)))}}}function Yf(ie,ae,he,de,pe){var Fe="Click";return de=="double"?Fe="Double"+Fe:de=="triple"&&(Fe="Triple"+Fe),Fe=(ae==1?"Left":ae==2?"Middle":"Right")+Fe,uc(ie,Ud(Fe,pe),pe,function(Ze){if(typeof Ze=="string"&&(Ze=Dl[Ze]),!Ze)return!1;var ot=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),ot=Ze(ie,he)!=rn}finally{ie.state.suppressEdits=!1}return ot})}function Wh(ie,ae,he){var de=ie.getOption("configureMouse"),pe=de?de(ie,ae,he):{};if(pe.unit==null){var Fe=se?he.shiftKey&&he.metaKey:he.altKey;pe.unit=Fe?"rectangle":ae=="single"?"char":ae=="double"?"word":"line"}return(pe.extend==null||ie.doc.extend)&&(pe.extend=ie.doc.extend||he.shiftKey),pe.addNew==null&&(pe.addNew=ce?he.metaKey:he.ctrlKey),pe.moveOnDrag==null&&(pe.moveOnDrag=!(ce?he.altKey:he.ctrlKey)),pe}function xf(ie,ae,he,de){Qe?setTimeout(Bt(ki,ie),0):ie.curOp.focus=$e();var pe=Wh(ie,he,de),Fe=ie.doc.sel,Ze;ie.options.dragDrop&&li&&!ie.isReadOnly()&&he=="single"&&(Ze=Fe.contains(ae))>-1&&(vn((Ze=Fe.ranges[Ze]).from(),ae)<0||ae.xRel>0)&&(vn(Ze.to(),ae)>0||ae.xRel<0)?Zh(ie,de,ae,pe):up(ie,de,ae,pe)}function Zh(ie,ae,he,de){var pe=ie.display,Fe=!1,Ze=Jn(ie,function(Nt){Ne&&(pe.scroller.draggable=!1),ie.state.draggingText=!1,sn(pe.wrapper.ownerDocument,"mouseup",Ze),sn(pe.wrapper.ownerDocument,"mousemove",ot),sn(pe.scroller,"dragstart",it),sn(pe.scroller,"drop",Ze),Fe||(Zi(Nt),de.addNew||Wa(ie.doc,he,null,null,de.extend),Ne&&!gt||Qe&&vt==9?setTimeout(function(){pe.wrapper.ownerDocument.body.focus({preventScroll:!0}),pe.input.focus()},20):pe.input.focus())}),ot=function(Nt){Fe=Fe||Math.abs(ae.clientX-Nt.clientX)+Math.abs(ae.clientY-Nt.clientY)>=10},it=function(){return Fe=!0};Ne&&(pe.scroller.draggable=!0),ie.state.draggingText=Ze,Ze.copy=!de.moveOnDrag,pe.scroller.dragDrop&&pe.scroller.dragDrop(),st(pe.wrapper.ownerDocument,"mouseup",Ze),st(pe.wrapper.ownerDocument,"mousemove",ot),st(pe.scroller,"dragstart",it),st(pe.scroller,"drop",Ze),lr(ie),setTimeout(function(){return pe.input.focus()},20)}function Uf(ie,ae,he){if(he=="char")return new Fr(ae,ae);if(he=="word")return ie.findWordAt(ae);if(he=="line")return new Fr(Rt(ae.line,0),Fi(ie.doc,Rt(ae.line+1,0)));var de=he(ie,ae);return new Fr(de.from,de.to)}function up(ie,ae,he,de){var pe=ie.display,Fe=ie.doc;Zi(ae);var Ze,ot,it=Fe.sel,Nt=it.ranges;if(de.addNew&&!de.extend?(ot=Fe.sel.contains(he),ot>-1?Ze=Nt[ot]:Ze=new Fr(he,he)):(Ze=Fe.sel.primary(),ot=Fe.sel.primIndex),de.unit=="rectangle")de.addNew||(Ze=new Fr(he,he)),he=wl(ie,ae,!0,!0),ot=-1;else{var Nn=Uf(ie,he,de.unit);de.extend?Ze=Ll(Ze,Nn.anchor,Nn.head,de.extend):Ze=Nn}de.addNew?ot==-1?(ot=Nt.length,ss(Fe,Vo(ie,Nt.concat([Ze]),ot),{scroll:!1,origin:"*mouse"})):Nt.length>1&&Nt[ot].empty()&&de.unit=="char"&&!de.extend?(ss(Fe,Vo(ie,Nt.slice(0,ot).concat(Nt.slice(ot+1)),0),{scroll:!1,origin:"*mouse"}),it=Fe.sel):is(Fe,ot,Ze,Jt):(ot=0,ss(Fe,new Fo([Ze],0),Jt),it=Fe.sel);var Kt=he;function ii(mo){if(vn(Kt,mo)!=0)if(Kt=mo,de.unit=="rectangle"){for(var jo=[],ua=ie.options.tabSize,co=ht(an(Fe,he.line).text,he.ch,ua),Ma=ht(an(Fe,mo.line).text,mo.ch,ua),$s=Math.min(co,Ma),Ul=Math.max(co,Ma),fl=Math.min(he.line,mo.line),qu=Math.min(ie.lastLine(),Math.max(he.line,mo.line));fl<=qu;fl++){var Tu=an(Fe,fl).text,Zl=Kn(Tu,$s,ua);$s==Ul?jo.push(new Fr(Rt(fl,Zl),Rt(fl,Zl))):Tu.length>Zl&&jo.push(new Fr(Rt(fl,Zl),Rt(fl,Kn(Tu,Ul,ua))))}jo.length||jo.push(new Fr(he,he)),ss(Fe,Vo(ie,it.ranges.slice(0,ot).concat(jo),ot),{origin:"*mouse",scroll:!1}),ie.scrollIntoView(mo)}else{var cc=Ze,xu=Uf(ie,mo,de.unit),Kl=cc.anchor,ds;vn(xu.anchor,Kl)>0?(ds=xu.head,Kl=ei(cc.from(),xu.anchor)):(ds=xu.anchor,Kl=pi(cc.to(),xu.head));var Pl=it.ranges.slice(0);Pl[ot]=us(ie,new Fr(Fi(Fe,Kl),ds)),ss(Fe,Vo(ie,Pl,ot),Jt)}}var qn=pe.wrapper.getBoundingClientRect(),ir=0;function sr(mo){var jo=++ir,ua=wl(ie,mo,!0,de.unit=="rectangle");if(ua)if(vn(ua,Kt)!=0){ie.curOp.focus=$e(),ii(ua);var co=ti(pe,Fe);(ua.line>=co.to||ua.line<co.from)&&setTimeout(Jn(ie,function(){ir==jo&&sr(mo)}),150)}else{var Ma=mo.clientY<qn.top?-20:mo.clientY>qn.bottom?20:0;Ma&&setTimeout(Jn(ie,function(){ir==jo&&(pe.scroller.scrollTop+=Ma,sr(mo))}),50)}}function Ar(mo){ie.state.selectingText=!1,ir=1/0,mo&&(Zi(mo),pe.input.focus()),sn(pe.wrapper.ownerDocument,"mousemove",Qr),sn(pe.wrapper.ownerDocument,"mouseup",Eo),Fe.history.lastSelOrigin=null}var Qr=Jn(ie,function(mo){mo.buttons===0||!jr(mo)?Ar(mo):sr(mo)}),Eo=Jn(ie,Ar);ie.state.selectingText=Eo,st(pe.wrapper.ownerDocument,"mousemove",Qr),st(pe.wrapper.ownerDocument,"mouseup",Eo)}function us(ie,ae){var he=ae.anchor,de=ae.head,pe=an(ie.doc,he.line);if(vn(he,de)==0&&he.sticky==de.sticky)return ae;var Fe=Re(pe);if(!Fe)return ae;var Ze=me(Fe,he.ch,he.sticky),ot=Fe[Ze];if(ot.from!=he.ch&&ot.to!=he.ch)return ae;var it=Ze+(ot.from==he.ch==(ot.level!=1)?0:1);if(it==0||it==Fe.length)return ae;var Nt;if(de.line!=he.line)Nt=(de.line-he.line)*(ie.doc.direction=="ltr"?1:-1)>0;else{var Nn=me(Fe,de.ch,de.sticky),Kt=Nn-Ze||(de.ch-he.ch)*(ot.level==1?-1:1);Nn==it-1||Nn==it?Nt=Kt<0:Nt=Kt>0}var ii=Fe[it+(Nt?-1:0)],qn=Nt==(ii.level==1),ir=qn?ii.from:ii.to,sr=qn?"after":"before";return he.ch==ir&&he.sticky==sr?ae:new Fr(new Rt(he.line,ir,sr),de)}function Go(ie,ae,he,de){var pe,Fe;if(ae.touches)pe=ae.touches[0].clientX,Fe=ae.touches[0].clientY;else try{pe=ae.clientX,Fe=ae.clientY}catch(ii){return!1}if(pe>=Math.floor(ie.display.gutters.getBoundingClientRect().right))return!1;de&&Zi(ae);var Ze=ie.display,ot=Ze.lineDiv.getBoundingClientRect();if(Fe>ot.bottom||!Pi(ie,he))return rr(ae);Fe-=ot.top-Ze.viewOffset;for(var it=0;it<ie.display.gutterSpecs.length;++it){var Nt=Ze.gutters.childNodes[it];if(Nt&&Nt.getBoundingClientRect().right>=pe){var Nn=Sn(ie.doc,Fe),Kt=ie.display.gutterSpecs[it];return ln(ie,he,ie,Nn,Kt.className,ae),rr(ae)}}}function la(ie,ae){return Go(ie,ae,"gutterClick",!0)}function rs(ie,ae){Nl(ie.display,ae)||ll(ie,ae)||Hn(ie,ae,"contextmenu")||ke||ie.display.input.onContextMenu(ae)}function ll(ie,ae){return Pi(ie,"gutterContextMenu")?Go(ie,ae,"gutterContextMenu",!1):!1}function md(ie){ie.display.wrapper.className=ie.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+ie.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ss(ie)}var tu={toString:function(){return"CodeMirror.Init"}},td={},Ac={};function ph(ie){var ae=ie.optionHandlers;function he(de,pe,Fe,Ze){ie.defaults[de]=pe,Fe&&(ae[de]=Ze?function(ot,it,Nt){Nt!=tu&&Fe(ot,it,Nt)}:Fe)}ie.defineOption=he,ie.Init=tu,he("value","",function(de,pe){return de.setValue(pe)},!0),he("mode",null,function(de,pe){de.doc.modeOption=pe,Po(de)},!0),he("indentUnit",2,Po,!0),he("indentWithTabs",!1),he("smartIndent",!0),he("tabSize",4,function(de){To(de),Ss(de),ws(de)},!0),he("lineSeparator",null,function(de,pe){if(de.doc.lineSep=pe,!!pe){var Fe=[],Ze=de.doc.first;de.doc.iter(function(it){for(var Nt=0;;){var Nn=it.text.indexOf(pe,Nt);if(Nn==-1)break;Nt=Nn+pe.length,Fe.push(Rt(Ze,Nn))}Ze++});for(var ot=Fe.length-1;ot>=0;ot--)sc(de.doc,pe,Fe[ot],Rt(Fe[ot].line,Fe[ot].ch+pe.length))}}),he("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(de,pe,Fe){de.state.specialChars=new RegExp(pe.source+(pe.test(" ")?"":"| "),"g"),Fe!=tu&&de.refresh()}),he("specialCharPlaceholder",ca,function(de){return de.refresh()},!0),he("electricChars",!0),he("inputStyle",ne?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),he("spellcheck",!1,function(de,pe){return de.getInputField().spellcheck=pe},!0),he("autocorrect",!1,function(de,pe){return de.getInputField().autocorrect=pe},!0),he("autocapitalize",!1,function(de,pe){return de.getInputField().autocapitalize=pe},!0),he("rtlMoveVisually",!ge),he("wholeLineUpdateBefore",!0),he("theme","default",function(de){md(de),Rr(de)},!0),he("keyMap","default",function(de,pe,Fe){var Ze=jc(pe),ot=Fe!=tu&&jc(Fe);ot&&ot.detach&&ot.detach(de,Ze),Ze.attach&&Ze.attach(de,ot||null)}),he("extraKeys",null),he("configureMouse",null),he("lineWrapping",!1,Lc,!0),he("gutters",[],function(de,pe){de.display.gutterSpecs=to(pe,de.options.lineNumbers),Rr(de)},!0),he("fixedGutter",!0,function(de,pe){de.display.gutters.style.left=pe?Ic(de.display)+"px":"0",de.refresh()},!0),he("coverGutterNextToScrollbar",!1,function(de){return Ca(de)},!0),he("scrollbarStyle","native",function(de){gs(de),Ca(de),de.display.scrollbars.setScrollTop(de.doc.scrollTop),de.display.scrollbars.setScrollLeft(de.doc.scrollLeft)},!0),he("lineNumbers",!1,function(de,pe){de.display.gutterSpecs=to(de.options.gutters,pe),Rr(de)},!0),he("firstLineNumber",1,Rr,!0),he("lineNumberFormatter",function(de){return de},Rr,!0),he("showCursorWhenSelecting",!1,nn,!0),he("resetSelectionOnContextMenu",!0),he("lineWiseCopyCut",!0),he("pasteLinesPerSelection",!0),he("selectionsMayTouch",!1),he("readOnly",!1,function(de,pe){pe=="nocursor"&&(qi(de),de.display.input.blur()),de.display.input.readOnlyChanged(pe)}),he("screenReaderLabel",null,function(de,pe){pe=pe===""?null:pe,de.display.input.screenReaderLabelChanged(pe)}),he("disableInput",!1,function(de,pe){pe||de.display.input.reset()},!0),he("dragDrop",!0,nd),he("allowDropFileTypes",null),he("cursorBlinkRate",530),he("cursorScrollMargin",0),he("cursorHeight",1,nn,!0),he("singleCursorHeightPerLine",!0,nn,!0),he("workTime",100),he("workDelay",100),he("flattenSpans",!0,To,!0),he("addModeClass",!1,To,!0),he("pollInterval",100),he("undoDepth",200,function(de,pe){return de.doc.history.undoDepth=pe}),he("historyEventDelay",1250),he("viewportMargin",10,function(de){return de.refresh()},!0),he("maxHighlightLength",1e4,To,!0),he("moveInputWithCursor",!0,function(de,pe){pe||de.display.input.resetPosition()}),he("tabindex",null,function(de,pe){return de.display.input.getField().tabIndex=pe||""}),he("autofocus",null),he("direction","ltr",function(de,pe){return de.doc.setDirection(pe)},!0),he("phrases",null)}function nd(ie,ae,he){var de=he&&he!=tu;if(!ae!=!de){var pe=ie.display.dragFunctions,Fe=ae?st:sn;Fe(ie.display.scroller,"dragstart",pe.start),Fe(ie.display.scroller,"dragenter",pe.enter),Fe(ie.display.scroller,"dragover",pe.over),Fe(ie.display.scroller,"dragleave",pe.leave),Fe(ie.display.scroller,"drop",pe.drop)}}function Lc(ie){ie.options.lineWrapping?(zt(ie.display.wrapper,"CodeMirror-wrap"),ie.display.sizer.style.minWidth="",ie.display.sizerWidth=null):(Te(ie.display.wrapper,"CodeMirror-wrap"),eo(ie)),Io(ie),ws(ie),Ss(ie),setTimeout(function(){return Ca(ie)},100)}function cs(ie,ae){var he=this;if(!(this instanceof cs))return new cs(ie,ae);this.options=ae=ae?Qt(ae):{},Qt(td,ae,!1);var de=ae.value;typeof de=="string"?de=new Fl(de,ae.mode,null,ae.lineSeparator,ae.direction):ae.mode&&(de.modeOption=ae.mode),this.doc=de;var pe=new cs.inputStyles[ae.inputStyle](this),Fe=this.display=new lo(ie,de,pe,ae);Fe.wrapper.CodeMirror=this,md(this),ae.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),gs(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 je,keySeq:null,specialChars:null},ae.autofocus&&!ne&&Fe.input.focus(),Qe&&vt<11&&setTimeout(function(){return he.display.input.reset(!0)},20),wf(this),Fu(),Oa(this),this.curOp.forceUpdate=!0,Ro(this,de),ae.autofocus&&!ne||this.hasFocus()?setTimeout(function(){he.hasFocus()&&!he.state.focused&&Ai(he)},20):qi(this);for(var Ze in Ac)Ac.hasOwnProperty(Ze)&&Ac[Ze](this,ae[Ze],tu);Wr(this),ae.finishInit&&ae.finishInit(this);for(var ot=0;ot<Kh.length;++ot)Kh[ot](this);Rs(this),Ne&&ae.lineWrapping&&getComputedStyle(Fe.lineDiv).textRendering=="optimizelegibility"&&(Fe.lineDiv.style.textRendering="auto")}cs.defaults=td,cs.optionHandlers=Ac;function wf(ie){var ae=ie.display;st(ae.scroller,"mousedown",Jn(ie,Hc)),Qe&&vt<11?st(ae.scroller,"dblclick",Jn(ie,function(it){if(!Hn(ie,it)){var Nt=wl(ie,it);if(!(!Nt||la(ie,it)||Nl(ie.display,it))){Zi(it);var Nn=ie.findWordAt(Nt);Wa(ie.doc,Nn.anchor,Nn.head)}}})):st(ae.scroller,"dblclick",function(it){return Hn(ie,it)||Zi(it)}),st(ae.scroller,"contextmenu",function(it){return rs(ie,it)}),st(ae.input.getField(),"contextmenu",function(it){ae.scroller.contains(it.target)||rs(ie,it)});var he,de={end:0};function pe(){ae.activeTouch&&(he=setTimeout(function(){return ae.activeTouch=null},1e3),de=ae.activeTouch,de.end=+new Date)}function Fe(it){if(it.touches.length!=1)return!1;var Nt=it.touches[0];return Nt.radiusX<=1&&Nt.radiusY<=1}function Ze(it,Nt){if(Nt.left==null)return!0;var Nn=Nt.left-it.left,Kt=Nt.top-it.top;return Nn*Nn+Kt*Kt>20*20}st(ae.scroller,"touchstart",function(it){if(!Hn(ie,it)&&!Fe(it)&&!la(ie,it)){ae.input.ensurePolled(),clearTimeout(he);var Nt=+new Date;ae.activeTouch={start:Nt,moved:!1,prev:Nt-de.end<=300?de:null},it.touches.length==1&&(ae.activeTouch.left=it.touches[0].pageX,ae.activeTouch.top=it.touches[0].pageY)}}),st(ae.scroller,"touchmove",function(){ae.activeTouch&&(ae.activeTouch.moved=!0)}),st(ae.scroller,"touchend",function(it){var Nt=ae.activeTouch;if(Nt&&!Nl(ae,it)&&Nt.left!=null&&!Nt.moved&&new Date-Nt.start<300){var Nn=ie.coordsChar(ae.activeTouch,"page"),Kt;!Nt.prev||Ze(Nt,Nt.prev)?Kt=new Fr(Nn,Nn):!Nt.prev.prev||Ze(Nt,Nt.prev.prev)?Kt=ie.findWordAt(Nn):Kt=new Fr(Rt(Nn.line,0),Fi(ie.doc,Rt(Nn.line+1,0))),ie.setSelection(Kt.anchor,Kt.head),ie.focus(),Zi(it)}pe()}),st(ae.scroller,"touchcancel",pe),st(ae.scroller,"scroll",function(){ae.scroller.clientHeight&&(Sa(ie,ae.scroller.scrollTop),Ha(ie,ae.scroller.scrollLeft,!0),ln(ie,"scroll",ie))}),st(ae.scroller,"mousewheel",function(it){return Mo(ie,it)}),st(ae.scroller,"DOMMouseScroll",function(it){return Mo(ie,it)}),st(ae.wrapper,"scroll",function(){return ae.wrapper.scrollTop=ae.wrapper.scrollLeft=0}),ae.dragFunctions={enter:function(it){Hn(ie,it)||Kr(it)},over:function(it){Hn(ie,it)||(Kd(ie,it),Kr(it))},start:function(it){return Zd(ie,it)},drop:Jn(ie,Wd),leave:function(it){Hn(ie,it)||pf(ie)}};var ot=ae.input.getField();st(ot,"keyup",function(it){return Sf.call(ie,it)}),st(ot,"keydown",Jn(ie,yf)),st(ot,"keypress",Jn(ie,Ec)),st(ot,"focus",function(it){return Ai(ie,it)}),st(ot,"blur",function(it){return qi(ie,it)})}var Kh=[];cs.defineInitHook=function(ie){return Kh.push(ie)};function Yl(ie,ae,he,de){var pe=ie.doc,Fe;he==null&&(he="add"),he=="smart"&&(pe.mode.indent?Fe=Pr(ie,ae).state:he="prev");var Ze=ie.options.tabSize,ot=an(pe,ae),it=ht(ot.text,null,Ze);ot.stateAfter&&(ot.stateAfter=null);var Nt=ot.text.match(/^\s*/)[0],Nn;if(!de&&!/\S/.test(ot.text))Nn=0,he="not";else if(he=="smart"&&(Nn=pe.mode.indent(Fe,ot.text.slice(Nt.length),ot.text),Nn==rn||Nn>150)){if(!de)return;he="prev"}he=="prev"?ae>pe.first?Nn=ht(an(pe,ae-1).text,null,Ze):Nn=0:he=="add"?Nn=it+ie.options.indentUnit:he=="subtract"?Nn=it-ie.options.indentUnit:typeof he=="number"&&(Nn=it+he),Nn=Math.max(0,Nn);var Kt="",ii=0;if(ie.options.indentWithTabs)for(var qn=Math.floor(Nn/Ze);qn;--qn)ii+=Ze,Kt+=" ";if(ii<Nn&&(Kt+=Yn(Nn-ii)),Kt!=Nt)return sc(pe,Kt,Rt(ae,0),Rt(ae,Nt.length),"+input"),ot.stateAfter=null,!0;for(var ir=0;ir<pe.sel.ranges.length;ir++){var sr=pe.sel.ranges[ir];if(sr.head.line==ae&&sr.head.ch<Nt.length){var Ar=Rt(ae,Nt.length);is(pe,ir,new Fr(Ar,Ar));break}}}var $u=null;function Vh(ie){$u=ie}function Xf(ie,ae,he,de,pe){var Fe=ie.doc;ie.display.shift=!1,de||(de=Fe.sel);var Ze=+new Date-200,ot=pe=="paste"||ie.state.pasteIncoming>Ze,it=zn(ae),Nt=null;if(ot&&de.ranges.length>1)if($u&&$u.text.join(`
`)==ae){if(de.ranges.length%$u.text.length==0){Nt=[];for(var Nn=0;Nn<$u.text.length;Nn++)Nt.push(Fe.splitLines($u.text[Nn]))}}else it.length==de.ranges.length&&ie.options.pasteLinesPerSelection&&(Nt=Vn(it,function(Qr){return[Qr]}));for(var Kt=ie.curOp.updateInput,ii=de.ranges.length-1;ii>=0;ii--){var qn=de.ranges[ii],ir=qn.from(),sr=qn.to();qn.empty()&&(he&&he>0?ir=Rt(ir.line,ir.ch-he):ie.state.overwrite&&!ot?sr=Rt(sr.line,Math.min(an(Fe,sr.line).text.length,sr.ch+St(it).length)):ot&&$u&&$u.lineWise&&$u.text.join(`
`)==it.join(`
`)&&(ir=sr=Rt(ir.line,0)));var Ar={from:ir,to:sr,text:Nt?Nt[ii%Nt.length]:it,origin:pe||(ot?"paste":ie.state.cutIncoming>Ze?"cut":"+input")};Ps(ie.doc,Ar),Gi(ie,"inputRead",ie,Ar)}ae&&!ot&&dp(ie,ae),yo(ie),ie.curOp.updateInput<2&&(ie.curOp.updateInput=Kt),ie.curOp.typing=!0,ie.state.pasteIncoming=ie.state.cutIncoming=-1}function cp(ie,ae){var he=ie.clipboardData&&ie.clipboardData.getData("Text");if(he)return ie.preventDefault(),!ae.isReadOnly()&&!ae.options.disableInput&&gn(ae,function(){return Xf(ae,he,0,null,"paste")}),!0}function dp(ie,ae){if(!(!ie.options.electricChars||!ie.options.smartIndent))for(var he=ie.doc.sel,de=he.ranges.length-1;de>=0;de--){var pe=he.ranges[de];if(!(pe.head.ch>100||de&&he.ranges[de-1].head.line==pe.head.line)){var Fe=ie.getModeAt(pe.head),Ze=!1;if(Fe.electricChars){for(var ot=0;ot<Fe.electricChars.length;ot++)if(ae.indexOf(Fe.electricChars.charAt(ot))>-1){Ze=Yl(ie,pe.head.line,"smart");break}}else Fe.electricInput&&Fe.electricInput.test(an(ie.doc,pe.head.line).text.slice(0,pe.head.ch))&&(Ze=Yl(ie,pe.head.line,"smart"));Ze&&Gi(ie,"electricInput",ie,pe.head.line)}}}function hp(ie){for(var ae=[],he=[],de=0;de<ie.doc.sel.ranges.length;de++){var pe=ie.doc.sel.ranges[de].head.line,Fe={anchor:Rt(pe,0),head:Rt(pe+1,0)};he.push(Fe),ae.push(ie.getRange(Fe.anchor,Fe.head))}return{text:ae,ranges:he}}function fp(ie,ae,he,de){ie.setAttribute("autocorrect",he?"":"off"),ie.setAttribute("autocapitalize",de?"":"off"),ie.setAttribute("spellcheck",!!ae)}function gp(){var ie=Xe("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),ae=Xe("div",[ie],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ne?ie.style.width="1000px":ie.setAttribute("wrap","off"),Me&&(ie.style.border="1px solid black"),fp(ie),ae}function mh(ie){var ae=ie.optionHandlers,he=ie.helpers={};ie.prototype={constructor:ie,focus:function(){window.focus(),this.display.input.focus()},setOption:function(de,pe){var Fe=this.options,Ze=Fe[de];Fe[de]==pe&&de!="mode"||(Fe[de]=pe,ae.hasOwnProperty(de)&&Jn(this,ae[de])(this,pe,Ze),ln(this,"optionChange",this,de))},getOption:function(de){return this.options[de]},getDoc:function(){return this.doc},addKeyMap:function(de,pe){this.state.keyMaps[pe?"push":"unshift"](jc(de))},removeKeyMap:function(de){for(var pe=this.state.keyMaps,Fe=0;Fe<pe.length;++Fe)if(pe[Fe]==de||pe[Fe].name==de)return pe.splice(Fe,1),!0},addOverlay:Un(function(de,pe){var Fe=de.token?de:ie.getMode(this.options,de);if(Fe.startState)throw new Error("Overlays may not be stateful.");Cn(this.state.overlays,{mode:Fe,modeSpec:de,opaque:pe&&pe.opaque,priority:pe&&pe.priority||0},function(Ze){return Ze.priority}),this.state.modeGen++,ws(this)}),removeOverlay:Un(function(de){for(var pe=this.state.overlays,Fe=0;Fe<pe.length;++Fe){var Ze=pe[Fe].modeSpec;if(Ze==de||typeof de=="string"&&Ze.name==de){pe.splice(Fe,1),this.state.modeGen++,ws(this);return}}}),indentLine:Un(function(de,pe,Fe){typeof pe!="string"&&typeof pe!="number"&&(pe==null?pe=this.options.smartIndent?"smart":"prev":pe=pe?"add":"subtract"),Qn(this.doc,de)&&Yl(this,de,pe,Fe)}),indentSelection:Un(function(de){for(var pe=this.doc.sel.ranges,Fe=-1,Ze=0;Ze<pe.length;Ze++){var ot=pe[Ze];if(ot.empty())ot.head.line>Fe&&(Yl(this,ot.head.line,de,!0),Fe=ot.head.line,Ze==this.doc.sel.primIndex&&yo(this));else{var it=ot.from(),Nt=ot.to(),Nn=Math.max(Fe,it.line);Fe=Math.min(this.lastLine(),Nt.line-(Nt.ch?0:1))+1;for(var Kt=Nn;Kt<Fe;++Kt)Yl(this,Kt,de);var ii=this.doc.sel.ranges;it.ch==0&&pe.length==ii.length&&ii[Ze].from().ch>0&&is(this.doc,Ze,new Fr(it,ii[Ze].to()),bt)}}}),getTokenAt:function(de,pe){return Mr(this,de,pe)},getLineTokens:function(de,pe){return Mr(this,Rt(de),pe,!0)},getTokenTypeAt:function(de){de=Fi(this.doc,de);var pe=Dr(this,an(this.doc,de.line)),Fe=0,Ze=(pe.length-1)/2,ot=de.ch,it;if(ot==0)it=pe[2];else for(;;){var Nt=Fe+Ze>>1;if((Nt?pe[Nt*2-1]:0)>=ot)Ze=Nt;else if(pe[Nt*2+1]<ot)Fe=Nt+1;else{it=pe[Nt*2+2];break}}var Nn=it?it.indexOf("overlay "):-1;return Nn<0?it:Nn==0?null:it.slice(0,Nn-1)},getModeAt:function(de){var pe=this.doc.mode;return pe.innerMode?ie.innerMode(pe,this.getTokenAt(de).state).mode:pe},getHelper:function(de,pe){return this.getHelpers(de,pe)[0]},getHelpers:function(de,pe){var Fe=[];if(!he.hasOwnProperty(pe))return Fe;var Ze=he[pe],ot=this.getModeAt(de);if(typeof ot[pe]=="string")Ze[ot[pe]]&&Fe.push(Ze[ot[pe]]);else if(ot[pe])for(var it=0;it<ot[pe].length;it++){var Nt=Ze[ot[pe][it]];Nt&&Fe.push(Nt)}else ot.helperType&&Ze[ot.helperType]?Fe.push(Ze[ot.helperType]):Ze[ot.name]&&Fe.push(Ze[ot.name]);for(var Nn=0;Nn<Ze._global.length;Nn++){var Kt=Ze._global[Nn];Kt.pred(ot,this)&&At(Fe,Kt.val)==-1&&Fe.push(Kt.val)}return Fe},getStateAfter:function(de,pe){var Fe=this.doc;return de=yi(Fe,de==null?Fe.first+Fe.size-1:de),Pr(this,de+1,pe).state},cursorCoords:function(de,pe){var Fe,Ze=this.doc.sel.primary();return de==null?Fe=Ze.head:typeof de=="object"?Fe=Fi(this.doc,de):Fe=de?Ze.from():Ze.to(),ka(this,Fe,pe||"page")},charCoords:function(de,pe){return Ts(this,Fi(this.doc,de),pe||"page")},coordsChar:function(de,pe){return de=Ks(this,de,pe||"page"),El(this,de.left,de.top)},lineAtHeight:function(de,pe){return de=Ks(this,{top:de,left:0},pe||"page").top,Sn(this.doc,de+this.display.viewOffset)},heightAtLine:function(de,pe,Fe){var Ze=!1,ot;if(typeof de=="number"){var it=this.doc.first+this.doc.size-1;de<this.doc.first?de=this.doc.first:de>it&&(de=it,Ze=!0),ot=an(this.doc,de)}else ot=de;return xs(this,ot,{top:0,left:0},pe||"page",Fe||Ze).top+(Ze?this.doc.height-Ur(ot):0)},defaultTextHeight:function(){return $l(this.display)},defaultCharWidth:function(){return jl(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(de,pe,Fe,Ze,ot){var it=this.display;de=ka(this,Fi(this.doc,de));var Nt=de.bottom,Nn=de.left;if(pe.style.position="absolute",pe.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(pe),it.sizer.appendChild(pe),Ze=="over")Nt=de.top;else if(Ze=="above"||Ze=="near"){var Kt=Math.max(it.wrapper.clientHeight,this.doc.height),ii=Math.max(it.sizer.clientWidth,it.lineSpace.clientWidth);(Ze=="above"||de.bottom+pe.offsetHeight>Kt)&&de.top>pe.offsetHeight?Nt=de.top-pe.offsetHeight:de.bottom+pe.offsetHeight<=Kt&&(Nt=de.bottom),Nn+pe.offsetWidth>ii&&(Nn=ii-pe.offsetWidth)}pe.style.top=Nt+"px",pe.style.left=pe.style.right="",ot=="right"?(Nn=it.sizer.clientWidth-pe.offsetWidth,pe.style.right="0px"):(ot=="left"?Nn=0:ot=="middle"&&(Nn=(it.sizer.clientWidth-pe.offsetWidth)/2),pe.style.left=Nn+"px"),Fe&&fo(this,{left:Nn,top:Nt,right:Nn+pe.offsetWidth,bottom:Nt+pe.offsetHeight})},triggerOnKeyDown:Un(yf),triggerOnKeyPress:Un(Ec),triggerOnKeyUp:Sf,triggerOnMouseDown:Un(Hc),execCommand:function(de){if(Dl.hasOwnProperty(de))return Dl[de].call(null,this)},triggerElectric:Un(function(de){dp(this,de)}),findPosH:function(de,pe,Fe,Ze){var ot=1;pe<0&&(ot=-1,pe=-pe);for(var it=Fi(this.doc,de),Nt=0;Nt<pe&&(it=Jf(this.doc,it,ot,Fe,Ze),!it.hitSide);++Nt);return it},moveH:Un(function(de,pe){var Fe=this;this.extendSelectionsBy(function(Ze){return Fe.display.shift||Fe.doc.extend||Ze.empty()?Jf(Fe.doc,Ze.head,de,pe,Fe.options.rtlMoveVisually):de<0?Ze.from():Ze.to()},un)}),deleteH:Un(function(de,pe){var Fe=this.doc.sel,Ze=this.doc;Fe.somethingSelected()?Ze.replaceSelection("",null,"+delete"):Hl(this,function(ot){var it=Jf(Ze,ot.head,de,pe,!1);return de<0?{from:it,to:ot.head}:{from:ot.head,to:it}})}),findPosV:function(de,pe,Fe,Ze){var ot=1,it=Ze;pe<0&&(ot=-1,pe=-pe);for(var Nt=Fi(this.doc,de),Nn=0;Nn<pe;++Nn){var Kt=ka(this,Nt,"div");if(it==null?it=Kt.left:Kt.left=it,Nt=vh(this,Kt,ot,Fe),Nt.hitSide)break}return Nt},moveV:Un(function(de,pe){var Fe=this,Ze=this.doc,ot=[],it=!this.display.shift&&!Ze.extend&&Ze.sel.somethingSelected();if(Ze.extendSelectionsBy(function(Nn){if(it)return de<0?Nn.from():Nn.to();var Kt=ka(Fe,Nn.head,"div");Nn.goalColumn!=null&&(Kt.left=Nn.goalColumn),ot.push(Kt.left);var ii=vh(Fe,Kt,de,pe);return pe=="page"&&Nn==Ze.sel.primary()&&vo(Fe,Ts(Fe,ii,"div").top-Kt.top),ii},un),ot.length)for(var Nt=0;Nt<Ze.sel.ranges.length;Nt++)Ze.sel.ranges[Nt].goalColumn=ot[Nt]}),findWordAt:function(de){var pe=this.doc,Fe=an(pe,de.line).text,Ze=de.ch,ot=de.ch;if(Fe){var it=this.getHelper(de,"wordChars");(de.sticky=="before"||ot==Fe.length)&&Ze?--Ze:++ot;for(var Nt=Fe.charAt(Ze),Nn=ct(Nt,it)?function(Kt){return ct(Kt,it)}:/\s/.test(Nt)?function(Kt){return/\s/.test(Kt)}:function(Kt){return!/\s/.test(Kt)&&!ct(Kt)};Ze>0&&Nn(Fe.charAt(Ze-1));)--Ze;for(;ot<Fe.length&&Nn(Fe.charAt(ot));)++ot}return new Fr(Rt(de.line,Ze),Rt(de.line,ot))},toggleOverwrite:function(de){de!=null&&de==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?zt(this.display.cursorDiv,"CodeMirror-overwrite"):Te(this.display.cursorDiv,"CodeMirror-overwrite"),ln(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==$e()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Un(function(de,pe){po(this,de,pe)}),getScrollInfo:function(){var de=this.display.scroller;return{left:de.scrollLeft,top:de.scrollTop,height:de.scrollHeight-rl(this)-this.display.barHeight,width:de.scrollWidth-rl(this)-this.display.barWidth,clientHeight:oc(this),clientWidth:Sl(this)}},scrollIntoView:Un(function(de,pe){de==null?(de={from:this.doc.sel.primary().head,to:null},pe==null&&(pe=this.options.cursorScrollMargin)):typeof de=="number"?de={from:Rt(de,0),to:null}:de.from==null&&(de={from:de,to:null}),de.to||(de.to=de.from),de.margin=pe||0,de.from.line!=null?ur(this,de):ea(this,de.from,de.to,de.margin)}),setSize:Un(function(de,pe){var Fe=this,Ze=function(it){return typeof it=="number"||/^\d+$/.test(String(it))?it+"px":it};de!=null&&(this.display.wrapper.style.width=Ze(de)),pe!=null&&(this.display.wrapper.style.height=Ze(pe)),this.options.lineWrapping&&Cs(this);var ot=this.display.viewFrom;this.doc.iter(ot,this.display.viewTo,function(it){if(it.widgets){for(var Nt=0;Nt<it.widgets.length;Nt++)if(it.widgets[Nt].noHScroll){ya(Fe,ot,"widget");break}}++ot}),this.curOp.forceUpdate=!0,ln(this,"refresh",this)}),operation:function(de){return gn(this,de)},startOperation:function(){return Oa(this)},endOperation:function(){return Rs(this)},refresh:Un(function(){var de=this.display.cachedTextHeight;ws(this),this.curOp.forceUpdate=!0,Ss(this),po(this,this.doc.scrollLeft,this.doc.scrollTop),Or(this.display),(de==null||Math.abs(de-$l(this.display))>.5||this.options.lineWrapping)&&Io(this),ln(this,"refresh",this)}),swapDoc:Un(function(de){var pe=this.doc;return pe.cm=null,this.state.selectingText&&this.state.selectingText(),Ro(this,de),Ss(this),this.display.input.reset(),po(this,de.scrollLeft,de.scrollTop),this.curOp.forceScroll=!0,Gi(this,"swapDoc",this,pe),pe}),phrase:function(de){var pe=this.options.phrases;return pe&&Object.prototype.hasOwnProperty.call(pe,de)?pe[de]:de},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}},Ri(ie),ie.registerHelper=function(de,pe,Fe){he.hasOwnProperty(de)||(he[de]=ie[de]={_global:[]}),he[de][pe]=Fe},ie.registerGlobalHelper=function(de,pe,Fe,Ze){ie.registerHelper(de,pe,Ze),he[de]._global.push({pred:Fe,val:Ze})}}function Jf(ie,ae,he,de,pe){var Fe=ae,Ze=he,ot=an(ie,ae.line),it=pe&&ie.direction=="rtl"?-he:he;function Nt(){var Eo=ae.line+it;return Eo<ie.first||Eo>=ie.first+ie.size?!1:(ae=new Rt(Eo,ae.ch,ae.sticky),ot=an(ie,Eo))}function Nn(Eo){var mo;if(de=="codepoint"){var jo=ot.text.charCodeAt(ae.ch+(de>0?0:-1));isNaN(jo)?mo=null:mo=new Rt(ae.line,Math.max(0,Math.min(ot.text.length,ae.ch+he*(jo>=55296&&jo<56320?2:1))),-he)}else pe?mo=Es(ie.cm,ot,ae,he):mo=sl(ot,ae,he);if(mo==null)if(!Eo&&Nt())ae=Va(pe,ie.cm,ot,ae.line,it);else return!1;else ae=mo;return!0}if(de=="char"||de=="codepoint")Nn();else if(de=="column")Nn(!0);else if(de=="word"||de=="group")for(var Kt=null,ii=de=="group",qn=ie.cm&&ie.cm.getHelper(ae,"wordChars"),ir=!0;!(he<0&&!Nn(!ir));ir=!1){var sr=ot.text.charAt(ae.ch)||`
`,Ar=ct(sr,qn)?"w":ii&&sr==`
`?"n":!ii||/\s/.test(sr)?null:"p";if(ii&&!ir&&!Ar&&(Ar="s"),Kt&&Kt!=Ar){he<0&&(he=1,Nn(),ae.sticky="after");break}if(Ar&&(Kt=Ar),he>0&&!Nn(!ir))break}var Qr=Wu(ie,ae,Fe,Ze,!0);return bi(Fe,Qr)&&(Qr.hitSide=!0),Qr}function vh(ie,ae,he,de){var pe=ie.doc,Fe=ae.left,Ze;if(de=="page"){var ot=Math.min(ie.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),it=Math.max(ot-.5*$l(ie.display),3);Ze=(he>0?ae.bottom:ae.top)+he*it}else de=="line"&&(Ze=he>0?ae.bottom+3:ae.top-3);for(var Nt;Nt=El(ie,Fe,Ze),!!Nt.outside;){if(he<0?Ze<=0:Ze>=pe.height){Nt.hitSide=!0;break}Ze+=he*5}return Nt}var js=function(ie){this.cm=ie,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new je,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};js.prototype.init=function(ie){var ae=this,he=this,de=he.cm,pe=he.div=ie.lineDiv;fp(pe,de.options.spellcheck,de.options.autocorrect,de.options.autocapitalize);function Fe(ot){for(var it=ot.target;it;it=it.parentNode){if(it==pe)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(it.className))break}return!1}st(pe,"paste",function(ot){!Fe(ot)||Hn(de,ot)||cp(ot,de)||vt<=11&&setTimeout(Jn(de,function(){return ae.updateFromDOM()}),20)}),st(pe,"compositionstart",function(ot){ae.composing={data:ot.data,done:!1}}),st(pe,"compositionupdate",function(ot){ae.composing||(ae.composing={data:ot.data,done:!1})}),st(pe,"compositionend",function(ot){ae.composing&&(ot.data!=ae.composing.data&&ae.readFromDOMSoon(),ae.composing.done=!0)}),st(pe,"touchstart",function(){return he.forceCompositionEnd()}),st(pe,"input",function(){ae.composing||ae.readFromDOMSoon()});function Ze(ot){if(!(!Fe(ot)||Hn(de,ot))){if(de.somethingSelected())Vh({lineWise:!1,text:de.getSelections()}),ot.type=="cut"&&de.replaceSelection("",null,"cut");else if(de.options.lineWiseCopyCut){var it=hp(de);Vh({lineWise:!0,text:it.text}),ot.type=="cut"&&de.operation(function(){de.setSelections(it.ranges,0,bt),de.replaceSelection("",null,"cut")})}else return;if(ot.clipboardData){ot.clipboardData.clearData();var Nt=$u.text.join(`
`);if(ot.clipboardData.setData("Text",Nt),ot.clipboardData.getData("Text")==Nt){ot.preventDefault();return}}var Nn=gp(),Kt=Nn.firstChild;de.display.lineSpace.insertBefore(Nn,de.display.lineSpace.firstChild),Kt.value=$u.text.join(`
`);var ii=document.activeElement;Yt(Kt),setTimeout(function(){de.display.lineSpace.removeChild(Nn),ii.focus(),ii==pe&&he.showPrimarySelection()},50)}}st(pe,"copy",Ze),st(pe,"cut",Ze)},js.prototype.screenReaderLabelChanged=function(ie){ie?this.div.setAttribute("aria-label",ie):this.div.removeAttribute("aria-label")},js.prototype.prepareSelection=function(){var ie=hn(this.cm,!1);return ie.focus=document.activeElement==this.div,ie},js.prototype.showSelection=function(ie,ae){!ie||!this.cm.display.view.length||((ie.focus||ae)&&this.showPrimarySelection(),this.showMultipleSelections(ie))},js.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},js.prototype.showPrimarySelection=function(){var ie=this.getSelection(),ae=this.cm,he=ae.doc.sel.primary(),de=he.from(),pe=he.to();if(ae.display.viewTo==ae.display.viewFrom||de.line>=ae.display.viewTo||pe.line<ae.display.viewFrom){ie.removeAllRanges();return}var Fe=Qf(ae,ie.anchorNode,ie.anchorOffset),Ze=Qf(ae,ie.focusNode,ie.focusOffset);if(!(Fe&&!Fe.bad&&Ze&&!Ze.bad&&vn(ei(Fe,Ze),de)==0&&vn(pi(Fe,Ze),pe)==0)){var ot=ae.display.view,it=de.line>=ae.display.viewFrom&&Pg(ae,de)||{node:ot[0].measure.map[2],offset:0},Nt=pe.line<ae.display.viewTo&&Pg(ae,pe);if(!Nt){var Nn=ot[ot.length-1].measure,Kt=Nn.maps?Nn.maps[Nn.maps.length-1]:Nn.map;Nt={node:Kt[Kt.length-1],offset:Kt[Kt.length-2]-Kt[Kt.length-3]}}if(!it||!Nt){ie.removeAllRanges();return}var ii=ie.rangeCount&&ie.getRangeAt(0),qn;try{qn=Ge(it.node,it.offset,Nt.offset,Nt.node)}catch(ir){}qn&&(!xe&&ae.state.focused?(ie.collapse(it.node,it.offset),qn.collapsed||(ie.removeAllRanges(),ie.addRange(qn))):(ie.removeAllRanges(),ie.addRange(qn)),ii&&ie.anchorNode==null?ie.addRange(ii):xe&&this.startGracePeriod()),this.rememberSelection()}},js.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)},js.prototype.showMultipleSelections=function(ie){et(this.cm.display.cursorDiv,ie.cursors),et(this.cm.display.selectionDiv,ie.selection)},js.prototype.rememberSelection=function(){var ie=this.getSelection();this.lastAnchorNode=ie.anchorNode,this.lastAnchorOffset=ie.anchorOffset,this.lastFocusNode=ie.focusNode,this.lastFocusOffset=ie.focusOffset},js.prototype.selectionInEditor=function(){var ie=this.getSelection();if(!ie.rangeCount)return!1;var ae=ie.getRangeAt(0).commonAncestorContainer;return kt(this.div,ae)},js.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},js.prototype.blur=function(){this.div.blur()},js.prototype.getField=function(){return this.div},js.prototype.supportsTouch=function(){return!0},js.prototype.receivedFocus=function(){var ie=this;this.selectionInEditor()?this.pollSelection():gn(this.cm,function(){return ie.cm.curOp.selectionChanged=!0});function ae(){ie.cm.state.focused&&(ie.pollSelection(),ie.polling.set(ie.cm.options.pollInterval,ae))}this.polling.set(this.cm.options.pollInterval,ae)},js.prototype.selectionChanged=function(){var ie=this.getSelection();return ie.anchorNode!=this.lastAnchorNode||ie.anchorOffset!=this.lastAnchorOffset||ie.focusNode!=this.lastFocusNode||ie.focusOffset!=this.lastFocusOffset},js.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var ie=this.getSelection(),ae=this.cm;if(te&&Ft&&this.cm.display.gutterSpecs.length&&pp(ie.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var he=Qf(ae,ie.anchorNode,ie.anchorOffset),de=Qf(ae,ie.focusNode,ie.focusOffset);he&&de&&gn(ae,function(){ss(ae.doc,_o(he,de),bt),(he.bad||de.bad)&&(ae.curOp.selectionChanged=!0)})}}},js.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var ie=this.cm,ae=ie.display,he=ie.doc.sel.primary(),de=he.from(),pe=he.to();if(de.ch==0&&de.line>ie.firstLine()&&(de=Rt(de.line-1,an(ie.doc,de.line-1).length)),pe.ch==an(ie.doc,pe.line).text.length&&pe.line<ie.lastLine()&&(pe=Rt(pe.line+1,0)),de.line<ae.viewFrom||pe.line>ae.viewTo-1)return!1;var Fe,Ze,ot;de.line==ae.viewFrom||(Fe=Il(ie,de.line))==0?(Ze=Pt(ae.view[0].line),ot=ae.view[0].node):(Ze=Pt(ae.view[Fe].line),ot=ae.view[Fe-1].node.nextSibling);var it=Il(ie,pe.line),Nt,Nn;if(it==ae.view.length-1?(Nt=ae.viewTo-1,Nn=ae.lineDiv.lastChild):(Nt=Pt(ae.view[it+1].line)-1,Nn=ae.view[it+1].node.previousSibling),!ot)return!1;for(var Kt=ie.doc.splitLines(Cf(ie,ot,Nn,Ze,Nt)),ii=Dt(ie.doc,Rt(Ze,0),Rt(Nt,an(ie.doc,Nt).text.length));Kt.length>1&&ii.length>1;)if(St(Kt)==St(ii))Kt.pop(),ii.pop(),Nt--;else if(Kt[0]==ii[0])Kt.shift(),ii.shift(),Ze++;else break;for(var qn=0,ir=0,sr=Kt[0],Ar=ii[0],Qr=Math.min(sr.length,Ar.length);qn<Qr&&sr.charCodeAt(qn)==Ar.charCodeAt(qn);)++qn;for(var Eo=St(Kt),mo=St(ii),jo=Math.min(Eo.length-(Kt.length==1?qn:0),mo.length-(ii.length==1?qn:0));ir<jo&&Eo.charCodeAt(Eo.length-ir-1)==mo.charCodeAt(mo.length-ir-1);)++ir;if(Kt.length==1&&ii.length==1&&Ze==de.line)for(;qn&&qn>de.ch&&Eo.charCodeAt(Eo.length-ir-1)==mo.charCodeAt(mo.length-ir-1);)qn--,ir++;Kt[Kt.length-1]=Eo.slice(0,Eo.length-ir).replace(/^\u200b+/,""),Kt[0]=Kt[0].slice(qn).replace(/\u200b+$/,"");var ua=Rt(Ze,qn),co=Rt(Nt,ii.length?St(ii).length-ir:0);if(Kt.length>1||Kt[0]||vn(ua,co))return sc(ie.doc,Kt,ua,co,"+input"),!0},js.prototype.ensurePolled=function(){this.forceCompositionEnd()},js.prototype.reset=function(){this.forceCompositionEnd()},js.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},js.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))},js.prototype.updateFromDOM=function(){var ie=this;(this.cm.isReadOnly()||!this.pollContent())&&gn(this.cm,function(){return ws(ie.cm)})},js.prototype.setUneditable=function(ie){ie.contentEditable="false"},js.prototype.onKeyPress=function(ie){ie.charCode==0||this.composing||(ie.preventDefault(),this.cm.isReadOnly()||Jn(this.cm,Xf)(this.cm,String.fromCharCode(ie.charCode==null?ie.keyCode:ie.charCode),0))},js.prototype.readOnlyChanged=function(ie){this.div.contentEditable=String(ie!="nocursor")},js.prototype.onContextMenu=function(){},js.prototype.resetPosition=function(){},js.prototype.needsContentAttribute=!0;function Pg(ie,ae){var he=zl(ie,ae.line);if(!he||he.hidden)return null;var de=an(ie.doc,ae.line),pe=xc(he,de,ae.line),Fe=Re(de,ie.doc.direction),Ze="left";if(Fe){var ot=me(Fe,ae.ch);Ze=ot%2?"right":"left"}var it=wc(pe.map,ae.ch,Ze);return it.offset=it.collapse=="right"?it.end:it.start,it}function pp(ie){for(var ae=ie;ae;ae=ae.parentNode)if(/CodeMirror-gutter-wrapper/.test(ae.className))return!0;return!1}function Pf(ie,ae){return ae&&(ie.bad=!0),ie}function Cf(ie,ae,he,de,pe){var Fe="",Ze=!1,ot=ie.doc.lineSeparator(),it=!1;function Nt(qn){return function(ir){return ir.id==qn}}function Nn(){Ze&&(Fe+=ot,it&&(Fe+=ot),Ze=it=!1)}function Kt(qn){qn&&(Nn(),Fe+=qn)}function ii(qn){if(qn.nodeType==1){var ir=qn.getAttribute("cm-text");if(ir){Kt(ir);return}var sr=qn.getAttribute("cm-marker"),Ar;if(sr){var Qr=ie.findMarks(Rt(de,0),Rt(pe+1,0),Nt(+sr));Qr.length&&(Ar=Qr[0].find(0))&&Kt(Dt(ie.doc,Ar.from,Ar.to).join(ot));return}if(qn.getAttribute("contenteditable")=="false")return;var Eo=/^(pre|div|p|li|table|br)$/i.test(qn.nodeName);if(!/^br$/i.test(qn.nodeName)&&qn.textContent.length==0)return;Eo&&Nn();for(var mo=0;mo<qn.childNodes.length;mo++)ii(qn.childNodes[mo]);/^(pre|p)$/i.test(qn.nodeName)&&(it=!0),Eo&&(Ze=!0)}else qn.nodeType==3&&Kt(qn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;ii(ae),ae!=he;)ae=ae.nextSibling,it=!1;return Fe}function Qf(ie,ae,he){var de;if(ae==ie.display.lineDiv){if(de=ie.display.lineDiv.childNodes[he],!de)return Pf(ie.clipPos(Rt(ie.display.viewTo-1)),!0);ae=null,he=0}else for(de=ae;;de=de.parentNode){if(!de||de==ie.display.lineDiv)return null;if(de.parentNode&&de.parentNode==ie.display.lineDiv)break}for(var pe=0;pe<ie.display.view.length;pe++){var Fe=ie.display.view[pe];if(Fe.node==de)return fm(Fe,ae,he)}}function fm(ie,ae,he){var de=ie.text.firstChild,pe=!1;if(!ae||!kt(de,ae))return Pf(Rt(Pt(ie.line),0),!0);if(ae==de&&(pe=!0,ae=de.childNodes[he],he=0,!ae)){var Fe=ie.rest?St(ie.rest):ie.line;return Pf(Rt(Pt(Fe),Fe.text.length),pe)}var Ze=ae.nodeType==3?ae:null,ot=ae;for(!Ze&&ae.childNodes.length==1&&ae.firstChild.nodeType==3&&(Ze=ae.firstChild,he&&(he=Ze.nodeValue.length));ot.parentNode!=de;)ot=ot.parentNode;var it=ie.measure,Nt=it.maps;function Nn(Ar,Qr,Eo){for(var mo=-1;mo<(Nt?Nt.length:0);mo++)for(var jo=mo<0?it.map:Nt[mo],ua=0;ua<jo.length;ua+=3){var co=jo[ua+2];if(co==Ar||co==Qr){var Ma=Pt(mo<0?ie.line:ie.rest[mo]),$s=jo[ua]+Eo;return(Eo<0||co!=Ar)&&($s=jo[ua+(Eo?1:0)]),Rt(Ma,$s)}}}var Kt=Nn(Ze,ot,he);if(Kt)return Pf(Kt,pe);for(var ii=ot.nextSibling,qn=Ze?Ze.nodeValue.length-he:0;ii;ii=ii.nextSibling){if(Kt=Nn(ii,ii.firstChild,0),Kt)return Pf(Rt(Kt.line,Kt.ch-qn),pe);qn+=ii.textContent.length}for(var ir=ot.previousSibling,sr=he;ir;ir=ir.previousSibling){if(Kt=Nn(ir,ir.firstChild,-1),Kt)return Pf(Rt(Kt.line,Kt.ch+sr),pe);sr+=ir.textContent.length}}var Wl=function(ie){this.cm=ie,this.prevInput="",this.pollingFast=!1,this.polling=new je,this.hasSelection=!1,this.composing=null};Wl.prototype.init=function(ie){var ae=this,he=this,de=this.cm;this.createField(ie);var pe=this.textarea;ie.wrapper.insertBefore(this.wrapper,ie.wrapper.firstChild),Me&&(pe.style.width="0px"),st(pe,"input",function(){Qe&&vt>=9&&ae.hasSelection&&(ae.hasSelection=null),he.poll()}),st(pe,"paste",function(Ze){Hn(de,Ze)||cp(Ze,de)||(de.state.pasteIncoming=+new Date,he.fastPoll())});function Fe(Ze){if(!Hn(de,Ze)){if(de.somethingSelected())Vh({lineWise:!1,text:de.getSelections()});else if(de.options.lineWiseCopyCut){var ot=hp(de);Vh({lineWise:!0,text:ot.text}),Ze.type=="cut"?de.setSelections(ot.ranges,null,bt):(he.prevInput="",pe.value=ot.text.join(`
`),Yt(pe))}else return;Ze.type=="cut"&&(de.state.cutIncoming=+new Date)}}st(pe,"cut",Fe),st(pe,"copy",Fe),st(ie.scroller,"paste",function(Ze){if(!(Nl(ie,Ze)||Hn(de,Ze))){if(!pe.dispatchEvent){de.state.pasteIncoming=+new Date,he.focus();return}var ot=new Event("paste");ot.clipboardData=Ze.clipboardData,pe.dispatchEvent(ot)}}),st(ie.lineSpace,"selectstart",function(Ze){Nl(ie,Ze)||Zi(Ze)}),st(pe,"compositionstart",function(){var Ze=de.getCursor("from");he.composing&&he.composing.range.clear(),he.composing={start:Ze,range:de.markText(Ze,de.getCursor("to"),{className:"CodeMirror-composing"})}}),st(pe,"compositionend",function(){he.composing&&(he.poll(),he.composing.range.clear(),he.composing=null)})},Wl.prototype.createField=function(ie){this.wrapper=gp(),this.textarea=this.wrapper.firstChild},Wl.prototype.screenReaderLabelChanged=function(ie){ie?this.textarea.setAttribute("aria-label",ie):this.textarea.removeAttribute("aria-label")},Wl.prototype.prepareSelection=function(){var ie=this.cm,ae=ie.display,he=ie.doc,de=hn(ie);if(ie.options.moveInputWithCursor){var pe=ka(ie,he.sel.primary().head,"div"),Fe=ae.wrapper.getBoundingClientRect(),Ze=ae.lineDiv.getBoundingClientRect();de.teTop=Math.max(0,Math.min(ae.wrapper.clientHeight-10,pe.top+Ze.top-Fe.top)),de.teLeft=Math.max(0,Math.min(ae.wrapper.clientWidth-10,pe.left+Ze.left-Fe.left))}return de},Wl.prototype.showSelection=function(ie){var ae=this.cm,he=ae.display;et(he.cursorDiv,ie.cursors),et(he.selectionDiv,ie.selection),ie.teTop!=null&&(this.wrapper.style.top=ie.teTop+"px",this.wrapper.style.left=ie.teLeft+"px")},Wl.prototype.reset=function(ie){if(!(this.contextMenuPending||this.composing)){var ae=this.cm;if(ae.somethingSelected()){this.prevInput="";var he=ae.getSelection();this.textarea.value=he,ae.state.focused&&Yt(this.textarea),Qe&&vt>=9&&(this.hasSelection=he)}else ie||(this.prevInput=this.textarea.value="",Qe&&vt>=9&&(this.hasSelection=null))}},Wl.prototype.getField=function(){return this.textarea},Wl.prototype.supportsTouch=function(){return!1},Wl.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ne||$e()!=this.textarea))try{this.textarea.focus()}catch(ie){}},Wl.prototype.blur=function(){this.textarea.blur()},Wl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Wl.prototype.receivedFocus=function(){this.slowPoll()},Wl.prototype.slowPoll=function(){var ie=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){ie.poll(),ie.cm.state.focused&&ie.slowPoll()})},Wl.prototype.fastPoll=function(){var ie=!1,ae=this;ae.pollingFast=!0;function he(){var de=ae.poll();!de&&!ie?(ie=!0,ae.polling.set(60,he)):(ae.pollingFast=!1,ae.slowPoll())}ae.polling.set(20,he)},Wl.prototype.poll=function(){var ie=this,ae=this.cm,he=this.textarea,de=this.prevInput;if(this.contextMenuPending||!ae.state.focused||Ee(he)&&!de&&!this.composing||ae.isReadOnly()||ae.options.disableInput||ae.state.keySeq)return!1;var pe=he.value;if(pe==de&&!ae.somethingSelected())return!1;if(Qe&&vt>=9&&this.hasSelection===pe||ce&&/[\uf700-\uf7ff]/.test(pe))return ae.display.input.reset(),!1;if(ae.doc.sel==ae.display.selForContextMenu){var Fe=pe.charCodeAt(0);if(Fe==8203&&!de&&(de="\u200B"),Fe==8666)return this.reset(),this.cm.execCommand("undo")}for(var Ze=0,ot=Math.min(de.length,pe.length);Ze<ot&&de.charCodeAt(Ze)==pe.charCodeAt(Ze);)++Ze;return gn(ae,function(){Xf(ae,pe.slice(Ze),de.length-Ze,null,ie.composing?"*compose":null),pe.length>1e3||pe.indexOf(`
`)>-1?he.value=ie.prevInput="":ie.prevInput=pe,ie.composing&&(ie.composing.range.clear(),ie.composing.range=ae.markText(ie.composing.start,ae.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Wl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Wl.prototype.onKeyPress=function(){Qe&&vt>=9&&(this.hasSelection=null),this.fastPoll()},Wl.prototype.onContextMenu=function(ie){var ae=this,he=ae.cm,de=he.display,pe=ae.textarea;ae.contextMenuPending&&ae.contextMenuPending();var Fe=wl(he,ie),Ze=de.scroller.scrollTop;if(!Fe||qe)return;var ot=he.options.resetSelectionOnContextMenu;ot&&he.doc.sel.contains(Fe)==-1&&Jn(he,ss)(he.doc,_o(Fe),bt);var it=pe.style.cssText,Nt=ae.wrapper.style.cssText,Nn=ae.wrapper.offsetParent.getBoundingClientRect();ae.wrapper.style.cssText="position: static",pe.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(ie.clientY-Nn.top-5)+"px; left: "+(ie.clientX-Nn.left-5)+`px;
z-index: 1000; background: `+(Qe?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Kt;Ne&&(Kt=window.scrollY),de.input.focus(),Ne&&window.scrollTo(null,Kt),de.input.reset(),he.somethingSelected()||(pe.value=ae.prevInput=" "),ae.contextMenuPending=qn,de.selForContextMenu=he.doc.sel,clearTimeout(de.detectingSelectAll);function ii(){if(pe.selectionStart!=null){var sr=he.somethingSelected(),Ar="\u200B"+(sr?pe.value:"");pe.value="\u21DA",pe.value=Ar,ae.prevInput=sr?"":"\u200B",pe.selectionStart=1,pe.selectionEnd=Ar.length,de.selForContextMenu=he.doc.sel}}function qn(){if(ae.contextMenuPending==qn&&(ae.contextMenuPending=!1,ae.wrapper.style.cssText=Nt,pe.style.cssText=it,Qe&&vt<9&&de.scrollbars.setScrollTop(de.scroller.scrollTop=Ze),pe.selectionStart!=null)){(!Qe||Qe&&vt<9)&&ii();var sr=0,Ar=function(){de.selForContextMenu==he.doc.sel&&pe.selectionStart==0&&pe.selectionEnd>0&&ae.prevInput=="\u200B"?Jn(he,$a)(he):sr++<10?de.detectingSelectAll=setTimeout(Ar,500):(de.selForContextMenu=null,de.input.reset())};de.detectingSelectAll=setTimeout(Ar,200)}}if(Qe&&vt>=9&&ii(),ke){Kr(ie);var ir=function(){sn(window,"mouseup",ir),setTimeout(qn,20)};st(window,"mouseup",ir)}else setTimeout(qn,50)},Wl.prototype.readOnlyChanged=function(ie){ie||this.reset(),this.textarea.disabled=ie=="nocursor",this.textarea.readOnly=!!ie},Wl.prototype.setUneditable=function(){},Wl.prototype.needsContentAttribute=!1;function gm(ie,ae){if(ae=ae?Qt(ae):{},ae.value=ie.value,!ae.tabindex&&ie.tabIndex&&(ae.tabindex=ie.tabIndex),!ae.placeholder&&ie.placeholder&&(ae.placeholder=ie.placeholder),ae.autofocus==null){var he=$e();ae.autofocus=he==ie||ie.getAttribute("autofocus")!=null&&he==document.body}function de(){ie.value=ot.getValue()}var pe;if(ie.form&&(st(ie.form,"submit",de),!ae.leaveSubmitMethodAlone)){var Fe=ie.form;pe=Fe.submit;try{var Ze=Fe.submit=function(){de(),Fe.submit=pe,Fe.submit(),Fe.submit=Ze}}catch(it){}}ae.finishInit=function(it){it.save=de,it.getTextArea=function(){return ie},it.toTextArea=function(){it.toTextArea=isNaN,de(),ie.parentNode.removeChild(it.getWrapperElement()),ie.style.display="",ie.form&&(sn(ie.form,"submit",de),!ae.leaveSubmitMethodAlone&&typeof ie.form.submit=="function"&&(ie.form.submit=pe))}},ie.style.display="none";var ot=cs(function(it){return ie.parentNode.insertBefore(it,ie.nextSibling)},ae);return ot}function bf(ie){ie.off=sn,ie.on=st,ie.wheelEventPixels=uo,ie.Doc=Fl,ie.splitLines=zn,ie.countColumn=ht,ie.findColumn=Kn,ie.isWordChar=$t,ie.Pass=rn,ie.signal=ln,ie.Line=qr,ie.changeEnd=na,ie.scrollbarModel=as,ie.Pos=Rt,ie.cmpPos=vn,ie.modes=oi,ie.mimeModes=Ci,ie.resolveMode=yt,ie.getMode=Et,ie.modeExtensions=Lt,ie.extendMode=tt,ie.copyState=en,ie.startState=xt,ie.innerMode=fn,ie.commands=Dl,ie.keyMap=eu,ie.keyName=dh,ie.isModifierKey=Ed,ie.lookupKey=Su,ie.normalizeKeyMap=Yd,ie.StringStream=Ue,ie.SharedTextMarker=bc,ie.TextMarker=pn,ie.LineWidget=_s,ie.e_preventDefault=Zi,ie.e_stopPropagation=Ln,ie.e_stop=Kr,ie.addClass=zt,ie.contains=kt,ie.rmClass=Te,ie.keyNames=lc}ph(cs),mh(cs);var Qd="iter insert remove copy getEditor constructor".split(" ");for(var _f in Fl.prototype)Fl.prototype.hasOwnProperty(_f)&&At(Qd,_f)<0&&(cs.prototype[_f]=function(ie){return function(){return ie.apply(this.doc,arguments)}}(Fl.prototype[_f]));return Ri(Fl),cs.inputStyles={textarea:Wl,contenteditable:js},cs.defineMode=function(ie){!cs.defaults.mode&&ie!="null"&&(cs.defaults.mode=ie),xn.apply(this,arguments)},cs.defineMIME=on,cs.defineMode("null",function(){return{token:function(ie){return ie.skipToEnd()}}}),cs.defineMIME("text/plain","null"),cs.defineExtension=function(ie,ae){cs.prototype[ie]=ae},cs.defineDocExtension=function(ie,ae){Fl.prototype[ie]=ae},cs.fromTextArea=gm,bf(cs),cs.version="5.58.2",cs})},25419:function(In,Fn,ye){(function(xe){xe(ye(89780),ye(15525),ye(98101))})(function(xe){"use strict";xe.defineMode("markdown",function(Ie,We){var It=xe.getMode(Ie,"text/html"),Qe=It.name=="null";function vt(ht){if(xe.findModeByName){var je=xe.findModeByName(ht);je&&(ht=je.mime||je.mimes[0])}var At=xe.getMode(Ie,ht);return At.name=="null"?null:At}We.highlightFormatting===void 0&&(We.highlightFormatting=!1),We.maxBlockquoteDepth===void 0&&(We.maxBlockquoteDepth=0),We.taskLists===void 0&&(We.taskLists=!1),We.strikethrough===void 0&&(We.strikethrough=!1),We.emoji===void 0&&(We.emoji=!1),We.fencedCodeBlockHighlighting===void 0&&(We.fencedCodeBlockHighlighting=!0),We.fencedCodeBlockDefaultMode===void 0&&(We.fencedCodeBlockDefaultMode="text/plain"),We.xml===void 0&&(We.xml=!0),We.tokenTypeOverrides===void 0&&(We.tokenTypeOverrides={});var Ne={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 Tt in Ne)Ne.hasOwnProperty(Tt)&&We.tokenTypeOverrides[Tt]&&(Ne[Tt]=We.tokenTypeOverrides[Tt]);var Ft=/^([*\-_])(?:\s*\1){2,}\s*$/,qe=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,gt=/^\[(x| )\](?=\s)/i,dt=We.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Ct=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Me=/^[^#!\[\]*_\\<>` "'(~:]+/,te=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ne=/^\s*\[[^\]]+?\]:.*$/,ce=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,se=" ";function ge(ht,je,At){return je.f=je.inline=At,At(ht,je)}function ve(ht,je,At){return je.f=je.block=At,At(ht,je)}function Ce(ht){return!ht||!/\S/.test(ht.string)}function ke(ht){if(ht.linkTitle=!1,ht.linkHref=!1,ht.linkText=!1,ht.em=!1,ht.strong=!1,ht.strikethrough=!1,ht.quote=0,ht.indentedCode=!1,ht.f==Te){var je=Qe;if(!je){var At=xe.innerMode(It,ht.htmlState);je=At.mode.name=="xml"&&At.state.tagStart===null&&!At.state.context&&At.state.tokenize.isInText}je&&(ht.f=ft,ht.block=Pe,ht.htmlState=null)}return ht.trailingSpace=0,ht.trailingSpaceNewLine=!1,ht.prevLine=ht.thisLine,ht.thisLine={stream:null},null}function Pe(ht,je){var At=ht.column()===je.indentation,wn=Ce(je.prevLine.stream),rn=je.indentedCode,bt=je.prevLine.hr,Jt=je.list!==!1,un=(je.listStack[je.listStack.length-1]||0)+3;je.indentedCode=!1;var Kn=je.indentation;if(je.indentationDiff===null&&(je.indentationDiff=je.indentation,Jt)){for(je.list=null;Kn<je.listStack[je.listStack.length-1];)je.listStack.pop(),je.listStack.length?je.indentation=je.listStack[je.listStack.length-1]:je.list=!1;je.list!==!1&&(je.indentationDiff=Kn-je.listStack[je.listStack.length-1])}var En=!wn&&!bt&&!je.prevLine.header&&(!Jt||!rn)&&!je.prevLine.fencedCodeEnd,Yn=(je.list===!1||bt||wn)&&je.indentation<=un&&ht.match(Ft),St=null;if(je.indentationDiff>=4&&(rn||je.prevLine.fencedCodeEnd||je.prevLine.header||wn))return ht.skipToEnd(),je.indentedCode=!0,Ne.code;if(ht.eatSpace())return null;if(At&&je.indentation<=un&&(St=ht.match(dt))&&St[1].length<=6)return je.quote=0,je.header=St[1].length,je.thisLine.header=!0,We.highlightFormatting&&(je.formatting="header"),je.f=je.inline,et(je);if(je.indentation<=un&&ht.eat(">"))return je.quote=At?1:je.quote+1,We.highlightFormatting&&(je.formatting="quote"),ht.eatSpace(),et(je);if(!Yn&&!je.setext&&At&&je.indentation<=un&&(St=ht.match(qe))){var Vn=St[1]?"ol":"ul";return je.indentation=Kn+ht.current().length,je.list=!0,je.quote=0,je.listStack.push(je.indentation),je.em=!1,je.strong=!1,je.code=!1,je.strikethrough=!1,We.taskLists&&ht.match(gt,!1)&&(je.taskList=!0),je.f=je.inline,We.highlightFormatting&&(je.formatting=["list","list-"+Vn]),et(je)}else{if(At&&je.indentation<=un&&(St=ht.match(te,!0)))return je.quote=0,je.fencedEndRE=new RegExp(St[1]+"+ *$"),je.localMode=We.fencedCodeBlockHighlighting&&vt(St[2]||We.fencedCodeBlockDefaultMode),je.localMode&&(je.localState=xe.startState(je.localMode)),je.f=je.block=Ke,We.highlightFormatting&&(je.formatting="code-block"),je.code=-1,et(je);if(je.setext||(!En||!Jt)&&!je.quote&&je.list===!1&&!je.code&&!Yn&&!ne.test(ht.string)&&(St=ht.lookAhead(1))&&(St=St.match(Ct)))return je.setext?(je.header=je.setext,je.setext=0,ht.skipToEnd(),We.highlightFormatting&&(je.formatting="header")):(je.header=St[0].charAt(0)=="="?1:2,je.setext=je.header),je.thisLine.header=!0,je.f=je.inline,et(je);if(Yn)return ht.skipToEnd(),je.hr=!0,je.thisLine.hr=!0,Ne.hr;if(ht.peek()==="[")return ge(ht,je,Ht)}return ge(ht,je,je.inline)}function Te(ht,je){var At=It.token(ht,je.htmlState);if(!Qe){var wn=xe.innerMode(It,je.htmlState);(wn.mode.name=="xml"&&wn.state.tagStart===null&&!wn.state.context&&wn.state.tokenize.isInText||je.md_inside&&ht.current().indexOf(">")>-1)&&(je.f=ft,je.block=Pe,je.htmlState=null)}return At}function Ke(ht,je){var At=je.listStack[je.listStack.length-1]||0,wn=je.indentation<At,rn=At+3;if(je.fencedEndRE&&je.indentation<=rn&&(wn||ht.match(je.fencedEndRE))){We.highlightFormatting&&(je.formatting="code-block");var bt;return wn||(bt=et(je)),je.localMode=je.localState=null,je.block=Pe,je.f=ft,je.fencedEndRE=null,je.code=0,je.thisLine.fencedCodeEnd=!0,wn?ve(ht,je,je.block):bt}else return je.localMode?je.localMode.token(ht,je.localState):(ht.skipToEnd(),Ne.code)}function et(ht){var je=[];if(ht.formatting){je.push(Ne.formatting),typeof ht.formatting=="string"&&(ht.formatting=[ht.formatting]);for(var At=0;At<ht.formatting.length;At++)je.push(Ne.formatting+"-"+ht.formatting[At]),ht.formatting[At]==="header"&&je.push(Ne.formatting+"-"+ht.formatting[At]+"-"+ht.header),ht.formatting[At]==="quote"&&(!We.maxBlockquoteDepth||We.maxBlockquoteDepth>=ht.quote?je.push(Ne.formatting+"-"+ht.formatting[At]+"-"+ht.quote):je.push("error"))}if(ht.taskOpen)return je.push("meta"),je.length?je.join(" "):null;if(ht.taskClosed)return je.push("property"),je.length?je.join(" "):null;if(ht.linkHref?je.push(Ne.linkHref,"url"):(ht.strong&&je.push(Ne.strong),ht.em&&je.push(Ne.em),ht.strikethrough&&je.push(Ne.strikethrough),ht.emoji&&je.push(Ne.emoji),ht.linkText&&je.push(Ne.linkText),ht.code&&je.push(Ne.code),ht.image&&je.push(Ne.image),ht.imageAltText&&je.push(Ne.imageAltText,"link"),ht.imageMarker&&je.push(Ne.imageMarker)),ht.header&&je.push(Ne.header,Ne.header+"-"+ht.header),ht.quote&&(je.push(Ne.quote),!We.maxBlockquoteDepth||We.maxBlockquoteDepth>=ht.quote?je.push(Ne.quote+"-"+ht.quote):je.push(Ne.quote+"-"+We.maxBlockquoteDepth)),ht.list!==!1){var wn=(ht.listStack.length-1)%3;wn?wn===1?je.push(Ne.list2):je.push(Ne.list3):je.push(Ne.list1)}return ht.trailingSpaceNewLine?je.push("trailing-space-new-line"):ht.trailingSpace&&je.push("trailing-space-"+(ht.trailingSpace%2?"a":"b")),je.length?je.join(" "):null}function Xe(ht,je){if(ht.match(Me,!0))return et(je)}function ft(ht,je){var At=je.text(ht,je);if(typeof At!="undefined")return At;if(je.list)return je.list=null,et(je);if(je.taskList){var wn=ht.match(gt,!0)[1]===" ";return wn?je.taskOpen=!0:je.taskClosed=!0,We.highlightFormatting&&(je.formatting="task"),je.taskList=!1,et(je)}if(je.taskOpen=!1,je.taskClosed=!1,je.header&&ht.match(/^#+$/,!0))return We.highlightFormatting&&(je.formatting="header"),et(je);var rn=ht.next();if(je.linkTitle){je.linkTitle=!1;var bt=rn;rn==="("&&(bt=")"),bt=(bt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Jt="^\\s*(?:[^"+bt+"\\\\]+|\\\\\\\\|\\\\.)"+bt;if(ht.match(new RegExp(Jt),!0))return Ne.linkHref}if(rn==="`"){var un=je.formatting;We.highlightFormatting&&(je.formatting="code"),ht.eatWhile("`");var Kn=ht.current().length;if(je.code==0&&(!je.quote||Kn==1))return je.code=Kn,et(je);if(Kn==je.code){var En=et(je);return je.code=0,En}else return je.formatting=un,et(je)}else if(je.code)return et(je);if(rn==="\\"&&(ht.next(),We.highlightFormatting)){var Yn=et(je),St=Ne.formatting+"-escape";return Yn?Yn+" "+St:St}if(rn==="!"&&ht.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return je.imageMarker=!0,je.image=!0,We.highlightFormatting&&(je.formatting="image"),et(je);if(rn==="["&&je.imageMarker&&ht.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return je.imageMarker=!1,je.imageAltText=!0,We.highlightFormatting&&(je.formatting="image"),et(je);if(rn==="]"&&je.imageAltText){We.highlightFormatting&&(je.formatting="image");var Yn=et(je);return je.imageAltText=!1,je.image=!1,je.inline=je.f=kt,Yn}if(rn==="["&&!je.image)return je.linkText&&ht.match(/^.*?\]/)||(je.linkText=!0,We.highlightFormatting&&(je.formatting="link")),et(je);if(rn==="]"&&je.linkText){We.highlightFormatting&&(je.formatting="link");var Yn=et(je);return je.linkText=!1,je.inline=je.f=ht.match(/\(.*?\)| ?\[.*?\]/,!1)?kt:ft,Yn}if(rn==="<"&&ht.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){je.f=je.inline=Ge,We.highlightFormatting&&(je.formatting="link");var Yn=et(je);return Yn?Yn+=" ":Yn="",Yn+Ne.linkInline}if(rn==="<"&&ht.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){je.f=je.inline=Ge,We.highlightFormatting&&(je.formatting="link");var Yn=et(je);return Yn?Yn+=" ":Yn="",Yn+Ne.linkEmail}if(We.xml&&rn==="<"&&ht.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Vn=ht.string.indexOf(">",ht.pos);if(Vn!=-1){var Cn=ht.string.substring(ht.start,Vn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Cn)&&(je.md_inside=!0)}return ht.backUp(1),je.htmlState=xe.startState(It),ve(ht,je,Te)}if(We.xml&&rn==="<"&&ht.match(/^\/\w*?>/))return je.md_inside=!1,"tag";if(rn==="*"||rn==="_"){for(var Si=1,Bn=ht.pos==1?" ":ht.string.charAt(ht.pos-2);Si<3&&ht.eat(rn);)Si++;var tn=ht.peek()||" ",$t=!/\s/.test(tn)&&(!ce.test(tn)||/\s/.test(Bn)||ce.test(Bn)),ct=!/\s/.test(Bn)&&(!ce.test(Bn)||/\s/.test(tn)||ce.test(tn)),ze=null,Ut=null;if(Si%2&&(!je.em&&$t&&(rn==="*"||!ct||ce.test(Bn))?ze=!0:je.em==rn&&ct&&(rn==="*"||!$t||ce.test(tn))&&(ze=!1)),Si>1&&(!je.strong&&$t&&(rn==="*"||!ct||ce.test(Bn))?Ut=!0:je.strong==rn&&ct&&(rn==="*"||!$t||ce.test(tn))&&(Ut=!1)),Ut!=null||ze!=null){We.highlightFormatting&&(je.formatting=ze==null?"strong":Ut==null?"em":"strong em"),ze===!0&&(je.em=rn),Ut===!0&&(je.strong=rn);var En=et(je);return ze===!1&&(je.em=!1),Ut===!1&&(je.strong=!1),En}}else if(rn===" "&&(ht.eat("*")||ht.eat("_"))){if(ht.peek()===" ")return et(je);ht.backUp(1)}if(We.strikethrough){if(rn==="~"&&ht.eatWhile(rn)){if(je.strikethrough){We.highlightFormatting&&(je.formatting="strikethrough");var En=et(je);return je.strikethrough=!1,En}else if(ht.match(/^[^\s]/,!1))return je.strikethrough=!0,We.highlightFormatting&&(je.formatting="strikethrough"),et(je)}else if(rn===" "&&ht.match(/^~~/,!0)){if(ht.peek()===" ")return et(je);ht.backUp(2)}}if(We.emoji&&rn===":"&&ht.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){je.emoji=!0,We.highlightFormatting&&(je.formatting="emoji");var Gt=et(je);return je.emoji=!1,Gt}return rn===" "&&(ht.match(/^ +$/,!1)?je.trailingSpace++:je.trailingSpace&&(je.trailingSpaceNewLine=!0)),et(je)}function Ge(ht,je){var At=ht.next();if(At===">"){je.f=je.inline=ft,We.highlightFormatting&&(je.formatting="link");var wn=et(je);return wn?wn+=" ":wn="",wn+Ne.linkInline}return ht.match(/^[^>]+/,!0),Ne.linkInline}function kt(ht,je){if(ht.eatSpace())return null;var At=ht.next();return At==="("||At==="["?(je.f=je.inline=zt(At==="("?")":"]"),We.highlightFormatting&&(je.formatting="link-string"),je.linkHref=!0,et(je)):"error"}var $e={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function zt(ht){return function(je,At){var wn=je.next();if(wn===ht){At.f=At.inline=ft,We.highlightFormatting&&(At.formatting="link-string");var rn=et(At);return At.linkHref=!1,rn}return je.match($e[ht]),At.linkHref=!0,et(At)}}function Ht(ht,je){return ht.match(/^([^\]\\]|\\.)*\]:/,!1)?(je.f=Yt,ht.next(),We.highlightFormatting&&(je.formatting="link"),je.linkText=!0,et(je)):ge(ht,je,ft)}function Yt(ht,je){if(ht.match(/^\]:/,!0)){je.f=je.inline=Bt,We.highlightFormatting&&(je.formatting="link");var At=et(je);return je.linkText=!1,At}return ht.match(/^([^\]\\]|\\.)+/,!0),Ne.linkText}function Bt(ht,je){return ht.eatSpace()?null:(ht.match(/^[^\s]+/,!0),ht.peek()===void 0?je.linkTitle=!0:ht.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),je.f=je.inline=ft,Ne.linkHref+" url")}var Qt={startState:function(){return{f:Pe,prevLine:{stream:null},thisLine:{stream:null},block:Pe,htmlState:null,indentation:0,inline:ft,text:Xe,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(ht){return{f:ht.f,prevLine:ht.prevLine,thisLine:ht.thisLine,block:ht.block,htmlState:ht.htmlState&&xe.copyState(It,ht.htmlState),indentation:ht.indentation,localMode:ht.localMode,localState:ht.localMode?xe.copyState(ht.localMode,ht.localState):null,inline:ht.inline,text:ht.text,formatting:!1,linkText:ht.linkText,linkTitle:ht.linkTitle,linkHref:ht.linkHref,code:ht.code,em:ht.em,strong:ht.strong,strikethrough:ht.strikethrough,emoji:ht.emoji,header:ht.header,setext:ht.setext,hr:ht.hr,taskList:ht.taskList,list:ht.list,listStack:ht.listStack.slice(0),quote:ht.quote,indentedCode:ht.indentedCode,trailingSpace:ht.trailingSpace,trailingSpaceNewLine:ht.trailingSpaceNewLine,md_inside:ht.md_inside,fencedEndRE:ht.fencedEndRE}},token:function(ht,je){if(je.formatting=!1,ht!=je.thisLine.stream){if(je.header=0,je.hr=!1,ht.match(/^\s*$/,!0))return ke(je),null;if(je.prevLine=je.thisLine,je.thisLine={stream:ht},je.taskList=!1,je.trailingSpace=0,je.trailingSpaceNewLine=!1,!je.localState&&(je.f=je.block,je.f!=Te)){var At=ht.match(/^\s*/,!0)[0].replace(/\t/g,se).length;if(je.indentation=At,je.indentationDiff=null,At>0)return null}}return je.f(ht,je)},innerMode:function(ht){return ht.block==Te?{state:ht.htmlState,mode:It}:ht.localState?{state:ht.localState,mode:ht.localMode}:{state:ht,mode:Qt}},indent:function(ht,je,At){return ht.block==Te&&It.indent?It.indent(ht.htmlState,je,At):ht.localState&&ht.localMode.indent?ht.localMode.indent(ht.localState,je,At):xe.Pass},blankLine:ke,getType:et,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Qt},"xml"),xe.defineMIME("text/markdown","markdown"),xe.defineMIME("text/x-markdown","markdown")})},98101:function(In,Fn,ye){(function(xe){xe(ye(89780))})(function(xe){"use strict";xe.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 Ie=0;Ie<xe.modeInfo.length;Ie++){var We=xe.modeInfo[Ie];We.mimes&&(We.mime=We.mimes[0])}xe.findModeByMIME=function(It){It=It.toLowerCase();for(var Qe=0;Qe<xe.modeInfo.length;Qe++){var vt=xe.modeInfo[Qe];if(vt.mime==It)return vt;if(vt.mimes){for(var Ne=0;Ne<vt.mimes.length;Ne++)if(vt.mimes[Ne]==It)return vt}}if(/\+xml$/.test(It))return xe.findModeByMIME("application/xml");if(/\+json$/.test(It))return xe.findModeByMIME("application/json")},xe.findModeByExtension=function(It){It=It.toLowerCase();for(var Qe=0;Qe<xe.modeInfo.length;Qe++){var vt=xe.modeInfo[Qe];if(vt.ext){for(var Ne=0;Ne<vt.ext.length;Ne++)if(vt.ext[Ne]==It)return vt}}},xe.findModeByFileName=function(It){for(var Qe=0;Qe<xe.modeInfo.length;Qe++){var vt=xe.modeInfo[Qe];if(vt.file&&vt.file.test(It))return vt}var Ne=It.lastIndexOf("."),Tt=Ne>-1&&It.substring(Ne+1,It.length);if(Tt)return xe.findModeByExtension(Tt)},xe.findModeByName=function(It){It=It.toLowerCase();for(var Qe=0;Qe<xe.modeInfo.length;Qe++){var vt=xe.modeInfo[Qe];if(vt.name.toLowerCase()==It)return vt;if(vt.alias){for(var Ne=0;Ne<vt.alias.length;Ne++)if(vt.alias[Ne].toLowerCase()==It)return vt}}}})},67549:function(In,Fn,ye){(function(xe){xe(ye(89780))})(function(xe){"use strict";xe.defineMode("stex",function(Ie,We){"use strict";function It(Me,te){Me.cmdState.push(te)}function Qe(Me){return Me.cmdState.length>0?Me.cmdState[Me.cmdState.length-1]:null}function vt(Me){var te=Me.cmdState.pop();te&&te.closeBracket()}function Ne(Me){for(var te=Me.cmdState,ne=te.length-1;ne>=0;ne--){var ce=te[ne];if(ce.name!="DEFAULT")return ce}return{styleIdentifier:function(){return null}}}function Tt(Me,te,ne){return function(){this.name=Me,this.bracketNo=0,this.style=te,this.styles=ne,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Ft={};Ft.importmodule=Tt("importmodule","tag",["string","builtin"]),Ft.documentclass=Tt("documentclass","tag",["","atom"]),Ft.usepackage=Tt("usepackage","tag",["atom"]),Ft.begin=Tt("begin","tag",["atom"]),Ft.end=Tt("end","tag",["atom"]),Ft.label=Tt("label","tag",["atom"]),Ft.ref=Tt("ref","tag",["atom"]),Ft.eqref=Tt("eqref","tag",["atom"]),Ft.cite=Tt("cite","tag",["atom"]),Ft.bibitem=Tt("bibitem","tag",["atom"]),Ft.Bibitem=Tt("Bibitem","tag",["atom"]),Ft.RBibitem=Tt("RBibitem","tag",["atom"]),Ft.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function qe(Me,te){Me.f=te}function gt(Me,te){var ne;if(Me.match(/^\\[a-zA-Z@]+/)){var ce=Me.current().slice(1);return ne=Ft.hasOwnProperty(ce)?Ft[ce]:Ft.DEFAULT,ne=new ne,It(te,ne),qe(te,Ct),ne.style}if(Me.match(/^\\[$&%#{}_]/)||Me.match(/^\\[,;!\/\\]/))return"tag";if(Me.match("\\["))return qe(te,function(ge,ve){return dt(ge,ve,"\\]")}),"keyword";if(Me.match("\\("))return qe(te,function(ge,ve){return dt(ge,ve,"\\)")}),"keyword";if(Me.match("$$"))return qe(te,function(ge,ve){return dt(ge,ve,"$$")}),"keyword";if(Me.match("$"))return qe(te,function(ge,ve){return dt(ge,ve,"$")}),"keyword";var se=Me.next();if(se=="%")return Me.skipToEnd(),"comment";if(se=="}"||se=="]"){if(ne=Qe(te),ne)ne.closeBracket(se),qe(te,Ct);else return"error";return"bracket"}else return se=="{"||se=="["?(ne=Ft.DEFAULT,ne=new ne,It(te,ne),"bracket"):/\d/.test(se)?(Me.eatWhile(/[\w.%]/),"atom"):(Me.eatWhile(/[\w\-_]/),ne=Ne(te),ne.name=="begin"&&(ne.argument=Me.current()),ne.styleIdentifier())}function dt(Me,te,ne){if(Me.eatSpace())return null;if(ne&&Me.match(ne))return qe(te,gt),"keyword";if(Me.match(/^\\[a-zA-Z@]+/))return"tag";if(Me.match(/^[a-zA-Z]+/))return"variable-2";if(Me.match(/^\\[$&%#{}_]/)||Me.match(/^\\[,;!\/]/)||Me.match(/^[\^_&]/))return"tag";if(Me.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Me.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ce=Me.next();return ce=="{"||ce=="}"||ce=="["||ce=="]"||ce=="("||ce==")"?"bracket":ce=="%"?(Me.skipToEnd(),"comment"):"error"}function Ct(Me,te){var ne=Me.peek(),ce;return ne=="{"||ne=="["?(ce=Qe(te),ce.openBracket(ne),Me.eat(ne),qe(te,gt),"bracket"):/[ \t\r]/.test(ne)?(Me.eat(ne),null):(qe(te,gt),vt(te),gt(Me,te))}return{startState:function(){var Me=We.inMathMode?function(te,ne){return dt(te,ne)}:gt;return{cmdState:[],f:Me}},copyState:function(Me){return{cmdState:Me.cmdState.slice(),f:Me.f}},token:function(Me,te){return te.f(Me,te)},blankLine:function(Me){Me.f=gt,Me.cmdState.length=0},lineComment:"%"}}),xe.defineMIME("text/x-stex","stex"),xe.defineMIME("text/x-latex","stex")})},15525:function(In,Fn,ye){(function(xe){xe(ye(89780))})(function(xe){"use strict";var Ie={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},We={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};xe.defineMode("xml",function(It,Qe){var vt=It.indentUnit,Ne={},Tt=Qe.htmlMode?Ie:We;for(var Ft in Tt)Ne[Ft]=Tt[Ft];for(var Ft in Qe)Ne[Ft]=Qe[Ft];var qe,gt;function dt(Ge,kt){function $e(Yt){return kt.tokenize=Yt,Yt(Ge,kt)}var zt=Ge.next();if(zt=="<")return Ge.eat("!")?Ge.eat("[")?Ge.match("CDATA[")?$e(te("atom","]]>")):null:Ge.match("--")?$e(te("comment","-->")):Ge.match("DOCTYPE",!0,!0)?(Ge.eatWhile(/[\w\._\-]/),$e(ne(1))):null:Ge.eat("?")?(Ge.eatWhile(/[\w\._\-]/),kt.tokenize=te("meta","?>"),"meta"):(qe=Ge.eat("/")?"closeTag":"openTag",kt.tokenize=Ct,"tag bracket");if(zt=="&"){var Ht;return Ge.eat("#")?Ge.eat("x")?Ht=Ge.eatWhile(/[a-fA-F\d]/)&&Ge.eat(";"):Ht=Ge.eatWhile(/[\d]/)&&Ge.eat(";"):Ht=Ge.eatWhile(/[\w\.\-:]/)&&Ge.eat(";"),Ht?"atom":"error"}else return Ge.eatWhile(/[^&<]/),null}dt.isInText=!0;function Ct(Ge,kt){var $e=Ge.next();if($e==">"||$e=="/"&&Ge.eat(">"))return kt.tokenize=dt,qe=$e==">"?"endTag":"selfcloseTag","tag bracket";if($e=="=")return qe="equals",null;if($e=="<"){kt.tokenize=dt,kt.state=ve,kt.tagName=kt.tagStart=null;var zt=kt.tokenize(Ge,kt);return zt?zt+" tag error":"tag error"}else return/[\'\"]/.test($e)?(kt.tokenize=Me($e),kt.stringStartCol=Ge.column(),kt.tokenize(Ge,kt)):(Ge.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Me(Ge){var kt=function($e,zt){for(;!$e.eol();)if($e.next()==Ge){zt.tokenize=Ct;break}return"string"};return kt.isInAttribute=!0,kt}function te(Ge,kt){return function($e,zt){for(;!$e.eol();){if($e.match(kt)){zt.tokenize=dt;break}$e.next()}return Ge}}function ne(Ge){return function(kt,$e){for(var zt;(zt=kt.next())!=null;){if(zt=="<")return $e.tokenize=ne(Ge+1),$e.tokenize(kt,$e);if(zt==">")if(Ge==1){$e.tokenize=dt;break}else return $e.tokenize=ne(Ge-1),$e.tokenize(kt,$e)}return"meta"}}function ce(Ge,kt,$e){this.prev=Ge.context,this.tagName=kt,this.indent=Ge.indented,this.startOfLine=$e,(Ne.doNotIndent.hasOwnProperty(kt)||Ge.context&&Ge.context.noIndent)&&(this.noIndent=!0)}function se(Ge){Ge.context&&(Ge.context=Ge.context.prev)}function ge(Ge,kt){for(var $e;;){if(!Ge.context||($e=Ge.context.tagName,!Ne.contextGrabbers.hasOwnProperty($e)||!Ne.contextGrabbers[$e].hasOwnProperty(kt)))return;se(Ge)}}function ve(Ge,kt,$e){return Ge=="openTag"?($e.tagStart=kt.column(),Ce):Ge=="closeTag"?ke:ve}function Ce(Ge,kt,$e){return Ge=="word"?($e.tagName=kt.current(),gt="tag",Ke):Ne.allowMissingTagName&&Ge=="endTag"?(gt="tag bracket",Ke(Ge,kt,$e)):(gt="error",Ce)}function ke(Ge,kt,$e){if(Ge=="word"){var zt=kt.current();return $e.context&&$e.context.tagName!=zt&&Ne.implicitlyClosed.hasOwnProperty($e.context.tagName)&&se($e),$e.context&&$e.context.tagName==zt||Ne.matchClosing===!1?(gt="tag",Pe):(gt="tag error",Te)}else return Ne.allowMissingTagName&&Ge=="endTag"?(gt="tag bracket",Pe(Ge,kt,$e)):(gt="error",Te)}function Pe(Ge,kt,$e){return Ge!="endTag"?(gt="error",Pe):(se($e),ve)}function Te(Ge,kt,$e){return gt="error",Pe(Ge,kt,$e)}function Ke(Ge,kt,$e){if(Ge=="word")return gt="attribute",et;if(Ge=="endTag"||Ge=="selfcloseTag"){var zt=$e.tagName,Ht=$e.tagStart;return $e.tagName=$e.tagStart=null,Ge=="selfcloseTag"||Ne.autoSelfClosers.hasOwnProperty(zt)?ge($e,zt):(ge($e,zt),$e.context=new ce($e,zt,Ht==$e.indented)),ve}return gt="error",Ke}function et(Ge,kt,$e){return Ge=="equals"?Xe:(Ne.allowMissing||(gt="error"),Ke(Ge,kt,$e))}function Xe(Ge,kt,$e){return Ge=="string"?ft:Ge=="word"&&Ne.allowUnquoted?(gt="string",Ke):(gt="error",Ke(Ge,kt,$e))}function ft(Ge,kt,$e){return Ge=="string"?ft:Ke(Ge,kt,$e)}return{startState:function(Ge){var kt={tokenize:dt,state:ve,indented:Ge||0,tagName:null,tagStart:null,context:null};return Ge!=null&&(kt.baseIndent=Ge),kt},token:function(Ge,kt){if(!kt.tagName&&Ge.sol()&&(kt.indented=Ge.indentation()),Ge.eatSpace())return null;qe=null;var $e=kt.tokenize(Ge,kt);return($e||qe)&&$e!="comment"&&(gt=null,kt.state=kt.state(qe||$e,Ge,kt),gt&&($e=gt=="error"?$e+" error":gt)),$e},indent:function(Ge,kt,$e){var zt=Ge.context;if(Ge.tokenize.isInAttribute)return Ge.tagStart==Ge.indented?Ge.stringStartCol+1:Ge.indented+vt;if(zt&&zt.noIndent)return xe.Pass;if(Ge.tokenize!=Ct&&Ge.tokenize!=dt)return $e?$e.match(/^(\s*)/)[0].length:0;if(Ge.tagName)return Ne.multilineTagIndentPastTag!==!1?Ge.tagStart+Ge.tagName.length+2:Ge.tagStart+vt*(Ne.multilineTagIndentFactor||1);if(Ne.alignCDATA&&/<!\[CDATA\[/.test(kt))return 0;var Ht=kt&&/^<(\/)?([\w_:\.-]*)/.exec(kt);if(Ht&&Ht[1])for(;zt;)if(zt.tagName==Ht[2]){zt=zt.prev;break}else if(Ne.implicitlyClosed.hasOwnProperty(zt.tagName))zt=zt.prev;else break;else if(Ht)for(;zt;){var Yt=Ne.contextGrabbers[zt.tagName];if(Yt&&Yt.hasOwnProperty(Ht[2]))zt=zt.prev;else break}for(;zt&&zt.prev&&!zt.startOfLine;)zt=zt.prev;return zt?zt.indent+vt:Ge.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ne.htmlMode?"html":"xml",helperType:Ne.htmlMode?"html":"xml",skipAttribute:function(Ge){Ge.state==Xe&&(Ge.state=Ke)},xmlCurrentTag:function(Ge){return Ge.tagName?{name:Ge.tagName,close:Ge.type=="closeTag"}:null},xmlCurrentContext:function(Ge){for(var kt=[],$e=Ge.context;$e;$e=$e.prev)$e.tagName&&kt.push($e.tagName);return kt.reverse()}}}),xe.defineMIME("text/xml","xml"),xe.defineMIME("application/xml","xml"),xe.mimeModes.hasOwnProperty("text/html")||xe.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(In,Fn,ye){"use strict";ye.d(Fn,{$u:function(){return Ft},BD:function(){return Si},E9:function(){return Tt},FF:function(){return Ti},FJ:function(){return ve},Hn:function(){return ge},KX:function(){return ke},NB:function(){return Be},S0:function(){return St},UL:function(){return qe},Vk:function(){return se},Vm:function(){return me},YI:function(){return Vn},ZA:function(){return We},Zt:function(){return gt},al:function(){return ze},bn:function(){return ct},bx:function(){return Bn},g2:function(){return Cn},h1:function(){return Xe},hD:function(){return Ri},l4:function(){return vt},rU:function(){return we},s_:function(){return tn},uz:function(){return Ve},z6:function(){return dt}}),In=ye.hmd(In),function(){var Ee;function cr(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function Xi(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:cr(a)}}function yn(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var oi=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},Ci;if(typeof Object.setPrototypeOf=="function")Ci=Object.setPrototypeOf;else{var xn;e:{var on={a:!0},yt={};try{yt.__proto__=on,xn=yt.a;break e}catch(a){}xn=!1}Ci=xn?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var Et=Ci;function Lt(a,y){if(a.prototype=oi(y.prototype),a.prototype.constructor=a,Et)Et(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 tt=typeof ye.g!="undefined"&&ye.g!=null?ye.g:self,en=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},fn=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function xt(a,y){if(y){var x=tt;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&&fn(x,a,{writable:!0,value:y})}}xt("Object.assign",function(a){return a||en}),xt("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 Ue=typeof globalThis=="object"&&globalThis||typeof ye.g=="object"&&ye.g.global===ye.g&&ye.g||typeof self=="object"&&self.self===self&&self||{};Ue.requestAnimationFrame===void 0&&(Ue.setImmediate===void 0?Ue.requestAnimationFrame=function(a){Ue.setTimeout(a,0)}:Ue.requestAnimationFrame=Ue.setImmediate);function an(){}function Dt(a,y){var x=-1;return function(){var b=this,E=arguments;x!==-1&&Ue.clearTimeout(x),x=Rn(function(){x=-1,a.apply(b,E)},y)}}function Rn(a,y){return Ue.setTimeout(a,y)}function dn(a){return Ue.document.createElement(a)}function Pt(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),Pt(a)}function Qn(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),Pt(x+" is not in the range "+y+": "+a)}function Xn(a){Ue.console&&Ue.console.log(a)}function Rt(a){return typeof a=="object"&&a!==null}function vn(a){return Array.isArray(a)||Ue.NodeList&&a instanceof Ue.NodeList||Ue.HTMLCollection&&a instanceof Ue.HTMLCollection}function bi(a){return Array.prototype.slice.call(a)}function vi(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):Pt("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function pi(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):Pt("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function ei(){var a=Pr.pop();return a===void 0?[]:a}function yi(a){a.length=0,Pr.push(a)}function Fi(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(Rt(a)&&a.constructor)return Fi(a.constructor);return typeof a}function Ki(a){var y=a;return Rt(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 hr(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 Gn(a,y,x){Object.defineProperty(ti.prototype,a,{get:y,set:x})}function Li(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 z="",ee=0;ee<a.length;ee++)x=(x+1)%256,b=(b+y[x])%256,E=y[x],y[x]=y[b],y[b]=E,z+=String.fromCharCode(a.charCodeAt(ee)^y[(y[x]+y[b])%256]);return z.indexOf("GoJS 2.1 evaluation")>-1||z.indexOf("\xA9 1998-2021 Northwoods Software")>-1||z.indexOf("Not for distribution or production use")>-1||z.indexOf("gojs.net")>-1?"":z}var Lr=Ue.navigator!==void 0&&0<Ue.navigator.userAgent.indexOf("Trident/7"),Dr=Ue.navigator!==void 0&&Ue.navigator.platform!==void 0&&Ue.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,Pr=[];Object.freeze([]),an.className="Util",an.Dx="32ab5ff3b26f42dc0ed90f21472913b5",an.adym="gojs.net",an.vfo="28e645fdb266",an.className="Util";function Xt(a,y,x){yr(this),this.j=a,this.xa=y,this.o=x}Xt.prototype.toString=function(){return"EnumValue."+this.xa};function Mi(a,y){return y==null||y===""?null:a[y]}tt.Object.defineProperties(Xt.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),Xt.className="EnumValue";function ar(){this.ew=[]}ar.prototype.toString=function(){return this.ew.join("")},ar.prototype.add=function(a){a!==""&&this.ew.push(a)},ar.className="StringBuilder";function Wi(){}Wi.className="PropertyCollection";var Mr={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){Ue.console&&Ue.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 z=Object.getOwnPropertyDescriptor(b.prototype,y.Zl[E.Tj]);z.get!==void 0&&z.set===void 0&&Object.defineProperty(b.prototype,y.Zl[E.Tj],{set:function(ee,re){return function(){throw Error("Property "+ee.Zl[re.Tj]+" of "+ee.x+" is read-only.")}}(y,E)})}}}y={Zl:y.Zl,x:y.x}}}};function fr(){}fr.prototype.reset=function(){},fr.prototype.next=function(){return!1},fr.prototype.Ad=function(){return!1},fr.prototype.first=function(){return null},fr.prototype.any=function(){return!1},fr.prototype.all=function(){return!0},fr.prototype.each=function(){return this},fr.prototype.map=function(){return this},fr.prototype.filter=function(){return this},fr.prototype.de=function(){},fr.prototype.toString=function(){return"EmptyIterator"},tt.Object.defineProperties(fr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),fr.prototype.first=fr.prototype.first,fr.prototype.hasNext=fr.prototype.Ad,fr.prototype.next=fr.prototype.next,fr.prototype.reset=fr.prototype.reset;var Br=null;fr.className="EmptyIterator",Br=new fr;function Oi(a){this.key=-1,this.value=a}Oi.prototype.reset=function(){this.key=-1},Oi.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Oi.prototype.Ad=function(){return this.next()},Oi.prototype.first=function(){return this.key=0,this.value},Oi.prototype.any=function(a){return this.key=-1,a(this.value)},Oi.prototype.all=function(a){return this.key=-1,a(this.value)},Oi.prototype.each=function(a){return this.key=-1,a(this.value),this},Oi.prototype.map=function(a){return new Oi(a(this.value))},Oi.prototype.filter=function(a){return a(this.value)?new Oi(this.value):Br},Oi.prototype.de=function(){this.value=null},Oi.prototype.toString=function(){return"SingletonIterator("+this.value+")"},tt.Object.defineProperties(Oi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),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="SingletonIterator";function $i(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}$i.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},$i.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},$i.prototype.Ad=function(){return this.next()},$i.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},$i.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 z=y[E];if((b===null||b(z))&&a(z))return!0}return!1},$i.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 z=y[E];if((b===null||b(z))&&!a(z))return!1}return!0},$i.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 z=y[E];(b===null||b(z))&&a(z)}return this},$i.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,z=0;z<b;z++){var ee=y[z];(E===null||E(ee))&&x.push(a(ee))}return a=new Mn,a.s=x,a.xb(),a.iterator},$i.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,z=0;z<b;z++){var ee=y[z];(E===null||E(ee))&&a(ee)&&x.push(ee)}return a=new Mn,a.s=x,a.xb(),a.iterator},$i.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},$i.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},tt.Object.defineProperties($i.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}}}),$i.prototype.first=$i.prototype.first,$i.prototype.hasNext=$i.prototype.Ad,$i.prototype.next=$i.prototype.next,$i.prototype.reset=$i.prototype.reset,$i.className="ListIterator";function nr(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}nr.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},nr.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)},nr.prototype.Ad=function(){return this.next()},nr.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},nr.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},nr.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},nr.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},nr.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 Mn,a.s=x,a.xb(),a.iterator},nr.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 Mn,a.s=x,a.xb(),a.iterator},nr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},nr.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},tt.Object.defineProperties(nr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),nr.prototype.first=nr.prototype.first,nr.prototype.hasNext=nr.prototype.Ad,nr.prototype.next=nr.prototype.next,nr.prototype.reset=nr.prototype.reset,nr.className="ListIteratorBackwards";function Mn(a){yr(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&Pt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ee=Mn.prototype,Ee.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Ee.freeze=function(){return this._isFrozen=!0,this},Ee.ka=function(){return this._isFrozen=!1,this},Ee.toString=function(){return"List()#"+xr(this)},Ee.add=function(a){return a===null?this:(this._isFrozen&&Sn(this,a),this.s.push(a),this.xb(),this)},Ee.push=function(a){this.add(a)},Ee.addAll=function(a){if(a===null)return this;this._isFrozen&&Sn(this);var y=this.s;if(vn(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},Ee.clear=function(){this._isFrozen&&Sn(this),this.s.length=0,this.xb()},Ee.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},Ee.has=function(a){return this.contains(a)},Ee.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},Ee.M=function(a){var y=this.s;return(0>a||a>=y.length)&&Qn(a,"0 <= i < length",Mn,"elt:i"),y[a]},Ee.get=function(a){return this.M(a)},Ee.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Qn(a,"0 <= i < length",Mn,"setElt:i"),this._isFrozen&&Sn(this,a),x[a]=y},Ee.set=function(a,y){this.cd(a,y)},Ee.first=function(){var a=this.s;return a.length===0?null:a[0]},Ee.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},Ee.pop=function(){this._isFrozen&&Sn(this);var a=this.s;return 0<a.length?a.pop():null},Mn.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},Mn.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},Mn.prototype.each=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)a(y[b]);return this},Mn.prototype.map=function(a){for(var y=new Mn,x=[],b=this.s,E=b.length,z=0;z<E;z++)x.push(a(b[z]));return y.s=x,y.xb(),y},Mn.prototype.filter=function(a){for(var y=new Mn,x=[],b=this.s,E=b.length,z=0;z<E;z++){var ee=b[z];a(ee)&&x.push(ee)}return y.s=x,y.xb(),y},Ee=Mn.prototype,Ee.Gb=function(a,y){0>a&&Qn(a,">= 0",Mn,"insertAt:i"),this._isFrozen&&Sn(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Ee.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)},Ee.delete=function(a){return this.remove(a)},Ee.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Qn(a,"0 <= i < length",Mn,"removeAt:i"),this._isFrozen&&Sn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Ee.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,z=y+1;z<b;)x[E++]=x[z++];return x.length=b-(y-a+1),this.xb(),this},Mn.prototype.copy=function(){var a=new Mn,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},Ee=Mn.prototype,Ee.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),b=0;b<y;b++)x[b]=a[b];return x},Ee.Iv=function(){for(var a=new An,y=this.s,x=this.count,b=0;b<x;b++)a.add(y[b]);return a},Ee.sort=function(a){return this._isFrozen&&Sn(this),this.s.sort(a),this.xb(),this},Ee.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 z=x-y;if(1>=z)return this;if((0>y||y>=E-1)&&Qn(y,"0 <= from < length",Mn,"sortRange:from"),z===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},Ee.reverse=function(){return this._isFrozen&&Sn(this),this.s.reverse(),this.xb(),this},tt.Object.defineProperties(Mn.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 Br;var a=this.Sa;return a!==null?(a.reset(),a):new $i(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Br;var a=this.Hg;return a!==null?(a.reset(),a):new nr(this)}}}),Mn.prototype.reverse=Mn.prototype.reverse,Mn.prototype.sortRange=Mn.prototype.zi,Mn.prototype.sort=Mn.prototype.sort,Mn.prototype.toSet=Mn.prototype.Iv,Mn.prototype.toArray=Mn.prototype.Fa,Mn.prototype.removeRange=Mn.prototype.removeRange,Mn.prototype.removeAt=Mn.prototype.mb,Mn.prototype.delete=Mn.prototype.delete,Mn.prototype.remove=Mn.prototype.remove,Mn.prototype.insertAt=Mn.prototype.Gb,Mn.prototype.pop=Mn.prototype.pop,Mn.prototype.last=Mn.prototype.jc,Mn.prototype.first=Mn.prototype.first,Mn.prototype.set=Mn.prototype.set,Mn.prototype.setElt=Mn.prototype.cd,Mn.prototype.get=Mn.prototype.get,Mn.prototype.elt=Mn.prototype.M,Mn.prototype.indexOf=Mn.prototype.indexOf,Mn.prototype.has=Mn.prototype.has,Mn.prototype.contains=Mn.prototype.contains,Mn.prototype.clear=Mn.prototype.clear,Mn.prototype.addAll=Mn.prototype.addAll,Mn.prototype.push=Mn.prototype.push,Mn.prototype.add=Mn.prototype.add,Mn.prototype.thaw=Mn.prototype.ka,Mn.prototype.freeze=Mn.prototype.freeze,Mn.className="List";function Tr(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Tr.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},Tr.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)},Tr.prototype.Ad=function(){return this.next()},Tr.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},Tr.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},Tr.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},Tr.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},Tr.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new Mn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Tr.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new Mn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},Tr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Tr.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},tt.Object.defineProperties(Tr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),Tr.prototype.first=Tr.prototype.first,Tr.prototype.hasNext=Tr.prototype.Ad,Tr.prototype.next=Tr.prototype.next,Tr.prototype.reset=Tr.prototype.reset,Tr.className="SetIterator";function An(a){yr(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&Pt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ee=An.prototype,Ee.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Ee.freeze=function(){return this._isFrozen=!0,this},Ee.ka=function(){return this._isFrozen=!1,this},Ee.toString=function(){return"Set()#"+xr(this)},Ee.add=function(a){if(a===null)return this;this._isFrozen&&Sn(this,a);var y=a;return Rt(a)&&(y=_r(a)),this.Tb[y]===void 0&&(this.Sb++,a=new pr(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},Ee.addAll=function(a){if(a===null)return this;if(this._isFrozen&&Sn(this),vn(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},Ee.contains=function(a){if(a===null)return!1;var y=a;return Rt(a)&&(y=xr(a),y===void 0)?!1:this.Tb[y]!==void 0},Ee.has=function(a){return this.contains(a)},Ee.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},Ee.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},Ee.first=function(){var a=this.ea;return a===null?null:a.value},An.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},An.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},An.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},An.prototype.map=function(a){for(var y=new An,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},An.prototype.filter=function(a){for(var y=new An,x=this.ea;x!==null;){var b=x.value;a(b)&&y.add(b),x=x.va}return y},Ee=An.prototype,Ee.remove=function(a){if(a===null)return!1;this._isFrozen&&Sn(this,a);var y=a;if(Rt(a)&&(y=xr(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},Ee.delete=function(a){return this.remove(a)},Ee.hp=function(a){if(a===null)return this;if(this._isFrozen&&Sn(this),vn(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},Ee.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&Sn(this);var y=new An;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},Ee.clear=function(){this._isFrozen&&Sn(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},An.prototype.copy=function(){var a=new An,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},An.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},An.prototype.Hv=function(){var a=new Mn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function yr(a){a.__gohashid=Ho++}function _r(a){var y=a.__gohashid;return y===void 0&&(y=Ho++,a.__gohashid=y),y}function xr(a){return a.__gohashid}tt.Object.defineProperties(An.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Br;var a=this.Sa;return a!==null?(a.reset(),a):new Tr(this)}}}),An.prototype.toList=An.prototype.Hv,An.prototype.toArray=An.prototype.Fa,An.prototype.clear=An.prototype.clear,An.prototype.retainAll=An.prototype.pA,An.prototype.removeAll=An.prototype.hp,An.prototype.delete=An.prototype.delete,An.prototype.remove=An.prototype.remove,An.prototype.first=An.prototype.first,An.prototype.containsAny=An.prototype.Ty,An.prototype.containsAll=An.prototype.Sy,An.prototype.has=An.prototype.has,An.prototype.contains=An.prototype.contains,An.prototype.addAll=An.prototype.addAll,An.prototype.add=An.prototype.add,An.prototype.thaw=An.prototype.ka,An.prototype.freeze=An.prototype.freeze;var Ho=1;An.className="Set",An.uniqueHash=yr,An.hashIdUnique=_r,An.hashId=xr;function ho(a){this.ma=a,this.qa=a.Ja,this.sa=null}ho.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},ho.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)},ho.prototype.Ad=function(){return this.next()},ho.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},ho.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},ho.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},ho.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},ho.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new Mn;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},ho.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new Mn;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},ho.prototype.de=function(){this.value=this.key=null,this.qa=-1},ho.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},tt.Object.defineProperties(ho.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),ho.prototype.first=ho.prototype.first,ho.prototype.hasNext=ho.prototype.Ad,ho.prototype.next=ho.prototype.next,ho.prototype.reset=ho.prototype.reset,ho.className="MapKeySetIterator";function Sr(a){An.call(this),yr(this),this._isFrozen=!0,this.ma=a}Lt(Sr,An),Ee=Sr.prototype,Ee.freeze=function(){return this},Ee.ka=function(){return this},Ee.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Ee.add=function(){Pt("This Set is read-only: "+this.toString())},Ee.contains=function(a){return this.ma.contains(a)},Ee.has=function(a){return this.contains(a)},Ee.remove=function(){Pt("This Set is read-only: "+this.toString())},Ee.delete=function(a){return this.remove(a)},Ee.clear=function(){Pt("This Set is read-only: "+this.toString())},Ee.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 An,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 An,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 An,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 Mn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},tt.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?Br:new ho(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 gr(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}gr.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},gr.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)},gr.prototype.Ad=function(){return this.next()},gr.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},gr.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},gr.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},gr.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},gr.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Mn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},gr.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Mn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},gr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},gr.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},tt.Object.defineProperties(gr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),gr.prototype.first=gr.prototype.first,gr.prototype.hasNext=gr.prototype.Ad,gr.prototype.next=gr.prototype.next,gr.prototype.reset=gr.prototype.reset,gr.className="MapValueSetIterator";function pr(a,y){this.key=a,this.value=y,this.ll=this.va=null}pr.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},pr.className="KeyValuePair";function Yr(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Yr.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},Yr.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)},Yr.prototype.Ad=function(){return this.next()},Yr.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},Yr.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},Yr.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},Yr.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},Yr.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Mn;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},Yr.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Mn;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},Yr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},Yr.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},tt.Object.defineProperties(Yr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Yr.prototype.first=Yr.prototype.first,Yr.prototype.hasNext=Yr.prototype.Ad,Yr.prototype.next=Yr.prototype.next,Yr.prototype.reset=Yr.prototype.reset,Yr.className="MapIterator";function zi(a){yr(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"&&Pt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ee=zi.prototype,Ee.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Ee.freeze=function(){return this._isFrozen=!0,this},Ee.ka=function(){return this._isFrozen=!1,this},Ee.toString=function(){return"Map()#"+xr(this)},Ee.add=function(a,y){this._isFrozen&&Sn(this,a);var x=a;Rt(a)&&(x=_r(a));var b=this.Tb[x];return b===void 0?(this.Sb++,a=new pr(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},Ee.set=function(a,y){return this.add(a,y)},Ee.addAll=function(a){if(a===null)return this;if(vn(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 zi)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},Ee.first=function(){return this.ea},zi.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},zi.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},zi.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},zi.prototype.map=function(a){for(var y=new zi,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},zi.prototype.filter=function(a){for(var y=new zi,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},Ee=zi.prototype,Ee.contains=function(a){var y=a;return Rt(a)&&(y=xr(a),y===void 0)?!1:this.Tb[y]!==void 0},Ee.has=function(a){return this.contains(a)},Ee.I=function(a){var y=a;return Rt(a)&&(y=xr(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},Ee.get=function(a){return this.I(a)},Ee.remove=function(a){if(a===null)return!1;this._isFrozen&&Sn(this,a);var y=a;if(Rt(a)&&(y=xr(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},Ee.delete=function(a){return this.remove(a)},Ee.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()},zi.prototype.copy=function(){var a=new zi,y=this.Tb,x;for(x in y){var b=y[x];a.add(b.key,b.value)}return a},zi.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 pr(E.key,E.value),x++}return y},zi.prototype.Lf=function(){return new Sr(this)},tt.Object.defineProperties(zi.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Br;var a=this.Sa;return a!==null?(a.reset(),a):new Yr(this)}},iteratorKeys:{get:function(){return 0>=this.count?Br:new ho(this)}},iteratorValues:{get:function(){if(0>=this.count)return Br;var a=this.jf;return a!==null?(a.reset(),a):new gr(this)}}}),zi.prototype.toKeySet=zi.prototype.Lf,zi.prototype.toArray=zi.prototype.Fa,zi.prototype.clear=zi.prototype.clear,zi.prototype.delete=zi.prototype.delete,zi.prototype.remove=zi.prototype.remove,zi.prototype.get=zi.prototype.get,zi.prototype.getValue=zi.prototype.I,zi.prototype.has=zi.prototype.has,zi.prototype.contains=zi.prototype.contains,zi.prototype.first=zi.prototype.first,zi.prototype.addAll=zi.prototype.addAll,zi.prototype.set=zi.prototype.set,zi.prototype.add=zi.prototype.add,zi.prototype.thaw=zi.prototype.ka,zi.prototype.freeze=zi.prototype.freeze,zi.className="Map";function Je(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):Pt("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var pt,Ot,cn,jn,Dn;Je.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Je.prototype.h=function(a,y){return this.x=a,this.y=y,this},Je.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Je.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Je.prototype.copy=function(){var a=new Je;return a.x=this.x,a.y=this.y,a},Ee=Je.prototype,Ee.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ee.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ee.freeze=function(){return this._isFrozen=!0,this},Ee.ka=function(){return Object.isFrozen(this)&&Pt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Wt(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 Je(x,E)}return new Je}function kn(a){return a.x.toString()+" "+a.y.toString()}Ee.toString=function(){return"Point("+this.x+","+this.y+")"},Ee.D=function(a){return a instanceof Je?this.x===a.x&&this.y===a.y:!1},Ee.hi=function(a,y){return this.x===a&&this.y===y},Ee.Xa=function(a){return Zt.B(this.x,a.x)&&Zt.B(this.y,a.y)},Ee.add=function(a){return this.x+=a.x,this.y+=a.y,this},Ee.re=function(a){return this.x-=a.x,this.y-=a.y,this},Ee.offset=function(a,y){return this.x+=a,this.y+=y,this},Je.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},Ee=Je.prototype,Ee.scale=function(a,y){return this.x*=a,this.y*=y,this},Ee.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Ee.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Ee.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},Ee.ab=function(a){return ai(a.x-this.x,a.y-this.y)},Ee.direction=function(a,y){return ai(a-this.x,y-this.y)};function ai(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}Ee.Ry=function(a,y){return Zt.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Ee.fA=function(a,y,x,b){return Zt.qh(a,y,x,b,this.x,this.y,this),this},Ee.gA=function(a,y){return Zt.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Ee.uA=function(a,y,x,b){return Zt.No(this.x,this.y,a,y,x,b,this),this},Ee.vA=function(a,y){return Zt.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Ee.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},Ee.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},Ee.transform=function(a){return a.Ga(this),this};function $n(a,y){return y.Cd(a),a}function Ii(a,y,x,b,E,z){var ee=E-x,re=z-b,oe=ee*ee+re*re;x-=a,b-=y;var le=-x*ee-b*re;return 0>=le||le>=oe?(ee=E-a,re=z-y,Math.min(x*x+b*b,ee*ee+re*re)):(a=ee*b-re*x,a*a/oe)}function Bi(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function gi(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)}Ee.w=function(){return isFinite(this.x)&&isFinite(this.y)},Je.alloc=function(){var a=Yi.pop();return a===void 0?new Je:a},Je.allocAt=function(a,y){var x=Yi.pop();return x===void 0?new Je(a,y):(x.x=a,x.y=y,x)},Je.free=function(a){Yi.push(a)},Je.prototype.isReal=Je.prototype.w,Je.prototype.setSpot=Je.prototype.yi,Je.prototype.setRectSpot=Je.prototype.xi,Je.prototype.snapToGridPoint=Je.prototype.vA,Je.prototype.snapToGrid=Je.prototype.uA,Je.prototype.projectOntoLineSegmentPoint=Je.prototype.gA,Je.prototype.projectOntoLineSegment=Je.prototype.fA,Je.intersectingLineSegments=function(a,y,x,b,E,z,ee,re){return Zt.Rl(a,y,x,b,E,z,ee,re)},Je.prototype.compareWithLineSegmentPoint=Je.prototype.Ry,Je.compareWithLineSegment=function(a,y,x,b,E,z){return Zt.Fl(a,y,x,b,E,z)},Je.prototype.direction=Je.prototype.direction,Je.prototype.directionPoint=Je.prototype.ab,Je.prototype.normalize=Je.prototype.normalize,Je.prototype.distanceSquared=Je.prototype.zd,Je.prototype.distanceSquaredPoint=Je.prototype.Bf,Je.prototype.scale=Je.prototype.scale,Je.prototype.rotate=Je.prototype.rotate,Je.prototype.offset=Je.prototype.offset,Je.prototype.subtract=Je.prototype.re,Je.prototype.add=Je.prototype.add,Je.prototype.equalsApprox=Je.prototype.Xa,Je.prototype.equalTo=Je.prototype.hi,Je.prototype.equals=Je.prototype.D,Je.prototype.set=Je.prototype.set,Je.prototype.setTo=Je.prototype.sg;var Yi=[];Je.className="Point",Je.parse=Wt,Je.stringify=kn,Je.distanceLineSegmentSquared=Ii,Je.distanceSquared=Bi,Je.direction=gi,Je.Origin=pt=new Je(0,0).ja(),Je.InfiniteTopLeft=Ot=new Je(-1/0,-1/0).ja(),Je.InfiniteBottomRight=cn=new Je(1/0,1/0).ja(),Je.SixPoint=jn=new Je(6,6).ja(),Je.NoPoint=Dn=new Je(NaN,NaN).ja(),Je.parse=Wt,Je.stringify=kn,Je.distanceLineSegmentSquared=Ii,Je.distanceSquared=Bi,Je.direction=gi;function On(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):Pt("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var $r,Ur,Ao,eo,qr,no,$o;On.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},On.prototype.h=function(a,y){return this.width=a,this.height=y,this},On.prototype.sg=function(a,y){return this.width=a,this.height=y,this},On.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},On.prototype.copy=function(){var a=new On;return a.width=this.width,a.height=this.height,a},Ee=On.prototype,Ee.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ee.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ee.freeze=function(){return this._isFrozen=!0,this},Ee.ka=function(){return Object.isFrozen(this)&&Pt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Qo(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 On(x,E)}return new On}function pa(a){return a.width.toString()+" "+a.height.toString()}Ee.toString=function(){return"Size("+this.width+","+this.height+")"},Ee.D=function(a){return a instanceof On?this.width===a.width&&this.height===a.height:!1},Ee.hi=function(a,y){return this.width===a&&this.height===y},Ee.Xa=function(a){return Zt.B(this.width,a.width)&&Zt.B(this.height,a.height)},Ee.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},Ee.w=function(){return isFinite(this.width)&&isFinite(this.height)},On.alloc=function(){var a=qo.pop();return a===void 0?new On:a},On.free=function(a){qo.push(a)},On.prototype.isReal=On.prototype.w,On.prototype.inflate=On.prototype.Bc,On.prototype.equalsApprox=On.prototype.Xa,On.prototype.equalTo=On.prototype.hi,On.prototype.equals=On.prototype.D,On.prototype.set=On.prototype.set,On.prototype.setTo=On.prototype.sg;var qo=[];On.className="Size",On.parse=Qo,On.stringify=pa,On.ZeroSize=$r=new On(0,0).ja(),On.OneSize=Ur=new On(1,1).ja(),On.SixSize=Ao=new On(6,6).ja(),On.EightSize=eo=new On(8,8).ja(),On.TenSize=qr=new On(10,10).ja(),On.InfiniteSize=no=new On(1/0,1/0).ja(),On.NoSize=$o=new On(NaN,NaN).ja(),On.parse=Qo,On.stringify=pa;function Pn(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 Je?(x=a.x,a=a.y,y instanceof Je?(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 On?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):Pt("Incorrect second argument supplied to Rect constructor "+y)):Pt("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Ee=Pn.prototype,Ee.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ee.h=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this};function ca(a,y,x){a.width=y,a.height=x}Ee.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},Ee.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ee.dd=function(a){return this.x=a.x,this.y=a.y,this},Ee.tA=function(a){return this.width=a.width,this.height=a.height,this},Pn.prototype.copy=function(){var a=new Pn;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Ee=Pn.prototype,Ee.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ee.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ee.freeze=function(){return this._isFrozen=!0,this},Ee.ka=function(){return Object.isFrozen(this)&&Pt("cannot thaw constant: "+this),this._isFrozen=!1,this};function es(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;(b=a[y++])&&(E=parseFloat(b));for(var z=0;a[y]==="";)y++;(b=a[y++])&&(z=parseFloat(b));for(var ee=0;a[y]==="";)y++;return(b=a[y++])&&(ee=parseFloat(b)),new Pn(x,E,z,ee)}return new Pn}function ts(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Ee.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Ee.D=function(a){return a instanceof Pn?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Ee.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},Ee.Xa=function(a){return Zt.B(this.x,a.x)&&Zt.B(this.y,a.y)&&Zt.B(this.width,a.width)&&Zt.B(this.height,a.height)};function Ga(a,y){return Zt.$(a.x,y.x)&&Zt.$(a.y,y.y)&&Zt.$(a.width,y.width)&&Zt.$(a.height,y.height)}Ee.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Ee.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},Ee.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},Ee.offset=function(a,y){return this.x+=a,this.y+=y,this},Ee.Bc=function(a,y){return Ds(this,y,a,y,a)},Ee.Co=function(a){return Ds(this,a.top,a.right,a.bottom,a.left)},Ee.Fv=function(a){return Ds(this,-a.top,-a.right,-a.bottom,-a.left)},Ee.Hz=function(a,y,x,b){return Ds(this,a,y,x,b)};function Ds(a,y,x,b,E){var z=a.width;return x+E<=-z?(a.x+=z/2,a.width=0):(a.x-=E,a.width+=x+E),x=a.height,y+b<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+b),a}Ee.Ex=function(a){return pl(this,a.x,a.y,a.width,a.height)},Ee.Uu=function(a,y,x,b){return pl(this,a,y,x,b)};function pl(a,y,x,b,E){var z=Math.max(a.x,y),ee=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+b),x=Math.min(a.y+a.height,x+E),a.x=z,a.y=ee,a.width=Math.max(0,y-z),a.height=Math.max(0,x-ee),a}Ee.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Ee.Vu=function(a,y,x,b){var E=this.width,z=this.x;return E!==1/0&&x!==1/0&&(E+=z,x+=a,isNaN(x)||isNaN(E)||z>x||a>E)?!1:(a=this.height,x=this.y,!(a!==1/0&&b!==1/0&&(a+=x,b+=y,isNaN(b)||isNaN(a)||x>b||y>a)))};function ma(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))}Ee.Ye=function(a){return ko(this,a.x,a.y,0,0)},Ee.ed=function(a){return ko(this,a.x,a.y,a.width,a.height)},Ee.Kv=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),ko(this,a,y,x,b)};function ko(a,y,x,b,E){var z=Math.min(a.x,y),ee=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+b),x=Math.max(a.y+a.height,x+E),a.x=z,a.y=ee,a.width=y-z,a.height=x-ee,a}Ee.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 Oo(a,y,x,b,E,z,ee,re){return ee===void 0&&(ee=0),re===void 0&&(re=0),a<=E&&E+ee<=a+x&&y<=z&&z+re<=y+b}function Pa(a,y,x,b,E,z,ee,re){return a>ee+E||E>x+a?!1:!(y>re+z||z>b+y)}Ee.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Ee.Mz=function(){return this.width===0&&this.height===0},Pn.alloc=function(){var a=ao.pop();return a===void 0?new Pn:a},Pn.allocAt=function(a,y,x,b){var E=ao.pop();return E===void 0?new Pn(a,y,x,b):E.h(a,y,x,b)},Pn.free=function(a){ao.push(a)},tt.Object.defineProperties(Pn.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 Je(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new On(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Je(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}}}),Pn.prototype.isEmpty=Pn.prototype.Mz,Pn.prototype.isReal=Pn.prototype.w,Pn.intersectsLineSegment=function(a,y,x,b,E,z,ee,re){return Zt.Fx(a,y,x,b,E,z,ee,re)},Pn.prototype.setSpot=Pn.prototype.yi,Pn.prototype.union=Pn.prototype.Kv,Pn.prototype.unionRect=Pn.prototype.ed,Pn.prototype.unionPoint=Pn.prototype.Ye,Pn.prototype.intersects=Pn.prototype.Vu,Pn.prototype.intersectsRect=Pn.prototype.Yc,Pn.prototype.intersect=Pn.prototype.Uu,Pn.prototype.intersectRect=Pn.prototype.Ex,Pn.prototype.grow=Pn.prototype.Hz,Pn.prototype.subtractMargin=Pn.prototype.Fv,Pn.prototype.addMargin=Pn.prototype.Co,Pn.prototype.inflate=Pn.prototype.Bc,Pn.prototype.offset=Pn.prototype.offset,Pn.prototype.contains=Pn.prototype.contains,Pn.prototype.containsRect=Pn.prototype.Re,Pn.prototype.containsPoint=Pn.prototype.ca,Pn.prototype.equalsApprox=Pn.prototype.Xa,Pn.prototype.equalTo=Pn.prototype.hi,Pn.prototype.equals=Pn.prototype.D,Pn.prototype.setSize=Pn.prototype.tA,Pn.prototype.setPoint=Pn.prototype.dd,Pn.prototype.set=Pn.prototype.set,Pn.prototype.setTo=Pn.prototype.sg;var io=null,No=null,ao=[];Pn.className="Rect",Pn.parse=es,Pn.stringify=ts,Pn.contains=Oo,Pn.intersects=Pa,Pn.ZeroRect=io=new Pn(0,0,0,0).ja(),Pn.NoRect=No=new Pn(NaN,NaN,NaN,NaN).ja(),Pn.parse=es,Pn.stringify=ts,Pn.contains=Oo,Pn.intersects=Pa;function Gi(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):Pt("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Gi.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Gi.prototype.sg=function(a,y,x,b){return this.top=a,this.right=y,this.bottom=x,this.left=b,this},Gi.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Gi.prototype.copy=function(){var a=new Gi;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Ee=Gi.prototype,Ee.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ee.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ee.freeze=function(){return this._isFrozen=!0,this},Ee.ka=function(){return Object.isFrozen(this)&&Pt("cannot thaw constant: "+this),this._isFrozen=!1,this};function ha(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 Gi;for(var E=NaN;a[y]==="";)y++;if((b=a[y++])&&(E=parseFloat(b)),isNaN(E))return new Gi(x);for(var z=NaN;a[y]==="";)y++;if((b=a[y++])&&(z=parseFloat(b)),isNaN(z))return new Gi(x,E);for(var ee=NaN;a[y]==="";)y++;return(b=a[y++])&&(ee=parseFloat(b)),isNaN(ee)?new Gi(x,E):new Gi(x,E,z,ee)}return new Gi}function Fa(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Ee.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Ee.D=function(a){return a instanceof Gi?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Ee.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},Ee.Xa=function(a){return Zt.B(this.top,a.top)&&Zt.B(this.right,a.right)&&Zt.B(this.bottom,a.bottom)&&Zt.B(this.left,a.left)},Ee.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Gi.alloc=function(){var a=nl.pop();return a===void 0?new Gi:a},Gi.free=function(a){nl.push(a)},Gi.prototype.isReal=Gi.prototype.w,Gi.prototype.equalsApprox=Gi.prototype.Xa,Gi.prototype.equalTo=Gi.prototype.hi,Gi.prototype.equals=Gi.prototype.D,Gi.prototype.set=Gi.prototype.set,Gi.prototype.setTo=Gi.prototype.sg;var Bs=null,ys=null,nl=[];Gi.className="Margin",Gi.parse=ha,Gi.stringify=Fa,Gi.ZeroMargin=Bs=new Gi(0,0,0,0).ja(),Gi.TwoMargin=ys=new Gi(2,2,2,2).ja(),Gi.parse=ha,Gi.stringify=Fa;function Ui(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 Da,ga,Is,ml,Gl,xo,Au,il,Nl,vl,fu,yl,rl,Sl,oc,Sc,xc,Qc,gu,zl,xl,Tl,pu,wc,mu,Xo,va,dl,Cs,Ss,os,hs,Ls,xs,Ks,Ts;Ui.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Ui.prototype.sg=function(a,y,x,b){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=b,this},Ui.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Ui.prototype.copy=function(){var a=new Ui;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Ee=Ui.prototype,Ee.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ee.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ee.freeze=function(){return this._isFrozen=!0,this},Ee.ka=function(){return Object.isFrozen(this)&&Pt("cannot thaw constant: "+this),this._isFrozen=!1,this};function ka(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function Hu(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return Da;if(a==="TopLeft")return ga;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Is;if(a==="TopRight")return ml;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Gl;if(a==="Center")return xo;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return Au;if(a==="BottomLeft")return il;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return Nl;if(a==="BottomRight")return vl;if(a==="TopSide")return fu;if(a==="LeftSide")return yl;if(a==="RightSide")return rl;if(a==="BottomSide")return Sl;if(a==="TopBottomSides")return oc;if(a==="LeftRightSides")return Sc;if(a==="TopLeftSides")return xc;if(a==="TopRightSides")return Qc;if(a==="BottomLeftSides")return gu;if(a==="BottomRightSides")return zl;if(a==="NotTopSide")return xl;if(a==="NotLeftSide")return Tl;if(a==="NotRightSide")return pu;if(a==="NotBottomSide")return wc;if(a==="AllSides")return mu;if(a==="Default")return Xo;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 z=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(z=parseFloat(b));for(var ee=0;a[y]==="";)y++;return b=a[y++],b!==void 0&&0<b.length&&(ee=parseFloat(b)),new Ui(x,E,z,ee)}return new Ui}function Ol(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}Ee.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(Da)?"None":this.D(ga)?"TopLeft":this.D(Is)?"Top":this.D(ml)?"TopRight":this.D(Gl)?"Left":this.D(xo)?"Center":this.D(Au)?"Right":this.D(il)?"BottomLeft":this.D(Nl)?"Bottom":this.D(vl)?"BottomRight":this.D(fu)?"TopSide":this.D(yl)?"LeftSide":this.D(rl)?"RightSide":this.D(Sl)?"BottomSide":this.D(oc)?"TopBottomSides":this.D(Sc)?"LeftRightSides":this.D(xc)?"TopLeftSides":this.D(Qc)?"TopRightSides":this.D(gu)?"BottomLeftSides":this.D(zl)?"BottomRightSides":this.D(xl)?"NotTopSide":this.D(Tl)?"NotLeftSide":this.D(pu)?"NotRightSide":this.D(wc)?"NotBottomSide":this.D(mu)?"AllSides":this.D(Xo)?"Default":"None"},Ee.D=function(a){return a instanceof Ui?(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},Ee.gv=function(){return new Ui(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},Ee.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(va))a=yl;else if(a.D(dl))a=rl;else if(a.D(Cs))a=fu;else if(a.D(Ss))a=Sl;else return!1;return a=a.offsetY,(this.offsetY&a)===a},Ee.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},Ee.Mc=function(){return isNaN(this.x)||isNaN(this.y)},Ee.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},Ee.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},Ee.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},Ui.alloc=function(){var a=El.pop();return a===void 0?new Ui:a},Ui.free=function(a){El.push(a)},Ui.prototype.isDefault=Ui.prototype.Xb,Ui.prototype.isNone=Ui.prototype.ys,Ui.prototype.isSide=Ui.prototype.$c,Ui.prototype.isNoSpot=Ui.prototype.Mc,Ui.prototype.isSpot=Ui.prototype.sb,Ui.prototype.includesSide=Ui.prototype.Hf,Ui.prototype.opposite=Ui.prototype.gv,Ui.prototype.equals=Ui.prototype.D,Ui.prototype.set=Ui.prototype.set,Ui.prototype.setTo=Ui.prototype.sg;var El=[];Ui.className="Spot",Ui.parse=Hu,Ui.stringify=Ol,Ui.None=Da=ka(new Ui(0,0,0,0),0).ja(),Ui.Default=Xo=ka(new Ui(0,0,-1,0),-1).ja(),Ui.TopLeft=ga=new Ui(0,0,0,0).ja(),Ui.TopCenter=Is=new Ui(.5,0,0,0).ja(),Ui.TopRight=ml=new Ui(1,0,0,0).ja(),Ui.LeftCenter=Gl=new Ui(0,.5,0,0).ja(),Ui.Center=xo=new Ui(.5,.5,0,0).ja(),Ui.RightCenter=Au=new Ui(1,.5,0,0).ja(),Ui.BottomLeft=il=new Ui(0,1,0,0).ja(),Ui.BottomCenter=Nl=new Ui(.5,1,0,0).ja(),Ui.BottomRight=vl=new Ui(1,1,0,0).ja(),Ui.MiddleTop=os=Is,Ui.MiddleLeft=hs=Gl,Ui.MiddleRight=Ls=Au,Ui.MiddleBottom=xs=Nl,Ui.Top=Cs=Is,Ui.Left=va=Gl,Ui.Right=dl=Au,Ui.Bottom=Ss=Nl,Ui.TopSide=fu=ka(new Ui(0,0,1,1),1).ja(),Ui.LeftSide=yl=ka(new Ui(0,0,1,2),1).ja(),Ui.RightSide=rl=ka(new Ui(0,0,1,4),1).ja(),Ui.BottomSide=Sl=ka(new Ui(0,0,1,8),1).ja(),Ui.TopBottomSides=oc=ka(new Ui(0,0,1,9),1).ja(),Ui.LeftRightSides=Sc=ka(new Ui(0,0,1,6),1).ja(),Ui.TopLeftSides=xc=ka(new Ui(0,0,1,3),1).ja(),Ui.TopRightSides=Qc=ka(new Ui(0,0,1,5),1).ja(),Ui.BottomLeftSides=gu=ka(new Ui(0,0,1,10),1).ja(),Ui.BottomRightSides=zl=ka(new Ui(0,0,1,12),1).ja(),Ui.NotTopSide=xl=ka(new Ui(0,0,1,14),1).ja(),Ui.NotLeftSide=Tl=ka(new Ui(0,0,1,13),1).ja(),Ui.NotRightSide=pu=ka(new Ui(0,0,1,11),1).ja(),Ui.NotBottomSide=wc=ka(new Ui(0,0,1,7),1).ja(),Ui.AllSides=mu=ka(new Ui(0,0,1,15),1).ja(),Ks=new Ui(.156,.156).ja(),Ts=new Ui(.844,.844).ja(),Ui.parse=Hu,Ui.stringify=Ol;function Hr(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}Hr.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},Hr.prototype.setTransform=function(a,y,x,b,E,z){return this.m11=a,this.m12=y,this.m21=x,this.m22=b,this.dx=E,this.dy=z,this},Hr.prototype.copy=function(){var a=new Hr;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},Hr.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},Hr.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},Hr.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},Hr.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},Hr.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},Hr.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,z=a.m11*y,ee=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*z,E=this.m12*E+this.m22*z,this.dx=this.m11*ee+this.m21*a+this.dx,this.dy=this.m12*ee+this.m22*a+this.dy,this.m11=y,this.m12=x,this.m21=b,this.m22=E,this},Hr.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),z=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=z,this},Hr.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,z=this.m11*-b+this.m21*a,ee=this.m12*-b+this.m22*a;return this.m11=this.m11*a+this.m21*b,this.m12=E,this.m21=z,this.m22=ee,this.translate(-y,-x),this},Ee=Hr.prototype,Ee.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Ee.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Ee.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)},Ee.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))},Ee.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))},Ee.pp=function(a){var y=a.x,x=a.y,b=y+a.width,E=x+a.height,z=this.m11,ee=this.m12,re=this.m21,oe=this.m22,le=this.dx,ue=this.dy,fe=y*z+x*re+le,Se=y*ee+x*oe+ue,be=b*z+x*re+le,Ae=b*ee+x*oe+ue;return x=y*z+E*re+le,y=y*ee+E*oe+ue,z=b*z+E*re+le,b=b*ee+E*oe+ue,E=Math.min(fe,be),fe=Math.max(fe,be),be=Math.min(Se,Ae),Se=Math.max(Se,Ae),E=Math.min(E,x),fe=Math.max(fe,x),be=Math.min(be,y),Se=Math.max(Se,y),E=Math.min(E,z),fe=Math.max(fe,z),be=Math.min(be,b),Se=Math.max(Se,b),a.h(E,be,fe-E,Se-be),a},Hr.alloc=function(){var a=Lu.pop();return a===void 0?new Hr:a},Hr.free=function(a){Lu.push(a)},Hr.prototype.transformRect=Hr.prototype.pp,Hr.prototype.transformPoint=Hr.prototype.Ga,Hr.prototype.scale=Hr.prototype.scale,Hr.prototype.translate=Hr.prototype.translate,Hr.prototype.rotate=Hr.prototype.rotate,Hr.prototype.invert=Hr.prototype.Vj,Hr.prototype.multiplyInverted=Hr.prototype.bv,Hr.prototype.multiply=Hr.prototype.multiply,Hr.prototype.reset=Hr.prototype.reset,Hr.prototype.isIdentity=Hr.prototype.ws,Hr.prototype.equals=Hr.prototype.D,Hr.prototype.setTransform=Hr.prototype.setTransform,Hr.prototype.set=Hr.prototype.set;var Lu=[];Hr.className="Transform",Hr.xF="54a702f3e53909c447824c6706603faf4c";var Zt={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Zt.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);Zt.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,z,ee){if(0>=E&&(E=1e-6),a<x)var re=a,oe=x;else re=x,oe=a;if(y<b)var le=y,ue=b;else le=b,ue=y;if(a===x)return le<=ee&&ee<=ue&&a-E<=z&&z<=a+E;if(y===b)return re<=z&&z<=oe&&y-E<=ee&&ee<=y+E;if(oe+=E,re-=E,re<=z&&z<=oe&&(ue+=E,le-=E,le<=ee&&ee<=ue))if(oe-re>ue-le)if(a-x>E||x-a>E){if(z=(b-y)/(x-a)*(z-a)+y,z-E<=ee&&ee<=z+E)return!0}else return!0;else if(y-b>E||b-y>E){if(ee=(x-a)/(b-y)*(ee-y)+a,ee-E<=z&&z<=ee+E)return!0}else return!0;return!1},cs:function(a,y,x,b,E,z,ee,re,oe,le,ue,fe){if(Zt.Yb(a,y,ee,re,fe,x,b)&&Zt.Yb(a,y,ee,re,fe,E,z))return Zt.Yb(a,y,ee,re,fe,le,ue);var Se=(a+x)/2,be=(y+b)/2,Ae=(x+E)/2,Oe=(b+z)/2;E=(E+ee)/2,z=(z+re)/2,b=(Se+Ae)/2,x=(be+Oe)/2,Ae=(Ae+E)/2,Oe=(Oe+z)/2;var rt=(b+Ae)/2,Ye=(x+Oe)/2;return Zt.cs(a,y,Se,be,b,x,rt,Ye,oe,le,ue,fe)||Zt.cs(rt,Ye,Ae,Oe,E,z,ee,re,oe,le,ue,fe)},ax:function(a,y,x,b,E,z,ee,re,oe){var le=(x+E)/2,ue=(b+z)/2;return oe.h((((a+x)/2+le)/2+(le+(E+ee)/2)/2)/2,(((y+b)/2+ue)/2+(ue+(z+re)/2)/2)/2),oe},My:function(a,y,x,b,E,z,ee,re){var oe=(x+E)/2,le=(b+z)/2;return gi(((a+x)/2+oe)/2,((y+b)/2+le)/2,(oe+(E+ee)/2)/2,(le+(z+re)/2)/2)},Dl:function(a,y,x,b,E,z,ee,re,oe,le){if(Zt.Yb(a,y,ee,re,oe,x,b)&&Zt.Yb(a,y,ee,re,oe,E,z))ko(le,a,y,0,0),ko(le,ee,re,0,0);else{var ue=(a+x)/2,fe=(y+b)/2,Se=(x+E)/2,be=(b+z)/2;E=(E+ee)/2,z=(z+re)/2,b=(ue+Se)/2,x=(fe+be)/2,Se=(Se+E)/2,be=(be+z)/2;var Ae=(b+Se)/2,Oe=(x+be)/2;Zt.Dl(a,y,ue,fe,b,x,Ae,Oe,oe,le),Zt.Dl(Ae,Oe,Se,be,E,z,ee,re,oe,le)}return le},Qe:function(a,y,x,b,E,z,ee,re,oe,le){if(Zt.Yb(a,y,ee,re,oe,x,b)&&Zt.Yb(a,y,ee,re,oe,E,z))le.length===0&&(le.push(a),le.push(y)),le.push(ee),le.push(re);else{var ue=(a+x)/2,fe=(y+b)/2,Se=(x+E)/2,be=(b+z)/2;E=(E+ee)/2,z=(z+re)/2,b=(ue+Se)/2,x=(fe+be)/2,Se=(Se+E)/2,be=(be+z)/2;var Ae=(b+Se)/2,Oe=(x+be)/2;Zt.Qe(a,y,ue,fe,b,x,Ae,Oe,oe,le),Zt.Qe(Ae,Oe,Se,be,E,z,ee,re,oe,le)}return le},jv:function(a,y,x,b,E,z,ee,re,oe,le){if(Zt.Yb(a,y,E,z,le,x,b))return Zt.Yb(a,y,E,z,le,re,oe);var ue=(a+x)/2,fe=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var Se=(ue+x)/2,be=(fe+b)/2;return Zt.jv(a,y,ue,fe,Se,be,ee,re,oe,le)||Zt.jv(Se,be,x,b,E,z,ee,re,oe,le)},OA:function(a,y,x,b,E,z,ee){return ee.h(((a+x)/2+(x+E)/2)/2,((y+b)/2+(b+z)/2)/2),ee},iv:function(a,y,x,b,E,z,ee,re){if(Zt.Yb(a,y,E,z,ee,x,b))ko(re,a,y,0,0),ko(re,E,z,0,0);else{var oe=(a+x)/2,le=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ue=(oe+x)/2,fe=(le+b)/2;Zt.iv(a,y,oe,le,ue,fe,ee,re),Zt.iv(ue,fe,x,b,E,z,ee,re)}return re},ep:function(a,y,x,b,E,z,ee,re){if(Zt.Yb(a,y,E,z,ee,x,b))re.length===0&&(re.push(a),re.push(y)),re.push(E),re.push(z);else{var oe=(a+x)/2,le=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ue=(oe+x)/2,fe=(le+b)/2;Zt.ep(a,y,oe,le,ue,fe,ee,re),Zt.ep(ue,fe,x,b,E,z,ee,re)}return re},Eo:function(a,y,x,b,E,z,ee,re,oe,le,ue,fe,Se,be){if(Zt.Yb(a,y,ee,re,Se,x,b)&&Zt.Yb(a,y,ee,re,Se,E,z))return!Zt.Rl(a,y,ee,re,oe,le,ue,fe)||(Se=(a-ee)*(le-fe)-(y-re)*(oe-ue),Se===0)?!1:(be.h(((a*re-y*ee)*(oe-ue)-(a-ee)*(oe*fe-le*ue))/Se,((a*re-y*ee)*(le-fe)-(y-re)*(oe*fe-le*ue))/Se),!0);var Ae=(a+x)/2,Oe=(y+b)/2,rt=(x+E)/2,Ye=(b+z)/2;E=(E+ee)/2,z=(z+re)/2,b=(Ae+rt)/2,x=(Oe+Ye)/2,rt=(rt+E)/2,Ye=(Ye+z)/2;var mt=(b+rt)/2,wt=(x+Ye)/2,Mt=1/0,jt=!1,mn=0,Ni=0;return Zt.Eo(a,y,Ae,Oe,b,x,mt,wt,oe,le,ue,fe,Se,be)&&(a=(be.x-oe)*(be.x-oe)+(be.y-le)*(be.y-le),a<Mt&&(Mt=a,jt=!0,mn=be.x,Ni=be.y)),Zt.Eo(mt,wt,rt,Ye,E,z,ee,re,oe,le,ue,fe,Se,be)&&(be.x-oe)*(be.x-oe)+(be.y-le)*(be.y-le)<Mt&&(jt=!0,mn=be.x,Ni=be.y),jt&&(be.x=mn,be.y=Ni),jt},Fo:function(a,y,x,b,E,z,ee,re,oe,le,ue,fe,Se){var be=0;if(Zt.Yb(a,y,ee,re,Se,x,b)&&Zt.Yb(a,y,ee,re,Se,E,z)){if(Se=(a-ee)*(le-fe)-(y-re)*(oe-ue),Se===0)return be;var Ae=((a*re-y*ee)*(oe-ue)-(a-ee)*(oe*fe-le*ue))/Se,Oe=((a*re-y*ee)*(le-fe)-(y-re)*(oe*fe-le*ue))/Se;if(Ae>=ue)return be;if((oe>ue?oe-ue:ue-oe)<(le>fe?le-fe:fe-le)){if(y<re?(oe=y,a=re):(oe=re,a=y),Oe<oe||Oe>a)return be}else if(a<ee?(oe=a,a=ee):oe=ee,Ae<oe||Ae>a)return be;0<Se?be++:0>Se&&be--}else{Ae=(a+x)/2,Oe=(y+b)/2;var rt=(x+E)/2,Ye=(b+z)/2;E=(E+ee)/2,z=(z+re)/2,b=(Ae+rt)/2,x=(Oe+Ye)/2,rt=(rt+E)/2,Ye=(Ye+z)/2;var mt=(b+rt)/2,wt=(x+Ye)/2;be+=Zt.Fo(a,y,Ae,Oe,b,x,mt,wt,oe,le,ue,fe,Se),be+=Zt.Fo(mt,wt,rt,Ye,E,z,ee,re,oe,le,ue,fe,Se)}return be},qh:function(a,y,x,b,E,z,ee){return Zt.$(a,x)?(y<b?(x=y,y=b):x=b,z<x?(ee.h(a,x),!1):z>y?(ee.h(a,y),!1):(ee.h(a,z),!0)):Zt.$(y,b)?(a<x?(b=a,a=x):b=x,E<b?(ee.h(b,y),!1):E>a?(ee.h(a,y),!1):(ee.h(E,y),!0)):(E=((a-E)*(a-x)+(y-z)*(y-b))/((x-a)*(x-a)+(b-y)*(b-y)),-5e-6>E?(ee.h(a,y),!1):1.000005<E?(ee.h(x,b),!1):(ee.h(a+E*(x-a),y+E*(b-y)),!0))},Ve:function(a,y,x,b,E,z,ee,re,oe){return Zt.B(a,x)&&Zt.B(y,b)?(oe.h(a,y),!1):Zt.$(E,ee)?Zt.$(a,x)?(Zt.qh(a,y,x,b,E,z,oe),!1):Zt.qh(a,y,x,b,E,(b-y)/(x-a)*(E-a)+y,oe):(re=(re-z)/(ee-E),Zt.$(a,x)?(x=re*(a-E)+z,y<b?(E=y,y=b):E=b,x<E?(oe.h(a,E),!1):x>y?(oe.h(a,y),!1):(oe.h(a,x),!0)):(ee=(b-y)/(x-a),Zt.$(re,ee)?(Zt.qh(a,y,x,b,E,z,oe),!1):(E=(ee*a-re*E+z-y)/(ee-re),Zt.$(ee,0)?(a<x?(b=a,a=x):b=x,E<b?(oe.h(b,y),!1):E>a?(oe.h(a,y),!1):(oe.h(E,y),!0)):Zt.qh(a,y,x,b,E,ee*(E-a)+y,oe))))},MA:function(a,y,x,b,E){return Zt.Ve(x.x,x.y,b.x,b.y,a.x,a.y,y.x,y.y,E)},KA:function(a,y,x,b,E,z,ee,re,oe,le){function ue(rt,Ye){var mt=(rt-a)*(rt-a)+(Ye-y)*(Ye-y);mt<fe&&(fe=mt,oe.h(rt,Ye))}var fe=1/0;ue(oe.x,oe.y);var Se=0,be=0,Ae=0,Oe=0;if(E<ee?(Se=E,be=ee):(Se=ee,be=E),z<re?(Ae=E,Oe=ee):(Ae=ee,Oe=E),Se=(be-Se)/2+le,le=(Oe-Ae)/2+le,E=(E+ee)/2,z=(z+re)/2,Se===0||le===0)return oe;if(.5>(x>a?x-a:a-x)){if(Se=1-(x-E)*(x-E)/(Se*Se),0>Se)return oe;Se=Math.sqrt(Se),b=-le*Se+z,ue(x,le*Se+z),ue(x,b)}else{if(x=(b-y)/(x-a),b=1/(Se*Se)+x*x/(le*le),re=2*x*(y-x*a)/(le*le)-2*x*z/(le*le)-2*E/(Se*Se),Se=re*re-4*b*(2*x*a*z/(le*le)-2*y*z/(le*le)+z*z/(le*le)+E*E/(Se*Se)-1+(y-x*a)*(y-x*a)/(le*le)),0>Se)return oe;Se=Math.sqrt(Se),le=(-re+Se)/(2*b),ue(le,x*le-x*a+y),Se=(-re-Se)/(2*b),ue(Se,x*Se-x*a+y)}return oe},Ff:function(a,y,x,b,E,z,ee,re,oe){var le=1e21,ue=a,fe=y;if(Zt.Ve(a,y,a,b,E,z,ee,re,oe)){var Se=(oe.x-E)*(oe.x-E)+(oe.y-z)*(oe.y-z);Se<le&&(le=Se,ue=oe.x,fe=oe.y)}return Zt.Ve(x,y,x,b,E,z,ee,re,oe)&&(Se=(oe.x-E)*(oe.x-E)+(oe.y-z)*(oe.y-z),Se<le&&(le=Se,ue=oe.x,fe=oe.y)),Zt.Ve(a,y,x,y,E,z,ee,re,oe)&&(y=(oe.x-E)*(oe.x-E)+(oe.y-z)*(oe.y-z),y<le&&(le=y,ue=oe.x,fe=oe.y)),Zt.Ve(a,b,x,b,E,z,ee,re,oe)&&(a=(oe.x-E)*(oe.x-E)+(oe.y-z)*(oe.y-z),a<le&&(le=a,ue=oe.x,fe=oe.y)),oe.h(ue,fe),1e21>le},us:function(a,y,x){return Zt.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,b,E,z,ee,re){var oe=a+x,le=y+b;return E===ee?(z<re?(ee=z,z=re):ee=re,a<=E&&E<=oe&&ee<=le&&z>=y):z===re?(E<ee?(re=E,E=ee):re=ee,y<=z&&z<=le&&re<=oe&&E>=a):!!(Oo(a,y,x,b,E,z)||Oo(a,y,x,b,ee,re)||Zt.Rl(a,y,oe,y,E,z,ee,re)||Zt.Rl(oe,y,oe,le,E,z,ee,re)||Zt.Rl(oe,le,a,le,E,z,ee,re)||Zt.Rl(a,le,a,y,E,z,ee,re))},Rl:function(a,y,x,b,E,z,ee,re){return a===x&&y===b&&E===ee&&z===re?a===E&&y===z:0>=Zt.Fl(a,y,x,b,E,z)*Zt.Fl(a,y,x,b,ee,re)&&0>=Zt.Fl(E,z,ee,re,a,y)*Zt.Fl(E,z,ee,re,x,b)},Fl:function(a,y,x,b,E,z){return x-=a,b-=y,a=E-a,y=z-y,z=a*b-y*x,z===0&&(z=a*x+y*b,0<z&&(z=(a-x)*x+(y-b)*b,0>z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,b,E,z){var ee=Math.PI;z||(b*=ee/180,E*=ee/180);var re=b>E?-1:1;z=[];var oe=ee/2,le=b;if(b=Math.min(2*ee,Math.abs(E-b)),1e-5>b)return oe=le+re*Math.min(b,oe),re=a+x*Math.cos(le),le=y+x*Math.sin(le),a+=x*Math.cos(oe),y+=x*Math.sin(oe),x=(re+a)/2,oe=(le+y)/2,z.push([re,le,x,oe,x,oe,a,y]),z;for(;1e-5<b;)E=le+re*Math.min(b,oe),z.push(Zt.Vy(x,le,E,a,y)),b-=Math.abs(E-le),le=E;return z},Vy:function(a,y,x,b,E){var z=(x-y)/2,ee=a*Math.cos(z),re=a*Math.sin(z),oe=-re,le=ee*ee+oe*oe,ue=le+ee*ee+oe*re;return le=4/3*(Math.sqrt(2*le*ue)-ue)/(ee*re-oe*ee),re=ee-le*oe,ee=oe+le*ee,oe=-ee,le=z+y,z=Math.cos(le),le=Math.sin(le),[b+a*Math.cos(y),E+a*Math.sin(y),b+re*z-ee*le,E+re*le+ee*z,b+re*z-oe*le,E+re*le+oe*z,b+a*Math.cos(x),E+a*Math.sin(x)]},No:function(a,y,x,b,E,z,ee){x=Math.floor((a-x)/E)*E+x,b=Math.floor((y-b)/z)*z+b;var re=x;return x+E-a<E/2&&(re=x+E),a=b,b+z-y<z/2&&(a=b+z),ee.h(re,a),ee},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,z=0>b;if(a<y)var ee=1,re=0;else ee=0,re=1;var oe=ee===0?a:y,le=ee===0?x:b;return(ee===0?E:z)&&(le=-le),ee=re,x=ee===0?x:b,(ee===0?E:z)&&(x=-x),Zt.az(oe,ee===0?a:y,le,x,0,0)},az:function(a,y,x,b,E,z){if(0<b)if(0<x){E=a*a,z=y*y,a*=x;var ee=y*b,re=-z+ee,oe=-z+Math.sqrt(a*a+ee*ee);y=re;for(var le=0;9999999999>le&&(y=.5*(re+oe),!(y===re||y===oe));++le){var ue=a/(y+E),fe=ee/(y+z);if(ue=ue*ue+fe*fe-1,0<ue)re=y;else if(0>ue)oe=y;else break}x=E*x/(y+E)-x,b=z*b/(y+z)-b,x=Math.sqrt(x*x+b*b)}else x=Math.abs(b-y);else b=a*a-y*y,z=a*x,z<b?(b=z/b,z=y*Math.sqrt(Math.abs(1-b*b)),x=a*b-x,x=Math.sqrt(x*x+z*z)):x=Math.abs(x-a);return x},Ze:new Wi,um:new Wi,Mf:new Wi,Nf:0,vm:100};Zt.za=Zt.AA;function di(a){yr(this),this.l=2,a===void 0&&(a=di.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===di.o?this.ee=new Mn:(di.V===null&&(di.V=new Mn().freeze()),this.ee=di.V),this.aq=this.ee.Ja,this.Ip=new Pn().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=ga,this.gg=vl,this.Rk=this.Sk=NaN,this.Uf=ii}di.prototype.copy=function(){var a=new di;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===di.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},di.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},di.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==di.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},di.prototype.ka=function(){if(Object.isFrozen(this)&&Pt("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==di.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},di.prototype.Xa=function(a){if(!(a instanceof di))return!1;if(this.type!==a.type)return this.type===di.j&&a.type===di.o?Mu(this,a):a.type===di.j&&this.type===di.o?Mu(a,this):!1;if(this.type===di.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 Zt.B(this.startX,a.startX)&&Zt.B(this.startY,a.startY)&&Zt.B(this.endX,a.endX)&&Zt.B(this.endY,a.endY)};function Mu(a,y){return a.type!==di.j||y.type!==di.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&Zt.B(a.startX,y.startX)&&Zt.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===ya&&Zt.B(a.endX,y.endX)&&Zt.B(a.endY,y.endY))))}di.ia=function(a){return a.toString()},di.prototype.qb=function(a){a.classType===di&&(this.type=a)},di.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case di.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 di.u:var y=new Pn(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 di.F:if(y=new Pn(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 di.o:y="",x=this.figures.s;for(var b=x.length,E=0;E<b;E++){var z=x[E];0<E&&(y+=" x "),z.isFilled&&(y+="F "),y+=z.toString(a)}return y;default:return this.type.toString()}},di.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},di.parse=function(a,y){function x(){return Oe>=Mt-1?!0:le[Oe+1].match(jt)!==null}function b(){return Oe++,le[Oe]}function E(Xr){var zr=parseFloat(b()),Jo=parseFloat(b());rt===rt.toLowerCase()&&(zr=wt.x+zr,Jo=wt.y+Jo),Xr.h(zr,Jo)}function z(){return E(wt),wt}function ee(){return E(mt),mt}function re(){var Xr=Ye.toLowerCase();return Xr!=="c"&&Xr!=="s"&&Xr!=="q"&&Xr!=="t"?wt:new Je(2*wt.x-mt.x,2*wt.y-mt.y)}y===void 0&&(y=!1);var oe=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(oe,"$1 $2"),a=a.replace(oe,"$1 $2"),a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),a=a.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),a=a.replace(/([0-9])([+\-])/gm,"$1 $2"),a=a.replace(/[\s\r\t\n]+/gm," "),a=a.replace(/^\s+|\s+$/g,"");var le=a.split(" ");for(a=0;a<le.length;a++){var ue=le[a];if(ue.match(/(\.[0-9]*)(\.)/gm)!==null){oe=ei();for(var fe="",Se=!1,be=0;be<ue.length;be++){var Ae=ue[be];Ae!=="."||Se?Ae==="."?(oe.push(fe),fe="."):fe+=Ae:(Se=!0,fe+=Ae)}for(oe.push(fe),le.splice(a,1),ue=0;ue<oe.length;ue++)le.splice(a+ue,0,oe[ue]);a+=oe.length-1,yi(oe)}}var Oe=-1,rt="",Ye="";oe=new Je(0,0);var mt=new Je(0,0),wt=new Je(0,0),Mt=le.length;a=OS(null),Se=fe=ue=!1,be=!0,Ae=null;for(var jt=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(Oe>=Mt-1);)if(Ye=rt,rt=b(),rt!=="")switch(rt.toUpperCase()){case"X":be=!0,fe=ue=!1;break;case"M":for(Ae=z(),a.mc===null||be===!0?(Ig(a,Ae.x,Ae.y,ue,!fe,Se),be=!1):a.moveTo(Ae.x,Ae.y),oe.assign(wt);!x();)Ae=z(),a.lineTo(Ae.x,Ae.y);break;case"L":for(;!x();)Ae=z(),a.lineTo(Ae.x,Ae.y);break;case"H":for(;!x();)wt=new Je((rt===rt.toLowerCase()?wt.x:0)+parseFloat(b()),wt.y),a.lineTo(wt.x,wt.y);break;case"V":for(;!x();)wt=new Je(wt.x,(rt===rt.toLowerCase()?wt.y:0)+parseFloat(b())),a.lineTo(wt.x,wt.y);break;case"C":for(;!x();){Ae=new Je,E(Ae);var mn=ee(),Ni=z();wh(a,Ae.x,Ae.y,mn.x,mn.y,Ni.x,Ni.y)}break;case"S":for(;!x();)Ae=re(),mn=ee(),Ni=z(),wh(a,Ae.x,Ae.y,mn.x,mn.y,Ni.x,Ni.y);break;case"Q":for(;!x();)Ae=ee(),mn=z(),Vm(a,Ae.x,Ae.y,mn.x,mn.y);break;case"T":for(;!x();)mt=Ae=re(),mn=z(),Vm(a,Ae.x,Ae.y,mn.x,mn.y);break;case"B":for(;!x();){Ae=parseFloat(b()),mn=parseFloat(b()),Ni=parseFloat(b());var Qi=parseFloat(b()),Hi=parseFloat(b()),hi=Hi,_n=!1;x()||(hi=parseFloat(b()),x()||(_n=parseFloat(b())!==0)),rt===rt.toLowerCase()&&(Ni+=wt.x,Qi+=wt.y),a.arcTo(Ae,mn,Ni,Qi,Hi,hi,_n)}break;case"A":for(;!x();)Ae=Math.abs(parseFloat(b())),mn=Math.abs(parseFloat(b())),Ni=parseFloat(b()),Hi=Qi=!1,_n=hi=0,hi=b(),hi.length===1?(Qi=!!parseFloat(hi),Hi=!!parseFloat(b()),hi=parseFloat(b())):hi.length===2?(Qi=!!parseFloat(hi[0]),Hi=!!parseFloat(hi[1]),hi=parseFloat(b())):(Qi=!!parseFloat(hi[0]),Hi=!!parseFloat(hi[1]),hi=parseFloat(hi.slice(2))),_n=parseFloat(b()),rt===rt.toLowerCase()&&(hi=wt.x+hi,_n=wt.y+_n),wt.h(hi,_n),F1(a,Ae,mn,Ni,Qi,Hi,hi,_n);break;case"Z":N1(a),wt.assign(oe);break;case"F":for(Ae="",mn=1;le[Oe+mn];)if(le[Oe+mn]==="0")Se=!0,mn++;else if(le[Oe+mn].match(/[Uu]/)!==null)mn++;else if(le[Oe+mn].match(jt)===null)mn++;else{Ae=le[Oe+mn];break}Ae.match(/[Mm]/)?ue=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Ae="",mn=1;le[Oe+mn];)if(le[Oe+mn].match(/[Ff]/)!==null)mn++;else if(le[Oe+mn].match(jt)===null)mn++;else{Ae=le[Oe+mn];break}Ae.match(/[Mm]/)?fe=!0:a.mc.isShadowed=!1}if(oe=a.os,Gm=a,y)for(y=oe.figures.iterator;y.next();)y.value.isFilled=!0;return oe},di.Ha=function(a,y){for(var x=a.length,b=Je.alloc(),E=0;E<x;E++){var z=a[E];b.x=z[0],b.y=z[1],y.Ga(b),z[0]=b.x,z[1]=b.y,b.x=z[2],b.y=z[3],y.Ga(b),z[2]=b.x,z[3]=b.y,b.x=z[4],b.y=z[5],y.Ga(b),z[4]=b.x,z[5]=b.y,b.x=z[6],b.y=z[7],y.Ga(b),z[6]=b.x,z[7]=b.y}Je.free(b)},di.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===di.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},di.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===di.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 z=0;z<E;z++){var ee=b[z];ee._isInvalidBounds=!1,ee.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),ku(this,a,!1),ko(a,0,0,0,0),a.freeze()},di.prototype.ix=function(){var a=new Pn;return ku(this,a,!0),a};function ku(a,y,x){switch(a.type){case di.j:case di.u:case di.F:x?y.h(a.od,a.pd,0,0):ko(y,a.od,a.pd,0,0),ko(y,a.Dc,a.Ec,0,0);break;case di.o:var b=a.figures;a=b.s,b=b.length;for(var E=0;E<b;E++){var z=a[E];x&&E===0?y.h(z.startX,z.startY,0,0):ko(y,z.startX,z.startY,0,0);for(var ee=z.segments.s,re=ee.length,oe=z.startX,le=z.startY,ue=0;ue<re;ue++){var fe=ee[ue];switch(fe.type){case ya:case ws:oe=fe.endX,le=fe.endY,ko(y,oe,le,0,0);break;case ol:Zt.Dl(oe,le,fe.point1X,fe.point1Y,fe.point2X,fe.point2Y,fe.endX,fe.endY,.5,y),oe=fe.endX,le=fe.endY;break;case He:Zt.iv(oe,le,fe.point1X,fe.point1Y,fe.endX,fe.endY,.5,y),oe=fe.endX,le=fe.endY;break;case _e:case lt:var Se=fe.type===_e?wl(fe,z):Il(fe,z,oe,le),be=Se.length;if(be===0){oe=fe.type===_e?fe.centerX:fe.endX,le=fe.type===_e?fe.centerY:fe.endY,ko(y,oe,le,0,0);break}fe=null;for(var Ae=0;Ae<be;Ae++)fe=Se[Ae],Zt.Dl(fe[0],fe[1],fe[2],fe[3],fe[4],fe[5],fe[6],fe[7],.5,y);fe!==null&&(oe=fe[6],le=fe[7]);break;default:Pt("Unknown Segment type: "+fe.type)}}}break;default:Pt("Unknown Geometry type: "+a.type)}}di.prototype.normalize=function(){this._isFrozen&&Sn(this);var a=this.ix();return this.offset(-a.x,-a.y),new Je(-a.x,-a.y)},di.prototype.offset=function(a,y){return this._isFrozen&&Sn(this),this.transform(1,0,0,1,a,y),this},di.prototype.scale=function(a,y){return this._isFrozen&&Sn(this),this.transform(a,0,0,y,0,0),this},di.prototype.rotate=function(a,y,x){this._isFrozen&&Sn(this),y===void 0&&(y=0),x===void 0&&(x=0);var b=Hr.alloc();return b.reset(),b.rotate(a,y,x),this.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy),Hr.free(b),this},Ee=di.prototype,Ee.transform=function(a,y,x,b,E,z){switch(this.type){case di.j:case di.u:case di.F:var ee=this.od,re=this.pd;this.od=ee*a+re*x+E,this.pd=ee*y+re*b+z,ee=this.Dc,re=this.Ec,this.Dc=ee*a+re*x+E,this.Ec=ee*y+re*b+z;break;case di.o:for(var oe=this.figures.s,le=oe.length,ue=0;ue<le;ue++){var fe=oe[ue];ee=fe.startX,re=fe.startY,fe.startX=ee*a+re*x+E,fe.startY=ee*y+re*b+z,fe=fe.segments.s;for(var Se=fe.length,be=0;be<Se;be++){var Ae=fe[be];switch(Ae.type){case ya:case ws:ee=Ae.endX,re=Ae.endY,Ae.endX=ee*a+re*x+E,Ae.endY=ee*y+re*b+z;break;case ol:ee=Ae.point1X,re=Ae.point1Y,Ae.point1X=ee*a+re*x+E,Ae.point1Y=ee*y+re*b+z,ee=Ae.point2X,re=Ae.point2Y,Ae.point2X=ee*a+re*x+E,Ae.point2Y=ee*y+re*b+z,ee=Ae.endX,re=Ae.endY,Ae.endX=ee*a+re*x+E,Ae.endY=ee*y+re*b+z;break;case He:ee=Ae.point1X,re=Ae.point1Y,Ae.point1X=ee*a+re*x+E,Ae.point1Y=ee*y+re*b+z,ee=Ae.endX,re=Ae.endY,Ae.endX=ee*a+re*x+E,Ae.endY=ee*y+re*b+z;break;case _e:ee=Ae.centerX,re=Ae.centerY,Ae.centerX=ee*a+re*x+E,Ae.centerY=ee*y+re*b+z,y!==0&&(ee=180*Math.atan2(y,a)/Math.PI,0>ee&&(ee+=360),Ae.startAngle+=ee),0>a&&(Ae.startAngle=180-Ae.startAngle,Ae.sweepAngle=-Ae.sweepAngle),0>b&&(Ae.startAngle=-Ae.startAngle,Ae.sweepAngle=-Ae.sweepAngle),Ae.radiusX*=Math.sqrt(a*a+x*x),Ae.radiusY!==void 0&&(Ae.radiusY*=Math.sqrt(y*y+b*b));break;case lt:if(ee=Ae.endX,re=Ae.endY,Ae.endX=ee*a+re*x+E,Ae.endY=ee*y+re*b+z,Ae.radiusX===0||Ae.radiusY===0)break;y!==0&&(ee=180*Math.atan2(y,a)/Math.PI,0>ee&&(ee+=360),Ae.xAxisRotation+=ee),0>a&&(Ae.xAxisRotation=180-Ae.xAxisRotation,Ae.isClockwiseArc=!Ae.isClockwiseArc),0>b&&(Ae.xAxisRotation=-Ae.xAxisRotation,Ae.isClockwiseArc=!Ae.isClockwiseArc),Ae.radiusX*=Math.sqrt(a*a+x*x),Ae.radiusY*=Math.sqrt(y*y+b*b);break;default:Pt("Unknown Segment type: "+Ae.type)}}}}return this._isInvalidBounds=!0,this},Ee.ca=function(a,y){y===void 0&&(y=0);var x=this.od,b=this.pd,E=this.Dc,z=this.Ec;switch(this.type){case di.j:return Zt.Yb(x,b,E,z,y,a.x,a.y);case di.u:var ee=Pn.allocAt(Math.min(x,E)-y,Math.min(b,z)-y,Math.abs(E-x)+2*y,Math.abs(z-b)+2*y);return a=ee.ca(a),Pn.free(ee),a;case di.F:ee=Math.min(x,E)-y;var re=Math.min(b,z)-y;return x=(Math.abs(E-x)+2*y)/2,y=(Math.abs(z-b)+2*y)/2,0>=x||0>=y?!1:(ee=a.x-(ee+x),re=a.y-(re+y),1>=ee*ee/(x*x)+re*re/(y*y));case di.o:return _l(this,a,y,!0,!1);default:return!1}};function _l(a,y,x,b,E){var z=y.x;y=y.y;for(var ee=a.bounds.x-20,re=0,oe,le,ue,fe,Se=a.figures.s,be=Se.length,Ae=0;Ae<be;Ae++){var Oe=Se[Ae],rt=!Oe.isEvenOdd;if(Oe.isFilled){if(b&&Oe.ca(z,y,x))return!0;var Ye=Oe.segments;oe=Oe.startX,le=Oe.startY;for(var mt=oe,wt=le,Mt=Ye.s,jt=0;jt<=Ye.length;jt++){var mn=void 0;if(jt!==Ye.length){mn=Mt[jt];var Ni=mn.type;a=mn.endX,fe=mn.endY}else Ni=ya,a=mt,fe=wt;switch(Ni){case ws:if(mt=$l(z,y,ee,y,oe,le,mt,wt),isNaN(mt))return!0;re+=mt,mt=a,wt=fe;break;case ya:if(oe=$l(z,y,ee,y,oe,le,a,fe),isNaN(oe))return!0;re+=oe;break;case ol:ue=Zt.Fo(oe,le,mn.point1X,mn.point1Y,mn.point2X,mn.point2Y,a,fe,ee,y,z,y,.5),re+=ue;break;case He:ue=Zt.Fo(oe,le,(oe+2*mn.point1X)/3,(le+2*mn.point1Y)/3,(2*mn.point1X+a)/3,(2*mn.point1Y+fe)/3,a,fe,ee,y,z,y,.5),re+=ue;break;case _e:case lt:Ni=mn.type===_e?wl(mn,Oe):Il(mn,Oe,oe,le);var Qi=Ni.length;if(Qi===0){if(oe=$l(z,y,ee,y,oe,le,mn.type===_e?mn.centerX:mn.endX,mn.type===_e?mn.centerY:mn.endY),isNaN(oe))return!0;re+=oe;break}mn=null;for(var Hi=0;Hi<Qi;Hi++){if(mn=Ni[Hi],Hi===0){if(ue=$l(z,y,ee,y,oe,le,mn[0],mn[1]),isNaN(ue))return!0;re+=ue}ue=Zt.Fo(mn[0],mn[1],mn[2],mn[3],mn[4],mn[5],mn[6],mn[7],ee,y,z,y,.5),re+=ue}mn!==null&&(a=mn[6],fe=mn[7]);break;default:Pt("Unknown Segment type: "+mn.type)}oe=a,le=fe}if(rt){if(re!==0)return!0}else if(re%2!==0)return!0;re=0}else if(Oe.ca(z,y,E?x:x+2))return!0}return!1}function $l(a,y,x,b,E,z,ee,re){if(Zt.Yb(E,z,ee,re,.05,a,y))return NaN;var oe=(a-x)*(z-re);if(oe===0)return 0;var le=((a*b-y*x)*(E-ee)-(a-x)*(E*re-z*ee))/oe;if(y=(a*b-y*x)*(z-re)/oe,le>=a)return 0;if((E>ee?E-ee:ee-E)<(z>re?z-re:re-z)){if(z<re){if(y<z||y>re)return 0}else if(y<re||y>z)return 0}else if(E<ee){if(le<E||le>ee)return 0}else if(le<ee||le>E)return 0;return 0<oe?1:-1}function jl(a,y,x,b){a=a.figures.s;for(var E=a.length,z=0;z<E;z++)if(a[z].ca(y,x,b))return!0;return!1}Ee.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new Je),this.type===di.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,z=this.flattenedTotalLength*a,ee=0,re=0;re<E;re++){var oe=b[re],le=oe.length;for(a=0;a<le;a++){var ue=oe[a];if(ee+ue>=z)return b=z-ee,b=ue===0?0:b/ue,x=x[re],re=x[2*a],E=x[2*a+1],y.h(re+(x[2*a+2]-re)*b,E+(x[2*a+3]-E)*b),y;ee+=ue}}return y},Ee.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===di.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,z=0,ee=0;ee<b;ee++){var re=x[ee],oe=re.length;for(a=0;a<oe;a++){var le=re[a];if(z+le>=E)return E=y[ee],y=E[2*a],x=E[2*a+1],b=E[2*a+2],a=E[2*a+3],1>Math.abs(b-y)&&1>Math.abs(a-x)?0:1>Math.abs(b-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=b-y?0:180:180*Math.atan2(a-x,b-y)/Math.PI;z+=le}}return NaN},Ee.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===di.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,z=this.flattenedTotalLength*a,ee=0,re=0;re<E;re++){var oe=b[re],le=oe.length;for(a=0;a<le;a++){var ue=oe[a];if(ee+ue>=z)return b=z-ee,b=ue===0?0:b/ue,ue=x[re],x=ue[2*a],re=ue[2*a+1],E=ue[2*a+2],a=ue[2*a+3],y[0]=x+(E-x)*b,y[1]=re+(a-re)*b,y[2]=1>Math.abs(E-x)&&1>Math.abs(a-re)?0:1>Math.abs(E-x)?0<=a-re?90:270:1>Math.abs(a-re)?0<=E-x?0:180:180*Math.atan2(a-re,E-x)/Math.PI,y;ee+=ue}}return y},Ee.xx=function(a){if(this.type===di.j){var y=this.startX,x=this.startY,b=this.endX,E=this.endY;if(y!==b||x!==E){var z=a.x;if(a=a.y,y===b){if(x<E){var ee=x;b=E}else ee=E,b=x;return a<=ee?ee===x?0:1:a>=b?b===x?0:1:Math.abs(a-x)/(b-ee)}if(x===E)return y<b?ee=y:(ee=b,b=y),z<=ee?ee===y?0:1:z>=b?b===y?0:1:Math.abs(z-y)/(b-ee);ee=(b-y)*(b-y)+(E-x)*(E-x);var re=Je.alloc();return Zt.qh(y,x,b,E,z,a,re),a=re.x,z=re.y,Je.free(re),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/ee)}}else if(this.type===di.u){ee=this.startX,re=this.startY;var oe=this.endX;if(E=this.endY,ee!==oe||re!==E){y=oe-ee,x=E-re,z=2*y+2*x,b=a.x,a=a.y,b=Math.min(Math.max(b,ee),oe),a=Math.min(Math.max(a,re),E),ee=Math.abs(b-ee),oe=Math.abs(b-oe),re=Math.abs(a-re),E=Math.abs(a-E);var le=Math.min(ee,oe,re,E);if(le===re)return b/z;if(le===oe)return(y+a)/z;if(le===E)return(2*y+x-b)/z;if(le===ee)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,b=Je.alloc(),E=1/0,re=ee=0,oe=y.length;for(var ue=le=0,fe=0;fe<oe;fe++)for(var Se=y[fe],be=x[fe],Ae=Se.length,Oe=0;Oe<Ae;Oe+=2){var rt=Se[Oe],Ye=Se[Oe+1];if(Oe!==0){Zt.qh(le,ue,rt,Ye,a.x,a.y,b);var mt=(b.x-a.x)*(b.x-a.x)+(b.y-a.y)*(b.y-a.y);mt<E&&(E=mt,ee=re,ee+=Math.sqrt((b.x-le)*(b.x-le)+(b.y-ue)*(b.y-ue))),re+=be[(Oe-2)/2]}le=rt,ue=Ye}return Je.free(b),a=ee/z,0>a?0:1<a?1:a}return 0};function Pc(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],b=[],E=[];if(a.type===di.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===di.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===di.F){var z=new Os;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var ee=new Io(_e);if(ee.startAngle=0,ee.sweepAngle=360,ee.centerX=(a.startX+a.endX)/2,ee.centerY=(a.startY+a.endY)/2,ee.radiusX=Math.abs(a.startX-a.endX)/2,ee.radiusY=Math.abs(a.startY-a.endY)/2,z.add(ee),a=wl(ee,z),E=a.length,E===0)b.push(ee.centerX),b.push(ee.centerY);else{ee=z.startX,z=z.startY;for(var re=0;re<E;re++){var oe=a[re];Zt.Qe(ee,z,oe[2],oe[3],oe[4],oe[5],oe[6],oe[7],.5,b),ee=oe[6],z=oe[7]}}y.push(b),x.push(Ic(b))}else for(a=a.figures.iterator;a.next();){E=a.value,b=[],b.push(E.startX),b.push(E.startY),ee=E.startX,z=E.startY,re=ee,oe=z;for(var le=E.segments.s,ue=le.length,fe=0;fe<ue;fe++){var Se=le[fe];switch(Se.type){case ws:4<=b.length&&(y.push(b),x.push(Ic(b))),b=[],b.push(Se.endX),b.push(Se.endY),ee=Se.endX,z=Se.endY,re=ee,oe=z;break;case ya:b.push(Se.endX),b.push(Se.endY),ee=Se.endX,z=Se.endY;break;case ol:Zt.Qe(ee,z,Se.point1X,Se.point1Y,Se.point2X,Se.point2Y,Se.endX,Se.endY,.5,b),ee=Se.endX,z=Se.endY;break;case He:Zt.ep(ee,z,Se.point1X,Se.point1Y,Se.endX,Se.endY,.5,b),ee=Se.endX,z=Se.endY;break;case _e:var be=wl(Se,E),Ae=be.length;if(Ae===0){b.push(Se.centerX),b.push(Se.centerY),ee=Se.centerX,z=Se.centerY;break}for(var Oe=0;Oe<Ae;Oe++){var rt=be[Oe];Zt.Qe(ee,z,rt[2],rt[3],rt[4],rt[5],rt[6],rt[7],.5,b),ee=rt[6],z=rt[7]}break;case lt:if(be=Il(Se,E,ee,z),Ae=be.length,Oe=Se.endX,rt=Se.endY,Ae===0){b.push(Oe),b.push(rt),ee=Oe,z=rt;break}for(Oe=0;Oe<Ae;Oe++)rt=be[Oe],Zt.Qe(ee,z,rt[2],rt[3],rt[4],rt[5],rt[6],rt[7],.5,b),ee=rt[6],z=rt[7];break;default:Pt("Segment not of valid type: "+Se.type)}Se.isClosed&&(b.push(re),b.push(oe))}4<=b.length&&(y.push(b),x.push(Ic(b)))}}}function Ic(a){for(var y=[],x=0,b=0,E=a.length,z=0;z<E;z+=2){var ee=a[z],re=a[z+1];z!==0&&y.push(Math.sqrt(Bi(x,b,ee,re))),x=ee,b=re}return y}Ee.add=function(a){return this.ee.add(a),this},Ee.pm=function(a,y,x,b,E,z,ee,re){return this._isFrozen&&Sn(this),this.fg=new Ui(a,y,E,z).freeze(),this.gg=new Ui(x,b,ee,re).freeze(),this},tt.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}},flattenedSegments:{get:function(){return Pc(this),this.tk}},flattenedLengths:{get:function(){return Pc(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===di.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===di.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],z=E.length,ee=0;ee<z;ee++)a+=E[ee]}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===di.o?this.ee=new Mn:(di.V===null&&(di.V=new Mn().freeze()),this.ee=di.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}}}),di.prototype.setSpots=di.prototype.pm,di.prototype.add=di.prototype.add,di.prototype.getFractionForPoint=di.prototype.xx,di.prototype.getPointAndAngleAlongPath=di.prototype.Qu,di.prototype.getAngleAlongPath=di.prototype.wx,di.prototype.getPointAlongPath=di.prototype.Pu,di.prototype.containsPoint=di.prototype.ca,di.prototype.transform=di.prototype.transform,di.prototype.rotate=di.prototype.rotate,di.prototype.scale=di.prototype.scale,di.prototype.offset=di.prototype.offset,di.prototype.normalize=di.prototype.normalize,di.prototype.computeBoundsWithoutOrigin=di.prototype.ix,di.prototype.equalsApprox=di.prototype.Xa,di.className="Geometry",di.j=new Xt(di,"Line",0),di.u=new Xt(di,"Rectangle",1),di.F=new Xt(di,"Ellipse",2),di.o=new Xt(di,"Path",3),di.V=null,di.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",di.className="Geometry",di.stringify=di.ia,di.fillPath=di.nb,di.parse=di.parse,di.Line=di.j,di.Rectangle=di.u,di.Ellipse=di.F,di.Path=di.o;function Os(a,y,x,b,E){yr(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 Mn,this.sr=this.pl.Ja,this.fw=null}Os.prototype.copy=function(){var a=new Os;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 z=y[E].copy();b.add(z)}return a.sr=this.sr,a.fw=this.fw,a},Ee=Os.prototype,Ee.Xa=function(a){if(!(a instanceof Os&&Zt.B(this.startX,a.startX)&&Zt.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},Ee.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},Ee.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},Ee.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},Ee.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},Ee.add=function(a){return this.pl.add(a),this},Ee.ca=function(a,y,x){for(var b=this.startX,E=this.startY,z=b,ee=E,re=this.segments.s,oe=re.length,le=0;le<oe;le++){var ue=re[le];switch(ue.type){case ws:z=ue.endX,ee=ue.endY,b=ue.endX,E=ue.endY;break;case ya:if(Zt.Yb(b,E,ue.endX,ue.endY,x,a,y))return!0;b=ue.endX,E=ue.endY;break;case ol:if(Zt.cs(b,E,ue.point1X,ue.point1Y,ue.point2X,ue.point2Y,ue.endX,ue.endY,.5,a,y,x))return!0;b=ue.endX,E=ue.endY;break;case He:if(Zt.jv(b,E,ue.point1X,ue.point1Y,ue.endX,ue.endY,.5,a,y,x))return!0;b=ue.endX,E=ue.endY;break;case _e:case lt:var fe=ue.type===_e?wl(ue,this):Il(ue,this,b,E),Se=fe.length,be=ue.type===_e?ue.centerX:ue.endX,Ae=ue.type===_e?ue.centerY:ue.endY;if(Se===0){if(Zt.Yb(b,E,be,Ae,x,a,y))return!0;b=be,E=Ae;break}for(be=null,Ae=0;Ae<Se;Ae++)if(be=fe[Ae],Ae===0&&Zt.Yb(b,E,be[0],be[1],x,a,y)||Zt.cs(be[0],be[1],be[2],be[3],be[4],be[5],be[6],be[7],.5,a,y,x))return!0;be!==null&&(b=be[6],E=be[7]);break;default:Pt("Unknown Segment type: "+ue.type)}if(ue.isClosed&&(b!==z||E!==ee)&&Zt.Yb(b,E,z,ee,x,a,y))return!0}return!1},tt.Object.defineProperties(Os.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}}}),Os.prototype.add=Os.prototype.add,Os.prototype.equalsApprox=Os.prototype.Xa,Os.className="PathFigure";function Io(a,y,x,b,E,z,ee,re){yr(this),a===void 0&&(a=ya),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),z===void 0&&(z=0),ee===void 0&&(ee=0),a===lt?(a=z%360,0>a&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(b,0),this.Pg=Math.max(E,0),typeof ee=="boolean"?ee&&(this.isLargeArc=!0):typeof ee=="number"&&ee&&(this.isLargeArc=!0),re&&(this.isClockwiseArc=!0)):(this.Ne=b,this.Vh=E,a===_e&&(z=Math.max(z,0)),this.Wh=z,typeof ee=="number"?(a===_e&&(ee=Math.max(ee,0)),this.Pg=ee):this.Pg=0),this.ae=null}Io.prototype.copy=function(){var a=new Io;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},Ee=Io.prototype,Ee.Xa=function(a){if(!(a instanceof Io)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case ws:case ya:return Zt.B(this.endX,a.endX)&&Zt.B(this.endY,a.endY);case ol:return Zt.B(this.endX,a.endX)&&Zt.B(this.endY,a.endY)&&Zt.B(this.point1X,a.point1X)&&Zt.B(this.point1Y,a.point1Y)&&Zt.B(this.point2X,a.point2X)&&Zt.B(this.point2Y,a.point2Y);case He:return Zt.B(this.endX,a.endX)&&Zt.B(this.endY,a.endY)&&Zt.B(this.point1X,a.point1X)&&Zt.B(this.point1Y,a.point1Y);case _e:return Zt.B(this.startAngle,a.startAngle)&&Zt.B(this.sweepAngle,a.sweepAngle)&&Zt.B(this.centerX,a.centerX)&&Zt.B(this.centerY,a.centerY)&&Zt.B(this.radiusX,a.radiusX)&&Zt.B(this.radiusY,a.radiusY);case lt:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Zt.B(this.xAxisRotation,a.xAxisRotation)&&Zt.B(this.endX,a.endX)&&Zt.B(this.endY,a.endY)&&Zt.B(this.radiusX,a.radiusX)&&Zt.B(this.radiusY,a.radiusY);default:return!1}},Ee.qb=function(a){a.classType===Io&&(this.type=a)},Ee.toString=function(a){switch(a===void 0&&(a=-1),this.type){case ws:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case ya:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case ol: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 He: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 _e: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 lt: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":"")},Ee.freeze=function(){return this._isFrozen=!0,this},Ee.ka=function(){return this._isFrozen=!1,this},Ee.close=function(){return this.isClosed=!0,this};function wl(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,b=a.radiusY;if(b===void 0&&(b=x),x===0||b===0)return a.ae=[],a.ae;y=a.Ne;var E=a.Vh,z=Zt.jx(0,0,x<b?x:b,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==b){var ee=Hr.alloc();ee.reset(),x<b?ee.scale(1,b/x):ee.scale(x/b,1),di.Ha(z,ee),Hr.free(ee)}for(x=z.length,b=0;b<x;b++)ee=z[b],ee[0]+=y,ee[1]+=E,ee[2]+=y,ee[3]+=E,ee[4]+=y,ee[5]+=E,ee[6]+=y,ee[7]+=E;return a.ae=z,a.ae}function Il(a,y,x,b){function E(Oe,rt,Ye,mt){return(Oe*mt<rt*Ye?-1:1)*Math.acos((Oe*Ye+rt*mt)/(Math.sqrt(Oe*Oe+rt*rt)*Math.sqrt(Ye*Ye+mt*mt)))}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 z=a.Pg;y===0&&(y=1e-4),z===0&&(z=1e-4);var ee=Math.PI/180*a.Ne,re=a.isLargeArc,oe=a.isClockwiseArc,le=a.Dc,ue=a.Ec,fe=Math.cos(ee),Se=Math.sin(ee),be=fe*(x-le)/2+Se*(b-ue)/2;ee=-Se*(x-le)/2+fe*(b-ue)/2;var Ae=be*be/(y*y)+ee*ee/(z*z);return 1<Ae&&(y*=Math.sqrt(Ae),z*=Math.sqrt(Ae)),Ae=(re===oe?-1:1)*Math.sqrt((y*y*z*z-y*y*ee*ee-z*z*be*be)/(y*y*ee*ee+z*z*be*be)),isNaN(Ae)&&(Ae=0),re=Ae*y*ee/z,Ae=Ae*-z*be/y,isNaN(re)&&(re=0),isNaN(Ae)&&(Ae=0),x=(x+le)/2+fe*re-Se*Ae,b=(b+ue)/2+Se*re+fe*Ae,ue=E(1,0,(be-re)/y,(ee-Ae)/z),fe=(be-re)/y,le=(ee-Ae)/z,be=(-be-re)/y,re=(-ee-Ae)/z,ee=E(fe,le,be,re),be=(fe*be+le*re)/(Math.sqrt(fe*fe+le*le)*Math.sqrt(be*be+re*re)),-1>=be?ee=Math.PI:1<=be&&(ee=0),!oe&&0<ee&&(ee-=2*Math.PI),oe&&0>ee&&(ee+=2*Math.PI),oe=y>z?1:y/z,be=y>z?z/y:1,y=Zt.jx(0,0,y>z?y:z,ue,ue+ee,!0),z=Hr.alloc(),z.reset(),z.translate(x,b),z.rotate(a.Ne,0,0),z.scale(oe,be),di.Ha(y,z),Hr.free(z),a.ae=y,a.ae}tt.Object.defineProperties(Io.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&&Qn(a,">= zero",Io,"radiusX"),this._isFrozen&&Sn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Qn(a,">= zero",Io,"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}}}),Io.prototype.equalsApprox=Io.prototype.Xa;var ws=new Xt(Io,"Move",0),ya=new Xt(Io,"Line",1),ol=new Xt(Io,"Bezier",2),He=new Xt(Io,"QuadraticBezier",3),_e=new Xt(Io,"Arc",4),lt=new Xt(Io,"SvgArc",4);Io.className="PathSegment",Io.Move=ws,Io.Line=ya,Io.Bezier=ol,Io.QuadraticBezier=He,Io.Arc=_e,Io.SvgArc=lt;function nn(){this.H=null,this.xu=new Je(0,0).freeze(),this.mt=new Je(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}nn.prototype.copy=function(){var a=new nn;return this.clone(a)},nn.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},nn.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},nn.prototype.So=function(a,y){var x=this.diagram;return x===null||Ud(x,a,y),y},nn.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(Ud(x,a,y),y.assign(x.Ps(y))),y},tt.Object.defineProperties(nn.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}}}),nn.prototype.getMultiTouchDocumentPoint=nn.prototype.Bz,nn.prototype.getMultiTouchViewPoint=nn.prototype.So,nn.className="InputEvent";function hn(){this.H=null,this.xa="",this.ar=this.Lr=null}hn.prototype.copy=function(){var a=new hn;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},hn.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},tt.Object.defineProperties(hn.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}}}),hn.className="DiagramEvent";function Tn(){this.Fm=ri,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Tn.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Tn.prototype.copy=function(){var a=new Tn;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=Rt(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=Rt(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=Rt(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=Rt(y)&&typeof y.J=="function"?y.J():y,a},Tn.prototype.qb=function(a){a.classType===Tn&&(this.change=a)},Tn.prototype.toString=function(){var a="";return a=this.change===Wn?a+"* ":this.change===ri?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===Wn?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=Ki(this.object)),this.oldValue!==null&&(a+=" old: "+Ki(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Ki(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},Tn.prototype.I=function(a){return a?this.oldValue:this.newValue},Tn.prototype.Dz=function(a){return a?this.oldParam:this.newParam},Tn.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Tn.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Tn.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Tn.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},tt.Object.defineProperties(Tn.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===Wn&&(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}}}),Tn.prototype.redo=Tn.prototype.redo,Tn.prototype.canRedo=Tn.prototype.canRedo,Tn.prototype.undo=Tn.prototype.undo,Tn.prototype.canUndo=Tn.prototype.canUndo,Tn.prototype.getParam=Tn.prototype.Dz,Tn.prototype.getValue=Tn.prototype.I,Tn.prototype.clear=Tn.prototype.clear;var Wn=new Xt(Tn,"Transaction",-1),ri=new Xt(Tn,"Property",0),ci=new Xt(Tn,"Insert",1),ki=new Xt(Tn,"Remove",2);Tn.className="ChangedEvent",Tn.Transaction=Wn,Tn.Property=ri,Tn.Insert=ci,Tn.Remove=ki;function lr(){this.o=new Mn().freeze(),this.xa="",this.j=!1}lr.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},lr.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()},lr.prototype.canUndo=function(){return this.isComplete},lr.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()}},lr.prototype.canRedo=function(){return this.isComplete},lr.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()}},lr.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new zi,x=0;x<a.count;x++){var b=a.M(x);if(b!==null&&b.change===ri&&b.object){var E=y.get(b.object);E||(E=new zi,y.set(b.object,E));var z=E.get(b.propertyName);z===null?E.set(b.propertyName,-1):(0<z&&a.cd(z,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()}},tt.Object.defineProperties(lr.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}}}),lr.prototype.optimize=lr.prototype.ak,lr.prototype.redo=lr.prototype.redo,lr.prototype.canRedo=lr.prototype.canRedo,lr.prototype.undo=lr.prototype.undo,lr.prototype.canUndo=lr.prototype.canUndo,lr.prototype.clear=lr.prototype.clear,lr.className="Transaction";function Ai(){this.Pt=new An,this.Jd=!1,this.u=new Mn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Mn().freeze(),this.hl=new Mn,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}Ai.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},Ai.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},Ai.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},Ee=Ai.prototype,Ee.Xw=function(a){this.Pt.add(a)},Ee.Rx=function(a){this.Pt.remove(a)},Ee.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},Ee.eb=function(a){return a===void 0&&(a=""),qi(this,!0,a)},Ee.Kf=function(){return qi(this,!1,"")};function qi(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&Xn("Ending transaction without having started a transaction: "+x);var b=a.transactionLevel===1,E=a.currentTransaction;b&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,E));var z=0;if(0<a.transactionLevel&&(a.bi--,a.isEnabled)){var ee=a.Ie.count;0<ee&&(x===""&&(x=a.Ie.M(0)),a.Ie.ka(),a.Ie.mb(ee-1),a.Ie.freeze()),ee=a.hl.count,0<ee&&(z=a.hl.M(ee-1),a.hl.mb(ee-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&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),b===0||y.count!==0&&y.get(y.count-1)===E||(y.add(E),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,E);else{a.Fe=!0;try{a.isEnabled&&E!==null&&(E.isComplete=!0,E.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,E),a.Fe=!1}E!==null&&E.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&E!==null){for(a=z,x=E.changes,E=x.count-1;E>=a;E--)y=x.M(E),y!==null&&y.undo(),x.ka(),x.mb(E);x.freeze()}return!1}Ee.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()}},Ai.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},Ai.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){Xn("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},Ai.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},Ai.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){Xn("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},Ai.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var b=new Tn;for(b.change=Wn,b.propertyName=a,b.object=x,b.oldValue=y,a=this.models;a.next();)y=a.value,b.model=y,y.ds(b)},Ai.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new lr);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||Xn("Change not within a transaction: "+x.toString()))}},Ai.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},tt.Object.defineProperties(Ai.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}}}),Ai.prototype.handleChanged=Ai.prototype.Tu,Ai.prototype.redo=Ai.prototype.redo,Ai.prototype.undo=Ai.prototype.undo,Ai.prototype.canUndo=Ai.prototype.canUndo,Ai.prototype.discardHistoryAfterIndex=Ai.prototype.lx,Ai.prototype.rollbackTransaction=Ai.prototype.Kf,Ai.prototype.commitTransaction=Ai.prototype.eb,Ai.prototype.startTransaction=Ai.prototype.Ea,Ai.prototype.removeModel=Ai.prototype.Rx,Ai.prototype.addModel=Ai.prototype.Xw,Ai.prototype.clear=Ai.prototype.clear,Ai.className="UndoManager";function Ei(){yr(this),this.H=bc,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new nn,this.Zr=-1}Ei.prototype.toString=function(){return this.name!==""?this.name+" Tool":Fi(this.constructor)},Ei.prototype.updateAdornments=function(){},Ei.prototype.canStart=function(){return this.isEnabled},Ei.prototype.doStart=function(){},Ei.prototype.doActivate=function(){this.isActive=!0},Ei.prototype.doDeactivate=function(){this.isActive=!1},Ei.prototype.doStop=function(){},Ei.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},Ei.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},Ei.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},Ei.prototype.doMouseMove=function(){},Ei.prototype.doMouseUp=function(){this.stopTool()},Ei.prototype.doMouseWheel=function(){},Ei.prototype.canStartMultiTouch=function(){return!0},Ei.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Je.allocAt(NaN,NaN)),b=y.So(1,Je.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){a.Bw=a.scale;var E=b.x-x.x,z=b.y-x.y;a.Jw=Math.sqrt(E*E+z*z),y.bubbles=!1}Je.free(x),Je.free(b)},Ei.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Je.allocAt(NaN,NaN)),b=y.So(1,Je.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){var E=b.x-x.x,z=b.y-x.y;z=Math.sqrt(E*E+z*z)/a.Jw,E=new Je((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),z*=a.Bw;var ee=a.commandHandler;if(z!==a.scale&&ee.canResetZoom(z)){var re=a.zoomPoint;a.zoomPoint=E,ee.resetZoom(z),a.zoomPoint=re}y.bubbles=!1}Je.free(x),Je.free(b)},Ei.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},Ei.prototype.doKeyUp=function(){},Ei.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},Ei.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},Ei.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(Dr?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||(Dr?y.meta:y.control)||y.shift||a.clearSelection()}},Ei.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,Cr(a,b,x),b.handled};function Cr(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)}}}Ei.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 z=a.Ck,ee=z;for(a.Ck=b,this.doCurrentObjectChanged(z,b),y.handled=!1;z!==null;){var re=z.mouseLeave;if(re!==null&&(b===z||b!==null&&b.rg(z)||(re(y,z,b),E=!0,y.handled)))break;z=z.panel}for(z=ee,y.handled=!1;b!==null&&(ee=b.mouseEnter,!(ee!==null&&(z===b||z!==null&&z.rg(b)||(ee(y,b,z),E=!0,y.handled))));)b=b.panel;b=a.Ck}if(b!==null){for(z=b,ee="";z!==null&&(ee=z.cursor,ee==="");)z=z.panel;for(a.currentCursor=ee,y.handled=!1,z=b;z!==null&&(b=z.mouseOver,!(b!==null&&(b(y,z),E=!0,y.handled)));)z=z.panel}else this.doUpdateCursor(null),b=a.mouseOver,b!==null&&(b(y),E=!0);E&&a.$b(),a.skipsUndoManager=x}},Ei.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},Ei.prototype.doCurrentObjectChanged=function(){},Ei.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===fo&&!y.shift||E===br&&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===fo&&y.shift||E===br&&!y.control){b=a.position.copy();var z=y.event;E=z.deltaMode;var ee=z.deltaX;z=z.deltaY;var re="pixel";if(ee===0&&z===0||y.shift)!y.shift&&a.allowVerticalScroll?(x=3*x*a.scrollVerticalLineChange,a.scroll(re,0<x?"up":"down",Math.abs(x))):y.shift&&a.allowHorizontalScroll&&(x=3*x*a.scrollHorizontalLineChange,a.scroll(re,0<x?"left":"right",Math.abs(x)));else{switch(E){case 0:re="pixel";break;case 1:re="line";break;case 2:re="page"}ee!==0&&a.allowHorizontalScroll&&(ee*=a.scrollHorizontalLineChange/16,a.scroll(re,0<ee?"right":"left",Math.abs(ee))),z!==0&&a.allowVerticalScroll&&(z*=a.scrollVerticalLineChange/16,a.scroll(re,0<z?"down":"up",Math.abs(z)))}this.doWheelChange(a,b,y)}}},Ei.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},Ei.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,b=y.clone(this.yy);this.Zr=Rn(function(){x.doWaitAfter(b)},a)},Ei.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Ue.clearTimeout(this.Zr),this.Zr=-1},Ei.prototype.doWaitAfter=function(){},Ei.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof Yo);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},Ei.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},tt.Object.defineProperties(Ei.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof pn&&(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}}}),Ei.prototype.startTransaction=Ei.prototype.Ea,Ei.className="Tool";function ti(){Ei.call(this),this.name="ToolManager",this.hb=new Mn,this.ob=new Mn,this.Hb=new Mn,this.F=this.V=850,this.o=new On(2,2).ja(),this.Ha=5e3,this.ia=br,this.u=vo,this.Mp=this.j=null,this.zj=-1}Lt(ti,Ei),ti.prototype.initializeStandardTools=function(){},ti.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Yo&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},ti.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===yo&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===po){y.bubbles=!0;return}if(this.gestureBehavior===yo)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===br?this.mouseWheelBehavior=fo:this.mouseWheelBehavior===fo&&(this.mouseWheelBehavior=br)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},ti.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===po){y.bubbles=!0;return}if(this.gestureBehavior===yo)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}}er(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function er(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}ti.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof Yo&&(y===a||y.rg(a))||this.hideToolTip()},ti.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()))},ti.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)},ti.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 Yo)||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()},ti.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof Yo){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 Nr&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(Ue.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var E=this;this.zj=Rn(function(){E.hideToolTip()},a)}},ti.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}},ti.prototype.hideToolTip=function(){this.zj!==-1&&(Ue.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof Yo?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Nr&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},ti.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()},ti.prototype.doMouseWheel=function(){this.standardMouseWheel()},ti.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},ti.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},ti.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},ti.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},ti.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)},tt.Object.defineProperties(ti.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 Yo?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}}}),ti.prototype.replaceStandardTool=ti.prototype.gb;var br=new Xt(ti,"WheelScroll",0),fo=new Xt(ti,"WheelZoom",1),ro=new Xt(ti,"WheelNone",2),vo=new Xt(ti,"GestureZoom",3),yo=new Xt(ti,"GestureCancel",4),po=new Xt(ti,"GestureNone",5);ti.className="ToolManager",ti.WheelScroll=br,ti.WheelZoom=fo,ti.WheelNone=ro,ti.GestureZoom=vo,ti.GestureCancel=yo,ti.GestureNone=po;function ur(){Ei.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 Je(NaN,NaN),this.Fr=new Je,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new An().freeze(),this.ia=new ae,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var aa;Lt(ur,Ei),ur.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},ur.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},ur.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,(Dr?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},ur.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),qt=null,this.isActive=!0,this.tl.set(a.position),ea(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&&Fl(a),fh(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,qt=this,bn=this.diagram,this.doSimulatedDragOut()))};function ea(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof fi?(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 ji,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}ur.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},ur.prototype.Pd=function(a){return a===void 0?new Qd(pt):this.isGridSnapEnabled?new Qd(new Je(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new Qd(a.copy())},ur.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),Sa(this),_u(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<aa.count){for(var y=aa,x=y.length,b=0;b<x;b++){var E=y.M(b);fs(E),Ba(E),Sa(E),E.diagram.ug()}y.clear()}fs(this),this.tl.h(NaN,NaN),bn!==null&&(bn.currentCursor=""),qt=bn=null,Ba(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),fd(a,!0)},ur.prototype.stopTransaction=function(){var a=this.diagram,y=Ei.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function Sa(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,as(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function Ka(){var a=qt;Ba(a),Ca(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}ur.prototype.doCancel=function(){Ba(this),Ca(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},ur.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},ur.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function Ha(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")):Ca(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 zi,b=a.draggedParts.iterator;b.next();){var E=b.key;if(E.Zc()&&E.canCopy()){var z=y.I(E);z!==null&&(z.location=E.location,z.Va(),x.add(z,a.Pd(z.location)))}}for(y=y.iterator;y.next();)b=y.value,b instanceof fi&&b.canCopy()&&x.add(b,a.Pd());a.copiedParts=x,ea(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,bh(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function Ba(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 fi&&(x.value.point=new Je(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function fs(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 La(a,y,x){var b=a.diagram,E=a.startPoint,z=Je.alloc();z.assign(b.lastInput.documentPoint),a.moveParts(y,z.re(E),x),Je.free(z),b.Gf("temporaryPixelRatio")===!0&&b.Yh===null&&30<b.$w&&(Fl(b),b.hk())}ur.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var b=this.diagram;b!==null&&uc(b,a,y,this.dragOptions,x)};function Ca(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 fi&&b.suspendsRouting){var E=x.value.point;a.draggedParts.add(b,a.Pd()),bh(b,-E.x,-E.y)}y.bd()}}function Ta(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),Oa(a,!1));var b=a.findDragOverObject(y),E=x.lastInput;E.targetObject=b,a.doUpdateCursor(b);var z=x.skipsUndoManager,ee=!1;try{if(x.skipsUndoManager=!0,ee=as(a,E,b),!a.isActive&&qt===null)return;var re=b!==null?b.part:null;if(re===null||x.handlesDragDropForTopLevelParts&&re.isTopLevel&&!(re instanceof Jr)){var oe=x.mouseDragOver;oe!==null&&(oe(E),ee=!0)}if(!a.isActive&&qt===null||(a.doDragOver(y,b),!a.isActive&&qt===null))return}finally{x.skipsUndoManager=z,ee&&x.bd()}a.Bn=b,x.isReadOnly||!x.allowMove&&!x.allowCopy||!x.allowHorizontalScroll&&!x.allowVerticalScroll||x.gs(E.viewPoint)}ur.prototype.findDragOverObject=function(a){var y=this;return lc(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof Yo||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},ur.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 as(a,y,x){var b=!1,E=a.Cg.length,z=0<E?a.Cg[0]:null;if(x===z)return!1;y.handled=!1;for(var ee=0;ee<E;ee++){var re=a.Cg[ee],oe=re.mouseDragLeave;if(oe!==null&&(oe(y,re,x),b=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&qt===null||x===null)return b;for(y.handled=!1,E=x;E!==null;)a.Cg.push(E),E=gs(E);for(E=a.Cg.length,x=0;x<E&&(ee=a.Cg[x],re=ee.mouseDragEnter,re===null||(re(y,ee,z),b=!0,!y.handled));x++);return b}function gs(a){var y=a.panel;return y!==null?y:a instanceof dr&&!(a instanceof Jr)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function Ja(a,y,x){var b=a.Oe;if(b===null)return null;var E=a.diagram.og(y,b.portGravity,function(le){return b.findValidLinkablePort(le,x)});a=Je.alloc();var z=1/0,ee=null;for(E=E.iterator;E.next();){var re=E.value;if(re.part!==null){var oe=re.ga(xo,a);oe=y.Bf(oe),oe<z&&(ee=re,z=oe)}}return Je.free(a),ee}function Oa(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 z=null,ee=null;x.fromNode===null&&(z=Ja(a,x.i(0),!1),z!==null&&(ee=z.part));var re=null,oe=null;x.toNode===null&&(re=Ja(a,x.i(x.pointsCount-1),!0),re!==null&&(oe=re.part)),E.isValidLink(ee,z,oe,re)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=ee,z!==null&&(x.fromPortId=z.portId),x.toNode=oe,re!==null&&(x.toPortId=re.portId),x.fromPort!==b.Mx&&b.R("LinkRelinked",x,b.Mx),x.toPort!==b.Nx&&b.R("LinkRelinked",x,b.Nx)):wr(E,ee,z,oe,re):wr(E,null,null,null,null)}}}}ur.prototype.doDragOver=function(){};function Rs(a,y){var x=a.diagram;a.dragsLink&&Oa(a,!0),Sa(a);var b=a.findDragOverObject(y),E=x.lastInput;if(E.targetObject=b,b!==null){E.handled=!1;for(var z=b;z!==null;){var ee=z.mouseDrop;if(ee!==null&&(ee(E,z),E.handled))break;hl(a,E,z),z=gs(z)}}else z=x.mouseDrop,z!==null&&z(E);if(a.isActive||qt!==null){for(E=(a.copiedParts||a.draggedParts).iterator;E.next();)z=E.key,z instanceof Di&&z.linksConnected.each(function(re){re.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||qt!==null){for(a=Pn.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof Di&&nt(x,b,a);Pn.free(a)}}}function hl(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Jr||(x=a.mouseDrop,x!==null&&x(y))}function nt(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 fi},!0,function(E){return E instanceof fi},b),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}ur.prototype.doDropOnto=function(){},ur.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()?(Ha(this,!1),fh(a,this.copiedParts),La(this,this.copiedParts,!1),_u(a,this.copiedParts)):this.mayMove()?(Ba(this),La(this,this.draggedParts,!0)):this.mayDragOut()?(Ha(this,!1),La(this,this.copiedParts,!1)):Ba(this),Ta(this,a.lastInput.documentPoint))}},ur.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?(Ba(this),Ha(this,!0),fh(a,this.copiedParts),La(this,this.copiedParts,!1),_u(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,Ba(this),this.mayMove()&&(La(this,this.draggedParts,!0),Ta(this,a.lastInput.documentPoint))),this.Ym=!0,Rs(this,a.lastInput.documentPoint),this.isActive){var b=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&ut(this),a.Ya(),_u(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",b)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},ur.prototype.simulatedMouseMove=function(a,y,x){if(qt===null)return!1;var b=qt.diagram;x instanceof pn||(x=null);var E=bn;return x!==E&&(E!==null&&E!==b&&(E.ug(),qt.isDragOutStarted=!1,E=E.toolManager.findTool("Dragging"),E!==null&&E.doSimulatedDragLeave()),bn=x,x!==null&&x!==b&&(Ka(),E=x.toolManager.findTool("Dragging"),E!==null&&(aa.contains(E)||aa.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)},ur.prototype.simulatedMouseUp=function(a,y,x){if(qt===null)return!1;var b=bn,E=qt.diagram;if(x===null)return qt.doCancel(),!0;if(x!==b){var z=b.toolManager.findTool("Dragging");if(b!==null&&b!==E&&z!==null)return b.ug(),qt.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;bn=x,b=x.toolManager.findTool("Dragging"),b!==null&&(Ka(),aa.contains(b)||aa.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 Je),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=qt,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function ut(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof Di&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}ur.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(Dr?!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())},ur.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())},ur.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())},ur.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},ur.prototype.Az=function(){return qt},ur.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=qt;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},ur.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),Hl(a),a.animationManager.Cc(),a=qt,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},ur.prototype.doSimulatedDragLeave=function(){var a=qt;a!==null&&a.doSimulatedDragOut(),this.doCancel()},ur.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=qt;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;_t(this,y.draggedParts.Lf(),!1,a.firstInput),La(this,this.copiedParts,!1),Ta(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},ur.prototype.doSimulatedDrop=function(){var a=this.diagram,y=qt;if(y!==null){var x=y.diagram;if(y.Ym=!0,Ba(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),_t(this,y.draggedParts.Lf(),!0,a.lastInput),La(this,this.copiedParts,!1);var b=new An;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0,b.add(E)})),Rs(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 _t(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 z=Pn.alloc();E=b=1/0;for(var ee=-1/0,re=-1/0,oe=y.iterator;oe.next();){var le=oe.value;if(le.isVisible()){var ue=le.location;le=ue.x,ue=ue.y,isNaN(le)||isNaN(ue)||(le<b&&(b=le),ue<E&&(E=ue),le>ee&&(ee=le),ue>re&&(re=ue))}}for(b===1/0?z.h(0,0,0,0):z.h(b,E,ee-b,re-E),b=z.x+z.width/2,E=z.y+z.height/2,Pn.free(z),z=a.Fr,ee=new zi,re=Je.alloc(),oe=y.iterator;oe.next();)le=oe.value,le instanceof fi&&le.canCopy()&&(ue=x.I(le),ue!==null&&(ue.points=le.points,bh(ue,z.x-b,z.y-E),ue.suspendsRouting=!0,ee.add(ue,a.Pd())));for(y=y.iterator;y.next();)le=y.value,le.Zc()&&le.canCopy()&&(oe=x.I(le),oe!==null&&(le=le.location,re.h(z.x-(b-le.x),z.y-(E-le.y)),oe.location=re,oe.Va(),ee.add(oe,a.Pd(re))));Je.free(re),a.copiedParts=ee,ea(a,ee.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,bh(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}ur.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},ur.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new Je},tt.Object.defineProperties(ur.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}}}),ur.prototype.getDraggingSource=ur.prototype.Az;var qt=null,bn=null;ur.className="DraggingTool",aa=new Mn,Gn("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),ti.prototype.doCancel=function(){qt!==null&&qt.doCancel(),Ei.prototype.doCancel.call(this)};function gn(){Ei.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new fi,y=new oo;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new oo,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new Di,y=new oo,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Ur,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new Di,y=new oo,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Ur,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 zi,this.Of=this.gj=this.Pf=null}Lt(gn,Ei),gn.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},gn.prototype.copyPortProperties=function(a,y,x,b,E){if(a!==null&&y!==null&&x!==null&&b!==null){var z=y.Df(),ee=On.alloc();ee.width=y.naturalBounds.width*z,ee.height=y.naturalBounds.height*z,b.desiredSize=ee,On.free(ee),E?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=xo,z=Je.alloc(),x.location=y.ga(xo,z),Je.free(z),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,E)}},gn.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=Ur,y.fromSpot=Da,y.toSpot=Da),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},gn.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},gn.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof Di){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)}},gn.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof Di))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof Di)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(b===!1)break;a=a.panel}return null},gn.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,b=this.portGravity;0>=b&&(b=.1);var E=this,z=y.og(x,b,function(fe){return E.findValidLinkablePort(fe,a)},null,!0);for(b=1/0,y=null,z=z.iterator;z.next();){var ee=z.value,re=ee.part;if(re instanceof Di){var oe=ee.ga(xo,Je.alloc()),le=x.x-oe.x,ue=x.y-oe.y;Je.free(oe),oe=le*le+ue*ue,oe<b&&(le=this.validPortsCache.I(ee),le!==null?le&&(y=ee,b=oe):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,re,ee)||!a&&this.isValidLink(re,ee,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(ee,!0),y=ee,b=oe):this.validPortsCache.add(ee,!1))}}return y!==null&&(x=y.part,x instanceof Di&&(x.layer===null||x.layer.allowLink))?y:null},gn.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},gn.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},gn.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},gn.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof Di))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof Di))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},gn.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)},gn.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 An;return b.add(a),Jn(this,x,y,b)};function Jn(a,y,x,b){if(y===x)return!0;var E=y.fromNode;return E!==null&&E.isLinkLabel&&(b.add(E),Jn(a,E.labeledLink,x,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),Jn(a,y.labeledLink,x,b))))}gn.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!==Xf){if(b===fp){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!Un(this,a,y,x,!0)}if(b===gp){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!Un(this,a,y,x,!0)}if(b===cp)return a===y?a=!0:(b=new An,b.add(y),a=Zn(this,b,a,y,x)),!a;if(b===dp)return!Un(this,a,y,x,!1);if(b===hp)return a===y?a=!0:(b=new An,b.add(y),a=xi(this,b,a,y,x)),!a}return!0};function Un(a,y,x,b,E){if(y===x)return!0;if(y===null||x===null)return!1;for(var z=y.linksConnected;z.next();){var ee=z.value;if(ee!==b&&(!E||ee.isTreeLink)&&ee.toNode===y&&(ee=ee.fromNode,ee!==y&&Un(a,ee,x,b,E)))return!0}return!1}function Zn(a,y,x,b,E){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var ee=z.value;if(ee!==E&&ee.toNode===x&&(ee=ee.fromNode,ee!==x&&Zn(a,y,ee,b,E)))return!0}return!1}function xi(a,y,x,b,E){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var ee=z.value;if(ee!==E){var re=ee.fromNode;if(ee=ee.toNode,re=re===x?ee:re,re!==x&&xi(a,y,re,b,E))return!0}}return!1}tt.Object.defineProperties(gn.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}}}),gn.className="LinkingBaseTool";function ni(){gn.call(this),this.name="Linking",this.V={},this.F=null,this.K=mi,this.Xd=null}Lt(ni,gn),ni.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},ni.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 Di)))return null;var x=this.direction;if(x===mi||x===_i){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===mi||x===Ji)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},ni.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 Di&&(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 Di&&(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)},ni.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()},ni.prototype.doStop=function(){gn.prototype.doStop.call(this),this.startObject=null},ni.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,b=null,E=null,z=null;try{var ee=this.targetPort=this.findTargetPort(this.isForwards);if(ee!==null){var re=ee.part;re instanceof Di&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),b=re,E=ee):(y=re,x=ee,this.originalToNode!==null&&(b=this.originalToNode,E=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(b=this.originalToNode,E=this.originalToPort);y!==null||b!==null?(z=this.insertLink(y,x,b,E),z!==null?(ee===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),z.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",z)):this.doNoLink(y,x,b,E)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),z&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},ni.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof fi)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)},ni.prototype.insertLink=function(a,y,x,b){return this.diagram.partManager.insertLink(a,y,x,b)},ni.prototype.doNoLink=function(){},tt.Object.defineProperties(ni.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 mi=new Xt(ni,"Either",0),_i=new Xt(ni,"ForwardsOnly",0),Ji=new Xt(ni,"BackwardsOnly",0);ni.className="LinkingTool",ni.Either=mi,ni.ForwardsOnly=_i,ni.BackwardsOnly=Ji;function ji(){gn.call(this),this.name="Relinking";var a=new oo;a.figure="Diamond",a.desiredSize=eo,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new oo,a.figure="Diamond",a.desiredSize=eo,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new Pn}Lt(ji,gn),ji.prototype.updateAdornments=function(a){if(a!==null&&a instanceof fi){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)}},ji.prototype.makeAdornment=function(a,y){var x=new Yo;return x.type=si.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},ji.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},ji.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 Yo&&x.adornedPart instanceof fi))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=$r),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=$r),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},ji.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===jg||x===Eh)&&(x=au),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}},ji.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()},ji.prototype.doStop=function(){gn.prototype.doStop.call(this),this.handle=null},ji.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,z=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var ee=this.targetPort.part;ee instanceof Di&&(this.isForwards?(b=ee,E=this.targetPort):(y=ee,x=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?E=b=null:x=y=null:z=null;z!==null?(this.reconnectLink(z,this.isForwards?b:y,this.isForwards?E:x,this.isForwards),this.targetPort===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint,z.bb()),this.transactionResult=this.name,a.R("LinkRelinked",z,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.Xo(this.Ew)}finally{this.stopTool()}}},ji.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},ji.prototype.doNoRelink=function(){};function wr(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)}tt.Object.defineProperties(ji.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 Yo))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),ji.className="RelinkingTool",Gn("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),Gn("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function Vi(){Ei.call(this),this.name="LinkReshaping";var a=new oo;a.figure="Rectangle",a.desiredSize=Ao,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new oo,a.figure="Diamond",a.desiredSize=eo,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new Je,this.Yq=new Mn}Lt(Vi,Ei),Vi.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:Er},Vi.prototype.om=function(a,y){a.reshapingBehavior=y},Vi.prototype.updateAdornments=function(a){if(a!==null&&a instanceof fi){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)}},Vi.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,b=y.isOrthogonal,E=null;if(y.points!==null&&1<x){E=new Yo,E.type=si.Link,x=y.firstPickIndex;var z=y.lastPickIndex,ee=b?1:0;if(y.resegmentable&&y.computeCurve()!==nc)for(var re=x+ee;re<z-ee;re++){var oe=this.makeResegmentHandle(a,re);oe!==null&&(oe.segmentIndex=re,oe.segmentFraction=.5,oe.fromMaxLinks=999,E.add(oe))}for(ee=x+1;ee<z;ee++)if(re=this.makeHandle(a,ee),re!==null){if(re.segmentIndex=ee,ee!==x)if(ee===x+1&&b){oe=y.i(x);var le=y.i(x+1);Zt.B(oe.x,le.x)&&Zt.B(oe.y,le.y)&&(le=y.i(x-1)),Zt.B(oe.x,le.x)?(this.om(re,So),re.cursor="n-resize"):Zt.B(oe.y,le.y)&&(this.om(re,Or),re.cursor="w-resize")}else ee===z-1&&b?(oe=y.i(z-1),le=y.i(z),Zt.B(oe.x,le.x)&&Zt.B(oe.y,le.y)&&(oe=y.i(z+1)),Zt.B(oe.x,le.x)?(this.om(re,So),re.cursor="n-resize"):Zt.B(oe.y,le.y)&&(this.om(re,Or),re.cursor="w-resize")):ee!==z&&(this.om(re,Lo),re.cursor="move");E.add(re)}E.adornedObject=a}return E},Vi.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},Vi.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},Vi.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},Vi.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 fi){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}}},Vi.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},Vi.prototype.stopTransaction=function(){var a=this.diagram,y=Ei.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Vi.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},Vi.prototype.getResegmentingPoint=function(){return this.handle.ga(xo)},Vi.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},Vi.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),z=y.i(x+1);if(y.isOrthogonal){if(x>y.firstPickIndex+1&&x<y.lastPickIndex-1){var ee=y.i(x-2);if(Math.abs(b.x-E.x)<this.resegmentingDistance&&Math.abs(b.y-E.y)<this.resegmentingDistance&&(kr(this,ee,b,E,z,!0)||kr(this,ee,b,E,z,!1))){var re=y.points.copy();kr(this,ee,b,E,z,!0)?(re.cd(x-2,new Je(ee.x,(z.y+ee.y)/2)),re.cd(x+1,new Je(z.x,(z.y+ee.y)/2))):(re.cd(x-2,new Je((z.x+ee.x)/2,ee.y)),re.cd(x+1,new Je((z.x+ee.x)/2,z.y))),re.mb(x),re.mb(x-1),y.points=re,y.Wb()}else ee=y.i(x+2),Math.abs(E.x-z.x)<this.resegmentingDistance&&Math.abs(E.y-z.y)<this.resegmentingDistance&&(kr(this,b,E,z,ee,!0)||kr(this,b,E,z,ee,!1))&&(re=y.points.copy(),kr(this,b,E,z,ee,!0)?(re.cd(x-1,new Je(b.x,(b.y+ee.y)/2)),re.cd(x+2,new Je(ee.x,(b.y+ee.y)/2))):(re.cd(x-1,new Je((b.x+ee.x)/2,b.y)),re.cd(x+2,new Je((b.x+ee.x)/2,ee.y))),re.mb(x+1),re.mb(x),y.points=re,y.Wb())}}else ee=Je.alloc(),Zt.qh(b.x,b.y,z.x,z.y,E.x,E.y,ee)&&ee.Bf(E)<this.resegmentingDistance*this.resegmentingDistance&&(b=y.points.copy(),b.mb(x),y.points=b,y.Wb()),Je.free(ee)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function kr(a,y,x,b,E,z){return z?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}Vi.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===So?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):b===Or&&(y.L(x,a.x,y.i(x-1).y),y.L(x+1,a.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),z!==null&&z!==b&&(b=z,E=b.port)),x===1&&y.computeSpot(!0,E).Mc()&&(z=E.ga(xo,Je.alloc()),b=y.getLinkPointFromPoint(b,E,z,a,!0,Je.alloc()),y.L(0,b.x,b.y),Je.free(z),Je.free(b)),b=y.toNode,E=y.toPort,b!==null&&(z=b.findVisibleNode(),z!==null&&z!==b&&(b=z,E=b.port)),x===y.pointsCount-2&&y.computeSpot(!1,E).Mc()&&(x=E.ga(xo,Je.alloc()),a=y.getLinkPointFromPoint(b,E,x,a,!1,Je.alloc()),y.L(y.pointsCount-1,a.x,a.y),Je.free(x),Je.free(a));y.zf()},Vi.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case Lo:return a;case So:return new Je(y.i(x).x,a.y);case Or:return new Je(a.x,y.i(x).y);default:case Er:return y.i(x)}},tt.Object.defineProperties(Vi.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 Yo))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}}}),Vi.prototype.setReshapingBehavior=Vi.prototype.om,Vi.prototype.getReshapingBehavior=Vi.prototype.Ru;var Er=new Xt(Vi,"None",0),Or=new Xt(Vi,"Horizontal",1),So=new Xt(Vi,"Vertical",2),Lo=new Xt(Vi,"All",3);Vi.className="LinkReshapingTool",Vi.None=Er,Vi.Horizontal=Or,Vi.Vertical=So,Vi.All=Lo,Gn("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function Wr(){Ei.call(this),this.name="Resizing",this.o=new On(1,1).freeze(),this.j=new On(9999,9999).freeze(),this.yg=new On(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new oo;a.alignmentFocus=xo,a.figure="Rectangle",a.desiredSize=Ao,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new Je,this.Dw=new On,this.Tn=new Je,this.rt=new On(0,0),this.qt=new On(1/0,1/0),this.pt=new On(1,1)}Lt(Wr,Ei),Wr.prototype.updateAdornments=function(a){if(!(a===null||a instanceof fi)){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(),Uh(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},Wr.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new Yo,y.type=si.Spot,y.locationSpot=xo;var x=new ou;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,ga)),y.add(this.makeHandle(a,ml)),y.add(this.makeHandle(a,vl)),y.add(this.makeHandle(a,il)),y.add(this.makeHandle(a,os)),y.add(this.makeHandle(a,Ls)),y.add(this.makeHandle(a,xs)),y.add(this.makeHandle(a,hs))}else if(Nc(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Wr.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},Wr.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=xo),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 si)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},Wr.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},Wr.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))},Wr.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},Wr.prototype.stopTransaction=function(){var a=this.diagram,y=Ei.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Wr.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},Wr.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,Je.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),a.bd(),Je.free(E)}},Wr.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,Je.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),Je.free(E),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},Wr.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 Mn;if(b.add(a),!this.dragsMembers&&a.placeholder===null){var E=new ae;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()}},Wr.prototype.computeResize=function(a,y,x,b,E,z){y.Mc()&&(y=xo);var ee=this.adornedObject.naturalBounds,re=ee.x,oe=ee.y,le=ee.x+ee.width,ue=ee.y+ee.height,fe=1;if(!z){fe=ee.width;var Se=ee.height;0>=fe&&(fe=1),0>=Se&&(Se=1),fe=Se/fe}return Se=Je.alloc(),Zt.No(a.x,a.y,re,oe,E.width,E.height,Se),a=ee.copy(),0>=y.x?0>=y.y?(a.x=Math.max(Se.x,le-b.width),a.x=Math.min(a.x,le-x.width),a.width=Math.max(le-a.x,x.width),a.y=Math.max(Se.y,ue-b.height),a.y=Math.min(a.y,ue-x.height),a.height=Math.max(ue-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(fe*a.width,b.height),x.height),a.width=a.height/fe):(a.width=Math.max(Math.min(a.height/fe,b.width),x.width),a.height=fe*a.width),a.x=le-a.width,a.y=ue-a.height)):1<=y.y?(a.x=Math.max(Se.x,le-b.width),a.x=Math.min(a.x,le-x.width),a.width=Math.max(le-a.x,x.width),a.height=Math.max(Math.min(Se.y-oe,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(fe*a.width,b.height),x.height),a.width=a.height/fe):(a.width=Math.max(Math.min(a.height/fe,b.width),x.width),a.height=fe*a.width),a.x=le-a.width)):(a.x=Math.max(Se.x,le-b.width),a.x=Math.min(a.x,le-x.width),a.width=le-a.x,z||(a.height=Math.max(Math.min(fe*a.width,b.height),x.height),a.width=a.height/fe,a.y=oe+.5*(ue-oe-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(Se.x-re,b.width),x.width),a.y=Math.max(Se.y,ue-b.height),a.y=Math.min(a.y,ue-x.height),a.height=Math.max(ue-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(fe*a.width,b.height),x.height),a.width=a.height/fe):(a.width=Math.max(Math.min(a.height/fe,b.width),x.width),a.height=fe*a.width),a.y=ue-a.height)):1<=y.y?(a.width=Math.max(Math.min(Se.x-re,b.width),x.width),a.height=Math.max(Math.min(Se.y-oe,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(fe*a.width,b.height),x.height),a.width=a.height/fe):(a.width=Math.max(Math.min(a.height/fe,b.width),x.width),a.height=fe*a.width))):(a.width=Math.max(Math.min(Se.x-re,b.width),x.width),z||(a.height=Math.max(Math.min(fe*a.width,b.height),x.height),a.width=a.height/fe,a.y=oe+.5*(ue-oe-a.height))):0>=y.y?(a.y=Math.max(Se.y,ue-b.height),a.y=Math.min(a.y,ue-x.height),a.height=ue-a.y,z||(a.width=Math.max(Math.min(a.height/fe,b.width),x.width),a.height=fe*a.width,a.x=re+.5*(le-re-a.width))):1<=y.y&&(a.height=Math.max(Math.min(Se.y-oe,b.height),x.height),z||(a.width=Math.max(Math.min(a.height/fe,b.width),x.width),a.height=fe*a.width,a.x=re+.5*(le-re-a.width))),Je.free(Se),a},Wr.prototype.computeReshape=function(){var a=qn;return this.adornedObject instanceof oo&&(a=Mv(this.adornedObject)),!(a===ir||this.diagram.lastInput.shift)},Wr.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},Wr.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},Wr.prototype.computeCellSize=function(){var a=new On(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},tt.Object.defineProperties(Wr.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 Yo))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 Yo)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}}}),Wr.className="ResizingTool",Gn("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function to(){Ei.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new Je,this.ue=null;var a=new oo;a.figure="Ellipse",a.desiredSize=eo,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new Je(NaN,NaN),this.u=0,this.F=50}Lt(to,Ei),to.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)}},to.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new Yo,y.type=si.Position,y.locationSpot=xo;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(Nc(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},to.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},to.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)},to.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(xo)},to.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)},to.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Je(NaN,NaN),this.isActive=a.isMouseCaptured=!1},to.prototype.stopTransaction=function(){var a=this.diagram,y=Ei.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},to.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},to.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},to.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()},to.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()}},to.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},tt.Object.defineProperties(to.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 Yo))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 Yo)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}}}),to.className="RotatingTool",Gn("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Ko(){Ei.call(this),this.name="ClickSelecting"}Lt(Ko,Ei),Ko.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Ko.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Ko.className="ClickSelectingTool";function Rr(){Ei.call(this),this.name="Action",this.pk=null}Lt(Rr,Ei),Rr.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},Rr.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()},Rr.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))}},Rr.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()},Rr.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())},Rr.prototype.doStop=function(){this.pk=null},Rr.className="ActionTool";function lo(){Ei.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Je(0,0)}Lt(lo,Ei),lo.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)},lo.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},lo.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 dr)x.Zc()&&(Nc(x),b=x.copy(),b!==null&&y.add(b));else if(x!==null){var E=y.model.copyNodeData(x);Rt(E)&&(y.model.xf(E),b=y.Lc(E))}if(b!==null){var z=Je.allocAt(a.x,a.y);this.isGridSnapEnabled&&vf(this.diagram,b,a,z),b.location=z,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),Je.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},tt.Object.defineProperties(lo.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}}}),lo.className="ClickCreatingTool";function Zr(){Ei.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new dr;a.layerName="Tool",a.selectable=!1;var y=new oo;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Lt(Zr,Ei),Zr.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))},Zr.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},Zr.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},Zr.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=On.alloc().h(y.width,y.height);x.desiredSize=b,this.box.mm(y.x,y.y,!1),On.free(b),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},Zr.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()},Zr.prototype.computeBoxBounds=function(){var a=this.diagram;return new Pn(a.firstInput.documentPoint,a.lastInput.documentPoint)},Zr.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),Dr?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 Mn,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)}},tt.Object.defineProperties(Zr.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}}}),Zr.className="DragSelectingTool";function mr(){Ei.call(this),this.name="Panning",this.Xt=new Je,this.xy=new Je,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(Ue.document,"scroll",a.Kw,!1),a.stopTool()}}Lt(mr,Ei),mr.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())},mr.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(Ue.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},mr.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},mr.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},mr.prototype.doMouseMove=function(){this.move()},mr.prototype.doMouseUp=function(){this.move(),this.stopTool()},mr.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)}},tt.Object.defineProperties(mr.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),mr.className="PanningTool",Gn("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),Gn("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),Gn("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),Gn("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),Gn("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function Nr(){this.F=this.u=this.j=this.o=null}tt.Object.defineProperties(Nr.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}}}),Nr.className="HTMLInfo";function uo(a,y,x){this.text=a,this.hx=y,this.visible=x}uo.className="ContextMenuButtonInfo";function Mo(){Ei.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new Je,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}Lt(Mo,Ei);function Fo(a){var y=new Nr;y.show=function(E,z,ee){ee.showDefaultContextMenu()},y.hide=function(E,z){z.hideDefaultContextMenu()},ta=y,a.tu=function(){a.stopTool()},y=dn("div");var x=dn("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=dn("style");Ue.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",Fr,!1),b.addEventListener(y,"selectstart",Fr,!1),b.addEventListener(x,"contextmenu",Fr,!1)),y.className="goCXforeground",x.className="goCXbackground",Ue.document.body&&(Ue.document.body.appendChild(y),Ue.document.body.appendChild(x)),Wo=y,fa=x,Qa=!0}function Fr(a){return a.preventDefault(),!1}Mo.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)},Mo.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},Mo.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},Mo.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,b=null;if(a instanceof pn||(a instanceof Kt?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},Mo.prototype.doActivate=function(){},Mo.prototype.doMouseDown=function(){if(Ei.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Yo){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&Vo(this)},Mo.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Yo){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}Vo(this)};function Vo(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var b=null;x instanceof Nr||(b=y.ic(y.lastInput.documentPoint,null,null),b!==null&&b.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(b)}}else a.canStart()&&(_o(a,!0),a.isActive||a.stopTool())}Mo.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function _o(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=ta,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var b=x.contextMenu;b!==null?(a.currentObject=x instanceof Kt?x:null,a.showContextMenu(b,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof Yo&&!a.currentContextMenu.visible&&a.stopTool()}}Mo.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},Mo.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof Yo){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 Nr&&a.show(y,x,this);this.currentContextMenu=a},Mo.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}},Mo.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof Yo?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Nr&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function na(a){var y=new Mn;return y.add(new uo("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new uo("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new uo("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new uo("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new uo("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new uo("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new uo("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new uo("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new uo("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new uo("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new uo("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new uo("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new uo("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}Mo.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=na(this)),Wo.innerHTML="",fa.addEventListener("pointerdown",this.tu,!1);var y=this,x=dn("ul");x.className="goCXul",Wo.appendChild(x),x.innerHTML="";for(var b=this.jt.iterator;b.next();){var E=b.value,z=E.visible;if(typeof E.hx=="function"&&(typeof z!="function"||z(a))){z=dn("li"),z.className="goCXli";var ee=dn("a");ee.className="goCXa",ee.href="#",ee.ky=E.hx,ee.addEventListener("pointerdown",function(re){return this.ky(a),y.stopTool(),re.preventDefault(),!1},!1),ee.textContent=E.text,z.appendChild(ee),x.appendChild(z)}}Wo.style.display="block",fa.style.display="block"},Mo.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===ta){Wo.style.display="none",fa.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(fa,"pointerdown",this.tu,!1),this.currentContextMenu=null}},tt.Object.defineProperties(Mo.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof Yo?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return Qa===!1&&ta===null&&cs&&Fo(this),ta},set:function(a){a===null&&(Qa=!0),ta=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var ta=null,Qa=!1,fa=null,Wo=null;Mo.className="ContextMenuTool",Gn("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function Po(){Ei.call(this),this.name="TextEditing",this.Zh=new ba,this.ia=null,this.V=wo,this.vj=null,this.qa=tr,this.u=1,this.F=!0,this.o=null,this.j=new Nr,this.kt=null,To(this,this.j)}Lt(Po,Ei);function To(a,y){if(cs){var x=dn("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(bo)):E==="Tab"?(a.acceptText(Ro),b.preventDefault()):E==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==tr){var b=a.kt;a.qa===Gr&&(a.qa=Uo),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==tr){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,z){if(b instanceof ba&&z instanceof Po)if(z.state===al)x.style.border="3px solid red",x.focus();else{var ee=b.ga(xo),re=E.position,oe=E.scale,le=b.Df()*oe;le<z.minimumEditorScale&&(le=z.minimumEditorScale);var ue=b.naturalBounds.width*le+6,fe=b.naturalBounds.height*le+2,Se=(ee.x-re.x)*oe;ee=(ee.y-re.y)*oe,re=b.verticalAlignment,oe=(b.lineHeight+b.spacingAbove+b.spacingBelow)*b.lineCount*le,fe=re.y*fe-re.y*oe+re.offsetY-(.5*fe-.5*oe)-oe/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*le+"%",x.style.lineHeight="normal",x.style.width=ue+"px",x.style.left=(Se-ue/2|0)-1+"px",x.style.top=(ee+fe|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=le,x.className="goTXarea",E.div.appendChild(x),x.focus(),z.selectsTextOnActivate&&(x.select(),x.setSelectionRange(0,9999))}},y.hide=function(b){b.div.removeChild(x)}}}Po.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||Al&&Al!==this&&(Al.acceptText(ns),Al&&Al!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof ba&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===wo&&!y.isSelected||this.starting===so&&2>a.lastInput.clickCount)):!1},Po.prototype.doStart=function(){Al=this,this.textBlock!==null&&this.doActivate()},Po.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 ba&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=Gr;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var b=new Pn(this.textBlock.ga(ga),this.textBlock.ga(vl));a.tv(b),x.show(y,a,this),this.currentTextEditor=x}}}},Po.prototype.doCancel=function(){this.stopTool()},Po.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Po.prototype.doMouseDown=function(){this.isActive&&this.acceptText(ns)},Po.prototype.acceptText=function(a){switch(a){case ns:this.qa===zs?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Gr||this.qa===al||this.qa===Uo)&&(this.qa=sa,Ya(this));break;case Ia:case bo:case Ro:(bo!==a||this.textBlock.isMultiline!==!0)&&(this.qa===Gr||this.qa===al||this.qa===Uo)&&(this.qa=sa,Ya(this))}};function Ya(a){var y=a.textBlock,x=a.diagram,b=a.currentTextEditor;if(y!==null&&b!==null){var E=y.text,z="";b.valueFunction!==null&&(z=b.valueFunction()),a.isValidText(y,E,z)?(a.Ea(a.name),a.qa=zs,a.transactionResult=a.name,y.text=z,a.doSuccess(E,z),x!==null&&x.R("TextEdited",y,E),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=al,a.doError(E,z))}}Po.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)},Po.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},Po.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=tr,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},Po.prototype.doStop=function(){Al=null},Po.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)))},Po.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},tt.Object.defineProperties(Po.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)}}}),Po.prototype.measureTemporaryTextBlock=Po.prototype.Lx;var Ia=new Xt(Po,"LostFocus",0),ns=new Xt(Po,"MouseDown",1),Ro=new Xt(Po,"Tab",2),bo=new Xt(Po,"Enter",3),Zo=new Xt(Po,"SingleClick",0),wo=new Xt(Po,"SingleClickSelected",1),so=new Xt(Po,"DoubleClick",2),tr=new Xt(Po,"StateNone",0),Gr=new Xt(Po,"StateActive",1),Uo=new Xt(Po,"StateEditing",2),sa=new Xt(Po,"StateValidating",3),al=new Xt(Po,"StateInvalid",4),zs=new Xt(Po,"StateValidated",5),Al=null;Po.className="TextEditingTool",Po.LostFocus=Ia,Po.MouseDown=ns,Po.Tab=Ro,Po.Enter=bo,Po.SingleClick=Zo,Po.SingleClickSelected=wo,Po.DoubleClick=so,Po.StateNone=tr,Po.StateActive=Gr,Po.StateEditing=Uo,Po.StateValidating=sa,Po.StateInvalid=al,Po.StateValidated=zs,Gn("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function Na(a){Ms||(Xa(),Ms=!0),this.H=bc,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=Ys,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new An,this.ce=new $a,this.ce.Yd=this,this.Ei=new An,this.pu=new An,this.Sr=new An,this.pr=new An,a&&Object.assign(this,a)}Na.prototype.Xe=function(a){this.H=a},Na.prototype.canStart=function(){return!0};function Ua(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),sl(a.H),a.zb=!0)}function Do(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,b=a.Zd.contains("Model");b&&(a.Ok=!0,a.Pk===Ys?(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===vu&&y.vc.clear(),a.Qw=!!(a.Pk===Wu&&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(),Ml(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,b=y.vc.get(x),x.autoScale!==Yl&&b!==null&&(delete b.start.scale,delete b.end.scale),Ue.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&Fl(x),Wd(x),a.zb=!1,y.start(),y.bc&&(is(a),x.Ya(),Cc(y,0),Hl(x,!0),bs(a),x.R("AnimationStarting",a)))}))}}function Vs(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Ll(a,y,x,b){a.isTicking||Vs(a)||y instanceof fi&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}Ee=Na.prototype,Ee.fv=function(a){return this.ce.fv(a)},Ee.Xu=function(a){return this.ce.Xu(a)};function Wa(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 z=E.pu.iterator;z.next();){var ee=z.value;if(ee.bc!==!1){e:if(0<ee.yl.count)var re=!0;else{for(re=ee.vc.iterator;re.next();){var oe=re.key;if(oe instanceof Kt&&oe.diagram!==null||oe instanceof pn){re=!0;break e}}re=!1}re?Nu(ee,!1):ee.Xk=!0}}E.pu.clear(),E.bc!==!1&&(is(E),Hl(E.H),bs(E)),Ue.requestAnimationFrame(x)}}var b=a.Ei,E=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),Ue.requestAnimationFrame(function(){x()}))}function _a(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function is(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 bs(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}Ee.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(),Ml(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),Ml(y,this.H)},Ee.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))},Ee.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),ss(this,a))},Ee.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),Ps(this.ce,y,"position",y.position,y.position),ss(this,a))};function Gs(a,y,x){!a.zb||y.D(x)||Vs(a)||(a.H.pi||(y=x.copy()),Ps(a.ce,a.H,"position",y,x))}function xa(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function ss(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function Js(a,y,x,b,E){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var z=a[0],ee=a[1],re=a[2];a=a[3];var oe=y[0],le=y[1],ue=y[2];return y=y[3],re===0||re===100?(z=oe,ee=le):(ue===0||ue===100)&&(oe=z,le=ee),180<Math.abs(oe-z)&&(oe>z?z+=360:oe+=360),z=E(x,z,oe-z,b)%360,ee=E(x,ee,le-ee,b),re=E(x,re,ue-re,b),x=E(x,a,y-a,b),"hsla("+z+", "+ee+"%, "+re+"%, "+x+")"}function Xa(){function a(x,b,E,z,ee,re){x.position=new Je(z(ee,b.x,E.x-b.x,re),z(ee,b.y,E.y-b.y,re))}var y=new zi;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,b,E,z,ee,re){ee<re?x.mm(z(ee,b.x,E.x-b.x,re),z(ee,b.y,E.y-b.y,re),!1):x.position=new Je(z(ee,b.x,E.x-b.x,re),z(ee,b.y,E.y-b.y,re))}),y.add("location",function(x,b,E,z,ee,re){ee<re?x.mm(z(ee,b.x,E.x-b.x,re),z(ee,b.y,E.y-b.y,re),!0):x.location=new Je(z(ee,b.x,E.x-b.x,re),z(ee,b.y,E.y-b.y,re))}),y.add("position:placeholder",function(x,b,E,z,ee,re){ee<re?x.mm(z(ee,b.x,E.x-b.x,re),z(ee,b.y,E.y-b.y,re),!1):x.position=new Je(z(ee,b.x,E.x-b.x,re),z(ee,b.y,E.y-b.y,re))}),y.add("position:nodeCollapse",function(x,b,E,z,ee,re){var oe=x.actualBounds,le=E.actualBounds;E=le.x+le.width/2-oe.width/2,oe=le.y+le.height/2-oe.height/2,ee<re?x.mm(z(ee,b.x,E-b.x,re),z(ee,b.y,oe-b.y,re),!1):x.position=new Je(z(ee,b.x,E-b.x,re),z(ee,b.y,oe-b.y,re))}),y.add("desiredSize",function(x,b,E,z,ee,re){x.desiredSize=new Pn(z(ee,b.width,E.width-b.width,re),z(ee,b.height,E.height-b.height,re))}),y.add("width",function(x,b,E,z,ee,re){x.width=z(ee,b,E-b,re)}),y.add("height",function(x,b,E,z,ee,re){x.height=z(ee,b,E-b,re)}),y.add("fill",function(x,b,E,z,ee,re){x.fill=Js(b,E,ee,re,z)}),y.add("stroke",function(x,b,E,z,ee,re){x.stroke=Js(b,E,ee,re,z)}),y.add("strokeWidth",function(x,b,E,z,ee,re){x.strokeWidth=z(ee,b,E-b,re)}),y.add("strokeDashOffset",function(x,b,E,z,ee,re){x.strokeDashOffset=z(ee,b,E-b,re)}),y.add("background",function(x,b,E,z,ee,re){x.background=Js(b,E,ee,re,z)}),y.add("areaBackground",function(x,b,E,z,ee,re){x.areaBackground=Js(b,E,ee,re,z)}),y.add("opacity",function(x,b,E,z,ee,re){x.opacity=z(ee,b,E-b,re)}),y.add("scale",function(x,b,E,z,ee,re){x.scale=z(ee,b,E-b,re)}),y.add("angle",function(x,b,E,z,ee,re){x.angle=z(ee,b,E-b,re)}),zo=y}tt.Object.defineProperties(Na.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&&Qn(a,">= 1",Na,"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}}}),Na.prototype.stopAnimation=Na.prototype.Cc;var zo=null,Ms=!1,Ys=new Xt(Na,"Default",1),Wu=new Xt(Na,"AnimateLocations",2),vu=new Xt(Na,"None",3);Na.className="AnimationManager",Na.defineAnimationEffect=function(a,y){Ms||(Xa(),Ms=!0),zo.add(a,y)},Na.Default=Ys,Na.AnimateLocations=Wu,Na.None=vu;function $a(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=ql,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=pt,this.vc=new zi,this.Tt=new zi,this.yl=new An,this.Ut=new An,this.dw=mh,a&&Object.assign(this,a)}$a.prototype.suspend=function(){this.Xk=!0},$a.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,Nu(this,!0),is(this.Yd),Hl(this.H),bs(this.Yd),this.H.redraw()};function Ml(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}Ee=$a.prototype,Ee.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 pn?a=x:x instanceof Kt&&(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===Ys&&this===y.defaultAnimation&&(this.Lp=ac,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=Jf),is(y),this.yl.each(function(b){b.data=null,a.add(b)}),bs(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,Wa(y,this),this)},Ee.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},Ee.add=function(a,y,x,b,E){if(y==="position"&&x.Xa(b))return this;if(this.H===null&&(a instanceof pn?this.H=a:a instanceof Kt&&a.diagram!==null&&(this.H=a.diagram)),a instanceof dr){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return Ps(this,a,y,x,b,E),this};function Ps(a,y,x,b,E,z){var ee=a.vc;if(y instanceof pn&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&($d(b),cv(),b=[tc.j,tc.u,tc.o,tc.F],$d(E),cv(),E=[tc.j,tc.u,tc.o,tc.F]),ee.contains(y)){var re=ee.I(y),oe=re.start,le=re.end;oe[x]===void 0&&(oe[x]=ps(b)),le[x]=ps(E)}else oe={},le={},oe[x]=ps(b),le[x]=ps(E),re=oe.position,y instanceof Kt&&re instanceof Je&&!re.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&re.assign(le.position),re=new sc(oe,le,z),ee.add(y,re);ee=oe[x],ee instanceof Je&&!ee.w()&&ee.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof dr?re.Ku.location=ps(y.location):z&&(re.Ku[x]=ps(b))}function ps(a){return a instanceof Je||a instanceof On?a.copy():a}Ee.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},Ee.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function Nu(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),is(x),Cc(a,E),Hl(a.H,!0),bs(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 Cc(a,y){for(var x=a.Gd,b=a.vc.iterator,E=a.Wk;b.next();){var z=b.key;if(!(z instanceof Kt&&z.diagram===null)){var ee=b.value,re=E?ee.end:ee.start;ee=E?ee.start:ee.end;var oe=zo,le;for(le in ee)le==="position"&&(ee["position:placeholder"]||ee["position:nodeCollapse"])||oe.get(le)===null||oe.get(le)(z,re[le],ee[le],a.Lp,y,x,a)}}}Ee.stop=function(){return this.bc?(this.Ml(!0),this):this},Ee.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,is(x);for(var b=this.vc,E=this.yl.iterator;E.next();)y.remove(E.value);for(E=this.Ut.iterator;E.next();)E.value.v();E=this.ho,b=b.iterator;for(var z=zo;b.next();){var ee=b.key,re=b.value,oe=E?re.end:re.start,le=E?re.start:re.end,ue=re.Ku,fe;for(fe in le)if(z.get(fe)!==null){var Se=fe;!re.Hu||Se!=="position:nodeCollapse"&&Se!=="position:placeholder"||(Se="position"),z.get(Se)(ee,oe[fe],ue[fe]!==void 0?ue[fe]:re.Hu?oe[fe]:le[fe],this.Lp,this.Gd,this.Gd,this)}re.Hu&&ue.location!==void 0&&ee instanceof dr&&(ee.location=ue.location),re.nv&&ee instanceof dr&&ee.Zb(!1)}if(y.As.clear(),fd(y,!1),y.Ya(),y.N(),Hl(y,!0),x.defaultAnimation===this){for(fe=x.pr.iterator;fe.next();)E=fe.value,E.Tg!==null&&(E.points=E.Tg,E.Tg=null);x.pr.clear()}Hl(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),bs(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),Ml(this,null),x.Ml(this),y.$b())}},Ee.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof Jr&&(b=y.placeholder),b!==null?(x=b.ga(ga),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Je(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 Di&&this.Cj(b,y)},Ee.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Jr&&(x=y.placeholder),x!==null){var b=x.ga(ga);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 Di&&this.Aj(b,y)}},Ee.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},tt.Object.defineProperties($a.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Qn(a,">= 1",$a,"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:Pt("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}}}),$a.prototype.getTemporaryState=$a.prototype.Ez,$a.prototype.stop=$a.prototype.stop,$a.prototype.add=$a.prototype.add,$a.prototype.addTemporaryPart=$a.prototype.Iy;function ql(a,y,x,b){return a/=b/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function ac(a,y,x,b){return a===b?y+x:x*(-Math.pow(2,-10*a/b)+1)+y}$a.className="Animation",$a.EaseLinear=function(a,y,x,b){return x*a/b+y},$a.EaseInOutQuad=ql,$a.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},$a.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},$a.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},$a.EaseOutExpo=ac;function sc(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}sc.className="AnimationState";function yu(a,y,x){this.xd=null,this.rf=a,this.so=x||ls,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=Qs))}yu.prototype.copy=function(){var a=new yu(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 Ra(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))}tt.Object.defineProperties(yu.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 ls=new Xt(yu,"Default",1),Qs=new Xt(yu,"Immediate",2),ms=new Xt(yu,"Bundled",3);yu.className="AnimationTrigger",yu.Default=ls,yu.Immediate=Qs,yu.Bundled=ms;function za(a){yr(this),this.H=null,this.Pa=new Mn,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)}Ee=za.prototype,Ee.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,Kl(x)}a.clear(),this.Zq.length=0},Ee.Xe=function(a){this.H=a},Ee.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,z=0,ee=0,re=this.Pa.iterator;re.next();){var oe=re.value;oe instanceof Jr?E++:oe instanceof Di?b++:oe instanceof fi?z++:oe instanceof Yo?ee++:x++}if(re="",0<x&&(re+=x+" Parts "),0<b&&(re+=b+" Nodes "),0<E&&(re+=E+" Groups "),0<z&&(re+=z+" Links "),0<ee&&(re+=ee+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)x=a.value,re+=`
`+x.toString(),b=x.data,b!==null&&xr(b)&&(re+=" #"+xr(b)),x instanceof Di?re+=" "+Ki(b):x instanceof fi&&(re+=" "+Ki(x.fromNode)+" "+Ki(x.toNode));return y+" "+this.Pa.count+": "+re},Ee.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=Je.alloc(),z=this.Pa.s,ee=z.length;ee--;){var re=z[ee];if((b!==!0||Uh(re)!==!1)&&re.isVisible()&&(E.assign(a),$n(E,re.oe),re=re.ic(E,y,x),re!==null&&(y!==null&&(re=y(re)),re!==null&&(x===null||x(re)))))return Je.free(E),re}return Je.free(E),null},Ee.ji=function(a,y,x,b){if(y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Mn||b instanceof An||(b=new An),this.Uh===!1)return b;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var z=Je.alloc(),ee=this.Pa.s,re=ee.length;re--;){var oe=ee[re];if((E!==!0||Uh(oe)!==!1)&&oe.isVisible()){z.assign(a),$n(z,oe.oe);var le=oe;oe.ji(z,y,x,b)&&(y!==null&&(le=y(le)),le===null||x!==null&&!x(le)||b.add(le))}}return Je.free(z),b},Ee.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 Mn||E instanceof An||(E=new An),this.Uh===!1)return E;var z=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(z=!0);for(var ee=this.Pa.s,re=ee.length;re--;){var oe=ee[re];if((z!==!0||Uh(oe)!==!1)&&oe.isVisible()){var le=oe;oe.Cf(a,y,x,b,E)&&(y!==null&&(le=y(le)),le===null||x!==null&&!x(le)||E.add(le))}}return E},Ee.Nu=function(a,y,x,b,E,z,ee){if(this.Uh===!1)return E;for(var re=this.Pa.s,oe=re.length;oe--;){var le=re[oe];if((ee!==!0||Uh(le)!==!1)&&z(le)&&le.isVisible()){var ue=le;le.Cf(a,y,x,b,E)&&(y!==null&&(ue=y(ue)),ue===null||x!==null&&!x(ue)||E.add(ue))}}return E},Ee.og=function(a,y,x,b,E,z){if(x===void 0&&(x=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof Mn||E instanceof An)&&(z=E),E=!0),z instanceof Mn||z instanceof An||(z=new An),this.Uh===!1)return z;var ee=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(ee=!0);for(var re=Je.alloc(),oe=Je.alloc(),le=this.Pa.s,ue=le.length;ue--;){var fe=le[ue];if((ee!==!0||Uh(fe)!==!1)&&fe.isVisible()){re.assign(a),$n(re,fe.oe),oe.h(a.x+y,a.y),$n(oe,fe.oe);var Se=fe;fe.og(re,oe,x,b,E,z)&&(x!==null&&(Se=x(Se)),Se===null||b!==null&&!b(Se)||z.add(Se))}}return Je.free(re),Je.free(oe),z},Ee.Fd=function(a,y){if(this.visible){var x=this.Pa.s,b=x.length;if(b!==0){a=ei();for(var E=ei(),z=0;z<b;z++){var ee=x[z];if(ee.vw=z,ee instanceof fi){if(ee.fd===!1)continue}else if(ee instanceof Yo&&ee.adornedPart!==null)continue;var re=ee.actualBounds;ee.isVisible()&&ma(re,y)?(ee.Fd(!0),a.push(ee)):(ee.Fd(!1),ee.adornments!==null&&0<ee.adornments.count&&E.push(ee))}for(y=0;y<a.length;y++)for(x=a[y],jv(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++)jv(E[y]);yi(a),yi(E)}}};function _s(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}Ee.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=_s(this,a);var z=this.Zq;z.length=0;for(var ee=y.scale,re=Pn.alloc(),oe=0;oe<b;oe++)this.Oj(a,x[oe],y,z,ee,re,!0);if(Pn.free(re),a.isTemporary)for(y=0;y<b;y++)x[y].Gj();a.globalAlpha=E}}};function Rl(a,y,x,b,E){if(a.visible&&a.pb!==0&&(E||!a.isTemporary)){E=a.Pa.s;var z=E.length;if(z!==0){var ee=_s(a,y),re=a.Zq;re.length=0;for(var oe=x.scale,le=Pn.alloc(),ue=0;ue<z;ue++){var fe=E[ue];b.contains(fe)&&a.Oj(y,fe,x,re,oe,le,!1)}Pn.free(le),y.globalAlpha=ee}}}Ee.Oj=function(a,y,x,b,E,z,ee){if(ee&&!Uh(y))a.Hs(y);else{if(b!==null&&y instanceof fi&&(y.isOrthogonal&&b.push(y),y.fd===!1)){a.Hs(y);return}for(ee=!1,b=y.containingGroup;b!==null;)ee?b.tb!==null&&z.Ex(b.tb):b.tb!==null&&(ee=!0,z.assign(b.tb)),b=b.containingGroup;var re=y.actualBounds;if(b=!1,ee&&y.isVisible()){if(!z.Yc(re)){a.Hs(y);return}b=!z.Re(re)}b&&(a.save(),a instanceof Ku?a.bk=z.copy():(a.beginPath(),a.rect(z.x,z.y,z.width,z.height),a.clip())),re.width*E>x.Oq||re.height*E>x.Oq?y.gc(a,x):(E=y.actualBounds,z=y.naturalBounds,E.width===0||E.height===0||isNaN(E.x)||isNaN(E.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(ds(y,a,y.areaBackground,!0,!0,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.areaBackground===null&&y.background===null&&(ds(y,a,"rgba(0,0,0,0.3)",!0,!1,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),ds(y,a,y.background,!0,!1,z,E),a.fillRect(0,0,z.width/2,z.height/2),x.ws()||(y=1/(x.m11*x.m22-x.m12*x.m21),a.transform(x.m22*y,-x.m12*y,-x.m21*y,x.m11*y,y*(x.m21*x.dy-x.m22*x.dx),y*(x.m12*x.dx-x.m11*x.dy)))))),b&&(a.restore(),a.Vc(!0))}},Ee.g=function(a,y,x,b,E){var z=this.diagram;z!==null&&z.cb(ri,a,this,y,x,b,E)},Ee.oi=function(a,y,x){var b=this.Pa;if(y.Ig=this,this===null&&Kl(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)),Zu(this,a,y),a},Ee.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,Kl(y),a};function Zu(a,y,x){if(y=uh(a,y,x),x instanceof Jr&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var b=-1,E=a.Pa.s,z=E.length,ee=0;ee<z;ee++){var re=E[ee];if(re===x&&(y=ee,0<=b)||0>b&&re.containingGroup===x&&(b=ee,0<=y))break}!(0>b)&&b<y&&(E=a.Pa,E.mb(y),E.Gb(b,x))}y=x.containingGroup,y!==null&&Zu(a,-1,y)}x.svg!==null&&x.svg.remove()}function uh(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 z=y-1,ee=NaN;0<=z&&(ee=a.M(z).zOrder,!!isNaN(ee));)z--;for(var re=y+1,oe=NaN;re<E&&(oe=a.M(re).zOrder,!!isNaN(oe));)re++;if(!isNaN(ee)&&ee>b)for(;;){if(z===-1||ee<=b){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(ee=NaN;0<=--z&&(ee=a.M(z).zOrder,isNaN(ee)););}else if(!isNaN(oe)&&oe<b)for(;;){if(re===E||oe>=b){if(re--,re===y)break;return a.mb(y),a.Gb(re,x),re}for(oe=NaN;++re<E&&(oe=a.M(re).zOrder,isNaN(oe)););}return y}tt.Object.defineProperties(za.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===""&&Pt("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&Pt("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)&&Qn(a,"0 <= value <= 1",za,"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))}}}),za.prototype.findObjectsNear=za.prototype.og,za.prototype.findObjectsIn=za.prototype.Cf,za.prototype.findObjectsAt=za.prototype.ji,za.prototype.findObjectAt=za.prototype.ic,za.className="Layer";function pn(a,y){if(fm||(Wl(),fm=!0),yr(this),bc=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,cs){var x=this,b=function(){x.removeEventListener(Ue.document,"DOMContentLoaded",b,!1),x.setRTL()};Ue.document.body!==null?this.setRTL():x.addEventListener(Ue.document,"DOMContentLoaded",b,!1)}this.ol=null,nd.add("Model",ra);var E=this;return this.Hb=function(z){var ee=E.partManager;if(z.model===ee.diagram.model&&ee.diagram.aa){ee.diagram.aa=!1;try{var re=z.change;z.modelChange===""&&re===ri&&ee.updateDataBindings(z.object,z.propertyName)}finally{ee.diagram.aa=!0}}},this.Oc=function(z){E.partManager.doModelChanged(z)},this.hu=this.ku=null,jh(this),this.model=gy(),this.Wg=!0,Zd(this),this.layout=new Za,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 gm,a!==void 0&&(typeof a=="string"||Ue.Element&&a instanceof Element?zc(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var Rc,bc;function jh(a){a.Yd=new Na,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new Mn,a.pj=new zi,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new Je(NaN,NaN).freeze(),a.du=new Je(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new Je(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new Hr,a.zu=new Je(NaN,NaN).freeze(),a.ut=new Pn(NaN,NaN,NaN,NaN).freeze(),a.rj=new Gi(0,0,0,0).freeze(),a.sj=mh,a.nu=!1,a.Zt=null,a.fu=null,a.yh=Yl,a.zk=Xo,a.Fg=Yl,a.pq=Xo,a.yt=ga,a.Bt=ga,a.Fc=!0,a.pn=!1,a.De=new An,a.Eh=new zi,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new Gi(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new nn,a.bq.diagram=a,a.Qg=new nn,a.Qg.diagram=a,a.cj=new nn,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,up(a),a.ai=new An,a.Ht=!0,a.uu=vh,a.pw=!1,a.wu=Xf,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 zi,a.Xn=new Mn,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 Gi(5).freeze(),a.Hw=new An().freeze(),a.Nt=999999999,a.nw=new An().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 An,a.ow=new An,a.Xh=null,a.aw=new On(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new Je,bounds:new Pn,Py:new On,bA:new On,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new Pn(NaN,NaN,NaN,NaN).freeze(),a.wo=new On(NaN,NaN).freeze(),a.Sp=new Pn(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new zi;var y=new Di,x=new ba;x.bind(new ks("text","",Ki)),y.add(x),a.ny=y,a.Lg.add("",y),y=new Di,x=new ba,x.stroke="brown",x.bind(new ks("text","",Ki)),y.add(x),a.Lg.add("Comment",y),y=new Di,y.selectable=!1,y.avoidable=!1,x=new oo,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new On(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new zi,y=new Jr,y.selectionObjectName="GROUPPANEL",y.type=si.Vertical,x=new ba,x.font="bold 12pt sans-serif",x.bind(new ks("text","",Ki)),y.add(x),x=new si(si.Auto),x.name="GROUPPANEL";var b=new oo;b.figure="Rectangle",b.fill="rgba(128,128,128,0.2)",b.stroke="black",x.add(b),b=new ou,b.padding=new Gi(5,5,5,5).ja(),x.add(b),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new zi,y=new fi,x=new oo,x.isPanelMain=!0,y.add(x),x=new oo,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new fi,x=new oo,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new Yo,y.type=si.Auto,x=new oo,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new ou,x.margin=new Gi(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new Yo,y.type=si.Link,x=new oo,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 ra,a.toolManager=new ti,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new ae,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=_c(),a.eq=null,a.fq=Dn,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 Je,a.zy=500,a.wp=new Je,a.wq=!1}pn.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),wf=null,Kh="",bd(this,!1),this.Xn.clear(),Tg(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function bd(a,y){a.animationManager.Cc(!0),a.Hw=new An().freeze(),a.nw=new An().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 z=[],ee=a.Wa.length;if(y){for(y=0;y<ee;y++)for(var re=a.Wa.s[y].parts;re.next();){var oe=re.value;oe!==E&&oe.data===null&&z.push(oe)}for(y=0;y<z.length;y++)a.remove(z[y])}for(y=0;y<ee;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(),Tg(),a.Og.clear(),Pr=[],E!==null&&(a.add(E),a.partManager.parts.remove(E)),b&&(a.skipsUndoManager=x),z}function _c(){return null}pn.prototype.reset=function(){this.clear(),this.vb=!0,jh(this),Hc(this),this.Wg=!0,Zd(this),this.layout=new Za,this.Wg=!1,this.model=gy(),this.model.undoManager=new Ai,this.vb=this.rn=!1,this.N()},pn.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=Ue.document.body);var y=dn("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},pn.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=Ue.document.body);var y=0;if(cs){var x=Lc;y=Rc,x===null&&(x=Lc=dn("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=Rc=dn("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||Dr||(y=11)}this.Db=y,this.Gw=!0},pn.prototype.qb=function(a){a.classType===pn&&(this.autoScale=a)},pn.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 zc(a,y){if(cs){if(y!=null||Pt("Diagram setup requires an argument DIV."),a.Ka!==null&&Pt("Diagram has already completed setup."),typeof y=="string"?a.Ka=Ue.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:Pt("No DIV or DIV id supplied: "+y),a.Ka===null&&Pt("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&Pt("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Ue.ResizeObserver){var x=Dt(function(){a.$b()},250);a.ol=new Ue.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Ue.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var b="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=b,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=Ue.go;var E=new kc(a);if(E.style!==void 0&&(E.style.position="absolute",E.style.top="0px",E.style.left="0px",Ue.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),E.style.zIndex="2",E.style.userSelect="none",E.style.MozUserSelect="none",E.style.touchAction="none",E.style.letterSpacing="normal !important",E.style.wordSpacing="normal !important"),a.ta=E,a.ib=E.context,b=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),hh(a,a.Aa,a.ya),a.Ka.insertBefore(E.Oa,a.Ka.firstChild),E=new kc(null),E.width=1,E.height=1,a.jw=E,a.oy=E.context,cs){E=dn("div");var z=dn("div");E.style.position="absolute",E.style.overflow="auto",E.style.width=a.Aa+"px",E.style.height=a.ya+"px",E.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(E),E.appendChild(z),E.onscroll=pf,E.addEventListener("pointerdown",Vd),E.H=a,E.uy=!0,E.vy=!0,a.ku=E,a.hu=z}a.hk=Dt(function(){a.Yh=null,a.N()},300),a.Ov=Dt(function(){Wd(a)},250),a.preventDefault=function(ee){return ee.preventDefault(),!1},a.$j=function(ee){if(a.isEnabled){var re=eu(a,ee,!0);re.bubbles=!0;var oe=0,le=0;re.delta=0,ee.deltaX!==void 0?(ee.deltaX!==0&&(oe=0<ee.deltaX?1:-1),ee.deltaY!==0&&(le=0<ee.deltaY?1:-1),re.delta=Math.abs(ee.deltaX)>Math.abs(ee.deltaY)?-oe:-le):ee.wheelDeltaX!==void 0?(ee.wheelDeltaX!==0&&(oe=0<ee.wheelDeltaX?-1:1),ee.wheelDeltaY!==0&&(le=0<ee.wheelDeltaY?-1:1),re.delta=Math.abs(ee.wheelDeltaX)>Math.abs(ee.wheelDeltaY)?-oe:-le):ee.wheelDelta!==void 0&&ee.wheelDelta!==0&&(re.delta=0<ee.wheelDelta?1:-1),a.doMouseWheel(),Su(re,ee)}},a.aA=function(ee){a.isEnabled&&(a.Vk=!1,eu(a,ee,!0),ee=a.currentTool,ee.cancelWaitAfter(),ee.standardMouseOver())},a.ui=function(ee){if(a.isEnabled){a.Vk=!0;var re=a.Yt;re[ee.pointerId]===void 0&&(re[ee.pointerId]=ee),re=a.oj;var oe=!1;if(re[0]===null||re[0].pointerId!==ee.pointerId&&re[0].pointerType===ee.pointerType)if(re[1]!==null&&re[1].pointerId===ee.pointerId)re[1]=ee,oe=!0;else if(re[0]===null)re[0]=ee;else if(re[1]===null)re[1]=ee,oe=!0;else{ee.preventDefault();return}else re[0]=ee;(re=ee.pointerType==="touch"||ee.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var le=oe;oe=Yd(a,ee,!0,!1,!0,le),Ed(a,ee,oe),oe.targetDiagram=ch(ee,ee.target),oe.targetObject=null,le||oe.clone(a.bq),le=a.uw,re=re?25:10,ee.timeStamp-a.tw<a.zy&&!(Math.abs(le.x-ee.screenX)>re||Math.abs(le.y-ee.screenY)>re)?a.yq++:a.yq=1,oe.clickCount=a.yq,a.tw=ee.timeStamp,a.uw.sg(ee.screenX,ee.screenY),a.doMouseDown(),ee.button===1?ee.preventDefault():Su(oe,ee)}},a.dk=function(ee){if(a.isEnabled){a.Vk=!0;var re=a.oj;if(re[0]===null||re[0].pointerId!==ee.pointerId&&re[0].pointerType===ee.pointerType){if(re[1]!==null&&re[1].pointerId===ee.pointerId){re[1]=ee;return}if(re[0]===null)re[0]=ee;else return}else re[0]=ee;if(re[0].pointerId===ee.pointerId){re=Yd(a,ee,!1,!1,!1,re[1]!==null);var oe=Ue.document.elementFromPoint(ee.clientX,ee.clientY)||null;oe!==null&&oe.shadowRoot!==void 0&&oe.shadowRoot!==null&&(oe=oe.shadowRoot.elementFromPoint(ee.clientX,ee.clientY));var le=a,ue=ee;oe&&oe.H&&(ue=ee,le=oe.H),re.targetDiagram=le,Ed(a,ue,re),re.targetObject=null,a.doMouseMove(),Su(re,ee)}}},a.fk=function(ee){if(a.isEnabled){a.Vk=!0;var re=ee.pointerType==="touch"||ee.pointerType==="pen",oe=a.Yt;if(re&&a.qu)delete oe[ee.pointerId],ee.preventDefault();else if(oe=a.oj,oe[0]===null||oe[0].pointerId!==ee.pointerId&&oe[0].pointerType===ee.pointerType)oe[1]!==null&&oe[1].pointerId===ee.pointerId&&(oe[1]=null);else{oe[0]=null,oe=Yd(a,ee,!1,!0,!0,!1);var le=Ue.document.elementFromPoint(ee.clientX,ee.clientY)||null;le!==null&&le.shadowRoot!==void 0&&le.shadowRoot!==null&&(le=le.shadowRoot.elementFromPoint(ee.clientX,ee.clientY)),le!==null&&le.H instanceof pn&&le.H!==a&&Ed(le.H,ee,oe),le===null&&(le=ee.target),Ed(a,ee,oe),oe.clickCount=a.yq,oe.targetDiagram=ch(ee,le),oe.targetObject=null,a.doMouseUp(),Su(oe,ee),re&&(a.wq=!1)}}},a.ek=function(ee){if(a.isEnabled){a.Vk=!1;var re=a.Yt;re[ee.pointerId]&&delete re[ee.pointerId],re=a.oj,re[0]!==null&&re[0].pointerId===ee.pointerId&&(re[0]=null),re[1]!==null&&re[1].pointerId===ee.pointerId&&(re[1]=null),ee.pointerType!=="touch"&&ee.pointerType!=="pen"&&(ee=a.currentTool,ee.cancelWaitAfter(),ee.standardMouseOver())}},a.ck=function(ee){var re=a.oj;re[0]!==null&&re[0].pointerId===ee.pointerId?(re[0]=null,a.wq=!1):re[1]!==null&&re[1].pointerId===ee.pointerId&&(re[1]=null)},a.Vp=b.Z["d"+_f[1]+_f[2]+"wI"+Cf.slice(1,5)]["b"+W1.slice(1,y)](b.Z,Qf,y,y),b.Vc(!0),gf(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}pn.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},pn.prototype.removeEventListener=function(a,y,x,b){a.removeEventListener(y,x,{capture:b})};function gf(a){var y=a.ta.Oa;y instanceof HTMLCanvasElement||(y=a.div),a.addEventListener(y,"pointerdown",a.ui,!1),a.addEventListener(y,"pointermove",a.dk,!1),a.addEventListener(y,"pointerup",a.fk,!1),a.addEventListener(y,"pointerout",a.ek,!1),a.addEventListener(y,"pointercancel",a.ck,!1),a.addEventListener(y,"pointerenter",a.bz,!1),a.addEventListener(y,"pointerleave",a.cz,!1),a.addEventListener(y,"wheel",a.$j,!1),a.addEventListener(y,"keydown",a.Qz,!1),a.addEventListener(y,"keyup",a.Rz,!1),a.addEventListener(y,"blur",a.Ny,!1),a.addEventListener(y,"focus",a.Oy,!1),a.addEventListener(y,"selectstart",function(x){return x.preventDefault(),!1},!1),a.addEventListener(y,"contextmenu",function(x){return x.preventDefault(),!1},!1),a.addEventListener(Ue,"resize",a.Ov,!1)}function Fl(a){30<a.Sq&&(a.Yh=1)}function fd(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),Mr&&Mr.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}pn.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Ue.devicePixelRatio||1},pn.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},pn.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},pn.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},pn.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},pn.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},pn.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},pn.prototype.doFocus=function(){this.focus()},pn.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=Ue.scrollX||Ue.pageXOffset,y=Ue.scrollY||Ue.pageYOffset;this.ta.focus(),Ue.scrollTo(a,y)}},pn.prototype.Oy=function(){this.H.R("GainedFocus")},pn.prototype.Ny=function(){this.H.R("LostFocus")};function Wd(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===Yl&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function Zd(a){var y=new za;y.name="Background",a.Al(y),y=new za,y.name="",a.Al(y),y=new za,y.name="Foreground",a.Al(y),y=new za,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new za,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new za,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function Kd(a){var y=new si(si.Grid);y.name="GRID";var x=new oo;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new oo,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new oo,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new oo,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new oo,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new oo,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new dr,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 pf(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):ed(this.H)}function Vd(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):ed(this.H)}pn.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,z=this.rj,ee=b.x-z.left,re=b.y-z.top,oe=b.width+z.left+z.right,le=b.height+z.top+z.bottom,ue=b.right+z.right;z=b.bottom+z.bottom;var fe=E.x;b=E.y;var Se=E.width,be=E.height,Ae=E.right,Oe=E.bottom;E=this.scale;var rt=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":rt=rt+a.scrollWidth-a.clientWidth;break;case"reverse":rt=a.scrollWidth-rt-a.clientWidth}var Ye=rt;Se<oe||be<le?(rt=Je.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Ye&&(rt.x=Ye/E+ee,this.ju=Ye),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(rt.y=a.scrollTop/E+re,this.lu=a.scrollTop),this.position=rt,Je.free(rt),this.Ee=this.qr=!1):(rt=Je.alloc(),a.uy&&this.allowHorizontalScroll&&(ee<fe&&(this.position=rt.h(Ye+ee,this.position.y)),ue>Ae&&(this.position=rt.h(-(y.scrollWidth-this.Aa)+Ye-this.Aa/E+ue,this.position.y))),a.vy&&this.allowVerticalScroll&&(re<b&&(this.position=rt.h(this.position.x,a.scrollTop+re)),z>Oe&&(this.position=rt.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/E+z))),Je.free(rt),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,E=this.viewportBounds,ue=b.right,Ae=E.right,z=b.bottom,Oe=E.bottom,ee=b.x,fe=E.x,re=b.y,b=E.y,Se>=oe&&ee>=fe&&ue<=Ae&&(x.style.width="1px"),be>=le&&re>=b&&z<=Oe&&(x.style.height="1px"))}},pn.prototype.computeBounds=function(a){return a===void 0&&(a=new Pn),sl(this),Gd(this,a)};function Gd(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,b=a.Wa.s,E=b.length,z=0;z<E;z++){var ee=b[z];if(ee.visible&&ee.isInDocumentBounds){ee=ee.Pa.s;for(var re=ee.length,oe=0;oe<re;oe++){var le=ee[oe];le.isInDocumentBounds&&le.isVisible()&&(le=le.actualBounds,le.w()&&(x?(x=!1,y.assign(le)):y.ed(le)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}pn.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(vn(a))for(var b=0;b<a.length;b++){var E=a[b];!y&&E instanceof fi||(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 fi||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds));return x===null?new Pn(NaN,NaN,0,0):x};function Fu(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=Je.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=Pn.allocAt(0,0,b.width,b.height);var E=Je.alloc();E.xi(b,a.initialViewportSpot),E.h(x.x-E.x,x.y-E.y),a.position=E,Pn.free(b),Je.free(E),Je.free(x)}x=a.yh,y&&a.Fg!==Yl&&(x=a.Fg);var z=x!==Yl?$c(a,x):a.scale;x=a.pa.x,b=a.pa.y,E=a.Aa/z;var ee=a.ya/z,re=a.zk,oe=a.pq;y&&!re.sb()&&(oe.sb()||oe.Xb())&&(re=oe.Xb()?xo:oe),Hh(a,a.documentBounds,E,ee,re,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,Zt.B(z.x,x)&&Zt.B(z.y,b)&&Zt.B(z.width,E)&&Zt.B(z.height,ee)||a.onViewportBoundsChanged(new Pn(x,b,E,ee),z,y,!1)}}function $c(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 z=a.Aa+(a.gf?a.Db:0),ee=a.ya+(a.Be?a.Db:0),re=z/E,oe=ee/b;return y===$u?(y=Math.min(oe,re),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===Vh?(y=oe>re?(ee-a.Db)/b:(z-a.Db)/E,y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):a.scale}pn.prototype.zoomToFit=function(){var a=this.sj;this.sj=mh,this.scale=$c(this,$u),a!==mh&&(Fu(this,!1),Hh(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Ee=pn.prototype,Ee.BA=function(a,y){y===void 0&&(y=$u);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var E=1;if(y===$u||y===Vh)if(isNaN(x))E=this.viewportBounds.height*this.scale/b;else if(isNaN(b))E=this.viewportBounds.width*this.scale/x;else{E=this.Aa;var z=this.ya;E=y===Vh?z/b>E/x?(z-(this.Be?this.Db:0))/b:(E-(this.gf?this.Db:0))/x:Math.min(z/b,E/x)}this.scale=E,this.position=new Je(a.x,a.y)}},Ee.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new Je(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))},Ee.zz=function(a){if(a instanceof Kt){this.eq=a;var y=Je.alloc();this.fq=this.op(a.ga(ga,y)),Je.free(y)}else this.eq=null,this.fq=Dn};function Hh(a,y,x,b,E,z){var ee=Je.allocAt(a.pa.x,a.pa.y),re=ee.x,oe=ee.y;if(a.eq!==null){var le=Je.alloc();le=a.eq.ga(ga,le),re=le.x-a.fq.x/a.scale,oe=le.y-a.fq.y/a.scale,E=Da,Je.free(le)}(z||a.scrollMode===mh)&&(E.sb()&&(x>y.width&&(re=y.x+(E.x*y.width+E.offsetX)-(E.x*x-E.offsetX)),b>y.height&&(oe=y.y+(E.y*y.height+E.offsetY)-(E.y*b-E.offsetY))),E=a.rj,z=x-y.width,x<y.width+E.left+E.right?(re=Math.min(re+x/2,y.right+Math.max(z,E.right)-x/2),re=Math.max(re,y.left-Math.max(z,E.left)+x/2),re-=x/2):re>y.left?re=y.left:re<y.right-x&&(re=y.right-x),x=b-y.height,b<y.height+E.top+E.bottom?(oe=Math.min(oe+b/2,y.bottom+Math.max(x,E.bottom)-b/2),oe=Math.max(oe,y.top-Math.max(x,E.top)+b/2),oe-=b/2):oe>y.top?oe=y.top:oe<y.bottom-b&&(oe=y.bottom-b)),ee.x=isFinite(re)?re:-a.yb.left,ee.y=isFinite(oe)?oe:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,ee),ee.x=y.x,ee.y=y.y),Gs(a.Yd,a.pa,ee),a.pa.h(ee.x,ee.y),Hc(a),Je.free(ee)}Ee.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=lc(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof dr)return a}else if(a=lc(this,a,function(x){return x.part}),a instanceof dr)return a;return null},Ee.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),sl(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 lc(a,y,x,b){for(x===void 0&&(x=null),b===void 0&&(b=null),sl(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}Ee.lz=function(a,y,x){return y===void 0&&(y=!0),qc(this,a,function(b){return b.part},y?function(b){return b instanceof dr&&b.canSelect()}:null,x)};function qc(a,y,x,b,E){for(x===void 0&&(x=null),b===void 0&&(b=null),E instanceof Mn||E instanceof An||(E=new An),sl(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,x,b,E)}return E}Ee.ji=function(a,y,x,b){y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Mn||b instanceof An||(b=new An),sl(this);for(var E=this.Wa.iteratorBackwards;E.next();){var z=E.value;z.visible&&z.ji(a,y,x,b)}return b},Ee.ux=function(a,y,x,b){return y===void 0&&(y=!1),x===void 0&&(x=!0),gd(this,a,function(E){return E instanceof dr&&(!x||E.canSelect())},y,b)},Ee.Cf=function(a,y,x,b,E){y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Mn||E instanceof An||(E=new An),sl(this);for(var z=this.Wa.iteratorBackwards;z.next();){var ee=z.value;ee.visible&&ee.Cf(a,y,x,b,E)}return E},Ee.Nu=function(a,y,x,b,E,z){var ee=new An;sl(this);for(var re=this.Wa.iteratorBackwards;re.next();){var oe=re.value;oe.visible&&oe.Nu(a,y,x,b,ee,E,z)}return ee};function gd(a,y,x,b,E){var z=null;for(z===void 0&&(z=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Mn||E instanceof An||(E=new An),sl(a),a=a.Wa.iteratorBackwards;a.next();){var ee=a.value;ee.visible&&!ee.isTemporary&&ee.Cf(y,z,x,b,E)}return E}Ee.mz=function(a,y,x,b,E){return x===void 0&&(x=!0),b===void 0&&(b=!0),pd(this,a,y,function(z){return z instanceof dr&&(!b||z.canSelect())},x,E)},Ee.og=function(a,y,x,b,E,z){x===void 0&&(x=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof Mn||E instanceof An)&&(z=E),E=!0),z instanceof Mn||z instanceof An||(z=new An),sl(this);for(var ee=this.Wa.iteratorBackwards;ee.next();){var re=ee.value;re.visible&&re.og(a,y,x,b,E,z)}return z};function pd(a,y,x,b,E,z){var ee=null;for(ee===void 0&&(ee=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof Mn||E instanceof An)&&(z=E),E=!0),z instanceof Mn||z instanceof An||(z=new An),sl(a),a=a.Wa.iteratorBackwards;a.next();){var re=a.value;re.visible&&!re.isTemporary&&re.og(y,x,ee,b,E,z)}return z}pn.prototype.acceptEvent=function(a){return eu(this,a,a instanceof MouseEvent)};function eu(a,y,x){var b=a.Qg;return a.Qg=a.cj,a.cj=b,b.diagram=a,b.event=y,x?Ed(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),Dr&&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=ch(y,y.target),b.targetObject=null,b}function ch(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 Yd(a,y,x,b,E,z){var ee=a.Qg;return a.Qg=a.cj,a.cj=ee,ee.diagram=a,ee.clickCount=1,a=ee.delta=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),ee.modifiers=a,ee.event=y,ee.timestamp=y.timeStamp,ee.button=y.button,ee.buttons=y.buttons,Dr&&y.button===0&&y.ctrlKey&&(ee.button=2),ee.down=x,ee.up=b,ee.handled=!1,ee.bubbles=E,ee.isMultiTouch=z,ee}function Su(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}pn.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=eu(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(),Su(x,a)},pn.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=eu(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(),Su(x,a)},pn.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=eu(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),Su(x,a)},pn.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=eu(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),Su(x,a)},pn.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new Je(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?$n(new Je(y,a),this.Ab):new Je(y,a)};function Ed(a,y,x){var b=a.ta,E=a.Aa,z=a.ya,ee=0,re=0;b!==null&&(b=b.getBoundingClientRect(),ee=y.clientX-E/b.width*b.left,re=y.clientY-z/b.height*b.top),x.viewPoint.h(ee,re),a.Ab!==null?(y=Je.allocAt(ee,re),a.Ab.Cd(y),x.documentPoint.assign(y),Je.free(y)):x.documentPoint.h(ee,re)}function Ud(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))}}pn.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function dh(a){a.ld||sl(a),a.Va()}pn.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},Ee=pn.prototype,Ee.Pz=function(){return this.kg},Ee.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,Hl(this),this.hf=!1,this.du=new Je(NaN,NaN),y.isEnabled=x,this.ld=!0;var b=this;a!==null&&Rn(function(){b.ld=!1,Ua(y,"Model"),a(b)},1)},Ee.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;Ue.requestAnimationFrame(function(){y.kg&&y.bd()})}},Ee.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),Hl(this))};function jc(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||ed(a)||(y&&sl(a),x&&Fu(a,!1))}function Hl(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,z=E.length,ee=0;ee<z;ee++){var re=E[ee];Hs(re,!1),re.v()}b.clear()}b=a.ow,0<b.count&&(b.each(function(oe){oe.Nv()}),b.clear()),E=b=!1,x.defaultAnimation.isAnimating&&(E=!0,b=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||Wd(a),jc(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(Ec(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),sl(a),z=!1,(!a.hf||a.xh)&&(a.hf?Zh(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),Zh(a,!1)),z=!0),a.Jk=!1,sl(a),a.ou||dh(a),jc(a,!0,!1),ee=!1,z?(x=Pn.alloc(),x.assign(a.viewportBounds),a.hf||(ee=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,Xd(a)),a.R("LayoutCompleted"),jc(a,!0,!1),Pn.free(x)):x.Ok&&x.Qw&&(a.Fg!==Yl?a.scale=$c(a,a.Fg):a.yh!==Yl?a.scale=$c(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),Fu(a,!0)),z&&ee&&a.eb("Initial Layout"),sl(a),y||a.gc(a.ib),E&&(a.skipsUndoManager=b),a.ld=!1}}function Xd(a){if(a.Fg!==Yl)a.scale=$c(a,a.Fg);else if(a.yh!==Yl)a.scale=$c(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}Fu(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),Ec(a)}function sl(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 An,a.Nv(x,a.De)}a.nodes.each(function(b){b instanceof Jr&&b.U&65536&&(b.U=b.U^65536)})}}Ee.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()&&Va(this,x);for(a.reset();a.next();)x=a.value,x instanceof fi&&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 Yo&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function Va(a,y){for(var x=ei(),b=ei(),E=y.memberParts;E.next();){var z=E.value;z.isVisible()&&(z instanceof Jr?(ec(z)||iu(z)||Yh(z))&&Va(a,z):z instanceof fi?z.fromNode===y||z.toNode===y?b.push(z):x.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=x.length,E=0;E<a;E++)z=x[E],z.measure(1/0,1/0),z.arrange();for(yi(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();yi(b)}Ee.Fd=function(a,y,x,b){if(this.vd||this.animationManager.isAnimating)for(var E=0;E<y;E++)a[E].Fd(x,b)},Ee.gc=function(a){if(this.Ka!==null){if(this.ta===null&&Pt("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){Bu(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,z=Math.round(y.x*E)/E,ee=Math.round(y.y*E)/E,re=this.Ab;for(re.reset(),E!==1&&re.scale(E),y.x===0&&y.y===0||re.translate(-z,-ee),a.ti=null,qy(a,re.m11,re.m12,re.m21,re.m22,re.dx,re.dy),this.pb!==1&&(a.globalAlpha=this.pb),Dl(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?bf(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(Hr.prototype.Cd=Hr.prototype.Eu),this.Fc=this.vd=!1}}}}else e:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(x=new Date,Bu(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&&!z.isAnimating)break e;z=this.Ab,z.reset(),ee=this.Mb,re=this.pa;var oe=this.Ca,le=Math.round(re.x*oe)/oe,ue=Math.round(re.y*oe)/oe;for(oe!==1&&z.scale(oe),re.x===0&&re.y===0||z.translate(-le,-ue),a.setTransform(ee,0,0,ee,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),Dl(this,a),re=0;re<E;re++)a.setTransform(ee,0,0,ee,0,0),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),a.yc(),y[re].gc(a,this);if(y=!1,this.Yf?bf(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(Hr.prototype.Cd=Hr.prototype.Eu),b?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,b=Mr&&Mr.nx,x=this.zw,b||this.Yh===null){for(x[this.Tq]=y,this.Tq=(this.Tq+1)%x.length,E=y=0;E<x.length;E++)y+=x[E];this.Sq=y/x.length}if(this.pb!==1&&(a.globalAlpha=1),b)for(a.setTransform(1,0,0,1,0,0),b=0;b<x.length;b++)a.fillText(x[b].toString(),20,150+ +(20*b))}}};function Es(a,y,x,b,E,z,ee,re,oe,le){if(a.Ka!==null){a.ta===null&&Pt("No canvas specified"),ee===void 0&&(ee=null),re===void 0&&(re=null),oe===void 0&&(oe=!1),le===void 0&&(le=!1),Bu(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var ue=a.Ca;a.Ca=E;var fe=a.Wa.s,Se=fe.length;try{var be=new Pn(z.x,z.y,b.width/E,b.height/E),Ae=be.copy();Ae.Co(x),Ec(a,Ae),sl(a),a.Fd(fe,Se,a,be),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,b.width,b.height),re!==null&&re!==""&&(y.fillStyle=re,y.ox(0,0,b.width,b.height));var Oe=a.Mb;y.scale(Oe,Oe);var rt=Hr.alloc();rt.reset(),rt.translate(x.left,x.top),rt.scale(E),z.x===0&&z.y===0||rt.translate(-z.x,-z.y),y.setTransform(rt.m11,rt.m12,rt.m21,rt.m22,rt.dx,rt.dy),y.yc(),y instanceof Ku&&qy(y,rt.m11,rt.m12,rt.m21,rt.m22,rt.dx,rt.dy),Hr.free(rt),Dl(a,y),y.globalAlpha=a.pb;var Ye=a.Qj("Grid");if(ee){var mt=new An,wt=ee.iterator;for(wt.reset();wt.next();){var Mt=wt.value;Mt instanceof dr&&(le||Mt.layer!==Ye)&&(Mt.Gj(),mt.add(Mt))}for(le=0;le<Se;le++)Rl(fe[le],y,a,mt,oe);mt.each(function(mn){return mn.Gj()})}else for(mt=0;mt<Se;mt++){var jt=fe[mt];jt===Ye?le&&jt.gc(y,a,!0):jt.gc(y,a,oe)}a.$i=!1,a.Yf&&bf(a.Yf,a)&&a.Vp()}finally{a.Ca=ue,a.ib.Vc(!0),a.vd=!0,a.Fd(fe,Se,a,a.viewportBounds),Ec(a),a.ib instanceof Ku&&(a.ib.Nj.PA(),a.redraw())}}}Ee.Gf=function(a){return this.Rg[a]},Ee.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},Ee.Tx=function(){this.Rg=new Wi,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(Dr||Lr),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function Dl(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}Ee.Ql=function(a){return this.on[a]},Ee.sA=function(a,y){this.on[a]=y},Ee.Sx=function(){this.on=new Wi,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},Ee.set=function(a){return Object.assign(this,a),this},Ee.Du=function(a){return this.nm(a)},Ee.nm=function(a){return Du(this,a),this};function Du(a,y){var x=a instanceof si,b=a instanceof pn,E;for(E in y){E===""&&Pt("Setting properties requires non-empty property names");var z=a,ee=E;if(x||b){var re=E.indexOf(".");if(0<re){var oe=E.substring(0,re);x?z=a.fb(oe):(z=a[oe],z==null&&(z=a.toolManager[oe])),Rt(z)?ee=E.substr(re+1):Pt("Unable to find object named: "+oe+" in "+a.toString()+" when trying to set property: "+E)}}if(ee[0]!=="_"&&!hr(z,ee))if(b&&ee==="ModelChanged"){a.Yw(y[ee]);continue}else if(b&&ee==="Changed"){a.Pe(y[ee]);continue}else if(b&&hr(a.toolManager,ee))z=a.toolManager;else if(b&&us(a,ee)){a.Bj(ee,y[ee]);continue}else if(a instanceof or&&ee==="Changed"){a.Pe(y[ee]);continue}else Pt('Trying to set undefined property "'+ee+'" on object: '+z.toString());z[ee]=y[E],ee[0]==="_"&&z instanceof Kt&&z.Vw(ee)}}Ee.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new zi,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},Ee.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")},pn.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!==Jf&&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),z=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,z-E)*b){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(b=Pn.alloc(),Yf(this,this.computeBounds(b)),Pn.free(b)),b=this.ta,b===null||b instanceof vd)))){var ee=this.Mb;E=this.Aa*ee;var re=this.ya*ee,oe=this.scale*ee;z=Math.round(Math.round(y.x*oe)-Math.round(a.x*oe)),y=Math.round(Math.round(y.y*oe)-Math.round(a.y*oe)),oe=this.jw,a=this.oy,oe.width!==E&&(oe.width=E),oe.height!==re&&(oe.height=re),a.clearRect(0,0,E,re),oe=190*ee;var le=70*ee,ue=Math.max(z,0),fe=Math.max(y,0),Se=Math.floor(E-ue),be=Math.floor(re-fe);a.drawImage(b.Oa,ue,fe,Se,be,0,0,Se,be),bf(this.Yf,this)&&a.clearRect(0,0,oe,le),b=ei(),a=ei(),be=Math.abs(z),Se=Math.abs(y);var Ae=ue===0?0:E-be;ue=Je.allocAt(Ae,0),be=Je.allocAt(be+Ae,re),a.push(new Pn(Math.min(ue.x,be.x),Math.min(ue.y,be.y),Math.abs(ue.x-be.x),Math.abs(ue.y-be.y)));var Oe=this.Ab;if(Oe.reset(),Oe.scale(ee,ee),this.Ca!==1&&Oe.scale(this.Ca),ee=this.pa,(ee.x!==0||ee.y!==0)&&isFinite(ee.x)&&isFinite(ee.y)&&Oe.translate(-ee.x,-ee.y),$n(ue,Oe),$n(be,Oe),b.push(new Pn(Math.min(ue.x,be.x),Math.min(ue.y,be.y),Math.abs(ue.x-be.x),Math.abs(ue.y-be.y))),Ae=fe===0?0:re-Se,ue.h(0,Ae),be.h(E,Se+Ae),a.push(new Pn(Math.min(ue.x,be.x),Math.min(ue.y,be.y),Math.abs(ue.x-be.x),Math.abs(ue.y-be.y))),$n(ue,Oe),$n(be,Oe),b.push(new Pn(Math.min(ue.x,be.x),Math.min(ue.y,be.y),Math.abs(ue.x-be.x),Math.abs(ue.y-be.y))),bf(this.Yf,this)&&(E=0<z?0:-z,re=0<y?0:-y,ue.h(E,re),be.h(oe+E,le+re),a.push(new Pn(Math.min(ue.x,be.x),Math.min(ue.y,be.y),Math.abs(ue.x-be.x),Math.abs(ue.y-be.y))),$n(ue,Oe),$n(be,Oe),b.push(new Pn(Math.min(ue.x,be.x),Math.min(ue.y,be.y),Math.abs(ue.x-be.x),Math.abs(ue.y-be.y)))),Je.free(ue),Je.free(be),jc(this,!1,!0),this.Ka===null&&Pt("No div specified"),this.ta===null&&Pt("No canvas specified"),!this.animationManager.zb&&(E=this.ib,this.Fc)){for(Bu(this),re=this.Mb,E.setTransform(1,0,0,1,0,0),E.clearRect(0,0,this.Aa*re,this.ya*re),E.drawImage(this.jw.Oa,0<z?0:Math.round(-z),0<y?0:Math.round(-y)),z=this.pa,ee=this.Ca,oe=Math.round(z.x*ee)/ee,le=Math.round(z.y*ee)/ee,y=this.Ab,y.reset(),ee!==1&&y.scale(ee),z.x===0&&z.y===0||y.translate(-oe,-le),E.save(),E.beginPath(),z=a.length,ee=0;ee<z;ee++)oe=a[ee],oe.width!==0&&oe.height!==0&&E.rect(Math.floor(oe.x),Math.floor(oe.y),Math.ceil(oe.width),Math.ceil(oe.height));for(E.clip(),E.setTransform(re,0,0,re,0,0),E.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),E.yc(),y=this.Wa.s,z=y.length,this.Fd(y,z,this,this.viewportBounds),Dl(this,E),E.globalAlpha=this.pb,re=0;re<z;re++)if(ee=y[re],oe=b,ee.visible&&ee.pb!==0){le=_s(ee,E),fe=ee.Zq,fe.length=0,ue=this.scale,Se=Pn.alloc(),be=ee.Pa.s,Oe=be.length,Ae=oe.length;for(var rt=0;rt<Oe;rt++){var Ye=be[rt],mt=Ff(Ye,Ye.actualBounds);e:{for(var wt=2/ue,Mt=4/ue,jt=0;jt<Ae;jt++){var mn=oe[jt];if(mn.width!==0&&mn.height!==0&&mt.Vu(mn.x-wt,mn.y-wt,mn.width+Mt,mn.height+Mt)){mt=!0;break e}}mt=!1}mt&&ee.Oj(E,Ye,this,fe,ue,Se,!0)}Pn.free(Se),E.globalAlpha=le}E.restore(),E.Vc(!0),this.Yf&&bf(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}yi(b),yi(a),this.ld=!1}}else this.bd();x&&(Fl(this),this.bd(),fd(this,!0))}else x?(Fl(this),this.bd(),fd(this,!0)):this.bd()}};function Bu(a){a.pn!==!1&&(a.pn=!1,hh(a,a.Aa,a.ya))}function hh(a,y,x){Hc(a);var b=a.Mb;a.ta.resize(y*b,x*b,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function ed(a){var y=a.ta;if(y===null||a.wo.w())return!0;var x=a.Aa,b=a.ya,E=a.Ka,z=!1,ee=a.gf?a.Db:0,re=a.Be?a.Db:0,oe=E.clientWidth||x+ee,le=E.clientHeight||b+re,ue=a.viewportBounds;E=ue.x;var fe=ue.y,Se=ue.width,be=ue.height;if((oe!==x+ee||le!==b+re)&&(a.gf=!1,a.Be=!1,re=ee=0,a.Aa=oe,a.ya=le,z=a.pn=!0,Hc(a)),!a.hf||!a.viewportBounds.w())return!0;var Ae=a.ku,Oe=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var rt=a.documentBounds,Ye=0,mt=0,wt=0,Mt=0,jt=ue.width,mn=ue.height,Ni=a.rj;a.contentAlignment.sb()?(rt.width>jt&&(Ye=Ni.left,mt=Ni.right),rt.height>mn&&(wt=Ni.top,Mt=Ni.bottom)):(Ye=Ni.left,mt=Ni.right,wt=Ni.top,Mt=Ni.bottom);var Qi=rt.width+Ye+mt,Hi=rt.height+wt+Mt;Ni=a.scale;var hi=Qi>oe/Ni,_n=Hi>le/Ni;if(!(z||a.gf||a.Be||hi||_n))return!0;Ye=rt.x-Ye,oe=ue.x,mt=rt.right+mt,le=ue.right+ee,wt=rt.y-wt;var Xr=ue.y;rt=rt.bottom+Mt,ue=ue.bottom+re;var zr="1px";if(Mt="1px",a.scrollMode===mh&&(hi||_n)&&(hi&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(hi=1,Ye+1<oe&&(hi=Math.max((oe-Ye)*Ni+a.Aa,hi)),mt>le+1&&(hi=Math.max((mt-le)*Ni+a.Aa,hi)),jt+ee+1<Qi&&(hi=Math.max((Qi-jt)*Ni+a.Aa,hi)),zr=hi.toString()+"px"),_n&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(hi=1,wt+1<Xr&&(hi=Math.max((Xr-wt)*Ni+a.ya,hi)),rt>ue+1&&(hi=Math.max((rt-ue)*Ni+a.ya,hi)),mn+re+1<Hi&&(hi=Math.max((Hi-mn)*Ni+a.ya,hi)),Mt=hi.toString()+"px")),hi=zr!=="1px",_n=Mt!=="1px",hi&&_n||!hi&&!_n||(_n&&(le-=a.Db),hi&&(ue-=a.Db),Qi<jt+ee||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(ee=1,Ye+1<oe&&(ee=Math.max((oe-Ye)*Ni+a.Aa,ee)),mt>le+1&&(ee=Math.max((mt-le)*Ni+a.Aa,ee)),jt+1<Qi&&(ee=Math.max((Qi-jt)*Ni+a.Aa,ee)),zr=ee.toString()+"px"),hi=zr!=="1px",ee=a.ya,hi!==a.Be&&(ee=hi?a.ya-a.Db:a.ya+a.Db),Hi<mn+re||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(re=1,wt+1<Xr&&(re=Math.max((Xr-wt)*Ni+ee,re)),rt>ue+1&&(re=Math.max((rt-ue)*Ni+ee,re)),mn+1<Hi&&(re=Math.max((Hi-mn)*Ni+ee,re)),Mt=re.toString()+"px"),_n=Mt!=="1px"),a.qr&&hi===a.Be&&_n===a.gf)return x===a.Aa&&b===a.ya||a.bd(),!1;if(hi!==a.Be&&(zr==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=hi,Oe.style.width=zr,_n!==a.gf&&(Mt==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(re=Je.alloc(),_n?(y.style.left=a.Db+"px",a.position=re.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=re.h(a.pa.x-a.Db/a.scale,a.pa.y)),Je.free(re))),z&&Hc(a),a.gf=_n,Oe.style.height=Mt,a.gu=!0,z&&(a.pn=!0),y=Ae.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(jt+1<Qi?y=(a.position.x-Ye)*Ni:Ye+1<oe?y=Ae.scrollWidth-Ae.clientWidth:mt>le+1&&(y=a.position.x*Ni)),a.tn)switch(a.bu){case"negative":y=-(Ae.scrollWidth-y-Ae.clientWidth);break;case"reverse":y=Ae.scrollWidth-y-Ae.clientWidth}return Ae.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(mn+1<Hi?Ae.scrollTop=(a.position.y-wt)*Ni:wt+1<Xr?Ae.scrollTop=Ae.scrollHeight-Ae.clientHeight:rt>ue+1&&(Ae.scrollTop=a.position.y*Ni)),oe=a.Aa,le=a.ya,Ae.style.width=oe+(a.gf?a.Db:0)+"px",Ae.style.height=le+(a.Be?a.Db:0)+"px",x!==oe||b!==le||a.animationManager.zb?(x=Pn.allocAt(E,fe,Se,be),a.onViewportBoundsChanged(x,a.viewportBounds,Ni,z),Pn.free(x),!1):!0}Ee=pn.prototype,Ee.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&Pt("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&&Pt('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(ci,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},Ee.oi=function(a){this.partManager.oi(a);var y=this;Mf(a,function(x){gh(y,x)}),(a instanceof Yo||a instanceof Jr&&a.placeholder!==null)&&a.v(),a.data!==null&&Mf(a,function(x){dy(y.partManager,x)}),iu(a)!==!0&&Yh(a)!==!0||this.De.add(a),ZS(a,!0,this),VS(a)?(a.actualBounds.w()&&this.N(Ff(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Ff(a,a.actualBounds)),this.$b()},Ee.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Mf(a,function(x){hy(y.partManager,x,y)}),this.De.remove(a),VS(a)?(a.actualBounds.w()&&this.N(Ff(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Ff(a,a.actualBounds)),this.$b()},Ee.remove=function(a){Jd(this,a,!0)};function Jd(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(ki,"parts",b,y,null,x,null),a=y.layerChanged,a!==null&&a(y,b,null))}Ee.Is=function(a,y){if(y===void 0&&(y=!1),vn(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 An,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},Ee.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},pn.prototype.moveParts=function(a,y,x,b){if(x===void 0&&(x=!1),b===void 0&&(b=mf(this)),this.toolManager!==null){var E=new zi;if(a!==null)if(vn(a))for(var z=0;z<a.length;z++)Qu(this,E,a[z],x,b);else for(a=a.iterator;a.next();)Qu(this,E,a.value,x,b);else{for(a=this.parts;a.next();)Qu(this,E,a.value,x,b);for(a=this.nodes;a.next();)Qu(this,E,a.value,x,b);for(a=this.links;a.next();)Qu(this,E,a.value,x,b)}uc(this,E,y,b,x)}};function Qu(a,y,x,b,E,z){if(!y.contains(x)&&(z===void 0&&(z=!1),!b||z||x.canMove()||x.canCopy()))if(E===void 0&&(E=mf(a)),x instanceof Di){if(y.add(x,a.Pd(E,x,x.location)),x instanceof Jr&&(x.placeholder!==null||E.dragsMembers))for(z=x.memberParts;z.next();)Qu(a,y,z.value,b,E,E.groupsAlwaysMove);for(z=x.linksConnected;z.next();){var ee=z.value;if(!y.contains(ee)){var re=ee.fromNode,oe=ee.toNode;re!==null&&y.contains(re)&&oe!==null&&y.contains(oe)&&Qu(a,y,ee,b,E)}}if(E.dragsTree)for(x=x.Ou();x.next();)Qu(a,y,x.value,b,E)}else if(x instanceof fi)for(y.add(x,a.Pd(E,x)),x=x.labelNodes;x.next();)Qu(a,y,x.value,b,E);else x instanceof Yo||y.add(x,a.Pd(E,x,x.location))}function uc(a,y,x,b,E){if(y!==null&&y.count!==0){var z=Je.alloc(),ee=Je.alloc();ee.assign(x),isNaN(ee.x)&&(ee.x=0),isNaN(ee.y)&&(ee.y=0),(x=a.Mr)||fh(a,y);for(var re=ei(),oe=ei(),le=y.iterator,ue=Je.alloc();le.next();){var fe=le.key,Se=le.value;if(fe.Zc()){var be=yf(a,fe,y);be!==null?re.push(new ie(fe,Se,be)):(!E||fe.canMove())&&(be=Se.point,z.assign(be),a.computeMove(fe,z.add(ee),b,ue),fe.location=ue,Se.shifted===void 0&&(Se.shifted=new Je),Se.shifted.assign(ue.re(be)))}else le.key instanceof fi&&oe.push(le.sa)}for(Je.free(ue),E=re.length,le=0;le<E;le++)fe=re[le],z.assign(fe.info.point),fe.Su.shifted===void 0&&(fe.Su.shifted=new Je),fe.node.location=z.add(fe.Su.shifted);for(E=Je.alloc(),le=Je.alloc(),fe=oe.length,Se=0;Se<fe;Se++){var Ae=oe[Se];if(be=Ae.key,be instanceof fi)if(be.suspendsRouting){be.Tg=null,ue=be.fromNode;var Oe=be.toNode;if(a.draggedLink!==null&&b.dragsLink)if(Oe=Ae.value.point,be.dragComputation===null)y.add(be,a.Pd(b,be,ee)),bh(be,ee.x-Oe.x,ee.y-Oe.y);else{Ae=Je.allocAt(0,0),(ue=be.i(0))&&ue.w()&&Ae.assign(ue);var rt=ue=Je.alloc().assign(Ae).add(ee);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(rt=Je.alloc(),vf(a,be,ue,rt,b)),ue.assign(be.dragComputation(be,ue,rt)).re(Ae),y.add(be,a.Pd(b,be,ue)),bh(be,ue.x-Oe.x,ue.y-Oe.y),Je.free(Ae),Je.free(ue),rt!==ue&&Je.free(rt)}else ue!==null&&(E.assign(ue.location),rt=y.I(ue),rt!==null&&E.re(rt.point)),Oe!==null&&(le.assign(Oe.location),rt=y.I(Oe),rt!==null&&le.re(rt.point)),ue!==null&&Oe!==null?E.Xa(le)?(ue=Ae.value.point,Oe=z,Oe.assign(E),Oe.re(ue),y.add(be,a.Pd(b,be,E)),bh(be,Oe.x,Oe.y)):(be.suspendsRouting=!1,be.bb()):(Ae=Ae.value.point,ue=ue!==null?E:Oe!==null?le:ee,y.add(be,a.Pd(b,be,ue)),bh(be,ue.x-Ae.x,ue.y-Ae.y))}else(be.fromNode===null||be.toNode===null)&&(ue=Ae.value.point,y.add(be,a.Pd(b,be,ee)),bh(be,ee.x-ue.x,ee.y-ue.y))}Je.free(z),Je.free(ee),Je.free(E),Je.free(le),yi(re),yi(oe),x||(sl(a),_u(a,y))}}pn.prototype.computeMove=function(a,y,x,b){if(b===void 0&&(b=new Je),b.assign(y),a===null)return b;var E=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(E=Je.alloc(),vf(this,a,y,E,x)),x=a.dragComputation!==null?a.dragComputation(a,y,E):E;var ee=a.minLocation,re=ee.x;isNaN(re)&&(re=z?Math.round(1e3*a.location.x)/1e3:a.location.x),ee=ee.y,isNaN(ee)&&(ee=z?Math.round(1e3*a.location.y)/1e3:a.location.y);var oe=a.maxLocation,le=oe.x;return isNaN(le)&&(le=z?Math.round(1e3*a.location.x)/1e3:a.location.x),oe=oe.y,isNaN(oe)&&(oe=z?Math.round(1e3*a.location.y)/1e3:a.location.y),b.h(Math.max(re,Math.min(x.x,le)),Math.max(ee,Math.min(x.y,oe))),E!==y&&Je.free(E),b};function mf(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function vf(a,y,x,b,E){if(E===void 0&&(E=mf(a)),b.assign(x),y!==null){var z=a.grid;y=E.gridSnapCellSize,a=y.width,y=y.height;var ee=E.gridSnapOrigin,re=ee.x;if(ee=ee.y,E=E.gridSnapCellSpot,z!==null){var oe=z.gridCellSize;isNaN(a)&&(a=oe.width),isNaN(y)&&(y=oe.height),z=z.gridOrigin,isNaN(re)&&(re=z.x),isNaN(ee)&&(ee=z.y)}z=Je.allocAt(0,0),z.yi(0,0,a,y,E),Zt.No(x.x,x.y,re+z.x,ee+z.y,a,y,b),Je.free(z)}}function fh(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof fi&&(y.suspendsRouting=!0)}function _u(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof fi&&(x.suspendsRouting=!1,_v(x)&&x.bb())}a.Mr=!1}}function yf(a,y,x){return y=y.containingGroup,y!==null&&(a=yf(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}Ee=pn.prototype,Ee.Pd=function(a,y,x){if(x===void 0)return new Qd(pt);var b=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(b=!1),b?new Qd(new Je(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new Qd(x.copy())};function Kf(a,y,x){if(y.diagram!==null&&y.diagram!==a&&Pt("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&Pt("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&Pt("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&Pt("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&&Pt("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}Ee.Al=function(a){Kf(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(ci,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},Ee.Ww=function(a,y){Kf(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(ki,"layers",this,a,null,b,null));var E=x.count,z;for(z=0;z<E;z++)if(x.M(z)===y){x.Gb(z,a);break}return this.cc!==null&&this.cb(ci,"layers",this,null,a,null,z),this.N(),0>b&&this.Ya(),this},Ee.Cy=function(a,y){Kf(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(ki,"layers",this,a,null,b,null));var E=x.count,z;for(z=0;z<E;z++)if(x.M(z)===y){x.Gb(z+1,a);break}return this.cc!==null&&this.cb(ci,"layers",this,null,a,null,z+1),this.N(),0>b&&this.Ya(),this},Ee.kA=function(a){if(a.diagram!==this&&Pt("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(ki,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Ee.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Ee.Yw=function(a){return this.pf===null&&(this.pf=new Mn),this.pf.add(a),this.model.Pe(a),this},Ee.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Ee.Pe=function(a){return this.zg===null&&(this.zg=new Mn),this.zg.add(a),this},Ee.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Ee.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==Wn&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,b=0;b<x;b++)y.M(b)(a)},Ee.cb=function(a,y,x,b,E,z,ee){z===void 0&&(z=null),ee===void 0&&(ee=null);var re=new Tn;re.diagram=this,re.change=a,re.propertyName=y,re.object=x,re.oldValue=b,re.oldParam=z,re.newValue=E,re.newParam=ee,this.ds(re)},Ee.g=function(a,y,x,b,E){this.cb(ri,a,this,y,x,b,E)},pn.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===ri){var E=a.object;if(ja(E,a.propertyName,a.I(y)),E instanceof Kt){var z=E.part;z!==null&&z.Wb()}this.isModified=!0}else if(b===ci){var ee=a.object,re=a.newParam,oe=a.newValue;if(ee instanceof si)if(typeof re=="number"&&oe instanceof Kt){y?ee.pc(re):ee.Gb(re,oe);var le=ee.part;le!==null&&le.Wb()}else typeof re=="number"&&oe instanceof Ws&&(oe.isRow?pS(ee,re,y?void 0:oe):mS(ee,re,y?void 0:oe));else if(ee instanceof za){var ue=a.oldParam===!0;typeof re=="number"&&oe instanceof dr&&(y?(oe.isSelected=!1,oe.isHighlighted=!1,oe.Wb(),ee.pc(ue?re:-1,oe,ue)):ee.oi(re,oe,ue))}else ee instanceof pn?typeof re=="number"&&oe instanceof za&&(y?this.Wa.mb(re):(oe.Xe(this),this.Wa.Gb(re,oe))):Pt("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===ki){var fe=a.object,Se=a.oldParam,be=a.oldValue;if(fe instanceof si)typeof Se=="number"&&be instanceof Kt?y?fe.Gb(Se,be):fe.pc(Se):typeof Se=="number"&&be instanceof Ws&&(be.isRow?pS(fe,Se,y?be:void 0):mS(fe,Se,y?be:void 0));else if(fe instanceof za){var Ae=a.newParam===!0;typeof Se=="number"&&be instanceof dr&&(y?0>fe.Pa.indexOf(be)&&fe.oi(Se,be,Ae):(be.isSelected=!1,be.isHighlighted=!1,be.Wb(),fe.pc(Ae?Se:-1,be,Ae)))}else fe instanceof pn?typeof Se=="number"&&be instanceof za&&(y?(be.Xe(this),this.Wa.Gb(Se,be)):this.Wa.mb(Se)):Pt("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==Wn&&Pt("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},pn.prototype.Ea=function(a){return this.undoManager.Ea(a)},pn.prototype.eb=function(a){return this.undoManager.eb(a)},pn.prototype.Kf=function(){return this.undoManager.Kf()},pn.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}},pn.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},pn.prototype.rp=function(){this.partManager.rp()};function Sf(a,y,x){var b=a.animationManager;if(a.vb||a.ld)a.Ca=x,Hc(a),a.N(),a.Ee=!0,b.zb&&(Vs(b)||b.ce.add(b.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,Hc(a);else{a.vb=!0;var E=a.viewportBounds.copy(),z=a.Aa,ee=a.ya,re=a.zoomPoint.x,oe=a.zoomPoint.y,le=a.contentAlignment;isNaN(re)&&(le.$c()?le.Hf(yl)?re=0:le.Hf(rl)&&(re=z-1):re=le.sb()?le.x*(z-1):z/2),isNaN(oe)&&(le.$c()?le.Hf(fu)?oe=0:le.Hf(Sl)&&(oe=ee-1):oe=le.sb()?le.y*(ee-1):ee/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),z=Je.allocAt(a.pa.x+re/y-re/x,a.pa.y+oe/y-oe/x),a.position=z,Je.free(z),a.Ca=x,Hc(a),a.vb=!1,a.onViewportBoundsChanged(E,a.viewportBounds,y,!1),Fu(a,!1),b.zb&&(Vs(b)||b.ce.add(b.H,"scale",y,a.Ca))}}pn.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!==Yl||a.width===y.width&&a.height===y.height||E.C(),E=this.currentTool,this.Vk===!0&&E instanceof ti&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),er(E,this)),this.vb||this.invalidateViewport(a,y),Ec(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.canvasSize.width=Math.round(a.width*x),this.fc.canvasSize.height=Math.round(a.height*x),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=b,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function Ec(a,y){var x=a.fe;if(x!==null&&x.visible){for(var b=On.alloc(),E=1,z=1,ee=x.O.s,re=ee.length,oe=0;oe<re;oe++){var le=ee[oe],ue=Math.abs(le.interval);2>ue||(Sv(le.figure)?z=z*ue/Zt.vx(z,ue):E=E*ue/Zt.vx(E,ue))}if(ee=x.gridCellSize,b.h(z*ee.width,E*ee.height),y!==void 0)E=y.width,z=y.height,a=y.x,ee=y.y;else{if(y=Pn.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){Pn.free(y);return}E=y.width,z=y.height,a=y.x,ee=y.y,Pn.free(y)}x.width=E+2*b.width,x.height=z+2*b.height,y=Je.alloc(),Zt.No(a,ee,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),On.free(b),x.part.location=y,Je.free(y)}}pn.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)}},pn.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))},pn.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),vn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];b instanceof dr||Pt("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 dr||Pt("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},pn.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()}},Ee=pn.prototype,Ee.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},Ee.Jz=function(a){a=new An().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 dr||Pt("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},Ee.scroll=function(a,y,x){x===void 0&&(x=1);var b=y==="up"||y==="down",E=0,z=Je.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=z.h(x.x,E.y):y==="left"?this.position=z.h(E.x,x.y):y==="down"?this.position=z.h(x.x,E.bottom-x.height):y==="right"&&(this.position=z.h(E.right-x.width,x.y)),Je.free(z);return}Pt("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+a)}E/=this.scale,x=this.position,y==="up"?this.position=z.h(x.x,x.y-E):y==="down"?this.position=z.h(x.x,x.y+E):y==="left"?this.position=z.h(x.x-E,x.y):y==="right"?this.position=z.h(x.x+E,x.y):Pt("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),Je.free(z)},Ee.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)},Ee.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},Ee.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)},Ee.zA=function(a){var y=this.Ab,x=a.x,b=a.y,E=x+a.width,z=b+a.height,ee=y.m11,re=y.m12,oe=y.m21,le=y.m22,ue=y.dx,fe=y.dy,Se=x*ee+b*oe+ue;y=x*re+b*le+fe;var be=E*ee+b*oe+ue;return a=E*re+b*le+fe,b=x*ee+z*oe+ue,x=x*re+z*le+fe,ee=E*ee+z*oe+ue,E=E*re+z*le+fe,z=Math.min(Se,be),Se=Math.max(Se,be),be=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,b),Se=Math.max(Se,b),be=Math.min(be,x),y=Math.max(y,x),z=Math.min(z,ee),Se=Math.max(Se,ee),be=Math.min(be,E),y=Math.max(y,E),new Pn(z,be,Se-z,y-be)},Ee.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),$n(a.copy(),this.Ab)};function wg(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function Vf(a){return a=nd.get(a),a!==null?new a:new ra}pn.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,b=a.propertyName;if(x===Wn&&b[0]==="S")if(b==="StartingFirstTransaction"){var E=this;a=this.toolManager,a.mouseDownTools.each(function(oe){return oe.diagram=E}),a.mouseMoveTools.each(function(oe){return oe.diagram=E}),a.mouseUpTools.each(function(oe){return oe.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===Wn){(b==="FinishedUndo"||b==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),sl(this));var z=this.animationManager;b==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||Do(z),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 ee=a.isTransactionFinished;if(ee&&(wg(this),this.As.clear(),_a(this.animationManager)),!this.Rt&&ee&&this.lastInput.targetDiagram){this.Rt=!0;var re=this;Rn(function(){re.currentTool.standardMouseOver(),re.Rt=!1},10)}}}finally{this.aa=!0}}}};function gh(a,y){y=y.O.s;for(var x=y.length,b=0;b<x;b++)Ad(a,y[b])}function Ad(a,y){if(y instanceof Cu){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof An&&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 Gf(a,y){if(y instanceof Cu){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 z=0;z<E.length;z++)if(E[z]===y){E.splice(z,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 An&&x.Bg.remove(a),Tg(b));break}}}}}pn.prototype.Wd=function(){this.partManager.Wd()},pn.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},pn.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},pn.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},pn.prototype.Vb=function(a){return this.partManager.Vb(a)},pn.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},Ee=pn.prototype,Ee.Lc=function(a){return this.partManager.Lc(a)},Ee.ii=function(a){return this.partManager.ii(a)},Ee.Kc=function(a){return this.partManager.Kc(a)},Ee.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:yn(Xi(y)))},Ee.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:yn(Xi(y)))};function Hc(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 Yf(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),Fu(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}Ee.Va=function(){if(this.Zi){var a=Pn.alloc();Yf(this,this.computeBounds(a)),Pn.free(a)}},Ee.rz=function(){for(var a=new An,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},Ee.qz=function(){return this.ai.iterator},Ee.Uz=function(a){sl(this),a&&Wh(this,!0),this.ld?Zh(this,!1):(this.Jk=!0,Hl(this))};function Wh(a,y){for(var x=a.ai.iterator;x.next();)xf(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function xf(a,y,x){if(y!==null){for(var b=y.gl.iterator;b.next();)xf(a,b.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function Zh(a,y){if(a.xh&&!a.lt){var x=a.aa;a.aa=!0;var b=a.undoManager.transactionLevel,E=a.layout,z=a.animationManager;try{b===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=b&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||Ua(z,"Layout")),a.xh=!1;for(var ee=a.ai.iterator;ee.next();)Uf(a,ee.value,y,b);E.isValidLayout||(!y||E.isRealtime||E.isRealtime===null||b===0?(E.doLayout(a),sl(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||Do(z),a.aa=x}}}function Uf(a,y,x,b){if(y!==null){for(var E=y.gl.iterator;E.next();)Uf(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),Va(a,y),E.isValidLayout=!0):a.xh=!0)}}Ee.yz=function(){for(var a=new Mn,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function up(a){function y(E){var z=E.toLowerCase(),ee=new Mn;x.add(E,ee),x.add(z,ee),b.add(E,E),b.add(z,E)}var x=new zi,b=new zi;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 us(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function Go(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;Pt("Unknown DiagramEvent name: "+y)}Ee.Bj=function(a,y){return a=Go(this,a),a!==null&&a.add(y),this},Ee.am=function(a,y){a=Go(this,a),a!==null&&a.remove(y)},Ee.R=function(a,y,x){var b=Go(this,a),E=new hn;if(E.diagram=this,a=us(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 la(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}Ee.Yj=function(a,y){return rs(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},pn.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?Gd(this,a):a.assign(this.documentBounds)};function rs(a,y,x,b){var E=a.Xh;if(E===null&&(a.Xh=E=new Rp(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=ll(a,x)),x===null){y=Pn.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),E.initialize(y);for(var z=a.nodes;z.next();){var ee=z.value,re=ee.layer;re!==null&&re.visible&&!re.isTemporary&&md(a,ee,b,y)}Pn.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),E.initialize(y)),y=Pn.alloc(),z=x.memberParts;z.next();)ee=z.value,ee instanceof Di&&md(a,ee,b,y);Pn.free(y)}E.group=x,E.Yx=b,E.vs=!1}else y&&ux(E);return E}function ll(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?ll(a,y.containingGroup):null}function md(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,z=y.y;if(Hg(a,E,z))for(x=(z-a.Od)/a.sc|0,b=Math.min((E+y.width-a.Nd)/a.rc|0,a.di),y=Math.min((z+y.height-a.Od)/a.sc|0,a.ei),E=(E-a.Nd)/a.rc|0;E<=b;E++)if(z=a.ac[E],z.fill)z.fill(Ah,x,y+1);else for(var ee=x;ee<=y;ee++)z[ee]=Ah}else if(y instanceof Jr)for(y=y.memberParts;y.next();)E=y.value,E instanceof Di&&md(a,E,x,b)}}function tu(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}pn.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():td(this)};function td(a){a.vk===-1&&(a.vk=Rn(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=Pn.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Yf(a,y),Pn.free(y),a.Fc=!0,a.bd(),td(a))}},a.vp))}pn.prototype.ug=function(){this.vk!==-1&&(Ue.clearTimeout(this.vk),this.vk=-1)},pn.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=Pn.allocAt(0,0,b.width*E,b.height*E);var z=Je.allocAt(0,0);if(a.x>=b.x&&a.x<b.x+x.left&&this.allowHorizontalScroll){var ee=Math.max(this.scrollHorizontalLineChange,1);ee|=0,z.x-=ee,a.x<b.x+x.left/2&&(z.x-=ee),a.x<b.x+x.left/4&&(z.x-=4*ee)}else a.x<=b.x+b.width&&a.x>b.x+b.width-x.right&&this.allowHorizontalScroll&&(ee=Math.max(this.scrollHorizontalLineChange,1),ee|=0,z.x+=ee,a.x>b.x+b.width-x.right/2&&(z.x+=ee),a.x>b.x+b.width-x.right/4&&(z.x+=4*ee));return a.y>=b.y&&a.y<b.y+x.top&&this.allowVerticalScroll?(ee=Math.max(this.scrollVerticalLineChange,1),ee|=0,z.y-=ee,a.y<b.y+x.top/2&&(z.y-=ee),a.y<b.y+x.top/4&&(z.y-=4*ee)):a.y<=b.y+b.height&&a.y>b.y+b.height-x.bottom&&this.allowVerticalScroll&&(ee=Math.max(this.scrollVerticalLineChange,1),ee|=0,z.y+=ee,a.y>b.y+b.height-x.bottom/2&&(z.y+=ee),a.y>b.y+b.height-x.bottom/4&&(z.y+=4*ee)),z.Xa(pt)||(y=new Je(y.x+z.x/E,y.y+z.y/E)),Pn.free(b),Je.free(z),y},Ee=pn.prototype,Ee.Cs=function(){return null},Ee.av=function(){return null},Ee.bs=function(a,y){this.pj.add(a,y)},Ee.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Jr&&(y.$p=null)})};function Ac(a,y,x){function b(){var ue=+new Date;for(z=!0,ee.reset();ee.next();)if(!ee.value[0].al){z=!1;break}z||ue-le>oe?y(x,E,re):Ue.requestAnimationFrame(b)}for(var E=x.callback,z=!0,ee=a.Og.iterator;ee.next();)if(!ee.value[0].al){z=!1;break}if(typeof E!="function"||z)return y(x,E,a);var re=a,oe=x.callbackTimeout||300,le=+new Date;return Ue.requestAnimationFrame(function(){b()}),null}Ee.Wz=function(a){return cs?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Ee.Jx=function(a){return a===void 0&&(a={}),Ac(this,this.Xz,a)},Ee.Xz=function(a,y,x){var b=ph(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 Cf+"data":E=b.getImageData(0,0,x.width,x.height);break;case Cf:b=(a.document||document).createElement("img"),b.src=x.toDataURL(a.type,a.details),E=b;break;case"blob":return typeof y!="function"&&Pt('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 ph(a,y,x,b){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&Pt("properties argument must be an Object.");var E=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var ee=y.maxSize;y.maxSize===void 0&&(ee=x==="SVG"?new On(1/0,1/0):new On(2e3,2e3));var re=y.position||null,oe=y.parts||null,le=y.padding===void 0?1:y.padding,ue=y.background||null,fe=y.omitTemporary;fe===void 0&&(fe=!0);var Se=y.document||document,be=y.elementFinished||null,Ae=y.showTemporary;Ae===void 0&&(Ae=!fe),y=y.showGrid,y===void 0&&(y=Ae),E!==null&&isNaN(E.width)&&isNaN(E.height)&&(E=null),typeof le=="number"?le=new Gi(le):le instanceof Gi||Pt("MakeImage padding must be a Margin or a number."),le.left=Math.max(le.left,0),le.right=Math.max(le.right,0),le.top=Math.max(le.top,0),le.bottom=Math.max(le.bottom,0),a.ib.Vc(!0),fe=new kc(null,Se,void 0,!0);var Oe=fe.context;if(!(E||z||oe||re))return fe.width=a.Aa+Math.ceil(le.left+le.right),fe.height=a.ya+Math.ceil(le.top+le.bottom),x==="SVG"?b===null?null:(b.resize(fe.width,fe.height,fe.width,fe.height),b.ownerDocument=Se,b.hs=be,Es(a,b.context,le,new On(fe.width,fe.height),a.Ca,a.pa,oe,ue,Ae,y),b.context):(a.Xm=!1,Es(a,Oe,le,new On(fe.width,fe.height),a.Ca,a.pa,oe,ue,Ae,y),a.Xm=!0,fe.context);var rt=a.Pp,Ye=a.documentBounds.copy();if(Ye.Fv(a.yb),Ae)for(var mt=a.Wa.s,wt=mt.length,Mt=0;Mt<wt;Mt++){var jt=mt[Mt];if(jt.visible&&jt.isTemporary){jt=jt.Pa.s;for(var mn=jt.length,Ni=0;Ni<mn;Ni++){var Qi=jt[Ni];Qi.isInDocumentBounds&&Qi.isVisible()&&(Qi=Qi.actualBounds,Qi.w()&&Ye.ed(Qi))}}}if(mt=new Je(Ye.x,Ye.y),oe!==null){for(wt=new Pn(0,0,0,0),Mt=!0,jt=oe.iterator,jt.reset();jt.next();)mn=jt.value,mn instanceof dr&&(Ni=mn.layer,Ni!==null&&!Ni.visible||Ni!==null&&!Ae&&Ni.isTemporary||!mn.isVisible()||(mn=mn.actualBounds,mn.w()&&(Mt?(Mt=!1,wt.assign(mn)):wt.ed(mn))));Ye.width=wt.width,Ye.height=wt.height,mt.x=wt.x,mt.y=wt.y}return re!==null&&re.w()&&(mt=re,z||(z=rt)),wt=re=0,le!==null&&(re=le.left+le.right,wt=le.top+le.bottom),Mt=jt=0,E!==null&&(jt=E.width,Mt=E.height,isFinite(jt)&&(jt=Math.max(0,jt-re)),isFinite(Mt)&&(Mt=Math.max(0,Mt-wt))),E!==null&&z!==null?(z==="NaN"&&(z=rt),E.w()?(E=jt,Ye=Mt):isNaN(Mt)?(E=jt,Ye=Ye.height*z):(E=Ye.width*z,Ye=Mt)):E!==null?E.w()?(z=Math.min(jt/Ye.width,Mt/Ye.height),E=jt,Ye=Mt):isNaN(Mt)?(z=jt/Ye.width,E=jt,Ye=Ye.height*z):(z=Mt/Ye.height,E=Ye.width*z,Ye=Mt):z!==null?z==="NaN"&&ee.w()?(z=Math.min((ee.width-re)/Ye.width,(ee.height-wt)/Ye.height),z>rt?(z=rt,E=Ye.width,Ye=Ye.height):(E=ee.width,Ye=ee.height)):(E=Ye.width*z,Ye=Ye.height*z):(z=rt,E=Ye.width,Ye=Ye.height),le!==null?(E+=re,Ye+=wt):le=new Gi(0),ee!==null&&(rt=ee.width,ee=ee.height,isNaN(rt)&&(rt=2e3),isNaN(ee)&&(ee=2e3),isFinite(rt)&&(E=Math.min(E,rt)),isFinite(ee)&&(Ye=Math.min(Ye,ee))),fe.width=Math.ceil(E),fe.height=Math.ceil(Ye),x==="SVG"?b===null?null:(b.resize(fe.width,fe.height,fe.width,fe.height),b.ownerDocument=Se,b.hs=be,Es(a,b.context,le,new On(Math.ceil(E),Math.ceil(Ye)),z,mt,oe,ue,Ae,y),b.context):(a.Xm=!1,Es(a,Oe,le,new On(Math.ceil(E),Math.ceil(Ye)),z,mt,oe,ue,Ae,y),a.Xm=!0,fe.context)}tt.Object.defineProperties(pn.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof pe||(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 vd(this,Ue.document),this.bs("svg",a)),this.div!==null&&this.div.appendChild(a.Oa),this.ib=a.context,this.ta&&(this.ta.context.setTransform(this.Mb,0,0,this.Mb,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya))):a!=="debug"||this.pj.contains("SVG")||(a=new vd(this,Ue.document),this.bs("SVG",a),a.Oa.style.backgroundColor="whitesmoke",this.div!==null&&this.div.after(a.Oa)),this.hk()))}},div:{get:function(){return this.Ka},set:function(a){if(this.Ka!==a){var y=this.Ka;y!==null?(y.H=void 0,y.goDiagram=void 0,y.go=void 0,y.innerHTML="",this.ta!==null&&(y=this.ta.Oa,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.ta.mx()),this.ol&&(this.ol.disconnect(),this.ol=null),y=this.toolManager,y!==null&&(y.mouseDownTools.each(function(x){x.cancelWaitAfter()}),y.mouseMoveTools.each(function(x){x.cancelWaitAfter()}),y.mouseUpTools.each(function(x){x.cancelWaitAfter()})),y.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(Ue,"resize",this.Ov,!1),this.removeEventListener(Ue,"wheel",this.$j,!0),bc===this&&(bc=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),zc(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)&&Qn(a,"0 <= value <= 1",pn,"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),Fu(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),Fu(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),Fu(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),Fu(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&Qn(a,">= 0",pn,"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&&Qn(a,">= 0",pn,"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 Qn(a,">= 0",pn,"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||wg(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&&Pt("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=bd(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var b=this.vb;this.vb=!0,Ua(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(z){return y.ik(z)}),y.ik(this.Oc)),this.cc=a,this.partManager=Vf(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(z){return a.Pe(z)}),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(Ue,"pointermove",this.dk,!0),this.addEventListener(Ue,"pointerdown",this.ui,!0),this.addEventListener(Ue,"pointerup",this.fk,!0),this.addEventListener(Ue,"pointerout",this.ek,!0),this.addEventListener(Ue,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(Ue,"wheel",this.$j,!0),this.addEventListener(Ue,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Ue,"pointermove",this.dk,!0),this.removeEventListener(Ue,"pointerdown",this.ui,!0),this.removeEventListener(Ue,"pointerup",this.fk,!0),this.removeEventListener(Ue,"pointerout",this.ek,!0),this.removeEventListener(Ue,"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(Ue,"wheel",this.$j,!0),this.removeEventListener(Ue,"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=Je.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),Gs(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?Hc(this):(this.vb=!0,a=this.scale,Hh(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)}Je.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=Kd(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=Kd(this)),a.type!==si.Grid&&Pt("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),Ec(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),Hc(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||Pt("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 Gi(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===mh&&Fu(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,Fu(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,Sf(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&&Sf(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!==Yl&&Fu(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()||Pt("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()||Pt("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)):Qn(a,"> 0",pn,"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)):Qn(a,"> 0",pn,"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),Fu(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 Gi(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&&Pt("Cannot share PartManagers between Diagrams: "+a.toString()),y&&y.Xe(null),this.Pc=a,a.Xe(this))}},nodes:{get:function(){return this.partManager.nodes.iterator}},links:{get:function(){return this.partManager.links.iterator}},parts:{get:function(){return this.partManager.parts.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;y!==a&&(this.Sc=a,a.diagram=this,a.group=null,this.xh=!0,this.g("layout",y,a),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(a){var y=this.Ht;if(y!==a&&(this.Ht=a,this.g("isTreePathToChildren",y,a),!this.undoManager.isUndoingRedoing))for(a=this.nodes;a.next();)Lp(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==vh&&a!==js&&a!==Pg&&Pt("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 On(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 Gi(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),tt.Object.defineProperties(pn,{licenseKey:{get:function(){return pp.jc()},set:function(a){pp.add(a.replace(/\s/g,""))}},version:{get:function(){return Pf}}}),pn.prototype.makeImageData=pn.prototype.Jx,pn.prototype.makeImage=pn.prototype.Wz,pn.prototype.cacheGroupExternalLinks=pn.prototype.Fu,pn.prototype.addRenderer=pn.prototype.bs,pn.prototype.makeSVG=pn.prototype.av,pn.prototype.makeSvg=pn.prototype.Cs,pn.prototype.stopAutoScroll=pn.prototype.ug,pn.prototype.doAutoScroll=pn.prototype.gs,pn.prototype.isUnoccupied=pn.prototype.Yj,pn.prototype.raiseDiagramEvent=pn.prototype.R,pn.prototype.removeDiagramListener=pn.prototype.am,pn.prototype.addDiagramListener=pn.prototype.Bj,pn.prototype.findTreeRoots=pn.prototype.yz,pn.prototype.layoutDiagram=pn.prototype.Uz,pn.prototype.findTopLevelGroups=pn.prototype.qz,pn.prototype.findTopLevelNodesAndLinks=pn.prototype.rz,pn.prototype.ensureBounds=pn.prototype.Va,pn.prototype.findLinksByExample=pn.prototype.ls,pn.prototype.findNodesByExample=pn.prototype.ms,pn.prototype.findLinkForData=pn.prototype.Kc,pn.prototype.findNodeForData=pn.prototype.ii,pn.prototype.findPartForData=pn.prototype.Lc,pn.prototype.findLinkForKey=pn.prototype.findLinkForKey,pn.prototype.findNodeForKey=pn.prototype.Vb,pn.prototype.findPartForKey=pn.prototype.findPartForKey,pn.prototype.rebuildParts=pn.prototype.Wd,pn.prototype.transformViewToDoc=pn.prototype.Ps,pn.prototype.transformRectDocToView=pn.prototype.zA,pn.prototype.transformDocToView=pn.prototype.op,pn.prototype.centerRect=pn.prototype.es,pn.prototype.scrollToRect=pn.prototype.tv,pn.prototype.scroll=pn.prototype.scroll,pn.prototype.highlightCollection=pn.prototype.Jz,pn.prototype.highlight=pn.prototype.Iz,pn.prototype.selectCollection=pn.prototype.rA,pn.prototype.select=pn.prototype.select,pn.prototype.updateAllRelationshipsFromData=pn.prototype.rp,pn.prototype.updateAllTargetBindings=pn.prototype.updateAllTargetBindings,pn.prototype.commit=pn.prototype.commit,pn.prototype.rollbackTransaction=pn.prototype.Kf,pn.prototype.commitTransaction=pn.prototype.eb,pn.prototype.startTransaction=pn.prototype.Ea,pn.prototype.raiseChanged=pn.prototype.g,pn.prototype.raiseChangedEvent=pn.prototype.cb,pn.prototype.removeChangedListener=pn.prototype.ik,pn.prototype.addChangedListener=pn.prototype.Pe,pn.prototype.removeModelChangedListener=pn.prototype.mA,pn.prototype.addModelChangedListener=pn.prototype.Yw,pn.prototype.findLayer=pn.prototype.Qj,pn.prototype.removeLayer=pn.prototype.kA,pn.prototype.addLayerAfter=pn.prototype.Cy,pn.prototype.addLayerBefore=pn.prototype.Ww,pn.prototype.addLayer=pn.prototype.Al,pn.prototype.moveParts=pn.prototype.moveParts,pn.prototype.copyParts=pn.prototype.Kj,pn.prototype.removeParts=pn.prototype.Is,pn.prototype.remove=pn.prototype.remove,pn.prototype.add=pn.prototype.add,pn.prototype.clearDelayedGeometries=pn.prototype.bx,pn.prototype.setProperties=pn.prototype.nm,pn.prototype.attach=pn.prototype.Du,pn.prototype.set=pn.prototype.set,pn.prototype.resetInputOptions=pn.prototype.Sx,pn.prototype.setInputOption=pn.prototype.sA,pn.prototype.getInputOption=pn.prototype.Ql,pn.prototype.resetRenderingHints=pn.prototype.Tx,pn.prototype.setRenderingHint=pn.prototype.Xx,pn.prototype.getRenderingHint=pn.prototype.Gf,pn.prototype.maybeUpdate=pn.prototype.bd,pn.prototype.requestUpdate=pn.prototype.$b,pn.prototype.delayInitialization=pn.prototype.Xy,pn.prototype.isUpdateRequested=pn.prototype.Pz,pn.prototype.invalidateDocumentBounds=pn.prototype.Ya,pn.prototype.findObjectsNear=pn.prototype.og,pn.prototype.findPartsNear=pn.prototype.mz,pn.prototype.findObjectsIn=pn.prototype.Cf,pn.prototype.findPartsIn=pn.prototype.ux,pn.prototype.findObjectsAt=pn.prototype.ji,pn.prototype.findPartsAt=pn.prototype.lz,pn.prototype.findObjectAt=pn.prototype.ic,pn.prototype.findPartAt=pn.prototype.Ol,pn.prototype.focusObject=pn.prototype.zz,pn.prototype.alignDocument=pn.prototype.Jy,pn.prototype.zoomToRect=pn.prototype.BA,pn.prototype.zoomToFit=pn.prototype.zoomToFit,pn.prototype.diagramScroll=pn.prototype.kx,pn.prototype.focus=pn.prototype.focus;var nd=new zi,Lc=null,cs=Ue.document!==void 0,wf=null,Kh="",Yl=new Xt(pn,"None",0),$u=new Xt(pn,"Uniform",1),Vh=new Xt(pn,"UniformToFill",2),Xf=new Xt(pn,"CycleAll",10),cp=new Xt(pn,"CycleNotDirected",11),dp=new Xt(pn,"CycleNotDirectedFast",12),hp=new Xt(pn,"CycleNotUndirected",13),fp=new Xt(pn,"CycleDestinationTree",14),gp=new Xt(pn,"CycleSourceTree",15),mh=new Xt(pn,"DocumentScroll",1),Jf=new Xt(pn,"InfiniteScroll",2),vh=new Xt(pn,"TreeParentCollapsed",21),js=new Xt(pn,"AllParentsCollapsed",22),Pg=new Xt(pn,"AnyParentsCollapsed",23),pp=new Mn,Pf="2.3.10",Cf="image",Qf=null,fm=!1;function Wl(){if(cs){var a=Ue.document.createElement("canvas"),y=a.getContext("2d"),x=Li("7ca11abfd022028846");y[x]=Li("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",an.Dx+"4ae6247590da4bb21c324ba3a84e385776",Hr.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Zt.za],E=1;5>E;E++)y[Li("7ca11abfd7330390")](Li(b[E-1]),10,15*E);for(y[x]=Li("39f046ebb36e4b"),x=1;5>x;x++)y[Li("7ca11abfd7330390")](Li(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(Hr.prototype.Cd=Hr.prototype.Eu),Qf=a}}pn.className="Diagram",pn.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Ue.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof pn?y.H:null},pn.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},pn.useDOM=function(a){cs=a?Ue.document!==void 0:!1},pn.isUsingDOM=function(){return cs},pn.None=Yl,pn.Uniform=$u,pn.UniformToFill=Vh,pn.CycleAll=Xf,pn.CycleNotDirected=cp,pn.CycleNotDirectedFast=dp,pn.CycleNotUndirected=hp,pn.CycleDestinationTree=fp,pn.CycleSourceTree=gp,pn.DocumentScroll=mh,pn.InfiniteScroll=Jf,pn.TreeParentCollapsed=vh,pn.AllParentsCollapsed=js,pn.AnyParentsCollapsed=Pg;function gm(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function bf(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=Ue[Li("76a715b2f73f148a")][Li("72ba13b5")]||"";if(a.Rc=!0,cs){var b=pn[Li("76a115b6ed251eaf4692")];if(b)for(var E=pp.iterator;E.next()&&(b=E.value,b=Li(b).split(Li("39e9")),!(6>b.length));){var z=Li(b[1]).split(".");if(b[4]!=="7da71ca0")break;var ee=Li(an[Li("6cae19")]).split(".");if(z[0]>ee[0]||z[0]===ee[0]&&z[1]>=ee[1]){var re=Ue[Li("74a900bae4370f8b51")][Li("6fbb13a1c2311e8a57")].toLowerCase();if(ee=re[Li("73a612b6fb191d")](Li("3aad1ab6e022098b4dc4")),z=Li(b[2]),-1<ee&&(re=re[Li("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<re&&re<ee),!a.Rc))break;for(ee=x[Li("76ad18b4f73e")],re=x[Li("73a612b6fb191d")](Li("35e7"))+2;re<ee;re++)y+=x[re];if(ee=y[Li("73a612b6fb191d")](z),0>ee&&z!==Li("7da71ca0ad381e90")&&(ee=y[Li("73a612b6fb191d")](Li("76a715b2ef3e149757"))),0>ee&&(ee=y[Li("73a612b6fb191d")](Li("76a715b2ef3e149757"))),0>ee&&(ee=y[Li("73a612b6fb191d")](Li("2bfa41fdb3784bca12"))),0>ee&&(ee=x[Li("73a612b6fb191d")](Li("7baa19a6f76c1988428554"))),a.Rc=!(0<=ee&&ee<y[Li("73a612b6fb191d")](Li("35"))||y[Li("73a612b6fb191d")](Li("35"))===-1),!a.Rc||x[Li("73a612b6fb191d")](Li("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[Li("73a612b6fb191d")](z)),!a.Rc)||(ee=Ue[Li("76a715b2f73f148a")][Li("69ad17a1e03e")],re=ee[Li("73a612b6fb191d")](Li("7fb002b6ed25128b4da25b2e")),-1<re&&(a.Rc=!(ee[Li("73a612b6fb191d")](z)>re),!a.Rc)))break;if(z[0]==="#"){ee=Ue.document.createElement("div");for(var oe=b[0].replace(/[A-Za-z]/g,"");4>oe.length;)oe+="9";if(re=oe,oe=oe.substr(oe.length-4),b="",b+=["gsh","gsf"][parseInt(oe.substr(0,1),10)%2],b+=["Header","Background","Display","Feedback"][parseInt(oe.substr(0,1),10)%4],ee[Li("79a417a0f0181a8946")]=b,Ue.document[Li("78a712aa")]){Ue.document[Li("78a712aa")][Li("7bb806b6ed32388c4a875b")](ee),oe=Ue.getComputedStyle(ee).getPropertyValue(Li("78a704b7e62456904c9b12701b6532a8"));var le=Ue.getComputedStyle(ee).getPropertyValue(Li("75b817b0ea2202"));if(Ue.document[Li("78a712aa")][Li("68ad1bbcf533388c4a875b")](ee),oe){if(ee=Ue[Li("77a902b0eb1b1e804a8a")],le==="0."+parseInt(re,10)%100||oe.indexOf(parseInt(z[1]+z[2],16))!==-1&&oe.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(ee&&ee(Li("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(b="."+b,z=0;z<document.styleSheets.length;z++){ee=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var ue in ee)if(b===ee[ue].selectorText){a.Rc=!1;break e}}}}else a.Rc=null,a.Rc=!1}}}else{for(ue=x[Li("76ad18b4f73e")],E=x[Li("73a612b6fb191d")](Li("35e7"))+2;E<ue;E++)y+=x[E];x=y[Li("73a612b6fb191d")](Li("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[Li("73a612b6fb191d")](Li("35")))}}}return 0<a.Rc&&a!==a.wy}gm.className="DiagramHelper";function Qd(a){this.j=a===void 0?new Je:a,this.o=new Je}tt.Object.defineProperties(Qd.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 _f="DraggingInfo";Qd.className="DraggingInfo";function ie(a,y,x){this.node=a,this.info=y,this.Su=x}ie.className="DraggingNodeInfoPair";function ae(){this.reset()}ae.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new On(NaN,NaN).freeze(),this.gridSnapCellSpot=ga,this.gridSnapOrigin=new Je(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},ae.className="DraggingOptions";function he(a,y){if(typeof a=="string"||Ue.Element&&a instanceof Element)var x=pn.call(this,a)||this;else x=pn.call(this)||this,y=a;return de(x),y&&x.nm(y),x}Lt(he,pn);function de(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Is,a.layout=new Cl}he.prototype.reset=function(){pn.prototype.reset.call(this),de(this)},he.className="Palette";function pe(a,y){if(typeof a=="string"||Ue.Element&&a instanceof Element)var x=pn.call(this,a)||this;else x=pn.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 dr;var E=new oo;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 Gi(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new ot,x.toolManager.mouseMoveTools),x.click=function(){var z=b.observed;if(z!==null){var ee=z.viewportBounds,re=b.lastInput.documentPoint;z.position=new Je(re.x-ee.width/2,re.y-ee.height/2)}},x.Pf=function(){b.Ya(),Ze(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&&Ze(b)},x.autoScale=$u,x.vb=!1,y&&Object.assign(x,y),x}Lt(pe,pn),pe.prototype.computePixelRatio=function(){return 1},pe.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(Bu(this),this.ql===null){var x=new kc(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),Fe(this)}finally{this.ta=a,this.ib=y}}}pn.prototype.redraw.call(this)},pe.prototype.gc=function(){if(this.Ka===null&&Pt("No div specified"),this.ta===null&&Pt("No canvas specified"),!(this.ta instanceof vd)&&(jv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){Bu(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?Fe(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 Fe(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=Pn.alloc().assign(a.viewportBounds).ed(y.viewportBounds),Ec(y,E),Pn.free(E),sl(y));var z=a.Ab;z.reset(),a.scale!==1&&z.scale(a.scale),a.position.x===0&&a.position.y===0||z.translate(-a.position.x,-a.position.y),E=a.ib,E.scale(a.Mb,a.Mb),E.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),E.yc(),y=y.Wa.s,z=y.length;for(var ee=0;ee<z;ee++){var re=y[ee],oe=a;if(re.visible&&re.opacity!==0){var le=re.diagram.grid.part;if(!x&&re.isTemporary)b&&le.layer===re&&(re=_s(re,E),le.gc(E,oe),E.globalAlpha=re);else{for(var ue=_s(re,E),fe=oe.scale,Se=Pn.alloc(),be=re.Pa.s,Ae=be.length,Oe=0;Oe<Ae;Oe++){var rt=be[Oe];(b||rt!==le)&&re.Oj(E,rt,oe,null,fe,Se,!1)}Pn.free(Se),E.globalAlpha=ue}}}}}function Ze(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=On.alloc();E.h(x.width,x.height),b.desiredSize=E,On.free(E),a=2/a.scale,b instanceof oo&&(b.strokeWidth=a),y.location=new Je(x.x-a/2,x.y-a/2),y.isSelected=!0}}}pe.prototype.computeBounds=function(){var a=this.observed;if(a===null)return io;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},pe.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},pe.prototype.onViewportBoundsChanged=function(a,y,x,b){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),Ze(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))},tt.Object.defineProperties(pe.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof pe&&Pt("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),Ze(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),Ze(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)}}}),pe.className="Overview";function ot(){ur.call(this),this.j=null}Lt(ot,ur),ot.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 Je(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new Je(a.x-this.j.x,a.y-this.j.y)),!0)},ot.prototype.doActivate=function(){this.j=null,ur.prototype.doActivate.call(this)},ot.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},ot.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 Je(b.x-x.x,b.y-x.y)}a=a.lastInput.documentPoint,y.position=new Je(a.x-this.j.x,a.y-this.j.y)}}},ot.className="OverviewDraggingTool";function it(){yr(this),this.H=bc,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=io,this.hb=!0,this.cg=null,this.ob=200}it.prototype.toString=function(){return"CommandHandler"},it.prototype.Xe=function(a){this.H=a},it.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=Dr?y.meta:y.control,b=y.shift,E=y.alt,z=y.key;!x||z!=="C"&&z!=="Insert"?x&&z==="X"||b&&z==="Del"?this.canCutSelection()&&this.cutSelection():x&&z==="V"||b&&z==="Insert"?this.canPasteSelection()&&this.pasteSelection():x&&z==="Y"||E&&b&&z==="Backspace"?this.canRedo()&&this.redo():x&&z==="Z"||E&&z==="Backspace"?this.canUndo()&&this.undo():z==="Del"||z==="Backspace"?this.canDeleteSelection()&&this.deleteSelection():x&&z==="A"?this.canSelectAll()&&this.selectAll():z==="Esc"?this.canStopCommand()&&this.stopCommand():z==="Up"?a.allowVerticalScroll&&(x?a.scroll("pixel","up"):a.scroll("line","up")):z==="Down"?a.allowVerticalScroll&&(x?a.scroll("pixel","down"):a.scroll("line","down")):z==="Left"?a.allowHorizontalScroll&&(x?a.scroll("pixel","left"):a.scroll("line","left")):z==="Right"?a.allowHorizontalScroll&&(x?a.scroll("pixel","right"):a.scroll("line","right")):z==="PageUp"?b&&a.allowHorizontalScroll?a.scroll("page","left"):a.allowVerticalScroll&&a.scroll("page","up"):z==="PageDown"?b&&a.allowHorizontalScroll?a.scroll("page","right"):a.allowVerticalScroll&&a.scroll("page","down"):z==="Home"?x&&a.allowVerticalScroll?a.scroll("document","up"):!x&&a.allowHorizontalScroll&&a.scroll("document","left"):z==="End"?x&&a.allowVerticalScroll?a.scroll("document","down"):!x&&a.allowHorizontalScroll&&a.scroll("document","right"):z===" "?this.canScrollToPart()&&this.scrollToPart():z==="Subtract"?this.canDecreaseZoom()&&this.decreaseZoom():z==="Add"?this.canIncreaseZoom()&&this.increaseZoom():x&&z==="0"?this.canResetZoom()&&this.resetZoom():b&&z==="Z"?this.canZoomToFit()&&this.zoomToFit():x&&!b&&z==="G"?this.canGroupSelection()&&this.groupSelection():x&&b&&z==="G"?this.canUngroupSelection()&&this.ungroupSelection():z==="F2"||y.event&&y.event.key==="F2"?this.canEditTextBlock()&&this.editTextBlock():z==="ContextMenu"||y.event&&y.event.key==="ContextMenu"?this.canShowContextMenu()&&this.showContextMenu():y.bubbles=!0:this.canCopySelection()&&this.copySelection()},it.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},it.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof ti&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},it.prototype.canStopCommand=function(){return!0},it.prototype.selectAll=function(){var a=this.diagram;a.N();try{a.currentCursor="wait",a.R("ChangingSelection",a.selection);for(var y=a.parts;y.next();)y.value.isSelected=!0;for(var x=a.nodes;x.next();)x.value.isSelected=!0;for(var b=a.links;b.next();)b.value.isSelected=!0}finally{a.R("ChangedSelection",a.selection),a.currentCursor=""}},it.prototype.canSelectAll=function(){return this.diagram.allowSelect},it.prototype.deleteSelection=function(){var a=this.diagram;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Delete"),a.R("SelectionDeleting",a.selection);for(var y=new An,x=a.selection.iterator;x.next();)Xh(y,x.value,!0,this.deletesTree?1/0:0,this.deletesConnectedLinks?null:!1,function(b){return b.canDelete()});a.Is(y,!0),a.R("SelectionDeleted",y)}finally{a.eb("Delete"),a.R("ChangedSelection",a.selection),a.currentCursor=""}},it.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},it.prototype.copySelection=function(){var a=this.diagram,y=new An;for(a=a.selection.iterator;a.next();)Xh(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},it.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},it.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},it.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},it.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)wf=null,Kh="";else{x=y.model;var b=!1,E=!1,z=null;try{x.Tl()&&(b=x.Jj,x.Jj=this.copiesParentKey),x.Wj()&&(E=x.Ij,x.Ij=this.copiesGroupKey),z=y.Kj(a,null,!0)}finally{x.Tl()&&(x.Jj=b),x.Wj()&&(x.Ij=E),x=new Mn,x.addAll(z),wf=x,Kh=y.model.dataFormat}}y.R("ClipboardChanged",x)},it.prototype.pasteFromClipboard=function(){var a=new An,y=wf;if(y===null)return a;var x=this.diagram;if(Kh!==x.model.dataFormat)return a;var b=x.model,E=!1,z=!1,ee=null;try{b.Tl()&&(E=b.Jj,b.Jj=this.copiesParentKey),b.Wj()&&(z=b.Ij,b.Ij=this.copiesGroupKey),ee=x.Kj(y,x,!1)}finally{for(b.Tl()&&(b.Jj=E),b.Wj()&&(b.Ij=z),y=ee.iterator;y.next();)x=y.value,b=y.key,x.location.w()||(b.location.w()?x.location=b.location:!x.position.w()&&b.position.w()&&(x.position=b.position)),a.add(x)}return a},it.prototype.pasteSelection=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Paste");var x=this.pasteFromClipboard();0<x.count&&y.clearSelection(!0);for(var b=x.iterator;b.next();)b.value.isSelected=!0;if(a!==null){var E=y.computePartsBounds(y.selection);if(E.w()){var z=this.computeEffectiveCollection(y.selection,y.Wm);uc(y,z,new Je(a.x-E.centerX,a.y-E.centerY),y.Wm,!1)}}y.R("ClipboardPasted",x)}finally{y.eb("Paste"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},it.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||wf===null||wf.count===0||Kh!==a.model.dataFormat)},it.prototype.undo=function(){this.diagram.undoManager.undo()},it.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},it.prototype.redo=function(){this.diagram.undoManager.redo()},it.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},it.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===Yl&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},it.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Yl?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},it.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Yl&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},it.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Yl?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},it.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},it.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},it.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,b=a.scale;Ua(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=io):(this.Jt=b,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),Do(y)},it.prototype.canZoomToFit=function(){return this.diagram.allowZoom},it.prototype.scrollToPart=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.Va(),a===null){try{this.cg!==null&&(this.cg.next()?a=this.cg.value:this.cg=null)}catch(oe){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;Ua(x,"Scroll To Part");var b=this.scrollToPartPause;if(0<b){var E=Nt(this,a,[a]);if(E.length===1)y.Ea(),y.es(a.actualBounds),y.eb("Scroll To Part");else{var z=function(){y.Ea();for(var oe=E.pop();0<E.length&&oe instanceof Di&&oe.isTreeExpanded&&(!(oe instanceof Jr)||oe.isSubGraphExpanded);)oe=E.pop();0<E.length?(oe instanceof dr&&y.tv(oe.actualBounds),oe instanceof Di&&!oe.isTreeExpanded&&(oe.isTreeExpanded=!0),oe instanceof Jr&&!oe.isSubGraphExpanded&&(oe.isSubGraphExpanded=!0)):(oe instanceof dr&&y.es(oe.actualBounds),y.am("LayoutCompleted",ee)),y.eb("Scroll To Part")},ee=function(){Rn(z,(x.isEnabled?x.duration:0)+b)};y.Bj("LayoutCompleted",ee),z()}}else{var re=y.position.copy();y.es(a.actualBounds),re.Xa(y.position)&&x.Cc()}}};function Nt(a,y,x){if(y.isVisible())return x;if(y instanceof Yo)Nt(a,y.adornedPart,x);else if(y instanceof fi){var b=y.fromNode;b!==null&&Nt(a,b,x),y=y.toNode,y!==null&&Nt(a,y,x)}else y instanceof Di&&(b=y.labeledLink,b!==null&&Nt(a,b,x),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||x.push(b),Nt(a,b,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),Nt(a,y,x));return x}it.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof dr)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},it.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),Ua(y.animationManager,"Collapse Tree");var x=new Mn;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 Di&&E.isTreeExpanded&&(E.collapseTree(),x.add(E))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},it.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Di&&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 Di&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},it.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),Ua(y.animationManager,"Expand Tree");var x=new Mn;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 Di&&!E.isTreeExpanded&&(E.expandTree(),x.add(E))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},it.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Di)||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 Di&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},it.prototype.groupSelection=function(){var a=this.diagram,y=a.model;if(y.Xj()){var x=this.archetypeGroupData;if(x!==null){var b=null;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Group");for(var E=new Mn,z=a.selection.iterator;z.next();){var ee=z.value;ee.Zc()&&ee.canGroup()&&E.add(ee)}for(var re=new Mn,oe=E.iterator;oe.next();){var le=oe.value;z=!1;for(var ue=E.iterator;ue.next();)if(le.Td(ue.value)){z=!0;break}z||re.add(le)}if(0<re.count){var fe=re.first().containingGroup;if(fe!==null)for(;fe!==null;){E=!1;for(var Se=re.iterator;Se.next();)if(!Se.value.Td(fe)){E=!0;break}if(E)fe=fe.containingGroup;else break}if(x instanceof Jr)Nc(x),b=x.copy(),b!==null&&a.add(b);else if(y.Yu(x)){var be=y.copyNodeData(x);Rt(be)&&(y.xf(be),b=a.ii(be))}if(b!==null){fe!==null&&this.isValidMember(fe,b)&&(b.containingGroup=fe);for(var Ae=re.iterator;Ae.next();){var Oe=Ae.value;this.isValidMember(b,Oe)&&(Oe.containingGroup=b)}a.clearSelection(!0),b.isSelected=!0}}a.R("SelectionGrouped",b)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},it.prototype.canGroupSelection=function(){var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowGroup||!a.model.Xj()||this.archetypeGroupData===null)return!1;for(a=a.selection.iterator;a.next();){var y=a.value;if(y.Zc()&&y.canGroup())return!0}return!1};function Nn(a){var y=ei();for(a=a.iterator;a.next();){var x=a.value;x instanceof fi||y.push(x)}a=new An,x=y.length;for(var b=0;b<x;b++){for(var E=y[b],z=!0,ee=0;ee<x;ee++)if(E.Td(y[ee])){z=!1;break}z&&a.add(E)}return yi(y),a}it.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof fi)return!1;if(a!==null){if(a===y||a.Td(y))return!1;var x=a.memberValidation;if(x!==null&&!x(a,y)||a.data===null&&y.data!==null||a.data!==null&&y.data===null)return!1}return x=this.memberValidation,x!==null?x(a,y):!0},it.prototype.ungroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.model;if(x.Xj())try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Ungroup");var b=new Mn;if(a!==null)b.add(a);else for(var E=y.selection.iterator;E.next();){var z=E.value;z instanceof Jr&&z.canUngroup()&&b.add(z)}var ee=new Mn;if(0<b.count){y.clearSelection(!0);for(var re=b.iterator;re.next();){var oe=re.value;oe.expandSubGraph();var le=oe.containingGroup,ue=le!==null&&le.data!==null?x.wa(le.data):void 0;ee.addAll(oe.memberParts);for(var fe=ee.iterator;fe.next();){var Se=fe.value;if(Se.isSelected=!0,!(Se instanceof fi)){var be=Se.data;be!==null?x.mp(be,ue):Se.containingGroup=le}}y.remove(oe)}}y.R("SelectionUngrouped",b,ee)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},it.prototype.canUngroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly||y.isModelReadOnly||!y.allowDelete||!y.allowUngroup||!y.model.Xj())return!1;if(a!==null){if(!(a instanceof 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},it.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=Nn(a).iterator;a.next();){var b=a.value;b.containingGroup!==null&&(!y||this.isValidMember(null,b)?b.containingGroup=null:x=!1)}return x},it.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),Ua(y.animationManager,"Collapse SubGraph");var x=new Mn;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")}},it.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof Jr&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Jr&&y.isSubGraphExpanded)return!0;return!1},it.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),Ua(y.animationManager,"Expand SubGraph");var x=new Mn;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")}},it.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof Jr&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Jr&&!y.isSubGraphExpanded)return!0;return!1},it.prototype.editTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.toolManager.findTool("TextEditing");if(x!==null){if(a===null){a=null;for(var b=y.selection.iterator;b.next();){var E=b.value;if(E.canEdit()){a=E;break}}if(a===null)return;a=a.Nl(function(z){return z instanceof ba&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},it.prototype.canEditTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly||y.isModelReadOnly||!y.allowTextEdit||y.toolManager.findTool("TextEditing")===null)return!1;if(a!==null){if(!(a instanceof ba))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 ba&&x.editable}),a!==null))return!0;return!1},it.prototype.showContextMenu=function(a){var y=this.diagram,x=y.toolManager.findTool("ContextMenu");if(x!==null&&(a===void 0&&(a=0<y.selection.count?y.selection.first():y),a=x.findObjectWithContextMenu(a),a!==null)){var b=y.lastInput,E=null;a instanceof Kt?E=a.ga(xo):y.viewportBounds.ca(b.documentPoint)||(E=y.viewportBounds,E=new Je(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,_o(x,!1,a)}},it.prototype.canShowContextMenu=function(a){var y=this.diagram,x=y.toolManager.findTool("ContextMenu");return x===null?!1:(a===void 0&&(a=0<y.selection.count?y.selection.first():y),x.findObjectWithContextMenu(a)!==null)},it.prototype.computeEffectiveCollection=function(a,y){var x=this.diagram,b=x.toolManager.findTool("Dragging"),E=x.currentTool===b;if(y===void 0&&(y=E?b.dragOptions:x.Wm),b=new zi,a===null)return b;for(var z=a.iterator;z.next();)Qu(x,b,z.value,E,y);if(x.draggedLink!==null&&y.dragsLink)return b;for(z=a.iterator;z.next();)a=z.value,a instanceof fi&&(y=a.fromNode,y===null||b.contains(y)?(y=a.toNode,y===null||b.contains(y)||b.remove(a)):b.remove(a));return b},tt.Object.defineProperties(it.prototype,{diagram:{get:function(){return this.H}},copiesClipboardData:{get:function(){return this.o},set:function(a){this.o=a}},copiesConnectedLinks:{get:function(){return this.u},set:function(a){this.u=a}},deletesConnectedLinks:{get:function(){return this.Ha},set:function(a){this.Ha=a}},copiesTree:{get:function(){return this.ia},set:function(a){this.ia=a}},deletesTree:{get:function(){return this.nb},set:function(a){this.nb=a}},copiesParentKey:{get:function(){return this.V},set:function(a){this.V=a}},copiesGroupKey:{get:function(){return this.F},set:function(a){this.F=a}},archetypeGroupData:{get:function(){return this.j},set:function(a){this.j=a}},memberValidation:{get:function(){return this.ij},set:function(a){this.ij=a}},defaultScale:{get:function(){return this.diagram.defaultScale},set:function(a){this.diagram.defaultScale=a}},zoomFactor:{get:function(){return this.Hb},set:function(a){1<a||Pt("zoomFactor must be larger than 1.0, not: "+a),this.Hb=a}},isZoomToFitRestoreEnabled:{get:function(){return this.hb},set:function(a){this.hb=a}},scrollToPartPause:{get:function(){return this.ob},set:function(a){this.ob=a}}}),it.className="CommandHandler",_c=function(){return new it};function Kt(){yr(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new Je(NaN,NaN).freeze(),this.jd=$o,this.Ab=new Hr,this.wh=new Hr,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=Bs,this.uc=new Pn(NaN,NaN,NaN,NaN).freeze(),this.Ib=new Pn(NaN,NaN,NaN,NaN).freeze(),this.dc=new Pn(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Xo,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 ii,qn,ir,sr,Ar,Qr,Eo,mo,jo,ua;Kt.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=bi(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},Kt.prototype.Vw=function(a){var y=this.Dh;if(vn(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},Kt.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},Kt.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},Kt.prototype.copy=function(){return this.clone()},Ee=Kt.prototype,Ee.qb=function(a){a.classType===fi?a.name.indexOf("Orient")===0?this.segmentOrientation=a:Pt("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===Kt&&(this.stretch=a)},Ee.toString=function(){return Fi(this.constructor)+"#"+xr(this)},Ee.th=function(){this.A!==null&&(this.A.nc=!0)};function co(a){a.A===null?a.A=new qf:a.A.nc&&(a.A=a.A.copy())}Ee.Xc=function(){if(this.ba===null){var a=new mp;a.Xi=Da,a.yj=Da,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},Ee.cb=function(a,y,x,b,E,z,ee){var re=this.part;if(re!==null&&(re.gk(a,y,x,b,E,z,ee),x===this&&a===ri&&kl(this)&&Ma(this,re,y),z=this.diagram,this.animationTriggers===null||z===null||!z.pi||z.undoManager.isUndoingRedoing||z.animationManager.Dm||(a=this.animationTriggers.get(y),a!==null&&z.animationManager.isEnabled&&!z.animationManager.isTicking&&(this.jo===null&&(this.jo=new zi),ee=z.undoManager.transactionLevel===0,a.startCondition===Qs?ee=!0:a.startCondition===ms&&(ee=!1),ee?(z=new $a,Ra(a,z),ee=this.jo.get(a),ee!==null&&ee.stop(),this.jo.add(a,z),z.vu=this,z.Nw=a,z.add(this,y,b,E),z.start()):(Ua(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,b,E)))),this instanceof si&&x===re&&(re.l&16777216)!==0&&re.data!==null))for(x=this.O.s,b=x.length,E=0;E<b;E++)re=x[E],re instanceof si&&Mf(re,function(oe){oe.data!==null&&oe.l&16777216&&oe.La(y)})};function Ma(a,y,x){var b=a.ih();if(b!==null)for(var E=a.localBindings.iterator;E.next();){var z=E.value,ee=null;if(z.sourceName!==null){if(ee=Fx(z,b,a),ee===null)continue;z.sp(a,ee,x,null)}else if(z.isToModel){var re=y.diagram;re===null||re.skipsModelSourceBindings||z.sp(a,re.model.modelData,x,b)}else{if(re=b.data,re===null)continue;var oe=y.diagram;oe===null||oe.skipsModelSourceBindings||z.sp(a,re,x,b)}ee===a&&(re=b.ks(z.Ai),re!==null&&z.Mv(re,ee,x))}}Ee.ks=function(a){return this.bindingId===a?this:null},Ee.g=function(a,y,x){this.cb(ri,a,this,y,x)},Ee.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 Hr);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),z.pp(E)}};function $s(a,y,x,b){return a.pickable===!1?!1:(b.multiply(a.transform),x?a.Yc(y,b):a.fh(y,b))}Ee.tx=function(a,y,x){if(this.pickable===!1)return!1;var b=this.naturalBounds;return y=a.Bf(y),x?Ii(a.x,a.y,0,0,0,b.height)<=y||Ii(a.x,a.y,0,b.height,b.width,b.height)<=y||Ii(a.x,a.y,b.width,b.height,b.width,0)<=y||Ii(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},Ee.se=function(){return!0},Ee.ca=function(a){var y=Je.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return Je.free(y),!1;var b=this.diagram;if(b!==null&&b.wq){var E=b.Ql("extraTouchThreshold"),z=b.Ql("extraTouchArea"),ee=z/2,re=this.naturalBounds;b=this.Df()*b.scale;var oe=1/b;if(re.width*b<E&&re.height*b<E)return a=Oo(x.x-ee*oe,x.y-ee*oe,x.width+z*oe,x.height+z*oe,y.x,y.y),Je.free(y),a}return E=!1,(this instanceof Yo||this instanceof oo?Oo(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)),Je.free(y),E},Ee.gh=function(a){var y=this.naturalBounds;return Oo(0,0,y.width,y.height,a.x,a.y)},Ee.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=Pn.allocAt(0,0,y.width,y.height);var x=this.transform,b=!1,E=Je.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)))),Je.free(E),Pn.free(y),b},Ee.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,b=!1,E=Je.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)))),Je.free(E),b},Ee.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,b=Je.allocAt(0,0),E=Je.allocAt(0,x.height),z=Je.allocAt(x.width,x.height),ee=Je.allocAt(x.width,0),re=!1;if(a.ca(y.Ga(b))||a.ca(y.Ga(E))||a.ca(y.Ga(z))||a.ca(y.Ga(ee)))re=!0;else{x=Pn.allocAt(0,0,x.width,x.height);var oe=Je.allocAt(a.x,a.y);x.ca(y.Cd(oe))?re=!0:(oe.h(a.x,a.bottom),x.ca(y.Cd(oe))?re=!0:(oe.h(a.right,a.bottom),x.ca(y.Cd(oe))?re=!0:(oe.h(a.right,a.y),x.ca(y.Cd(oe))&&(re=!0)))),Je.free(oe),Pn.free(x),!re&&(Zt.us(a,b,E)||Zt.us(a,E,z)||Zt.us(a,z,ee)||Zt.us(a,ee,b))&&(re=!0)}return Je.free(b),Je.free(E),Je.free(z),Je.free(ee),re},Ee.ga=function(a,y){if(y===void 0&&(y=new Je),a instanceof Ui){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},Ee.mi=function(a){a===void 0&&(a=new Pn);var y=this.naturalBounds,x=this.oe,b=Je.allocAt(0,0).transform(x);return a.h(b.x,b.y,0,0),b.h(y.width,0).transform(x),ko(a,b.x,b.y,0,0),b.h(y.width,y.height).transform(x),ko(a,b.x,b.y,0,0),b.h(0,y.height).transform(x),ko(a,b.x,b.y,0,0),Je.free(b),a},Ee.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},Ee.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Ee.qs=function(a,y){return y===void 0&&(y=new Je),y.assign(a),this.oe.Cd(y),y},Ee.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Ee.Sj=function(a,y,x,b,E){var z=this.transform,ee=1/(z.m11*z.m22-z.m12*z.m21),re=z.m22*ee,oe=-z.m12*ee,le=-z.m21*ee,ue=z.m11*ee,fe=ee*(z.m21*z.dy-z.m22*z.dx),Se=ee*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,Zt.Ff(z.left,z.top,z.right,z.bottom,a,y,x,b,E)):(ee=a*re+y*le+fe,a=a*oe+y*ue+Se,y=x*re+b*le+fe,x=x*oe+b*ue+Se,E.h(0,0),b=this.naturalBounds,x=Zt.Ff(0,0,b.width,b.height,ee,a,y,x,E),E.transform(z),x)},Kt.prototype.measure=function(a,y,x,b){if(ec(this)!==!1){var E=this.Kg,z=E.right+E.left;E=E.top+E.bottom,a=Math.max(a-z,0),y=Math.max(y-E,0),x=Math.max((x||0)-z,0),b=Math.max((b||0)-E,0),z=this.angle,E=this.desiredSize;var ee=this.kq();z===90||z===270?(a=isFinite(E.height)?E.height+ee:a,y=isFinite(E.width)?E.width+ee:y):(a=isFinite(E.width)?E.width+ee:a,y=isFinite(E.height)?E.height+ee:y),E=x||0,ee=b||0;var re=this instanceof si;switch(wu(this,!0)){case qn:ee=E=0,re&&(y=a=1/0);break;case ii:isFinite(a)&&a>x&&(E=a),isFinite(y)&&y>b&&(ee=y);break;case sr:isFinite(a)&&a>x&&(E=a),ee=0,re&&(y=1/0);break;case Ar:isFinite(y)&&y>b&&(ee=y),E=0,re&&(a=1/0)}re=this.maxSize;var oe=this.minSize;E>re.width&&oe.width<re.width&&(E=re.width),ee>re.height&&oe.height<re.height&&(ee=re.height),x=Math.max(E,oe.width),b=Math.max(ee,oe.height),re.width<x&&(x=Math.min(oe.width,x)),re.height<b&&(b=Math.min(oe.height,b)),a=Math.min(re.width,a),y=Math.min(re.height,y),a=Math.max(x,a),y=Math.max(b,y),(z===90||z===270)&&(z=a,a=y,y=z,z=x,x=b,b=z),this.uc.ka(),this.Wl(a,y,x,b),this.uc.freeze(),this.uc.w()||Pt("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Hs(this,!1)}},Kt.prototype.Wl=function(){},Kt.prototype.Dd=function(){return!1},Kt.prototype.arrange=function(a,y,x,b,E){this.Uk();var z=Pn.alloc();z.assign(this.Ib),this.Ib.ka(),iu(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&&xh(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 ba&&(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()||Pt("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Ld(this,!1),Pn.free(z)},Ee=Kt.prototype,Ee.eh=function(){};function Ul(a,y,x,b,E){if(a.Ib.h(y,x,b,E),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var ee=x.top+x.bottom;switch(x=z.width+y,z=z.height+ee,b+=y,E+=ee,y=wu(a,!0),x===b&&z===E&&(y=qn),y){case qn:(x>b||z>E)&&(Hs(a,!0),a.measure(x>b?b:x,z>E?E:z,0,0));break;case ii:Hs(a,!0),a.measure(b,E,0,0);break;case sr:Hs(a,!0),a.measure(b,z,0,0);break;case Ar:Hs(a,!0),a.measure(x,E,0,0)}}}Ee.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||Zv(x,!0),this.N(),Ga(a,y)||(x.oh(),this.Pn(x)))},Ee.Pn=function(a){this.portId!==null&&(Zv(a,!0),a instanceof Di&&XS(a,this))},Ee.gc=function(a,y){if(!cc(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var b=1;x!==1&&(b=a.globalAlpha,a.globalAlpha=b*x);var E="";this.filter!==""&&(E=a.filter,a.filter=this.filter);var z=this instanceof si&&xh(this),ee=this.Ib;if(z){var re=this.Ib,oe=this.dc,le=this.areaBackground,ue=this.Ma;le===null&&ue===null||a.yc(),le!==null&&(ds(this,a,le,!0,!0,oe,re),le instanceof ia&&le.type===fc?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(le)):a.fillRect(re.x,re.y,re.width,re.height)),ue!==null&&(ds(this,a,ue,!0,!1,oe,re),ue instanceof ia&&ue.type===fc?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(ue)):a.fillRect(re.x,re.y,re.width,re.height)),this.hh(a,y)}if(!z&&(z||ee.width!==0&&ee.height!==0&&!isNaN(ee.x)&&!isNaN(ee.y))){z=this.transform,re=this.panel,this.l&4096&&Pl(this),le=this.part,oe=!1;var fe=0;le&&y.Gf("drawShadows")&&(oe=le.isShadowed)&&(ue=le.shadowOffset,fe=Math.max(ue.y,ue.x)*y.scale*y.Mb),ue=this.Dd();var Se;if(!(Se=y.$i||!ue)){var be=this.naturalBounds;Se=this.wh;var Ae=Se.m11,Oe=Se.m21,rt=Se.dx,Ye=Se.m12,mt=Se.m22,wt=Se.dy,Mt,jt=Mt=0;Se=Mt*Ae+jt*Oe+rt;var mn=Mt*Ye+jt*mt+wt;Mt=be.width+fe,jt=0;var Ni=Mt*Ae+jt*Oe+rt;Mt=Mt*Ye+jt*mt+wt,jt=Math.min(Se,Ni);var Qi=Math.min(mn,Mt),Hi=Math.max(Se+0,Ni)-jt,hi=Math.max(mn+0,Mt)-Qi;Se=jt,mn=Qi,Mt=be.width+fe,jt=be.height+fe,Ni=Mt*Ae+jt*Oe+rt,Mt=Mt*Ye+jt*mt+wt,jt=Math.min(Se,Ni),Qi=Math.min(mn,Mt),Hi=Math.max(Se+Hi,Ni)-jt,hi=Math.max(mn+hi,Mt)-Qi,Se=jt,mn=Qi,Mt=0,jt=be.height+fe,Ni=Mt*Ae+jt*Oe+rt,Mt=Mt*Ye+jt*mt+wt,jt=Math.min(Se,Ni),Qi=Math.min(mn,Mt),Hi=Math.max(Se+Hi,Ni)-jt,hi=Math.max(mn+hi,Mt)-Qi,Se=jt,mn=Qi,fe=y.viewportBounds,be=fe.x,Ae=fe.y,Se=!(Se>fe.width+be||be>Hi+Se||mn>fe.height+Ae||Ae>hi+mn)}if(Se){if(Se=(this.l&256)!==0,a.clipInsteadOfFill&&(Se=!1),this instanceof ba&&(a.font=this.font),Se){if(mn=re.se()?re.naturalBounds:re.actualBounds,Hi=Math.max(ee.x,mn.x),hi=Math.max(ee.y,mn.y),fe=Math.min(ee.right,mn.right)-Hi,be=Math.min(ee.bottom,mn.bottom)-hi,Ae=this.tb,Ae!==null&&(Hi=Ae.x,hi=Ae.y,fe=Ae.width,be=Ae.height),Hi>ee.width+ee.x||ee.x>mn.width+mn.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}a.save(),a.beginPath(),a.rect(Hi,hi,fe,be),a.clip()}if(ue){if(!le.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}oe&&(mn=le.shadowOffset,a.Ev(mn.x*y.scale*this.scale*y.Mb,mn.y*y.scale*this.scale*y.Mb,le.shadowBlur),_d(a),a.shadowColor=le.shadowColor)}oe&&this.shadowVisible===!0?_d(a):oe&&this.shadowVisible===!1&&Md(a),le=this.naturalBounds,this.areaBackground!==null&&(a.yc(),qu(this,a,le,ee)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),oe&&fl(this,re)&&this.shadowVisible===null&&Md(a),this.Ma!==null&&(a.yc(),Tu(this,a,le,ee)),oe&&(this.Ma!==null||this.areaBackground!==null||fl(this,re))?(Wc(this,!0),this.shadowVisible===null&&Md(a)):Wc(this,!1),this.hh(a,y),oe&&this.l&512&&_d(a),ue&&oe&&Md(a),Se&&(a.restore(),a.Vc(this instanceof si)),z.ws()||(y=1/(z.m11*z.m22-z.m12*z.m21),a.transform(z.m22*y,-z.m12*y,-z.m21*y,z.m11*y,y*(z.m21*z.dy-z.m22*z.dx),y*(z.m12*z.dx-z.m11*z.dy)))}}x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E)}}};function fl(a,y){return y===null?!1:(xh(y)&&(y=y.panel),(y.l&512)!==0||(y.type===si.Auto||y.type===si.Spot)&&y.Pb()!==a)}Ee.Dv=function(){};function qu(a,y,x,b){ds(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof ia&&a.areaBackground.type===fc?(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 Tu(a,y,x,b){var E=a.kq(),z=x.x,ee=x.y,re=x.width+E,oe=x.height+E;ds(a,y,a.Ma,!0,!1,x,b),a.Ma instanceof ia&&a.Ma.type===fc?(y.beginPath(),y.rect(z-E/2,ee-E/2,re,oe),y.ng(a.Ma)):y.fillRect(z-E/2,ee-E/2,re,oe)}function Zl(a,y,x){for(var b=y.O.s,E=b.length,z=-1,ee=0;ee<E;ee++)if(b[ee]===a){z=ee;break}if(a=z,a!==-1)if(a===0)y.svg.gd?y.svg.gd.after(x):y.svg.Ma?y.svg.Ma.after(x):y.type===si.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 cc(a,y,x){if(!(y instanceof Ku))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&&Zl(a,b,a.svg),!0);if(a.Dd()&&a.isShadowed){var z=a.shadowOffset;y.Ev(z.x*x.scale*a.scale*x.Mb,z.y*x.scale*a.scale*x.Mb,a.shadowBlur),_d(y),y.shadowColor=a.shadowColor}a instanceof ba&&(y.font=a.font),y.yd=null;var ee=a.transform;z=a instanceof si;var re=a instanceof si?xh(a):!1;a.l&4096&&Pl(a);var oe=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,E&&(y.o=!0,z&&re?(vp(y,1,0,0,1,0,0),a.svg=y.ad):z?(vp(y,ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy),a.svg=y.ad):vp(y,1,0,0,1,0,0)),E=a.naturalBounds,a.areaBackground!==null){var le=ee.copy().Vj();y.rb.ha=[le.m11,le.m12,le.m21,le.m22,le.dx,le.dy],qu(a,y,E,oe),y.rb.ha=[1,0,0,1,0,0],y.yd.gd=y.ad,y.yd.prepend(y.ad)}return z||(y.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy]),a.background!==null&&(z?(re&&(y.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy]),Tu(a,y,E,oe),re&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy],Tu(a,y,E,oe)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),ee=y.yd,E=a.part,re=!1,E&&x.Gf("drawShadows")&&(re=E.isShadowed),y.clipInsteadOfFill&&(re=!1),a.Dd()&&re&&_d(y),re&&a.shadowVisible===!0?_d(y):re&&a.shadowVisible===!1&&Md(y),E=a.panel,re&&fl(a,E)&&a.shadowVisible===null&&Md(y),y.Il&&(le=x.computePixelRatio(),le="drop-shadow("+y.shadowOffsetX/le+"px "+y.shadowOffsetY/le+"px "+y.shadowBlur/le/2+"px "+y.shadowColor+")",a.background!==null&&ee.Ma.setAttributeNS(null,"filter",le),a.areaBackground!==null&&ee.gd.setAttributeNS(null,"filter",le)),re&&(a.Ma!==null||a.areaBackground!==null||fl(a,E))?(Wc(a,!0),a.shadowVisible===null&&Md(y)):Wc(a,!1),E=re,a.hh(y,x),z&&y.nh.pop(),y.o&&y.nh.pop(),ee=y.Gv.hs,re=z?a.svg:y.yd,le=a.svg,!z&&le!==null&&re!==le&&le.parentNode===a.panel.svg?(a.svg.replaceWith(re),a.svg=re,re!==null&&a.$o(y,b,oe,re),xu(y,le),!0):(a.svg=re,ee!==null&&re===null&&(mm(y),y.nh.pop()),re===null||(a.$o(y,b,oe,re),y.Il&&(x=x.computePixelRatio(),a.Dv(re,"drop-shadow("+y.shadowOffsetX/x+"px "+y.shadowOffsetY/x+"px "+y.shadowBlur/x/2+"px "+y.shadowColor+")")),E&&a.l&512&&_d(y),a.Dd()&&Md(y),x=a.Dd()?a.opacity*y.globalAlpha:a.opacity,x!==1&&re.setAttributeNS(null,"opacity",x.toString()),a.filter!==""&&re.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(re):y.Nj.prepend(re),y.ti=re):b!==null&&Zl(a,b,re),ee!==null&&ee(a,re)),!0)}Ee.$o=function(a,y,x,b){var E=(this.l&256)!==0;if(a.clipInsteadOfFill&&(E=!1),E){var z=y.se()?y.naturalBounds:y.actualBounds;y=Math.max(x.x,z.x),E=Math.max(x.y,z.y);var ee=Math.min(x.right,z.right)-y;x=Math.min(x.bottom,z.bottom)-E,z=this.tb,z!==null&&(y=z.x,E=z.y,ee=z.width,x=z.height),z=b.getAttribute("clip-path");var re=null;z!==null&&(re=a.svg.getElementById(z.split("#")[1].slice(0,-1))),re===null?(z="CLIP"+Ho++,re=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:E,width:ee,height:x}),this instanceof si&&(E=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")")),re.appendChild(y),a.svg.appendChild(re),b.setAttributeNS(null,"clip-path","url(#"+z+")")):(a=re.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",E.toString()),a.setAttribute("width",ee.toString()),a.setAttribute("height",x.toString()))}else b.removeAttributeNS(null,"clip-path"),xu(a,b)};function xu(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function Kl(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=Xi(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()}}Ee.hh=function(){},Ee.lv=function(){this.Uc=!0},Ee.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 si?xh(this):!1;if(!(this instanceof si&&E))if(this instanceof Cu){var z=this.bt;a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy],z!==null&&eS(a,z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7]),x?y.lastElementChild.setAttributeNS(null,"transform",tS(a)):y.setAttributeNS(null,"transform",tS(a))}else if(!x||this instanceof si)y.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");else if(this instanceof oo){z=y.getElementsByTagName("path");for(var ee=0;ee<z.length;ee++)z[ee].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 z=this.Dd()?this.opacity*a.globalAlpha:this.opacity,z===1?y.removeAttribute("opacity"):y.setAttributeNS(null,"opacity",z.toString()),a.rb.ha=[1,0,0,1,0,0],(this.areaBackground!==null||y.gd!==void 0)&&(z=y.gd,this.areaBackground===null?(y.gd.remove(),y.gd=void 0):(ee=b.copy().Vj(),a.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy],qu(this,a,this.naturalBounds,this.actualBounds),a.rb.ha=[1,0,0,1,0,0],y.gd?(ee=y.gd.getAttribute("filter"),ee!==null&&a.ad.setAttribute("filter",ee),y.gd.replaceWith(a.ad)):y.prepend(a.ad),y.gd=a.ad),z&&vm(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(vm(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((E||x&&!(this instanceof si))&&(a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy]),Tu(this,a,this.naturalBounds,this.actualBounds),y.Ma?(vm(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),z&&vm(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},Ee.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 ds(a,y,x,b,E,z,ee){if(x!==null){var re=1,oe=1;if(typeof x=="string")b?y.fillStyle=x:y.strokeStyle=x;else if(x.type===Sh)b?y.fillStyle=x.color:y.strokeStyle=x.color;else{var le=a.kq();if(re=z.width,oe=z.height,E?(re=ee.width,oe=ee.height):b||(re+=le,oe+=le),(z=y instanceof Lf)&&x.xe&&(x.type===kg||x.yk===re&&x.ft===oe))var ue=x.xe;else{var fe=0,Se=0,be=0,Ae=0,Oe=0,rt=0;if(rt=Oe=0,E?(Oe=ee.x,rt=ee.y):b||(Oe-=le/2,rt-=le/2),fe=x.start.x*re+x.start.offsetX,Se=x.start.y*oe+x.start.offsetY,be=x.end.x*re+x.end.offsetX,Ae=x.end.y*oe+x.end.offsetY,fe+=Oe,be+=Oe,Se+=rt,Ae+=rt,x.type===qd)ue=y.createLinearGradient(fe,Se,be,Ae);else if(x.type===fc)rt=isNaN(x.endRadius)?Math.max(re,oe)/2:x.endRadius,isNaN(x.startRadius)?(Oe=0,rt=Math.max(re,oe)/2):Oe=x.startRadius,ue=y.createRadialGradient(fe,Se,Oe,be,Ae,rt);else if(x.type===kg)try{ue=y.createPattern(x.pattern,"repeat")}catch(mt){ue=null}if(x.type!==kg&&(E=x.colorStops,E!==null))for(E=E.iterator;E.next();)ue.addColorStop(E.key,E.value);if(z&&(x.xe=ue,ue!==null&&(x.yk=re,x.ft=oe),ue===null&&x.type===kg&&x.yk!==-1)){x.yk=-1;var Ye=a.diagram;Ye!==null&&x.yk===-1&&Rn(function(){Ye.redraw()},600)}}b?y.fillStyle=ue:y.strokeStyle=ue}}}Ee.rg=function(a){if(a instanceof si)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},Ee.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},Ee.If=function(){for(var a=this instanceof si?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function Pl(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){Mc(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)}Mc(a,!1),dc(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,dc(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,dc(a,!1)))}Ee.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Je.alloc();z.yi(y,x,b,E,xo),a.rotate(this.Kb,z.x,z.y),Je.free(z)}},Ee.v=function(a){if(!ec(this)){a===void 0&&(a=!1),Hs(this,!0),Ld(this,!0);var y=this.panel;y===null||a||y.v()}},Ee.Uj=function(){ec(this)||(Hs(this,!0),Ld(this,!0))};function nu(a){if(!iu(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof Di&&a.Bd(),y.$b())),Ld(a,!0)}}Ee.Uk=function(){!(this.l&2048)&&(Mc(this,!0),dc(this,!0))},Ee.Wu=function(){dc(this,!0)},Ee.N=function(){var a=this.part;a!==null&&a.N()};function wu(a,y){var x=a.stretch,b=a.panel;return b!==null&&b.type===si.Table?id(a,b.Fb(a.row),b.Eb(a.column),y):b!==null&&b.type===si.Auto&&b.Pb()===a?gl(a,ii,y):x===Qr?b!==null?b.type===si.Spot&&b.Pb()===a?gl(a,ii,y):(x=b.defaultStretch,x===Qr?gl(a,qn,y):gl(a,x,y)):gl(a,qn,y):gl(a,x,y)}function id(a,y,x,b){var E=a.stretch;if(E!==Qr)return gl(a,E,b);var z=E=null;switch(y.stretch){case Ar:z=!0;break;case ii:z=!0}switch(x.stretch){case sr:E=!0;break;case ii:E=!0}return y=a.panel.defaultStretch,E===null&&(E=y===sr||y===ii),z===null&&(z=y===Ar||y===ii),E===!0&&z===!0?gl(a,ii,b):E===!0?gl(a,sr,b):z===!0?gl(a,Ar,b):gl(a,qn,b)}function gl(a,y,x){if(x)return y;if(y===qn||(x=a.desiredSize,x.w()))return qn;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===sr)return qn;if(y===ii)return Ar}else{if(y===Ar)return qn;if(y===ii)return sr}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===Ar)return qn;if(y===ii)return sr}else{if(y===sr)return qn;if(y===ii)return Ar}return y}function Wc(a,y){a.l=y?a.l|512:a.l&-513}function kl(a){return(a.l&1024)!==0}function $f(a,y){a.l=y?a.l|1024:a.l&-1025}function Mc(a,y){a.l=y?a.l|2048:a.l&-2049}function dc(a,y){a.l=y?a.l|4096:a.l&-4097}function ec(a){return(a.l&8192)!==0}function Hs(a,y){a.l=y?a.l|8192:a.l&-8193}function iu(a){return(a.l&16384)!==0}function Ld(a,y){a.l=y?a.l|16384:a.l&-16385}Ee.Gj=function(){this.svg=null},Ee.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},Ee.Av=function(){},Ee.zv=function(a){return this.pa=a,nu(this),!0},Ee.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},Ee.kq=function(){return 0};function Ef(a){var y=a.part;if(y instanceof Di&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||XS(y,a)}}function $y(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof si?a instanceof Di?a.Bd():a.qm(a,function(x){Ef(x)}):Ef(a))}Ee.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new ks(a,y,x,b):E=a,E.xd=this,a=this.ih(),a!==null&&vS(a)&&Pt("Cannot add a Binding to a template that has already been copied: "+E),this.localBindings===null&&(this.localBindings=new Mn),this.localBindings.add(E),this},Ee.set=function(a){return Object.assign(this,a),this},Ee.Du=function(a){return av(this,a),this},Ee.apply=function(a){return a(this),this},Ee.nm=function(a){return Du(this,a),this},Ee.pz=function(){return this.ih()},Ee.ih=function(){for(var a=this instanceof si?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},Ee.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new zi),this.animationTriggers.add(a.propertyName,a),this};function hc(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 z=Cg.I(a);typeof z=="function"?(x=bi(arguments),b=z(x),Rt(b)||Pt('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):E=Ue.go[a]}if(b===null&&(E!=null&&E.constructor||Pt("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 pn&&1<x.length){z=b;var ee=x[1];(typeof ee=="string"||ee instanceof HTMLDivElement)&&(zc(z,ee),E++)}for(;E<x.length;E++)z=x[E],z===void 0?Pt("Undefined value at argument "+E+" for object being constructed by GraphObject.make: "+b):av(b,z);return b}function av(a,y){if(typeof y=="string")if(a instanceof ba)a.text=y;else if(a instanceof oo)a.figure=y;else if(a instanceof Cu)a.source=y;else if(a instanceof si)y=Zc.I(y),y!==null&&(a.type=y);else if(a instanceof ia){var x=Mi(ia,y);x!==null?a.type=x:Pt("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof di?(y=Mi(di,y),y!==null&&(a.type=y)):a instanceof Io&&(y=Mi(Io,y),y!==null&&(a.type=y));else if(y instanceof Kt)a instanceof si||Pt("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof Ws){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 Ws?Bm(b,y):Pt("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof Xt)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Us)a.type=y;else if(y instanceof ks)a instanceof Kt||a instanceof Ws?a.bind(y):Pt("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof yu)a instanceof Kt?a.Jv(y):Pt("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof Os)a instanceof di&&a.type===di.o?a.figures.add(y):Pt("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof Io)a instanceof Os?a.segments.add(y):Pt("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Za)a instanceof pn||a instanceof Jr?a.layout=y:Pt("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++)av(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof ia){x=new Wi;for(var E in y)b=parseFloat(E),isNaN(b)?x[E]=y[E]:a.addColorStop(b,y[E]);Du(a,x)}else if(a instanceof Ws){y.row!==void 0?(E=y.row,(E==null||E===1/0||isNaN(E)||0>E)&&Pt("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)&&Pt("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+E),a.isRow=!1,a.index=E),E=new Wi;for(x in y)x!=="row"&&x!=="column"&&(E[x]=y[x]);Du(a,E)}else Du(a,y);else Pt('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function yh(a,y){Cg.add(a,y)}function pm(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}tt.Object.defineProperties(Kt.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new qf),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 qf),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 qf),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(co(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&&(co(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:au},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new Gh),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===au&&(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 Gh),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 Gh),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:pt},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new Gh),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:Qr},set:function(a){var y=this.stretch;y!==a&&(co(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&&(co(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)&&Qn(a,"0 <= value <= 1",Kt,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Ff(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(Ff(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&&tg(a,"GraphObject.areaBackground"),a instanceof ia&&a.freeze(),co(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&&tg(a,"GraphObject.background"),a instanceof ia&&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 dr)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 Je(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&&Pt("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,z=b.height;(E===y||isNaN(E)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof oo&&this.qc(),this.g("desiredSize",b,a),kl(this)&&(a=this.part,a!==null&&(Ma(this,a,"width"),Ma(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 On(a,this.jd.height).freeze(),this.v(),this instanceof oo&&this.qc(),this.g("desiredSize",y,a),kl(this)&&(a=this.part,a!==null&&Ma(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 On(this.jd.width,a).freeze(),this.v(),this instanceof oo&&this.qc(),this.g("desiredSize",y,a),kl(this)&&(a=this.part,a!==null&&Ma(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:$r},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(),co(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:no},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(),co(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 Gi(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&&Pl(this),this.Ab}},oe:{get:function(){return this.l&4096&&Pl(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(co(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:qn},set:function(a){this.reshapingBehavior!==a&&(co(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()&&Pt("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),nu(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&&Qn(a,">= 0",Kt,"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&&Qn(a,">= 1",Kt,"columnSpan"),co(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&&Qn(a,">= 0",Kt,"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&&Qn(a,">= 1",Kt,"rowSpan"),co(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&&(co(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 Di||Pt("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Yv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,_S(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Da},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Ef(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Qn(a,">= 0",Kt,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Ef(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),Ef(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&&Qn(a,">= 0",Kt,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Da},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Ef(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Qn(a,">= 0",Kt,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Ef(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),Ef(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&&Qn(a,">= 0",Kt,"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&&(co(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&&(co(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&&(co(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&&(co(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&&(co(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&&(co(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&&(co(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&&(co(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&&(co(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&&(co(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&&(co(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&&(co(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&&(co(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&&(co(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&&(co(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&&(co(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&&(co(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&&(co(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),Kt.prototype.trigger=Kt.prototype.Jv,Kt.prototype.findBindingPanel=Kt.prototype.ih,Kt.prototype.findTemplateBinder=Kt.prototype.pz,Kt.prototype.setProperties=Kt.prototype.nm,Kt.prototype.apply=Kt.prototype.apply,Kt.prototype.attach=Kt.prototype.Du,Kt.prototype.set=Kt.prototype.set,Kt.prototype.isEnabledObject=Kt.prototype.If,Kt.prototype.isVisibleObject=Kt.prototype.Ed,Kt.prototype.isContainedBy=Kt.prototype.rg,Kt.prototype.getNearestIntersectionPoint=Kt.prototype.rs,Kt.prototype.getLocalPoint=Kt.prototype.qs,Kt.prototype.getDocumentScale=Kt.prototype.Df,Kt.prototype.getDocumentAngle=Kt.prototype.li,Kt.prototype.getDocumentBounds=Kt.prototype.mi,Kt.prototype.getDocumentPoint=Kt.prototype.ga,Kt.prototype.intersectsRect=Kt.prototype.Yc,Kt.prototype.containedInRect=Kt.prototype.fh,Kt.prototype.containsRect=Kt.prototype.Re,Kt.prototype.containsPoint=Kt.prototype.ca,Kt.prototype.raiseChanged=Kt.prototype.g,Kt.prototype.raiseChangedEvent=Kt.prototype.cb,Kt.prototype.addCopyProperty=Kt.prototype.Vw;var Cg=null;Kt.className="GraphObject",Cg=new zi,yh("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=hc(si,si.Auto,{isActionable:!0,enabledChanged:function(x,b){if(x instanceof si){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"},hc(oo,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new Ui(0,0,2.76142374915397,2.761423749153969),spot2:new Ui(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 si&&(x=b.fb("ButtonBorder"),x instanceof oo)){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 si&&(x=b.fb("ButtonBorder"),x instanceof oo&&(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal))},y.actionDown=function(x,b){if(b.If()&&b instanceof si&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof oo){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var ee=b._buttonFillPressed;b._buttonFillOver=E.fill,E.fill=ee,ee=b._buttonStrokePressed,b._buttonStrokeOver=E.stroke,E.stroke=ee,x.skipsUndoManager=z}}},y.actionUp=function(x,b){if(b.If()&&b instanceof si&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof oo){var z=x.diagram,ee=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),z.skipsUndoManager=ee}}},y.actionCancel=function(x,b){if(b.If()&&b instanceof si&&b._buttonFillPressed!==null){var E=b.fb("ButtonBorder");if(E instanceof oo){var z=x.diagram,ee=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),z.skipsUndoManager=ee}}},y.actionMove=function(x,b){if(b.If()&&b instanceof si&&b._buttonFillPressed!==null){var E=x.diagram;if(E.firstInput.button===0&&(E.currentTool.standardMouseOver(),a(x,b)&&(x=b.fb("ButtonBorder"),x instanceof oo))){var z=E.skipsUndoManager;E.skipsUndoManager=!0;var ee=b._buttonFillPressed;x.fill!==ee&&(x.fill=ee),ee=b._buttonStrokePressed,x.stroke!==ee&&(x.stroke=ee),E.skipsUndoManager=z}}},y}),yh("TreeExpanderButton",function(){var a=hc("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},hc(oo,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:eo},new ks("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new ks("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof Yo&&(x=x.adornedPart),x instanceof Di){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}),yh("SubGraphExpanderButton",function(){var a=hc("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},hc(oo,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:eo},new ks("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 Yo&&(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}),yh("ToolTip",function(){return hc(Yo,si.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Je(0,3),shadowBlur:5},hc(oo,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new Ui(0,0,4,6),spot2:new Ui(1,1,-4,-4)}))}),yh("ContextMenu",function(){return hc(Yo,si.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Je(0,3),shadowBlur:5},new ks("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),yh("ContextMenuButton",function(){var a=hc("Button");a.stretch=sr;var y=a.fb("ButtonBorder");return y instanceof oo&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new Ui(0,0,2,3),y.spot2=new Ui(1,1,-2,-2)),a}),yh("PanelExpanderButton",function(a){var y=pm(a,"COLLAPSIBLE"),x=hc("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},hc(oo,{name:"ButtonIcon",strokeWidth:2},new ks("geometryString","visible",function(b){return b?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof oo&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(b,E){var z=E.diagram;if(z!==null&&!z.isReadOnly){var ee=E.ih();ee===null&&(ee=E.part),ee!==null&&(E=ee.fb(y),E!==null&&(b.handled=!0,z.Ea("Collapse/Expand Panel"),E.visible=!E.visible,z.eb("Collapse/Expand Panel")))}},x}),yh("CheckBoxButton",function(a){var y=pm(a);return a=hc("Button",{desiredSize:new On(14,14)},hc(oo,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:ii,geometryStretch:ir,visible:!1},y!==""?new ks("visible",y).Kx():[])),a.click=function(x,b){if(b instanceof si){var E=x.diagram;if(!(E===null||E.isReadOnly||y!==""&&E.model.isReadOnly)){x.handled=!0;var z=b.fb("ButtonIcon");E.Ea("checkbox"),z.visible=!z.visible,typeof b._doClick=="function"&&b._doClick(x,b),E.eb("checkbox")}}},a}),yh("CheckBox",function(a){a=pm(a),a=hc("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Gi(0,1,0,0)});var y=hc(si,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Gi(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}),Kt.None=qn=new Xt(Kt,"None",0),Kt.Default=Qr=new Xt(Kt,"Default",0),Kt.Vertical=Ar=new Xt(Kt,"Vertical",4),Kt.Horizontal=sr=new Xt(Kt,"Horizontal",5),Kt.Fill=ii=new Xt(Kt,"Fill",3),Kt.Uniform=ir=new Xt(Kt,"Uniform",1),Kt.UniformToFill=Eo=new Xt(Kt,"UniformToFill",2),Kt.FlipVertical=mo=new Xt(Kt,"FlipVertical",1),Kt.FlipHorizontal=jo=new Xt(Kt,"FlipHorizontal",2),Kt.FlipBoth=ua=new Xt(Kt,"FlipBoth",3),Kt.make=hc,Kt.getBuilders=function(){var a=new zi,y;for(y in Cg)if(y!==y.toLowerCase()){var x=Cg.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},Kt.defineBuilder=yh,Kt.build=function(a,y,x){for(var b=[],E=2;E<arguments.length;++E)b[E-2]=arguments[E];if(E=Cg.I(a),typeof E=="function"&&(b=E([a].concat(b)),b instanceof Kt))return y&&b.set(y),b;Pt('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},Kt.takeBuilderArgument=pm;function qf(){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=$r,this.o=no,this.hg=Qr,this.ob=this.Bi=1,this.Pf=qn,this.Pc=this.Ci=this.gd=null,this.Oc="category"}qf.prototype.copy=function(){var a=new qf;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 Gh(){this.u=-1/0,this.o=0,this.F=pt,this.rr=au,this.j=this.V="None"}Gh.prototype.copy=function(){var a=new Gh;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},Gh.className="LinkElementSettings";function mp(){this.yj=this.Xi=Xo,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}mp.prototype.copy=function(){var a=new mp;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},mp.className="LinkSettings";function Af(){this.ha=[1,0,0,1,0,0]}Af.prototype.copy=function(){var a=new Af;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},Af.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},Af.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},Af.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,z=this.ha[0]*-b+this.ha[2]*a,ee=this.ha[1]*-b+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*b,this.ha[1]=E,this.ha[2]=z,this.ha[3]=ee,this.translate(-y,-x)}},Af.className="STransform";function eg(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}eg.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},eg.className="SGradient";function vd(a,y,x){this.ownerDocument=a=y===void 0?Ue.document:y,this.cA="http://www.w3.org/2000/svg",a!==void 0&&(this.Oa=this.Ud("svg",{width:"1px",height:"1px",viewBox:"0 0 1 1"}),this.style.display="block",this.style.letterSpacing="normal",this.style.wordSpacing="normal",this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink")),this.hs=null,this.context=new Ku(this,x)}vd.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},vd.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),Rt(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},vd.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},vd.prototype.focus=function(){this.Oa.focus()},vd.prototype.mx=function(){this.ownerDocument=null},tt.Object.defineProperties(vd.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}}}),vd.className="SVGSurface";function Ku(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 Af,this.j=mm(this),this.Nj=mm(this,"gojs-diagram"),this.Hl=this.ti=null;var x=Ho++,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 qy(a,y,x,b,E,z,ee){a.Nj===void 0?vp(a,y,x,b,E,z,ee):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+b+", "+E+", "+z+", "+ee+")")}Ee=Ku.prototype,Ee.arc=function(a,y,x,b,E,z,ee,re){var oe=2*Math.PI,le=oe-1e-6,ue=x*Math.cos(b),fe=x*Math.sin(b),Se=a+ue,be=y+fe,Ae=z?0:1;b=z?b-E:E-b,(1e-6<Math.abs(ee-Se)||1e-6<Math.abs(re-be))&&this.path.push(["L",Se,+be]),0>b&&(b=b%oe+oe),b>le?(this.path.push(["A",x,x,0,1,Ae,a-ue,y-fe]),this.path.push(["A",x,x,0,1,Ae,Se,be])):1e-6<b&&this.path.push(["A",x,x,0,+(b>=Math.PI),Ae,a+x*Math.cos(E),y+x*Math.sin(E)])},Ee.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Ee.Se=function(a){this.addPath(this.path,this.rb,a||0)},Ee.bezierCurveTo=function(a,y,x,b,E,z){this.path.push(["C",a,y,x,b,E,z])},Ee.clearRect=function(){},Ee.clip=function(){this.Yl.clipPath=!0},Ee.closePath=function(){this.path.push(["z"])},Ee.createLinearGradient=function(a,y,x,b){var E=new eg("linear");return E.x1=a,E.y1=y,E.x2=x,E.y2=b,E},Ee.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"+Ho++,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(Cf,E)),this.svg.appendChild(a),x[y]=b,"url(#"+b+")"},Ee.createRadialGradient=function(a,y,x,b,E,z){var ee=new eg("radial");return ee.x1=a,ee.y1=y,ee.r1=x,ee.x2=b,ee.y2=E,ee.r2=z,ee};function eS(a,y,x,b,E,z,ee,re,oe){b=re/b,E=oe/E,z===0&&ee===0||a.rb.translate(z,ee),b===1&&E===1||a.rb.scale(b,E),y===0&&x===0||a.rb.translate(-y,-x)}Ee.drawImage=function(a,y,x,b,E,z,ee,re,oe){var le="";a instanceof HTMLCanvasElement&&(le=a.toDataURL()),a instanceof HTMLImageElement&&(le=a.getAttribute("src"));var ue=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,b===void 0&&(z=y,ee=x,re=b=ue,oe=E=a),b=b||0,E=E||0,re=re||0,oe=oe||0,eS(this,y,x,b,E,z||0,ee||0,re,oe),z={x:0,y:0,width:ue||b,height:a||E,href:le},Zt.$(b,re)&&Zt.$(E,oe)?le.toLowerCase().indexOf(".svg")===-1&&le.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||b!==ue||E!==a)&&(b+=y,E+=x,z["clip-path"]="path('M "+y+","+x+" L "+b+" "+x+" L "+b+" "+E+" L "+y+" "+E+" z')"),bg(this,Cf,z,this.rb),this.addElement(Cf,z)},Ee.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),sv(this,this.Yl)},Ee.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Ee.fillRect=function(a,y,x,b){a=[a,y,x,b],a={x:a[0],y:a[1],width:a[2],height:a[3]},bg(this,"fill",a,this.rb),this.addElement("rect",a)},Ee.ox=function(a,y,x,b){a={x:a,y,width:x,height:b},bg(this,"fill",a,this.rb),sv(this,a),this.svg.prepend(this.Ud("rect",a))},Ee.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},bg(this,"fill",y,this.rb),this.addElement("text",y,a[0])},Ee.lineTo=function(a,y){this.path.push(["L",a,y])},Ee.moveTo=function(a,y){this.path.push(["M",a,y])},Ee.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},Ee.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"])},Ee.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},Ee.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())},Ee.setTransform=function(a,y,x,b,E,z){a===1&&y===0&&x===0&&b===1&&E===0&&z===0||vp(this,a,y,x,b,E,z)};function tS(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}Ee.scale=function(a,y){this.rb.scale(a,y)},Ee.translate=function(a,y){this.rb.translate(a,y)},Ee.transform=function(){},Ee.yc=function(){},Ee.stroke=function(){iS(this,this.Yl)},Ee.jk=function(){this.clipInsteadOfFill||this.stroke()},Ee.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},Ee.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 bg(a,y,x,b){y==="fill"?sv(a,x):y==="stroke"&&iS(a,x),b!==null&&(a=b.ha,x.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function sv(a,y){a.fillStyle instanceof eg?y.fill=lv(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 nS(a,y,x){x=x?"fill":"stroke",a.fillStyle instanceof eg?y.setAttributeNS(null,"fill",lv(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 iS(a,y){if(a.strokeStyle instanceof eg)y.stroke=lv(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 lv(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"+Ho++,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 z=[],ee=0;ee<y;ee++){var re=E[ee],oe=re.color;re={offset:re.offset,"stop-color":oe},/^rgba\(/.test(oe)&&(oe=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(oe),re["stop-color"]="rgb("+oe[1]+","+oe[2]+","+oe[3]+")",re["stop-opacity"]=oe[4]),z.push(re)}for(z.sort(function(le,ue){return le.offset>ue.offset?1:-1}),E=0;E<y;E++)x.appendChild(a.Ud("stop",z[E]));return a.svg.appendChild(x),"url(#"+b+")"}Ee.addPath=function(a,y,x){for(var b=[],E=0;E<a.length;E++){var z=bi(a[E]),ee=[z.shift()];if(ee[0]==="A")ee.push(z.shift()+","+z.shift(),z.shift(),z.shift()+","+z.shift(),z.shift()+","+z.shift());else for(;z.length;)ee.push(z.shift()+","+z.shift());b.push(ee.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,bg(this,"",a,y),this.Hl!==null)if(y=this.Hl,y.nodeName!=="g")for(var re in a)re!=="transform"&&y.setAttributeNS(null,re,a[re]);else{re=y.getElementsByTagName("path");for(var oe in a)oe!=="transform"&&re[x].setAttributeNS(null,oe,a[oe])}else this.addElement("path",a)};function vp(a,y,x,b,E,z,ee){var re=new Af;re.ha=[y,x,b,E,z,ee],y={},bg(a,"g",y,re),re=a.addElement("g",y),a.nh.push(re)}function mm(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}Ee.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function Md(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function _d(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}Ee.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},Ee.fs=function(){this.Ct=!1},Ee.Vc=function(){},Ee.Wx=function(){},Ku.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},Ku.prototype.getImageData=function(){return null},Ku.prototype.measureText=function(){return null};function vm(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()))}Ku.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},Ku.className="SVGContext",pn.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new vd(this,Ue.document));var y=new vd(this,Ue.document,!0);a===void 0&&(a=new Wi);var x=this;return Ac(this,function(b,E){return b=ph(x,b,"SVG",y),b=b!==null?b.svg:null,typeof E=="function"?(E(b),null):b},a)},pn.prototype.makeSvg=pn.prototype.Cs,pn.prototype.av=function(a){return this.Cs(a)},pn.prototype.makeSVG=pn.prototype.av;function kc(a,y,x,b){this.ownerDocument=y=y===void 0?Ue.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new Lf(y,x,b),y.H=a}kc.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},kc.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},kc.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},kc.prototype.focus=function(){this.Oa.focus()},kc.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},tt.Object.defineProperties(kc.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}}}),kc.className="CanvasSurface";function Lf(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&Pt("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 Hr,this.isTemporary=!!x}Ee=Lf.prototype,Ee.Wx=function(a){this.Z.imageSmoothingEnabled=a},Ee.arc=function(a,y,x,b,E,z){this.Z.arc(a,y,x,b,E,z)},Ee.beginPath=function(){this.Z.beginPath()},Ee.Se=function(){},Ee.bezierCurveTo=function(a,y,x,b,E,z){this.Z.bezierCurveTo(a,y,x,b,E,z)},Ee.clearRect=function(a,y,x,b){this.yc(),this.Z.clearRect(a,y,x,b)},Ee.clip=function(){this.Z.clip()},Ee.closePath=function(){this.Z.closePath()},Ee.createLinearGradient=function(a,y,x,b){return this.Z.createLinearGradient(a,y,x,b)},Ee.createPattern=function(a,y){return this.Z.createPattern(a,y)},Ee.createRadialGradient=function(a,y,x,b,E,z){return this.Z.createRadialGradient(a,y,x,b,E,z)},Ee.drawImage=function(a,y,x,b,E,z,ee,re,oe){b===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,b,E,z,ee,re,oe)},Ee.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},Ee.fillRect=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},Ee.ox=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},Ee.fillText=function(a,y,x){this.Z.fillText(a,y,x)},Ee.getImageData=function(a,y,x,b){return this.Z.getImageData(a,y,x,b)},Ee.lineTo=function(a,y){this.Z.lineTo(a,y)},Ee.measureText=function(a){return this.Z.measureText(a)},Ee.moveTo=function(a,y){this.Z.moveTo(a,y)},Ee.quadraticCurveTo=function(a,y,x,b){this.Z.quadraticCurveTo(a,y,x,b)},Ee.rect=function(a,y,x,b){this.Z.rect(a,y,x,b)},Ee.restore=function(){this.Z.restore()},Ee.save=function(){this.yc(),this.Z.save()},Lf.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},Ee=Lf.prototype,Ee.setTransform=function(a,y,x,b,E,z){this.El.setTransform(a,y,x,b,E,z)},Ee.scale=function(a,y){this.El.scale(a,y)},Ee.translate=function(a,y){this.El.translate(a,y)},Ee.stroke=function(){this.Z.stroke()},Ee.transform=function(a,y,x,b,E,z){if(a!==1||y!==0||x!==0||b!==1||E!==0||z!==0){var ee=this.El,re=ee.m11*a+ee.m21*y;a=ee.m12*a+ee.m22*y,y=ee.m11*x+ee.m21*b,x=ee.m12*x+ee.m22*b,ee.dx=ee.m11*E+ee.m21*z+ee.dx,ee.dy=ee.m12*E+ee.m22*z+ee.dy,ee.m11=re,ee.m12=a,ee.m21=y,ee.m22=x}},Ee.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},Ee.ng=function(a,y){if(a instanceof ia&&a.type===fc){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)},Ee.jk=function(){this.Hm||this.stroke()},Ee.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Ee.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Ee.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(E1),a.lineDashOffset=0)},Ee.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Ee.Hs=function(){},tt.Object.defineProperties(Lf.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(a){this.ct!==a&&(this.ct=this.Z.fillStyle=a)}},font:{get:function(){return this.Z.font},set:function(a){this.dt!==a&&(this.dt=this.Z.font=a)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(a){this.Z.globalAlpha=a}},lineCap:{get:function(){return this.Z.lineCap},set:function(a){this.Z.lineCap=a}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(a){this.Z.lineDashOffset=a}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(a){this.Z.lineJoin=a}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(a){this.Z.lineWidth=a}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(a){this.Z.miterLimit=a}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(a){this.Z.shadowBlur=a}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(a){this.Z.shadowColor=a}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(a){this.Z.shadowOffsetX=a}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(a){this.Z.shadowOffsetY=a}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(a){this.et!==a&&(this.et=this.Z.strokeStyle=a)}},textAlign:{get:function(){return this.Z.textAlign},set:function(a){this.Z.textAlign=a}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(a){this.Z.imageSmoothingEnabled=a}},filter:{get:function(){return this.Z.filter},set:function(a){this.Z.filter=a===""?"none":a}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(a){this.Hm=a}}});var E1=Object.freeze([]);Lf.className="CanvasSurfaceContext";function yp(){this.F=this.o=this.u=this.j=0}yp.className="ColorNumbers";function ia(a,y){Mg||(gv(),Mg=!0),yr(this),this._isFrozen=!1,a===void 0?(this.na=Sh,this.xk="black"):typeof a=="string"?(this.na=Sh,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===qd?(this.Qd=Is,this.Lk=Nl):this.Lk=a===fc?this.Qd=xo:this.Qd=Da,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}ia.prototype.copy=function(){var a=new ia;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},Ee=ia.prototype,Ee.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Ee.ka=function(){return Object.isFrozen(this)&&Pt("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Ee.qb=function(a){a.classType===ia&&(this.type=a)},Ee.toString=function(){var a="Brush(";if(this.type===Sh)a+=this.color;else if(a=this.type===qd?a+"Linear ":this.type===fc?a+"Radial ":this.type===kg?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+")"},Ee.addColorStop=function(a,y){return this._isFrozen&&Sn(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&Qn(a,"0 <= loc <= 1",ia,"addColorStop:loc"),this.we===null&&(this.we=new zi),this.we.add(a,y),this.na===Sh&&(this.type=qd),this.xe=null,this},Ee.Vz=function(a,y){if(this._isFrozen&&Sn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Ng:y,this.type===Sh)$d(this.color),this.color=Ag(a,y);else if((this.type===qd||this.type===fc)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)$d(x.value),this.addColorStop(x.key,Ag(a,y));return this};function rS(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Ng:x,$d(a),Ag(y,x)}Ee.Wy=function(a,y){if(this._isFrozen&&Sn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Ng:y,this.type===Sh)$d(this.color),this.color=Ag(-a,y);else if((this.type===qd||this.type===fc)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)$d(x.value),this.addColorStop(x.key,Ag(-a,y));return this};function oS(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Ng:x,$d(a),Ag(-y,x)}function uv(a,y,x){$d(a),a=Aa.j;var b=Aa.u,E=Aa.o,z=Aa.F;return $d(y),x===void 0&&(x=.5),"rgba("+Math.round((Aa.j-a)*x+a)+", "+Math.round((Aa.u-b)*x+b)+", "+Math.round((Aa.o-E)*x+E)+", "+Math.round((Aa.F-z)*x+z)+")"}Ee.Gx=function(){if(this.type===Sh)return Eg(this.color);if((this.type===qd||this.type===fc)&&this.colorStops!==null){var a=this.colorStops;if(this.type===fc)return Eg(a.first().value);if(a.get(.5)!==null)return Eg(a.get(.5));if(a.count===2)return a=a.Fa(),Eg(uv(a[0].value,a[1].value));for(var y=a.iterator,x=-1,b=-1,E=1,z=1;y.next();){var ee=y.key,re=Math.abs(.5-y.key);E>z&&re<E?(x=ee,E=re):z>=E&&re<z&&(b=ee,z=re)}return x>b&&(z=x,x=b,b=z,z=E),E=b-x,Eg(uv(a.get(x),a.get(b),1-z/E))}return!1};function Eg(a){return a?a instanceof ia?a.Gx():($d(a),128>(299*Aa.j+587*Aa.u+114*Aa.o)/1e3):!1}function Ag(a,y){switch(y){case Ng:y=100*dv(Aa.j);var x=100*dv(Aa.u),b=100*dv(Aa.o);return ru.j=.4124564*y+.3575761*x+.1804375*b,ru.u=.2126729*y+.7151522*x+.072175*b,ru.o=.0193339*y+.119192*x+.9503041*b,ru.F=Aa.F,y=fv(ru.j/Lg[0]),x=fv(ru.u/Lg[1]),b=fv(ru.o/Lg[2]),kd.j=116*x-16,kd.u=500*(y-x),kd.o=200*(x-b),kd.F=ru.F,kd.j=Math.min(100,Math.max(0,kd.j+100*a)),a=(kd.j+16)/116,y=a-kd.o/200,ru.j=Lg[0]*aS(kd.u/500+a),ru.u=Lg[1]*(kd.j>ym*pv?Math.pow(a,3):kd.j/ym),ru.o=Lg[2]*aS(y),ru.F=kd.F,a=-.969266*ru.j+1.8760108*ru.u+.041556*ru.o,y=.0556434*ru.j+-.2040259*ru.u+1.0572252*ru.o,Aa.j=255*hv((3.2404542*ru.j+-1.5371385*ru.u+-.4985314*ru.o)/100),Aa.u=255*hv(a/100),Aa.o=255*hv(y/100),Aa.F=ru.F,Aa.j=Math.round(Aa.j),255<Aa.j?Aa.j=255:0>Aa.j&&(Aa.j=0),Aa.u=Math.round(Aa.u),255<Aa.u?Aa.u=255:0>Aa.u&&(Aa.u=0),Aa.o=Math.round(Aa.o),255<Aa.o?Aa.o=255:0>Aa.o&&(Aa.o=0),"rgba("+Aa.j+", "+Aa.u+", "+Aa.o+", "+Aa.F+")";case sS:return cv(),tc.o=Math.min(100,Math.max(0,tc.o+100*a)),"hsla("+tc.j+", "+tc.u+"%, "+tc.o+"%, "+tc.F+")";default:Pt("Unknown color space: "+y)}}function $d(a){Mg||(gv(),Mg=!0);var y=mv;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,Aa.j=a[0],Aa.u=a[1],Aa.o=a[2],Aa.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Aa.j=0,Aa.u=0,Aa.o=0,Aa.F=1)}}function cv(){var a=Aa.j/255,y=Aa.u/255,x=Aa.o/255,b=Math.max(a,y,x),E=Math.min(a,y,x),z=b-E;if(E=(b+E)/2,z===0)var ee=a=0;else{switch(b){case a:ee=(y-x)/z%6;break;case y:ee=(x-a)/z+2;break;case x:ee=(a-y)/z+4}ee*=60,0>ee&&(ee+=360),a=z/(1-Math.abs(2*E-1))}tc.j=Math.round(ee),tc.u=Math.round(100*a),tc.o=Math.round(100*E),tc.F=Aa.F}function dv(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function hv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function fv(a){return a>pv?Math.pow(a,1/3):(ym*a+16)/116}function aS(a){var y=a*a*a;return y>pv?y:(116*a-16)/ym}function tg(a,y){typeof a!="string"&&(a instanceof ia||Pt("Value for "+y+" must be a color string or a Brush, not "+a))}function gv(){mv=cs?new kc(null,void 0,{willReadFrequently:!0}).context:null}tt.Object.defineProperties(ia.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&Sn(this,a),this.na=a,this.start.Mc()&&(a===qd?this.start=Is:a===fc&&(this.start=xo)),this.end.Mc()&&(a===qd?this.end=Nl:a===fc&&(this.end=xo)),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&&Qn(a,">= zero",ia,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&Sn(this,a),0>a&&Qn(a,">= zero",ia,"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}}}),ia.prototype.isDark=ia.prototype.Gx,ia.prototype.darkenBy=ia.prototype.Wy,ia.prototype.lightenBy=ia.prototype.Vz,ia.prototype.addColorStop=ia.prototype.addColorStop;var pv=216/24389,ym=24389/27,Lg=[95.047,100,108.883],mv=null,Aa=new yp,tc=new yp,ru=new yp,kd=new yp,Mg=!1;ia.className="Brush";var Sh;ia.Solid=Sh=new Xt(ia,"Solid",0);var qd;ia.Linear=qd=new Xt(ia,"Linear",1);var fc;ia.Radial=fc=new Xt(ia,"Radial",2);var kg;ia.Pattern=kg=new Xt(ia,"Pattern",4);var Ng;ia.Lab=Ng=new Xt(ia,"Lab",5);var sS;ia.HSL=sS=new Xt(ia,"HSL",6),ia.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},ia.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;Mg||(gv(),Mg=!0);var y=mv;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)},ia.lighten=function(a){return rS(a)},ia.lightenBy=rS,ia.darken=function(a){return oS(a)},ia.darkenBy=oS,ia.mix=uv,ia.isDark=Eg;function Us(){this.xa="Base"}Us.prototype.measure=function(){},Us.prototype.Yz=function(a,y,x,b,E){a.measure(y,x,b,E)},Us.prototype.arrange=function(){},Us.prototype.Ly=function(a,y,x,b,E,z){a.arrange(y,x,b,E,z)},Us.prototype.iA=function(a){a.Uj()},Us.prototype.gc=function(){},tt.Object.defineProperties(Us.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return si}}}),Us.prototype.remeasureObject=Us.prototype.iA,Us.prototype.arrangeElement=Us.prototype.Ly,Us.prototype.measureElement=Us.prototype.Yz,Us.className="PanelLayout";function Sm(){this.xa="Base"}Lt(Sm,Us),Sm.prototype.measure=function(a,y,x,b,E,z,ee){var re=b.length;a=eh(a);for(var oe=0;oe<re;oe++){var le=b[oe];if(le.visible||le===a){var ue=le.margin,fe=ue.right+ue.left;ue=ue.top+ue.bottom,le.measure(y,x,z,ee);var Se=le.measuredBounds;fe=Math.max(Se.width+fe,0),ue=Math.max(Se.height+ue,0),Se=le.position.x;var be=le.position.y;isFinite(Se)||(Se=0),isFinite(be)||(be=0),le instanceof oo&&le.isGeometryPositioned&&(le=le.strokeWidth/2,Se-=le,be-=le),ko(E,Se,be,fe,ue)}}},Sm.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 z=y[E],ee=z.measuredBounds,re=z.margin,oe=z.position.x,le=z.position.y;if(oe=isNaN(oe)?-a:oe-a,le=isNaN(le)?-x:le-x,z instanceof oo&&z.isGeometryPositioned){var ue=z.strokeWidth/2;oe-=ue,le-=ue}z.visible&&z.arrange(oe+re.left,le+re.top,ee.width,ee.height)}};function xm(){this.xa="Base"}Lt(xm,Us),xm.prototype.measure=function(a,y,x,b,E,z,ee){var re=b.length;y=ei(),z=eh(a);for(var oe=0;oe<re;oe++){var le=b[oe];if(le.visible||le===z){var ue=wu(le,!1);if(ue!==qn&&ue!==sr)y.push(le);else{le.measure(1/0,x,0,ee),ue=le.margin,le=le.measuredBounds;var fe=Math.max(le.height+ue.top+ue.bottom,0);E.width+=Math.max(le.width+ue.right+ue.left,0),E.height=Math.max(E.height,fe)}}}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++)oe=y[a],(oe.visible||oe===z)&&(ue=oe.margin,re=ue.right+ue.left,ue=ue.top+ue.bottom,oe.measure(1/0,x,0,ee),oe=oe.measuredBounds,ue=Math.max(oe.height+ue,0),E.width+=Math.max(oe.width+re,0),E.height=Math.max(E.height,ue));yi(y)},xm.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.top,ee=a.isOpposite,re=ee?x.width:E.left,oe=0;oe<b;oe++){var le=z,ue=y[oe];if(ue.visible){var fe=ue.measuredBounds,Se=ue.margin,be=Se.top+Se.bottom,Ae=z+E.bottom,Oe=fe.height,rt=wu(ue,!1);(isNaN(ue.desiredSize.height)&&rt===ii||rt===Ar)&&(Oe=Math.max(x.height-be-Ae,0)),be=Oe+be+Ae,Ae=ue.alignment,Ae.Xb()&&(Ae=a.defaultAlignment),Ae.sb()||(Ae=xo),ee&&(re-=fe.width+Se.left+Se.right),ue.arrange(re+Ae.offsetX+Se.left,le+Ae.offsetY+Se.top+(x.height*Ae.y-be*Ae.y),fe.width,Oe),ee||(re+=fe.width+Se.left+Se.right)}}};function wm(){this.xa="Base"}Lt(wm,Us),wm.prototype.measure=function(a,y,x,b,E,z){var ee=b.length;x=ei();for(var re=eh(a),oe=0;oe<ee;oe++){var le=b[oe];if(le.visible||le===re){var ue=wu(le,!1);if(ue!==qn&&ue!==Ar)x.push(le);else{var fe=le.margin;ue=fe.right+fe.left,fe=fe.top+fe.bottom,le.measure(y,1/0,z,0),le=le.measuredBounds,ca(E,Math.max(E.width,Math.max(le.width+ue,0)),E.height+Math.max(le.height+fe,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++)oe=x[a],(oe.visible||oe===re)&&(le=oe.margin,ee=le.right+le.left,le=le.top+le.bottom,oe.measure(y,1/0,z,0),oe=oe.measuredBounds,le=Math.max(oe.height+le,0),E.width=Math.max(E.width,Math.max(oe.width+ee,0)),E.height+=le);yi(x)}},wm.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.left,ee=a.isOpposite,re=ee?x.height:E.top,oe=0;oe<b;oe++){var le=z,ue=y[oe];if(ue.visible){var fe=ue.measuredBounds,Se=ue.margin,be=Se.left+Se.right,Ae=z+E.right,Oe=fe.width,rt=wu(ue,!1);(isNaN(ue.desiredSize.width)&&rt===ii||rt===sr)&&(Oe=Math.max(x.width-be-Ae,0)),be=Oe+be+Ae,Ae=ue.alignment,Ae.Xb()&&(Ae=a.defaultAlignment),Ae.sb()||(Ae=xo),ee&&(re-=fe.height+Se.bottom+Se.top),ue.arrange(le+Ae.offsetX+Se.left+(x.width*Ae.x-be*Ae.x),re+Ae.offsetY+Se.top,Oe,fe.height),ee||(re+=fe.height+Se.bottom+Se.top)}}};function Pm(){this.xa="Base"}Lt(Pm,Us),Pm.prototype.measure=function(a,y,x,b,E,z,ee){var re=b.length,oe=a.Pb(),le=oe.margin,ue=le.right+le.left,fe=le.top+le.bottom;oe.measure(y,x,z,ee);var Se=oe.measuredBounds;z=Se.width,ee=Se.height;var be=Math.max(z+ue,0),Ae=Math.max(ee+fe,0),Oe=a.isClipping,rt=Pn.allocAt(-le.left,-le.top,be,Ae),Ye=Pn.allocAt(0,0,z,ee);vv(oe,Ye,!0),z=Ye.width,ee=Ye.height;for(var mt=!0,wt=eh(a),Mt=0;Mt<re;Mt++){var jt=b[Mt];Se=y;var mn=x;if(jt!==oe&&(jt.visible||jt===wt)){le=jt.margin;var Ni=le.left,Qi=le.top;switch(be=le.right+le.left,Ae=le.top+le.bottom,le=wu(jt,!1),le){case ii:Se=z,mn=ee,Qi=Ni=Ae=be=0;break;case sr:Se=z,Ni=be=0;break;case Ar:mn=ee,Qi=Ae=0}jt.measure(Se,mn,0,0),Se=jt.measuredBounds,be=Math.max(Se.width+be,0),Ae=Math.max(Se.height+Ae,0),le=jt.alignment,le.Xb()&&(le=a.defaultAlignment),le.sb()||(le=xo);var Hi=jt.alignmentFocus;if(Hi.Xb()&&(Hi=xo),mn=null,jt instanceof si&&jt.$e!==""&&(mn=jt.fb(jt.$e),mn===jt&&(mn=null)),Ni=Ye.x-Ni,Qi=Ye.y-Qi,mn!==null){for(jt.arrange(0,0,Se.width,Se.height),Se=mn.actualBounds,Se=Je.allocAt(Se.x+(Hi.x*Se.width-Hi.offsetX),Se.y+(Hi.y*Se.height-Hi.offsetY)),mn=mn.panel;mn!==jt;)mn.transform.Ga(Se),mn=mn.panel;Ni+=le.x*z+le.offsetX-Se.x,Qi+=le.y*ee+le.offsetY-Se.y,Je.free(Se)}else Ni+=le.x*z+le.offsetX-(Hi.x*Se.width+Hi.offsetX),Qi+=le.y*ee+le.offsetY-(Hi.y*Se.height+Hi.offsetY);mt?(mt=!1,E.h(Ni,Qi,be,Ae)):ko(E,Ni,Qi,be,Ae)}}switch(mt?E.assign(rt):Oe?E.Uu(Ye.x,Ye.y,Ye.width,Ye.height):ko(E,rt.x,rt.y,rt.width,rt.height),Pn.free(rt),Pn.free(Ye),le=oe.stretch,le===Qr&&(le=wu(oe,!1)),le){case qn:return;case ii:if(!isFinite(y)&&!isFinite(x))return;break;case sr:if(!isFinite(y))return;break;case Ar:if(!isFinite(x))return}for(Se=oe.measuredBounds,z=Se.width,ee=Se.height,be=Math.max(z+ue,0),Ae=Math.max(ee+fe,0),le=oe.margin,Ye=Pn.allocAt(-le.left,-le.top,be,Ae),vv(oe,Ye,!0),z=Ye.width,ee=Ye.height,y=0;y<re;y++)x=b[y],x===oe||!x.visible&&x!==wt||(le=x.margin,be=le.right+le.left,Ae=le.top+le.bottom,Se=x.measuredBounds,be=Math.max(Se.width+be,0),Ae=Math.max(Se.height+Ae,0),ue=x.alignment,ue.Xb()&&(ue=a.defaultAlignment),ue.sb()||(ue=xo),x=x.alignmentFocus,x.Xb()&&(x=xo),mt?(mt=!1,E.h(ue.x*z+ue.offsetX-(x.x*Se.width+x.offsetX)-le.left,ue.y*ee+ue.offsetY-(x.y*Se.height+x.offsetY)-le.top,be,Ae)):ko(E,ue.x*z+ue.offsetX-(x.x*Se.width+x.offsetX)-le.left,ue.y*ee+ue.offsetY-(x.y*Se.height+x.offsetY)-le.top,be,Ae));mt?E.assign(rt):Oe?E.Uu(Ye.x,Ye.y,Ye.width,Ye.height):ko(E,rt.x,rt.y,rt.width,rt.height),Pn.free(Ye)},Pm.prototype.arrange=function(a,y,x){var b=y.length,E=a.Pb(),z=E.measuredBounds,ee=z.width,re=z.height,oe=a.padding;z=oe.left,oe=oe.top;var le=z-x.x,ue=oe-x.y;for(E.arrange(le,ue,ee,re),ee=Pn.allocAt(0,0,ee,re),vv(E,ee,!1),re=0;re<b;re++){var fe=y[re];if(fe!==E){le=fe.measuredBounds;var Se=le.width,be=le.height;ue=fe.alignment,ue.Xb()&&(ue=a.defaultAlignment),ue.sb()||(ue=xo);var Ae=fe.alignmentFocus;if(Ae.Xb()&&(Ae=xo),le=null,fe instanceof si&&fe.$e!==""&&(le=fe.fb(fe.$e),le===fe&&(le=null)),le!==null){var Oe=le.actualBounds;for(Ae=Je.allocAt(Oe.x+(Ae.x*Oe.width-Ae.offsetX),Oe.y+(Ae.y*Oe.height-Ae.offsetY)),le=le.panel;le!==fe;)le.transform.Ga(Ae),le=le.panel;le=ue.x*ee.width+ue.offsetX-Ae.x,ue=ue.y*ee.height+ue.offsetY-Ae.y,Je.free(Ae)}else le=ue.x*ee.width+ue.offsetX-(Ae.x*Se+Ae.offsetX),ue=ue.y*ee.height+ue.offsetY-(Ae.y*be+Ae.offsetY);le+=ee.x-x.x,ue+=ee.y-x.y,fe.visible&&fe.arrange(z+le,oe+ue,Se,be)}}Pn.free(ee)};function vv(a,y,x){var b=null;if(a instanceof si&&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 Cm(){this.xa="Base"}Lt(Cm,Us),Cm.prototype.measure=function(a,y,x,b,E,z,ee){var re=b.length,oe=a.Pb(),le=oe.margin,ue=y,fe=x,Se=le.right+le.left,be=le.top+le.bottom;oe.measure(y,x,z,ee),le=oe.measuredBounds;var Ae=0,Oe=null;oe instanceof oo&&(Oe=oe,Ae=Oe.strokeWidth*Oe.scale);var rt=Math.max(le.width+Se,0);le=Math.max(le.height+be,0);var Ye=wv(oe),mt=Ye.x*rt+Ye.offsetX;Ye=Ye.y*le+Ye.offsetY;var wt=Pv(oe),Mt=wt.x*rt+wt.offsetX;for(wt=wt.y*le+wt.offsetY,isFinite(y)&&(ue=Math.max(Math.abs(mt-Mt)-Ae,0)),isFinite(x)&&(fe=Math.max(Math.abs(Ye-wt)-Ae,0)),Ae=On.alloc(),Ae.h(0,0),a=eh(a),wt=0;wt<re;wt++)Ye=b[wt],Ye===oe||!Ye.visible&&Ye!==a||(le=Ye.margin,rt=le.right+le.left,mt=le.top+le.bottom,Ye.measure(ue,fe,0,0),le=Ye.measuredBounds,rt=Math.max(le.width+rt,0),le=Math.max(le.height+mt,0),Ae.h(Math.max(rt,Ae.width),Math.max(le,Ae.height)));if(re===1)E.width=rt,E.height=le,On.free(Ae);else{switch(Ye=wv(oe),wt=Pv(oe),re=b=0,wt.x!==Ye.x&&wt.y!==Ye.y&&(b=Ae.width/Math.abs(wt.x-Ye.x),re=Ae.height/Math.abs(wt.y-Ye.y)),On.free(Ae),Ae=0,Oe!==null&&(Ae=Oe.strokeWidth*Oe.scale,Mv(Oe)===ir&&(b=re=Math.max(b,re))),b+=Math.abs(Ye.offsetX)+Math.abs(wt.offsetX)+Ae,re+=Math.abs(Ye.offsetY)+Math.abs(wt.offsetY)+Ae,Oe=oe.stretch,Oe===Qr&&(Oe=wu(oe,!1)),Oe){case qn:ee=z=0;break;case ii:isFinite(y)&&(b=y),isFinite(x)&&(re=x);break;case sr:isFinite(y)&&(b=y),ee=0;break;case Ar:z=0,isFinite(x)&&(re=x)}oe.Uj(),oe.measure(b,re,z,ee),E.width=oe.measuredBounds.width+Se,E.height=oe.measuredBounds.height+be}},Cm.prototype.arrange=function(a,y){var x=y.length,b=a.Pb(),E=b.measuredBounds,z=Pn.alloc();z.h(0,0,1,1);var ee=b.margin,re=ee.left;ee=ee.top;var oe=a.padding,le=oe.left;oe=oe.top,b.arrange(le+re,oe+ee,E.width,E.height);var ue=wv(b),fe=Pv(b),Se=ue.y*E.height+ue.offsetY,be=fe.x*E.width+fe.offsetX;for(fe=fe.y*E.height+fe.offsetY,z.x=ue.x*E.width+ue.offsetX,z.y=Se,ko(z,be,fe,0,0),z.x+=re+le,z.y+=ee+oe,E=0;E<x;E++)re=y[E],re!==b&&(le=re.measuredBounds,ee=re.margin,oe=Math.max(le.width+ee.right+ee.left,0),ue=Math.max(le.height+ee.top+ee.bottom,0),Se=re.alignment,Se.Xb()&&(Se=a.defaultAlignment),Se.sb()||(Se=xo),oe=z.width*Se.x+Se.offsetX-oe*Se.x+ee.left+z.x,ee=z.height*Se.y+Se.offsetY-ue*Se.y+ee.top+z.y,re.visible&&(Oo(z.x,z.y,z.width,z.height,oe,ee,le.width,le.height)?re.arrange(oe,ee,le.width,le.height):re.arrange(oe,ee,le.width,le.height,new Pn(z.x,z.y,z.width,z.height))));Pn.free(z)};function bm(){this.xa="Base",this.name="Table"}Lt(bm,Us),bm.prototype.measure=function(a,y,x,b,E){for(var z=b.length,ee=ei(),re=ei(),oe=0;oe<z;oe++){var le=b[oe],ue=le instanceof si?le:null;if(ue!==null&&xh(ue)&&le.visible){re.push(ue);for(var fe=ue.O.s,Se=fe.length,be=0;be<Se;be++){var Ae=fe[be];ue.type===si.TableRow?Ae.row=le.row:ue.type===si.TableColumn&&(Ae.column=le.column),ee.push(Ae)}}else ee.push(le)}z=ee.length,z===0&&(a.Fb(0),a.Eb(0));for(var Oe=[],rt=0;rt<z;rt++){var Ye=ee[rt];Ye.visible&&(Hs(Ye,!0),Ld(Ye,!0),Oe[Ye.row]||(Oe[Ye.row]=[]),Oe[Ye.row][Ye.column]||(Oe[Ye.row][Ye.column]=[]),Oe[Ye.row][Ye.column].push(Ye))}yi(ee);var mt=ei(),wt=ei(),Mt=ei(),jt={count:0},mn={count:0},Ni=y,Qi=x,Hi=a.rowDefs,hi=a.colDefs,_n=null;z=Hi.length;for(var Xr=0;Xr<z;Xr++)_n=Hi[Xr],_n!==void 0&&(_n.actual=0);z=hi.length;for(var zr=0;zr<z;zr++)_n=hi[zr],_n!==void 0&&(_n.actual=0);for(var Jo=Oe.length,wa=0,qs=0;qs<Jo;qs++)Oe[qs]&&(wa=Math.max(wa,Oe[qs].length));var cl=Math.min(a.topIndex,Jo-1),Xl=Math.min(a.leftIndex,wa-1),el=0;Jo=Oe.length;for(var Nh=eh(a),Ns=0;Ns<Jo;Ns++)if(Oe[Ns]){wa=Oe[Ns].length;var ld=a.Fb(Ns);ld.actual=0;for(var Jl=ld.oc=0;Jl<wa;Jl++)if(Oe[Ns][Jl]){var Fh=a.Eb(Jl);mt[Jl]===void 0&&(Fh.actual=0,Fh.oc=0,mt[Jl]=!0);for(var rc=Oe[Ns][Jl],Bc=rc.length,Yu=0;Yu<Bc;Yu++){var Iu=rc[Yu];if(Iu.visible||Iu===Nh){var af=1<Iu.rowSpan||1<Iu.columnSpan;af&&(Ns<cl||Jl<Xl||wt.push(Iu));var ud=Iu.margin,qg=ud.right+ud.left,Uu=ud.top+ud.bottom,Ql=id(Iu,ld,Fh,!1),om=Iu.desiredSize,fg=!isNaN(om.height),xd=!isNaN(om.width)&&fg;if(af||Ql===qn||xd||Ns<cl||Jl<Xl||(jt[Jl]!==void 0||Ql!==ii&&Ql!==sr||(jt[Jl]=-1,jt.count++),mn[Ns]!==void 0||Ql!==ii&&Ql!==Ar||(mn[Ns]=-1,mn.count++),Mt.push(Iu)),Iu.measure(1/0,1/0,0,0),!(Ns<cl||Jl<Xl)){var Ru=Iu.measuredBounds,If=Math.max(Ru.width+qg,0),Xu=Math.max(Ru.height+Uu,0);if(Iu.rowSpan===1&&(Ql===qn||Ql===sr)){_n=a.Fb(Ns);var sf=_n.Wc();el=Math.max(Xu-_n.actual,0),el+sf>Qi&&(el=Math.max(Qi-sf,0));var U0=_n.oa===0;_n.oc=_n.oc+el,_n.actual=_n.oa+el,Qi=Math.max(Qi-(el+(U0?sf:0)),0)}if(Iu.columnSpan===1&&(Ql===qn||Ql===Ar)){_n=a.Eb(Jl);var am=_n.Wc();el=Math.max(If-_n.actual,0),el+am>Ni&&(el=Math.max(Ni-am,0));var Vy=_n.oa===0;_n.oc=_n.oc+el,_n.actual=_n.oa+el,Ni=Math.max(Ni-(el+(Vy?am:0)),0)}af&&Iu.Uj()}}}}}yi(mt);var zd=0,ih=0;z=a.columnCount;for(var gg=0;gg<z;gg++){var lf=hi[gg];lf!==void 0&&(zd+=isNaN(lf.Hc)?lf.oc:lf.Hc,lf.oc!==0&&(zd+=lf.Wc()))}z=a.rowCount;for(var ep=0;ep<z;ep++){var uf=Hi[ep];uf!==void 0&&(ih+=isNaN(uf.Hc)?uf.oc:uf.Hc,uf.oc!==0&&(ih+=uf.Wc()))}Ni=Math.max(y-zd,0);var jd=Qi=Math.max(x-ih,0),Dh=Ni;z=Mt.length;for(var zu=0;zu<z;zu++){var wd=Mt[zu],X0=a.Fb(wd.row),rh=a.Eb(wd.column),tp=wd.measuredBounds,cd=wd.margin,Rf=cd.right+cd.left,Pd=cd.top+cd.bottom;jt[wd.column]=rh.oc===0&&jt[wd.column]!==void 0?Math.max(tp.width+Rf,jt[wd.column]):null,mn[wd.row]=X0.oc===0&&mn[wd.row]!==void 0?Math.max(tp.height+Pd,mn[wd.row]):null}var pg=0,np=0,Xc;for(Xc in mn)Xc!=="count"&&(pg+=mn[Xc]);for(Xc in jt)Xc!=="count"&&(np+=jt[Xc]);for(var bl=On.alloc(),sm=0;sm<z;sm++){var du=Mt[sm];if(du.visible||du===Nh){var Fs=a.Fb(du.row),hu=a.Eb(du.column),oh=0;isFinite(hu.width)?oh=hu.width:(isFinite(Ni)&&jt[du.column]!==null?np===0?oh=hu.actual+Ni:oh=jt[du.column]/np*Dh:jt[du.column]!==null?oh=Ni:oh=hu.actual||Ni,oh=Math.max(0,oh-hu.Wc()));var Bh=0;switch(isFinite(Fs.height)?Bh=Fs.height:(isFinite(Qi)&&mn[du.row]!==null?pg===0?Bh=Fs.actual+Qi:Bh=mn[du.row]/pg*jd:mn[du.row]!==null?Bh=Qi:Bh=Fs.actual||Qi,Bh=Math.max(0,Bh-Fs.Wc())),bl.h(Math.max(hu.minimum,Math.min(oh,hu.maximum)),Math.max(Fs.minimum,Math.min(Bh,Fs.maximum))),Ql=id(du,Fs,hu,!1),Ql){case sr:bl.height=Math.max(bl.height,Fs.actual+Qi);break;case Ar:bl.width=Math.max(bl.width,hu.actual+Ni)}var zf=du.margin,Gy=zf.right+zf.left,J0=zf.top+zf.bottom;du.Uj(),du.measure(bl.width,bl.height,hu.minimum,Fs.minimum);var ip=du.measuredBounds,jf=Math.max(ip.width+Gy,0),mg=Math.max(ip.height+J0,0);isFinite(Ni)&&(jf=Math.min(jf,bl.width)),isFinite(Qi)&&(mg=Math.min(mg,bl.height));var ju=0;ju=Fs.actual,Fs.actual=Math.max(Fs.actual,mg),Fs.oc=Math.max(Fs.oc,mg),el=Fs.actual-ju,Qi=Math.max(Qi-el,0),mn[du.row]===null&&(jd=Math.max(jd-el,0)),ju=hu.actual,hu.actual=Math.max(hu.actual,jf),hu.oc=Math.max(hu.oc,jf),el=hu.actual-ju,Ni=Math.max(Ni-el,0),jt[du.column]===null&&(Dh=Math.max(Dh-el,0))}}yi(Mt);var ah=On.alloc(),dd=ei(),yc=ei();if(z=wt.length,z!==0){for(var cf=0;cf<Jo;cf++)if(Oe[cf]){wa=Oe[cf].length;var rp=a.Fb(cf);dd[cf]=rp.actual;for(var df=0;df<wa;df++)if(Oe[cf][df]){var Q0=a.Eb(df);yc[df]=Q0.actual}}}for(var op=0;op<z;op++){var vs=wt[op];if(vs.visible||vs===Nh){var Jc=a.Fb(vs.row),Tc=a.Eb(vs.column);switch(bl.h(Math.max(Tc.minimum,Math.min(y,Tc.maximum)),Math.max(Jc.minimum,Math.min(x,Jc.maximum))),Ql=id(vs,Jc,Tc,!1),Ql){case ii:yc[Tc.index]!==0&&(bl.width=Math.min(bl.width,yc[Tc.index])),dd[Jc.index]!==0&&(bl.height=Math.min(bl.height,dd[Jc.index]));break;case sr:yc[Tc.index]!==0&&(bl.width=Math.min(bl.width,yc[Tc.index]));break;case Ar:dd[Jc.index]!==0&&(bl.height=Math.min(bl.height,dd[Jc.index]))}isFinite(Tc.width)&&(bl.width=Tc.width),isFinite(Jc.height)&&(bl.height=Jc.height),ah.h(0,0);for(var _0=Tc.minimum,Ju=Jc.minimum,Th=1;Th<vs.rowSpan&&!(vs.row+Th>=a.rowCount);Th++)_n=a.Fb(vs.row+Th),el=0,el=Ql===ii||Ql===Ar?Math.max(_n.minimum,dd[vs.row+Th]===0?_n.maximum:Math.min(dd[vs.row+Th],_n.maximum)):Math.max(_n.minimum,isNaN(_n.Hc)?_n.maximum:Math.min(_n.Hc,_n.maximum)),ah.height+=el,Ju+=_n.minimum;for(var Oc=1;Oc<vs.columnSpan&&!(vs.column+Oc>=a.columnCount);Oc++)_n=a.Eb(vs.column+Oc),el=0,el=Ql===ii||Ql===sr?Math.max(_n.minimum,yc[vs.column+Oc]===0?_n.maximum:Math.min(yc[vs.column+Oc],_n.maximum)):Math.max(_n.minimum,isNaN(_n.Hc)?_n.maximum:Math.min(_n.Hc,_n.maximum)),ah.width+=el,_0+=_n.minimum;bl.width+=ah.width,bl.height+=ah.height;var ap=vs.margin,hf=ap.right+ap.left,lm=ap.top+ap.bottom;vs.measure(bl.width,bl.height,_0,Ju);for(var sp=vs.measuredBounds,Cd=Math.max(sp.width+hf,0),Hf=Math.max(sp.height+lm,0),ff=0,lp=0;lp<vs.rowSpan&&!(vs.row+lp>=a.rowCount);lp++)_n=a.Fb(vs.row+lp),ff+=_n.total||0;if(ff<Hf){var Oh=Hf-ff,Hd=Hf-ff;if(vs.spanAllocation!==null)for(var Ih=vs.spanAllocation,sh=0;sh<vs.rowSpan&&!(0>=Oh)&&!(vs.row+sh>=a.rowCount);sh++){_n=a.Fb(vs.row+sh);var Rh=_n.oa||0,Wf=Ih(vs,_n,Hd);_n.actual=Math.min(_n.maximum,Rh+Wf),_n.oa!==Rh&&(Oh-=_n.oa-Rh)}for(;0<Oh;){var hd=_n.oa||0;if(isNaN(_n.height)&&_n.maximum>hd&&(_n.actual=Math.min(_n.maximum,hd+Oh),_n.oa!==hd&&(Oh-=_n.oa-hd)),_n.index===0)break;_n=a.Fb(_n.index-1)}}for(var vg=0,zh=0;zh<vs.columnSpan&&!(vs.column+zh>=a.columnCount);zh++)_n=a.Eb(vs.column+zh),vg+=_n.total||0;if(vg<Cd){var yg=Cd-vg,Yy=Cd-vg;if(vs.spanAllocation!==null)for(var lh=vs.spanAllocation,Zf=0;Zf<vs.columnSpan&&!(0>=yg)&&!(vs.column+Zf>=a.columnCount);Zf++){_n=a.Eb(vs.column+Zf);var um=_n.oa||0,Uy=lh(vs,_n,Yy);_n.actual=Math.min(_n.maximum,um+Uy),_n.oa!==um&&(yg-=_n.oa-um)}for(;0<yg;){var $0=_n.oa||0;if(isNaN(_n.width)&&_n.maximum>$0&&(_n.actual=Math.min(_n.maximum,$0+yg),_n.oa!==$0&&(yg-=_n.oa-$0)),_n.index===0)break;_n=a.Eb(_n.index-1)}}}}yi(wt),On.free(ah),On.free(bl),dd!==void 0&&yi(dd),yc!==void 0&&yi(yc);var Sg=0,xg=0,q0=a.desiredSize,S1=a.maxSize;Ql=wu(a,!0);var cm=ih=zd=0,dm=0;z=a.columnCount;for(var ev=0;ev<z;ev++)hi[ev]!==void 0&&(_n=a.Eb(ev),isFinite(_n.width)?(cm+=_n.width,cm+=_n.Wc()):Tm(_n)===Pp?(cm+=_n.oa,cm+=_n.Wc()):_n.oa!==0&&(zd+=_n.oa,zd+=_n.Wc()));isFinite(q0.width)?Sg=Math.min(q0.width,S1.width):Sg=Ql!==qn&&isFinite(y)?y:zd,Sg=Math.max(Sg,a.minSize.width),Sg=Math.max(Sg-cm,0);for(var aw=zd===0?1:Math.max(Sg/zd,1),tv=0;tv<z;tv++)hi[tv]!==void 0&&(_n=a.Eb(tv),isFinite(_n.width)||Tm(_n)===Pp||(_n.actual=_n.oa*aw),_n.position=E.width,_n.oa!==0&&(E.width+=_n.oa,E.width+=_n.Wc()));z=a.rowCount;for(var nv=0;nv<z;nv++)Hi[nv]!==void 0&&(_n=a.Fb(nv),isFinite(_n.height)?(dm+=_n.height,dm+=_n.Wc()):Tm(_n)===Pp?(dm+=_n.oa,dm+=_n.Wc()):_n.oa!==0&&(ih+=_n.oa,ih+=_n.Wc()));isFinite(q0.height)?xg=Math.min(q0.height,S1.height):xg=Ql!==qn&&isFinite(x)?x:ih,xg=Math.max(xg,a.minSize.height),xg=Math.max(xg-dm,0);for(var sw=ih===0?1:Math.max(xg/ih,1),iv=0;iv<z;iv++)Hi[iv]!==void 0&&(_n=a.Fb(iv),isFinite(_n.height)||Tm(_n)===Pp||(_n.actual=_n.oa*sw),_n.position=E.height,_n.oa!==0&&(E.height+=_n.oa,E.height+=_n.Wc()));z=re.length;for(var Xy=0;Xy<z;Xy++){var hm=re[Xy],Jy=0,Qy=0;hm.type===si.TableRow?(Jy=E.width,_n=a.Fb(hm.row),Qy=_n.actual):(_n=a.Eb(hm.column),Jy=_n.actual,Qy=E.height),hm.measuredBounds.h(0,0,Jy,Qy),Hs(hm,!1)}yi(re),a.inRowsCols=Oe},bm.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding,z=E.left;E=E.top;var ee=a.inRowsCols;if(ee!==null){for(var re,oe,le=ee.length,ue=0,fe=0;fe<le;fe++)ee[fe]&&(ue=Math.max(ue,ee[fe].length));oe=a.rowDefs,re=a.colDefs;var Se=fe=0,be=Math.min(a.topIndex,le-1);if(0<oe.length){for(;be!==le&&(oe[be]===void 0||oe[be].oa===0);)be++;be=Math.max(Math.min(be,le-1),0),fe=-oe[be].position}var Ae=Math.min(a.leftIndex,ue-1);if(0<re.length){for(;Ae!==ue&&(re[Ae]===void 0||re[Ae].oa===0);)Ae++;Ae=Math.max(Math.min(Ae,ue-1),0),Se=-re[Ae].position}for(var Oe=0,rt=0;Oe!==le&&oe[Oe]===void 0;)Oe++;for(;rt!==le&&re[rt]===void 0;)rt++;ue=a.part,a.Fb(Oe),a.Eb(rt);for(var Ye=0;Ye<y.length;Ye++){var mt=y[Ye];if(mt instanceof si&&mt.visible&&xh(mt)){if(mt.type===si.TableRow){re=a.Fb(mt.row);var wt=a.Eb(rt)}else re=a.Fb(Oe),wt=a.Eb(mt.column);oe=re.position+fe+E,re.oa!==0&&(oe+=re.Io(Math.max(Oe,be))),re=wt.position+Se+z,wt.oa!==0&&(re+=wt.Io(Math.max(rt,Ae))),wt=mt.measuredBounds,mt.Uk(),mt.actualBounds.ka();var Mt=mt.actualBounds,jt=Pn.allocAt(Mt.x,Mt.y,Mt.width,Mt.height);Mt.x=mt.type===si.TableRow?z:re,Mt.y=mt.type===si.TableColumn?E:oe,Mt.width=wt.width,Mt.height=wt.height,mt.actualBounds.freeze(),Ld(mt,!1),Ga(jt,Mt)||ue===null||(ue.oh(),mt.Pn(ue)),Pn.free(jt)}}for(Ye=On.alloc(),mt=0;mt<le;mt++)if(ee[mt]){for(ue=ee[mt].length,wt=a.Fb(mt),oe=wt.position+fe+E,wt.oa!==0&&(oe+=wt.Io(Math.max(Oe,be))),Mt=0;Mt<ue;Mt++)if(ee[mt][Mt]){jt=a.Eb(Mt),re=jt.position+Se+z,jt.oa!==0&&(re+=jt.Io(Math.max(rt,Ae)));for(var mn=ee[mt][Mt],Ni=mn.length,Qi=0;Qi<Ni;Qi++){var Hi=mn[Qi],hi=Hi.measuredBounds;Ye.h(0,0);for(var _n=1;_n<Hi.rowSpan&&!(mt+_n>=a.rowCount);_n++){var Xr=a.Fb(mt+_n);Xr.oa!==0&&(Ye.height+=Xr.total)}for(_n=1;_n<Hi.columnSpan&&!(Mt+_n>=a.columnCount);_n++)Xr=a.Eb(Mt+_n),Xr.oa!==0&&(Ye.width+=Xr.total);var zr=jt.oa+Ye.width,Jo=wt.oa+Ye.height;_n=re,Xr=oe;var wa=zr,qs=Jo,cl=re,Xl=oe,el=zr,Nh=Jo;re+zr>x.width&&(el=Math.max(x.width-re,0)),oe+Jo>x.height&&(Nh=Math.max(x.height-oe,0));var Ns=Hi.alignment;if(Ns.Xb()){Ns=a.defaultAlignment,Ns.sb()||(Ns=xo);var ld=Ns.x,Jl=Ns.y,Fh=Ns.offsetX;Ns=Ns.offsetY;var rc=jt.alignment,Bc=wt.alignment;rc.sb()&&(ld=rc.x,Fh=rc.offsetX),Bc.sb()&&(Jl=Bc.y,Ns=Bc.offsetY)}else ld=Ns.x,Jl=Ns.y,Fh=Ns.offsetX,Ns=Ns.offsetY;(isNaN(ld)||isNaN(Jl))&&(Jl=ld=.5,Ns=Fh=0),rc=hi.width,Bc=hi.height;var Yu=Hi.margin,Iu=Yu.left+Yu.right,af=Yu.top+Yu.bottom,ud=id(Hi,wt,jt,!1);!isNaN(Hi.desiredSize.width)||ud!==ii&&ud!==sr||(rc=Math.max(zr-Iu,0)),!isNaN(Hi.desiredSize.height)||ud!==ii&&ud!==Ar||(Bc=Math.max(Jo-af,0)),zr=Hi.maxSize,Jo=Hi.minSize,rc=Math.min(zr.width,rc),Bc=Math.min(zr.height,Bc),rc=Math.max(Jo.width,rc),Bc=Math.max(Jo.height,Bc),zr=Bc+af,_n+=wa*ld-(rc+Iu)*ld+Fh+Yu.left,Xr+=qs*Jl-zr*Jl+Ns+Yu.top,Hi.visible&&(Oo(cl,Xl,el,Nh,_n,Xr,hi.width,hi.height)?Hi.arrange(_n,Xr,rc,Bc):Hi.arrange(_n,Xr,rc,Bc,new Pn(cl,Xl,el,Nh)))}}}for(On.free(Ye),a=0;a<b;a++)x=y[a],z=x instanceof si?x:null,z!==null&&xh(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function Em(){this.xa="Base"}Lt(Em,Us),Em.prototype.measure=function(){},Em.prototype.arrange=function(){};function Am(){this.xa="Base"}Lt(Am,Us),Am.prototype.measure=function(){},Am.prototype.arrange=function(){};function Lm(){this.xa="Base"}Lt(Lm,Us),Lm.prototype.measure=function(a,y,x,b,E,z,ee){1<b.length&&Pt("Viewbox Panel cannot contain more than one GraphObject."),b=b[0],b.Ca=1,b.Uj(),b.measure(1/0,1/0,z,ee);var re=b.measuredBounds,oe=b.margin,le=oe.right+oe.left;if(oe=oe.top+oe.bottom,isFinite(y)||isFinite(x)){var ue=b.scale,fe=re.width;re=re.height;var Se=Math.max(y-le,0),be=Math.max(x-oe,0),Ae=1;a.viewboxStretch===ir?fe!==0&&re!==0&&(Ae=Math.min(Se/fe,be/re)):fe!==0&&re!==0&&(Ae=Math.max(Se/fe,be/re)),Ae===0&&(Ae=1e-4),b.Ca*=Ae,ue!==b.scale&&(Hs(b,!0),b.measure(1/0,1/0,z,ee))}re=b.measuredBounds,E.width=isFinite(y)?y:Math.max(re.width+le,0),E.height=isFinite(x)?x:Math.max(re.height+oe,0)},Lm.prototype.arrange=function(a,y,x){y=y[0];var b=y.measuredBounds,E=y.margin,z=Math.max(b.width+(E.right+E.left),0);E=Math.max(b.height+(E.top+E.bottom),0);var ee=y.alignment;ee.Xb()&&(ee=a.defaultAlignment),ee.sb()||(ee=xo),y.arrange(x.width*ee.x-z*ee.x+ee.offsetX,x.height*ee.y-E*ee.y+ee.offsetY,b.width,b.height)};function Sp(){this.xa="Base"}Lt(Sp,Us),Sp.prototype.measure=function(){},Sp.prototype.arrange=function(){},Sp.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 z=a.naturalBounds,ee=a.actualBounds,re=z.width,oe=z.height,le=Math.ceil(re/E),ue=Math.ceil(oe/b),fe=a.gridOrigin,Se=fe.x;fe=fe.y,y.save(),y.beginPath(),y.rect(0,0,re,oe),y.clip(),y.Se();for(var be=[],Ae=a.O.s,Oe=Ae.length,rt=0;rt<Oe;rt++){var Ye=Ae[rt],mt=[];if(be.push(mt),Ye.visible){var wt=Ye.interval;if(!(0>wt)){Ye=Sv(Ye.figure);for(var Mt=0;Mt<Oe;Mt++)if(Mt!==rt){var jt=Ae[Mt];jt.visible&&Sv(jt.figure)===Ye&&(jt=jt.interval,jt>wt&&mt.push(jt))}}}}for(Ae=a.O.s,Oe=Ae.length,rt=0;rt<Oe;rt++){var mn=Ae[rt];if(mn.visible&&(mt=mn.interval||1,Ye=Math.abs(mt),!(2>E*Ye*x))){if(wt=mn.segmentIndex,(!isFinite(wt)||isNaN(wt))&&(wt=0),0>wt&&(wt=Ye-Math.min(-wt,Ye)),wt=Math.round(wt%Ye),Ye=mn.opacity,Mt=1,Ye!==1){if(Ye===0)continue;Mt=y.globalAlpha,y.globalAlpha=Mt*Ye}jt=be[rt];var Ni=!1,Qi=mn.strokeDashArray;if(Qi!==null&&(Ni=!0,y.js(Qi,mn.strokeDashOffset)),mn.figure==="LineV"&&mn.stroke!==null&&0<mn.strokeWidth){for(y.lineWidth=mn.strokeWidth,ds(a,y,mn.stroke,!1,!1,z,ee),y.beginPath(),Qi=mn=Math.floor((Se-E)/E);Qi<=mn+le;Qi++){var Hi=Qi*E+Se;0<=Hi&&Hi<=re&&Mm(Qi,mt,wt,jt)&&(y.moveTo(Hi,0),y.lineTo(Hi,oe))}y.stroke(),y.Se()}else if(mn.figure==="LineH"&&mn.stroke!==null&&0<mn.strokeWidth){for(y.lineWidth=mn.strokeWidth,ds(a,y,mn.stroke,!1,!1,z,ee),y.beginPath(),Qi=mn=Math.floor((fe-b)/b);Qi<=mn+ue;Qi++)Hi=Qi*b+fe,0<=Hi&&Hi<=oe&&Mm(Qi,mt,wt,jt)&&(y.moveTo(0,Hi),y.lineTo(re,Hi));y.stroke(),y.Se()}else if(mn.figure==="BarV"&&mn.fill!==null)for(ds(a,y,mn.fill,!0,!1,z,ee),mn=mn.width,isNaN(mn)&&(mn=E),Hi=Qi=Math.floor((Se-E)/E);Hi<=Qi+le;Hi++){var hi=Hi*E+Se;0<=hi+mn&&hi<=re&&Mm(Hi,mt,wt,jt)&&y.fillRect(hi,0,mn,oe)}else if(mn.figure==="BarH"&&mn.fill!==null)for(ds(a,y,mn.fill,!0,!1,z,ee),mn=mn.height,isNaN(mn)&&(mn=b),Hi=Qi=Math.floor((fe-b)/b);Hi<=Qi+ue;Hi++)hi=Hi*b+fe,0<=hi+mn&&hi<=oe&&Mm(Hi,mt,wt,jt)&&y.fillRect(0,hi,re,mn);Ni&&y.fs(),Ye!==1&&(y.globalAlpha=Mt)}}y.restore(),y.Vc(!1)};function Mm(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 km(){this.xa="Base"}Lt(km,Us),km.prototype.measure=function(a,y,x,b,E){var z=b.length;if(a instanceof Yo||a instanceof fi){var ee=null,re=null;if(a instanceof fi&&(ee=a),a instanceof Yo&&(re=a,ee=re.adornedPart,a.j===null&&(a.j=[])),ee instanceof fi){var oe=ee;if(z===0)ca(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var le=a instanceof Yo?null:ee.path;y=ee.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var ue=oe.points,fe=ee.pointsCount;re!==null?re.Ul(!1):ee!==null&&ee.Ul(!1),re=y.width;var Se=y.height,be=a.j;if(be.length=0,le!==null){lS(a,re,Se,le);var Ae=le.measuredBounds;x.ed(Ae),be.push(Ae)}Ae=Hr.alloc();for(var Oe=Je.alloc(),rt=Je.alloc(),Ye=0;Ye<z;Ye++){var mt=b[Ye];if(mt!==le)if(mt.isPanelMain&&mt instanceof oo){lS(a,re,Se,mt);var wt=mt.measuredBounds;x.ed(wt),be.push(wt)}else if(2>fe)mt.measure(1/0,1/0,0,0),wt=mt.measuredBounds,x.ed(wt),be.push(wt);else{var Mt=mt.segmentIndex,jt=mt.segmentFraction,mn=mt.alignmentFocus;mn.Mc()&&(mn=xo);var Ni=mt.segmentOrientation,Qi=mt.segmentOffset;if(isNaN(Mt)){var Hi=oe.ua;wt=ei(),Hi.Qu(jt,wt);var hi=Je.allocAt(wt[0],wt[1]);if(hi.add(oe.i(0)),Hi.type===di.j?hi.offset(-Hi.startX,-Hi.startY):(Hi=Hi.figures.first(),Hi!==null&&hi.offset(-Hi.startX,-Hi.startY)),Hi=wt[2],Ni!==au){var _n=oe.computeAngle(mt,Ni,Hi);mt.Kb=_n}_n=hi.x-y.x;var Xr=hi.y-y.y;Je.free(hi),yi(wt)}else if(Mt<-fe||Mt>=fe)wt=Je.alloc(),oe.vg(),oe.computeMidPoint(wt),Hi=oe.midAngle,Ni!==au&&(_n=oe.computeAngle(mt,Ni,Hi),mt.Kb=_n),_n=wt.x-y.x,Xr=wt.y-y.y,Je.free(wt);else{if(_n=0,0<=Mt?(Xr=ue.M(Mt),wt=Mt<fe-1?ue.M(Mt+1):Xr):(_n=fe+Mt,Xr=ue.M(_n),wt=0<_n?ue.M(_n-1):Xr),Xr.Xa(wt)){0<=Mt?(Hi=0<Mt?ue.M(Mt-1):Xr,_n=Mt<fe-2?ue.M(Mt+2):wt):(Hi=_n<fe-1?ue.M(_n+1):Xr,_n=1<_n?ue.M(_n-2):wt),hi=Hi.Bf(Xr);var zr=wt.Bf(_n);Hi=hi>zr+10?0<=Mt?Hi.ab(Xr):Xr.ab(Hi):zr>hi+10?0<=Mt?wt.ab(_n):_n.ab(wt):0<=Mt?Hi.ab(_n):_n.ab(Hi)}else Hi=0<=Mt?Xr.ab(wt):wt.ab(Xr);Ni!==au&&(_n=oe.computeAngle(mt,Ni,Hi),mt.Kb=_n),_n=Xr.x+(wt.x-Xr.x)*jt-y.x,Xr=Xr.y+(wt.y-Xr.y)*jt-y.y}mt.measure(1/0,1/0,0,0),wt=mt.measuredBounds,hi=mt.naturalBounds;var Jo=0;mt instanceof oo&&(Jo=mt.strokeWidth),zr=hi.width+Jo;var wa=hi.height+Jo;Ae.reset(),Ae.translate(-wt.x,-wt.y),Ae.scale(mt.scale,mt.scale),Ae.rotate(Ni===au?mt.angle:Hi,zr/2,wa/2),Ni!==Dp&&Ni!==Tp||Ae.rotate(90,zr/2,wa/2),Ni!==Bp&&Ni!==Op||Ae.rotate(-90,zr/2,wa/2),Ni===o0&&(45<Hi&&135>Hi||225<Hi&&315>Hi)&&Ae.rotate(-Hi,zr/2,wa/2),hi=new Pn(0,0,zr,wa),Oe.xi(hi,mn),Ae.Ga(Oe),mn=-Oe.x+Jo/2*mt.scale,mt=-Oe.y+Jo/2*mt.scale,rt.assign(Qi),Jo=isNaN(Qi.x);var qs=isNaN(Qi.y);if(Jo||qs){zr=zr/2+3,wa=wa/2+3;var cl=45<=Hi&&135>=Hi,Xl=225<=Hi&&315>=Hi;Ni===au&&(cl||Xl)?(rt.x=qs?zr:Qi.y,rt.y=Jo?wa:Qi.x,cl?0<=Mt||isNaN(Mt)&&.5>jt||!Jo||(rt.y=-wa):Xl&&((0<=Mt||isNaN(Mt)&&.5>jt)&&Jo&&(rt.y=-wa),qs&&(rt.x=-zr))):(Jo&&(rt.x=0<=Mt||isNaN(Mt)&&.5>jt?zr:-zr),qs&&(rt.y=-wa),rt.rotate(Hi))}else rt.rotate(Hi);_n+=rt.x,Xr+=rt.y,hi.set(wt),hi.h(_n+mn,Xr+mt,wt.width,wt.height),be.push(hi),x.ed(hi)}}if(ee!==null)for(b=ee.labelNodes;b.next();)b.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),ca(E,x.width||0,x.height||0),Hr.free(Ae),Je.free(Oe),Je.free(rt)}}}},km.prototype.arrange=function(a,y){var x=y.length;if(a instanceof Yo||a instanceof fi){var b=a,E=null;a instanceof Yo&&(E=a,b=E.adornedPart);var z=a instanceof Yo?null:b.path,ee=a.j;if(ee.length!==0){var re=0;if(z!==null&&re<ee.length){var oe=ee[re];re++,z.arrange(oe.x-a.jg.x,oe.y-a.jg.y,oe.width,oe.height)}for(oe=0;oe<x;oe++){var le=y[oe];if(le!==z&&re<ee.length){var ue=ee[re];re++,le.arrange(ue.x-a.jg.x,ue.y-a.jg.y,ue.width,ue.height)}}}if(y=b.points,x=y.count,2<=x&&a instanceof fi)for(z=a.labelNodes;z.next();){var fe=a;ee=z.value,re=ee.segmentIndex,oe=ee.segmentFraction;var Se=ee.alignmentFocus;if(le=ee.segmentOrientation,ue=ee.segmentOffset,isNaN(re)){var be=fe.ua,Ae=ei();be.Qu(oe,Ae);var Oe=Je.allocAt(Ae[0],Ae[1]);Oe.add(fe.i(0)),be.type===di.j||(be=be.figures.first()),Oe.offset(-be.startX,-be.startY),be=Ae[2],le!==au&&(fe=fe.computeAngle(ee,le,be),ee.angle=fe),fe=Oe.x;var rt=Oe.y;Je.free(Oe),yi(Ae)}else if(re<-x||re>=x)Ae=Je.alloc(),be=fe,rt=Ae,be.vg(),be.computeMidPoint(rt),be=fe.midAngle,le!==au&&(fe=fe.computeAngle(ee,le,be),ee.angle=fe),fe=Ae.x,rt=Ae.y,Je.free(Ae);else{if(Oe=0,0<=re?(Ae=y.s[re],rt=re<x-1?y.s[re+1]:Ae):(Oe=x+re,Ae=y.s[Oe],rt=0<Oe?y.s[Oe-1]:Ae),Ae.Xa(rt)){0<=re?(be=0<re?y.s[re-1]:Ae,Oe=re<x-2?y.s[re+2]:rt):(be=Oe<x-1?y.s[Oe+1]:Ae,Oe=1<Oe?y.s[Oe-2]:rt);var Ye=be.Bf(Ae),mt=rt.Bf(Oe);be=Ye>mt+10?0<=re?be.ab(Ae):Ae.ab(be):mt>Ye+10?0<=re?rt.ab(Oe):Oe.ab(rt):0<=re?be.ab(Oe):Oe.ab(be)}else be=0<=re?Ae.ab(rt):rt.ab(Ae);le!==au&&(fe=fe.computeAngle(ee,le,be),ee.angle=fe),fe=Ae.x+(rt.x-Ae.x)*oe,rt=Ae.y+(rt.y-Ae.y)*oe}if(Se.ys())ee.location=new Je(fe,rt);else{Se.Mc()&&(Se=xo),Ae=Hr.alloc(),Ae.reset(),Ae.scale(ee.scale,ee.scale),Ae.rotate(ee.angle,0,0);var wt=ee.naturalBounds;Oe=Pn.allocAt(0,0,wt.width,wt.height),Ye=Je.alloc(),Ye.xi(Oe,Se),Ae.Ga(Ye),Se=-Ye.x,mt=-Ye.y;var Mt=wt.width,jt=wt.height;wt=Je.alloc(),wt.assign(ue);var mn=isNaN(ue.x),Ni=isNaN(ue.y);if(mn||Ni){Mt=Mt/2+3,jt=jt/2+3;var Qi=45<=be&&135>=be,Hi=225<=be&&315>=be;le===au&&(Qi||Hi)?(wt.x=Ni?Mt:ue.y,wt.y=mn?jt:ue.x,Qi?0<=re||isNaN(re)&&.5>oe||!mn||(wt.y=-jt):Hi&&((0<=re||isNaN(re)&&.5>oe)&&mn&&(wt.y=-jt),Ni&&(wt.x=-Mt))):(mn&&(wt.x=0<=re||isNaN(re)&&.5>oe?Mt:-Mt),Ni&&(wt.y=-jt),wt.rotate(be))}else wt.rotate(be);fe+=wt.x,rt+=wt.y,Ae.pp(Oe),Se+=Oe.x,mt+=Oe.y,re=Je.allocAt(fe+Se,rt+mt),ee.move(re),Je.free(re),Je.free(wt),Je.free(Ye),Pn.free(Oe),Hr.free(Ae)}}E!==null?E.Ul(!1):b.Ul(!1),b=RS(a),a.location.h(a.position.x+b.x,a.position.y+b.y),Je.free(b)}};function lS(a,y,x,b){if(ec(b)!==!1){var E=b.strokeWidth;E===0&&a instanceof Yo&&a.type===si.Link&&a.adornedObject instanceof oo&&(E=a.adornedObject.strokeWidth),E*=b.Ca,a instanceof fi&&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 Yo&&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),Hs(b,!1)}}function xp(){this.xa="Base"}Lt(xp,Us),xp.prototype.measure=function(a,y,x,b,E,z,ee){var re=a.Pb();a.graduatedBounds=[];var oe=re.margin,le=oe.right+oe.left,ue=oe.top+oe.bottom;re.measure(y,x,z,ee);var fe=re.measuredBounds,Se=new Pn(-oe.left,-oe.top,Math.max(fe.width+le,0),Math.max(fe.height+ue,0));a.graduatedBounds.push(Se),E.assign(Se);for(var be=re.geometry,Ae=re.strokeWidth,Oe=be.flattenedSegments,rt=be.flattenedLengths,Ye=be.flattenedTotalLength,mt=Oe.length,wt=0,Mt=0,jt=ei(),mn=0;mn<mt;mn++){var Ni=Oe[mn],Qi=[];Mt=wt=0;for(var Hi=Ni.length,hi=0;hi<Hi;hi+=2){var _n=Ni[hi],Xr=Ni[hi+1];if(hi!==0){var zr=180*Math.atan2(Xr-Mt,_n-wt)/Math.PI;0>zr&&(zr+=360),Qi.push(zr)}wt=_n,Mt=Xr}jt.push(Qi)}if(a.graduatedIntervals===null){for(var Jo=[],wa=a.O.s,qs=wa.length,cl=0;cl<qs;cl++){var Xl=wa[cl],el=[];if(Jo.push(el),Xl.visible){var Nh=Xl.interval;if(!(0>Nh)){for(var Ns=0;Ns<qs;Ns++)if(Ns!==cl){var ld=wa[Ns];if(ld.visible&&Xl.constructor===ld.constructor){var Jl=ld.interval;Jl>Nh&&el.push(Jl)}}}}}a.graduatedIntervals=Jo}var Fh=a.graduatedIntervals,rc=a.O.s,Bc=rc.length,Yu=0,Iu=0,af=Ye;a.graduatedMarks=[];for(var ud,qg=0;qg<Bc;qg++){var Uu=rc[qg];if(ud=[],Uu.visible&&Uu!==re){var Ql=Math.abs(Uu.interval),om=a.graduatedTickUnit;if(!(2>om*Ql*Ye/a.graduatedRange&&Uu.graduatedSkip===null)){var fg=rt[0][0],xd=0,Ru=0;Iu=Ye*Uu.graduatedStart-1e-4,af=Ye*Uu.graduatedEnd+1e-4;var If=om*Ql,Xu=a.graduatedTickBase;if(Xu<a.graduatedMin){var sf=(a.graduatedMin-Xu)/If;sf=sf%1===0?sf:Math.floor(sf+1),Xu+=sf*If}else Xu>a.graduatedMin+If&&(Xu-=Math.floor((Xu-a.graduatedMin)/If)*If);for(var U0=Fh[qg],am=Xu,Vy=1e-6*a.graduatedMax,zd=1;Xu<=a.graduatedMax+Vy;zd++){e:{for(var ih=U0.length,gg=0;gg<ih;gg++){var lf=(Xu-a.graduatedTickBase)%(U0[gg]*a.graduatedTickUnit),ep=1e-6*a.graduatedTickUnit;if(lf<ep&&lf>-ep){var uf=!1;break e}}uf=!0}if(uf&&(Xu>a.graduatedMax&&(Xu=a.graduatedMax),Uu.graduatedSkip===null||Uu instanceof ba&&!Uu.graduatedSkip(Xu,Uu)||Uu instanceof oo&&!Uu.graduatedSkip(Xu,Uu))&&(Yu=(Xu-a.graduatedMin)*Ye/a.graduatedRange,Yu>Ye&&(Yu=Ye),Iu<=Yu&&Yu<=af)){for(var jd=jt[xd][Ru],Dh=rt[xd][Ru];xd<rt.length;){for(;Yu>fg&&Ru<rt[xd].length-1;)Ru++,jd=jt[xd][Ru],Dh=rt[xd][Ru],fg+=Dh;if(Yu<=fg)break;xd++,Ru=0,jd=jt[xd][Ru],Dh=rt[xd][Ru],fg+=Dh}var zu=Oe[xd],wd=zu[2*Ru],X0=zu[2*Ru+1],rh=(Yu-(fg-Dh))/Dh,tp=new Je(wd+(zu[2*Ru+2]-wd)*rh+Ae/2-be.bounds.x,X0+(zu[2*Ru+3]-X0)*rh+Ae/2-be.bounds.y);tp.scale(re.scale,re.scale);e:{var cd=jd,Rf=jt[xd];if(!(.5005>rh&&.4995<rh)){var Pd=cd;if(.5>rh?0<Ru?Pd=Rf[Ru-1]:Zt.$(zu[0],zu[zu.length-2])&&Zt.$(zu[1],zu[zu.length-1])&&(Pd=Rf[Rf.length-1]):.5<rh&&(Ru+1<Rf.length?Pd=Rf[Ru+1]:Zt.$(zu[0],zu[zu.length-2])&&Zt.$(zu[1],zu[zu.length-1])&&(Pd=Rf[0])),cd!==Pd){var pg=Math.abs(cd-Pd);if(180<pg&&(cd<Pd?cd+=360:Pd+=360,pg=Math.abs(cd-Pd)),5e-4>rh||.9995<rh){jd=(cd+Pd)/2%360;break e}if(10>pg){var np=1-Math.abs(.5-rh);jd=(cd*np+Pd*(1-np))%360;break e}}}jd=cd}if(Uu instanceof ba){var Xc="";Uu.graduatedFunction!==null?(Xc=Uu.graduatedFunction(Xu,Uu),Xc=Xc!=null?Xc.toString():""):Xc=(+Xu.toFixed(2)).toString(),Xc!==""&&ud.push({$l:tp,angle:jd,text:Xc})}else ud.push({$l:tp,angle:jd})}Xu=am+zd*If}}}a.graduatedMarks.push(ud)}yi(jt);var bl=a.graduatedMarks;if(bl!==null)for(var sm=b.length,du=0;du<sm;du++){var Fs=b[du],hu=bl[du];if(Fs.visible&&Fs!==re&&hu.length!==0){if(Fs instanceof oo){var oh=a,Bh=E,zf=Fs.alignmentFocus;zf.Mc()&&(zf=Is);var Gy=Fs.angle;Fs.Kb=0,Fs.measure(1/0,1/0,0,0),Fs.Kb=Gy;var J0=Fs.measuredBounds,ip=J0.width,jf=J0.height,mg=Pn.allocAt(0,0,ip,jf),ju=Je.alloc();ju.xi(mg,zf),Pn.free(mg);for(var ah=-ju.x,dd=-ju.y,yc=new Pn,cf=hu.length,rp=0;rp<cf;rp++)for(var df=hu[rp],Q0=df.$l.x,op=df.$l.y,vs=df.angle,Jc=0;4>Jc;Jc++){switch(Jc){case 0:ju.h(ah,dd);break;case 1:ju.h(ah+ip,dd);break;case 2:ju.h(ah,dd+jf);break;case 3:ju.h(ah+ip,dd+jf)}ju.rotate(vs+Fs.angle),ju.offset(Q0,op),rp===0&&Jc===0?yc.h(ju.x,ju.y,0,0):yc.Ye(ju),ju.offset(-Q0,-op),ju.rotate(-vs-Fs.angle)}Je.free(ju),oh.graduatedBounds!==null&&oh.graduatedBounds.push(yc),ko(Bh,yc.x,yc.y,yc.width,yc.height)}else if(Fs instanceof ba){var Tc=a,_0=E;Tc.temporaryTextBlock===null&&(Tc.temporaryTextBlock=new ba);var Ju=Tc.temporaryTextBlock;CS(Ju,Fs);var Th=Fs.alignmentFocus;Th.Mc()&&(Th=Is);for(var Oc=Fs.segmentOrientation,ap=Fs.segmentOffset,hf=new Pn,lm=0,sp=0,Cd=0,Hf=0,ff=0,lp=hu.length,Oh=0;Oh<lp;Oh++){var Hd=hu[Oh];lm=Hd.$l.x,sp=Hd.$l.y,Cd=Hd.angle,ff=Hf=Fs.angle,Oc!==au&&(ff=Oc===Fp||Oc===r0?Cd+Fs.angle:Cd,Hf=fi.computeAngle(Oc,ff)),Ju.Kb=Hf,Ju.text=Hd.text||"",Ju.measure(1/0,1/0,0,0);var Ih=Ju.measuredBounds,sh=Ju.naturalBounds,Rh=sh.width,Wf=sh.height,hd=Hr.alloc();hd.reset(),hd.translate(-Ih.x,-Ih.y),hd.scale(Ju.scale,Ju.scale),hd.rotate(ff,Rh/2,Wf/2),Oc!==Dp&&Oc!==Tp||hd.rotate(90,Rh/2,Wf/2),Oc!==Bp&&Oc!==Op||hd.rotate(-90,Rh/2,Wf/2),Oc===o0&&(45<Cd&&135>Cd||225<Cd&&315>Cd)&&hd.rotate(-Cd,Rh/2,Wf/2);var vg=Pn.allocAt(0,0,Rh,Wf),zh=Je.alloc();zh.xi(vg,Th),hd.Ga(zh);var yg=-zh.x,Yy=-zh.y,lh=Je.alloc();lh.assign(ap),isNaN(lh.x)&&(lh.x=Rh/2+3),isNaN(lh.y)&&(lh.y=-(Wf/2+3)),lh.rotate(Cd),lm+=lh.x+yg,sp+=lh.y+Yy;var Zf=new Pn(lm,sp,Ih.width,Ih.height),um=new Pn(Ih.x,Ih.y,Ih.width,Ih.height),Uy=new Pn(sh.x,sh.y,sh.width,sh.height);Hd.Sz=Hf,Hd.lineCount=Ju.lineCount,Hd.lines=[Ju.Cb,Ju.Ih,Ju.df,Ju.Le,Ju.Qc,Ju.Qb,Ju.ze],Hd.actualBounds=Zf,Hd.measuredBounds=um,Hd.naturalBounds=Uy,Oh===0?hf.assign(Zf):hf.ed(Zf),Je.free(lh),Je.free(zh),Pn.free(vg),Hr.free(hd)}Tc.graduatedBounds!==null&&Tc.graduatedBounds.push(hf),ko(_0,hf.x,hf.y,hf.width,hf.height)}Hs(Fs,!1)}}},xp.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var b=a.Pb(),E=a.graduatedMarks;if(E!==null){var z=a.graduatedBounds,ee=0,re=z[ee];ee++,b!==null&&b.arrange(re.x-x.x,re.y-x.y,re.width,re.height);for(var oe=y.length,le=0;le<oe;le++){var ue=y[le];re=E[le],ue.visible&&ue!==b&&re.length!==0&&(re=z[ee],ee++,ue.arrange(re.x-x.x,re.y-x.y,re.width,re.height))}a.graduatedBounds=null}}},xp.prototype.gc=function(a,y,x){var b=x.$i;x.$i=!0;var E=a.naturalBounds,z=E.width,ee=E.height;E=y instanceof Ku,y.save(),y.beginPath(),y.rect(-1,-1,z+1,ee+1),y.clip(),y.Se(),z=a.Pb(),z.gc(y,x),ee=a.Df()*x.scale,0>=ee&&(ee=1);for(var re=z.actualBounds,oe=a.O.s,le=a.graduatedMarks,ue=oe.length,fe=0;fe<ue;fe++){var Se=oe[fe],be=le[fe],Ae=be.length;if(Se.visible&&Se!==z&&be.length!==0){if(Se instanceof oo){if(!(2>a.graduatedTickUnit*Se.interval*z.geometry.flattenedTotalLength/a.graduatedRange*ee&&Se.graduatedSkip===null)){var Oe=Se.measuredBounds,rt=Se.strokeWidth*Se.scale,Ye=Se.alignmentFocus;Ye.Mc()&&(Ye=Is);for(var mt=0;mt<Ae;mt++){var wt=be[mt].$l,Mt=be[mt].angle,jt=Ye,mn=Se.Ab;mn.reset(),mn.translate(wt.x+re.x,wt.y+re.y),mn.rotate(Mt+Se.angle,0,0),mn.translate(-Oe.width*jt.x+jt.offsetX+rt/2,-Oe.height*jt.y+jt.offsetY+rt/2),mn.scale(Se.scale,Se.scale),Mc(Se,!1),Se.wh.set(Se.Ab),Se.Kk=Se.scale,dc(Se,!1),Se.gc(y,x),E&&(a.svg.appendChild(Se.svg),Se.svg=null),Se.Ab.reset()}}}else if(Se instanceof ba)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new ba),Oe=a.temporaryTextBlock,CS(Oe,Se),rt=0;rt<Ae;rt++)Ye=be[rt],Ye.actualBounds&&Ye.measuredBounds&&Ye.naturalBounds&&(Oe.ec=Ye.text||"",Oe.Kb=Ye.Sz||0,Oe.Gc=Ye.lineCount||0,mt=Ye.lines,mt!==void 0&&(Oe.Cb=mt[0],Oe.Ih=mt[1],Oe.df=mt[2],Oe.Le=mt[3],Oe.Qc=mt[4],Oe.Qb=mt[5],Oe.ze=mt[6]),Ye.naturalBounds&&(Oe.dc=Ye.naturalBounds),Ye.actualBounds&&(mt=Ye.actualBounds,Oe.arrange(mt.x,mt.y,mt.width,mt.height)),mt=Ye.actualBounds,Oe.arrange(mt.x,mt.y,mt.width,mt.height),wt=Ye.measuredBounds,Ye=Ye.naturalBounds,Mt=Oe.Ab,Mt.reset(),Mt.translate(mt.x+re.x,mt.y+re.y),Mt.translate(-wt.x,-wt.y),Oe.no(Mt,Ye.x,Ye.y,Ye.width,Ye.height),Mc(Oe,!1),Oe.wh.set(Oe.Ab),Oe.Kk=Oe.scale,dc(Oe,!1),Oe.Ng=Se.part,Oe.Me=Se.panel,Oe.gc(y,x),Oe.Me=null,Oe.Ng=null,E&&(a.svg.appendChild(Oe.svg),Oe.svg=null))}}x.$i=b,y.restore(),y.Vc(!0)};function si(a,y){if(Kt.call(this),this.na=null,a===void 0)this.na=si.Position;else if(typeof a=="string"){var x=Zc.I(a);x!==null&&(this.na=x)}else a instanceof Us?this.na=a:a&&(this.na=si.Position,y=a);this.na===null&&Pt("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===si.Grid?1048576:0),this.O=new Mn,this.yb=Bs,this.Tm=Xo,this.Uf=Qr,this.$g=null,this.$e="",this.jg=new Pn(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=ir,this.jn=qr,this.kn=pt,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}Lt(si,Kt),si.prototype.cloneProtected=function(a){Kt.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},si.prototype.Af=function(a){Kt.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},si.prototype.copy=function(){var a=Kt.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 z=a.O,ee=z.count;if(z.Gb(ee,E),z=a.part,z!==null){z.Rh=null,E.portId!==null&&z instanceof Di&&(z.Te=!0);var re=a.diagram;re!==null&&re.undoManager.isUndoingRedoing||z.cb(ci,"elements",a,null,E,null,ee)}}return a}return null},Ee=si.prototype,Ee.toString=function(){return"Panel("+this.type.name+")#"+xr(this)},Ee.Pn=function(a){Kt.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,b=0;b<x;b++)y[b].Pn(a)},Ee.hh=function(a,y){if(this.na===si.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===si.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===si.Table)if(a.yc(),a instanceof Ku){var x=a.yd;a.yd=mm(a,"gojs-ts"),yv(this,a),a.nh.pop(),a.yd=x}else yv(this,a);(x=this.isClipping&&this.na===si.Spot)&&a.save();for(var b=this.Pb(),E=this.O.s,z=E.length,ee=0;ee<z;ee++){var re=E[ee];x&&re===b&&(a.clipInsteadOfFill=!0),re.gc(a,y),x&&re===b&&(a.clipInsteadOfFill=!1)}x&&(a.restore(),a.Vc(!0))}};function yv(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,b=0<a.columnCount?a.colDefs:null;x!==null&&Nm(a,y,!0,x,!0),b!==null&&Nm(a,y,!1,b,!0),x!==null&&uS(a,y,!0,x),b!==null&&uS(a,y,!1,b),x!==null&&Nm(a,y,!0,x,!1),b!==null&&Nm(a,y,!1,b,!1)}function uS(a,y,x,b){for(var E=b.length,z=a.actualBounds,ee=a.naturalBounds,re=!0,oe=0;oe<E;oe++){var le=b[oe];if(le!==void 0&&le.actual!==0)if(re)re=!1;else{if(x){if(le.position>ee.height)continue}else if(le.position>ee.width)continue;var ue=le.separatorStrokeWidth;isNaN(ue)&&(ue=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var fe=le.separatorStroke;if(fe===null&&(fe=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ue!==0&&fe!==null){ds(a,y,fe,!1,!1,ee,z),fe=!1;var Se=le.separatorDashArray;Se===null&&(Se=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),Se!==null&&(fe=!0,y.js(Se,0)),y.beginPath(),Se=le.position+ue,x?Se>ee.height&&(ue-=Se-ee.height):Se>ee.width&&(ue-=Se-ee.width),le=le.position+ue/2,y.lineWidth=ue,ue=a.yb,x?(le+=ue.top,Se=ee.width-ue.right,y.moveTo(ue.left,le),y.lineTo(Se,le)):(le+=ue.left,Se=ee.height-ue.bottom,y.moveTo(le,ue.top),y.lineTo(le,Se)),y.stroke(),y.Se(),fe&&y.fs()}}}}function Nm(a,y,x,b,E){for(var z=b.length,ee=a.actualBounds,re=a.naturalBounds,oe=cS(a,!0),le=cS(a,!1),ue=0;ue<z;ue++){var fe=b[ue];if(fe!==void 0&&fe.background!==null&&fe.coversSeparators!==E&&fe.actual!==0){var Se=x?ee.height:ee.width;if(!(fe.position>Se)){var be=fe.Wc(),Ae=fe.separatorStrokeWidth;isNaN(Ae)&&(Ae=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Oe=fe.separatorStroke;Oe===null&&(Oe=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Oe===null||fe.index===(x?oe:le))&&(Ae=0),be-=Ae,Ae=fe.position+Ae,be+=fe.actual,Ae+be>Se&&(be=Se-Ae),0>=be||(Se=a.yb,ds(a,y,fe.background,!0,!1,re,ee),x?y.fillRect(Se.left,Ae+Se.top,ee.width-(Se.left+Se.right),be):y.fillRect(Ae+Se.left,Se.top,be,ee.height-(Se.top+Se.bottom)))}}}}function cS(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 Sv(a){return a==="LineV"||a==="BarV"}Ee.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},Ee.kk=function(a,y,x){if(!Kt.prototype.kk.call(this,a,y,x))return!1;if(this.type===si.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,yv(this,a),a.yd=null;else if(this.na===si.Grid||this.na===si.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},Ee.nk=function(){return!0},Ee.$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,z=0,ee=0;ee<y.length;ee++)if(y[ee].Ed()){var re=y[ee].actualBounds;E=ee===0?re.x:Math.min(re.x,E),z=ee===0?re.y:Math.min(re.y,z)}b.setAttributeNS(null,"clip-path","path('M "+(a.x-x.x-E)+","+(a.y-x.y-z)+" l "+a.width+" 0 l 0 "+a.height+" l -"+a.width+" 0 z')")}else Kt.prototype.$o.call(this,a,y,x,b)},Ee.Sj=function(a,y,x,b,E){var z=this.se(),ee=this.transform,re=1/(ee.m11*ee.m22-ee.m12*ee.m21),oe=ee.m22*re,le=-ee.m12*re,ue=-ee.m21*re,fe=ee.m11*re,Se=re*(ee.m21*ee.dy-ee.m22*ee.dx),be=re*(ee.m12*ee.dx-ee.m11*ee.dy);if(this.areaBackground!==null)return ee=this.actualBounds,Zt.Ff(ee.left,ee.top,ee.right,ee.bottom,a,y,x,b,E);if(this.background!==null)return z=a*oe+y*ue+Se,re=a*le+y*fe+be,a=x*oe+b*ue+Se,oe=x*le+b*fe+be,E.h(0,0),x=this.naturalBounds,z=Zt.Ff(0,0,x.width,x.height,z,re,a,oe,E),E.transform(ee),z;z||(oe=1,ue=le=0,fe=1,be=Se=0),re=a*oe+y*ue+Se,a=a*le+y*fe+be,oe=x*oe+b*ue+Se,x=x*le+b*fe+be,E.h(oe,x),b=(oe-re)*(oe-re)+(x-a)*(x-a),le=!1,fe=this.O.s,be=fe.length,ue=Je.alloc(),Se=null,y=1/0;var Ae=null,Oe=this.isClipping&&this.na===si.Spot;Oe&&(Ae=Je.alloc(),Se=this.Pb(),(le=Se.Sj(re,a,oe,x,Ae))&&(y=(re-Ae.x)*(re-Ae.x)+(a-Ae.y)*(a-Ae.y)));for(var rt=0;rt<be;rt++){var Ye=fe[rt];Ye.visible&&Ye!==Se&&Ye.Sj(re,a,oe,x,ue)&&(le=!0,Ye=(re-ue.x)*(re-ue.x)+(a-ue.y)*(a-ue.y),Ye<b&&(b=Ye,E.set(ue)))}return Oe&&(y>b&&E.set(Ae),Je.free(Ae)),Je.free(ue),z&&E.transform(ee),le},Ee.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();Kt.prototype.Gj.call(this)},Ee.v=function(a){if(!ec(this)){Kt.prototype.v.call(this,a),a=null,(this.na===si.Auto||this.na===si.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 z=wu(E,!1);(E instanceof ou||E instanceof si||E instanceof ba||z!==qn)&&E.v(!0)}}}},Ee.Uj=function(){if(!ec(this)){Hs(this,!0),Ld(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},Ee.Uk=function(){if(!(this.l&2048)){Mc(this,!0),dc(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},Ee.Wu=function(){dc(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},Ee.Wl=function(a,y,x,b){var E=this.jg;E.h(0,0,0,0);var z=this.desiredSize,ee=this.minSize;x===void 0&&(x=ee.width,b=ee.height),x=Math.max(x,ee.width),b=Math.max(b,ee.height);var re=this.maxSize;isNaN(z.width)||(a=Math.min(z.width,re.width)),isNaN(z.height)||(y=Math.min(z.height,re.height)),a=Math.max(x,a),y=Math.max(b,y);var oe=this.yb;a=Math.max(a-oe.left-oe.right,0),y=Math.max(y-oe.top-oe.bottom,0);var le=this.O.s;le.length!==0&&this.na.measure(this,a,y,le,E,x,b),a=E.width+oe.left+oe.right,oe=E.height+oe.top+oe.bottom,isFinite(z.width)&&(a=z.width),isFinite(z.height)&&(oe=z.height),a=Math.min(re.width,a),oe=Math.min(re.height,oe),a=Math.max(ee.width,a),oe=Math.max(ee.height,oe),a=Math.max(x,a),oe=Math.max(b,oe),ca(E,a,oe),ca(this.naturalBounds,a,oe),this.Ge(0,0,a,oe)},Ee.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 eh(a){return a.part!==null?a.part.locationObject:null}Ee.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=wu(this,!0);var z=this.measuredBounds;y=z.width,z=z.height;var ee=this.Kg,re=ee.left+ee.right;switch(ee=ee.top+ee.bottom,y===x&&z===b&&(a=qn),a){case qn:(y>x||z>b)&&(this.v(),this.measure(y>x?x:y,z>b?b:z,0,0));break;case ii:this.v(!0),this.measure(x+re,b+ee,0,0);break;case sr:this.v(!0),this.measure(x+re,z+ee,0,0);break;case Ar:this.v(!0),this.measure(y+re,b+ee,0,0)}}this.na.arrange(this,E,this.jg)}},Ee.gh=function(a){var y=this.naturalBounds,x=eh(this);if(Oo(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,E=Je.allocAt(0,0);b--;){var z=y[b];if((z.visible||z===x)&&($n(E.set(a),z.transform),z.ca(E)))return Je.free(E),!0}return Je.free(E),!(this.Ma===null&&this.areaBackground===null)}return!1},Ee.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},Ee.qm=function(a,y){if(y(this,a),a instanceof si){a=a.O.s;for(var x=a.length,b=0;b<x;b++)this.qm(a[b],y)}};function Mf(a,y){dS(a,a,y)}function dS(a,y,x){x(y),y=y.O.s;for(var b=y.length,E=0;E<b;E++){var z=y[E];z instanceof si&&dS(a,z,x)}}function A1(a,y){hS(a,a,y)}function hS(a,y,x){if(x(y),y instanceof si){y=y.O.s;for(var b=y.length,E=0;E<b;E++)hS(a,y[E],x)}}Ee.Nl=function(a){return fS(this,this,a)};function fS(a,y,x){if(x(y))return y;if(y instanceof si){y=y.O.s;for(var b=y.length,E=0;E<b;E++){var z=fS(a,y[E],x);if(z!==null)return z}}return null}Ee.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=wp(this));for(var b=0;b<x;b++){var E=y[b];if(E instanceof si){var z=E.fb(a);if(z!==null)return z}if(E.name===a)return E}return null};function gS(a){a=a.O.s;for(var y=a.length,x=0,b=0;b<y;b++){var E=a[b];E instanceof si?x=Math.max(x,gS(E)):E instanceof oo&&(x=Math.max(x,E.ig/2*E.strokeMiterLimit*E.Df()))}return x}Ee.se=function(){return!(this.type===si.TableRow||this.type===si.TableColumn)};function xh(a){return a.type===si.TableRow||a.type===si.TableColumn}Ee.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),iu(this)))return null;var b=this.naturalBounds,E=1/this.Df(),z=this.se(),ee=z?a:$n(Je.allocAt(a.x,a.y),this.transform),re=this.diagram,oe=10,le=5;if(re!==null&&(oe=re.Ql("extraTouchArea"),le=oe/2),Oo(-(le*E),-(le*E),b.width+oe*E,b.height+oe*E,ee.x,ee.y)){if(!this.isAtomic){E=this.O.s;var ue=E.length;if(re=Je.alloc(),le=(oe=this.isClipping&&this.na===si.Spot)?this.Pb():null,oe&&(le.se()?$n(re.set(a),le.transform):re.set(a),!le.ca(re)))return Je.free(re),z||Je.free(ee),null;for(var fe=eh(this);ue--;){var Se=E[ue];if((Se.visible||Se===fe)&&(Se.se()?$n(re.set(a),Se.transform):re.set(a),!oe||Se!==le)){var be=null;if(Se instanceof si?be=Se.ic(re,y,x):Se.pickable===!0&&Se.ca(re)&&(be=Se),be!==null&&(y!==null&&(be=y(be)),be!==null&&(x===null||x(be))))return Je.free(re),z||Je.free(ee),be}}Je.free(re)}return this.background===null&&this.areaBackground===null?(z||Je.free(ee),null):(a=Oo(0,0,b.width,b.height,ee.x,ee.y)?this:null,z||Je.free(ee),a)}return z||Je.free(ee),null},Ee.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,z=this.se(),ee=z?a:$n(Je.allocAt(a.x,a.y),this.transform);if(E=Oo(0,0,E.width,E.height,ee.x,ee.y),xh(this)||E){if(!this.isAtomic){for(var re=this.O.s,oe=re.length,le=Je.alloc(),ue=eh(this);oe--;){var fe=re[oe];if(fe.visible||fe===ue){fe.se()?$n(le.set(a),fe.transform):le.set(a);var Se=fe;fe=fe instanceof si?fe:null,(fe!==null?fe.ji(le,y,x,b):Se.ca(le))&&Se.pickable!==!1&&(y!==null&&(Se=y(Se)),Se===null||x!==null&&!x(Se)||b.add(Se))}}Je.free(le)}return z||Je.free(ee),E&&(this.background!==null||this.areaBackground!==null)}return z||Je.free(ee),!1},Ee.Cf=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var ee=z;if(z===void 0&&(ee=Hr.alloc(),ee.reset()),ee.multiply(this.transform),this.fh(a,ee))return xv(this,y,x,E),z===void 0&&Hr.free(ee),!0;if(this.Yc(a,ee)){if(!this.isAtomic)for(var re=eh(this),oe=this.O.s,le=oe.length;le--;){var ue=oe[le];if(ue.visible||ue===re){var fe=ue.actualBounds,Se=this.naturalBounds;fe.x>Se.width||fe.y>Se.height||0>fe.x+fe.width||0>fe.y+fe.height||(fe=ue,ue=ue instanceof si?ue:null,Se=Hr.alloc(),Se.set(ee),(ue!==null?ue.Cf(a,y,x,b,E,Se):$s(fe,a,b,Se))&&(y!==null&&(fe=y(fe)),fe===null||x!==null&&!x(fe)||E.add(fe)),Hr.free(Se))}}return z===void 0&&Hr.free(ee),b}return z===void 0&&Hr.free(ee),!1};function xv(a,y,x,b){for(var E=a.O.s,z=E.length;z--;){var ee=E[z];if(ee.visible){var re=ee.actualBounds,oe=a.naturalBounds;re.x>oe.width||re.y>oe.height||0>re.x+re.width||0>re.y+re.height||(ee instanceof si&&xv(ee,y,x,b),y!==null&&(ee=y(ee)),ee===null||x!==null&&!x(ee)||b.add(ee))}}}Ee.og=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;x===void 0&&(x=null),b===void 0&&(b=null);var ee=this.naturalBounds,re=this.se(),oe=re?a:$n(Je.allocAt(a.x,a.y),this.transform),le=re?y:$n(Je.allocAt(y.x,y.y),this.transform),ue=oe.Bf(le),fe=0<oe.x&&oe.x<ee.width&&0<oe.y&&oe.y<ee.height||Ii(oe.x,oe.y,0,0,0,ee.height)<=ue||Ii(oe.x,oe.y,0,ee.height,ee.width,ee.height)<=ue||Ii(oe.x,oe.y,ee.width,ee.height,ee.width,0)<=ue||Ii(oe.x,oe.y,ee.width,0,0,0)<=ue;if(ee=oe.zd(0,0)<=ue&&oe.zd(0,ee.height)<=ue&&oe.zd(ee.width,0)<=ue&&oe.zd(ee.width,ee.height)<=ue,re||(Je.free(oe),Je.free(le)),fe){if(!this.isAtomic){oe=Je.alloc(),le=Je.alloc(),ue=eh(this);for(var Se=this.O.s,be=Se.length;be--;){var Ae=Se[be];if(Ae.visible||Ae===ue){var Oe=Ae.actualBounds,rt=this.naturalBounds;(!re||!(Oe.x>rt.width||Oe.y>rt.height||0>Oe.x+Oe.width||0>Oe.y+Oe.height))&&(Ae.se()?(Oe=Ae.transform,$n(oe.set(a),Oe),$n(le.set(y),Oe)):(oe.set(a),le.set(y)),Oe=Ae,Ae=Ae instanceof si?Ae:null,(Ae!==null?Ae.og(oe,le,x,b,E,z):Oe.tx(oe,le,E))&&(x!==null&&(Oe=x(Oe)),Oe===null||b!==null&&!b(Oe)||z.add(Oe)))}}Je.free(oe),Je.free(le)}return E?fe:ee}return!1};function wv(a){var y=null;return a instanceof oo&&(y=a.spot1,y===Xo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=ga),y}function Pv(a){var y=null;return a instanceof oo&&(y=a.spot2,y===Xo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=vl),y}Ee.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},Ee.M=function(a){return this.O.M(a)},Ee.Gb=function(a,y){y instanceof dr&&Pt("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&Pt("Cannot make a Panel contain itself: "+this.toString()),Pt("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&Pt("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!==si.Grid||y instanceof oo||Pt("Can only add Shapes to a Grid Panel, not: "+y),this.na!==si.Graduated||y instanceof oo||y instanceof ba||Pt("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 zi),this.ge.add(b,y))}var E=this.O;if(b=-1,x===this){for(var z=-1,ee=this.O.s,re=ee.length,oe=0;oe<re;oe++)if(ee[oe]===y){z=oe;break}if(z!==-1){if(z===a||z+1>=E.count&&a>=E.count)return;E.mb(z),b=z}else Pt("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),ec(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof si&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Dm(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof Di&&(x.Te=!0),x.Te&&x instanceof Di&&(x.wc=null),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||(b!==-1&&x.cb(ki,"elements",this,y,null,b,null),x.cb(ci,"elements",this,null,y,null,a)))};function Cv(a,y){a.l=y?a.l|16777216:a.l&-16777217}Ee.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)},Ee.mb=function(a){0<=a&&this.pc(a,!0)},Ee.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),Hs(this,!1),this.v(),this.$g===b&&(this.$g=null),this.graduatedIntervals=null;var z=this.part;z!==null&&(z.Rh=null,z.ag=NaN,z.Wb(),z instanceof Di&&(b instanceof si?b.qm(b,function(ee,re){Yv(z,re,y)}):Yv(z,b,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(ki,"elements",this,b,null,a,null))},Ee.Fb=function(a){0>a&&Qn(a,">= 0",si,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Ws;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(ci,"rowdefs",this,null,x,null,a)}return y[a]},Ee.oA=function(a){if(0>a&&Qn(a,">= 0",si,"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(ki,"rowdefs",this,x,null,a,null),this.v()}}};function pS(a,y,x){var b=a.rowDefs;if(!(0>y)){if(b[y]=x instanceof Ws?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Ee.Eb=function(a){0>a&&Qn(a,">= 0",si,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Ws;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(ci,"coldefs",this,null,x,null,a)}return y[a]},Ee.jA=function(a){if(0>a&&Qn(a,">= 0",si,"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(ki,"coldefs",this,x,null,a,null),this.v()}}};function mS(a,y,x){var b=a.colDefs;if(!(0>y)){if(b[y]=x instanceof Ws?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Ee.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Bm(y,a),this},Ee.Hy=function(a,y){return(a=this.Fb(a))&&Bm(a,new Ws(y)),this},Ee.By=function(a,y){return(a=this.Eb(a))&&Bm(a,new Ws(y)),this},Ee.nz=function(a){if(0>a||this.type!==si.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,b=x.length,E=this.topIndex;E<b;E++){var z=x[E];if(z!==void 0&&(y+=z.total,a<y))break}return E},Ee.fz=function(a){if(0>a||this.type!==si.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,b=x.length,E=this.leftIndex;E<b;E++){var z=x[E];if(z!==void 0&&(y+=z.total,a<y))break}return E},Ee.Fz=function(a,y){if(y===void 0&&(y=new Je(NaN,NaN)),this.type!==si.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)},Ee.Gz=function(a){if(this.type!==si.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function vS(a){return a=a.allBindings,a!==null&&a._isFrozen}function Nc(a){var y=a.allBindings;if(y===null)a.data!==null&&Pt("Template cannot have .data be non-null: "+a),a.allBindings=y=new Mn;else if(y._isFrozen)return;var x=new Mn;Cv(a,!1),a.qm(a,function(le,ue){ue.th();var fe=ue.localBindings;if(fe!==null)for($f(ue,!1),fe=fe.iterator;fe.next();){var Se=fe.value;Se.mode===Kp&&$f(ue,!0);var be=Se.sourceName;be!==null&&(be==="/"&&Cv(le,!0),be=Fx(Se,le,ue),be!==null&&(x.add(be),be.srcBindings===null&&(be.srcBindings=new Mn),be.srcBindings.add(Se))),y.add(Se)}if(ue instanceof si&&ue.type===si.Table){if(0<ue.rowCount){for(le=ue.rowDefs,fe=le.length,Se=0;Se<fe;Se++)if(be=le[Se],be!==void 0&&be.be!==null)for(var Ae=be.be.iterator;Ae.next();){var Oe=Ae.value;Oe.xd=be,Oe.to=2,Oe.wl=be.index,y.add(Oe)}}if(0<ue.columnCount){for(ue=ue.colDefs,le=ue.length,fe=0;fe<le;fe++)if(Se=ue[fe],Se!==void 0&&Se.be!==null)for(be=Se.be.iterator;be.next();)Ae=be.value,Ae.xd=Se,Ae.to=1,Ae.wl=Se.index,y.add(Ae)}}});for(var b=x.iterator;b.next();){var E=b.value;if(E.srcBindings!==null){$f(E,!0);for(var z=E.srcBindings.iterator;z.next();){var ee=z.value;E.localBindings===null&&(E.localBindings=new Mn),E.localBindings.add(ee)}}E.srcBindings=null}for(b=y.iterator;b.next();)if(E=b.value,z=E.xd,z!==null){E.xd=null;var re=E.targetProperty,oe=re.indexOf(".");0<oe&&z instanceof si&&(ee=re.substring(0,oe),re=re.substr(oe+1),oe=z.fb(ee),oe!==null?(z=oe,E.targetProperty=re):Xn('Warning: unable to find GraphObject named "'+ee+'" for Binding: '+E.toString())),z instanceof Ws?(ee=xr(z.panel),E.Ai=ee===void 0?-1:ee,z.panel.bindingId=E.Ai):z instanceof Kt?(ee=xr(z),E.Ai=ee===void 0?-1:ee,z.bindingId=E.Ai):Pt("Unknown type of binding target: "+z)}y.freeze(),a instanceof dr&&a.Zc()&&a.Va()}Ee.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return A1(y,function(x){x instanceof si&&(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&&Nc(y),y},Ee.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 z=this,ee=x.Ai;if(ee!==-1){if(z=this.ks(ee),z===null)continue}else x.xd!==null&&(z=x.xd);if(E==="/"?b=z.part:E==="."?b=z:E===".."&&(b=z.panel),E=x.to,E!==0){if(!(z instanceof si))continue;E===1?z=z.Eb(x.wl):E===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,b)}}},Ee.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function L1(a,y){a=a.O.s;for(var x=a.length,b=y.length,E=0,z=null;E<x&&(z=a[E],!(z instanceof si&&z.data!==null));)E++,z=a[E];if(x-E!==b)return!0;if(z===null)return 0<b;for(var ee=0;E<x&&ee<b;){if(z=a[E],!(z instanceof si)||z.data!==y[ee])return!0;E++,ee++}return!1}function wp(a){if(a.type===si.Spot||a.type===si.Auto)return Math.min(a.O.length,1);if(a.type===si.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var b=a.M(x);if(!(b instanceof oo&&b.isPanelMain))break}return x}return a.type===si.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof si&&xh(a))?1:0}Ee.mv=function(){for(var a=wp(this);this.O.length>a;)this.pc(this.O.length-1,!1);yS(this,this.itemArray)};function yS(a,y){var x=wp(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++)Fm(a,y[b],b,!0)}else{b=x;for(var E=0;E<y.length;E++,b++){var z=y[E],ee=b<a.O.length?a.O.M(b):null;if(ee instanceof si){if(ee.data!==z){var re=Ev(a,ee.data),oe=Ev(a,z),le=oe!==re;le||(re=Av(a,re),le=Av(a,oe)!==re),le?(a.pc(b,!1),Fm(a,z,E,!1)):ee.data=z}}else Fm(a,z,E,!1)}for(;b<a.O.length;)a.pc(b,!1);a.$g=null,bv(a,x,0),ec(a)||a.v(),a.graduatedIntervals=null,a.If()||Dm(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof Di&&(y.Te=!0),y.Te&&y instanceof Di&&(y.wc=null))}}function Fm(a,y,x,b){if(!(y==null||0>x)){var E=Ev(a,y);if(E=Av(a,E),E!==null){if(Nc(E),E=E.copy(),E.l&16777216){var z=a.ih();z!==null&&Cv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new zi),a.ge.add(y,E)),z=x+wp(a),a.Gb(z,E),b&&(E.ub=y,bv(a,z,x),E.ub=null),E.data=y}}}function bv(a,y,x){for(a=a.O;y<a.length;){var b=a.M(y);if(b instanceof si){var E=y,z=x;b.type===si.TableRow?b.row=E:b.type===si.TableColumn&&(b.column=E),b.itemIndex=z}y++,x++}}function Ev(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=As(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;Pt("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function Av(a,y){var x=a.itemTemplateMap,b=null;return x!==null&&(b=x.I(y)),b===null&&(x!==null&&(b=x.I("")),b===null&&(SS||(SS=!0,Xn('No item template Panel found for category "'+y+'" on '+a),Xn(" Using default item template."),a=new si,y=new ba,y.bind(new ks("text","",Ki)),a.add(y),xS=a),b=xS)),b}function Dm(a,y,x){var b=y.enabledChanged;if(b!==null&&b(y,x),y instanceof si){y=y.O.s,b=y.length;for(var E=0;E<b;E++){var z=y[E];x&&z instanceof si&&!z.isEnabled||Dm(a,z,x)}}}function yd(a,y){y.name=a,Zc.add(a,y)}tt.Object.defineProperties(si.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===si.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&&Qn(a,">= 0",si,"padding"),a=new Gi(a)):(0>a.left&&Qn(a.left,">= 0",si,"padding:value.left"),0>a.right&&Qn(a.right,">= 0",si,"padding:value.right"),0>a.top&&Qn(a.top,">= 0",si,"padding:value.top"),0>a.bottom&&Qn(a.bottom,">= 0",si,"padding:value.bottom"));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.v(),this.g("padding",y,a))}},defaultAlignment:{get:function(){return this.Tm},set:function(a){var y=this.Tm;y.D(a)||(this.Tm=a=a.J(),this.v(),this.g("defaultAlignment",y,a))}},defaultStretch:{get:function(){return this.Uf},set:function(a){var y=this.Uf;y!==a&&(this.Uf=a,this.v(),this.g("defaultStretch",y,a))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:Bs},set:function(a){typeof a=="number"&&(a=new Gi(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new gc),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 ia)&&(a instanceof ia&&a.freeze(),this.T===null&&(this.T=new gc),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 gc),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 z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||Pt("defaultRowSeparatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new gc),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 ia)&&(a instanceof ia&&a.freeze(),this.T===null&&(this.T=new gc),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 gc),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 z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||Pt("defaultColumnSeparatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new gc),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 gc),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||Pt("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Ec(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()||Pt("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Ec(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 th),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),kl(this)&&(a=this.part,a!==null&&Ma(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 th),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),kl(this)&&(a=this.part,a!==null&&Ma(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 th),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 th),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 th,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 th,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 th,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 th,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 gc),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new gc),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:Om},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new gc),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:Om},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new gc),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)&&Pt("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new gc),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)&&Pt("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new gc),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 dr&&!(this instanceof Yo);Nc(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof fi?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof dr&&(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 qf),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&L1(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&hy(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&dy(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||yS(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 zi}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof dr||a.isPanelMain)&&Pt("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(););co(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&&(co(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&&Dm(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))}}}),tt.Object.defineProperties(si,{Position:{get:function(){return Zc.I("Position")}},Horizontal:{get:function(){return Zc.I("Horizontal")}},Vertical:{get:function(){return Zc.I("Vertical")}},Spot:{get:function(){return Zc.I("Spot")}},Auto:{get:function(){return Zc.I("Auto")}},Table:{get:function(){return Zc.I("Table")}},Viewbox:{get:function(){return Zc.I("Viewbox")}},TableRow:{get:function(){return Zc.I("TableRow")}},TableColumn:{get:function(){return Zc.I("TableColumn")}},Link:{get:function(){return Zc.I("Link")}},Grid:{get:function(){return Zc.I("Grid")}},Graduated:{get:function(){return Zc.I("Graduated")}}}),si.prototype.rebuildItemElements=si.prototype.mv,si.prototype.findItemPanelForData=si.prototype.sx,si.prototype.updateTargetBindings=si.prototype.La,si.prototype.copyTemplate=si.prototype.Uy,si.prototype.graduatedValueForPoint=si.prototype.Gz,si.prototype.graduatedPointForValue=si.prototype.Fz,si.prototype.findColumnForLocalX=si.prototype.fz,si.prototype.findRowForLocalY=si.prototype.nz,si.prototype.addColumnDefinition=si.prototype.By,si.prototype.addRowDefinition=si.prototype.Hy,si.prototype.addRowColumnDefinition=si.prototype.Gy,si.prototype.removeColumnDefinition=si.prototype.jA,si.prototype.getColumnDefinition=si.prototype.Eb,si.prototype.removeRowDefinition=si.prototype.oA,si.prototype.getRowDefinition=si.prototype.Fb,si.prototype.removeAt=si.prototype.mb,si.prototype.remove=si.prototype.remove,si.prototype.insertAt=si.prototype.Gb,si.prototype.elt=si.prototype.M,si.prototype.add=si.prototype.add,si.prototype.findObject=si.prototype.fb,si.prototype.findInVisualTree=si.prototype.Nl,si.prototype.walkVisualTreeFrom=si.prototype.qm,si.prototype.findMainElement=si.prototype.Pb;var SS=!1,xS=null,Zc=new zi;si.className="Panel",si.definePanelLayout=yd,yd("Position",new Sm),yd("Vertical",new wm),yd("Auto",new Cm),yd("Link",new km);function th(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}th.prototype.copy=function(){var a=new th;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},th.className="GradPanelSettings";function gc(){this.Pc=[],this.Oc=[],this.j=this.ob=Om,this.hb=this.Hb=0,this.Qp=Bs,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}gc.prototype.copy=function(a){for(var y=new gc,x=this.Pc,b=x.length,E=y.Pc,z=0;z<b;z++)if(x[z]!==void 0){var ee=x[z].copy();ee.wi(a),E[z]=ee}for(x=this.Oc,b=x.length,E=y.Oc,z=0;z<b;z++)x[z]!==void 0&&(ee=x[z].copy(),ee.wi(a),E[z]=ee);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},gc.className="TablePanelSettings";function Ws(a){yr(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Xo,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Lv,this.hg=Qr,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))}Ws.prototype.copy=function(){var a=new Ws;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=bi(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function Bm(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=bi(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}Ee=Ws.prototype,Ee.qb=function(a){a.classType===Ws&&(this.sizing=a)},Ee.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+xr(this)},Ee.wi=function(a){this.Me=a},Ee.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)},Ee.Wc=function(){var a=0,y=this.Me,x=0,b=this.isRow;if(y!==null&&y.type===si.Table)for(var E=b?y.rowDefs.length:y.colDefs.length,z=0;z<E;z++){var ee=b?y.rowDefs[z]:y.colDefs[z];if(ee!==void 0&&ee.oa!==0){x=ee.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)},Ee.Ob=function(a,y,x){var b=this.Me;if(b!==null&&(b.cb(ri,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===Lv){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}Ee.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new ks(a,y,x,b):E=a,E.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&vS(y)&&Pt("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+E+" on "+a)),this.be===null&&(this.be=new Mn),this.be.add(E),this},tt.Object.defineProperties(Ws.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&&Qn(a,">= 0",Ws,"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&&Qn(a,">= 0",Ws,"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))&&Qn(a,">= 0",Ws,"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&&Qn(a,">= 0",Ws,"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 Gi(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&&tg(a,"RowColumnDefinition.separatorStroke"),a instanceof ia&&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 z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||Pt("separatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}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&&tg(a,"RowColumnDefinition.background"),a instanceof ia&&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}}}),Ws.prototype.computeEffectiveSpacing=Ws.prototype.Wc,Ws.prototype.computeEffectiveSpacingTop=Ws.prototype.Io;var Lv=new Xt(Ws,"Default",0),Pp=new Xt(Ws,"None",1),Om=new Xt(Ws,"ProportionalExtra",2);Ws.className="RowColumnDefinition",Ws.Default=Lv,Ws.None=Pp,Ws.ProportionalExtra=Om;function oo(a,y){Kt.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)}Lt(oo,Kt),oo.prototype.cloneProtected=function(a){Kt.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=bi(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 kf(a){a.Na===null?a.Na=new Nv:a.Na.nc&&(a.Na=a.Na.copy())}Ee=oo.prototype,Ee.th=function(){Kt.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},Ee.qb=function(a){a===qn||a===ir||a===Eo||a===Qr?this.geometryStretch=a:Kt.prototype.qb.call(this,a)},Ee.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+xr(this)};function Fg(a,y,x,b){var E=x.length;if(!(4>E)){var z=b.measuredBounds,ee=Math.max(1,z.width);z=z.height;for(var re=x[0],oe=x[1],le,ue,fe,Se,be,Ae,Oe=0,rt=ei(),Ye=2;Ye<E;Ye+=2)le=x[Ye],ue=x[Ye+1],fe=le-re,re=ue-oe,fe===0&&(fe=.001),Se=re/fe,be=Math.atan2(re,fe),Ae=Math.sqrt(fe*fe+re*re),rt.push([fe,be,Se,Ae]),Oe+=Ae,re=le,oe=ue;re=x[0],oe=x[1],fe=b.measuredBounds.width,b instanceof oo&&(fe-=b.strokeWidth),1>fe&&(fe=1),E=x=fe,le=ee/2,ue=le!==0,Ye=0,Ae=rt[Ye],fe=Ae[0],be=Ae[1],Se=Ae[2],Ae=Ae[3];for(var mt=0;.1<=Oe;){if(mt===0&&(ue?(E=x,E-=le,Oe-=le,ue=!1):E=x,E===0&&(E=1)),E>Oe){yi(rt);return}E>Ae?(mt=E-Ae,E=Ae):mt=0;var wt=Math.sqrt(E*E/(1+Se*Se));if(0>fe&&(wt=-wt),re+=wt,oe+=Se*wt,a.translate(re,oe),a.rotate(be),a.translate(-(ee/2),-(z/2)),mt===0&&b.hh(a,y),a.translate(ee/2,z/2),a.rotate(-be),a.translate(-re,-oe),Oe-=E,Ae-=E,mt!==0){if(Ye++,Ye===rt.length){yi(rt);return}Ae=rt[Ye],fe=Ae[0],be=Ae[1],Se=Ae[2],Ae=Ae[3],E=mt}}yi(rt)}}Ee.hh=function(a,y){var x=this.xc,b=this.Ui;if(x!==null||b!==null){var E=this.ua;if(E!==null){a.yc();var z=this.actualBounds,ee=this.naturalBounds;b!==null&&ds(this,a,b,!0,!1,ee,z);var re=this.part,oe=this.ig;if(x===null||oe!==0||re===null||!this.isPanelMain&&re.Pb()!==this||(oe=re.type===si.Link&&re instanceof Yo&&re.category==="Selection"&&re.adornedObject instanceof oo&&re.adornedPart.Pb()===re.adornedObject?re.adornedObject.strokeWidth:0),oe===0&&(x=null),x!==null&&oe!==0&&(ds(this,a,x,!1,!1,ee,z),a.lineWidth=oe,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,re&&y.Gf("drawShadows")&&(z=re.isShadowed),a.Il===!1&&(z=!1),re=!0,x===null||b!==null&&b!=="transparent"||(re=!1),ee=!1,oe=this.strokeDashArray,oe!==null&&(ee=!0,a.js(oe,this.strokeDashOffset)),E.type===di.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===di.u){var le=E.startX;oe=E.startY;var ue=E.endX,fe=E.endY;E=Math.min(le,ue);var Se=Math.min(oe,fe);le=Math.abs(ue-le),oe=Math.abs(fe-oe),a.beginPath(),a.rect(E,Se,le,oe),b!==null&&a.ng(b),x!==null&&(re&&z&&Md(a),a.jk(),re&&z&&_d(a)),a.Se()}else if(E.type===di.F)le=E.startX,oe=E.startY,ue=E.endX,fe=E.endY,E=Math.abs(ue-le)/2,Se=Math.abs(fe-oe)/2,le=Math.min(le,ue)+E,oe=Math.min(oe,fe)+Se,a.beginPath(),a.moveTo(le,oe-Se),a.bezierCurveTo(le+Zt.wg*E,oe-Se,le+E,oe-Zt.wg*Se,le+E,oe),a.bezierCurveTo(le+E,oe+Zt.wg*Se,le+Zt.wg*E,oe+Se,le,oe+Se),a.bezierCurveTo(le-Zt.wg*E,oe+Se,le-E,oe+Zt.wg*Se,le-E,oe),a.bezierCurveTo(le-E,oe-Zt.wg*Se,le-Zt.wg*E,oe-Se,le,oe-Se),a.closePath(),b!==null&&a.ng(b),x!==null&&(re&&z&&Md(a),a.jk(),re&&z&&_d(a)),a.Se();else if(E.type===di.o)for(E=E.figures,oe=E.length,Se=0;Se<oe;Se++){le=E.s[Se],a.beginPath(),a.moveTo(le.startX,le.startY),ue=le.segments.s,fe=ue.length;for(var be=null,Ae=0;Ae<fe;Ae++){var Oe=ue[Ae];switch(Oe.type){case ws:a.moveTo(Oe.endX,Oe.endY);break;case ya:a.lineTo(Oe.endX,Oe.endY);break;case ol:a.bezierCurveTo(Oe.point1X,Oe.point1Y,Oe.point2X,Oe.point2Y,Oe.endX,Oe.endY);break;case He:a.quadraticCurveTo(Oe.point1X,Oe.point1Y,Oe.endX,Oe.endY);break;case _e:if(Oe.radiusX===Oe.radiusY){var rt=Math.PI/180;a.arc(Oe.point1X,Oe.point1Y,Oe.radiusX,Oe.startAngle*rt,(Oe.startAngle+Oe.sweepAngle)*rt,0>Oe.sweepAngle,be!==null?be.endX:le.startX,be!==null?be.endY:le.startY)}else if(be=wl(Oe,le),rt=be.length,rt===0)a.lineTo(Oe.centerX,Oe.centerY);else for(var Ye=0;Ye<rt;Ye++){var mt=be[Ye];Ye===0&&a.lineTo(mt[0],mt[1]),a.bezierCurveTo(mt[2],mt[3],mt[4],mt[5],mt[6],mt[7])}break;case lt:if(Ye=rt=0,be!==null&&be.type===_e){if(be=wl(be,le),mt=be.length,mt===0){a.lineTo(Oe.endX,Oe.endY);break}be=be[mt-1]||null,be!==null&&(rt=be[6],Ye=be[7])}else rt=be!==null?be.endX:le.startX,Ye=be!==null?be.endY:le.startY;if(be=Il(Oe,le,rt,Ye),rt=be.length,rt===0){a.lineTo(Oe.endX,Oe.endY);break}for(Ye=0;Ye<rt;Ye++)mt=be[Ye],a.bezierCurveTo(mt[2],mt[3],mt[4],mt[5],mt[6],mt[7]);break;default:Pt("Segment not of valid type: "+Oe.type)}Oe.isClosed&&a.closePath(),be=Oe}ue=le.isFilled,z?le.isShadowed?(ue===!0&&b!=="transparent"&&b!==null&&a.ng(b,le.isEvenOdd),x!==null&&(ue&&re&&Md(a),a.jk(),ue&&re&&_d(a))):(Md(a),ue&&b!=="transparent"&&b!==null&&a.ng(b,le.isEvenOdd),x!==null&&a.jk(),_d(a)):(ue&&b!==null&&a.ng(b,le.isEvenOdd),x!==null&&a.jk()),a.Se(Se)}if(ee&&a.fs(),this.pathPattern!==null){if(x=this.pathPattern,x.measure(1/0,1/0),b=x.measuredBounds,x.arrange(0,0,b.width,b.height),z=this.geometry,a.save(),a.beginPath(),b=ei(),z.type===di.j)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.endY),Fg(a,y,b,x);else if(z.type===di.o)for(z=z.figures.iterator;z.next();){for(re=z.value,b.length=0,b.push(re.startX),b.push(re.startY),ee=re.startX,E=re.startY,oe=ee,Se=E,le=re.segments.s,ue=le.length,fe=0;fe<ue;fe++){switch(Ae=le[fe],Ae.type){case ws:Fg(a,y,b,x),b.length=0,b.push(Ae.endX),b.push(Ae.endY),ee=Ae.endX,E=Ae.endY,oe=ee,Se=E;break;case ya:b.push(Ae.endX),b.push(Ae.endY),ee=Ae.endX,E=Ae.endY;break;case ol:Zt.Qe(ee,E,Ae.point1X,Ae.point1Y,Ae.point2X,Ae.point2Y,Ae.endX,Ae.endY,.5,b),ee=Ae.endX,E=Ae.endY;break;case He:Zt.ep(ee,E,Ae.point1X,Ae.point1Y,Ae.endX,Ae.endY,.5,b),ee=Ae.endX,E=Ae.endY;break;case _e:if(Oe=wl(Ae,re),be=Oe.length,be===0){b.push(Ae.centerX),b.push(Ae.centerY),ee=Ae.centerX,E=Ae.centerY;break}for(rt=0;rt<be;rt++)Ye=Oe[rt],Zt.Qe(ee,E,Ye[2],Ye[3],Ye[4],Ye[5],Ye[6],Ye[7],.5,b),ee=Ye[6],E=Ye[7];break;case lt:if(Oe=Il(Ae,re,ee,E),be=Oe.length,be===0){b.push(Ae.endX),b.push(Ae.endY),ee=Ae.endX,E=Ae.endY;break}for(rt=0;rt<be;rt++)Ye=Oe[rt],Zt.Qe(ee,E,Ye[2],Ye[3],Ye[4],Ye[5],Ye[6],Ye[7],.5,b),ee=Ye[6],E=Ye[7];break;default:Pt("Segment not of valid type: "+Ae.type)}Ae.isClosed&&(b.push(oe),b.push(Se),Fg(a,y,b,x))}Fg(a,y,b,x)}else if(z.type===di.u)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.startY),b.push(z.endX),b.push(z.endY),b.push(z.startX),b.push(z.endY),b.push(z.startX),b.push(z.startY),Fg(a,y,b,x);else if(z.type===di.F){if(E=new Os,E.startX=z.endX,E.startY=(z.startY+z.endY)/2,ee=new Io(_e),ee.startAngle=0,ee.sweepAngle=360,ee.centerX=(z.startX+z.endX)/2,ee.centerY=(z.startY+z.endY)/2,ee.radiusX=Math.abs(z.startX-z.endX)/2,ee.radiusY=Math.abs(z.startY-z.endY)/2,E.add(ee),z=wl(ee,E),re=z.length,re===0)b.push(ee.centerX),b.push(ee.centerY);else for(ee=E.startX,E=E.startY,oe=0;oe<re;oe++)Se=z[oe],Zt.Qe(ee,E,Se[2],Se[3],Se[4],Se[5],Se[6],Se[7],.5,b),ee=Se[6],E=Se[7];Fg(a,y,b,x)}yi(b),a.restore(),a.Vc(!1)}}}},Ee.kk=function(a,y,x){return!Kt.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)},Ee.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:Kt.prototype.nk.call(this,a)},Ee.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)}},Ee.ga=function(a,y){if(y===void 0&&(y=new Je),a instanceof Ui){a.Mc()&&Pt("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},Ee.mi=function(a){a===void 0&&(a=new Pn);var y=this.naturalBounds,x=this.oe;y=Pn.allocAt(y.x,y.y,y.width,y.height);var b=this.strokeWidth;return y.Bc(b/2,b/2),b=Je.allocAt(y.x,y.y).transform(x),a.h(b.x,b.y,0,0),b.h(y.right,y.y).transform(x),ko(a,b.x,b.y,0,0),b.h(y.right,y.bottom).transform(x),ko(a,b.x,b.y,0,0),b.h(y.x,y.bottom).transform(x),ko(a,b.x,b.y,0,0),Pn.free(y),Je.free(b),a},Ee.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!==di.j||y||(E+=2);var z=Pn.alloc();if(z.assign(b),z.Bc(E+2,E+2),!z.ca(a))return Pn.free(z),!1;if(b=E+1e-4,x.type===di.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:(Pn.free(z),Zt.Yb(x.startX,x.startY,x.endX,x.endY,E,a.x,a.y));if(x.type===di.u){y=x.startX;var ee=x.startY,re=x.endX;if(x=x.endY,z.x=Math.min(y,re),z.y=Math.min(ee,x),z.width=Math.abs(re-y),z.height=Math.abs(x-ee),this.fill===null){if(z.Bc(-b,-b),z.ca(a))return Pn.free(z),!1;z.Bc(b,b)}return this.stroke!==null&&z.Bc(E,E),a=z.ca(a),Pn.free(z),a}if(x.type===di.F){ee=x.startX,E=x.startY,re=x.endX;var oe=x.endY;if(x=Math.min(ee,re),y=Math.min(E,oe),ee=Math.abs(re-ee)/2,E=Math.abs(oe-E)/2,x=a.x-(x+ee),y=a.y-(y+E),this.fill===null){if(ee-=b,E-=b,0>=ee||0>=E||1>=x*x/(ee*ee)+y*y/(E*E))return Pn.free(z),!1;ee+=b,E+=b}return this.stroke!==null&&(ee+=b,E+=b),Pn.free(z),0>=ee||0>=E?!1:1>=x*x/(ee*ee)+y*y/(E*E)}if(x.type===di.o)return Pn.free(z),this.fill===null?jl(x,a.x,a.y,E):_l(x,a,E,1<this.strokeWidth,y);Pt("Unknown Geometry type: "+x.type)},Ee.Wl=function(a,y,x,b){var E=this.desiredSize,z=this.ig;if(a=Math.max(a,0),y=Math.max(y,0),this.Rd!==null)var ee=this.geometry.bounds;else{var re=this.figure,oe=kv[re];if(oe===void 0){var le=Zt.Ze[re];typeof le=="string"&&(le=Zt.Ze[le]),typeof le=="function"?(oe=le(null,100,100),kv[re]=oe):Pt("Unsupported Figure: "+re)}ee=oe.bounds}re=ee.width,oe=ee.height,le=ee.width;var ue=ee.height;switch(wu(this,!0)){case qn:b=x=0;break;case ii:le=Math.max(a-z,0),ue=Math.max(y-z,0);break;case sr:le=Math.max(a-z,0),b=0;break;case Ar:x=0,ue=Math.max(y-z,0)}isFinite(E.width)&&(le=E.width),isFinite(E.height)&&(ue=E.height);var fe=this.maxSize,Se=this.minSize;switch(x=Math.max(x-z,Se.width),b=Math.max(b-z,Se.height),le=Math.min(fe.width,le),ue=Math.min(fe.height,ue),le=isFinite(le)?Math.max(x,le):Math.max(re,x),ue=isFinite(ue)?Math.max(b,ue):Math.max(oe,b),x=Mv(this),x){case qn:break;case ii:re=le,oe=ue;break;case ir:x=Math.min(le/re,ue/oe),isFinite(x)||(x=1),re*=x,oe*=x;break;default:Pt(x+" is not a valid geometryStretch.")}this.Rd!==null?(re===0&&(re=.001),oe===0&&(oe=.001),x=this.Rd!==null?this.Rd:this.ua,ee=x.bounds,b=re/ee.width,ee=oe/ee.height,isFinite(b)||(b=1),isFinite(ee)||(ee=1),this.ua=b===1&&ee===1?x:x.copy().scale(b,ee)):this.ua!==null&&Zt.$(this.ua.Sk,a-z)&&Zt.$(this.ua.Rk,y-z)||(this.ua=oo.makeGeometry(this,re,oe)),ee=this.ua.bounds,a===1/0||y===1/0?this.Ge(ee.x-z/2,ee.y-z/2,a===0&&re===0?0:ee.width+z,y===0&&oe===0?0:ee.height+z):this.Ge(-(z/2),-(z/2),le+z,ue+z),E.w()?(le=E.width,ue=E.height,le=Math.min(fe.width,le),ue=Math.min(fe.height,ue),le=Math.max(Se.width,le),ue=Math.max(Se.height,ue),this.dc.h(0,0,le,ue)):this.dc.assign(ee)};function Mv(a){var y=a.geometryStretch;return a.Rd!==null?y===Qr?ii:y:y===Qr?kv[a.figure].defaultStretch:y}Ee.eh=function(a,y,x,b){Ul(this,a,y,x,b)},Ee.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Ee.Sj=function(a,y,x,b,E){var z=this.transform,ee=1/(z.m11*z.m22-z.m12*z.m21),re=z.m22*ee,oe=-z.m12*ee,le=-z.m21*ee,ue=z.m11*ee,fe=ee*(z.m21*z.dy-z.m22*z.dx),Se=ee*(z.m12*z.dx-z.m11*z.dy);z=a*re+y*le+fe,ee=a*oe+y*ue+Se,re=x*re+b*le+fe,oe=x*oe+b*ue+Se,fe=this.ig/2,le=this.ua,le===null&&(this.measure(1/0,1/0),le=this.ua);var be=le.bounds;if(ue=!1,le.type===di.j)if(1.5>=this.strokeWidth)ue=Zt.Ve(le.startX,le.startY,le.endX,le.endY,z,ee,re,oe,E);else{if(le.startX===le.endX?(b=fe,ue=0):(y=(le.endY-le.startY)/(le.endX-le.startX),ue=fe/Math.sqrt(1+y*y),b=ue*y),y=ei(),a=new Je,Zt.Ve(le.startX+b,le.startY+ue,le.endX+b,le.endY+ue,z,ee,re,oe,a)&&y.push(a),a=new Je,Zt.Ve(le.startX-b,le.startY-ue,le.endX-b,le.endY-ue,z,ee,re,oe,a)&&y.push(a),a=new Je,Zt.Ve(le.startX+b,le.startY+ue,le.startX-b,le.startY-ue,z,ee,re,oe,a)&&y.push(a),a=new Je,Zt.Ve(le.endX+b,le.endY+ue,le.endX-b,le.endY-ue,z,ee,re,oe,a)&&y.push(a),re=y.length,re===0)return yi(y),!1;for(ue=!0,oe=1/0,b=0;b<re;b++)a=y[b],x=(a.x-z)*(a.x-z)+(a.y-ee)*(a.y-ee),x<oe&&(oe=x,E.x=a.x,E.y=a.y);yi(y)}else if(le.type===di.u)ue=Zt.Ff(be.x-fe,be.y-fe,be.x+be.width+fe,be.y+be.height+fe,z,ee,re,oe,E);else if(le.type===di.F){y=Pn.allocAt(be.x,be.y,be.width,be.height).Bc(fe,fe);e:if(y.width===0)ue=Zt.Ve(y.x,y.y,y.x,y.y+y.height,z,ee,re,oe,E);else if(y.height===0)ue=Zt.Ve(y.x,y.y,y.x+y.width,y.y,z,ee,re,oe,E);else{if(a=y.width/2,le=y.height/2,b=y.x+a,ue=y.y+le,x=9999,z!==re&&(x=(ee-oe)/(z-re)),9999>Math.abs(x)){if(oe=ee-ue-x*(z-b),0>a*a*x*x+le*le-oe*oe){E.x=NaN,E.y=NaN,ue=!1;break e}fe=Math.sqrt(a*a*x*x+le*le-oe*oe),re=(-(a*a*x*oe)+a*le*fe)/(le*le+a*a*x*x)+b,a=(-(a*a*x*oe)-a*le*fe)/(le*le+a*a*x*x)+b,le=x*(re-b)+oe+ue,oe=x*(a-b)+oe+ue,Math.abs((z-re)*(z-re))+Math.abs((ee-le)*(ee-le))<Math.abs((z-a)*(z-a))+Math.abs((ee-oe)*(ee-oe))?(E.x=re,E.y=le):(E.x=a,E.y=oe)}else{if(re=le*le,oe=z-b,re-=re/(a*a)*oe*oe,0>re){E.x=NaN,E.y=NaN,ue=!1;break e}oe=Math.sqrt(re),re=ue+oe,oe=ue-oe,Math.abs(re-ee)<Math.abs(oe-ee)?(E.x=z,E.y=re):(E.x=z,E.y=oe)}ue=!0}Pn.free(y)}else if(le.type===di.o){Se=Je.alloc();var Ae=re-z,Oe=oe-ee,rt=Ae*Ae+Oe*Oe,Ye=z,mt=ee;if(0<rt&&be.contains(Ye,mt)&&(Se.x=Ye,Se.y=mt,this.ca(Se)))for(Ae!==0&&.5>Math.abs(Ae)?(Oe*=.5/Ae,Ae=.5):Oe!==0&&.5>Math.abs(Oe)&&(Ae*=.5/Oe,Oe=.5),Ye-=Ae,mt-=Oe;be.contains(Ye,mt);)Ye-=Ae,mt-=Oe;for(E.x=re,E.y=oe,Oe=0;Oe<le.figures.count;Oe++){var wt=le.figures.s[Oe],Mt=wt.isFilled?Ye:z,jt=wt.isFilled?mt:ee,mn=wt.segments;be=wt.startX,Ae=wt.startY;for(var Ni=be,Qi=Ae,Hi=0;Hi<mn.count;Hi++){var hi=mn.s[Hi],_n=hi.type,Xr=hi.endX,zr=hi.endY,Jo=!1;switch(_n){case ws:Ni=Xr,Qi=zr;break;case ya:Jo=Rm(be,Ae,Xr,zr,Mt,jt,re,oe,Se);break;case ol:Jo=Zt.Eo(be,Ae,hi.point1X,hi.point1Y,hi.point2X,hi.point2Y,Xr,zr,Mt,jt,re,oe,.6,Se);break;case He:Jo=Zt.Eo(be,Ae,be+2/3*(hi.point1X-be),Ae+2/3*(hi.point1Y-Ae),Xr+2/3*(hi.point1X-Xr),zr+2/3*(hi.point1Y-zr),Xr,zr,Mt,jt,re,oe,.6,Se);break;case _e:case lt:_n=hi.type===_e?wl(hi,wt):Il(hi,wt,be,Ae);var wa=_n.length;if(wa===0){Jo=Rm(be,Ae,hi.type===_e?hi.centerX:hi.endX,hi.type===_e?hi.centerY:hi.endY,Mt,jt,re,oe,Se);break}for(zr=null,Xr=0;Xr<wa;Xr++){if(zr=_n[Xr],Xr===0&&Rm(be,Ae,zr[0],zr[1],Mt,jt,re,oe,Se)){var qs=Im(Mt,jt,Se,rt,E);qs<rt&&(rt=qs,ue=!0)}Zt.Eo(zr[0],zr[1],zr[2],zr[3],zr[4],zr[5],zr[6],zr[7],Mt,jt,re,oe,.6,Se)&&(qs=Im(Mt,jt,Se,rt,E),qs<rt&&(rt=qs,ue=!0))}Xr=zr[6],zr=zr[7];break;default:Pt("Unknown Segment type: "+_n)}be=Xr,Ae=zr,Jo&&(Jo=Im(Mt,jt,Se,rt,E),Jo<rt&&(rt=Jo,ue=!0)),hi.isClosed&&(Xr=Ni,zr=Qi,Rm(be,Ae,Xr,zr,Mt,jt,re,oe,Se)&&(hi=Im(Mt,jt,Se,rt,E),hi<rt&&(rt=hi,ue=!0)))}}z=x-a,ee=b-y,re=Math.sqrt(z*z+ee*ee),re!==0&&(z/=re,ee/=re),E.x-=z*fe,E.y-=ee*fe,Je.free(Se)}else Pt("Unknown Geometry type: "+le.type);return ue?(this.transform.Ga(E),!0):!1};function Im(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 Rm(a,y,x,b,E,z,ee,re,oe){if(Zt.$(a,x)&&Zt.$(y,b)||Zt.$(E,ee)&&Zt.$(z,re))return!1;var le=!1,ue=(E-ee)*(y-b)-(z-re)*(a-x);return ue===0?!1:(oe.x=((E*re-z*ee)*(a-x)-(E-ee)*(a*b-y*x))/ue,oe.y=((E*re-z*ee)*(y-b)-(z-re)*(a*b-y*x))/ue,(a>x?a-x:x-a)<(y>b?y-b:b-y)?(a=y<b?y:b,y=y<b?b:y,(oe.y>a||Zt.$(oe.y,a))&&(oe.y<y||Zt.$(oe.y,y))&&(le=!0)):(y=a<x?a:x,a=a<x?x:a,(oe.x>y||Zt.$(oe.x,y))&&(oe.x<a||Zt.$(oe.x,a))&&(le=!0)),le)}Ee.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,z=Je.alloc();return z.h(x.x-b,x.y-b),a.ca(y.Ga(z))&&(z.h(x.x-b,x.bottom+b),a.ca(y.Ga(z))&&(z.h(x.right+b,x.bottom+b),a.ca(y.Ga(z))&&(z.h(x.right+b,x.y-b),a.ca(y.Ga(z))&&(E=!0)))),Je.free(z),E},Ee.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=Hr.alloc();x.set(y),x.Vj();var b=a.left,E=a.right,z=a.top;a=a.bottom;var ee=Je.alloc();if(ee.h(b,z),x.Ga(ee),this.gh(ee,!0)||(ee.h(E,z),x.Ga(ee),this.gh(ee,!0))||(ee.h(b,a),x.Ga(ee),this.gh(ee,!0))||(ee.h(E,a),x.Ga(ee),this.gh(ee,!0)))return Je.free(ee),!0;var re=Je.alloc(),oe=Je.alloc();return x.set(y),x.bv(this.transform),x.Vj(),re.x=E,re.y=z,re.transform(x),ee.x=b,ee.y=z,ee.transform(x),y=!1,Nf(this,ee,re,oe)?y=!0:(ee.x=E,ee.y=a,ee.transform(x),Nf(this,ee,re,oe)?y=!0:(re.x=b,re.y=a,re.transform(x),Nf(this,ee,re,oe)?y=!0:(ee.x=b,ee.y=z,ee.transform(x),Nf(this,ee,re,oe)&&(y=!0)))),Je.free(ee),Hr.free(x),Je.free(re),Je.free(oe),y};function Nf(a,y,x,b){if(!a.rs(y,x,b))return!1;a=y.x,y=y.y;var E=x.x,z=x.y;return x=b.x,b=b.y,a===E?(y<z?(a=y,y=z):a=z,b>=a&&b<=y):(a<E?(b=a,a=E):b=E,x>=b&&x<=a)}Ee.tx=function(a,y,x){function b(rt,Ye){for(var mt=rt.length,wt=0;wt<mt;wt+=2)if(Ye.zd(rt[wt],rt[wt+1])>E)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var E=a.Bf(y),z=E;if(1.5<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 ee=y.bounds,re=ee.x,oe=ee.y,le=ee.x+ee.width;if(ee=ee.y+ee.height,Bi(a.x,a.y,re,oe)<=E&&Bi(a.x,a.y,le,oe)<=E&&Bi(a.x,a.y,re,ee)<=E&&Bi(a.x,a.y,le,ee)<=E)return!0}if(re=y.startX,oe=y.startY,le=y.endX,ee=y.endY,y.type===di.j){if(x=(re-le)*(a.x-le)+(oe-ee)*(a.y-ee),Ii(a.x,a.y,re,oe,le,ee)<=(0<=(le-re)*(a.x-re)+(ee-oe)*(a.y-oe)&&0<=x?E:z))return!0}else{if(y.type===di.u)return y=!1,x&&(y=Ii(a.x,a.y,re,oe,re,ee)<=E||Ii(a.x,a.y,re,oe,le,oe)<=E||Ii(a.x,a.y,le,oe,le,ee)<=E||Ii(a.x,a.y,re,ee,le,ee)<=E),y;if(y.type===di.F){y=a.x-(re+le)/2,z=a.y-(oe+ee)/2;var ue=Math.abs(le-re)/2,fe=Math.abs(ee-oe)/2;if(ue===0||fe===0)return Ii(a.x,a.y,re,oe,le,ee)<=E;if(x){if(a=Zt.$y(ue,fe,y,z),a*a<=E)return!0}else return!(Bi(y,z,-ue,0)>=E||Bi(y,z,0,-fe)>=E||Bi(y,z,0,fe)>=E||Bi(y,z,ue,0)>=E)}else if(y.type===di.o){if(le=y.bounds,z=le.x,re=le.y,oe=le.x+le.width,le=le.y+le.height,a.x>oe&&a.x<z&&a.y>le&&a.y<re&&Ii(a.x,a.y,z,re,z,le)>E&&Ii(a.x,a.y,z,re,oe,re)>E&&Ii(a.x,a.y,oe,le,z,le)>E&&Ii(a.x,a.y,oe,le,oe,re)>E)return!1;if(z=Math.sqrt(E),x){if(this.fill===null?jl(y,a.x,a.y,z):_l(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;y<x.count;y++){if(z=x.s[y],ee=z.startX,ue=z.startY,a.zd(ee,ue)>E)return!1;for(re=z.segments.s,oe=re.length,le=0;le<oe;le++)switch(fe=re[le],fe.type){case ws:case ya:if(ee=fe.endX,ue=fe.endY,a.zd(ee,ue)>E)return!1;break;case ol:var Se=ei();if(Zt.Qe(ee,ue,fe.point1X,fe.point1Y,fe.point2X,fe.point2Y,fe.endX,fe.endY,.8,Se),ee=b(Se,a),yi(Se),ee||(ee=fe.endX,ue=fe.endY,a.zd(ee,ue)>E))return!1;break;case He:if(Se=ei(),Zt.ep(ee,ue,fe.point1X,fe.point1Y,fe.endX,fe.endY,.8,Se),ee=b(Se,a),yi(Se),ee||(ee=fe.endX,ue=fe.endY,a.zd(ee,ue)>E))return!1;break;case _e:case lt:Se=fe.type===_e?wl(fe,z):Il(fe,z,ee,ue);var be=Se.length;if(be===0){if(ee=fe.type===_e?fe.centerX:fe.endX,ue=fe.type===_e?fe.centerY:fe.endY,a.zd(ee,ue)>E)return!1;break}fe=null;for(var Ae=ei(),Oe=0;Oe<be;Oe++)if(fe=Se[Oe],Ae.length=0,Zt.Qe(fe[0],fe[1],fe[2],fe[3],fe[4],fe[5],fe[6],fe[7],.8,Ae),b(Ae,a))return yi(Ae),!1;yi(Ae),fe!==null&&(ee=fe[6],ue=fe[7]);break;default:Pt("Unknown Segment type: "+fe.type)}}return!0}}}return!1},Ee.qc=function(){this.ua=null},Ee.kq=function(){return this.ig};function wS(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=Fp,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=Ls):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new Ui(1-Ls.x,Ls.y)))}oo.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var b=Nd[a.toArrow];else a.fromArrow!=="None"?b=Nd[a.fromArrow]:(b=Zt.Ze[a.figure],typeof b=="string"&&(b=Zt.Ze[b]),b===void 0&&Pt("Unknown Shape.figure: "+a.figure),b=b(a,y,x),b.Sk=y,b.Rk=x);if(b===null){var E=Zt.Ze.Rectangle;typeof E=="function"&&(b=E(a,y,x))}return b};function PS(a){var y=Nd[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=Nd[x],y===void 0){var b=null,E;for(E in Zt.um)if(E.toLowerCase()===x){b=E;break}if(b!==null)return a=di.parse(Zt.um[b],!1),Nd[b]=a,x!==b&&(Nd[x]=b),b}}return typeof y=="string"?y:y instanceof di?a:null}tt.Object.defineProperties(oo.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),kl(this)&&(a=this.part,a!==null&&Ma(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=di.parse(a);var y=a.normalize();this.geometry=a,this.position=a=Je.allocAt(-y.x,-y.y),Je.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&&tg(a,"Shape.fill"),a instanceof ia&&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&&tg(a,"Shape.stroke"),a instanceof ia&&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 Qn(a,"value >= 0",oo,"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"?Qn(a,'"butt", "round", or "square"',oo,"strokeCap"):(kf(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"?Qn(a,'"miter", "bevel", or "round"',oo,"strokeJoin"):(kf(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){kf(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 z=a[E];0<=z&&isFinite(z)||Pt("strokeDashArray:value "+z+" at index "+E+" must be a positive number or zero."),b+=z}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&&(kf(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=Zt.Ze[a];typeof x=="function"?x=a:(x=Zt.Ze[a.toLowerCase()])||Pt("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=PS(a);x===null?Pt("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new Gh),this.Ua.V=x,this.Rd=null,this.qc(),this.v(),wS(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=PS(a);x===null?Pt("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new Gh),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),wS(this),this.g("fromArrow",y,x))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:Xo},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),kf(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:Xo},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),kf(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&&(kf(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:Qr},set:function(a){var y=this.geometryStretch;y!==a&&(kf(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 Fd),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&Ec(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 Fd),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 Fd),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 Fd),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),oo.prototype.intersectsRect=oo.prototype.Yc,oo.prototype.containedInRect=oo.prototype.fh,oo.prototype.getNearestIntersectionPoint=oo.prototype.rs,oo.prototype.getDocumentBounds=oo.prototype.mi,oo.prototype.getDocumentPoint=oo.prototype.ga;var Nd=new Wi,kv=new Wi;oo.className="Shape",oo.getFigureGenerators=function(){var a=new zi,y;for(y in Zt.Ze)y!==y.toLowerCase()&&a.add(y,Zt.Ze[y]);return a.freeze(),a},oo.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),b=Zt.Ze;b[a]=y,b[x]=a},oo.getArrowheadGeometries=function(){var a=new zi;for(b in Zt.um)if(Nd[b]===void 0){var y=di.parse(Zt.um[b],!1);Nd[b]=y,y=b.toLowerCase(),y!==b&&(Nd[y]=b)}for(var x in Nd)if(x!==x.toLowerCase()){var b=Nd[x];b instanceof di&&a.add(x,b)}return a.freeze(),a},oo.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=di.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||Pt("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var b=Nd;b[a]=x,b[y]=a};function Nv(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=Qr,this.gg=this.fg=Xo}Nv.prototype.copy=function(){var a=new Nv;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 ba(a,y){return Kt.call(this),Zm||(Pu=cs?new kc(null).context:null,Zm=!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}Lt(ba,Kt),ba.prototype.cloneProtected=function(a){Kt.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 Sd(a){a.da===null?a.da=new Rv:a.da.nc&&(a.da=a.da.copy())}Ee=ba.prototype,Ee.th=function(){Kt.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function CS(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}Ee.qb=function(a){a.classType===ba?this.wrap=a:Kt.prototype.qb.call(this,a)},Ee.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},Ee.v=function(){Kt.prototype.v.call(this)},Ee.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,z=x.height,ee=bp(this),re=a.textAlign=this.textAlign,oe=y.tn;re==="start"?re=oe?"right":"left":re==="end"&&(re=oe?"left":"right"),oe=this.isUnderline;var le=this.isStrikethrough;ds(this,a,this.xc,!0,!1,x,b),(oe||le)&&ds(this,a,this.xc,!1,!1,x,b),b=0,x=!1;var ue=this.oe,fe=ue.dx-(ee*ue.m21+ue.dx);ue=ue.dy-(ee*ue.m22+ue.dy);var Se=y.scale;switch(8>(fe*fe+ue*ue)*Se*Se&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof Ku&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,fe=this.spacingBelow,this.flip){case jo:a.translate(E,0),a.scale(-1,1);break;case mo:a.translate(0,z),a.scale(1,-1);break;case ua:a.translate(E,z),a.scale(-1,-1)}if(a.yc(),ue=this.Gc,Se=(y+ee+fe)*ue,z>Se&&(b=this.verticalAlignment,b=b.y*z-b.y*Se+b.offsetY),ue===1&&this.ze!==null)fe=this.Cb,fe>E&&(fe=E),this.Oj(this.ze,a,0,b+y,E,ee,fe,x,re,oe,le);else if(this.Qc!==null&&this.Qb!==null)for(Se=0;Se<ue;Se++){var be=this.Qc[Se];be>E&&(be=E),b+=y,this.Oj(this.Qb[Se],a,0,b,E,ee,be,x,re,oe,le),b+=ee+fe}switch(this.flip){case jo:a.scale(-1,1),a.translate(-E,0);break;case mo:a.scale(1,-1),a.translate(0,-z);break;case ua:a.scale(-1,-1),a.translate(-E,-z)}}},Ee.Oj=function(a,y,x,b,E,z,ee,re,oe,le,ue){var fe=0;if(re)oe==="left"?fe=0:oe==="right"?fe=E-ee:oe==="center"&&(fe=(E-ee)/2),y.fillRect(x+fe,b+.25*z,ee,1);else{if(oe==="left"?fe=0:oe==="right"?fe=E:oe==="center"&&(fe=E/2),E=zm!==null?zm(this,z):.75*z,y.fillText(a,x+fe,b+E),a=z/20|0,a===0&&(a=1),oe==="right"?fe-=ee:oe==="center"&&(fe-=ee/2),le){re=jm!==null?jm(this,z):.8*z,oe=x+fe,le=b+re,E=x+fe+ee,re=b+re;var Se=a;y.beginPath(),y.lineWidth=Se,y.moveTo(oe,le),y.lineTo(E,re),y.stroke(),y.Se(),y instanceof Ku&&y.ad.classList.add("gojs-td")}ue&&(ue=b+z-z/2.2|0,a%2!==0&&(ue+=.5),b=x+fe,z=ue,x=x+fe+ee,ee=ue,fe=a,y.beginPath(),y.lineWidth=fe,y.moveTo(b,z),y.lineTo(x,ee),y.stroke(),y.Se(),y instanceof Ku&&y.ad.classList.add("gojs-td"))}},Ee.kk=function(a,y,x){if(!Kt.prototype.kk.call(this,a,y,x))return!1;if(ds(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++)nS(a,y[x],!1)}else y=this.svg,y.innerHTML=this.text,nS(a,y,!0);return!0},Ee.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:Kt.prototype.nk.call(this,a)},Ee.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)}},Ee.Wl=function(a,y,x,b){var E=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;Pu!==null&&NS!==z&&(NS=Pu.font=z),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var ee;if(isNaN(this.desiredSize.width)){if(z=this.ec.replace(/\r\n/g,`
`).replace(/\r/g,`
`),z.length===0)z=8;else if(this.isMultiline){for(var re=ee=0,oe=!1;!oe;){var le=z.indexOf(`
`,re);le===-1&&(le=z.length,oe=!0),re=z.substr(re,le-re),this.formatting===Ep&&(re=re.trim()),ee=Math.max(ee,Kc(re)),re=le+1}z=ee}else ee=z.indexOf(`
`,0),0<=ee&&(z=z.substr(0,ee)),z=Kc(z);z=Math.min(z,a/this.scale)}else z=this.desiredSize.width;if(this.panel!==null&&(z=Math.min(z,this.panel.maxSize.width)),ee=ES(this,z),isNaN(this.desiredSize.height)?ee=Math.min(ee,y/this.scale):ee=this.desiredSize.height,oe=ee,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===Hm&&(y=this.Ae,y=this.overflow===Hm?bS(y):0,le=this.spacingAbove+this.spacingBelow,le=Math.max(0,bp(this)+le),oe=Math.min(this.maxLines-1,Math.max(Math.floor(oe/le+.01)-1,0)),!(oe+1>=this.Qb.length))){for(this.l|=16777216,le=this.Qb[oe],y=Math.max(1,a-y);Kc(le)>y&&1<le.length;)le=le.substr(0,le.length-1);le+=Ap,y=Kc(le),this.Qb[oe]=le,this.Qb=this.Qb.slice(0,oe+1),this.Qc[oe]=y,this.Qc=this.Qc.slice(0,oe+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===AS||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(x,z),ee=Math.max(b,ee),ca(this.dc,z,ee),this.Ge(0,0,z,ee),this.svg!==null&&E!==this.Gc&&(this.Uc=!0)},Ee.eh=function(a,y,x,b){Ul(this,a,y,x,b)};function Cp(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 Fv(a,y,x,b){var E=a.formatting===Ep;E&&(y=y.trim());var z=0,ee=a.Ae,re=a.spacingAbove+a.spacingBelow;re=Math.max(0,bp(a)+re);var oe=a.overflow===Hm?bS(ee):0;if(a.Gc>=a.maxLines)b!==null&&b.h(0,re);else if(ee=y,a.wrap===Dv){a.Le=1;var le=Kc(y);if(oe===0||le<=x)a.Cb=Math.max(a.Cb,le),Cp(a,y,a.Cb),b!==null&&b.h(le,re);else{for(z=Dg(a,ee),ee=ee.substr(z.length),y=Dg(a,ee),le=Kc(z+y);0<y.length&&le<=x;)z+=y,ee=ee.substr(y.length),y=Dg(a,ee),le=z+y,E&&(le=le.trim()),le=Kc(le);for(E&&(y=y.trim()),z+=y,x=Math.max(1,x-oe);Kc(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=Ap;var ue=Kc(z);a.Cb=ue,Cp(a,z,ue),b!==null&&b.h(ue,re)}}else{for(oe=0,ee.length===0&&(oe=1,Cp(a,ee,0));0<ee.length;){for(y=Dg(a,ee),ee=ee.substr(y.length);Kc(y)>x;){var fe=1;for(le=Kc(y.substr(0,fe)),ue=0;le<=x;)fe++,ue=le,le=Kc(y.substr(0,fe));if(fe===1){var Se=le;z=Math.max(z,le)}else Se=ue,z=Math.max(z,ue);if(fe--,1>fe&&(fe=1),Cp(a,y.substr(0,fe),Se),oe++,y=y.substr(fe),a.Gc+oe>a.maxLines)break}for(ue=Dg(a,ee),le=Kc(y+ue);0<ue.length&&le<=x;)y+=ue,ee=ee.substr(ue.length),ue=Dg(a,ee),le=y+ue,E&&(le=le.trim()),le=Kc(le);if(E&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),ue.length===0?(fe=le,z=Math.max(z,le)):(fe=ue=Kc(y),z=Math.max(z,ue)),Cp(a,y,fe),oe++,a.Gc+oe>a.maxLines))break}a.Le=Math.min(a.maxLines,oe),a.Cb=Math.max(a.Cb,z),b!==null&&b.h(a.Cb,re*a.Le)}}function Dg(a,y){if(a.wrap===LS)return y.substr(0,1);for(var x=y.length,b=0,E=M1;b<x&&!E.test(y.charAt(b));)b++;for(a.formatting===MS&&(x=Math.min(x,b+1));b<x&&E.test(y.charAt(b));)b++;return b>=y.length?y:y.substr(0,b)}function Kc(a){return Pu===null?8*a.length:Pu.measureText(a).width}function bp(a){if(a.df!==null)return a.df;var y=a.Ae;if(Pu===null){var x=16;return a.df=x}return Ov[y]!==void 0&&5e3>kS?x=Ov[y]:(x=1.3*Pu.measureText("M").width,Ov[y]=x,kS++),a.df=x}function bS(a){if(Pu===null)return 6;if(Wm[a]!==void 0&&5e3>Iv)var y=Wm[a];else y=Pu.measureText(Ap).width,Wm[a]=y,Iv++;return y}function ES(a,y){var x=a.ec.replace(/\r\n/g,`
`).replace(/\r/g,`
`),b=a.spacingAbove+a.spacingBelow;if(b=Math.max(0,bp(a)+b),x.length===0)return a.Cb=0,a.Gc=1,b;if(!a.isMultiline){var E=x.indexOf(`
`,0);0<=E&&(x=x.substr(0,E))}E=0;for(var z=a.Gc=0,ee,re=!1;!re;){if(ee=x.indexOf(`
`,z),ee===-1&&(ee=x.length,re=!0),z<=ee){if(z=x.substr(z,ee-z),a.wrap!==Dv){a.Le=0;var oe=On.alloc();Fv(a,z,y,oe),E+=oe.height,On.free(oe),a.Gc+=a.Le}else Fv(a,z,y,null),E+=b,a.Gc++;a.Gc===a.maxLines&&(re=!0)}z=ee+1}return a.Lq=E}tt.Object.defineProperties(ba.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"||(Sd(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:qn},set:function(a){var y=this.flip;y!==a&&(Sd(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:Cs},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),Sd(this),this.da.Yr=a,nu(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=On.alloc();Fv(this,this.ec,999999,a);var y=a.width;On.free(a),a=ES(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),ca(this.dc,y,a)}return this.dc}},isMultiline:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this.v(),this.g("isMultiline",y,a))}},isUnderline:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;y!==a&&(this.l^=4194304,this.Uc=!0,this.N(),this.g("isUnderline",y,a))}},isStrikethrough:{get:function(){return(this.l&8388608)!==0},set:function(a){var y=(this.l&8388608)!==0;y!==a&&(this.l^=8388608,this.Uc=!0,this.N(),this.g("isStrikethrough",y,a))}},wrap:{get:function(){return this.da!==null?this.da.$r:Bv},set:function(a){var y=this.wrap;y!==a&&(Sd(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:Tv},set:function(a){var y=this.overflow;y!==a&&(Sd(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&&tg(a,"TextBlock.stroke"),a instanceof ia&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return bp(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&&(Sd(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&&(Sd(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 Fd),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 Fd),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 Fd),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 Fd),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 Fd),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&&(Sd(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&&(Sd(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&&(Sd(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&&(Sd(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:Ep},set:function(a){var y=this.formatting;y!==a&&(Sd(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&&Qn(a,"> 0",ba,"maxLines"),Sd(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 zm=null,jm=null,Dv=new Xt(ba,"None",0),AS=new Xt(ba,"WrapFit",1),Bv=new Xt(ba,"WrapDesiredSize",2),LS=new Xt(ba,"WrapBreakAll",3),Tv=new Xt(ba,"OverflowClip",0),Hm=new Xt(ba,"OverflowEllipsis",1),Ep=new Xt(ba,"FormatTrim",0),MS=new Xt(ba,"FormatNone",0),M1=/[ \u200b\u00ad]/,Ov=new Wi,kS=0,Wm=new Wi,Iv=0,Ap="...",NS="",Pu=null,Zm=!1;ba.className="TextBlock";function Rv(){this.nc=!1,this.Hd=null,this.Xf=qn,this.gq=Ep,this.Jq=1/0,this.$q=Tv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Cs,this.$r=Bv}Rv.prototype.copy=function(){var a=new Rv;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},ba.getEllipsis=function(){return Ap},ba.setEllipsis=function(a){Ap=a,Wm=new Wi,Iv=0},ba.getBaseline=function(){return zm},ba.setBaseline=function(a){zm=a},ba.getUnderline=function(){return jm},ba.setUnderline=function(a){jm=a},ba.isValidFont=function(a){if(Zm||(Pu=cs?new kc(null).context:null,Zm=!0),Pu===null)return!0;var y=Pu.font;if(a===y||a==="10px sans-serif")return!0;Pu.font="10px sans-serif",Pu.font=a;var x=Pu.font;if(x!=="10px sans-serif")return Pu.font=y,!0;Pu.font="19px serif";var b=Pu.font;return Pu.font=a,x=Pu.font,Pu.font=y,x!==b},ba.FormatNone=MS,ba.FormatTrim=Ep,ba.None=Dv,ba.OverflowClip=Tv,ba.OverflowEllipsis=Hm,ba.WrapBreakAll=LS,ba.WrapDesiredSize=Bv,ba.WrapFit=AS;function Fd(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Fd.prototype.copy=function(){var a=new Fd;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},Fd.className="GradElementSettings";function Cu(a,y){Kt.call(this),this.Eg=null,this.qo="",this.Xg=No,this.Nk=ii,this.Zg=this.Hd=null,this.Mk=xo,this.Xf=qn,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 Bg;Lt(Cu,Kt),Cu.prototype.cloneProtected=function(a){Kt.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},Cu.prototype.qb=function(a){a===qn||a===ir||a===Eo?this.imageStretch=a:Kt.prototype.qb.call(this,a)},Cu.prototype.toString=function(){return"Picture("+this.source+")#"+xr(this)};function Tg(a){a===void 0&&(a=""),a!==""?Bg[a]&&(delete Bg[a],Km--):(Bg=new Wi,Km=0)}function FS(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var E=b.value;E.N();var z=y.getAttribute("src")||"",ee=E.Og.I(z);if(ee!==null)for(var re=ee.length,oe=0;oe<re;oe++)z=ee[oe],E.Xn.add(z),z.Uc=!0,E.$b(),y.hn&&(y.eu===void 0&&(y.eu=x),z.Zg!==null&&z.Zg(z,x))}y.Bg.clear()}a.desiredSize.w()||(Hs(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,z=y.getAttribute("src")||"",ee=E.Og.I(z);if(ee!==null){E=ee.length,z=ei();for(var re=0;re<E;re++)z.push(ee[re]);if(y.hn)for(re=0;re<E;re++)ee=z[re],ee.Hd!==null&&ee.Hd(ee,x);yi(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}Cu.prototype.hA=function(){if(this.source!==""){Tg(this.source);var a=this.source;this.source="",this.source=a}},Cu.prototype.redraw=function(){this.N(),this.Uc=!0},Cu.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 Lf)){var E=a instanceof Ku;b=this.naturalBounds;var z=0,ee=0,re=this.qn,oe=re?+x.width:x.naturalWidth;if(re=re?+x.height:x.naturalHeight,oe===void 0&&x.videoWidth&&(oe=x.videoWidth),re===void 0&&x.videoHeight&&(re=x.videoHeight),oe=oe||b.width,re=re||b.height,oe!==0&&re!==0){var le=oe,ue=re;this.sourceRect.w()&&(z=this.Xg.x,ee=this.Xg.y,oe=this.Xg.width,re=this.Xg.height);var fe=oe,Se=re,be=this.Nk,Ae=this.Mk;switch(be){case qn:if(this.sourceRect.w())break;fe>=b.width&&(z=z+Ae.offsetX+(fe*Ae.x-b.width*Ae.x)),Se>=b.height&&(ee=ee+Ae.offsetY+(Se*Ae.y-b.height*Ae.y)),oe=Math.min(b.width,fe),re=Math.min(b.height,Se);break;case ii:fe=b.width,Se=b.height;break;case ir:case Eo:be===ir?(be=Math.min(b.height/Se,b.width/fe),fe*=be,Se*=be):be===Eo&&(be=Math.max(b.height/Se,b.width/fe),fe*=be,Se*=be,fe>=b.width&&(z=(z+Ae.offsetX+(fe*Ae.x-b.width*Ae.x)/fe)*oe),Se>=b.height&&(ee=(ee+Ae.offsetY+(Se*Ae.y-b.height*Ae.y)/Se)*re),oe*=1/(fe/b.width),re*=1/(Se/b.height),fe=b.width,Se=b.height)}be=this.Df()*y.scale;var Oe=fe*be*Se*be,rt=oe*re/Oe,Ye=x.__goCache;be=null;var mt=k1;if(!E){if(x.sq&&Ye!==void 0&&4<Oe&&rt>mt*mt)for(Ye.gi===null&&(BS(Ye,4,le,ue,x),BS(Ye,16,le,ue,x)),E=Ye.gi,le=E.length,ue=0;ue<le&&E[ue].ratio*E[ue].ratio<rt;ue++)be=E[ue];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{E=new kc(null).context;try{E.drawImage(this.Eg,0,0)}catch(wt){this.en=!1}try{E.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(wt){this.vl=!0}}if(this.vl)return}}switch(E=fe<b.width?Ae.offsetX+(b.width*Ae.x-fe*Ae.x):0,Ae=Se<b.height?Ae.offsetY+(b.height*Ae.y-Se*Ae.y):0,this.flip){case jo:a.translate(Math.min(b.width,fe),0),a.scale(-1,1);break;case mo:a.translate(0,Math.min(b.height,Se)),a.scale(1,-1);break;case ua:a.translate(Math.min(b.width,fe),Math.min(b.height,Se)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&Ye!==void 0&&be!==null&&be.ratio!==1){a.save(),y=be.ratio;try{a.drawImage(be.source,z/y,ee/y,Math.min(be.source.width,oe/y),Math.min(be.source.height,re/y),E,Ae,Math.min(b.width,fe),Math.min(b.height,Se)),a instanceof Ku&&(this.bt=[z/y,ee/y,Math.min(be.source.width,oe/y),Math.min(be.source.height,re/y),E,Ae,Math.min(b.width,fe),Math.min(b.height,Se)])}catch(wt){this.en=!1}a.restore()}else try{a.drawImage(x,z,ee,oe,re,E,Ae,Math.min(b.width,fe),Math.min(b.height,Se)),a instanceof Ku&&(this.bt=[z,ee,oe,re,E,Ae,Math.min(b.width,fe),Math.min(b.height,Se)])}catch(wt){this.en=!1}switch(this.flip){case jo:a.scale(-1,1),a.translate(-Math.min(b.width,fe),0);break;case mo:a.scale(1,-1),a.translate(0,-Math.min(b.height,Se));break;case ua:a.scale(-1,-1),a.translate(-Math.min(b.width,fe),-Math.min(b.height,Se))}}}}},Cu.prototype.Wl=function(a,y,x,b){var E=this.desiredSize,z=wu(this,!0),ee=this.Eg,re=this.qn,oe=0,le=0;(re||!this.al&&ee&&ee.complete)&&(this.al=!0),ee===null?(isFinite(E.width)||(a=0),isFinite(E.height)||(y=0)):(oe=re?+ee.width:ee.naturalWidth,le=re?+ee.height:ee.naturalHeight),isFinite(E.width)||z===ii||z===sr?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:ee!==null&&(a=oe)),x=0):ee!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:oe),isFinite(E.height)||z===ii||z===Ar?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:ee!==null&&(y=le)),b=0):ee!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:le),isFinite(E.width)&&(a=E.width),isFinite(E.height)&&(y=E.height),E=this.maxSize,z=this.minSize,x=Math.max(x||0,z.width),b=Math.max(b||0,z.height),a=Math.min(E.width,a),y=Math.min(E.height,y),a=Math.max(x,a),y=Math.max(b,y),ee===null||ee.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),ca(this.dc,a,y),this.Ge(0,0,a,y)},Cu.prototype.eh=function(a,y,x,b){Ul(this,a,y,x,b)},tt.Object.defineProperties(Cu.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||Pt("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var b=this.diagram;b!==null&&Gf(b,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new An),b!==null&&x&&Ad(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()||(Hs(this,!1),this.v())):x&&FS(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=Bg;if(cs){var b=null;if(x[a]!==void 0)b=x[a];else if(a!==""){30<Km&&(Tg(),x=Bg),b=dn("img"),b.hn=!0,FS(this,b);var E=this.rl;E!==null&&(b.crossOrigin=E(this)),b.src=a,x[a]=b,Km++}this.element=b,b!==null&&b.__goCache===void 0&&(b.__goCache=new DS),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}}}),Cu.prototype.redraw=Cu.prototype.redraw,Cu.prototype.reloadSource=Cu.prototype.hA;var Km=0,k1=4;Cu.className="Picture",Bg=new Wi,Cu.clearCache=Tg;function DS(){this.gi=null}function BS(a,y,x,b,E){a.gi===null&&(a.gi=[]);var z=new kc(null),ee=z.context,re=1/y;z.width=x/y,z.height=b/y,z.width!==0&&z.height!==0&&(y=new TS(z.Oa,y),x=1,0<a.gi.length&&(x=a.gi[a.gi.length-1],E=x.source,x=x.ratio),ee.setTransform(re*x,0,0,re*x,0,0),ee.yc(),ee.drawImage(E,0,0),a.gi.push(y))}DS.className="PictureCacheArray";function TS(a,y){this.source=a,this.ratio=y}TS.className="PictureCacheInstance";function Og(){this.os=new di,this.mc=null}Og.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new di,this.mc=null};function Ig(a,y,x,b,E,z){a.mc=new Os,a.mc.startX=y,a.mc.startY=x,a.mc.isFilled=b,a.mc.isEvenOdd=z||!1,a.os.figures.add(a.mc),E!==void 0&&(a.mc.isShadowed=E)}function N1(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}Og.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var b=new Io(ws);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)},Og.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var b=new Io(ya);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)};function wh(a,y,x,b,E,z,ee){var re;re===void 0&&(re=!1);var oe=new Io(ol);oe.point1X=y,oe.point1Y=x,oe.point2X=b,oe.point2Y=E,oe.endX=z,oe.endY=ee,re&&oe.close(),a.mc.segments.add(oe)}function Vm(a,y,x,b,E){var z;z===void 0&&(z=!1);var ee=new Io(He);ee.point1X=y,ee.point1Y=x,ee.endX=b,ee.endY=E,z&&ee.close(),a.mc.segments.add(ee)}Og.prototype.arcTo=function(a,y,x,b,E,z,ee){z===void 0&&(z=0),ee===void 0&&(ee=!1);var re=new Io(_e);re.startAngle=a,re.sweepAngle=y,re.centerX=x,re.centerY=b,re.radiusX=E,re.radiusY=z!==0?z:E,ee&&re.close(),this.mc.segments.add(re)};function F1(a,y,x,b,E,z,ee,re){var oe;oe===void 0&&(oe=!1),y=new Io(lt,ee,re,y,x,b,E,z),oe&&y.close(),a.mc.segments.add(y)}function OS(a){var y=Gm;return y!==null?(Gm=null,y.reset(a),y):(y=new Og,y.reset(a),y)}var Gm=null;Og.className="StreamGeometryContext";function Vl(a,y){var x=a.toLowerCase(),b=Zt.Ze;b[a]=y,b[x]=a}Vl("Rectangle",function(a,y,x){a="r"+y+","+x;var b=Zt.Mf[a];return b!==void 0||(b=new di(di.u),b.endX=y,b.endY=x,Zt.Nf<Zt.vm&&(Zt.Mf[a]=b,Zt.Nf++)),b}),Vl("Square",function(a,y,x){a="s"+y+","+x;var b=Zt.Mf[a];return b!==void 0||(b=new di(di.u),b.endX=y,b.endY=x,b.defaultStretch=ir,Zt.Nf<Zt.vm&&(Zt.Mf[a]=b,Zt.Nf++)),b}),Vl("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=Zt.Mf[b];if(E!==void 0)return E;var z=a*Zt.wg;return E=new di().add(new Os(a,0,!0).add(new Io(ya,y-a,0)).add(new Io(ol,y,a,y-z,0,y,z)).add(new Io(ya,y,x-a)).add(new Io(ol,y-a,x,y,x-z,y-z,x)).add(new Io(ya,a,x)).add(new Io(ol,0,x-a,z,x,0,x-z)).add(new Io(ya,0,a)).add(new Io(ol,a,0,0,z,z,0).close())),1<z&&(E.spot1=new Ui(0,0,z,z),E.spot2=new Ui(1,1,-z,-z)),Zt.Nf<Zt.vm&&(Zt.Mf[b]=E,Zt.Nf++),E}),Vl("Border","RoundedRectangle"),Vl("Ellipse",function(a,y,x){a="e"+y+","+x;var b=Zt.Mf[a];return b!==void 0||(b=new di(di.F),b.endX=y,b.endY=x,b.spot1=Ks,b.spot2=Ts,Zt.Nf<Zt.vm&&(Zt.Mf[a]=b,Zt.Nf++)),b}),Vl("Circle",function(a,y,x){a="c"+y+","+x;var b=Zt.Mf[a];return b!==void 0||(b=new di(di.F),b.endX=y,b.endY=x,b.spot1=Ks,b.spot2=Ts,b.defaultStretch=ir,Zt.Nf<Zt.vm&&(Zt.Mf[a]=b,Zt.Nf++)),b}),Vl("TriangleRight",function(a,y,x){return new di().add(new Os(0,0).add(new Io(ya,y,.5*x)).add(new Io(ya,0,x).close())).pm(0,.25,.5,.75)}),Vl("TriangleDown",function(a,y,x){return new di().add(new Os(0,0).add(new Io(ya,y,0)).add(new Io(ya,.5*y,x).close())).pm(.25,0,.75,.5)}),Vl("TriangleLeft",function(a,y,x){return new di().add(new Os(y,x).add(new Io(ya,0,.5*x)).add(new Io(ya,y,0).close())).pm(.5,.25,1,.75)}),Vl("TriangleUp",function(a,y,x){return new di().add(new Os(y,x).add(new Io(ya,0,x)).add(new Io(ya,.5*y,0).close())).pm(.25,.5,.75,1)}),Vl("Triangle","TriangleUp"),Vl("Diamond",function(a,y,x){return new di().add(new Os(.5*y,0).add(new Io(ya,0,.5*x)).add(new Io(ya,.5*y,x)).add(new Io(ya,y,.5*x).close())).pm(.25,.25,.75,.75)}),Vl("LineH",function(a,y,x){return a=new di(di.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),Vl("LineV",function(a,y,x){return a=new di(di.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),Vl("None","Rectangle"),Vl("BarH","Rectangle"),Vl("BarV","Rectangle"),Vl("MinusLine","LineH"),Vl("PlusLine",function(a,y,x){return new di().add(new Os(0,x/2,!1).add(new Io(ya,y,x/2)).add(new Io(ws,y/2,0)).add(new Io(ya,y/2,x)))}),Vl("XLine",function(a,y,x){return new di().add(new Os(0,x,!1).add(new Io(ya,y,0)).add(new Io(ws,0,0)).add(new Io(ya,y,x)))}),Vl("LineRight",function(a,y,x){return new di().add(new Os(.25*y,0,!1).add(new Io(ya,.75*y,.5*x)).add(new Io(ya,.25*y,x)))}),Vl("LineDown",function(a,y,x){return new di().add(new Os(0,.25*x,!1).add(new Io(ya,.5*y,.75*x)).add(new Io(ya,y,.25*x)))}),Vl("LineLeft",function(a,y,x){return new di().add(new Os(.75*y,0,!1).add(new Io(ya,.25*y,.5*x)).add(new Io(ya,.75*y,x)))}),Vl("LineUp",function(a,y,x){return new di().add(new Os(0,.75*x,!1).add(new Io(ya,.5*y,.25*x)).add(new Io(ya,y,.75*x)))}),Zt.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 zv(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=$o,this.ir=null,this.jr="",this.lr=Xo,this.Gq="",this.Hq=ga,this.Pq=Ot,this.Kq=cn,this.Up=null,this.Cq=127,this.zr=jn,this.yr="gray",this.Vg=4}zv.prototype.copy=function(){var a=new zv;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 dr(a,y){a===void 0||a instanceof Us||typeof a=="string"?si.call(this,a):(si.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 Je(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new Pn,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}Lt(dr,si),dr.prototype.cloneProtected=function(a){si.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},Ee=dr.prototype,Ee.Af=function(a){si.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},Ee.toString=function(){var a=Fi(this.constructor)+"#"+xr(this);return this.data!==null&&(a+="("+Ki(this.data)+")"),a};function bu(a){a.P===null?a.P=new zv:a.P.nc&&(a.P=a.P.copy())}Ee.th=function(){si.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},Ee.gk=function(a,y,x,b,E,z,ee){var re=this.diagram;re!==null&&(a===ci&&y==="elements"?E instanceof si?Mf(E,function(oe){dy(re.partManager,oe),gh(re,oe)}):Ad(re,E):a===ki&&y==="elements"&&(E instanceof si?Mf(E,function(oe){hy(re.partManager,oe,re)}):Gf(re,E)),re.cb(a,y,x,b,E,z,ee))},Ee.La=function(a){if(si.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 si&&Mf(E,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},dr.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},dr.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},dr.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 zi),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)))}}},dr.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)}},dr.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=ei();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);yi(y)}},dr.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 Yo))break e;Nc(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=si.Link),x.adornedObject=y)}if(x!==null){x.type===si.Link&&x.v(),this.bh("Selection",x);break e}}this.Jf("Selection")}for(D1(this,a),y=this.adornments;y.next();)y.value.La()}},dr.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function jv(a){a.G&16384&&(a.updateAdornments(),a.G&=-16385)}function D1(a,y){y.toolManager.mouseDownTools.each(function(x){x.isEnabled&&x.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function Ym(a){if(Yh(a)===!1){Wv(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function IS(a){if(a.G|=2097152,Yh(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||jS(a,y,x),x=a.Ib;var b=Pn.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(b,x),Pn.free(b),Wv(a,!1)}}dr.prototype.Ge=function(a,y,x,b){var E=this.uc;E.h(a,y,x,b),this.Lb===null&&(this.Lb=new Hr);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),this.Lb=z,z.ws()||z.pp(E)},dr.prototype.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=xo;this.locationSpot.sb()&&(z=this.locationSpot);var ee=Je.alloc();if(this.locationObject!==this)for(y=this.locationObject,x=y.naturalBounds,ee.yi(x.x,x.y,x.width,x.height,z),y.Lb!==null&&y.Lb.Ga(ee),ee.offset(-y.measuredBounds.x,-y.measuredBounds.y),z=y.panel;z!==null&&z!==this;)z.Lb!==null&&z.Lb.Ga(ee),ee.offset(-z.measuredBounds.x,-z.measuredBounds.y),z=z.panel;else ee.yi(y,x,b,E,z);a.rotate(this.Kb,ee.x,ee.y),Je.free(ee)}},dr.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},dr.prototype.moveTo=function(a,y,x){a=Je.allocAt(a,y),this.move(a,x),Je.free(a)},dr.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())},dr.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())},dr.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new zi),y.I(a)!==null)return y.I(a);var x=si.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function Ph(a,y,x,b){b===void 0&&(b=new Je),x=x.Mc()?xo: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}dr.prototype.mi=function(a){return a===void 0&&(a=new Pn),a.assign(this.actualBounds)},dr.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function RS(a){var y=Je.alloc(),x=a.locationObject,b=x.naturalBounds,E=x instanceof oo?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 Ff(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=gS(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 z=y.width;y=y.height;var ee=a.shadowBlur;return a=a.shadowOffset,z+=ee,y+=ee,b-=ee/2,E-=ee/2,0<a.x?z+=a.x:(b+=a.x,z-=a.x),0<a.y?y+=a.y:(E+=a.y,y-=a.y),x.h(b-1,E-1,z+2,y+2),x}dr.prototype.arrange=function(){if(iu(this)===!1)IS(this);else{Ld(this,!1);var a=this.Ib,y=Pn.alloc();y.assign(a);var x=Uh(this);this.eh(0,0,this.uc.width,this.uc.height);var b=this.position;jS(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()||Zt.B(y.width,a.width)&&Zt.B(y.height,a.height)||0<=this.vw&&this.C(16),Pn.free(y),Wv(this,!1)}},Ee=dr.prototype,Ee.Xl=function(a,y){var x=this.diagram;if(x!==null){var b=!1;if(x.Zi===!1&&a.w()){var E=Pn.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),Pn.free(E)}!(this.G&65536)&&a.D(y)||ZS(this,b,x),x.N(),!a.w()&&!y.w()||Ga(a,y)||(this instanceof Di&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},Ee.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var b=this.diagram;return b!==null&&zS(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 Je(b.x+(a.x-y),b.y+(a.y-x)),this.g("location",b,this.ke.copy())),Yh(this)===!1&&iu(this)===!1&&(Ym(this),IS(this)),!0};function zS(a,y,x,b,E){y===null||a instanceof Yo||(y=y.animationManager,y.zb&&Ll(y,a,new Je(b,E),x))}Ee.mm=function(a,y,x){var b=this.ke,E=this.pa;if(x){if(b.x===a&&b.y===y)return;Yh(this)||iu(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)}Ym(this)},Ee.Av=function(){this.G&=-2097153,Ym(this)};function jS(a,y,x){var b=RS(a),E=a.diagram,z=x.w(),ee=y.w();z&&ee?a.G&2097152?HS(a,y,x,E,b):WS(a,y,x,E,b):z?HS(a,y,x,E,b):ee&&WS(a,y,x,E,b),a.G|=2097152,Je.free(b),a.Uk()}function HS(a,y,x,b,E){var z=y.x,ee=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 Yo||Ll(x,a,new Je(z,ee),y),b||y.x===z&&y.y===ee||a.g("position",new Je(z,ee),y.copy()))}function WS(a,y,x,b,E){var z=x.copy();x.h(y.x+E.x,y.y+E.y),x.D(z)||b===null||a.g("location",z,x.copy())}function ZS(a,y,x){Zv(a,!1),a instanceof Di&&tu(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var b=x.viewportBounds;b.w()?Uh(a)?(ma(y,b)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(b)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}Ee.si=function(){return!0},Ee.Zc=function(){return!0},Ee.ph=function(){return!1},Ee.Dd=function(){return!0};function Hv(a,y,x,b){y.constructor===a.constructor||GS||(GS=!0,Xn('Should not change the class of the Part when changing category from "'+x+'" to "'+b+'"'),Xn(" Old class: "+Fi(a.constructor)+", new class: "+Fi(y.constructor)+", part: "+a.toString())),a.Ej();var E=a.data;x=a.layerName;var z=a.isSelected,ee=a.isHighlighted,re=!0,oe=!0,le=!1;a instanceof Di&&(re=a.isTreeLeaf,oe=a.isTreeExpanded,le=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=z?a.G|4096:a.G&-4097,a.G=ee?a.G|524288:a.G&-524289,a instanceof Di&&(a.U=re?a.U|4:a.U&-5,a.U=oe?a.U|1:a.U&-2,a.U=le?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)}dr.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},dr.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},dr.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},dr.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},dr.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},dr.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},dr.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},dr.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},dr.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 Yh(a){return(a.G&32768)!==0}function Wv(a,y){a.G=y?a.G|32768:a.G&-32769}function Zv(a,y){a.G=y?a.G|65536:a.G&-65537}function Uh(a){return(a.G&131072)!==0}Ee=dr.prototype,Ee.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function Um(a,y){a.G=y?a.G|1048576:a.G&-1048577}Ee.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},Ee.N=function(){var a=this.diagram;a!==null&&!iu(this)&&!Yh(this)&&this.isVisible()&&this.Ib.w()&&a.N(Ff(this,this.Ib))},Ee.v=function(){si.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof Di&&this.labeledLink!==null&&nu(this.labeledLink),a.$b(!0))},Ee.Vo=function(a){a||(a=this.Ah,a!==null&&Xv(a,this))},Ee.Wo=function(a){a||(a=this.Ah,a!==null&&Jv(a,this))},Ee.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},Ee.oz=function(){return Kv(this,this)};function Kv(a,y){var x=y.containingGroup;return x!==null?1+Kv(a,x):y instanceof Di&&(y=y.labeledLink,y!==null)?Kv(a,y):0}Ee.sz=function(){return KS(this,this)};function KS(a,y){var x=y.containingGroup;return x!==null||y instanceof Di&&(x=y.labeledLink,x!==null)?KS(a,x):y}Ee.Td=function(a){return a instanceof Jr?Vv(this,this,a):!1};function Vv(a,y,x){if(y===x||x===null)return!1;var b=y.containingGroup;return b===null||b!==x&&!Vv(a,b,x)?y instanceof Di&&(y=y.labeledLink,y!==null)?Vv(a,y,x):!1:!0}Ee.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof Jr&&Um(y,!0),y instanceof Di){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 Di&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof Jr&&Um(y,!1),y instanceof Di&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},dr.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof Di&&this.isLinkLabel)},dr.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 Di&&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 VS(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function Xh(a,y,x,b,E,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof Yo)){if(a.add(y),y instanceof Di){if(x&&y instanceof Jr)for(var ee=y.memberParts;ee.next();)Xh(a,ee.value,x,b,E,z);if(E!==!1)for(ee=y.linksConnected;ee.next();){var re=ee.value;if(!a.contains(re)){var oe=re.fromNode,le=re.toNode;oe=oe===null||a.contains(oe),le=le===null||a.contains(le),(E?oe&&le:oe||le)&&Xh(a,re,x,b,E,z)}}if(1<b)for(y=y.Ou();y.next();)Xh(a,y.value,x,b-1,E,z)}else if(y instanceof fi)for(y=y.labelNodes;y.next();)Xh(a,y.value,x,b,E,z)}}tt.Object.defineProperties(dr.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?Br: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(ki,"parts",y,this,null,b,!0),b=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=b&&x.cb(ci,"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&&(bu(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&&Zu(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 Yo?this.type!==si.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:Ot},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),bu(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:cn},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),bu(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&&(bu(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:ga},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),bu(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,iu(this)===!1&&(Ym(this),x=this.pa,x.w())){var E=this.diagram;if(E===null||E.animationManager.isTicking||!E.undoManager.isUndoingRedoing){var z=x.copy();x.h(x.x+(y.x-b.x),x.y+(y.y-b.y)),zS(this,E,x,z.x,z.y),this.g("position",z,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 Yo)){var z=x.model.undoManager;z.isEnabled&&!z.isUndoingRedoing&&(E=this.clone(),E.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),x===null||b===null||this instanceof Yo?this instanceof Yo&&(E=this.adornedPart,E!==null&&(a=E.Qf,a!==null&&a.remove(y),E.bh(this.category,this))):(z=x.model,z.undoManager.isUndoingRedoing||(this.ph()?(x.partManager.setLinkCategoryForData(b,a),x=x.partManager.findLinkTemplateForCategory(a),x!==null&&(Nc(x),x=x.copy(),x!==null&&Hv(this,x,y,a))):(z!==null&&z.jm(b,a),x=mx(x.partManager,b,a),x!==null&&(Nc(x),x=x.copy(),x===null||x instanceof fi||(b=this.location.copy(),Hv(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){Hv(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&&(bu(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&&(bu(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&&(bu(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 fi?(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&&(bu(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&&(bu(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&&(bu(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:$o},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),bu(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&&(bu(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&&(bu(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:Xo},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),bu(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&&Pt("Cannot make a Group a member of itself: "+this.toString()),Pt("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Jv(y,this):this instanceof Jr&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Xv(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 z=E.wa(a!==null?a.data:null);E.mp(b,z)}}if(b=this.containingGroupChanged,b!==null&&(E=!0,x!==null&&(E=x.aa,x.aa=!0),b(this,y,a),x!==null&&(x.aa=E)),this instanceof Jr){for(x=new An,Xh(x,this,!0,0,!0),x=x.iterator;x.next();)if(b=x.value,b instanceof Di)for(b=b.linksConnected;b.next();)Rg(b.value)}if(this instanceof Di){for(x=this.linksConnected;x.next();)Rg(x.value);x=this.labeledLink,x!==null&&Rg(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&Zu(y,-1,a))}}else Pt("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&&(bu(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof Di&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(bu(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&&(bu(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:jn},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),bu(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&&(bu(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&&(bu(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),dr.prototype.invalidateLayout=dr.prototype.C,dr.prototype.findCommonContainingGroup=dr.prototype.px,dr.prototype.isMemberOf=dr.prototype.Td,dr.prototype.findTopLevelPart=dr.prototype.sz,dr.prototype.findSubGraphLevel=dr.prototype.oz,dr.prototype.ensureBounds=dr.prototype.Va,dr.prototype.getDocumentBounds=dr.prototype.mi,dr.prototype.findObject=dr.prototype.fb,dr.prototype.moveTo=dr.prototype.moveTo,dr.prototype.invalidateAdornments=dr.prototype.Wb,dr.prototype.clearAdornments=dr.prototype.Ej,dr.prototype.removeAdornment=dr.prototype.Jf,dr.prototype.addAdornment=dr.prototype.bh,dr.prototype.findAdornment=dr.prototype.Pj,dr.prototype.updateTargetBindings=dr.prototype.La;var GS=!1;dr.className="Part",dr.LayoutNone=0,dr.LayoutAdded=1,dr.LayoutRemoved=2,dr.LayoutShown=4,dr.LayoutHidden=8,dr.LayoutNodeSized=16,dr.LayoutGroupLayout=32,dr.LayoutNodeReplaced=64,dr.LayoutStandard=127,dr.LayoutAll=16777215;function Yo(a,y){a===void 0||a instanceof Us||typeof a=="string"?dr.call(this,a):(dr.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)}Lt(Yo,dr),Yo.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Yo.prototype.updateRelationshipsFromData=function(){},Yo.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof fi&&y instanceof oo){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 oo&&(E.ua=a)}}},Yo.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!iu(a))},Yo.prototype.Zc=function(){return!1},Yo.prototype.gk=function(a,y,x,b,E,z,ee){if(a===ci&&y==="elements"){if(E instanceof ou)this.$a===null&&(this.$a=E);else if(E instanceof si){var re=E.Nl(function(oe){return oe instanceof ou});re instanceof ou&&this.$a===null&&(this.$a=re)}}else a===ki&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof si&&this.$a.rg(b)&&(this.$a=null));dr.prototype.gk.call(this,a,y,x,b,E,z,ee)},Yo.prototype.updateAdornments=function(){},Yo.prototype.Lj=function(){},tt.Object.defineProperties(Yo.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}}}),Yo.className="Adornment";function Gv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=ys,this.er=Qm,this.Kr=this.ij=this.Nq=this.Mq=null}Gv.prototype.copy=function(){var a=new Gv;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 Di(a,y){a===void 0||a instanceof Us||typeof a=="string"?dr.call(this,a):(dr.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new Mn,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}Lt(Di,dr),Di.prototype.cloneProtected=function(a){dr.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},Ee=Di.prototype,Ee.Af=function(a){dr.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function Ch(a){a.Ba===null?a.Ba=new Gv:a.Ba.nc&&(a.Ba=a.Ba.copy())}Ee.th=function(){dr.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function YS(a,y){y!==null&&(a.af===null&&(a.af=new An),a.af.add(y))}function US(a,y,x,b){if(y===null||a.af===null)return null;for(var E=a.af.iterator;E.next();){var z=E.value;if(z.Ds===a&&z.cv===y&&z.Ox===x&&z.Px===b||z.Ds===y&&z.cv===a&&z.Ox===b&&z.Px===x)return z}return null}Ee.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=US(this,a,y,x),a!==null&&a.Sl()},Ee.gk=function(a,y,x,b,E,z,ee){a===ci&&y==="elements"?this.wc=null:a===ki&&y==="elements"&&(this.wc=null),dr.prototype.gk.call(this,a,y,x,b,E,z,ee)},Ee.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(Vu(x.fromPort),Vu(x.toPort),x.bb())}};function XS(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(Vu(x.fromPort),Vu(x.toPort),x.bb())}}function Vu(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||Vu(y.port)}}Ee.si=function(){return!0},Di.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},Di.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},Di.prototype.isVisible=function(){if(!dr.prototype.isVisible.call(this))return!1;var a=!0,y=vh,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===vh){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===js){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(b){return!b.isTreeExpanded}))return!1}else if(y===Pg&&(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},Di.prototype.Zb=function(a){dr.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)}},Di.prototype.qx=function(){var a=new An,y=new An;return JS(this,this,a,y),y.iterator};function JS(a,y,x,b){if(y!==null&&!x.has(y)){x.add(y);var E=!0,z=a.diagram;z!==null&&(E=z.isTreePathToChildren),y.linksConnected.each(function(ee){ee.isTreeLink?(E?ee.fromNode===y:ee.toNode===y)&&JS(a,E?ee.toNode:ee.fromNode,x,b):b.add(ee)})}}Di.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new $i(this.jb),x=this;return y.predicate=function(b){return b.fromNode===x&&b.fromPortId===a||b.toNode===x&&b.toPortId===a},y},Ee=Di.prototype,Ee.Mo=function(a){a===void 0&&(a=null);var y=new $i(this.jb),x=this;return y.predicate=function(b){return b.fromNode!==x?!1:a===null?!0:b.fromPortId===a},y},Ee.Sd=function(a){a===void 0&&(a=null);var y=new $i(this.jb),x=this;return y.predicate=function(b){return b.toNode!==x?!1:a===null?!0:b.toPortId===a},y},Ee.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 An,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 An,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Oi(x):Br},Ee.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 An,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Oi(x):Br},Ee.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 An,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Oi(x):Br},Ee.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new $i(this.jb),E=this;return b.predicate=function(z){return!((z.fromNode!==E||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)&&(z.fromNode!==a||z.toNode!==E||x!==null&&z.fromPortId!==x||y!==null&&z.toPortId!==y))},b},Ee.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new $i(this.jb),E=this;return b.predicate=function(z){return!(z.fromNode!==E||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)},b};function Xm(a,y,x){Vu(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 z=!0,ee=a.diagram;ee!==null&&(z=ee.aa,ee.aa=!0),E(a,y,x),ee!==null&&(ee.aa=z)}}!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,z=b?x:y,E.ci||(E.ci=z),!z.isTreeLeaf||a!==null&&a.undoManager.isUndoingRedoing||(b?x===z&&(z.isTreeLeaf=!1):y===z&&(z.isTreeLeaf=!1))))}function Jm(a,y,x){Vu(x);var b=a.jb.remove(y),E=null;if(b||y.toNode===y.fromNode){var z=a.linkDisconnected;if(E=a.diagram,z!==null){var ee=!0;E!==null&&(ee=E.aa,E.aa=!0),z(a,y,x),E!==null&&(E.aa=ee)}}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)):Lp(y)))}function Lp(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}}}Di.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},Ee=Di.prototype,Ee.Vo=function(a){dr.prototype.Vo.call(this,a),a||(Lp(this),a=this.Yk,a!==null&&rx(a,this))},Ee.Wo=function(a){dr.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},Ee.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,dr.prototype.Lj.call(this)},Ee.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;QS(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function QS(a){a.wc===null?a.wc=new zi:a.wc.clear(),a.qm(a,function(y,x){_S(y,x)}),a.wc.count===0&&a.wc.add("",a)}function _S(a,y){var x=y.portId;x!==null&&a.wc!==null&&a.wc.add(x,y)}function Yv(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=ei()),x.push(b);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);yi(x)}}}Ee.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},Ee.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}},Ee.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)Um(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;)Um(y,!1),y=y.pg();return x},Ee.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},Ee.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof Di)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},Ee.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 An;return a(this,y),y},Ee.uz=function(){return $S(this,this)};function $S(a,y){return y=y.pg(),y===null?0:1+$S(a,y)}Ee.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new $i(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},Ee.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 Mn,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 Mn,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new Oi(x):Br},Ee.wz=function(a){a===void 0&&(a=1/0);var y=new An;return Xh(y,this,!1,a,!0),y},Di.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 An;x.add(this),qS(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===vh),y.Ue=!1}};function qS(a,y,x,b,E,z,ee){if(1<b)for(var re=x?a.Mo():a.Sd();re.next();){var oe=re.value;oe.isTreeLink&&(oe=oe.To(a),oe===null||oe===a||y.contains(oe)||(y.add(oe),qS(oe,y,x,b-1,E,z,ee)))}else ex(a,y,x,E,z,ee)}function ex(a,y,x,b,E,z){for(var ee=E===a?!0:a.isTreeExpanded,re=x?a.Mo():a.Sd(),oe={};re.next();){var le=re.value;if(le.isTreeLink&&(le=le.To(a),le!==null&&le!==a)){var ue=y.contains(le);if(ue||y.add(le),ee){var fe=x?le.Oo():le.Po();oe.uv=a,fe.all(function(Se){return function(be){return be===Se.uv||!be.isTreeExpanded}}(oe))&&b.Aj(le,E),le.oh(),le.Zb(!1)}le.isTreeExpanded&&(le.wasTreeExpanded=le.isTreeExpanded,ue||ex(le,y,x,b,E,z))}oe={uv:oe.uv}}a.isTreeExpanded=!1}Di.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 An;x.add(this),tx(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===vh),y.Ue=!1}};function tx(a,y,x,b,E,z,ee){for(var re=z===a?!1:a.isTreeExpanded,oe=x?a.Mo():a.Sd(),le={};oe.next();){var ue=oe.value;if(ue.isTreeLink&&(re||ue.fd||ue.bb(),ue=ue.To(a),ue!==null&&ue!==a&&!y.contains(ue))){if(y.add(ue),!re){ue.Zb(!0),ue.oh();var fe=x?ue.Oo():ue.Po();le.vv=a,fe.all(function(Se){return function(be){return be===Se.vv||!be.isTreeExpanded}}(le))&&E.Cj(ue,z)}(2<b||ue.wasTreeExpanded)&&(ue.wasTreeExpanded=!1,tx(ue,y,x,b-1,E,z,ee))}le={vv:le.vv}}a.isTreeExpanded=!0}tt.Object.defineProperties(Di.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:Qm},set:function(a){var y=this.portSpreading;y!==a&&(Ch(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&&tu(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:ys},set:function(a){typeof a=="number"&&(a=new Gi(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Ch(this),this.Ba.yp=a;var x=this.diagram;x!==null&&tu(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&&(Ch(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&&(Ch(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&&(Ch(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,z=x.model;if(E!==null&&z.ri()){var ee=z.wa(b);ee!==void 0&&z.Qx(E,ee)}}this.containingGroup=null}this.Yk=a,a!==null&&(rx(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),nu(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&QS(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&&(Ch(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))}}}),Di.prototype.expandTree=Di.prototype.expandTree,Di.prototype.collapseTree=Di.prototype.collapseTree,Di.prototype.findTreeParts=Di.prototype.wz,Di.prototype.findTreeChildrenNodes=Di.prototype.Ou,Di.prototype.findTreeChildrenLinks=Di.prototype.Qo,Di.prototype.findTreeLevel=Di.prototype.uz,Di.prototype.findTreeParentChain=Di.prototype.vz,Di.prototype.findTreeParentNode=Di.prototype.pg,Di.prototype.findTreeParentLink=Di.prototype.kh,Di.prototype.findCommonTreeParent=Di.prototype.gz,Di.prototype.findTreeRoot=Di.prototype.xz,Di.prototype.isInTreeOf=Di.prototype.Nz,Di.prototype.findPort=Di.prototype.ns,Di.prototype.findLinksTo=Di.prototype.kz,Di.prototype.findLinksBetween=Di.prototype.jz,Di.prototype.findNodesInto=Di.prototype.Oo,Di.prototype.findNodesOutOf=Di.prototype.Po,Di.prototype.findNodesConnected=Di.prototype.Mu,Di.prototype.findLinksInto=Di.prototype.Sd,Di.prototype.findLinksOutOf=Di.prototype.Mo,Di.prototype.findExternalTreeLinksConnected=Di.prototype.qx,Di.prototype.invalidateConnectedLinks=Di.prototype.Bd,Di.prototype.invalidateLinkBundle=Di.prototype.Lz;var B1=new Xt(Di,"SpreadingNone",10),Qm=new Xt(Di,"SpreadingEvenly",11),Uv=new Xt(Di,"SpreadingPacked",12);Di.className="Node",Di.SpreadingNone=B1,Di.SpreadingEvenly=Qm,Di.SpreadingPacked=Uv;function Jr(a,y){a===void 0||a instanceof Us||typeof a=="string"?Di.call(this,a):(Di.call(this),a&&(y=a)),this.U|=4608,this.Gn=new An,this.$a=null,this.Sc=new Za,this.Sc.group=this,this.gl=new An,this.tb=this.$p=null,y&&Object.assign(this,y)}Lt(Jr,Di),Jr.prototype.cloneProtected=function(a){Di.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof ou});y instanceof ou?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())},Ee=Jr.prototype,Ee.Af=function(a){Di.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 Di)x.Bd(y);else if(x instanceof fi)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},Ee.gk=function(a,y,x,b,E,z,ee){if(a===ci&&y==="elements"){if(E instanceof ou)this.$a===null?this.$a=E:this.$a!==E&&Pt("Cannot insert a second Placeholder into the visual tree of a Group.");else if(E instanceof si){var re=E.Nl(function(oe){return oe instanceof ou});re instanceof ou&&(this.$a===null?this.$a=re:this.$a!==re&&Pt("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===ki&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof si&&this.$a.rg(b)&&(this.$a=null));Di.prototype.gk.call(this,a,y,x,b,E,z,ee)},Ee.Xl=function(a,y){Di.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==si.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof si&&(a=a.Pb()),this.tb===null&&(this.tb=new Pn),a.mi(this.tb),a instanceof oo&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},Ee.eh=function(a,y,x,b){this.nf=this.$a,Di.prototype.eh.call(this,a,y,x,b)},Ee.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof fi||y.Va()}),Di.prototype.Va.call(this)},Ee.si=function(){if(!Di.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof Di){if(y.isVisible()&&iu(y))return!1}else if(y instanceof fi&&y.isVisible()&&iu(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Xv(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 fi&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Jv(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 fi&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}Ee.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)}Di.prototype.Lj.call(this)},Jr.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=Nn(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=Nn(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))},Ee=Jr.prototype,Ee.Bd=function(a){var y=(this.U&65536)!==0;if(Di.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()?(Vu(x.fromPort),Vu(x.toPort),x.bb()):(b=x.toNode,b!==null&&b!==this&&b.Td(this)&&!b.isVisible()&&(Vu(x.fromPort),Vu(x.toPort),x.bb()))}}},Ee.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 An,b=y.iterator;b.next();){var E=b.value;if(E instanceof Di)for(E=E.linksConnected;E.next();){var z=E.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},Ee.iz=function(){var a=this.Rj();a.add(this);for(var y=new An,x=a.iterator;x.next();){var b=x.value;if(b instanceof Di)for(b=b.linksConnected;b.next();){var E=b.value,z=E.fromNode;z===null||a.contains(z)&&z!==this||y.add(z),E=E.toNode,E===null||a.contains(E)&&E!==this||y.add(E)}}return y.iterator},Ee.hz=function(){function a(x,b){x!==null&&(b.add(x),a(x.containingGroup,b))}var y=new An;return a(this,y),y},Ee.Rj=function(){var a=new An;return Xh(a,this,!0,0,!0),a.remove(this),a},Ee.Zb=function(a){Di.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();nx(this,y,a,this),a.Ue=!1}};function nx(a,y,x,b){for(var E=a.memberParts;E.next();){var z=E.value;if(z.Zb(!1),z instanceof Jr&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,nx(z,y,x,b)),z instanceof Di)z.Bd(y),x.Aj(z,b);else if(z instanceof fi)for(z=z.labelNodes;z.next();)z.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();ix(this,y,a,this),a.Ue=!1}};function ix(a,y,x,b){for(var E=a.memberParts;E.next();){var z=E.value;if(z.Zb(!0),z instanceof Jr&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,ix(z,y,x,b)),z instanceof Di)z.Bd(y),x.Cj(z,b);else if(z instanceof fi)for(z=z.labelNodes;z.next();)z.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,z=a.y;if(!(b===E||isNaN(b)&&isNaN(E))||!(x===z||isNaN(x)&&isNaN(z))){for(b=E-(isNaN(b)?0:b),x=z-(isNaN(x)?0:x),z=Je.alloc(),Di.prototype.move.call(this,a,y),a=new An,y=this.Rj().iterator;y.next();)E=y.value,E instanceof fi&&(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 Di&&E.isLinkLabel)){var ee=E.position,re=E.location;ee.w()?(z.x=ee.x+b,z.y=ee.y+x,E.position=z):re.w()&&(z.x=re.x+b,z.y=re.y+x,E.location=z)}for(y.reset();y.next();)E=y.value,E instanceof fi&&(E.suspendsRouting=a.contains(E),E.fd||E.fromNode!==this&&E.toNode!==this)&&(ee=E.position,z.x=ee.x+b,z.y=ee.y+x,z.w()?E.move(z):E.bb(),_v(E)&&E.bb());Je.free(z)}},tt.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&&Pt("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&&(Ch(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&&(Ch(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&&(Ch(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&&(Ch(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 ou(a){Kt.call(this),this.yb=Bs,this.ko=new Pn(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}Lt(ou,Kt),ou.prototype.cloneProtected=function(a){Kt.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},ou.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return Oo(0,0,y.width,y.height,a.x,a.y)},ou.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof Jr||a instanceof Yo)||Pt("Placeholder is not inside a Group or Adornment."),a instanceof Jr){var y=this.computeBorder(this.ko),x=this.minSize,b=this.dc;for(ca(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=Je.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),Je.free(x))}else{y=this.dc,x=this.yb,b=x.left+x.right;var E=x.top+x.bottom,z=a.adornedObject;a.angle=z.li();var ee=0;z instanceof oo&&(ee=z.strokeWidth);var re=z.Df(),oe=z.naturalBounds,le=(oe.width+ee)*re;ee=(oe.height+ee)*re,a.type!==si.Link&&(re=z.ga(a.category==="Selection"?ga:a.locationSpot,Je.alloc()),a.location=re,Je.free(re)),isNaN(le)||isNaN(ee)?(a=z.ga(ga,Je.alloc()),le=Pn.allocAt(a.x,a.y,0,0),le.Ye(z.ga(vl,a)),le.Ye(z.ga(ml,a)),le.Ye(z.ga(il,a)),ca(y,le.width+b||0,le.height+E||0),this.Ge(-x.left,-x.top,y.width,y.height),Je.free(a),Pn.free(le)):(ca(y,le+b||0,ee+E||0),this.Ge(-x.left,-x.top,y.width,y.height))}},ou.prototype.eh=function(a,y,x,b){this.actualBounds.h(a,y,x,b)},ou.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=Pn.alloc(),E=this.computeMemberBounds(x);var z=this.yb;return y instanceof Jr&&!y.isSubGraphExpanded?a.h(E.x-z.left,E.y-z.top,0,0):a.h(E.x-z.left,E.y-z.top,Math.max(E.width+z.left+z.right,0),Math.max(E.height+z.top+z.bottom,0)),Pn.free(x),b&&y instanceof Jr&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},ou.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,z=-1/0,ee=y.memberParts;ee.next();){var re=ee.value;if(re.isVisible()){if(re instanceof fi&&(!y.computesBoundsIncludingLinks||ec(re)||re.fromNode===y||re.toNode===y))continue;re=re.actualBounds,re.left<x&&(x=re.left),re.top<b&&(b=re.top),re.right>E&&(E=re.right),re.bottom>z&&(z=re.bottom)}}return isFinite(x)&&isFinite(b)?a.h(x,b,E-x,z-b):(y=y.location,a.h(y.x,y.y,0,0)),a},tt.Object.defineProperties(ou.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Gi(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),ou.className="Placeholder";function fi(a){dr.call(this,si.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=au,this.Om=0,this.Qm=au,this.Rm=NaN,this.qj=ey,this.po=.5,this.wd=null,this.Nb=new Mn().freeze(),this.Tg=this.Mg=null,this.ml=new Pn,this.ua=new di,this.u=this.o=this.Sf=this.Wf=null,this.su=new Je,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Lt(fi,dr),fi.prototype.cloneProtected=function(a){dr.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())},Ee=fi.prototype,Ee.Af=function(a){dr.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&&Vu(y),a=a.toPort,a!==null&&Vu(a)},Ee.qb=function(a){a.classType===fi?(a.value&2)===2?this.routing=a:a===nc||a===Eh||a===jg?this.curve=a:a===Np||a===n0||a===i0?this.adjusting=a:a!==ey&&a!==au&&Pt("Unknown Link enum value for a Link property: "+a):dr.prototype.qb.call(this,a)},Ee.Xc=function(){this.ba===null&&(this.ba=new mp)},Ee.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),iu(a)||Yh(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),iu(a)||Yh(a)))},Ee.zv=function(){return!1},Ee.Av=function(){},Ee.Zc=function(){return!1},fi.prototype.computeAngle=function(a,y,x){return fi.computeAngle(y,x)},fi.computeAngle=function(a,y){switch(a){default:case au:a=0;break;case Fp:a=y;break;case Dp:a=y+90;break;case Bp:a=y-90;break;case ty:a=y+180;break;case r0:a=Zt.bp(y),90<a&&270>a&&(a-=180);break;case Tp:a=Zt.bp(y+90),90<a&&270>a&&(a-=180);break;case Op:a=Zt.bp(y-90),90<a&&270>a&&(a-=180);break;case o0:if(a=Zt.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return Zt.bp(a)};function Rg(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&&Jv(x,a),a.Ah=y,y!==null&&Xv(y,a);var E=a.containingGroupChanged;if(E!==null){var z=!0,ee=a.diagram;ee!==null&&(z=ee.aa,ee.aa=!0),E(a,x,y),ee!==null&&(ee.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=b}Ee=fi.prototype,Ee.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&dr.prototype.oh.call(this)},Ee.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Ee.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function rx(a,y){a.wd===null&&(a.wd=new An),a.wd.add(y),a.v()}Ee.Vo=function(a){if(dr.prototype.Vo.call(this,a),Df(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Xm(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Xm(x,this,b)}Mp(this)}},Ee.Wo=function(a){if(dr.prototype.Wo.call(this,a),Df(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Jm(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Jm(x,this,b)}kp(this)}},Ee.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))},fi.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},fi.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?dr.prototype.move.call(this,a,!1):(a=Je.allocAt(x.x+b,x.y+E),dr.prototype.move.call(this,a,!1),Je.free(a)),bh(this,b,E),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+b,x.y+E)},fi.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},fi.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},fi.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(Dn),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()===nc))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()===nc){if(y===3){x=this.i(0),b=this.i(1);var E=this.i(2);return Zt.ax(x.x,x.y,b.x,b.y,b.x,b.y,E.x,E.y,a),a}if(b=(y-1)/3|0,x=3*(b/2|0),b%2===1){b=this.i(x),E=this.i(x+1);var z=this.i(x+2);x=this.i(x+3),Zt.ax(b.x,b.y,E.x,E.y,z.x,z.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var ee=this.flattenedLengths;for(x=this.flattenedTotalLength,E=z=b=0;b<x/2&&z<y&&(E=ee[z],!(b+E>x/2));)b+=E,z++;return y=this.i(z),z=this.i(z+1),1>Math.abs(y.x-z.x)?y.y>z.y?a.h(y.x,y.y-(x/2-b)):a.h(y.x,y.y+(x/2-b)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(x/2-b),y.y):a.h(y.x+(x/2-b),y.y):(x=(x/2-b)/E,a.h(y.x+x*(z.x-y.x),y.y+x*(z.y-y.y))),a},fi.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()===nc))return this.ua.wx(.5);if(this.computeCurve()===nc&&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),Zt.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 z;E<b/2&&x<a&&(z=y[x],!(E+z>b/2));)E+=z,x++;if(y=this.i(x),b=this.i(x+1),1>Math.abs(y.x-b.x)&&1>Math.abs(y.y-b.y)){if(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)},Ee=fi.prototype,Ee.i=function(a){return this.Nb.s[a]},Ee.dd=function(a,y){this.Nb.cd(a,y)},Ee.L=function(a,y,x){this.Nb.cd(a,new Je(y,x))},Ee.Kz=function(a,y){this.Nb.Gb(a,y)},Ee.m=function(a,y,x){this.Nb.Gb(a,new Je(y,x))},Ee.ne=function(a){this.Nb.add(a)},Ee.yf=function(a,y){this.Nb.add(new Je(a,y))},Ee.pv=function(a){this.Nb.mb(a)},Ee.Fj=function(){this.Nb.clear()};function bh(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 Mn,z=a.Nb.iterator;z.next();){var ee=z.value;E.add(new Je(ee.x+y,ee.y+x).freeze())}E.freeze(),z=a.Nb,a.Nb=E,ee=a.diagram,isNaN(y)||isNaN(x)||ee!==null&&ee.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),nu(a)),b?_m(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),ee!==null&&ee.animationManager.zb&&xa(ee.animationManager,a,E),a.g("points",z,E)}}Ee.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Ee.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,b=1/0,E=a.s,z=E.length,ee=0;ee<z;ee++){var re=E[ee];x=Math.min(re.x,x),b=Math.min(re.y,b)}re=ee=1/0;for(var oe=y.s,le=oe.length,ue=0;ue<le;ue++){var fe=oe[ue];ee=Math.min(fe.x,ee),re=Math.min(fe.y,re),fe.freeze()}if(y.freeze(),le===z){for(z=0;z<le;z++)if(ue=E[z],fe=oe[z],ue.x-x!==fe.x-ee||ue.y-b!==fe.y-re){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&xa(x.animationManager,this,y),_m(this),this.g("points",a,y)}},Ee.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function _m(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),t0(a,!1))}Ee.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())}},Ee.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()}}},fi.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(rg||(rg=new Di,rg.desiredSize=$r,rg.Va()),this.defaultFromPoint&&(rg.location=this.defaultFromPoint,rg.Va(),y=a=rg)):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?(og||(og=new Di,og.desiredSize=$r,og.Va()),this.defaultToPoint&&(og.location=this.defaultToPoint,og.Va(),E=b=og)):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 z=this.pointsCount,ee=this.computeSpot(!0,y);x=this.computeSpot(!1,E);var re=zg(ee),oe=zg(x),le=y===E&&y!==null,ue=this.isOrthogonal,fe=this.curve===nc;this.Wf=le&&!ue?fe=!0:!1;var Se=this.computeAdjusting()===au||le;if(!ue&&!le&&re&&oe){if(re=!1,!Se&&3<=z&&(Se=this.getLinkPoint(a,y,ee,!0,!1,b,E),oe=this.getLinkPoint(b,E,x,!1,!1,a,y),re=this.adjustPoints(0,Se,z-1,oe))&&(Se=this.getLinkPoint(a,y,ee,!0,!1,b,E),oe=this.getLinkPoint(b,E,x,!1,!1,a,y),this.adjustPoints(0,Se,z-1,oe)),!re)if(this.Fj(),fe){z=this.getLinkPoint(a,y,ee,!0,!1,b,E),Se=this.getLinkPoint(b,E,x,!1,!1,a,y),re=Se.x-z.x,oe=Se.y-z.y,le=this.computeCurviness(),fe=ue=0;var be=z.x+re/3,Ae=z.y+oe/3,Oe=be,rt=Ae;Zt.B(oe,0)?rt=0<re?rt-le:rt+le:(ue=-re/oe,fe=Math.sqrt(le*le/(ue*ue+1)),0>le&&(fe=-fe),Oe=(0>oe?-1:1)*fe+be,rt=ue*(Oe-be)+Ae),be=z.x+2*re/3,Ae=z.y+2*oe/3;var Ye=be,mt=Ae;Zt.B(oe,0)?mt=0<re?mt-le:mt+le:(Ye=(0>oe?-1:1)*fe+be,mt=ue*(Ye-be)+Ae),this.Fj(),this.ne(z),this.yf(Oe,rt),this.yf(Ye,mt),this.ne(Se),this.dd(0,this.getLinkPoint(a,y,ee,!0,!1,b,E)),this.dd(3,this.getLinkPoint(b,E,x,!1,!1,a,y))}else z=b,Se=E,b=this.getLinkPoint(a,y,ee,!0,!1,z,Se),E=this.getLinkPoint(z,Se,x,!1,!1,a,y),this.hasCurviness()?(Se=E.x-b.x,x=E.y-b.y,ee=this.computeCurviness(),a=b.x+Se/2,y=b.y+x/2,z=a,re=y,Zt.B(x,0)?re=0<Se?re-ee:re+ee:(Se=-Se/x,z=Math.sqrt(ee*ee/(Se*Se+1)),0>ee&&(z=-z),z=(0>x?-1:1)*z+a,re=Se*(z-a)+y),this.ne(b),this.yf(z,re),this.ne(E)):(this.ne(b),this.ne(E),re=Pn.alloc(),y.mi(re),oe=re.ca(E),Se.mi(re),le=re.ca(b),(oe||le)&&(ee=y.ga(qm(ee),new Je),this.dd(0,this.getLinkPointFromPoint(a,y,ee,E,!0,ee)),x=Se.ga(qm(x),new Je),this.dd(1,this.getLinkPointFromPoint(z,Se,x,b,!1,x))),Pn.free(re))}else{fe=this.isAvoiding,Se&&(ue&&fe||le)&&this.Fj();var wt=le?this.computeCurviness():0;fe=this.getLinkPoint(a,y,ee,!0,ue,b,E),be=Oe=Ae=0,(ue||!re||le)&&(rt=this.computeEndSegmentLength(a,y,ee,!0),be=this.getLinkDirection(a,y,fe,ee,!0,ue,b,E),le&&(re||ee.D(x)||!ue&&ee.x+x.x===1&&ee.y+x.y===1)&&(be-=ue?90:30,0>wt&&(be-=180)),0>be?be+=360:360<=be&&(be-=360),le&&(rt+=Math.abs(wt)*(ue?1:2)),be===0?Ae=rt:be===90?Oe=rt:be===180?Ae=-rt:be===270?Oe=-rt:(Ae=rt*Math.cos(be*Math.PI/180),Oe=rt*Math.sin(be*Math.PI/180)),ee.Mc()&&le&&(rt=y.ga(xo,Je.alloc()),Ye=Je.allocAt(rt.x+1e3*Ae,rt.y+1e3*Oe),this.getLinkPointFromPoint(a,y,rt,Ye,!0,fe),Je.free(rt),Je.free(Ye))),rt=this.getLinkPoint(b,E,x,!1,ue,a,y);var Mt=mt=Ye=0;if(ue||!oe||le){var jt=this.computeEndSegmentLength(b,E,x,!1);Mt=this.getLinkDirection(b,E,rt,x,!1,ue,a,y),le&&(oe||ee.D(x)||!ue&&ee.x+x.x===1&&ee.y+x.y===1)&&(Mt+=ue?0:30,0>wt&&(Mt+=180)),0>Mt?Mt+=360:360<=Mt&&(Mt-=360),le&&(jt+=Math.abs(wt)*(ue?1:2)),Mt===0?Ye=jt:Mt===90?mt=jt:Mt===180?Ye=-jt:Mt===270?mt=-jt:(Ye=jt*Math.cos(Mt*Math.PI/180),mt=jt*Math.sin(Mt*Math.PI/180)),x.Mc()&&le&&(x=E.ga(xo,Je.alloc()),ee=Je.allocAt(x.x+1e3*Ye,x.y+1e3*mt),this.getLinkPointFromPoint(b,E,x,ee,!1,rt),Je.free(x),Je.free(ee))}x=fe,(ue||!re||le)&&(x=new Je(fe.x+Ae,fe.y+Oe)),ee=rt,(ue||!oe||le)&&(ee=new Je(rt.x+Ye,rt.y+mt)),!Se&&!ue&&re&&3<z&&this.adjustPoints(0,fe,z-2,ee)?this.dd(z-1,rt):!Se&&!ue&&oe&&3<z&&this.adjustPoints(1,x,z-1,rt)?this.dd(0,fe):!Se&&(ue?6<=z:4<z)&&this.adjustPoints(1,x,z-2,ee)?(this.dd(0,fe),this.dd(z-1,rt)):(this.Fj(),this.ne(fe),(ue||!re||le)&&this.ne(x),ue&&this.addOrthoPoints(x,be,ee,Mt,a,b),(ue||!oe||le)&&this.ne(ee),this.ne(rt))}return!0};function Qv(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}fi.prototype.getLinkPointFromPoint=function(a,y,x,b,E,z){if(z===void 0&&(z=new Je),a===null||y===null)return z.assign(x),z;if(a.isVisible()||(E=a.findVisibleNode(),E!==null&&E!==a&&(y=E.port)),a=null,E=y.panel,E===null||E.se()||(E=E.panel),E===null){E=b.x,b=b.y;var ee=x.x;x=x.y}else{a=E.oe,E=1/(a.m11*a.m22-a.m12*a.m21),ee=a.m22*E;var re=-a.m12*E,oe=-a.m21*E,le=a.m11*E,ue=E*(a.m21*a.dy-a.m22*a.dx),fe=E*(a.m12*a.dx-a.m11*a.dy);E=b.x*ee+b.y*oe+ue,b=b.x*re+b.y*le+fe,ee=x.x*ee+x.y*oe+ue,x=x.x*re+x.y*le+fe}return y.Sj(E,b,ee,x,z),a!==null&&z.transform(a),z};function $m(a,y){var x=y.Zn;return x===null&&(x=new ag,x.port=y,x.node=y.part,y.Zn=x),hx(x,a)}fi.prototype.getLinkPoint=function(a,y,x,b,E,z,ee,re){if(re===void 0&&(re=new Je),x.sb()&&!zg(x))return y.ga(x,re),re;if(x.$c()){var oe=$m(this,y);if(oe!==null){if(re.assign(oe.Zo),E&&this.routing===ax){var le=$m(this,ee);if(le!==null&&oe.Gl<le.Gl){oe=Je.alloc(),le=Je.alloc();var ue=new Pn(y.ga(ga,oe),y.ga(vl,le)),fe=this.computeSpot(!b,ee);a=this.getLinkPoint(z,ee,fe,!b,E,a,y,le),(x.Hf(yl)||x.Hf(rl))&&a.y>=ue.y&&a.y<=ue.y+ue.height?re.y=a.y:(x.Hf(fu)||x.Hf(Sl))&&a.x>=ue.x&&a.x<=ue.x+ue.width&&(re.x=a.x),Je.free(oe),Je.free(le)}}return re}}return x=y.ga(qm(x),Je.alloc()),this.pointsCount>(E?6:2)?(ee=b?this.i(1):this.i(this.pointsCount-2),E&&(ee=Qv(x,ee.copy()))):(oe=this.computeSpot(!b,ee),z=Je.alloc(),ee=ee.ga(qm(oe),z),E&&(ee=Qv(x,ee)),Je.free(z)),this.getLinkPointFromPoint(a,y,x,ee,b,re),Je.free(x),re},fi.prototype.getLinkDirection=function(a,y,x,b,E,z,ee,re){e:if(b.sb())var oe=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()&&(oe=$m(this,y),oe!==null))switch(oe.Nc){case 1:oe=270;break e;case 2:oe=180;break e;default:case 4:oe=0;break e;case 8:oe=90;break e}oe=y.ga(xo,Je.alloc()),this.pointsCount>(z?6:2)?(re=E?this.i(1):this.i(this.pointsCount-2),re=z?Qv(oe,re.copy()):x):(x=Je.alloc(),re=re.ga(xo,x),Je.free(x)),x=Math.abs(re.x-oe.x)>Math.abs(re.y-oe.y)?re.x>=oe.x?0:180:re.y>=oe.y?90:270,Je.free(oe),oe=x}return b.Mc()&&ee.Td(a)&&(oe+=180,360<=oe&&(oe-=360)),zg(b)||(a=y.li(),a===0)||(45<=a&&135>a?oe+=90:135<=a&&225>a?oe+=180:225<=a&&315>a&&(oe+=270),360<=oe&&(oe-=360)),oe},fi.prototype.computeEndSegmentLength=function(a,y,x,b){return y!==null&&x.$c()&&(a=$m(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)},fi.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=xo:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Xo?Da:y)):(a=y||this.toPort,a===null?a=xo:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Xo?Da:y)),a};function zg(a){return a===Da||a.x===.5&&a.y===.5}function qm(a){return a.x===.5&&a.y===.5?a:xo}fi.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==au&&4<this.pointsCount?this.computeMidPoint(new Je):(a=y.Zn,a=a!==null?hx(a,this):null,a!==null?a.Zo:y.ga(xo))},fi.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},fi.prototype.Cf=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var ee=z;if(z===void 0&&(ee=Hr.alloc(),ee.reset()),ee.multiply(this.transform),this.fh(a,ee))return xv(this,y,x,E),z===void 0&&Hr.free(ee),!0;if(this.Yc(a,ee)){var re=!1;if(!this.isAtomic)for(var oe=this.O.s,le=oe.length;le--;){var ue=oe[le];if(ue.visible||ue===this.locationObject){var fe=ue.actualBounds,Se=this.naturalBounds;if(!(fe.x>Se.width||fe.y>Se.height||0>fe.x+fe.width||0>fe.y+fe.height)){if(fe=Hr.alloc(),fe.set(ee),ue instanceof si)re=ue.Cf(a,y,x,b,E,fe);else if(this.path===ue){if(ue instanceof oo)if(re=a,Se=b,ue.pickable===!1)re=!1;else if(fe.multiply(ue.transform),Se)e:{var be=re,Ae=fe;if(ue.fh(be,Ae))re=!0;else{if(Ae===void 0&&(Ae=ue.transform,be.Re(ue.actualBounds))){re=!0;break e}re=be.left,Se=be.right;var Oe=be.top;be=be.bottom;var rt=Je.alloc(),Ye=Je.alloc(),mt=Je.alloc(),wt=Hr.alloc();wt.set(Ae),wt.bv(ue.transform),wt.Vj(),Ye.x=Se,Ye.y=Oe,Ye.transform(wt),rt.x=re,rt.y=Oe,rt.transform(wt),Ae=!1,Nf(ue,rt,Ye,mt)?Ae=!0:(rt.x=Se,rt.y=be,rt.transform(wt),Nf(ue,rt,Ye,mt)?Ae=!0:(Ye.x=re,Ye.y=be,Ye.transform(wt),Nf(ue,rt,Ye,mt)?Ae=!0:(rt.x=re,rt.y=Oe,rt.transform(wt),Nf(ue,rt,Ye,mt)&&(Ae=!0)))),Hr.free(wt),Je.free(rt),Je.free(Ye),Je.free(mt),re=Ae}}else re=ue.fh(re,fe)}else re=$s(ue,a,b,fe);re&&(Se=ue,y!==null&&(Se=y(ue)),Se&&(x===null||x(Se))&&E.add(Se)),Hr.free(fe)}}}return z===void 0&&Hr.free(ee),re||this.background!==null||this.areaBackground!==null}return z===void 0&&Hr.free(ee),!1},fi.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?nc:this.curve},fi.prototype.computeCorner=function(){if(this.curve===nc)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},fi.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},fi.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=lx;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,z=b.margin,ee=isNaN(E.width)?30:E.width*b.scale+z.left+z.right;E=isNaN(E.height)?14:E.height*b.scale+z.top+z.bottom,b=b.segmentOrientation,b===Fp||b===r0||b===ty?a=Math.max(a,E):b===Bp||b===Op||b===Dp||b===Tp?a=Math.max(a,ee):(y=y.ga(xo).ab(x.ga(xo))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*ee)+Math.abs(Math.cos(y)*E)+1)),this.curve===nc&&(a*=1.333)}}return a},fi.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===au&&x.bb()}},fi.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=sx;var y=this.Sf;if(y!==null){for(var x=ei(),b=0,E=y.links,z=0;z<E.length;z++){var ee=E[z].computeSpacing();x.push(ee),b+=ee}for(b=-b/2,z=0;z<E.length;z++){if(E[z]===this){a=b+x[z]/2;break}b+=x[z]}y.Ds===this.fromNode&&(a=-a),yi(x)}}return a},fi.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},fi.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},fi.prototype.adjustPoints=function(a,y,x,b){var E=this.computeAdjusting();if(this.isOrthogonal){if(E===n0)return!1;E===i0&&(E=Np)}switch(E){case n0:var z=this.i(a),ee=this.i(x);if(!z.Xa(y)||!ee.Xa(b)){E=z.x,z=z.y;var re=ee.x-E,oe=ee.y-z,le=Math.sqrt(re*re+oe*oe);if(!Zt.$(le,0)){if(Zt.$(re,0))var ue=0>oe?-Math.PI/2:Math.PI/2;else ue=Math.atan(oe/Math.abs(re)),0>re&&(ue=Math.PI-ue);ee=y.x;var fe=y.y;re=b.x-ee;var Se=b.y-fe;for(oe=Math.sqrt(re*re+Se*Se),Zt.$(re,0)?Se=0>Se?-Math.PI/2:Math.PI/2:(Se=Math.atan(Se/Math.abs(re)),0>re&&(Se=Math.PI-Se)),le=oe/le,ue=Se-ue,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),re=y.x-E,oe=y.y-z,y=Math.sqrt(re*re+oe*oe),Zt.$(y,0)||(Zt.$(re,0)?oe=0>oe?-Math.PI/2:Math.PI/2:(oe=Math.atan(oe/Math.abs(re)),0>re&&(oe=Math.PI-oe)),re=oe+ue,y*=le,this.L(a,ee+y*Math.cos(re),fe+y*Math.sin(re)));this.dd(x,b)}}return!0;case i0:if(z=this.i(a),fe=this.i(x),!z.Xa(y)||!fe.Xa(b)){E=z.x,z=z.y,ee=fe.x,fe=fe.y,le=(ee-E)*(ee-E)+(fe-z)*(fe-z),re=y.x,ue=y.y,oe=b.x,Se=b.y;var be=1;if(oe-re!==0){var Ae=(Se-ue)/(oe-re);be=Math.sqrt(1+1/(Ae*Ae))}else Ae=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var Oe=y.x,rt=y.y,Ye=.5;le!==0&&(Ye=((E-Oe)*(E-ee)+(z-rt)*(z-fe))/le);var mt=E+Ye*(ee-E),wt=z+Ye*(fe-z);y=Math.sqrt((Oe-mt)*(Oe-mt)+(rt-wt)*(rt-wt)),rt<Ae*(Oe-mt)+wt&&(y=-y),0<Ae&&(y=-y),Oe=re+Ye*(oe-re),Ye=ue+Ye*(Se-ue),Ae!==0?(y=Oe+y/be,this.L(a,y,Ye-(y-Oe)/Ae)):this.L(a,Oe,Ye+y)}this.dd(x,b)}return!0;case Np:e:{if(this.isOrthogonal&&(E=this.i(a),z=this.i(a+1),ee=this.i(a+2),re=z.x,ue=z.y,fe=re,le=ue,Zt.B(E.y,z.y)?Zt.B(z.x,ee.x)?ue=y.y:Zt.B(z.y,ee.y)&&(re=y.x):Zt.B(E.x,z.x)&&(Zt.B(z.y,ee.y)?re=y.x:Zt.B(z.x,ee.x)&&(ue=y.y)),this.L(a+1,re,ue),E=this.i(x),z=this.i(x-1),ee=this.i(x-2),re=z.x,ue=z.y,oe=re,Se=ue,Zt.B(E.y,z.y)?Zt.B(z.x,ee.x)?ue=b.y:Zt.B(z.y,ee.y)&&(re=b.x):Zt.B(E.x,z.x)&&(Zt.B(z.y,ee.y)?re=b.x:Zt.B(z.x,ee.x)&&(ue=b.y)),this.L(x-1,re,ue),_v(this))){this.L(a+1,fe,le),this.L(x-1,oe,Se),x=!1;break e}this.dd(a,y),this.dd(x,b),x=!0}return x;default:return!1}},fi.prototype.addOrthoPoints=function(a,y,x,b,E,z){0>y?y+=360:360<=y&&(y-=360),0>b?b+=360:360<=b&&(b-=360);var ee=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 re=E.actualBounds.copy(),oe=z.actualBounds.copy();if(re.w()&&oe.w()){re.Bc(Ip,Ip),oe.Bc(Ip,Ip),re.Ye(a),oe.Ye(x);var le=Je.alloc(),ue=Je.alloc();y===0?x.x>a.x||b===270&&x.y<a.y&&oe.right>a.x||b===90&&x.y>a.y&&oe.right>a.x?(le.h(x.x,a.y),ue.h(x.x,(a.y+x.y)/2),b===180?(le.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ue.x=le.x,ue.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(le.x=a.x<oe.left?this.computeMidOrthoPosition(a.x,a.y,oe.left,x.y,!1):a.x<oe.right&&(b===270&&a.y<oe.top||b===90&&a.y>oe.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):oe.right,ue.x=le.x,ue.y=x.y):b===0&&a.x<oe.left&&a.y>oe.top&&a.y<oe.bottom&&(le.x=a.x,le.y=a.y<x.y?Math.min(x.y,oe.top):Math.max(x.y,oe.bottom),ue.y=le.y)):(le.h(a.x,x.y),ue.h((a.x+x.x)/2,x.y),(b===180||b===90&&x.y<re.top||b===270&&x.y>re.bottom)&&(b===180&&(oe.ca(a)||re.ca(x))?le.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===180||b===90)?le.y=this.computeMidOrthoPosition(a.x,re.top,x.x,Math.max(x.y,oe.bottom),!0):x.y>a.y&&(b===180||b===270)&&(le.y=this.computeMidOrthoPosition(a.x,re.bottom,x.x,Math.min(x.y,oe.top),!0)),ue.x=x.x,ue.y=le.y),le.y>re.top&&le.y<re.bottom&&(x.x>=re.left&&x.x<=a.x||a.x<=oe.right&&a.x>=x.x?(b===90||b===270)&&(le.h(Math.max((a.x+x.x)/2,a.x),a.y),ue.h(le.x,x.y)):(le.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===0?re.top:Math.min(re.top,oe.top)):Math.max(x.y,b===0?re.bottom:Math.max(re.bottom,oe.bottom)),ue.x=x.x,ue.y=le.y))):y===180?x.x<a.x||b===270&&x.y<a.y&&oe.left<a.x||b===90&&x.y>a.y&&oe.left<a.x?(le.h(x.x,a.y),ue.h(x.x,(a.y+x.y)/2),b===0?(le.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ue.x=le.x,ue.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(le.x=a.x>oe.right?this.computeMidOrthoPosition(a.x,a.y,oe.right,x.y,!1):a.x>oe.left&&(b===270&&a.y<oe.top||b===90&&a.y>oe.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):oe.left,ue.x=le.x,ue.y=x.y):b===180&&a.x>oe.right&&a.y>oe.top&&a.y<oe.bottom&&(le.x=a.x,le.y=a.y<x.y?Math.min(x.y,oe.top):Math.max(x.y,oe.bottom),ue.y=le.y)):(le.h(a.x,x.y),ue.h((a.x+x.x)/2,x.y),(b===0||b===90&&x.y<re.top||b===270&&x.y>re.bottom)&&(b===0&&(oe.ca(a)||re.ca(x))?le.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===0||b===90)?le.y=this.computeMidOrthoPosition(a.x,re.top,x.x,Math.max(x.y,oe.bottom),!0):x.y>a.y&&(b===0||b===270)&&(le.y=this.computeMidOrthoPosition(a.x,re.bottom,x.x,Math.min(x.y,oe.top),!0)),ue.x=x.x,ue.y=le.y),le.y>re.top&&le.y<re.bottom&&(x.x<=re.right&&x.x>=a.x||a.x>=oe.left&&a.x<=x.x?(b===90||b===270)&&(le.h(Math.min((a.x+x.x)/2,a.x),a.y),ue.h(le.x,x.y)):(le.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===180?re.top:Math.min(re.top,oe.top)):Math.max(x.y,b===180?re.bottom:Math.max(re.bottom,oe.bottom)),ue.x=x.x,ue.y=le.y))):y===90?x.y>a.y||b===180&&x.x<a.x&&oe.bottom>a.y||b===0&&x.x>a.x&&oe.bottom>a.y?(le.h(a.x,x.y),ue.h((a.x+x.x)/2,x.y),b===270?(le.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ue.x=x.x,ue.y=le.y):b===180&&x.x<a.x||b===0&&x.x>a.x?(le.y=a.y<oe.top?this.computeMidOrthoPosition(a.x,a.y,x.x,oe.top,!0):a.y<oe.bottom&&(b===180&&a.x<oe.left||b===0&&a.x>oe.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):oe.bottom,ue.x=x.x,ue.y=le.y):b===90&&a.y<oe.top&&a.x>oe.left&&a.x<oe.right&&(le.x=a.x<x.x?Math.min(x.x,oe.left):Math.max(x.x,oe.right),le.y=a.y,ue.x=le.x)):(le.h(x.x,a.y),ue.h(x.x,(a.y+x.y)/2),(b===270||b===0&&x.x<re.left||b===180&&x.x>re.right)&&(b===270&&(oe.ca(a)||re.ca(x))?le.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===270||b===0)?le.x=this.computeMidOrthoPosition(re.left,a.y,Math.max(x.x,oe.right),x.y,!1):x.x>a.x&&(b===270||b===180)&&(le.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(x.x,oe.left),x.y,!1)),ue.x=le.x,ue.y=x.y),le.x>re.left&&le.x<re.right&&(x.y>=re.top&&x.y<=a.y||a.y<=oe.bottom&&a.y>=x.y?(b===0||b===180)&&(le.h(a.x,Math.max((a.y+x.y)/2,a.y)),ue.h(x.x,le.y)):(le.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===90?re.left:Math.min(re.left,oe.left)):Math.max(x.x,b===90?re.right:Math.max(re.right,oe.right)),ue.x=le.x,ue.y=x.y))):x.y<a.y||b===180&&x.x<a.x&&oe.top<a.y||b===0&&x.x>a.x&&oe.top<a.y?(le.h(a.x,x.y),ue.h((a.x+x.x)/2,x.y),b===90?(le.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ue.x=x.x,ue.y=le.y):b===180&&x.x<a.x||b===0&&x.x>=a.x?(le.y=a.y>oe.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,oe.bottom,!0):a.y>oe.top&&(b===180&&a.x<oe.left||b===0&&a.x>oe.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):oe.top,ue.x=x.x,ue.y=le.y):b===270&&a.y>oe.bottom&&a.x>oe.left&&a.x<oe.right&&(le.x=a.x<x.x?Math.min(x.x,oe.left):Math.max(x.x,oe.right),le.y=a.y,ue.x=le.x)):(le.h(x.x,a.y),ue.h(x.x,(a.y+x.y)/2),(b===90||b===0&&x.x<re.left||b===180&&x.x>re.right)&&(b===90&&(oe.ca(a)||re.ca(x))?le.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===90||b===0)?le.x=this.computeMidOrthoPosition(re.left,a.y,Math.max(x.x,oe.right),x.y,!1):x.x>a.x&&(b===90||b===180)&&(le.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(x.x,oe.left),x.y,!1)),ue.x=le.x,ue.y=x.y),le.x>re.left&&le.x<re.right&&(x.y<=re.bottom&&x.y>=a.y||a.y>=oe.top&&a.y<=x.y?(b===0||b===180)&&(le.h(a.x,Math.min((a.y+x.y)/2,a.y)),ue.h(x.x,le.y)):(le.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===270?re.left:Math.min(re.left,oe.left)):Math.max(x.x,b===270?re.right:Math.max(re.right,oe.right)),ue.x=le.x,ue.y=x.y)));var fe=x;if(this.isAvoiding){var Se=this.diagram;if(Se===null||E===z||this.layer.isTemporary||!la(Se)||re.ca(fe)&&!z.Td(E)||oe.ca(a)&&!E.Td(z))y=!1;else{var be=rs(Se,!0,this.containingGroup,null);if(this.segmentIndex!==17&&be.Yj(Math.min(a.x,le.x),Math.min(a.y,le.y),Math.abs(a.x-le.x),Math.abs(a.y-le.y))&&be.Yj(Math.min(le.x,ue.x),Math.min(le.y,ue.y),Math.abs(le.x-ue.x),Math.abs(le.y-ue.y))&&be.Yj(Math.min(ue.x,fe.x),Math.min(ue.y,fe.y),Math.abs(ue.x-fe.x),Math.abs(ue.y-fe.y)))y=!1;else{E=a,z=fe;var Ae=x=null;if(Se.isVirtualized){Se=be.bounds.copy(),Se.Bc(-be.Ho,-be.Go);var Oe=Je.alloc();Hg(be,a.x,a.y)||(Zt.Ff(Se.x,Se.y,Se.x+Se.width,Se.y+Se.height,a.x,a.y,le.x,le.y,Oe)?(x=a=Oe.copy(),y=Oe.ab(le)):Zt.Ff(Se.x,Se.y,Se.x+Se.width,Se.y+Se.height,le.x,le.y,ue.x,ue.y,Oe)?(x=a=Oe.copy(),y=Oe.ab(ue)):Zt.Ff(Se.x,Se.y,Se.x+Se.width,Se.y+Se.height,ue.x,ue.y,fe.x,fe.y,Oe)&&(x=a=Oe.copy(),y=Oe.ab(fe))),Hg(be,fe.x,fe.y)||(Zt.Ff(Se.x,Se.y,Se.x+Se.width,Se.y+Se.height,fe.x,fe.y,ue.x,ue.y,Oe)?(Ae=fe=Oe.copy(),b=ue.ab(Oe)):Zt.Ff(Se.x,Se.y,Se.x+Se.width,Se.y+Se.height,ue.x,ue.y,le.x,le.y,Oe)?(Ae=fe=Oe.copy(),b=le.ab(Oe)):Zt.Ff(Se.x,Se.y,Se.x+Se.width,Se.y+Se.height,le.x,le.y,a.x,a.y,Oe)&&(Ae=fe=Oe.copy(),b=a.ab(Oe))),Je.free(Oe)}re=re.copy().ed(oe),re.Bc(be.Ho*be.Os,be.Go*be.Os),cx(be,a,y,fe,b,re,!0),oe=Dd(be,fe.x,fe.y),!be.abort&&oe>=Wg&&(ux(be),re.Bc(be.Ho*be.Hx,be.Go*be.Ix),cx(be,a,y,fe,b,re,!1),oe=Dd(be,fe.x,fe.y)),!be.abort&&oe<Wg&&Dd(be,fe.x,fe.y)!==Ah?($v(this,be,fe.x,fe.y,b,!0,ee),re=this.i(2),4>this.pointsCount?(y===0||y===180?(re.x=a.x,re.y=fe.y):(re.x=fe.x,re.y=a.y),this.L(2,re.x,re.y),this.m(3,re.x,re.y)):(ee=this.i(3),y===0||y===180?Zt.B(re.x,ee.x)?(re=y===0?Math.max(re.x,a.x):Math.min(re.x,a.x),this.L(2,re,a.y),this.L(3,re,ee.y)):Zt.B(re.y,ee.y)?(Math.abs(a.y-re.y)<=be.Go/2&&(this.L(2,re.x,a.y),this.L(3,ee.x,a.y)),this.m(2,re.x,a.y)):this.L(2,a.x,re.y):(y===90||y===270)&&(Zt.B(re.y,ee.y)?(re=y===90?Math.max(re.y,a.y):Math.min(re.y,a.y),this.L(2,a.x,re),this.L(3,ee.x,re)):Zt.B(re.x,ee.x)?(Math.abs(a.x-re.x)<=be.Ho/2&&(this.L(2,a.x,re.y),this.L(3,a.x,ee.y)),this.m(2,a.x,re.y)):this.L(2,re.x,a.y))),x!==null&&(a=this.i(1),ee=this.i(2),a.x!==ee.x&&a.y!==ee.y?y===0||y===180?this.m(2,a.x,ee.y):this.m(2,ee.x,a.y):y===0||y===180?this.m(2,E.x,x.y):this.m(2,x.x,E.y)),Ae!==null&&(b===0||b===180?this.yf(z.x,Ae.y):this.yf(Ae.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(le.copy()),this.ne(ue.copy())),Je.free(le),Je.free(ue)}},fi.prototype.computeMidOrthoPosition=function(a,y,x,b,E){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),E?(y+b)/2+z:(a+x)/2+z};function _v(a){if(a.diagram===null||!a.isAvoiding||!la(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=rs(a.diagram,!0,a.containingGroup,null);for(var b=1;b<x-2;b++){var E=y[b],z=y[b+1];if(!a.Yj(Math.min(E.x,z.x),Math.min(E.y,z.y),Math.abs(E.x-z.x),Math.abs(E.y-z.y)))return!0}return!1}function $v(a,y,x,b,E,z,ee){var re=y.Ho,oe=y.Go,le=Dd(y,x,b),ue=x,fe=b;for(E===0?ue+=re:E===90?fe+=oe:E===180?ue-=re:fe-=oe,E!==ee&&le>Bf&&Dd(y,ue,fe)!==le-1&&(Dd(y,x-re,b)===le-1?(E=180,ue=x-re,fe=b):Dd(y,x+re,b)===le-1?(E=0,ue=x+re,fe=b):Dd(y,x,b-oe)===le-1?(E=270,ue=x,fe=b-oe):Dd(y,x,b+oe)===le-1&&(E=90,ue=x,fe=b+oe));le>Bf&&Dd(y,ue,fe)===le-1;)x=ue,b=fe,E===0?ue+=re:E===90?fe+=oe:E===180?ue-=re:fe-=oe,--le;z?le>Bf&&(E===180||E===0?x=Math.floor(x/re)*re+re/2:(E===90||E===270)&&(b=Math.floor(b/oe)*oe+oe/2)):(x=Math.floor(x/re)*re+re/2,b=Math.floor(b/oe)*oe+oe/2),le>Bf&&(z=E,ee=x,ue=b,E===0?(z=90,ue+=oe):E===90?(z=180,ee-=re):E===180?(z=270,ue-=oe):E===270&&(z=0,ee+=re),Dd(y,ee,ue)===le-1?$v(a,y,ee,ue,z,!1,z):(ee=x,ue=b,E===0?(z=270,ue-=oe):E===90?(z=0,ee+=re):E===180?(z=90,ue+=oe):E===270&&(z=180,ee-=re),Dd(y,ee,ue)===le-1&&$v(a,y,ee,ue,z,!1,z))),a.yf(x,b)}fi.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),b=this.i(1),E=Ii(y,a,x.x,x.y,b.x,b.y),z=0,ee=1;ee<this.pointsCount-1;ee++){x=this.i(ee+1);var re=Ii(y,a,b.x,b.y,x.x,x.y);b=x,re<E&&(z=ee,E=re)}return z},fi.prototype.qc=function(){this.lk=!1,this.v()},fi.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 oo&&(E.ua=this.ua)}}},fi.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,b=this.diagram;b!==null&&Df(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(),z=E.copy();b=this.Nb.s;var ee=this.computeCurve();if(ee===nc&&3<=y&&!Zt.$(this.smoothness,0))if(y===3){var re=this.i(1);b=Math.min(E.x,re.x);var oe=Math.min(E.y,re.y);re=this.i(2),b=Math.min(b,re.x),oe=Math.min(oe,re.y)}else{if(this.isOrthogonal)for(oe=0;oe<y;oe++)re=b[oe],z.x=Math.min(re.x,z.x),z.y=Math.min(re.y,z.y);else for(b=3;b<y;b+=3)b+3>=y&&(b=y-1),oe=this.i(b),z.x=Math.min(oe.x,z.x),z.y=Math.min(oe.y,z.y);b=z.x,oe=z.y}else{for(oe=0;oe<y;oe++)re=b[oe],z.x=Math.min(re.x,z.x),z.y=Math.min(re.y,z.y);b=z.x,oe=z.y}if(b-=this.su.x,oe-=this.su.y,E.x-=b,E.y-=oe,y!==2||Df(this)){if(a.type=di.o,re=OS(a),this.computeShortLength(!0)!==0&&(E=ng(this,E,!0,z)),Ig(re,E.x,E.y,!1),ee===nc&&3<=y&&!Zt.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-b,x=x.y-oe,E=this.i(2).copy(),E.x-=b,E.y-=oe,this.computeShortLength(!1)!==0&&(E=ng(this,E,!1,z)),wh(re,y,x,y,x,E.x,E.y);else if(this.isOrthogonal){y=Je.allocAt(b,oe),x=Je.alloc(),x.assign(this.i(1)),z=Je.allocAt(b,oe),E=Je.allocAt(b,oe),ee=this.i(0);for(var le,ue=this.smoothness/3,fe=1;fe<this.pointsCount-1;fe++){le=this.i(fe);var Se=ee,be=le,Ae=this.i(qv(this,le,fe,!1));if((!Zt.$(Se.x,be.x)||!Zt.$(be.x,Ae.x))&&(!Zt.$(Se.y,be.y)||!Zt.$(be.y,Ae.y))){var Oe=ue;isNaN(Oe)&&(Oe=this.smoothness/3);var rt=Se.x;Se=Se.y;var Ye=be.x;be=be.y;var mt=Ae.x;Ae=Ae.y;var wt=Oe*e0(rt,Se,Ye,be);Oe*=e0(Ye,be,mt,Ae),Zt.$(Se,be)&&Zt.$(Ye,mt)&&(Ye>rt?Ae>be?(z.x=Ye-wt,z.y=be-wt,E.x=Ye+Oe,E.y=be+Oe):(z.x=Ye-wt,z.y=be+wt,E.x=Ye+Oe,E.y=be-Oe):Ae>be?(z.x=Ye+wt,z.y=be-wt,E.x=Ye-Oe,E.y=be+Oe):(z.x=Ye+wt,z.y=be+wt,E.x=Ye-Oe,E.y=be-Oe)),Zt.$(rt,Ye)&&Zt.$(be,Ae)&&(be>Se?(mt>Ye?(z.x=Ye-wt,z.y=be-wt,E.x=Ye+Oe):(z.x=Ye+wt,z.y=be-wt,E.x=Ye-Oe),E.y=be+Oe):(mt>Ye?(z.x=Ye-wt,z.y=be+wt,E.x=Ye+Oe):(z.x=Ye+wt,z.y=be+wt,E.x=Ye-Oe),E.y=be-Oe)),(Zt.$(rt,Ye)&&Zt.$(Ye,mt)||Zt.$(Se,be)&&Zt.$(be,Ae))&&(rt=.5*(rt+mt),Se=.5*(Se+Ae),z.x=rt,z.y=Se,E.x=rt,E.y=Se),(fe===1||fe===2&&Zt.$(ee.x,this.i(0).x)&&Zt.$(ee.y,this.i(0).y))&&(x.x=.5*(ee.x+le.x),x.y=.5*(ee.y+le.y)),wh(re,x.x-b,x.y-oe,z.x-b,z.y-oe,le.x-b,le.y-oe),y.set(z),x.set(E),ee=le}}le=ee.x,ee=ee.y,ue=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ue=ng(this,ue.copy(),!1,pt)),le=.5*(le+ue.x),ee=.5*(ee+ue.y),wh(re,E.x-b,E.y-oe,le-b,ee-oe,ue.x-b,ue.y-oe),Je.free(y),Je.free(x),Je.free(z),Je.free(E)}else for(x=3;x<y;x+=3)z=this.i(x-2),x+3>=y&&(x=y-1),E=this.i(x-1),ee=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(ee=ng(this,ee.copy(),!1,pt)),wh(re,z.x-b,z.y-oe,E.x-b,E.y-oe,ee.x-b,ee.y-oe);else{for(z=Je.alloc(),z.assign(this.i(0)),E=Je.alloc(),E.assign(z),ee=this.computeCorner(),fe=1,le=0;fe<y;){if(fe=qv(this,z,fe,1<fe),ue=this.i(fe),fe>=y-1){if(!z.D(ue))this.computeShortLength(!1)!==0&&(ue=ng(this,ue.copy(),!1,pt)),ig(this,re,-b,-oe,z,ue,x);else if(le===0)for(fe=1;fe<y;)E.assign(z),ue=this.i(fe++),ig(this,re,-b,-oe,z,ue,x),z.assign(ue);break}if(le=qv(this,ue,fe+1,fe<y-3),fe=-b,rt=-oe,Se=ue,Ye=this.i(le),Oe=x,Zt.B(z.y,Se.y)&&Zt.B(Se.x,Ye.x))if(Ae=Math.min(ee,Math.abs(Se.x-E.x)/2),Ae=wt=Math.min(Ae,Math.abs(Ye.y-Se.y)/2),Zt.B(Ae,0))ig(this,re,fe,rt,z,Se,Oe),z.assign(Se);else{var Mt=Se.x,jt=Se.y;be=Mt,mt=jt,Se.x>z.x?Mt=Se.x-Ae:Mt=Se.x+Ae,Ye.y>Se.y?mt=Se.y+wt:mt=Se.y-wt,Ye=Je.allocAt(Mt,jt),ig(this,re,fe,rt,z,Ye,Oe),Je.free(Ye),Vm(re,Se.x+fe,Se.y+rt,be+fe,mt+rt),z.h(be,mt)}else Zt.B(z.x,Se.x)&&Zt.B(Se.y,Ye.y)?(Ae=Math.min(ee,Math.abs(Se.y-E.y)/2),Ae=wt=Math.min(Ae,Math.abs(Ye.x-Se.x)/2),Zt.B(wt,0)?(ig(this,re,fe,rt,z,Se,Oe),z.assign(Se)):(Mt=Se.x,jt=Se.y,be=Mt,mt=jt,Se.y>z.y?jt=Se.y-Ae:jt=Se.y+Ae,Ye.x>Se.x?be=Se.x+wt:be=Se.x-wt,Ye=Je.allocAt(Mt,jt),ig(this,re,fe,rt,z,Ye,Oe),Je.free(Ye),Vm(re,Se.x+fe,Se.y+rt,be+fe,mt+rt),z.h(be,mt))):(ig(this,re,fe,rt,z,Se,Oe),z.assign(Se));E.assign(ue),fe=le}Je.free(z)}Gm=re}else re=this.i(1).copy(),re.x-=b,re.y-=oe,this.computeShortLength(!0)!==0&&(E=ng(this,E,!0,z)),this.computeShortLength(!1)!==0&&(re=ng(this,re,!1,z)),a.type=di.j,a.startX=E.x,a.startY=E.y,a.endX=re.x,a.endY=re.y;return this.lk=!0,a};function e0(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),Zt.$(a,0)?y:Zt.$(y,0)?a:Math.sqrt(a*a+y*y)))}function ng(a,y,x,b){var E=a.pointsCount;if(2>E)return y;if(x){var z=a.i(1);if(x=z.x-b.x,z=z.y-b.y,b=e0(y.x,y.y,x,z),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!0),a>E&&(a=E),E=a*(z-y.y)/b,y.x+=a*(x-y.x)/b,y.y+=E}else{if(z=a.i(E-2),x=z.x-b.x,z=z.y-b.y,b=e0(y.x,y.y,x,z),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!1),a>E&&(a=E),E=a*(y.y-z)/b,y.x-=a*(y.x-x)/b,y.y-=E}return y}function qv(a,y,x,b){for(var E=a.pointsCount,z=y;Zt.$(y.x,z.x)&&Zt.$(y.y,z.y);){if(x>=E)return E-1;z=a.i(x++)}if(!Zt.$(y.x,z.x)&&!Zt.$(y.y,z.y))return x-1;for(var ee=z;Zt.$(y.x,z.x)&&Zt.$(z.x,ee.x)&&(!b||(y.y>=z.y?z.y>=ee.y:z.y<=ee.y))||Zt.$(y.y,z.y)&&Zt.$(z.y,ee.y)&&(!b||(y.x>=z.x?z.x>=ee.x:z.x<=ee.x));){if(x>=E)return E-1;ee=a.i(x++)}return x-2}fi.prototype.computeJumpLength=function(){return 10};function ig(a,y,x,b,E,z,ee){if(!ee&&Df(a)){ee=a.computeJumpLength();var re=ee/2,oe=[],le=0;if(a.isVisible()&&(le=T1(a,E,z,oe)),0<le){if(Zt.B(E.y,z.y))if(E.x<z.x)for(var ue=0;ue<le;){var fe=Math.max(E.x,Math.min(oe[ue++]-re,z.x-ee));y.lineTo(fe+x,z.y+b);for(var Se=fe+x,be=Math.min(fe+ee,z.x);ue<le&&(fe=oe[ue],fe<be+ee);)ue++,be=Math.min(fe+re,z.x);fe=z.y-ee+b,be+=x;var Ae=z.y+b;a.curve===Eh?Ig(y,be,Ae,!1):wh(y,Se,fe,be,fe,be,Ae)}else for(--le;0<=le;){for(ue=Math.min(E.x,Math.max(oe[le--]+re,z.x+ee)),y.lineTo(ue+x,z.y+b),Se=ue+x,fe=Math.max(ue-ee,z.x);0<=le&&(ue=oe[le],ue>fe-ee);)le--,fe=Math.max(ue-re,z.x);ue=z.y-ee+b,fe+=x,be=z.y+b,a.curve===Eh?Ig(y,fe,be,!1):wh(y,Se,ue,fe,ue,fe,be)}else if(Zt.B(E.x,z.x))if(E.y<z.y)for(ue=0;ue<le;){for(fe=Math.max(E.y,Math.min(oe[ue++]-re,z.y-ee)),y.lineTo(z.x+x,fe+b),Se=fe+b,fe=Math.min(fe+ee,z.y);ue<le&&(be=oe[ue],be<fe+ee);)ue++,fe=Math.min(be+re,z.y);be=z.x-ee+x,Ae=z.x+x,fe+=b,a.curve===Eh?Ig(y,Ae,fe,!1):wh(y,be,Se,be,fe,Ae,fe)}else for(--le;0<=le;){for(ue=Math.min(E.y,Math.max(oe[le--]+re,z.y+ee)),y.lineTo(z.x+x,ue+b),Se=ue+b,ue=Math.max(ue-ee,z.y);0<=le&&(fe=oe[le],fe>ue-ee);)le--,ue=Math.max(fe-re,z.y);fe=z.x-ee+x,be=z.x+x,ue+=b,a.curve===Eh?Ig(y,be,ue,!1):wh(y,fe,Se,fe,ue,be,ue)}}}y.lineTo(z.x+x,z.y+b)}function T1(a,y,x,b){var E=a.diagram;if(E===null||y.D(x))return 0;for(E=E.layers;E.next();){var z=E.value;if(z!==null&&z.visible){z=z.Pa.s;for(var ee=z.length,re=0;re<ee;re++){var oe=z[re];if(oe instanceof fi){if(oe===a)return 0<b.length&&b.sort(function(ue,fe){return ue-fe}),b.length;if(oe.isVisible()&&Df(oe)){var le=oe.routeBounds;le.w()&&a.routeBounds.Yc(le)&&!a.usesSamePort(oe)&&(le=oe.path,le!==null&&le.Ed()&&O1(y,x,b,oe))}}}}}return 0<b.length&&b.sort(function(ue,fe){return ue-fe}),b.length}function O1(a,y,x,b){for(var E=Zt.B(a.y,y.y),z=b.pointsCount,ee=b.i(0),re=Je.alloc(),oe=1;oe<z;oe++){var le=b.i(oe);if(oe<z-1){var ue=b.i(oe+1);if(ee.y===le.y&&le.y===ue.y){if(le.x>ee.x&&ue.x>=le.x||le.x<ee.x&&ue.x<=le.x)continue}else if(ee.x===le.x&&le.x===ue.x&&(le.y>ee.y&&ue.y>=le.y||le.y<ee.y&&ue.y<=le.y))continue}e:{ue=a.x;var fe=a.y,Se=y.x,be=y.y,Ae=ee.x;ee=ee.y;var Oe=le.x,rt=le.y;if(Zt.B(ue,Se)){if(!Zt.B(fe,be)&&Zt.B(ee,rt)&&Math.min(fe,be)<ee&&Math.max(fe,be)>ee&&Math.min(Ae,Oe)<ue&&Math.max(Ae,Oe)>ue&&!Zt.B(Ae,Oe)){re.x=ue,re.y=ee,ue=!0;break e}}else if(Zt.B(fe,be)&&Zt.B(Ae,Oe)&&Math.min(ue,Se)<Ae&&Math.max(ue,Se)>Ae&&Math.min(ee,rt)<fe&&Math.max(ee,rt)>fe&&!Zt.B(ee,rt)){re.x=Ae,re.y=fe,ue=!0;break e}re.x=0,re.y=0,ue=!1}ue&&(E?x.push(re.x):x.push(re.y)),ee=le}Je.free(re)}function Df(a){return a=a.curve,a===jg||a===Eh}function t0(a,y){(y||Df(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()))}fi.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var x=y.diagram;if(x!==null&&!x.animationManager.isTicking){var b=!1;for(x=x.layers;x.next();){var E=x.value;if(E.visible){if(E===y){b=!0;var z=!1;E=E.Pa.s;for(var ee=E.length,re=0;re<ee;re++){var oe=E[re];oe instanceof fi&&(oe===this?z=!0:z&&ox(this,oe,a))}}else if(b)for(z=E.Pa.s,E=z.length,ee=0;ee<E;ee++)re=z[ee],re instanceof fi&&ox(this,re,a)}}}}};function ox(a,y,x){if(y!==null&&y.lk&&y.fd&&Df(y)){var b=y.routeBounds;b.w()&&(a.routeBounds.Yc(b)||x.Yc(b))&&(a.usesSamePort(y)||y.qc())}}fi.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},fi.prototype.isVisible=function(){if(!dr.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},fi.prototype.Zb=function(a){if(dr.prototype.Zb.call(this,a),a&&t0(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},fi.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?Np:this.qk};function Mp(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,z=a=null,ee=y.jb.s,re=ee.length,oe=0;oe<re;oe++){var le=ee[oe];(le.ef===y&&le.ff===b&&le.uf===x&&le.vf===E||le.ef===x&&le.ff===E&&le.uf===y&&le.vf===b)&&(z===null?z=le:(a===null&&(a=[],a.push(z)),a.push(le)))}if(a!==null){for(z=US(y,x,b,E),z===null&&(z=new a0(y,b,x,E),YS(y,z),YS(x,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function kp(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(pi(y.links,a),y.Sl()))}fi.prototype.ph=function(){return!0},tt.Object.defineProperties(fi.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&&Jm(y,this,x),kp(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,z=this.fromPortChanged;if(z!==null){var ee=!0;b!==null&&(ee=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=ee)}a!==null&&(this.uf!==a&&Xm(a,this,E),Mp(this),this.C(1)),this.g("fromNode",y,a),Rg(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&Vu(x),kp(this),this.ff=a;var b=this.fromPort;b!==null&&Vu(b);var E=this.diagram;if(E!==null){var z=this.data,ee=E.model;z!==null&&ee.ri()&&ee.xv(z,a)}x!==b&&(this.Wf=null,this.bb(),z=this.fromPortChanged,z!==null&&(ee=!0,E!==null&&(ee=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=ee))),Mp(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&&Jm(y,this,x),kp(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,z=this.toPortChanged;if(z!==null){var ee=!0;b!==null&&(ee=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=ee)}a!==null&&(this.ef!==a&&Xm(a,this,E),Mp(this),this.C(1)),this.g("toNode",y,a),Rg(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&Vu(x),kp(this),this.vf=a;var b=this.toPort;b!==null&&Vu(b);var E=this.diagram;if(E!==null){var z=this.data,ee=E.model;z!==null&&ee.ri()&&ee.Cv(z,a)}x!==b&&(this.Wf=null,this.bb(),z=this.toPortChanged,z!==null&&(ee=!0,E!==null&&(ee=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=ee))),Mp(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:Xo},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&&Vu(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&&Qn(a,">= 0",fi,"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:Xo},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&&Vu(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&&Qn(a,">= 0",fi,"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?Br: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&&Lp(this.fromNode),this.toNode!==null&&Lp(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof oo?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()===nc&&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 z=this.i(2);y=Math.min(z.x,y),x=Math.min(z.y,x),Zt.Dl(E.x,E.y,b.x,b.y,b.x,b.y,z.x,z.y,.5,a)}else for(z=3;z<b;z+=3){var ee=this.i(z-2);z+3>=b&&(z=b-1);var re=this.i(z-1),oe=this.i(z);Zt.Dl(E.x,E.y,ee.x,ee.y,re.x,re.y,oe.x,oe.y,.5,a),y=Math.min(oe.x,y),x=Math.min(oe.y,x),E=oe}else for(E=this.i(0),z=this.i(1),y=Math.min(E.x,z.x),x=Math.min(E.y,z.y),a.h(E.x,E.y,0,0),a.Ye(z),E=2;E<b;E++)z=this.i(E),y=Math.min(z.x,y),x=Math.min(z.y,x),a.Ye(z);this.su.h(y-a.x,x-a.y)}return a}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new Je)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||_m(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);Zt.$(b.x,E.x)?(b=E.y-b.y,0>b&&(b=-b)):Zt.$(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 Mn,b=0;b<a.length/2;b++)E=new Je(a[2*b],a[2*b+1]).freeze(),x.add(E);else{for(b=!0,E=0;E<a.length;E++){var z=a[E];if(!Rt(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){b=!1;break}}if(b)for(x=new Mn,b=0;b<a.length;b++)E=a[b],x.add(new Je(E.x,E.y).freeze())}}else if(a instanceof Mn)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else Pt("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),_m(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&xa(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||!zg(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!zg(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(),t0(this,y===Eh||y===jg||a===Eh||a===jg),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(),t0(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)}}}),fi.prototype.invalidateOtherJumpOvers=fi.prototype.Xo,fi.prototype.findClosestSegment=fi.prototype.ez,fi.prototype.updateRoute=fi.prototype.vg,fi.prototype.invalidateRoute=fi.prototype.bb,fi.prototype.rollbackRoute=fi.prototype.rv,fi.prototype.commitRoute=fi.prototype.zf,fi.prototype.startRoute=fi.prototype.uh,fi.prototype.clearPoints=fi.prototype.Fj,fi.prototype.removePoint=fi.prototype.pv,fi.prototype.addPointAt=fi.prototype.yf,fi.prototype.addPoint=fi.prototype.ne,fi.prototype.insertPointAt=fi.prototype.m,fi.prototype.insertPoint=fi.prototype.Kz,fi.prototype.setPointAt=fi.prototype.L,fi.prototype.setPoint=fi.prototype.dd,fi.prototype.getPoint=fi.prototype.i,fi.prototype.getOtherPort=fi.prototype.Cz,fi.prototype.getOtherNode=fi.prototype.To;var rg=null,og=null,ey=new Xt(fi,"Normal",1),I1=new Xt(fi,"Orthogonal",2),R1=new Xt(fi,"AvoidsNodes",6),ax=new Xt(fi,"AvoidsNodesStraight",7),au=new Xt(fi,"None",0),nc=new Xt(fi,"Bezier",9),Eh=new Xt(fi,"JumpGap",10),jg=new Xt(fi,"JumpOver",11),Np=new Xt(fi,"End",17),n0=new Xt(fi,"Scale",18),i0=new Xt(fi,"Stretch",19),Fp=new Xt(fi,"OrientAlong",21),Dp=new Xt(fi,"OrientPlus90",22),Bp=new Xt(fi,"OrientMinus90",23),ty=new Xt(fi,"OrientOpposite",24),r0=new Xt(fi,"OrientUpright",25),Tp=new Xt(fi,"OrientPlus90Upright",26),Op=new Xt(fi,"OrientMinus90Upright",27),o0=new Xt(fi,"OrientUpright45",28),sx=16,lx=14,Ip=8;fi.className="Link",fi.Normal=ey,fi.Orthogonal=I1,fi.AvoidsNodes=R1,fi.AvoidsNodesStraight=ax,fi.None=au,fi.Bezier=nc,fi.JumpGap=Eh,fi.JumpOver=jg,fi.End=Np,fi.Scale=n0,fi.Stretch=i0,fi.OrientAlong=Fp,fi.OrientPlus90=Dp,fi.OrientMinus90=Bp,fi.OrientOpposite=ty,fi.OrientUpright=r0,fi.OrientPlus90Upright=Tp,fi.OrientMinus90Upright=Op,fi.OrientUpright45=o0,fi.EndSegmentStep=8,fi.CurvinessStart=sx,fi.SpacingMin=lx,fi.OrthoShortCut=Ip;function a0(a,y,x,b){yr(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=b,this.links=[]}a0.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},a0.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))}},a0.className="LinkBundle";function Rp(a){yr(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}Rp.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=ny,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 Hg(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function Dd(a,y,x){return Hg(a,y,x)?(y-=a.Nd,y/=a.rc,x-=a.Od,x/=a.sc,a.ac[y|0][x|0]):ny}function ux(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]>=Bf&&(x[b]=ny)}Rp.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 z=y;z<=x;z++)if(E[z]===Ah)return!1}return!0};function Bd(a,y,x,b,E,z,ee,re,oe){if(!(y<z||y>ee||x<re||x>oe)){var le=y|0,ue=x|0,fe=a.ac[le][ue];if(fe>=Bf&&fe<Wg)for(E?ue+=b:le+=b,fe+=1;z<=le&&le<=ee&&re<=ue&&ue<=oe&&!(fe>=a.ac[le][ue]);)a.ac[le][ue]=fe,fe+=1,E?ue+=b:le+=b;if(le=E?ue:le,E)if(0<b)for(x+=b;x<le;x+=b)Bd(a,y,x,1,!E,z,ee,re,oe),Bd(a,y,x,-1,!E,z,ee,re,oe);else for(x+=b;x>le;x+=b)Bd(a,y,x,1,!E,z,ee,re,oe),Bd(a,y,x,-1,!E,z,ee,re,oe);else if(0<b)for(y+=b;y<le;y+=b)Bd(a,y,x,1,!E,z,ee,re,oe),Bd(a,y,x,-1,!E,z,ee,re,oe);else for(y+=b;y>le;y+=b)Bd(a,y,x,1,!E,z,ee,re,oe),Bd(a,y,x,-1,!E,z,ee,re,oe)}}function s0(a,y,x,b,E,z,ee,re,oe){y|=0,x|=0;var le=Ah,ue=Bf;for(a.ac[y][x]=ue;le===Ah&&y>z&&y<ee&&x>re&&x<oe;)ue+=1,a.ac[y][x]=ue,E?x+=b:y+=b,le=a.ac[y][x]}function l0(a,y,x,b,E,z,ee,re,oe){y|=0,x|=0;var le=Ah,ue=Wg;for(a.ac[y][x]=ue;le===Ah&&y>z&&y<ee&&x>re&&x<oe;)a.ac[y][x]=ue,E?x+=b:y+=b,le=a.ac[y][x]}function cx(a,y,x,b,E,z,ee){if(a.ac!==null){a.abort=!1;var re=y.x,oe=y.y;if(Hg(a,re,oe)){re-=a.Nd,re/=a.rc,oe-=a.Od,oe/=a.sc;var le=b.x,ue=b.y;if(Hg(a,le,ue))if(le-=a.Nd,le/=a.rc,ue-=a.Od,ue/=a.sc,1>=Math.abs(re-le)&&1>=Math.abs(oe-ue))a.abort=!0;else{var fe=z.x;b=z.y,y=z.x+z.width;var Se=z.y+z.height;fe-=a.Nd,fe/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,Se-=a.Od,Se/=a.sc,z=Math.max(0,Math.min(a.di,fe|0)),y=Math.min(a.di,Math.max(0,y|0)),fe=Math.max(0,Math.min(a.ei,b|0)),Se=Math.min(a.ei,Math.max(0,Se|0)),b=a.ac,re|=0,oe|=0,le|=0,ue|=0;var be=x===0||x===90?1:-1;if(x=x===90||x===270,b[re][oe]===Ah?(s0(a,re,oe,be,x,z,y,fe,Se),s0(a,re,oe,1,!x,z,y,fe,Se),s0(a,re,oe,-1,!x,z,y,fe,Se)):s0(a,re,oe,be,x,re,oe,re,oe),b[le][ue]===Ah?(l0(a,le,ue,E===0||E===90?1:-1,E===90||E===270,z,y,fe,Se),l0(a,le,ue,1,!(E===90||E===270),z,y,fe,Se),l0(a,le,ue,-1,!(E===90||E===270),z,y,fe,Se)):l0(a,le,ue,be,x,le,ue,le,ue),x=ei(),ee&&dx(a,le,ue,E,re,oe,x))for((x[0]!==le||x[1]!==ue)&&(x.unshift(ue),x.unshift(le)),(x[x.length-2]!==re||x[x.length-1]!==oe)&&(x.push(re),x.push(oe)),a=Bf,E=x[x.length-2],ee=x[x.length-1],b[E][ee]=a++,z=x.length-4;0<=z;z-=2)for(E=x[z+2],ee=x[z+3],y=x[z],le=x[z+1];y>E?E++:y<E?E--:le>ee?ee++:le<ee&&ee--,b[E][ee]=a++,E!==y||ee!==le;);else Bd(a,re,oe,1,!1,z,y,fe,Se),Bd(a,re,oe,-1,!1,z,y,fe,Se),Bd(a,re,oe,1,!0,z,y,fe,Se),Bd(a,re,oe,-1,!0,z,y,fe,Se);yi(x)}}}}function dx(a,y,x,b,E,z,ee){for(var re=a.ac,oe=y,le=x;;){if(oe===E&&le===z)return!0;var ue=oe,fe=le;if(b===0)if(ue<E)ue++;else break;else if(b===90)if(fe<z)fe++;else break;else if(b===180)if(ue>E)ue--;else break;else if(fe>z)fe--;else break;var Se=re[ue][fe];if(Se===0||Se===iy)break;oe=ue,le=fe}for(;;){if(ue=b,fe=oe,Se=le,b===0?Se<z?(ue=90,Se++):Se>z&&(ue=270,Se--):b===90?fe<E?(ue=0,fe++):fe>E&&(ue=180,fe--):b===180?Se<z?(ue=90,Se++):Se>z&&(ue=270,Se--):fe<E?(ue=0,fe++):fe>E&&(ue=180,fe--),fe=re[fe][Se],ue!==b&&fe!==0&&fe!==iy){if(ee.push(oe),ee.push(le),dx(a,oe,le,ue,E,z,ee))return!0;ee.pop(),ee.pop()}if(re[oe][le]=iy,b===0){if(oe===y)return!1;oe--}else if(b===90){if(le===x)return!1;le--}else if(b===180){if(oe===y)return!1;oe++}else{if(le===x)return!1;le++}}}tt.Object.defineProperties(Rp.prototype,{bounds:{get:function(){return new Pn(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 Ah=0,Bf=1,Wg=999999,ny=Wg+1,iy=Wg+2;Rp.className="PositionArray";function ag(){yr(this),this.port=this.node=null,this.pe=[],this.ap=!1}ag.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 z1(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}ag.prototype.Sl=function(){this.pe.length=0};function hx(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,z=E instanceof Jr?E:null;if(z===null||z.isSubGraphExpanded)var ee=E.isTreeExpanded?E.findLinksConnected(a.port.portId):E.qx();else{if(!z.actualBounds.w()){a.ap=x;break e}b=z,ee=b.Lu()}z=a.pe.length=0;var re=a.port.ga(ga,Je.alloc()),oe=a.port.ga(vl,Je.alloc());for(E=Pn.allocAt(re.x,re.y,0,0),E.Ye(oe),Je.free(re),Je.free(oe),re=Je.allocAt(E.x+E.width/2,E.y+E.height/2),oe=a.port.li(),ee=ee.iterator;ee.next();){var le=ee.value;if(le.isVisible()&&le.fromPort!==le.toPort){var ue=le.fromPort===a.port||le.fromNode!==null&&le.fromNode.Td(b),fe=le.computeSpot(ue,a.port);if(fe.$c()&&(ue=ue?le.toPort:le.fromPort,ue!==null)){var Se=ue.part;if(Se!==null){var be=Se.findVisibleNode();be!==null&&be!==Se&&(Se=be,ue=Se.port),ue=le.computeOtherPoint(Se,ue),Se=re.ab(ue),Se-=oe,0>Se?Se+=360:360<=Se&&(Se-=360),fe=z1(E,fe,Se,le.isOrthogonal),fe===0?(fe=4,180<Se&&(Se-=360)):fe===90?(fe=8,270<Se&&(Se-=360)):fe===180?fe=2:(fe=1,90>Se&&(Se+=360)),be=a.pe[z],be===void 0?(be=new ry(le,Se,fe),a.pe[z]=be):(be.link=le,be.angle=Se,be.Nc=fe),be.hv.set(ue),z++}}}}for(Je.free(re),a.pe.sort(ag.prototype.j),oe=a.pe.length,b=-1,z=re=0;z<oe;z++)ee=a.pe[z],ee!==void 0&&(ee.Nc!==b&&(b=ee.Nc,re=0),ee.Uo=re,re++);for(b=-1,re=0,z=oe-1;0<=z;z--)oe=a.pe[z],oe!==void 0&&(oe.Nc!==b&&(b=oe.Nc,re=oe.Uo+1),oe.Gl=re);if(z=a.pe,fe=a.port,b=a.node.portSpreading,re=Je.alloc(),oe=Je.alloc(),ee=Je.alloc(),le=Je.alloc(),fe.ga(ga,re),fe.ga(ml,oe),fe.ga(vl,ee),fe.ga(il,le),be=Se=ue=fe=0,b===Uv)for(var Ae=0;Ae<z.length;Ae++){var Oe=z[Ae];if(Oe!==null){var rt=Oe.link.computeThickness();switch(Oe.Nc){case 8:Se+=rt;break;case 2:be+=rt;break;case 1:fe+=rt;break;default:case 4:ue+=rt}}}var Ye=Ae=0,mt=1,wt=Oe=0;for(rt=0;rt<z.length;rt++){var Mt=z[rt];if(Mt!==null){if(Ae!==Mt.Nc){switch(Ae=Mt.Nc,Ae){case 8:var jt=ee;Ye=le;break;case 2:jt=le,Ye=re;break;case 1:jt=re,Ye=oe;break;default:case 4:jt=oe,Ye=ee}switch(Oe=Ye.x-jt.x,wt=Ye.y-jt.y,Ae){case 8:Se>Math.abs(Oe)?(mt=Math.abs(Oe)/Se,Se=Math.abs(Oe)):mt=1;break;case 2:be>Math.abs(wt)?(mt=Math.abs(wt)/be,be=Math.abs(wt)):mt=1;break;case 1:fe>Math.abs(Oe)?(mt=Math.abs(Oe)/fe,fe=Math.abs(Oe)):mt=1;break;default:case 4:ue>Math.abs(wt)?(mt=Math.abs(wt)/ue,ue=Math.abs(wt)):mt=1}Ye=0}var mn=Mt.Zo;if(b===Uv){switch(Mt=Mt.link.computeThickness(),Mt*=mt,mn.set(jt),Ae){case 8:mn.x=jt.x+Oe/2+Se/2-Ye-Mt/2;break;case 2:mn.y=jt.y+wt/2+be/2-Ye-Mt/2;break;case 1:mn.x=jt.x+Oe/2-fe/2+Ye+Mt/2;break;default:case 4:mn.y=jt.y+wt/2-ue/2+Ye+Mt/2}Ye+=Mt}else{var Ni=.5;b===Qm&&(Ni=(Mt.Uo+1)/(Mt.Gl+1)),mn.x=jt.x+Oe*Ni,mn.y=jt.y+wt*Ni}}}for(Je.free(re),Je.free(oe),Je.free(ee),Je.free(le),jt=a.pe,z=0;z<jt.length;z++)b=jt[z],b!==null&&(b.Ju=a.computeEndSegmentLength(b));a.ap=x,Pn.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}ag.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},ag.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,Da,y.fromPort===this.port),b=a.Uo;if(0>b)return x;var E=a.Gl;if(1>=E||!y.isOrthogonal)return x;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(b=E-1-b),((a=a.Nc===2||a.Nc===4)?y.y<z.y:y.x<z.x)?x+8*b:(a?y.y===z.y:y.x===z.x)?x:x+8*(E-1-b)},ag.className="Knot";function ry(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new Je,this.Gl=this.Uo=0,this.Zo=new Je,this.Ju=0}ry.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()},ry.className="LinkInfo";function Za(a){yr(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new Je(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}Za.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},Za.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Za.prototype.qb=function(){},Za.prototype.toString=function(){var a=Fi(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},Za.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())}}},Za.prototype.createNetwork=function(){return new Ea(this)},Za.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof pn?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof Jr?y.lg(a.memberParts):y.lg(a.iterator),y},Za.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")}},Za.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()}},Za.prototype.doLayout=function(a){var y=new An;a instanceof pn?(Jh(this,y,a.nodes,!0,this.rh,!0,!1,!0),Jh(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof Jr?Jh(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},Za.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,z=0,ee=0;for(a=a.iterator;a.next();){var re=a.value;zp(re);var oe=re.measuredBounds,le=oe.width;oe=oe.height,re.moveTo(b,E),re instanceof Jr&&(re.rh=!1),b+=Math.max(le,50)+20,ee=Math.max(ee,Math.max(oe,50)),z>=y-1?(z=0,b=x,E+=ee+20,ee=0):z++}},Za.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,x=y,b=this.arrangementOrigin.y,E=0,z=0,ee=this.network.vertexes.iterator;ee.next();){var re=ee.value.node;if(!(re===null||re instanceof fi)&&(zp(re),this.rh(re))){var oe=re.measuredBounds,le=oe.width;oe=oe.height,re.moveTo(x,b),re instanceof Jr&&(re.rh=!1),x+=Math.max(le,50)+20,z=Math.max(z,Math.max(oe,50)),E>=a-1?(E=0,x=y,b+=z+20,z=0):E++}}},Za.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Jr&&a.rh)};function Jh(a,y,x,b,E,z,ee,re){for(x=x.iterator;x.next();){var oe=x.value;b&&!oe.isTopLevel||E!==null&&!E(oe)||!oe.canLayout()||(z&&oe instanceof Di?oe.isLinkLabel||(oe instanceof Jr&&oe.layout===null?Jh(a,y,oe.memberParts,!1,E,z,ee,re):(zp(oe),y.add(oe))):ee&&oe instanceof fi?y.add(oe):!re||!oe.Zc()||oe instanceof Di||(zp(oe),y.add(oe)))}}function zp(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Za.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new Pn),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Za.prototype.ex=function(a){var y=new An;return a instanceof pn?(Jh(this,y,a.nodes,!0,null,!0,!0,!0),Jh(this,y,a.links,!0,null,!0,!0,!0),Jh(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof Jr?Jh(this,y,a.memberParts,!1,null,!0,!0,!0):Jh(this,y,a.iterator,!1,null,!0,!0,!0),y},Za.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(ga),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},tt.Object.defineProperties(Za.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())}}}),Za.prototype.collectParts=Za.prototype.ex,Za.prototype.getLayoutBounds=Za.prototype.ni,Za.prototype.invalidateLayout=Za.prototype.C,Za.className="Layout";function Ea(a){yr(this),this.Sc=a,this.wf=new An,this.ye=new An,this.Es=new zi,this.zs=new zi}Ea.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 An,this.ye=new An,this.Es=new zi,this.zs=new zi},Ea.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},Ea.prototype.createVertex=function(){return new Xs(this)},Ea.prototype.createEdge=function(){return new Gu(this)},Ea.prototype.lg=function(a,y,x){if(a!==null){for(y===void 0&&(y=!1),x===void 0&&(x=null),x===null&&(x=function(ee){if(ee instanceof Di)return!ee.isLinkLabel;if(ee instanceof fi){var re=ee.fromNode;return re===null||re.isLinkLabel?!1:(ee=ee.toNode,!(ee===null||ee.isLinkLabel))}return!1}),a=a.iterator;a.next();){var b=a.value;if(b instanceof Di&&(!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 fi&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)&&this.Lo(b)===null){var z=b.fromNode;E=b.toNode,z!==null&&E!==null&&z!==E&&(z=this.findGroupVertex(z),E=this.findGroupVertex(E),z!==null&&E!==null&&this.Zj(z,E,b))}}},Ea.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},Ee=Ea.prototype,Ee.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},Ee.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},Ee.Iu=function(a){if(a!==null&&fx(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 fx(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}Ee.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},Ee.ki=function(a){return a===null?null:this.Es.I(a)},Ee.Bo=function(a){if(a!==null){oy(this,a);var y=a.toVertex;y!==null&&y.Cl(a),y=a.fromVertex,y!==null&&y.zl(a)}};function oy(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}}Ee.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},Ee.Mj=function(a){if(a!==null){var y=a.toVertex;y!==null&&y.Kl(a),y=a.fromVertex,y!==null&&y.Jl(a),ay(this,a)}};function ay(a,y){y!==null&&a.ye.remove(y)&&(y=y.link,y!==null&&a.zs.remove(y))}Ee.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},Ee.Lo=function(a){return a===null?null:this.zs.I(a)},Ee.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},Ee.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))}},Ee.Ko=function(){for(var a=ei(),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]);yi(a)},Ea.prototype.deleteArtificialVertexes=function(){for(var a=ei(),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=ei(),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]);yi(a),yi(y)};function j1(a){for(var y=ei(),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]);yi(y)}Ea.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),j1(this),this.Ko()),a=new Mn;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),sy(this,y,b),y=!0;break}}}return a.sort(function(E,z){return E===null||z===null||E===z?0:z.vertexes.count-E.vertexes.count}),a};function sy(a,y,x){if(x!==null&&x.network!==y){fx(a,x),y.dh(x);for(var b=x.sourceEdges;b.next();){var E=b.value;E.network!==y&&(ay(a,E),oy(y,E),sy(a,y,E.fromVertex))}for(b=x.destinationEdges;b.next();)x=b.value,x.network!==y&&(ay(a,x),oy(y,x),sy(a,y,x.toVertex))}}Ea.prototype.dz=function(){for(var a=new An,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},tt.Object.defineProperties(Ea.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}}}),Ea.prototype.findAllParts=Ea.prototype.dz,Ea.prototype.splitIntoSubNetworks=Ea.prototype.Zx,Ea.prototype.deleteSelfEdges=Ea.prototype.Ko,Ea.prototype.reverseEdge=Ea.prototype.gm,Ea.prototype.linkVertexes=Ea.prototype.Zj,Ea.prototype.findEdge=Ea.prototype.Lo,Ea.prototype.deleteLink=Ea.prototype.Yy,Ea.prototype.deleteEdge=Ea.prototype.Mj,Ea.prototype.addLink=Ea.prototype.Dy,Ea.prototype.addEdge=Ea.prototype.Bo,Ea.prototype.findVertex=Ea.prototype.ki,Ea.prototype.deleteNode=Ea.prototype.Zy,Ea.prototype.deleteVertex=Ea.prototype.Iu,Ea.prototype.addNode=Ea.prototype.Bl,Ea.prototype.addVertex=Ea.prototype.dh,Ea.prototype.addParts=Ea.prototype.lg,Ea.className="LayoutNetwork";function Xs(a){yr(this),this.ob=a,this.j=new Pn(0,0,10,10).freeze(),this.o=new Je(5,5).freeze(),this.Sh=this.ub=null,this.tg=new Mn,this.mg=new Mn}Xs.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new Mn,this.mg=new Mn},Xs.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+xr(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 z=b.value;x?x=!1:E+=",",E+=z.toString(0)}y+=" sources: "+a+" destinations: "+E}return y},Xs.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;Rt(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=Pn.alloc(),a.Va();var b=this.network.layout.ni(a,x),E=a.locationObject.ga(xo);if(b.w()&&E.w()){a.moveTo(y.x+this.focusX-(E.x-b.x),y.y+this.focusY-(E.y-b.y)),Pn.free(x);return}Pn.free(x)}a.moveTo(y.x,y.y)}},Xs.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},Xs.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},Xs.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},Xs.prototype.Jl=function(a){a!==null&&this.mg.remove(a)};function ly(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}tt.Object.defineProperties(Xs.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=Pn.alloc(),b=y.ni(a,x);y=b.x;var E=b.y,z=b.width;if(b=b.height,isNaN(y)&&(y=0),isNaN(E)&&(E=0),this.j.h(y,E,z,b),Pn.free(x),!(a instanceof Jr)&&(a=a.locationObject.ga(xo),a.w())){this.o.h(a.x-y,a.y-E);return}this.o.h(z/2,b/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new An,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new An,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new An,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 Mn,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}}}),Xs.prototype.deleteDestinationEdge=Xs.prototype.Jl,Xs.prototype.addDestinationEdge=Xs.prototype.zl,Xs.prototype.deleteSourceEdge=Xs.prototype.Kl,Xs.prototype.addSourceEdge=Xs.prototype.Cl,Xs.className="LayoutVertex",Xs.standardComparer=ly,Xs.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 Gu(a){yr(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}Gu.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},Gu.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+xr(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},Gu.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Gu.prototype.commit=function(){},Gu.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},tt.Object.defineProperties(Gu.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)}}}),Gu.prototype.getOtherVertex=Gu.prototype.Ax,Gu.className="LayoutEdge";function Cl(a){Za.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new On(NaN,NaN).freeze(),this.tf=new On(10,10).freeze(),this.Jb=jp,this.Rb=c0,this.nd=Hp,this.hd=gx,a&&Object.assign(this,a)}Lt(Cl,Za),Cl.prototype.cloneProtected=function(a){Za.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},Cl.prototype.qb=function(a){a.classType===Cl?a===Hp||a===h0||a===uy||a===d0?this.sorting=a:a===c0||a===rd?this.arrangement=a:a===jp||a===u0?this.alignment=a:Pt("Unknown enum value: "+a):Za.prototype.qb.call(this,a)},Cl.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 d0:E.reverse();break;case Hp:E.sort(this.comparer);break;case h0:E.sort(this.comparer),E.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var ee=this.wrappingWidth;switch(isNaN(ee)&&a!==null?(y=a.padding,ee=Math.max(a.viewportBounds.width-y.left-y.right,0)):ee=Math.max(this.wrappingWidth,0),0>=z&&0>=ee&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),b=[],this.alignment){case u0:var re=y,oe=x,le=Pn.alloc(),ue=Math.max(this.cellSize.width,1);if(!isFinite(ue))for(var fe=ue=0;fe<E.length;fe++){var Se=this.ni(E[fe],le);ue=Math.max(ue,Se.width)}if(ue=Math.max(ue+re,1),fe=Math.max(this.cellSize.height,1),!isFinite(fe))for(Se=fe=0;Se<E.length;Se++){var be=this.ni(E[Se],le);fe=Math.max(fe,be.height)}fe=Math.max(fe+oe,1),Se=this.arrangement;for(var Ae=be=this.arrangementOrigin.x,Oe=this.arrangementOrigin.y,rt=0,Ye=0,mt=0;mt<E.length;mt++){var wt=E[mt],Mt=this.ni(wt,le),jt=Math.ceil((Mt.width+re)/ue)*ue,mn=Math.ceil((Mt.height+oe)/fe)*fe;switch(Se){case rd:var Ni=Math.abs(Ae-Mt.width);break;default:Ni=Ae+Mt.width}switch((0<z&&rt>z-1||0<ee&&0<rt&&Ni-be>ee)&&(b.push(new Pn(0,Oe,ee+re,Ye)),rt=0,Ae=be,Oe+=Ye,Ye=0),Ye=Math.max(Ye,mn),Se){case rd:Mt=-Mt.width;break;default:Mt=0}switch(wt.moveTo(Ae+Mt,Oe),Se){case rd:Ae-=jt;break;default:Ae+=jt}rt++}b.push(new Pn(0,Oe,ee+re,Ye)),Pn.free(le);break;case jp:for(oe=ee,ue=z,fe=y,Se=x,ee=Pn.alloc(),be=Math.max(this.cellSize.width,1),z=Oe=le=0,re=Je.alloc(),Ae=0;Ae<E.length;Ae++)Ye=E[Ae],rt=this.ni(Ye,ee),Ye=Ph(Ye,Ye.locationObject,Ye.locationSpot,re),le=Math.max(le,Ye.x),Oe=Math.max(Oe,rt.width-Ye.x),z=Math.max(z,Ye.y);switch(Ae=this.arrangement,Ae){case rd:le+=fe;break;default:Oe+=fe}be=isFinite(be)?Math.max(be+fe,1):Math.max(le+Oe,1);var Qi=Ye=this.arrangementOrigin.x;for(mt=this.arrangementOrigin.y,Oe=0,oe>=le&&(oe-=le),le=wt=0,jt=Math.max(this.cellSize.height,1),Mt=z=0,mn=!0,rt=Je.alloc(),Ni=0;Ni<E.length;Ni++){var Hi=E[Ni],hi=this.ni(Hi,ee),_n=Ph(Hi,Hi.locationObject,Hi.locationSpot,re);if(0<Oe)switch(Ae){case rd:Qi=(Qi-Ye-(hi.width-_n.x))/be,Qi=Zt.$(Math.round(Qi),Qi)?Math.round(Qi):Math.floor(Qi),Qi=Qi*be+Ye;break;default:Qi=(Qi-Ye+_n.x)/be,Qi=Zt.$(Math.round(Qi),Qi)?Math.round(Qi):Math.ceil(Qi),Qi=Qi*be+Ye}else switch(Ae){case rd:wt=Qi+_n.x+hi.width;break;default:wt=Qi-_n.x}switch(Ae){case rd:var Xr=-(Qi+_n.x)+wt;break;default:Xr=Qi+hi.width-_n.x-wt}if(0<ue&&Oe>ue-1||0<oe&&0<Oe&&Xr>oe){for(b.push(new Pn(0,mn?mt-z:mt,oe+fe,Mt+z+Se)),Qi=0;Qi<Oe&&Ni!==Oe;Qi++){Xr=E[Ni-Oe+Qi];var zr=Ph(Xr,Xr.locationObject,Xr.locationSpot,rt);Xr.moveTo(Xr.position.x,Xr.position.y+z-zr.y)}Mt+=Se,mt=mn?mt+Mt:mt+(Mt+z),Oe=Mt=z=0,Qi=Ye,mn=!1}switch(Qi===Ye&&(le=Ae===rd?Math.max(le,hi.width-_n.x):Math.min(le,-_n.x)),z=Math.max(z,_n.y),Mt=Math.max(Mt,hi.height-_n.y),isFinite(jt)&&(Mt=Math.max(Mt,Math.max(hi.height,jt)-_n.y)),mn?Hi.moveTo(Qi-_n.x,mt-_n.y):Hi.moveTo(Qi-_n.x,mt),Ae){case rd:Qi-=_n.x+fe;break;default:Qi+=hi.width-_n.x+fe}Oe++}if(b.push(new Pn(0,mt,oe+fe,(mn?Mt:Mt+z)+Se)),E.length!==Oe)for(oe=0;oe<Oe;oe++)ue=E[E.length-Oe+oe],fe=Ph(ue,ue.locationObject,ue.locationSpot,re),ue.moveTo(ue.position.x,ue.position.y+z-fe.y);if(Je.free(re),Je.free(rt),Ae===rd)for(E=0;E<b.length;E++)z=b[E],z.width+=le,z.x-=le;else for(E=0;E<b.length;E++)z=b[E],z.x>le&&(z.width+=z.x-le,z.x=le);Pn.free(ee)}for(re=z=ee=E=0;re<b.length;re++)oe=b[re],E=Math.min(E,oe.x),ee=Math.min(ee,oe.y),z=Math.max(z,oe.x+oe.width);this.arrangement===rd?this.commitLayers(b,new Je(E+y/2-(z+E),ee-x/2)):this.commitLayers(b,new Je(E-y/2,ee-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},Cl.prototype.commitLayers=function(){};function gx(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}tt.Object.defineProperties(Cl.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!==jp&&a!==u0||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==c0&&a!==rd||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==uy&&a!==d0&&a!==Hp&&a!==h0||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var u0=new Xt(Cl,"Position",0),jp=new Xt(Cl,"Location",1),c0=new Xt(Cl,"LeftToRight",2),rd=new Xt(Cl,"RightToLeft",3),uy=new Xt(Cl,"Forward",4),d0=new Xt(Cl,"Reverse",5),Hp=new Xt(Cl,"Ascending",6),h0=new Xt(Cl,"Descending",7);Cl.className="GridLayout",Cl.standardComparer=gx,Cl.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},Cl.Position=u0,Cl.Location=jp,Cl.LeftToRight=c0,Cl.RightToLeft=rd,Cl.Forward=uy,Cl.Reverse=d0,Cl.Ascending=Hp,Cl.Descending=h0;function ra(){this.On=new An,this.Dn=new An,this.Pa=new An,this.cf=new zi,this.bf=new zi,this.aj=new zi,this.H=null,this.tp=!1}Ee=ra.prototype,Ee.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},Ee.Xe=function(a){this.H=a},Ee.oi=function(a){if(a instanceof Di){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 fi?this.Dn.add(a):a instanceof Yo||this.Pa.add(a);y=a.data,y===null||a instanceof Yo||(a instanceof fi?this.bf.add(y,a):this.cf.add(y,a))},Ee.pc=function(a){if(a.Ej(),a instanceof Di){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 fi?this.Dn.remove(a):a instanceof Yo||this.Pa.remove(a);y=a.data,y===null||a instanceof Yo||(a instanceof fi?this.bf.remove(y):this.cf.remove(y))},Ee.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)&&Pt('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||Pt('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 fi||Pt('Invalid link template in Diagram.linkTemplateMap: template for "'+b+'" must be a Link, not a normal Node or simple Part: '+x);for(y=ei(),x=a.selection.iterator;x.next();)(b=x.value.data)&&y.push(b);for(x=ei(),a=a.highlighteds.iterator;a.next();)(b=a.value.data)&&x.push(b);for(a=ei(),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]);yi(y),yi(x),yi(a)}},ra.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},ra.prototype.addModeledParts=function(a,y){var x=this,b=this.diagram.model;a.forEach(function(E){b.lb(E)&&px(x,E,!1)}),a.forEach(function(E){b.lb(E)&&x.resolveReferencesForData(E)}),y!==!1&&Wh(this.diagram,!1)};function px(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=mx(a,y,b);if(E!==null&&(Nc(E),E=E.copy(),E!==null)){var z=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=z,b=E;break e}}b=null}b!==null&&x&&a.resolveReferencesForData(y)}}ra.prototype.insertLink=function(){return null},ra.prototype.resolveReferencesForData=function(){},ra.prototype.Ro=function(a){return this.H.model.Ro(a)};function mx(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&&(Sx||(Sx=!0,Xn('No Group template found for category "'+x+'"'),Xn(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(yx||(yx=!0,Xn('No Node template found for category "'+x+'"'),Xn(" Using default node template")),y=a.ny))),y}ra.prototype.getLinkCategoryForData=function(){return""},ra.prototype.setLinkCategoryForData=function(){},ra.prototype.setFromNodeForLink=function(){},ra.prototype.setToNodeForLink=function(){},ra.prototype.findLinkTemplateForCategory=function(a){var y=this.H,x=y.linkTemplateMap.I(a);return x===null&&(x=y.linkTemplateMap.I(""),x===null&&(xx||(xx=!0,Xn('No Link template found for category "'+a+'"'),Xn(" Using default link template")),x=y.my)),x},ra.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},ra.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},ra.prototype.ip=function(a){a=this.Lc(a),a!==null&&(Jd(this.diagram,a,!1),this.unresolveReferencesForPart(a))},ra.prototype.unresolveReferencesForPart=function(){},ra.prototype.removeDataForLink=function(){},ra.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},ra.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof Di?a:null)},ra.prototype.findLinkForKey=function(){return null},Ee=ra.prototype,Ee.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},Ee.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof Di?a:null)},Ee.Kc=function(a){return a===null?null:this.bf.I(a)},Ee.ms=function(a){for(var y=0;y<arguments.length;++y);y=new An;for(var x=this.On.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var z=0;z<arguments.length;z++){var ee=arguments[z];if(Rt(ee)&&cy(this,E,ee)){y.add(b);break}}}return y.iterator},Ee.ls=function(a){for(var y=0;y<arguments.length;++y);y=new An;for(var x=this.Dn.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var z=0;z<arguments.length;z++){var ee=arguments[z];if(Rt(ee)&&cy(this,E,ee)){y.add(b);break}}}return y.iterator};function cy(a,y,x){for(var b in x){var E=y[b],z=x[b];if(vn(z)){if(!vn(E)||E.length<z.length)return!1;for(var ee=0;ee<E.length;ee++){var re=z[ee];if(re!==void 0&&!vx(a,E[ee],re))return!1}}else if(!vx(a,E,z))return!1}return!0}function vx(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(Rt(y)&&Rt(x)){if(!cy(a,y,x))return!1}else if(y!==x)return!1;return!0}ra.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===ri){if(b==="nodeCategory"){var E=this.Lc(a.object),z=a.newValue;E!==null&&typeof z=="string"&&(E.category=z)}else b==="nodeDataArray"&&(this.Gs(a.oldValue),this.addModeledParts(a.newValue));y.isModified=!0}else if(x===ci){var ee=a.newValue;b==="nodeDataArray"&&Rt(ee)&&px(this,ee),y.isModified=!0}else if(x===ki){var re=a.oldValue;b==="nodeDataArray"&&Rt(re)&&this.ip(re),y.isModified=!0}else x===Wn&&(b==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):b==="ModelDisplaced"&&this.Wd());else if(x===ri){var oe=a.propertyName,le=a.object;le===y.model?(oe==="nodeKeyProperty"||oe==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(le,oe),y.isModified=!0}else if(x===ci||x===ki){var ue=a.change===ci,fe=ue?a.newParam:a.oldParam,Se=ue?a.newValue:a.oldValue,be=this.aj.I(a.object);if(Array.isArray(be))for(a=0;a<be.length;a++){var Ae=be[a];if(ue)Fm(Ae,Se,fe,!0);else if(!(0>fe)){var Oe=fe+wp(Ae);Ae.pc(Oe,!0),bv(Ae,Oe,fe)}}y.isModified=!0}}finally{y.aa=!0}}}}},ra.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)},ra.prototype.rp=function(){for(var a=this.H.model,y=new An,x=a.nodeDataArray,b=0;b<x.length;b++)y.add(x[b]);var E=[];for(this.nodes.each(function(ee){ee.data===null||y.contains(ee.data)||E.push(ee.data)}),this.parts.each(function(ee){ee.data===null||y.contains(ee.data)||E.push(ee.data)}),E.forEach(function(ee){kx(a,ee,!1)}),b=0;b<x.length;b++){var z=x[b];this.Lc(z)===null&&Mx(a,z,!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()},ra.prototype.refreshDataBoundLinks=function(){},ra.prototype.updateRelationshipsFromData=function(){},ra.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,z=0;z<E.length;z++){var ee=E[z].sx(a);ee!==null&&(x===null&&(x=ei()),x.push(ee))}if(x!==null)break}if(x!==null){for(b=0;b<x.length;b++)x[b].La(y);yi(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function dy(a,y){var x=y.Hh;if(vn(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 hy(a,y,x){Mf(y,function(ee){ee=ee.O.s;for(var re=ee.length,oe=0;oe<re;oe++)Gf(x,ee[oe])});var b=y.Hh;if(vn(b)){var E=a.aj.I(b);if(E!==null){for(var z=0;z<E.length;z++)if(E[z]===y){E.splice(z,1),E.length===0&&a.aj.remove(b);break}}}}ra.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var b=new zi;if(vn(a))for(var E=0;E<a.length;E++)f0(this,a[E],y,b,x);else for(a=a.iterator;a.next();)f0(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 An;for(var z=new zi,ee=b.iterator;ee.next();){var re=ee.value;if(re instanceof fi)a||re.fromNode!==null&&re.toNode!==null||E.add(re);else if(re instanceof Di&&re.data!==null&&x.Tl()){var oe=re;re=ee.key;var le=re.pg();le!==null&&(le=b.I(le),le!==null?(x.qe(oe.data,x.wa(le.data)),oe=y.Kc(oe.data),re=re.kh(),re!==null&&oe!==null&&z.add(re,oe)):x.qe(oe.data,void 0))}}if(0<E.count&&y.Is(E,!1),0<z.count)for(x=z.iterator;x.next();)b.add(x.key,x.value)}if(y!==null&&this.H!==null&&(y=y.model,x=y.afterCopyFunction,x!==null)){var ue=new zi;b.each(function(fe){fe.key.data!==null&&ue.add(fe.key.data,fe.value.data)}),x(ue,y,this.H.model)}for(y=b.iterator;y.next();)y.value.La();return b};function f0(a,y,x,b,E){if(y===null||E&&!y.canCopy())return null;if(b.contains(y))return b.I(y);var z=a.copyPartData(y,x);if(!(z instanceof dr))return null;if(z.isSelected=!1,z.isHighlighted=!1,b.add(y,z),y instanceof Di){for(var ee=y.linksConnected;ee.next();){var re=ee.value;if(re.fromNode===y){var oe=b.I(re);oe!==null&&(oe.fromNode=z)}re.toNode===y&&(re=b.I(re),re!==null&&(re.toNode=z))}if(y instanceof Jr&&z instanceof Jr)for(y=y.memberParts;y.next();)ee=f0(a,y.value,x,b,E),ee instanceof fi||ee===null||(ee.containingGroup=z)}else if(y instanceof fi&&z instanceof fi)for(ee=y.fromNode,ee!==null&&(ee=b.I(ee),ee!==null&&(z.fromNode=ee)),ee=y.toNode,ee!==null&&(ee=b.I(ee),ee!==null&&(z.toNode=ee)),y=y.labelNodes;y.next();)ee=f0(a,y.value,x,b,E),ee!==null&&ee instanceof Di&&(ee.labeledLink=z);return z}ra.prototype.copyPartData=function(a,y){var x=null,b=a.data;if(b!==null&&y!==null){var E=y.model;a instanceof fi||(b=E.copyNodeData(b),Rt(b)&&(E.xf(b),x=y.Lc(b)))}else Nc(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 fi||(E=y.copyNodeData(b)),Rt(E)&&(x.data=E)));return x},tt.Object.defineProperties(ra.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}}}),ra.prototype.updateAllRelationshipsFromData=ra.prototype.rp,ra.prototype.findLinksByExample=ra.prototype.ls,ra.prototype.findNodesByExample=ra.prototype.ms,ra.prototype.findLinkForData=ra.prototype.Kc,ra.prototype.findNodeForData=ra.prototype.ii,ra.prototype.findPartForData=ra.prototype.Lc,ra.prototype.findNodeForKey=ra.prototype.Vb,ra.prototype.removeModeledPart=ra.prototype.ip,ra.prototype.removeModeledParts=ra.prototype.Gs,ra.prototype.rebuildParts=ra.prototype.Wd;var yx=!1,Sx=!1,xx=!1;ra.className="PartManager";function ul(a){ra.apply(this,arguments)}Lt(ul,ra),ul.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),wx(this,a.linkDataArray)},ul.prototype.addModeledParts=function(a){for(ra.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)Rg(a.value);Wh(this.diagram,!1)};function wx(a,y){y.forEach(function(x){Px(a,x)}),Wh(a.diagram,!1)}function Px(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){Nc(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 z=v0(x,y,!0);z!==""&&(E.fromPortId=z),z=ic(x,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof Di&&(E.fromNode=z)),z=v0(x,y,!1),z!==""&&(E.toPortId=z),z=ic(x,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof Di&&(E.toNode=z)),x=x.Ef(y),Array.isArray(x)&&x.forEach(function(ee){ee=a.Vb(ee),ee!==null&&(ee.labeledLink=E)}),a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=b}}}}ul.prototype.removeAllModeledParts=function(){var a=this.diagram.model;Cx(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function Cx(a,y){y.forEach(function(x){a.ip(x)})}ul.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},ul.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},ul.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},ul.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},ul.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},ul.prototype.findPartForKey=function(a){var y=ra.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},ul.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},ul.prototype.doModelChanged=function(a){var y=this;if(ra.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===ri){if(E==="linkFromKey"){var z=this.Kc(a.object);if(z!==null){var ee=this.Vb(a.newValue);z.fromNode=ee}}else if(E==="linkToKey"){var re=this.Kc(a.object);if(re!==null){var oe=this.Vb(a.newValue);re.toNode=oe}}else if(E==="linkFromPortId"){var le=this.Kc(a.object);if(le!==null){var ue=a.newValue;typeof ue=="string"&&(le.fromPortId=ue)}}else if(E==="linkToPortId"){var fe=this.Kc(a.object);if(fe!==null){var Se=a.newValue;typeof Se=="string"&&(fe.toPortId=Se)}}else if(E==="nodeGroupKey"){var be=this.Lc(a.object);if(be!==null){var Ae=a.newValue;if(Ae!==void 0){var Oe=this.Vb(Ae);Oe instanceof Jr?be.containingGroup=Oe:be.containingGroup=null}else be.containingGroup=null}}else if(E==="linkLabelKeys"){var rt=this.Kc(a.object);if(rt!==null){var Ye=a.oldValue,mt=a.newValue;Array.isArray(Ye)&&Ye.forEach(function(_n){0<=mt.indexOf(_n)||(_n=y.Vb(_n),_n!==null&&(_n.labeledLink=null))}),Array.isArray(mt)&&mt.forEach(function(_n){_n=y.Vb(_n),_n!==null&&(_n.labeledLink=rt)})}}else if(E==="linkCategory"){var wt=this.Kc(a.object),Mt=a.newValue;wt!==null&&typeof Mt=="string"&&(wt.category=Mt)}else E==="linkDataArray"&&(Cx(this,a.oldValue),wx(this,a.newValue));x.isModified=!0}else if(b===ci){var jt=a.newValue;if(E==="linkDataArray"&&typeof jt=="object"&&jt!==null)Px(this,jt);else if(E==="linkLabelKeys"&&_h(jt)){var mn=this.Kc(a.object),Ni=this.Vb(jt);mn!==null&&Ni!==null&&(Ni.labeledLink=mn)}x.isModified=!0}else if(b===ki){var Qi=a.oldValue;if(E==="linkDataArray"&&typeof Qi=="object"&&Qi!==null)this.ip(Qi);else if(E==="linkLabelKeys"&&_h(Qi)){var Hi=this.Vb(Qi);Hi!==null&&(Hi.labeledLink=null)}x.isModified=!0}}else if(b===ri){var hi=a.propertyName;a.object!==x.model||hi!=="linkFromKeyProperty"&&hi!=="linkToKeyProperty"&&hi!=="linkFromPortIdProperty"&&hi!=="linkToPortIdProperty"&&hi!=="linkLabelKeysProperty"&&hi!=="nodeIsGroupProperty"&&hi!=="nodeGroupKeyProperty"&&hi!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},ul.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new An,b=y.linkDataArray;b.forEach(function(z){x.add(z)});var E=[];this.links.each(function(z){z.data===null||x.contains(z.data)||E.push(z.data)}),E.forEach(function(z){Ox(y,z,!1)}),b.forEach(function(z){a.Kc(z)===null&&Tx(y,z,!1)})},ul.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 fi){var E=ic(b,y,!0);if(E=x.Vb(E),a.fromNode=E,E=ic(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 z=a.labelNodes.first();if(b.wa(z.data)===E)return}E=new An().addAll(y);var ee=new An;a.labelNodes.each(function(re){re.data!==null&&(re=b.wa(re.data),re!==void 0&&ee.add(re))}),y=ee.copy(),y.hp(E),E=E.copy(),E.hp(ee),(0<y.count||0<E.count)&&(y.each(function(re){re=x.Vb(re),re!==null&&re.labeledLink===a&&(re.labeledLink=null)}),E.each(function(re){re=x.Vb(re),re!==null&&re.labeledLink!==a&&(re.labeledLink=a)}))}}else!(a instanceof Yo)&&(y=b.lh(y),y=x.findPartForKey(y),y===null||y instanceof Jr)&&(a.containingGroup=y)}}},ul.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=Wp(y,x),E=this.Lc(a);if(b!==null&&E!==null){b=b.iterator;for(var z={};b.next();){var ee=b.value;y.lb(ee)?E instanceof Jr&&y.lh(ee)===x&&(ee=this.Lc(ee),ee!==null&&(ee.containingGroup=E)):(z.link=this.Kc(ee),z.link!==null&&E instanceof Di&&(ic(y,ee,!0)===x&&(z.link.fromNode=E),ic(y,ee,!1)===x&&(z.link.toNode=E),ee=y.Ef(ee),Array.isArray(ee)&&ee.some(function(re){return function(oe){return oe===x?(E.labeledLink=re.link,!0):!1}}(z)))),z={link:z.link}}ad(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof Jr&&(E.containingGroup=a))}},ul.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Di){var x=y.wa(a.data);if(x!==void 0){for(var b=a.linksConnected;b.next();)od(y,x,b.value.data);if(a.isLinkLabel&&(b=a.labeledLink,b!==null&&od(y,x,b.data)),a instanceof Jr)for(a=a.memberParts;a.next();)b=a.value.data,y.lb(b)&&od(y,x,b)}}},ul.prototype.copyPartData=function(a,y){var x=ra.prototype.copyPartData.call(this,a,y);if(a instanceof fi)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},ul.prototype.insertLink=function(a,y,x,b){var E=this.diagram,z=E.model,ee=E.toolManager.findTool("Linking"),re="";if(a!==null&&(y===null&&(y=a),re=y.portId,re===null&&(re="")),y="",x!==null&&(b===null&&(b=x),y=b.portId,y===null&&(y="")),b=ee.archetypeLinkData,b instanceof fi){if(Nc(b),z=b.copy(),z!==null)return z.fromNode=a,z.fromPortId=re,z.toNode=x,z.toPortId=y,E.add(z),a=ee.archetypeLabelNodeData,a instanceof Di&&(Nc(a),a=a.copy(),a!==null&&(a.labeledLink=z,E.add(a))),z}else if(b!==null&&(b=z.Jo(b),typeof b=="object"&&b!==null))return a!==null&&Kg(z,b,z.wa(a.data),!0),Vg(z,b,re,!0),x!==null&&Kg(z,b,z.wa(x.data),!1),Vg(z,b,y,!1),z.fi(b),a=ee.archetypeLabelNodeData,a===null||a instanceof Di||(a=z.copyNodeData(a),typeof a=="object"&&a!==null&&(z.xf(a),a=z.wa(a),a!==void 0&&z.Bu(b,a))),E.Kc(b);return null},ul.prototype.findLinkForKey=ul.prototype.findLinkForKey,ul.prototype.findPartForKey=ul.prototype.findPartForKey,ul.prototype.removeAllModeledParts=ul.prototype.removeAllModeledParts,ul.prototype.addModeledParts=ul.prototype.addModeledParts,ul.prototype.addAllModeledParts=ul.prototype.addAllModeledParts,ul.className="GraphLinksPartManager";function pc(){ra.apply(this,arguments),this.Sg=null}Lt(pc,ra);function g0(a,y,x){if(y!==null&&x!==null&&x.kh()===null){var b=a.diagram.toolManager.findTool("Linking"),E=y,z=x;if(a.diagram.isTreePathToChildren||(E=x,z=y),(b===null||!Un(b,E,z,null,!0))&&(y=a.getLinkCategoryForData(x.data),b=a.findLinkTemplateForCategory(y),b!==null&&(Nc(b),b=b.copy(),b!==null))){var ee=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,b.Tf=y,b.ub=x.data,b.fromNode=E,b.toNode=z,a.diagram.add(b),b.ub=null,b.data=x.data,a.diagram.skipsModelSourceBindings=ee}}}pc.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},pc.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},pc.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}},pc.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))},pc.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},pc.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},pc.prototype.doModelChanged=function(a){if(ra.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===ri){if(b==="nodeParentKey"){var E=a.object,z=this.Vb(a.newValue),ee=this.ii(E);if(this.Sg!==null)z!==null&&(this.Sg.data=E,this.Sg.category=this.getLinkCategoryForData(E));else if(ee!==null){var re=ee.kh();re!==null?z===null?y.remove(re):y.isTreePathToChildren?re.fromNode=z:re.toNode=z:g0(this,z,ee)}}else if(b==="parentLinkCategory"){var oe=this.ii(a.object),le=a.newValue;if(oe!==null&&typeof le=="string"){var ue=oe.kh();ue!==null&&(ue.category=le)}}y.isModified=!0}}else if(x===ri){var fe=a.propertyName;a.object===y.model&&fe==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},pc.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;a instanceof Di&&(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:g0(this,y,a):b!==null&&Jd(x,b,!1)))}}},pc.prototype.updateDataBindings=function(a,y){ra.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},pc.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=Wp(y,x),E=this.Lc(a);if(b!==null&&E!==null){for(b=b.iterator;b.next();){var z=b.value;y.lb(z)&&E instanceof Di&&y.mh(z)===x&&g0(this,E,this.ii(z))}ad(y,x)}a=y.mh(a),a!==void 0&&E instanceof Di&&(a=this.Vb(a),g0(this,a,E))}},pc.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Di){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 z=E.pc(-1,b,!1);0<=z&&this.diagram.cb(ki,"parts",E,b,null,z,null),z=b.layerChanged,z!==null&&z(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)&&od(y,x,E)}},pc.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},pc.prototype.findLinkForKey=pc.prototype.findLinkForKey,pc.className="TreePartManager";function or(a,y){this.kl=new An,this.il=new An,this.Wv=`,
"insertedNodeKeys": `,this.jy=`,
"modifiedNodeData": `,this.Yv=`,
"removedNodeKeys": `,this.vh=null,yr(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new zi,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 zi,this.Lt=new Mn,this.Wg=!1,this.o=null,this.undoManager=new Ai,a!==void 0&&(vn(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)+":"+Ki(E)}}return y},or.prototype.xA=function(a){a.change!==Wn&&Pt("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof lr?(Ex(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 An,z=new An,ee=new An,re=this.vh;a.changes.each(function(fe){fe.model===x&&(fe.modelChange==="nodeDataArray"?fe.change===ci?E.add(fe.newValue):fe.change===ki&&ee.add(fe.oldValue):x.lb(fe.object)?z.add(fe.object):fe.change!==ri||x.modelData!==fe.object&&fe.propertyName!=="modelData"?fe.object!==null&&(re&&re.contains(fe.object)?re.get(fe.object).each(function(Se){x.lb(Se)&&z.add(Se)}):fe.object instanceof or||x.ri()&&x.Jc(fe.object)||Ax(x,fe.object).each(function(Se){z.add(Se)})):b=!0)});var oe=this.il;oe.clear(),E.each(function(fe){oe.add(x.wa(fe)),y||z.add(fe)});var le=this.kl;le.clear(),ee.each(function(fe){le.add(x.wa(fe)),y&&z.add(fe)}),a=x.cloneDeep(z.Fa());var ue=null;return b&&(ue===null&&(ue={}),ue.modelData=this.cloneDeep(this.modelData)),0<oe.count&&(ue===null&&(ue={}),y?ue.removedNodeKeys=oe.Fa():ue.insertedNodeKeys=oe.Fa()),0<a.length&&(ue===null&&(ue={}),ue.modifiedNodeData=a),0<le.count&&(ue===null&&(ue={}),y?ue.insertedNodeKeys=le.Fa():ue.removedNodeKeys=le.Fa()),le.clear(),oe.clear(),ue},or.prototype.cloneDeep=function(a){return Zg(this,a,!0)};function Zg(a,y,x,b,E,z){function ee(fe,Se){re?(fe.__gohashid===void 0&&z.push(fe),b.set(fe,Se)):(fe=Ho++,b.set(fe,Se),E.set(fe,y))}if(!Rt(y))return y;z||(z=[]);var re=Object.isExtensible(y);if(b||(b=new zi),re){var oe=b.get(y);if(oe)return oe}else for(E||(E=new zi),oe=E.iterator;oe.next();){var le=oe.key;if(oe.value===y&&(le=b.get(le)))return le}if(Array.isArray(y)){oe=[],ee(y,oe);for(var ue=0;ue<y.length;ue++)oe.push(Zg(a,y[ue],!1,b,E,z))}else if(y instanceof Je||y instanceof On||y instanceof Pn||y instanceof Gi||y instanceof Ui)oe=y.copy(),ee(y,oe);else{if(y instanceof ia||y instanceof di||y instanceof Xt)return y;if(y instanceof Mn)oe=new Mn().addAll(Zg(a,y.Fa(),!1,b,E,z)),ee(y,oe);else if(y instanceof An)oe=new An().addAll(Zg(a,y.Fa(),!1,b,E,z)),ee(y,oe);else if(y instanceof zi)oe=new zi().addAll(Zg(a,y.Fa(),!1,b,E,z)),ee(y,oe);else if(y instanceof Date)oe=new Date(y.getTime()),ee(y,oe);else if(y instanceof RegExp)oe=new RegExp(y),ee(y,oe),oe.lastIndex=y.lastIndex;else if(typeof y.copy=="function")oe=y.copy(),ee(y,oe);else for(ue in oe={},ee(y,oe),y)ue!=="__gohashid"&&(oe[ue]=Zg(a,y[ue],!1,b,E,z))}return x&&z.forEach(function(fe){delete fe.__gohashid}),oe}Ee=or.prototype,Ee.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},Ee.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},Ee.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 bx(a,y){y=y.modelData,Rt(y)&&(a.dm(y),a.modelData=y)}Ee.Rv=function(){var a=this.modelData,y=!1,x;for(x in a)if(!Lx(x,a[x])){y=!0;break}return a="",y&&(a=`,
"modelData": `+fy(this,this.modelData)),a+`,
"nodeDataArray": `+Qh(this,this.nodeDataArray,!0)},Ee.kv=function(a){bx(this,a),a=a.nodeDataArray,vn(a)&&(this.dm(a),this.nodeDataArray=a)};function Ex(a,y){function x(E,z){if((z=z.part)&&(z=z.data,E!==z)){var ee=b.get(E);ee===null?(ee=new An,ee.add(z),b.add(E,ee)):ee.add(z)}}var b=a.vh;b===null&&(b=new zi,y.changes.each(function(E){if(E.diagram!==null){var z=E.change;z===ri?(E=E.object.panel)&&(z=E.data)&&x(z,E):(z===ci||z===ki)&&(E=E.object,(z=E.itemArray)&&x(z,E))}}),a.vh=b)}function Ax(a,y){for(var x=new An,b=0;b<a.nodeDataArray.length;b++){var E=a.nodeDataArray[b];p0(a,y,E,E,x)}return x}function p0(a,y,x,b,E){if(Array.isArray(x))for(var z=0;z<x.length;z++){var ee=x[z];if(ee===y)return E.add(b),!0;if(p0(a,y,ee,b,E))return!0}else if(Rt(x)&&Object.getPrototypeOf(x)===Object.prototype)for(z in x){if(ee=x[z],ee===y)return E.add(b),!0;if(p0(a,y,ee,b,E))return!0}return!1}Ee.Pv=function(a,y){var x=this,b=!1,E=new An,z=new An,ee=new An,re=this.vh;a.changes.each(function(ue){ue.model===x&&(ue.modelChange==="nodeDataArray"?ue.change===ci?E.add(ue.newValue):ue.change===ki&&ee.add(ue.oldValue):x.lb(ue.object)?z.add(ue.object):ue.change!==ri||x.modelData!==ue.object&&ue.propertyName!=="modelData"?ue.object!==null&&(re&&re.contains(ue.object)?re.get(ue.object).each(function(fe){x.lb(fe)&&z.add(fe)}):ue.object instanceof or||x.ri()&&x.Jc(ue.object)||Ax(x,ue.object).each(function(fe){z.add(fe)})):b=!0)});var oe=this.il;oe.clear(),E.each(function(ue){oe.add(x.wa(ue)),y||z.add(ue)});var le=this.kl;return le.clear(),ee.each(function(ue){le.add(x.wa(ue)),y&&z.add(ue)}),a="",b&&(a+=`,
"modelData": `+fy(this,this.modelData)),0<oe.count&&(a+=(y?this.Yv:this.Wv)+Qh(this,oe.Fa(),!0)),0<z.count&&(a+=this.jy+Qh(this,z.Fa(),!0)),0<le.count&&(a+=(y?this.Wv:this.Yv)+Qh(this,le.Fa(),!0)),le.clear(),oe.clear(),a},Ee.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)&&Pt("applyIncrementalJson cannot change Model properties"),bx(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,b=new zi;if(Array.isArray(x))for(var E=0;E<x.length;E++){var z=x[E],ee=this.wa(z);ee!=null&&b.set(ee,z)}if(Array.isArray(y))for(E=y.length,z=0;z<E;z++){ee=y[z];var re=this.hc(ee);re===null&&(re=(re=b.get(ee))?re:this.copyNodeData({}),this.km(re,ee),this.xf(re))}if(Array.isArray(x)){for(y=x.length,b=0;b<y;b++)if(E=x[b],z=this.wa(E),z=this.hc(z),z!==null){for(var oe in E)oe==="__gohashid"||oe===this.nodeKeyProperty||this.Wj()&&oe===this.nodeIsGroupProperty||this.setDataProperty(z,oe,E[oe]);this.lm(E,z)}}if(a=a.removedNodeKeys,Array.isArray(a))for(x=a.length,oe=0;oe<x;oe++)y=this.hc(a[oe]),y!==null&&this.cm(y)},Ee.$x=function(a,y){a.change!==Wn&&Pt("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof lr?(y===void 0&&(y=Zp(this,this)),Ex(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 }'},Ee.yA=function(a,y){return this.$x(a,y)},Ee.np=function(a){return a===void 0&&(a=Zp(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},Ee.toJSON=function(a){return this.np(a)},Ee.Zw=function(a){var y=null;if(typeof a=="string")try{y=Ue.JSON.parse(a)}catch(b){}else typeof a=="object"?y=a:Pt("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&Pt("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},Ee.Ky=function(a){return this.Zw(a)},or.constructGraphLinksModel=function(){return new or},Ee=or.prototype,Ee.dm=function(a){if(vn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];if(Rt(b)){var E=x;b=this.dm(b),Array.isArray(a)?a[E]=b:Pt("Cannot replace an object in an HTMLCollection or NodeList at "+E)}}else if(Rt(a)){for(y in a)if(x=a[y],Rt(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 Mn,b=0;b<x.length/2;b++)E.add(new Je(x[2*b],x[2*b+1]));E.freeze(),a[y]=E}}return H1(a)}return a},Ee.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()):vn(a)?Qh(this,a):Rt(a)?fy(this,a):typeof a=="function"?"null":a.toString()};function Qh(a,y,x){x===void 0&&(x=!1);var b=y.length;if(0>=b)return"[]";var E=new ar;E.add("["),x&&1<b&&E.add(`
`);for(var z=0;z<b;z++){var ee=y[z];ee!==void 0&&(0<z&&(E.add(","),x&&E.add(`
`)),E.add(a.sm(ee)))}return x&&1<b&&E.add(`
`),E.add("]"),E.toString()}function Lx(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function su(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function fy(a,y){var x=y;if(x instanceof Je)y={class:"go.Point",x:su(x.x),y:su(x.y)};else if(x instanceof On)y={class:"go.Size",width:su(x.width),height:su(x.height)};else if(x instanceof Pn)y={class:"go.Rect",x:su(x.x),y:su(x.y),width:su(x.width),height:su(x.height)};else if(x instanceof Gi)y={class:"go.Margin",top:su(x.top),right:su(x.right),bottom:su(x.bottom),left:su(x.left)};else if(x instanceof Ui)x.sb()?y={class:"go.Spot",x:su(x.x),y:su(x.y),offsetX:su(x.offsetX),offsetY:su(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof ia){if(y={class:"go.Brush",type:x.type.name},x.type===Sh?y.color=x.color:(x.type===qd||x.type===fc)&&(y.start=x.start,y.end=x.end,x.type===fc&&(x.startRadius!==0&&(y.startRadius=su(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=su(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 di?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=su(x.startX)),x.startY!==0&&(y.startY=su(x.startY)),x.endX!==0&&(y.endX=su(x.endX)),x.endY!==0&&(y.endY=su(x.endY)),x.spot1.D(ga)||(y.spot1=x.spot1),x.spot2.D(vl)||(y.spot2=x.spot2),x.type===di.o&&(y.path=di.ia(x))):x instanceof Xt&&(y={class:"go.EnumValue",classType:Zp(a,x.classType),name:x.name});b="{",x=!0;for(var E in y){var z=As(y,E);if(!Lx(E,z))if(x?x=!1:b+=",",b+=a.quote(E)+":",E==="points"&&z instanceof Mn){var ee="[";for(z=z.iterator;z.next();){var re=z.value;1<ee.length&&(ee+=","),ee+=a.sm(re.x),ee+=",",ee+=a.sm(re.y)}ee+="]",b+=ee}else b+=a.sm(z)}return b+"}"}function lu(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function H1(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 Je(lu(a.x),lu(a.y));else if(y==="Size")x=new On(lu(a.width),lu(a.height));else if(y==="Rect")x=new Pn(lu(a.x),lu(a.y),lu(a.width),lu(a.height));else if(y==="Margin")x=new Gi(lu(a.top),lu(a.right),lu(a.bottom),lu(a.left));else if(y==="Spot")typeof a.enum=="string"?x=Hu(a.enum):x=new Ui(lu(a.x),lu(a.y),lu(a.offsetX),lu(a.offsetY));else if(y==="Brush"){if(x=new ia,x.type=Mi(ia,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof Ui&&(x.start=a.start),a.end instanceof Ui&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=lu(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=lu(a.endRadius)),a=a.colorStops,Rt(a))for(var b in a)x.addColorStop(parseFloat(b),a[b])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=di.parse(a.path):x=new di,x.type=Mi(di,a.type),typeof a.startX=="number"&&(x.startX=lu(a.startX)),typeof a.startY=="number"&&(x.startY=lu(a.startY)),typeof a.endX=="number"&&(x.endX=lu(a.endX)),typeof a.endY=="number"&&(x.endY=lu(a.endY)),a.spot1 instanceof Ui&&(x.spot1=a.spot1),a.spot2 instanceof Ui&&(x.spot2=a.spot2)):y==="EnumValue"&&(b=a.classType,b.indexOf("go.")===0&&(b=b.substr(3)),b=py(b),typeof b=="function"&&(x=Mi(b,a.name)));return x}Ee.Pe=function(a){return this.Lt.add(a),this},Ee.ik=function(a){this.Lt.remove(a)},Ee.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)},Ee.cb=function(a,y,x,b,E,z,ee){Zs(this,"",a,y,x,b,E,z,ee)},Ee.g=function(a,y,x,b,E){Zs(this,"",ri,a,this,y,x,b,E)},Ee.Fs=function(a,y,x,b,E,z){Zs(this,"",ri,y,a,x,b,E,z)};function Zs(a,y,x,b,E,z,ee,re,oe){re===void 0&&(re=null),oe===void 0&&(oe=null);var le=new Tn;le.model=a,le.change=x,le.modelChange=y,le.propertyName=b,le.object=E,le.oldValue=z,le.oldParam=re,le.newValue=ee,le.newParam=oe,a.ds(le)}or.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===ri){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)),ja(x,b,E)}else a.change===ci?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,Rt(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]===a&&pi(this.Tc,x),b!==void 0&&this.kb.remove(b)):(this.Tc[x]!==a&&vi(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!vn(b)&&a.propertyName&&(b=As(a.object,a.propertyName)),vn(b)&&typeof x=="number"&&(a=a.newValue,y?pi(b,x):vi(b,x,a))):Pt("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===ki?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,Rt(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]!==a&&vi(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)):(this.Tc[x]===a&&pi(this.Tc,x),b!==void 0&&this.kb.remove(b)))):a.modelChange===""?((b=a.object)&&!vn(b)&&a.propertyName&&(b=As(a.object,a.propertyName)),vn(b)&&typeof x=="number"&&(a=a.oldValue,y?vi(b,x,a):pi(b,x))):Pt("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==Wn&&Pt("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}},Ee=or.prototype,Ee.La=function(a,y){y===void 0&&(y=""),Zs(this,"SourceChanged",Wn,y,a,null,null)},Ee.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=As(a,y),y!==void 0)){if(_h(y))return y;Pt("Key value for node data "+a+" is not a number or a string: "+y)}}},Ee.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var b=As(a,x);b!==y&&this.hc(y)===null&&(ja(a,x,y),b!==void 0&&this.kb.remove(b),this.kb.add(y,a),Zs(this,"nodeKey",ri,x,a,b,y),typeof x=="string"&&this.La(a,x),this.jp(b,y))}else ja(a,x,y)}};function _h(a){return typeof a=="number"||typeof a=="string"}Ee.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},Ee.hc=function(a){return a===null&&Pt("Model.findNodeDataForKey:key must not be null"),a!==void 0&&_h(a)?this.kb.I(a):null},Ee.$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))){ja(a,y,x);return}if(typeof x=="string"){for(b=2;this.kb.contains(x+b);)b++;ja(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;ja(a,y,x)}}}}},Ee.xf=function(a){a!==null&&(_r(a),this.lb(a)||Mx(this,a,!0))};function Mx(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&&Pt("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,x&&(b=a.Tc.length,vi(a.Tc,b,y)),Zs(a,"nodeDataArray",ci,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}Ee.Fy=function(a){if(vn(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)},Ee.cm=function(a){a!==null&&kx(this,a,!0)};function kx(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;pi(a.Tc,b)}Zs(a,"nodeDataArray",ki,"nodeDataArray",a,y,null,b,null),a.qp(y)}Ee.nA=function(a){if(vn(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)},Ee.$z=function(a){if(a!==this.nodeDataArray&&vn(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 z=a[E],ee=this.wa(z);if(ee!==void 0){x.add(ee);var re=this.hc(ee);re!==z&&(re!==null?(this.Do(re,z),this.lm(z,re)):(z=this.cloneDeep(z),this.km(z,ee),this.xf(z)))}else ee=this.cloneDeep(z),this.xf(ee),x.add(this.wa(ee))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.hc(b))&&this.cm(b);y.clear(),x.clear()}},Ee.jp=function(a,y){y!==void 0&&(a=Wp(this,a),a instanceof An&&this.Vf.add(y,a))},Ee.Lv=function(){},Ee.fm=function(){},Ee.em=function(){},Ee.qp=function(){};function od(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b===null&&(b=new An,a.Vf.add(y,b)),b.add(x)}}function ad(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b instanceof An&&(x==null?a.Vf.remove(y):(b.remove(x),b.count===0&&a.Vf.remove(y)))}}function Wp(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof An?a:null)}Ee.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):m0(this,a,!0),Rt(a)&&yr(a),a};function m0(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var b=[];for(x=0;x<y.length;x++){var E=m0(a,y[x],a.copiesArrayObjects);b.push(E)}return yr(b),b}if(x&&Rt(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 z=As(y,b),ee=Zp(a,z);ee==="GraphObject"||ee==="Diagram"||ee==="Layer"||ee==="RowColumnDefinition"||ee==="AnimationManager"||ee==="Tool"||ee==="CommandHandler"||ee==="Layout"||ee==="InputEvent"||ee==="DiagramEvent"||z instanceof or||z instanceof Ai||z instanceof lr||z instanceof Tn||(z=m0(a,z,!1)),ja(x,b,z)}return yr(x),x}return y instanceof Je||y instanceof On||y instanceof Pn||y instanceof Ui||y instanceof Gi?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!Nx&&a instanceof Kt&&(Nx=!0,Xn('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),Xn(" Is that really your intent?"));var b=As(a,y);b!==x&&(ja(a,y,x),this.Fs(a,y,b,x))},Ee=or.prototype,Ee.set=function(a,y,x){this.setDataProperty(a,y,x)},Ee.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])}},Ee.Ay=function(a,y){this.ts(a,-1,y)},Ee.ts=function(a,y,x){0>y&&(y=a.length),vi(a,y,x),Zs(this,"",ci,"",a,null,x,null,y)},Ee.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&Pt("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];pi(a,y),Zs(this,"",ki,"",a,x,null,y,null)},Ee.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=As(a,y),y===void 0))return"";if(typeof y=="string")return y;Pt("getCategoryForNodeData found a non-string category for "+a+": "+y)},Ee.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var b=As(a,x);b===void 0&&(b=""),b!==y&&(ja(a,x,y),Zs(this,"nodeCategory",ri,x,a,b,y))}else ja(a,x,y)}},Ee.lm=function(a,y){this.jm(y,this.Ro(a))},Ee.Tl=function(){return!1},Ee.Wj=function(){return!1},Ee.ri=function(){return!1},Ee.xs=function(){return!1},Ee.Xj=function(){return!1};function gy(){return new or}function Zp(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 Zp(a,y.constructor);return typeof y}function py(a){return Vc[a]?Vc[a]:Ue.go!==void 0&&Ue.go[a]?Ue.go[a]:null}function As(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 ja(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){}}tt.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===""&&Pt("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&Pt("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];Rt(E)||Pt("Model.nodeDataArray must only contain Objects, not: "+E),_r(E)}for(this.Tc=a,b=new Mn,E=0;E<x;E++){var z=a[E],ee=this.wa(z);ee===void 0||this.kb.I(ee)!==null?b.add(z):this.kb.add(ee,z)}for(b=b.iterator;b.next();)E=b.value,this.$u(E),z=this.wa(E),z!==void 0&&this.kb.add(z,E);for(Zs(this,"nodeDataArray",ri,"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 Nx=!1,Vc={};or.className="Model",or.fromJSON=or.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=Ue.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:Pt("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=py(b)):(E=py(b),E===null&&(E=Ue[b])),typeof E=="function"&&(a=new E)}catch(z){}a===null||a instanceof or?y=a:Pt("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=As,or.safePropertySet=ja,Vc.Brush=ia,Vc.ChangedEvent=Tn,Vc.Geometry=di,Vc.Margin=Gi,Vc.Panel=si,Vc.Point=Je,Vc.Rect=Pn,Vc.Size=On,Vc.Spot=Ui,Vc.Transaction=lr,Vc.UndoManager=Ai;function ks(a,y,x,b){yr(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=Dx,this.wk=null):(this.el=Kp,this.wk=b),this.st=new An}ks.prototype.copy=function(){var a=new ks;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},Ee=ks.prototype,Ee.qb=function(a){a.classType===ks&&(this.mode=a)},Ee.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},Ee.freeze=function(){return this._isFrozen=!0,this},Ee.ka=function(){return this._isFrozen=!1,this},Ee.Kx=function(a){return a===void 0&&(a=null),this.mode=Kp,this.backConverter=a,this},Ee.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},Ee.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function Fx(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}Ee.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==="")Xn("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(b!==""&&(z=As(y,b)),z!==void 0)if(E===null)x!==""&&ja(a,x,z);else try{if(x!==""){var ee=E(z,a);ja(a,x,ee)}else E(z,a)}catch(re){}}}},Ee.sp=function(a,y,x,b){if(this.el===Kp){var E=this.xl;if(x===void 0||E===x){x=this.sl;var z=this.wk,ee=a;if(E!==""&&(ee=As(a,E)),ee!==void 0&&!this.st.contains(a))try{this.st.add(a);var re=b!==null?b.diagram:null,oe=re!==null?re.model:null;if(z===null){if(x!=="")oe!==null?oe.setDataProperty(y,x,ee):ja(y,x,ee);else if(oe!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var le=b.itemIndex,ue=b.panel.itemArray;oe.ov(ue,le),oe.ts(ue,le,ee)}}else try{if(x!==""){var fe=z(ee,y,oe);oe!==null?oe.setDataProperty(y,x,fe):ja(y,x,fe)}else{var Se=z(ee,y,oe);if(Se!==void 0&&oe!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var be=b.itemIndex,Ae=b.panel.itemArray;oe.ov(Ae,be),oe.ts(Ae,be,Se)}}}catch(Oe){}}finally{this.st.remove(a)}}}},tt.Object.defineProperties(ks.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}}}),ks.prototype.updateSource=ks.prototype.sp,ks.prototype.updateTarget=ks.prototype.Mv,ks.prototype.ofModel=ks.prototype.dA,ks.prototype.ofObject=ks.prototype.cp,ks.prototype.makeTwoWay=ks.prototype.Kx;var W1="Binding",Dx=new Xt(ks,"OneWay",1),Kp=new Xt(ks,"TwoWay",2);ks.className="Binding",ks.parseEnum=function(a,y){return function(x){return x=Mi(a,x),x===null?y:x}},ks.toString=Ki,ks.OneWay=Dx,ks.TwoWay=Kp;function Bo(a,y,x){or.call(this),this.Vv=`,
"insertedLinkKeys": `,this.iy=`,
"modifiedLinkData": `,this.Xv=`,
"removedLinkKeys": `,this.md=[],this.$f=new An,this.wb=new zi,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&&(vn(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}Lt(Bo,or),Bo.constructGraphLinksModel=or.constructGraphLinksModel,Bo.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},Ee=Bo.prototype,Ee.clear=function(){or.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},Ee.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)+":"+Ki(E)}for(y+=`
link data:`,a=this.linkDataArray,x=a.length,b=0;b<x;b++)E=a[b],y+=" "+ic(this,E,!0)+"-->"+ic(this,E,!1)}return y},Ee.Qv=function(a,y){this.linkKeyProperty===""&&Pt("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 An,z=new An,ee=new An,re=this.vh;a.changes.each(function(ue){ue.model===b&&(ue.modelChange==="linkDataArray"?ue.change===ci?E.add(ue.newValue):ue.change===ki&&ee.add(ue.oldValue):b.Jc(ue.object)?z.add(ue.object):ue.object!==null&&(ue.object!==null&&re&&re.contains(ue.object)?re.get(ue.object).each(function(fe){b.Jc(fe)&&z.add(fe)}):ue.object instanceof or||b.lb(ue.object)||Bx(b,ue.object).each(function(fe){z.add(fe)})))});var oe=this.il;oe.clear(),E.each(function(ue){oe.add(b.Ac(ue)),y||z.add(ue)});var le=this.kl;return le.clear(),ee.each(function(ue){le.add(b.Ac(ue)),y&&z.add(ue)}),a=b.cloneDeep(z.Fa()),0<oe.count&&(x===null&&(x={}),y?x.removedLinkKeys=oe.Fa():x.insertedLinkKeys=oe.Fa()),0<a.length&&(x===null&&(x={}),x.modifiedLinkData=a),0<le.count&&(x===null&&(x={}),y?x.insertedLinkKeys=le.Fa():x.removedLinkKeys=le.Fa()),le.clear(),oe.clear(),x},Ee.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},Ee.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)},Ee.Rv=function(){var a=or.prototype.Rv.call(this),y=`,
"linkDataArray": `+Qh(this,this.linkDataArray,!0);return a+y},Ee.kv=function(a){or.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function Bx(a,y){for(var x=new An,b=0;b<a.linkDataArray.length;b++){var E=a.linkDataArray[b];p0(a,y,E,E,x)}return x}Ee.Pv=function(a,y){this.linkKeyProperty===""&&Pt("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 An,z=new An,ee=new An,re=this.vh;a.changes.each(function(ue){ue.model===b&&(ue.modelChange==="linkDataArray"?ue.change===ci?E.add(ue.newValue):ue.change===ki&&ee.add(ue.oldValue):b.Jc(ue.object)?z.add(ue.object):ue.object!==null&&(ue.object!==null&&re&&re.contains(ue.object)?re.get(ue.object).each(function(fe){b.Jc(fe)&&z.add(fe)}):ue.object instanceof or||b.lb(ue.object)||Bx(b,ue.object).each(function(fe){z.add(fe)})))});var oe=this.il;oe.clear(),E.each(function(ue){oe.add(b.Ac(ue)),y||z.add(ue)});var le=this.kl;return le.clear(),ee.each(function(ue){le.add(b.Ac(ue)),y&&z.add(ue)}),a=x,0<oe.count&&(a+=(y?this.Xv:this.Vv)+Qh(this,oe.Fa(),!0)),0<z.count&&(a+=this.iy+Qh(this,z.Fa(),!0)),0<le.count&&(a+=(y?this.Vv:this.Xv)+Qh(this,le.Fa(),!0)),le.clear(),oe.clear(),a},Ee.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)&&Pt("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],z=this.jh(E);z===null&&(z=this.Jo({}),this.Ks(z,E),this.fi(z))}if(y=a.modifiedLinkData,Array.isArray(y)){for(x=y.length,b=0;b<x;b++)if(E=y[b],z=this.Ac(E),z=this.jh(z),z!==null){for(var ee in E)ee!=="__gohashid"&&ee!==this.linkKeyProperty&&this.setDataProperty(z,ee,E[ee]);Ix(this,E,z)}}if(a=a.removedLinkKeys,Array.isArray(a))for(ee=a.length,y=0;y<ee;y++)x=this.jh(a[y]),x!==null&&this.bm(x)},Bo.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===ri){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),ja(x,b,E);return}}else if(a.change===ci){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,Rt(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===ki){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,Rt(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)}},Ee=Bo.prototype,Ee.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),ja(x,this.nodeKeyProperty,a),this.xf(x))}return a}},Ee.yx=function(a){return ic(this,a,!0)},Ee.wv=function(a,y){Kg(this,a,y,!0)},Ee.Bx=function(a){return ic(this,a,!1)},Ee.Bv=function(a,y){Kg(this,a,y,!1)};function ic(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=As(y,a),a!==void 0))){if(_h(a))return a;Pt((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Kg(a,y,x,b){if(x===null&&(x=void 0),y!==null){var E=b?a.lf:a.mf;if(E!=="")if(x=a.Vl(x),a.Jc(y)){var z=As(y,E);z!==x&&(ad(a,z,y),ja(y,E,x),a.hc(x)===null&&od(a,x,y),Zs(a,b?"linkFromKey":"linkToKey",ri,E,y,z,x),typeof E=="string"&&a.La(y,E))}else ja(y,E,x)}}Ee.zx=function(a){return v0(this,a,!0)},Ee.xv=function(a,y){Vg(this,a,y,!0)},Ee.Cx=function(a){return v0(this,a,!1)},Ee.Cv=function(a,y){Vg(this,a,y,!1)};function v0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=As(y,a),y===void 0?"":y)}function Vg(a,y,x,b){if(y!==null){var E=b?a.ej:a.fj;if(E!=="")if(a.Jc(y)){var z=As(y,E);z===void 0&&(z=""),z!==x&&(ja(y,E,x),Zs(a,b?"linkFromPortId":"linkToPortId",ri,E,y,z,x),typeof E=="string"&&a.La(y,E))}else ja(y,E,x)}}Ee.Ef=function(a){if(a===null)return y0;var y=this.je;return y===""?y0:(a=As(a,y),a===void 0?y0:a)},Ee.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var b=As(a,x);if(b===void 0&&(b=y0),b!==y){if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)ad(this,b[z],a);for(ja(a,x,y),E=y.length,z=0;z<E;z++){var ee=y[z];this.hc(ee)===null&&od(this,ee,a)}Zs(this,"linkLabelKeys",ri,x,a,b,y),typeof x=="string"&&this.La(a,x)}}else ja(a,x,y)}},Ee.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=As(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&&od(this,y,a),Zs(this,"linkLabelKeys",ci,x,a,null,y,null,E)))}else Pt(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},Ee.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=As(a,x);if(Array.isArray(b)){var E=b.indexOf(y);0>E||(b.splice(E,1),this.Jc(a)&&(ad(this,y,a),Zs(this,"linkLabelKeys",ki,x,a,y,null,E,null)))}else b!==void 0&&Pt(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Ee.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=As(a,y),y!==void 0)){if(_h(y))return y;Pt("Key value for link data "+a+" is not a number or a string: "+y)}}},Ee.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var b=As(a,x);b!==y&&this.jh(y)===null&&(ja(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),Zs(this,"linkKey",ri,x,a,b,y),typeof x=="string"&&this.La(a,x))}else ja(a,x,y)}},Ee.jh=function(a){return a===null&&Pt("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&_h(a)?this.wb.I(a):null},Ee.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))){ja(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;ja(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;ja(a,y,x)}}}}},Ee.Jc=function(a){return a===null?!1:this.$f.contains(a)},Ee.fi=function(a){a!==null&&(_r(a),this.Jc(a)||Tx(this,a,!0))};function Tx(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&&Pt("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)),Zs(a,"linkDataArray",ci,"linkDataArray",a,null,y,null,b),my(a,y)}Ee.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)},Ee.bm=function(a){a!==null&&Ox(this,a,!0)};function Ox(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(Zs(a,"linkDataArray",ki,"linkDataArray",a,y,null,b,null),x=ic(a,y,!0),ad(a,x,y),x=ic(a,y,!1),ad(a,x,y),b=a.Ef(y),Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],ad(a,x,y)}Ee.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)},Ee.Zz=function(a){if(this.linkKeyProperty===""&&Pt("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&vn(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 z=a[E],ee=this.Ac(z);if(ee!==void 0){x.add(ee);var re=this.jh(ee);re!==z&&(re!==null?(this.Do(re,z),Ix(this,z,re)):(z=this.cloneDeep(z),this.Ks(z,ee),this.fi(z)))}else ee=this.cloneDeep(z),this.fi(ee),x.add(this.Ac(ee))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.jh(b))&&this.bm(b);y.clear(),x.clear()}};function my(a,y){var x=ic(a,y,!0);x=a.Vl(x),a.hc(x)===null&&od(a,x,y),x=ic(a,y,!1),x=a.Vl(x),a.hc(x)===null&&od(a,x,y);var b=a.Ef(y);if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],a.hc(x)===null&&od(a,x,y)}Ee.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):m0(this,a,!0),Rt(a)&&(yr(a),this.lf!==""&&ja(a,this.lf,void 0),this.mf!==""&&ja(a,this.mf,void 0),this.je!==""&&ja(a,this.je,[])),a},Ee.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!As(a,y)},Ee.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=As(a,y),y!==void 0)){if(_h(y))return y;Pt("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},Ee.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var b=As(a,x);b!==y&&(ad(this,b,a),ja(a,x,y),this.hc(y)===null&&od(this,y,a),Zs(this,"nodeGroupKey",ri,x,a,b,y),typeof x=="string"&&this.La(a,x))}else ja(a,x,y)}},Bo.prototype.copyNodeData=function(a){return a===null?null:(a=or.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||As(a,this.Je)===void 0||ja(a,this.Je,void 0),a)},Bo.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){Kg(this,a,x,!0);return}if(y===this.linkToKeyProperty){Kg(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){Vg(this,a,x,!0);return}if(y===this.linkToPortIdProperty){Vg(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=As(a,y);b!==x&&(ja(a,y,x),this.Fs(a,y,b,x))},Ee=Bo.prototype,Ee.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&&As(a,E)===y[E]||b&&E===this.linkKeyProperty||this.setDataProperty(a,E,y[E])}},Ee.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,z=y;if(ic(this,b,!0)===E){var ee=this.lf;ja(b,ee,z),Zs(this,"linkFromKey",ri,ee,b,E,z),typeof ee=="string"&&this.La(b,ee)}if(ic(this,b,!1)===E&&(ee=this.mf,ja(b,ee,z),Zs(this,"linkToKey",ri,ee,b,E,z),typeof ee=="string"&&this.La(b,ee)),ee=this.Ef(b),Array.isArray(ee))for(var re=ee.length,oe=this.je,le=0;le<re;le++)ee[le]===E&&(ee[le]=z,Zs(this,"linkLabelKeys",ci,oe,b,E,z,le,le))}},Ee.qv=function(a,y,x){if(this.lh(a)===y){var b=this.Je;ja(a,b,x),Zs(this,"nodeGroupKey",ri,b,a,y,x),typeof b=="string"&&this.La(a,b)}},Ee.Lv=function(){or.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)my(this,a[x])},Ee.fm=function(a){or.prototype.fm.call(this,a),a=this.wa(a);var y=Wp(this,a);if(y!==null){var x=ei();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)){if(this.lh(b)===a){var E=this.Je;Zs(this,"nodeGroupKey",ri,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}else if(ic(this,b,!0)===a&&(E=this.lf,Zs(this,"linkFromKey",ri,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),ic(this,b,!1)===a&&(E=this.mf,Zs(this,"linkToKey",ri,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),E=this.Ef(b),Array.isArray(E))for(var z=E.length,ee=this.je,re=0;re<z;re++)E[re]===a&&(Zs(this,"linkLabelKeys",ci,ee,b,a,a,re,re),x.push(b))}for(y=0;y<x.length;y++)ad(this,a,x[y]);yi(x)}},Ee.em=function(a){or.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&od(this,y,a)},Ee.qp=function(a){or.prototype.qp.call(this,a);var y=this.lh(a);ad(this,y,a)},Ee.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=As(a,y),y===void 0))return"";if(typeof y=="string")return y;Pt("getCategoryForLinkData found a non-string category for "+a+": "+y)},Bo.prototype.getLinkCategoryForData=function(a){return this.ps(a)},Bo.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var b=As(a,x);b===void 0&&(b=""),b!==y&&(ja(a,x,y),Zs(this,"linkCategory",ri,x,a,b,y),typeof x=="string"&&this.La(a,x))}else ja(a,x,y)}},Bo.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},Ee=Bo.prototype,Ee.lm=function(a,y){or.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function Ix(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))}Ee.Wj=function(){return!0},Ee.ri=function(){return!0},Ee.xs=function(){return!0},Ee.Xj=function(){return!0},tt.Object.defineProperties(Bo.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];Rt(E)||Pt("GraphLinksModel.linkDataArray must only contain Objects, not: "+E),_r(E)}if(this.md=a,this.linkKeyProperty!==""){for(b=new Mn,E=0;E<x;E++){var z=a[E],ee=this.Ac(z);ee===void 0||this.wb.I(ee)!==null?b.add(z):this.wb.add(ee,z)}for(b=b.iterator;b.next();)E=b.value,this.Bs(E),z=this.Ac(E),z!==void 0&&this.wb.add(z,E)}for(b=new An,E=0;E<x;E++)b.add(a[E]);for(this.$f=b,Zs(this,"linkDataArray",ri,"linkDataArray",this,y,a),y=0;y<x;y++)my(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],z=this.Ac(E);z===void 0&&(this.Bs(E),z=this.Ac(E)),z!==void 0&&this.wb.add(z,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"}}}),Bo.prototype.setCategoryForLinkData=Bo.prototype.lp,Bo.prototype.getCategoryForLinkData=Bo.prototype.ps,Bo.prototype.assignAllDataProperties=Bo.prototype.Do,Bo.prototype.setGroupKeyForNodeData=Bo.prototype.mp,Bo.prototype.getGroupKeyForNodeData=Bo.prototype.lh,Bo.prototype.isGroupForNodeData=Bo.prototype.Yu,Bo.prototype.copyLinkData=Bo.prototype.Jo,Bo.prototype.mergeLinkDataArray=Bo.prototype.Zz,Bo.prototype.removeLinkDataCollection=Bo.prototype.lA,Bo.prototype.removeLinkData=Bo.prototype.bm,Bo.prototype.addLinkDataCollection=Bo.prototype.Ey,Bo.prototype.addLinkData=Bo.prototype.fi,Bo.prototype.containsLinkData=Bo.prototype.Jc,Bo.prototype.makeLinkDataKeyUnique=Bo.prototype.Bs,Bo.prototype.findLinkDataForKey=Bo.prototype.jh,Bo.prototype.setKeyForLinkData=Bo.prototype.Ks,Bo.prototype.getKeyForLinkData=Bo.prototype.Ac,Bo.prototype.removeLabelKeyForLinkData=Bo.prototype.Qx,Bo.prototype.addLabelKeyForLinkData=Bo.prototype.Bu,Bo.prototype.setLabelKeysForLinkData=Bo.prototype.Ls,Bo.prototype.getLabelKeysForLinkData=Bo.prototype.Ef,Bo.prototype.setToPortIdForLinkData=Bo.prototype.Cv,Bo.prototype.getToPortIdForLinkData=Bo.prototype.Cx,Bo.prototype.setFromPortIdForLinkData=Bo.prototype.xv,Bo.prototype.getFromPortIdForLinkData=Bo.prototype.zx,Bo.prototype.setToKeyForLinkData=Bo.prototype.Bv,Bo.prototype.getToKeyForLinkData=Bo.prototype.Bx,Bo.prototype.setFromKeyForLinkData=Bo.prototype.wv,Bo.prototype.getFromKeyForLinkData=Bo.prototype.yx,Bo.prototype.clear=Bo.prototype.clear;var y0=Object.freeze([]);Bo.className="GraphLinksModel",Vc.GraphLinksModel=Bo,or.constructGraphLinksModel=or.constructGraphLinksModel=function(){return new Bo},or.initDiagramModel=gy=function(){return new Bo};function uu(a,y){or.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(vn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Lt(uu,or),uu.constructGraphLinksModel=or.constructGraphLinksModel,uu.prototype.cloneProtected=function(a){or.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},Ee=uu.prototype,Ee.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)+":"+Ki(E)}}return y},Ee.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},Ee.gp=function(a){or.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},Ee.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&Pt("applyIncrementalJson cannot change Model properties"),or.prototype.fp.call(this,a)},Ee.Vl=function(a){return a},Ee.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=As(a,y),y!==void 0)){if(_h(y))return y;Pt("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},Ee.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=As(a,x);b!==y&&(ad(this,b,a),ja(a,x,y),this.hc(y)===null&&od(this,y,a),Zs(this,"nodeParentKey",ri,x,a,b,y),typeof x=="string"&&this.La(a,x))}else ja(a,x,y)}},Ee.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=As(a,y),y===void 0)?"":typeof y=="string"?y:(Pt("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},uu.prototype.getLinkCategoryForData=function(a){return this.ss(a)},uu.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var b=As(a,x);b===void 0&&(b=""),b!==y&&(ja(a,x,y),Zs(this,"parentLinkCategory",ri,x,a,b,y),typeof x=="string"&&this.La(a,x))}else ja(a,x,y)}},uu.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},uu.prototype.copyNodeData=function(a){return a===null?null:(a=or.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||As(a,this.Ke)===void 0||ja(a,this.Ke,void 0),a)},uu.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=As(a,y);b!==x&&(ja(a,y,x),this.Fs(a,y,b,x))},Ee=uu.prototype,Ee.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)},Ee.qv=function(a,y,x){if(this.mh(a)===y){var b=this.Ke;ja(a,b,x),Zs(this,"nodeParentKey",ri,b,a,y,x),typeof b=="string"&&this.La(a,b)}},Ee.fm=function(a){or.prototype.fm.call(this,a),a=this.wa(a);var y=Wp(this,a);if(y!==null){var x=ei();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)&&this.mh(b)===a){var E=this.Ke;Zs(this,"nodeParentKey",ri,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}for(y=0;y<x.length;y++)ad(this,a,x[y]);yi(x)}},Ee.em=function(a){or.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&od(this,y,a)},Ee.qp=function(a){or.prototype.qp.call(this,a);var y=this.mh(a);ad(this,y,a)},Ee.lm=function(a,y){or.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},Ee.Tl=function(){return!0},Ee.xs=function(){return!0},tt.Object.defineProperties(uu.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"}}}),uu.prototype.setParentLinkCategoryForNodeData=uu.prototype.Ms,uu.prototype.getParentLinkCategoryForNodeData=uu.prototype.ss,uu.prototype.setParentKeyForNodeData=uu.prototype.qe,uu.prototype.getParentKeyForNodeData=uu.prototype.mh,uu.className="TreeModel",Vc.TreeModel=uu;function qa(a){Za.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=Gc,this.Ti=0,this.Zv=new Je,this.Jp=this.me=0,this.Xr=new Up,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=Gc,this.K=cu,this.nd=Yg,this.hd=ly,this.tf=6,this.Nn=E0,a&&Object.assign(this,a)}Lt(qa,Za),qa.prototype.cloneProtected=function(a){Za.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},qa.prototype.qb=function(a){a.classType===qa?a===C0||a===b0||a===w0||a===P0||a===Yg?this.sorting=a:a===Tf||a===Gg||a===cu||a===qh?this.direction=a:a===Lh||a===$h||a===Gc||a===Yc?this.arrangement=a:(a===sg||a===E0)&&(this.nodeDiameterFormula=a):Za.prototype.qb.call(this,a)},qa.prototype.createNetwork=function(){return new Ug(this)},qa.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 Mn;y.addAll(a.iterator),a=new Mn;var x=new Mn,b=this.sort(y),E,z,ee=this.Jp,re=this.arrangement,oe=this.nodeDiameterFormula,le=this.radius;(!isFinite(le)||0>=le)&&(le=NaN);var ue=this.aspectRatio;(!isFinite(ue)||0>=ue)&&(ue=1);var fe=this.startAngle;isFinite(fe)||(fe=0);var Se=this.sweepAngle;if((!isFinite(Se)||360<Se||1>Se)&&(Se=360),y=this.spacing,isFinite(y)||(y=NaN),re===Yc&&oe===sg?re=Gc:re===Yc&&oe!==sg&&(re=this.arrangement),(this.direction===Tf||this.direction===Gg)&&this.sorting!==Yg){for(oe=0;!(oe>=b.length)&&(a.add(b.M(oe)),!(oe+1>=b.length));oe+=2)x.add(b.M(oe+1));this.direction===Tf?(this.arrangement===Yc&&a.reverse(),b=new Mn,b.addAll(a),b.addAll(x)):(this.arrangement===Yc&&x.reverse(),b=new Mn,b.addAll(x),b.addAll(a))}oe=b.length;for(var be=z=E=0;be<b.length;be++){var Ae=fe+Se*z*(this.direction===cu?1:-1)/oe,Oe=b.M(be).diameter;isNaN(Oe)&&(Oe=ef(b.M(be),Ae)),360>Se&&(be===0||be===b.length-1)&&(Oe/=2),E+=Oe,z++}if(isNaN(le)||re===Yc){if(isNaN(y)&&(y=6),re!==Gc&&re!==Yc){for(z=-1/0,ee=0;ee<oe;ee++)be=b.M(ee),E=b.M(ee===oe-1?0:ee+1),isNaN(be.diameter)&&ef(be,0),isNaN(E.diameter)&&ef(E,0),z=Math.max(z,(be.diameter+E.diameter)/2);ee=z+y,re===Lh?le=(z+y)/(2*Math.PI/oe):le=S0(this,ee*(360<=Se?oe:oe-1),ue,fe*Math.PI/180,Se*Math.PI/180)}else le=S0(this,E+(360<=Se?oe:oe-1)*(re!==Yc?y:1.6*y),ue,fe*Math.PI/180,Se*Math.PI/180);z=le*ue}else if(z=le*ue,be=vy(this,le,z,fe*Math.PI/180,Se*Math.PI/180),isNaN(y))(re===Gc||re===Yc)&&(y=(be-E)/(360<=Se?oe:oe-1));else if(re===Gc||re===Yc)be=(be-E)/(360<=Se?oe:oe-1),be<y?(le=S0(this,E+y*(360<=Se?oe:oe-1),ue,fe*Math.PI/180,Se*Math.PI/180),z=le*ue):y=be;else{for(ee=-1/0,E=0;E<oe;E++)Ae=b.M(E),Oe=b.M(E===oe-1?0:E+1),isNaN(Ae.diameter)&&ef(Ae,0),isNaN(Oe.diameter)&&ef(Oe,0),ee=Math.max(ee,(Ae.diameter+Oe.diameter)/2);ee+=y,E=S0(this,ee*(360<=Se?oe:oe-1),ue,fe*Math.PI/180,Se*Math.PI/180),E>le?(le=E,z=le*ue):ee=be/(360<=Se?oe:oe-1)}if(this.kw=re,this.lc=le,this.Zm=ue,this.lw=fe,this.Wp=Se,this.Ti=y,this.me=z,this.Jp=ee,y=b,b=this.kw,re=this.lc,le=this.lw,ue=this.Wp,fe=this.Ti,Se=this.me,oe=this.Jp,this.direction!==Tf&&this.direction!==Gg||b!==Yc)if(this.direction===Tf||this.direction===Gg){switch(ee=0,b){case $h:ee=180*x0(this,re,Se,le,oe)/Math.PI;break;case Gc:oe=y=0,ee=a.first(),ee!==null&&(y=ef(ee,Math.PI/2)),ee=x.first(),ee!==null&&(oe=ef(ee,Math.PI/2)),ee=180*x0(this,re,Se,le,fe+(y+oe)/2)/Math.PI;break;case Lh:ee=ue/y.length}if(this.direction===Tf){switch(b){case $h:Yp(this,a,le,qh);break;case Gc:Gp(this,a,le,qh);break;case Lh:Vp(this,a,ue/2,le,qh)}switch(b){case $h:Yp(this,x,le+ee,cu);break;case Gc:Gp(this,x,le+ee,cu);break;case Lh:Vp(this,x,ue/2,le+ee,cu)}}else{switch(b){case $h:Yp(this,x,le,qh);break;case Gc:Gp(this,x,le,qh);break;case Lh:Vp(this,x,ue/2,le,qh)}switch(b){case $h:Yp(this,a,le+ee,cu);break;case Gc:Gp(this,a,le+ee,cu);break;case Lh:Vp(this,a,ue/2,le+ee,cu)}}}else switch(b){case $h:Yp(this,y,le,this.direction);break;case Gc:Gp(this,y,le,this.direction);break;case Lh:Vp(this,y,ue,le,this.direction);break;case Yc:Rx(this,y,ue,le,this.direction)}else Rx(this,y,ue,le-ue/2,cu)}this.updateParts(),this.network=null,this.isValidLayout=!0};function Vp(a,y,x,b,E){var z=a.Wp,ee=a.lc;a=a.me,b=b*Math.PI/180,x=x*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var le=b+(E===cu?oe*x/(360<=z?re:re-1):-(oe*x)/re),ue=y.M(oe),fe=ee*Math.tan(le)/a;fe=Math.sqrt((ee*ee+a*a*fe*fe)/(1+fe*fe)),ue.centerX=fe*Math.cos(le),ue.centerY=fe*Math.sin(le),ue.actualAngle=180*le/Math.PI}}function Gp(a,y,x,b){var E=a.lc,z=a.me,ee=a.Ti;x=x*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var le=y.M(oe),ue=y.M(oe===re-1?0:oe+1),fe=z*Math.sin(x);le.centerX=E*Math.cos(x),le.centerY=fe,le.actualAngle=180*x/Math.PI,isNaN(le.diameter)&&ef(le,0),isNaN(ue.diameter)&&ef(ue,0),le=x0(a,E,z,b===cu?x:-x,(le.diameter+ue.diameter)/2+ee),x+=b===cu?le:-le}}function Yp(a,y,x,b){var E=a.lc,z=a.me,ee=a.Jp;x=x*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var le=y.M(oe);le.centerX=E*Math.cos(x),le.centerY=z*Math.sin(x),le.actualAngle=180*x/Math.PI,le=x0(a,E,z,b===cu?x:-x,ee),x+=b===cu?le:-le}}function Rx(a,y,x,b,E){var z=a.Wp;if(a.mj=0,a.Xr=new Up,360>x){for(z=b+(E===cu?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,jx(a,y,x,b,E)}else zx(a,y,x,b,E);a.Xr.commit(y)}function zx(a,y,x,b,E){var z=a.lc,ee=a.Ti,re=a.Zm,oe=z*Math.cos(b*Math.PI/180),le=a.me*Math.sin(b*Math.PI/180),ue=y.Fa();if(ue.length===3)ue[0].centerX=z,ue[0].centerY=0,ue[1].centerX=ue[0].centerX-ue[0].width/2-ue[1].width/2-ee,ue[1].y=ue[0].y,ue[2].centerX=(ue[0].centerX+ue[1].centerX)/2,ue[2].y=ue[0].y-ue[2].height-ee;else if(ue.length===4)ue[0].centerX=z,ue[0].centerY=0,ue[2].centerX=-ue[0].centerX,ue[2].centerY=ue[0].centerY,ue[1].centerX=0,ue[1].y=Math.min(ue[0].y,ue[2].y)-ue[1].height-ee,ue[3].centerX=0,ue[3].y=Math.max(ue[0].y+ue[0].height+ee,ue[2].y+ue[2].height+ee);else{z=Je.alloc();for(var fe=0;fe<ue.length&&(ue[fe].centerX=oe,ue[fe].centerY=le,!(fe>=ue.length-1));fe++)Hx(a,oe,le,ue,fe,E,z)||Wx(a,oe,le,ue,fe,E,z),oe=z.x,le=z.y;if(Je.free(z),a.mj++,!(23<a.mj)){oe=ue[0].centerX,le=ue[0].centerY,z=ue[ue.length-1].centerX,fe=ue[ue.length-1].centerY;var Se=Math.abs(oe-z)-((ue[0].width+ue[ue.length-1].width)/2+ee),be=Math.abs(le-fe)-((ue[0].height+ue[ue.length-1].height)/2+ee);ee=0,1>Math.abs(be)?Math.abs(oe-z)<(ue[0].width+ue[ue.length-1].width)/2&&(ee=0):ee=0<be?be:1>Math.abs(Se)?0:Se,oe=Math.abs(z)>Math.abs(fe)?0<z!=le>fe:0<fe!=oe<z,(oe=E===cu?oe:!oe)&&(ee=-Math.abs(ee),ee=Math.min(ee,-ue[ue.length-1].width),ee=Math.min(ee,-ue[ue.length-1].height)),a.Xr.compare(ee,ue),1<Math.abs(ee)&&(a.lc=8>a.mj?a.lc-ee/(2*Math.PI):5>ue.length&&10<ee?a.lc/2:a.lc-(0<ee?1.7:-2.3),a.me=a.lc*re,zx(a,y,x,b,E))}}}function jx(a,y,x,b,E){for(var z=a.lc,ee=a.me,re=a.Zm,oe=z*Math.cos(b*Math.PI/180),le=ee*Math.sin(b*Math.PI/180),ue=Je.alloc(),fe=y.Fa(),Se=0;Se<fe.length&&(fe[Se].centerX=oe,fe[Se].centerY=le,!(Se>=fe.length-1));Se++)Hx(a,oe,le,fe,Se,E,ue)||Wx(a,oe,le,fe,Se,E,ue),oe=ue.x,le=ue.y;if(Je.free(ue),a.mj++,!(23<a.mj)){if(oe=Math.atan2(le,oe),oe=E===cu?a.gt-oe:oe-a.gt,oe=Math.abs(oe)<Math.abs(oe-2*Math.PI)?oe:oe-2*Math.PI,z=oe*(z+ee)/2,ee=a.Xr,Math.abs(z)<Math.abs(ee.Pl))for(ee.Pl=z,ee.mk=[],ee.tm=[],oe=0;oe<fe.length;oe++)ee.mk[oe]=fe[oe].bounds.x,ee.tm[oe]=fe[oe].bounds.y;1<Math.abs(z)&&(a.lc=8>a.mj?a.lc-z/(2*Math.PI):a.lc-(0<z?1.7:-2.3),a.me=a.lc*re,jx(a,y,x,b,E))}}function Hx(a,y,x,b,E,z,ee){var re=a.lc,oe=a.me,le=0;a=(b[E].width+b[E+1].width)/2+a.Ti;var ue=!1;if(0<=x!=(z===cu)){if(z=y+a,z>re){if(z=y-a,z<-re)return ee.x=z,ee.y=le,!1;ue=!0}}else if(z=y-a,z<-re){if(z=y+a,z>re)return ee.x=z,ee.y=le,!1;ue=!0}return le=Math.sqrt(1-Math.min(1,z*z/(re*re)))*oe,0>x!==ue&&(le=-le),Math.abs(x-le)>(b[E].height+b[E+1].height)/2?(ee.x=z,ee.y=le,!1):(ee.x=z,ee.y=le,!0)}function Wx(a,y,x,b,E,z,ee){var re=a.lc,oe=a.me,le=0;if(a=(b[E].height+b[E+1].height)/2+a.Ti,b=!1,0<=y!=(z===cu)){if(z=x-a,z<-oe){if(z=x+a,z>oe){ee.x=le,ee.y=z;return}b=!0}}else if(z=x+a,z>oe){if(z=x-a,z<-oe){ee.x=le,ee.y=z;return}b=!0}le=Math.sqrt(1-Math.min(1,z*z/(oe*oe)))*re,0>y!==b&&(le=-le),ee.x=le,ee.y=z}qa.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},qa.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 Je(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))},qa.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function vy(a,y,x,b,E){var z=a.ty;if(.001>Math.abs(a.Zm-1))return b!==void 0&&E!==void 0?E*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var ee=0,re=b!==void 0&&E!==void 0?E/(z+1):Math.PI/(2*(z+1)),oe=0,le=0;le<=z;le++){b!==void 0&&E!==void 0?oe=b+le*E/z:oe=le*Math.PI/(2*z);var ue=Math.sin(oe);ee+=Math.sqrt(1-a*a*ue*ue)*re}return b!==void 0&&E!==void 0?(y>x?y:x)*ee:4*(y>x?y:x)*ee}function S0(a,y,x,b,E){return y/(b!==void 0&&E!==void 0?vy(a,1,x,b,E):vy(a,1,x))}function x0(a,y,x,b,E){if(.001>Math.abs(a.Zm-1))return E/y;var z=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,ee=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(b+=Math.PI/2);for(var re=0;;re++){var oe=Math.sin(b+re*a);if(ee+=(y>x?y:x)*Math.sqrt(1-z*z*oe*oe)*a,ee>=E)return re*a}}qa.prototype.sort=function(a){switch(this.sorting){case w0:break;case P0:a.reverse();break;case C0:a.sort(this.comparer);break;case b0:a.sort(this.comparer),a.reverse();break;case Yg:return this.ak(Z1(a));default:Pt("Invalid sorting type.")}return a};function Z1(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new Mn;for(var b=0;b<a.length;b++){var E=-1,z=-1;if(b===0)for(var ee=0;ee<a.length;ee++){var re=a.M(ee).edgesCount;re>E&&(E=re,z=ee)}else for(ee=0;ee<a.length;ee++)re=y[ee],re>E&&(E=re,z=ee);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),ee=z.sourceEdges;ee.next();)E=a.indexOf(ee.value.fromVertex),0>E||0<=y[E]&&y[E]++;for(z=z.destinationEdges;z.next();)E=a.indexOf(z.value.toVertex),0>E||0<=y[E]&&y[E]++}return x}qa.prototype.ak=function(a){for(var y=[],x=0;x<a.length;x++){var b=a.M(x);y[x]=[];for(var E,z=b.destinationEdges;z.next();)E=a.indexOf(z.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(z=[],x=0;x<y.length;x++)z[x]=0;x=[];var ee=[],re=[];b=[],E=new Mn;for(var oe=0,le=0;le<y.length;le++){var ue=y[le].length;if(ue===1)b.push(le);else if(ue===0)E.add(a.M(le));else{if(oe===0)x.push(le);else{for(var fe=ue=1/0,Se=-1,be=[],Ae=0;Ae<x.length;Ae++)0>y[x[Ae]].indexOf(x[Ae===x.length-1?0:Ae+1])&&be.push(Ae===x.length-1?0:Ae+1);if(be.length===0)for(Ae=0;Ae<x.length;Ae++)be.push(Ae);for(Ae=0;Ae<be.length;Ae++){for(var Oe=be[Ae],rt=y[le],Ye=0,mt=0;mt<ee.length;mt++){var wt=z[ee[mt]],Mt=z[re[mt]];if(wt<Mt){var jt=wt;wt=Mt}else jt=Mt;if(jt<Oe&&Oe<=wt)for(Mt=0;Mt<rt.length;Mt++){var mn=rt[Mt];0>x.indexOf(mn)||jt<z[mn]&&z[mn]<wt||jt===z[mn]||wt===z[mn]||Ye++}else for(Mt=0;Mt<rt.length;Mt++)mn=rt[Mt],0>x.indexOf(mn)||jt<z[mn]&&z[mn]<wt&&jt!==z[mn]&&wt!==z[mn]&&Ye++}for(rt=Ye,mt=Ye=0;mt<y[le].length;mt++)jt=x.indexOf(y[le][mt]),0<=jt&&(jt=Math.abs(Oe-(jt>=Oe?jt+1:jt)),Ye+=jt<x.length+1-jt?jt:x.length+1-jt);for(mt=0;mt<ee.length;mt++)jt=z[ee[mt]],wt=z[re[mt]],jt>=Oe&&jt++,wt>=Oe&&wt++,jt>wt&&(Mt=wt,wt=jt,jt=Mt),wt-jt<(x.length+2)/2==(jt<Oe&&Oe<=wt)&&Ye++;(rt<ue||rt===ue&&Ye<fe)&&(ue=rt,fe=Ye,Se=Oe)}for(x.splice(Se,0,le),ue=0;ue<x.length;ue++)z[x[ue]]=ue;for(ue=0;ue<y[le].length;ue++)fe=y[le][ue],0<=x.indexOf(fe)&&(ee.push(le),re.push(fe))}oe++}}for(ee=x.length;;){for(z=!0,re=0;re<b.length;re++)if(oe=b[re],le=y[oe][0],ue=x.indexOf(le),0<=ue){for(Se=fe=0;Se<y[le].length;Se++)be=x.indexOf(y[le][Se]),0>be||be===ue||(Ae=be>ue?be-ue:ue-be,fe+=be<ue!=Ae>ee-Ae?1:-1);x.splice(0>fe?ue:ue+1,0,oe),b.splice(re,1),re--}else z=!1;if(z)break;x.push(b[0]),b.splice(0,1)}for(y=0;y<x.length;y++)E.add(a.M(x[y]));return E},tt.Object.defineProperties(qa.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!==Yc&&a!==Gc&&a!==$h&&a!==Lh||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==cu&&a!==qh&&a!==Tf&&a!==Gg||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==w0&&a!==P0&&a!==C0&&!b0&&a!==Yg||(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!==E0&&a!==sg||(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 Gc=new Xt(qa,"ConstantSpacing",0),$h=new Xt(qa,"ConstantDistance",1),Lh=new Xt(qa,"ConstantAngle",2),Yc=new Xt(qa,"Packed",3),cu=new Xt(qa,"Clockwise",4),qh=new Xt(qa,"Counterclockwise",5),Tf=new Xt(qa,"BidirectionalLeft",6),Gg=new Xt(qa,"BidirectionalRight",7),w0=new Xt(qa,"Forwards",8),P0=new Xt(qa,"Reverse",9),C0=new Xt(qa,"Ascending",10),b0=new Xt(qa,"Descending",11),Yg=new Xt(qa,"Optimized",12),E0=new Xt(qa,"Pythagorean",13),sg=new Xt(qa,"Circular",14);qa.className="CircularLayout",qa.ConstantSpacing=Gc,qa.ConstantDistance=$h,qa.ConstantAngle=Lh,qa.Packed=Yc,qa.Clockwise=cu,qa.Counterclockwise=qh,qa.BidirectionalLeft=Tf,qa.BidirectionalRight=Gg,qa.Forwards=w0,qa.Reverse=P0,qa.Ascending=C0,qa.Descending=b0,qa.Optimized=Yg,qa.Pythagorean=E0,qa.Circular=sg;function Up(){this.Pl=-1/0,this.tm=this.mk=null}Up.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},Up.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]}},Up.className="VertexArrangement";function Ug(a){Ea.call(this,a)}Lt(Ug,Ea),Ug.prototype.createVertex=function(){return new Xp(this)},Ug.prototype.createEdge=function(){return new A0(this)},Ug.className="CircularNetwork";function Xp(a){Xs.call(this,a),this.u=this.Si=NaN}Lt(Xp,Xs);function ef(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===Yc)if(x.nodeDiameterFormula===sg)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===sg?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}tt.Object.defineProperties(Xp.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)}}}),Xp.className="CircularVertex";function A0(a){Gu.call(this,a)}Lt(A0,Gu),A0.className="CircularEdge";function Bl(a){Za.call(this),this.ah=null,this.An=0,this.$d=new On(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)}Lt(Bl,Za),Bl.prototype.cloneProtected=function(a){Za.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},Bl.prototype.createNetwork=function(){return new lg(this)},Bl.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 z=E.value;z.Vd=z.vertexes.count,z.sh=1,z.Hj=null,z.We=null}Zx(this,0,a)}this.network=y;var ee=b=x.iterator;b=this.arrangementSpacing;var re=ee.count,oe=!0;z=E=0;for(var le=ei(),ue=0;ue<re+y.vertexes.count+2;ue++)le[ue]=null;re=0,ee.reset();for(var fe=Pn.alloc();ee.next();)if(ue=ee.value,this.computeBounds(ue,fe),oe)oe=!1,E=fe.x+fe.width/2,z=fe.y+fe.height/2,le[0]=new Je(fe.x+fe.width+b.width,fe.y),le[1]=new Je(fe.x,fe.y+fe.height+b.height),re=2;else{var Se=Kx(le,re,E,z,fe.width,fe.height,b),be=le[Se],Ae=new Je(be.x+fe.width+b.width,be.y),Oe=new Je(be.x,be.y+fe.height+b.height);for(Se+1<re&&le.splice(Se+1,0,null),le[Se]=Ae,le[Se+1]=Oe,re++,Se=be.x-fe.x,be=be.y-fe.y,ue=ue.vertexes.iterator;ue.next();)Ae=ue.value,Ae.centerX+=Se,Ae.centerY+=be}for(Pn.free(fe),ue=y.vertexes.iterator;ue.next();)ee=ue.value,Se=ee.bounds,2>re?(E=Se.x+Se.width/2,z=Se.y+Se.height/2,le[0]=new Je(Se.x+Se.width+b.width,Se.y),le[1]=new Je(Se.x,Se.y+Se.height+b.height),re=2):(oe=Kx(le,re,E,z,Se.width,Se.height,b),fe=le[oe],be=new Je(fe.x+Se.width+b.width,fe.y),Se=new Je(fe.x,fe.y+Se.height+b.height),oe+1<re&&le.splice(oe+1,0,null),le[oe]=be,le[oe+1]=Se,re++,ee.centerX=fe.x+ee.width/2,ee.centerY=fe.y+ee.height/2);for(yi(le),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)}}Gx(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},Bl.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},Bl.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 Zx(a,y,x){if(K1(a,y)){var b=a.Zf;a.Zf*=1+1/(y+1);var E=V1(a,y),z=Math.max(0,Math.max(Math.min(a.network.vertexes.count,x*(y+1)/11),10));for(a.maxIterations+=z,Zx(a,y+1,x),Gx(a,z),G1(a,E),y=E.vertexes.Fa(),y.sort(function(ee,re){return ee===null||re===null||ee===re?0:re.Vd-ee.Vd}),x=0;x<y.length;x++)Y1(a,y[x]);a.Zf=b}}function K1(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 V1(a,y){for(var x=a.network,b=new lg(a),E=0;E<a.ah.length;E++){var z=a.ah[E];if(1<z.Vd){b.dh(z);var ee=new Yx;ee.Rs=z.Vd,ee.Ss=z.width,ee.Qs=z.height,ee.Sv=z.focus.x,ee.Tv=z.focus.y,z.We===null&&(z.We=new Mn),z.We.add(ee),z.sv=z.We.count-1}else break}for(z=x.edges.iterator;z.next();){var re=z.value;E=re.fromVertex,ee=re.toVertex,E.network===b&&ee.network===b?b.Bo(re):E.network===b?(re=E.Hj,re===null&&(re=new Mn,E.Hj=re),re.add(ee),E.Vd--,E.sh+=ee.sh):ee.network===b&&(re=ee.Hj,re===null&&(re=new Mn,ee.Hj=re),re.add(E),ee.Vd--,ee.sh+=E.sh)}for(E=b.edges.iterator;E.next();)z=E.value,z.length*=Math.max(1,Zt.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=b.vertexes.iterator;y.next();){E=y.value;var oe=E.Hj;if(oe!==null&&0<oe.count&&(ee=E.We.M(E.We.count-1).Rs-E.Vd,!(0>=ee))){for(var le=re=0,ue=oe.count-ee;ue<oe.count;ue++){var fe=oe.M(ue),Se=null;for(z=fe.edges.iterator;z.next();){var be=z.value;if(be.Ax(fe)===E){Se=be;break}}Se!==null&&(le+=Se.length,re+=fe.width*fe.height)}z=E.centerX,oe=E.centerY,ue=E.width,fe=E.height,Se=E.focus,be=ue*fe,1>be&&(be=1),re=Zt.sqrt((re+be+le*le*4/(ee*ee))/be),ee=(re-1)*ue/2,re=(re-1)*fe/2,E.bounds=new Pn(z-Se.x-ee,oe-Se.y-re,ue+2*ee,fe+2*re),E.focus=new Je(Se.x+ee,Se.y+re)}}return a.network=b,x}function G1(a,y){for(var x=a.network.vertexes.iterator;x.next();){var b=x.value;if(b.network=y,b.We!==null){var E=b.We.M(b.sv);b.Vd=E.Rs;var z=E.Sv,ee=E.Tv;b.bounds=new Pn(b.centerX-z,b.centerY-ee,E.Ss,E.Qs),b.focus=new Je(z,ee),b.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function Y1(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var b=y.centerX,E=y.centerY,z=y.width,ee=y.height;y.We!==null&&0<y.We.count&&(ee=y.We.M(0),z=ee.Ss,ee=ee.Qs),z=Zt.sqrt(z*z+ee*ee)/2;for(var re=!1,oe=ee=0,le=0,ue=y.vertexes.iterator;ue.next();){var fe=ue.value;1>=fe.Vd?oe++:(re=!0,le++,ee+=Math.atan2(y.centerY-fe.centerY,y.centerX-fe.centerX))}if(oe!==0){for(0<le&&(ee/=le),le=y=0,y=re?2*Math.PI/(oe+1):2*Math.PI/oe,oe%2===0&&(le=y/2),1<x.count&&x.sort(function(be,Ae){return be===null||Ae===null||be===Ae?0:Ae.width*Ae.height-be.width*be.height}),re=oe%2===0?0:1,x=x.iterator;x.next();)if(oe=x.value,!(1<oe.Vd||a.isFixed(oe))){for(ue=null,fe=oe.edges.iterator;fe.next();){ue=fe.value;break}fe=oe.width;var Se=oe.height;fe=Zt.sqrt(fe*fe+Se*Se)/2,ue=z+ue.length+fe,fe=ee+(y*(re/2>>1)+le)*(re%2===0?1:-1),oe.centerX=b+ue*Math.cos(fe),oe.centerY=E+ue*Math.sin(fe),re++}}}}function Kx(a,y,x,b,E,z,ee){var re=9e19,oe=-1,le=0;e:for(;le<y;le++){var ue=a[le],fe=ue.x-x,Se=ue.y-b;if(fe=fe*fe+Se*Se,fe<re){for(Se=le-1;0<=Se;Se--)if(a[Se].y>ue.y&&a[Se].x-ue.x<E+ee.width)continue e;for(Se=le+1;Se<y;Se++)if(a[Se].x>ue.x&&a[Se].y-ue.y<z+ee.height)continue e;oe=le,re=fe}}return oe}Bl.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Bl.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 z=E.value;if(z.toVertex===a){x=z;break}}if(x===null){for(E=b.sourceEdges;E.next();)if(z=E.value,z.fromVertex===a){x=z;break}}x===null&&(x=this.network.Zj(a,b,null)),x.length=this.defaultCommentSpringLength}}};function Vx(a,y){var x=a.bounds,b=x.x;a=x.y;var E=x.width;x=x.height;var z=y.bounds,ee=z.x;y=z.y;var re=z.width;return z=z.height,b+E<ee?a>y+z?(x=b+E-ee,a=a-y-z,Zt.sqrt(x*x+a*a)):a+x<y?(b=b+E-ee,a=a+x-y,Zt.sqrt(b*b+a*a)):ee-(b+E):b>ee+re?a>y+z?(x=b-ee-re,a=a-y-z,Zt.sqrt(x*x+a*a)):a+x<y?(b=b-ee-re,a=a+x-y,Zt.sqrt(b*b+a*a)):b-(ee+re):a>y+z?a-(y+z):a+x<y?y-(a+x):.1}function Gx(a,y){for(a.ah=null,y=a.An+y;a.An<y&&(a.An++,U1(a)););a.ah=null}function U1(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,z=x=x.centerY,ee=1;ee<y.length;ee++){var re=y[ee];re.forceX=0,re.forceY=0;var oe=re.centerX;re=re.centerY,b=Math.min(b,oe),E=Math.max(E,oe),x=Math.min(x,re),z=Math.max(z,re)}(E=E-b>z-x)?y.sort(function(Oe,rt){return Oe===null||rt===null||Oe===rt?0:Oe.centerX-rt.centerX}):y.sort(function(Oe,rt){return Oe===null||rt===null||Oe===rt?0:Oe.centerY-rt.centerY}),x=a.Zf;var le=b=re=0;for(z=0;z<y.length;z++){ee=y[z],b=ee.bounds,re=ee.focus,oe=b.x+re.x;var ue=b.y+re.y;b=ee.charge*a.electricalFieldX(oe,ue),le=ee.charge*a.electricalFieldY(oe,ue),b+=ee.mass*a.gravitationalFieldX(oe,ue),le+=ee.mass*a.gravitationalFieldY(oe,ue),ee.forceX+=b,ee.forceY+=le;for(var fe=z+1;fe<y.length;fe++){var Se=y[fe];if(Se!==ee){b=Se.bounds,re=Se.focus,le=b.x+re.x;var be=b.y+re.y;if(oe-le>x||le-oe>x){if(E)break}else if(ue-be>x||be-ue>x){if(!E)break}else{var Ae=Vx(ee,Se);1>Ae?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new L0),Ae=b.random(),re=b.random(),oe>le?(b=Math.abs(Se.bounds.right-ee.bounds.x),b=(1+b)*Ae):oe<le?(b=Math.abs(Se.bounds.x-ee.bounds.right),b=-(1+b)*Ae):(b=Math.max(Se.width,ee.width),b=(1+b)*Ae-b/2),ue>be?(le=Math.abs(Se.bounds.bottom-ee.bounds.y),le=(1+le)*re):oe<le?(le=Math.abs(Se.bounds.y-ee.bounds.bottom),le=-(1+le)*re):(le=Math.max(Se.height,ee.height),le=(1+le)*re-le/2)):(re=-(ee.charge*Se.charge)/(Ae*Ae),b=(le-oe)/Ae*re,le=(be-ue)/Ae*re),ee.forceX+=b,ee.forceY+=le,Se.forceX-=b,Se.forceY-=le}}}}for(E=a.network.edges.iterator;E.next();)re=E.value,x=re.fromVertex,z=re.toVertex,ee=x.bounds,oe=x.focus,b=ee.x+oe.x,ee=ee.y+oe.y,ue=z.bounds,fe=z.focus,oe=ue.x+fe.x,ue=ue.y+fe.y,fe=Vx(x,z),1>fe?(fe=a.randomNumberGenerator,fe===null&&(a.randomNumberGenerator=fe=new L0),re=fe.random(),fe=fe.random(),b=(b>oe?1:-1)*(1+(z.width>x.width?z.width:x.width))*re,le=(ee>ue?1:-1)*(1+(z.height>x.height?z.height:x.height))*fe):(re=re.stiffness*(fe-re.length),b=(oe-b)/fe*re,le=(ue-ee)/fe*re),x.forceX+=b,x.forceY+=le,z.forceX-=b,z.forceY-=le;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}Bl.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},Bl.prototype.moveFixedVertex=function(){},Bl.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},Bl.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=Xo,y.toSpot=Xo)}},Bl.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=Pn.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,Pn.free(x)}x=Pn.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()}Pn.free(x)},Bl.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Bl.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},Bl.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},Bl.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},Bl.prototype.electricalFieldX=function(){return 0},Bl.prototype.electricalFieldY=function(){return 0},Bl.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},Bl.prototype.gravitationalFieldX=function(){return 0},Bl.prototype.gravitationalFieldY=function(){return 0},Bl.prototype.isFixed=function(a){return a.isFixed},tt.Object.defineProperties(Bl.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"&&Pt('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())}}}),Bl.className="ForceDirectedLayout";function Yx(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}Yx.className="ForceDirectedSubnet";function lg(a){Ea.call(this,a)}Lt(lg,Ea),lg.prototype.createVertex=function(){return new Jp(this)},lg.prototype.createEdge=function(){return new Qp(this)},lg.className="ForceDirectedNetwork";function Jp(a){Xs.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}Lt(Jp,Xs),tt.Object.defineProperties(Jp.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)}}}),Jp.className="ForceDirectedVertex";function Qp(a){Gu.call(this,a),this.j=this.o=NaN}Lt(Qp,Gu),tt.Object.defineProperties(Qp.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)}}}),Qp.className="ForceDirectedEdge";function L0(){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()}L0.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},L0.className="RandomNumberGenerator";function oa(a){Za.call(this),this.kc=this.ie=25,this.K=0,this.Dk=D0,this.Zk=B0,this.Qk=T0,this.bj=4,this.rk=O0,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 Je,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}Lt(oa,Za),oa.prototype.cloneProtected=function(a){Za.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},oa.prototype.qb=function(a){a.classType===oa?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:Pt("Unknown enum value: "+a):Za.prototype.qb.call(this,a)},oa.prototype.createNetwork=function(){return new Jg(this)},oa.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!==$p&&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===$p&&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,z=b.toVertex;if(!(b.valid||(E.node===null&&E.data===null||z.node===null&&z.data===null)&&E.layer===z.layer)){var ee=0,re=0,oe=0,le=0;if(b.link!==null){if(re=b.link,re===null)continue;var ue=E.node;if(ee=z.node,ue===null||ee===null)continue;var fe=re.fromNode;oe=re.toNode;for(var Se=re.fromPort;Se!==null&&!Se.Ed();)Se=Se.panel;for(re=re.toPort;re!==null&&!re.Ed();)re=re.panel;if(b.rev){le=fe;var be=Se;fe=oe,Se=re,oe=le,re=be}var Ae=E.focus;le=z.focus;var Oe=b.rev?z.bounds:E.bounds;be=Je.alloc(),ue!==fe?Oe.w()&&fe.isVisible()?fe.actualBounds.w()?(Ph(fe,Se,xo,be),be.x+=fe.actualBounds.x-Oe.x,be.y+=fe.actualBounds.y-Oe.y):(Ph(fe,Se,xo,be),be.w()||be.assign(Ae)):be.assign(Ae):Oe.w()?(Ph(fe,Se,xo,be),be.w()||be.assign(Ae)):be.assign(Ae),fe=b.rev?E.bounds:z.bounds,ue=Je.alloc(),ee!==oe?fe.w()&&oe.isVisible()?oe.actualBounds.w()?(Ph(oe,re,xo,ue),ue.x+=oe.actualBounds.x-fe.x,ue.y+=oe.actualBounds.y-fe.y):(Ph(oe,re,xo,ue),ue.w()||ue.assign(le)):ue.assign(le):fe.w()?(Ph(oe,re,xo,ue),ue.w()||ue.assign(le)):ue.assign(le),this.K===90||this.K===270?(ee=Math.round((be.x-Ae.x)/this.kc),oe=be.x,re=Math.round((ue.x-le.x)/this.kc),le=ue.x):(ee=Math.round((be.y-Ae.y)/this.kc),oe=be.y,re=Math.round((ue.y-le.y)/this.kc),le=ue.y),Je.free(be),Je.free(ue),b.portFromColOffset=ee,b.portFromPos=oe,b.portToColOffset=re,b.portToPos=le}else b.portFromColOffset=0,b.portFromPos=0,b.portToColOffset=0,b.portToPos=0;if(be=E.layer,ue=z.layer,fe=0,Oe=b.link,Oe!==null){var rt=Oe.fromPort,Ye=Oe.toPort;if(rt!==null&&Ye!==null){var mt=Oe.fromNode;if(Se=Oe.toNode,mt!==null&&Se!==null){var wt=F0(this,!0),Mt=F0(this,!1),jt=this.setsPortSpots?wt:Oe.computeSpot(!0,rt);Ae=this.setsPortSpots?Mt:Oe.computeSpot(!1,Ye);var mn=Oe.isOrthogonal;jt.$c()&&jt.Hf(Mt)&&Ae.$c()&&Ae.Hf(wt)?fe=0:(wt=Oe.getLinkPoint(mt,rt,jt,!0,mn,Se,Ye,Je.alloc()),Mt=Oe.getLinkDirection(mt,rt,wt,jt,!0,mn,Se,Ye),Je.free(wt),jt.ys()||Mt!==t1(this,b,!0)?this.setsPortSpots&&mt!==null&&mt.ports.count===1&&b.rev&&(fe+=1):fe+=1,jt=Oe.getLinkPoint(Se,Ye,Ae,!1,mn,mt,rt,Je.alloc()),Oe=Oe.getLinkDirection(Se,Ye,jt,Ae,!1,mn,mt,rt),Je.free(jt),Ae.ys()||Oe!==t1(this,b,!1)?this.setsPortSpots&&Se!==null&&Se.ports.count===1&&b.rev&&(fe+=2):fe+=2)}}}if(Se=fe,fe=Se===1||Se===3,(Se=Se===2||Se===3)&&(Ae=a.createVertex(),Ae.node=null,Ae.Dj=1,Ae.layer=be,Ae.near=E,a.dh(Ae),E=a.Zj(E,Ae,b.link),E.valid=!1,E.rev=b.rev,E.portFromColOffset=ee,E.portToColOffset=0,E.portFromPos=oe,E.portToPos=0,E=Ae),Oe=1,fe&&Oe--,be-ue>Oe&&0<be){for(b.valid=!1,Ae=a.createVertex(),Ae.node=null,Ae.Dj=2,Ae.layer=be-1,a.dh(Ae),E=a.Zj(E,Ae,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=Se?0:ee,E.portToColOffset=0,E.portFromPos=Se?0:oe,E.portToPos=0,E=Ae,be--;be-ue>Oe&&0<be;)Ae=a.createVertex(),Ae.node=null,Ae.Dj=3,Ae.layer=be-1,a.dh(Ae),E=a.Zj(E,Ae,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=0,E.portFromPos=0,E.portToPos=0,E=Ae,be--;E=a.Zj(Ae,z,b.link),E.valid=!fe,fe&&(Ae.near=z),E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=re,E.portFromPos=0,E.portToPos=le}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=tf(this,a),x=0,b=this.tc[a],z=0;z<b;z++)E=y[z],x+=this.nodeMinColumnSpace(E,!0),E.column=x,x+=1,x+=this.nodeMinColumnSpace(E,!1);this.Ra=Math.max(this.Ra,x-1),nf(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},oa.prototype.linkMinLength=function(){return 1};function yy(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}oa.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},oa.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 Eu(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 mc(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 Ux(a,y,x){var b=tf(a,y),E=a.tc[y];(a.Jn===null||a.Jn.length<E*E)&&(a.Jn=[]);for(var z=a.Jn,ee=0;ee<E;ee++){var re=0,oe=b[ee],le=oe.near;if(le!==null&&le.layer===oe.layer)if(oe=le.index,oe>ee)for(var ue=ee+1;ue<oe;ue++){var fe=b[ue];fe.near===le&&fe.Dj===le.Dj||re++}else for(ue=ee-1;ue>oe;ue--)fe=b[ue],fe.near===le&&fe.Dj===le.Dj||re++;var Se;if(0<=x)for(oe=b[ee].sourceEdgesArrayAccess,le=0;le<oe.length;le++){var be=oe[le];if(be.valid&&be.fromVertex.layer!==y)for(fe=be.fromVertex.index,ue=be.portToPos,be=be.portFromPos,Se=le+1;Se<oe.length;Se++){var Ae=oe[Se];if(Ae.valid&&Ae.fromVertex.layer!==y){var Oe=Ae.fromVertex.index,rt=Ae.portToPos;Ae=Ae.portFromPos,ue<rt&&(fe>Oe||fe===Oe&&be>Ae)&&re++,rt<ue&&(Oe>fe||Oe===fe&&Ae>be)&&re++}}}if(0>=x){for(oe=b[ee].destinationEdgesArrayAccess,le=0;le<oe.length;le++)if(be=oe[le],be.valid&&be.toVertex.layer!==y)for(fe=be.toVertex.index,ue=be.portToPos,be=be.portFromPos,Se=le+1;Se<oe.length;Se++)Ae=oe[Se],Ae.valid&&Ae.toVertex.layer!==y&&(Oe=Ae.toVertex.index,rt=Ae.portToPos,Ae=Ae.portFromPos,be<Ae&&(fe>Oe||fe===Oe&&ue>rt)&&re++,Ae<be&&(Oe>fe||Oe===fe&&rt>ue)&&re++)}for(z[ee*E+ee]=re,oe=ee+1;oe<E;oe++){var Ye=0,mt=0;if(0<=x){re=b[ee].sourceEdgesArrayAccess;var wt=b[oe].sourceEdgesArrayAccess;for(le=0;le<re.length;le++)if(be=re[le],be.valid&&be.fromVertex.layer!==y)for(fe=be.fromVertex.index,be=be.portFromPos,Se=0;Se<wt.length;Se++)Ae=wt[Se],Ae.valid&&Ae.fromVertex.layer!==y&&(Oe=Ae.fromVertex.index,Ae=Ae.portFromPos,(fe<Oe||fe===Oe&&be<Ae)&&mt++,(Oe<fe||Oe===fe&&Ae<be)&&Ye++)}if(0>=x){for(re=b[ee].destinationEdgesArrayAccess,wt=b[oe].destinationEdgesArrayAccess,le=0;le<re.length;le++)if(be=re[le],be.valid&&be.toVertex.layer!==y)for(fe=be.toVertex.index,ue=be.portToPos,Se=0;Se<wt.length;Se++)Ae=wt[Se],Ae.valid&&Ae.toVertex.layer!==y&&(Oe=Ae.toVertex.index,rt=Ae.portToPos,(fe<Oe||fe===Oe&&ue<rt)&&mt++,(Oe<fe||Oe===fe&&rt<ue)&&Ye++)}z[ee*E+oe]=Ye,z[oe*E+ee]=mt}}return nf(a,y,b),z}oa.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=Ux(this,y,1),b=this.tc[y],E=0;E<b;E++)for(var z=E;z<b;z++)a+=x[E*b+z];return a};function M0(a){for(var y=0,x=0;x<=a.Ia;x++){for(var b=a,E=x,z=tf(b,E),ee=b.tc[E],re=0,oe=0;oe<ee;oe++){var le=z[oe].destinationEdgesArrayAccess;if(le!==null)for(var ue=0;ue<le.length;ue++){var fe=le[ue];if(fe.valid&&fe.toVertex.layer!==E){var Se=fe.fromVertex.column+fe.portFromColOffset,be=fe.toVertex.column+fe.portToColOffset;re+=(Math.abs(Se-be)+1)*yy(fe)}}}nf(b,E,z),y+=re}return y}oa.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 Sy(a,y,x){for(var b=tf(a,y),E=a.tc[y],z=[],ee=0;ee<E;ee++){var re=b[ee],oe=null;0>=x&&(oe=re.sourceEdgesArrayAccess);var le=null;0<=x&&(le=re.destinationEdgesArrayAccess);var ue=0,fe=0,Se=re.near;if(Se!==null&&Se.layer===re.layer&&(ue+=Se.column-1,fe++),oe!==null)for(Se=0;Se<oe.length;Se++){re=oe[Se];var be=re.fromVertex;re.valid&&!re.rev&&be.layer!==y&&(ue+=be.column,fe++)}if(le!==null)for(oe=0;oe<le.length;oe++)re=le[oe],Se=re.toVertex,re.valid&&!re.rev&&Se.layer!==y&&(ue+=Se.column,fe++);z[ee]=fe===0?-1:ue/fe}return nf(a,y,b),z}function Xx(a,y,x){for(var b=tf(a,y),E=a.tc[y],z=[],ee=0;ee<E;ee++){var re=b[ee],oe=null;0>=x&&(oe=re.sourceEdgesArrayAccess);var le=null;0<=x&&(le=re.destinationEdgesArrayAccess);var ue=0,fe=[],Se=re.near;if(Se!==null&&Se.layer===re.layer&&(fe[ue]=Se.column-1,ue++),re=void 0,oe!==null)for(Se=0;Se<oe.length;Se++){re=oe[Se];var be=re.fromVertex;re.valid&&!re.rev&&be.layer!==y&&(fe[ue]=be.column+re.portFromColOffset,ue++)}if(le!==null)for(oe=0;oe<le.length;oe++)re=le[oe],Se=re.toVertex,re.valid&&!re.rev&&Se.layer!==y&&(fe[ue]=Se.column+re.portToColOffset,ue++);ue===0?z[ee]=-1:(fe.sort(function(Ae,Oe){return Ae-Oe}),le=ue>>1,z[ee]=ue&1?fe[le]:fe[le-1]+fe[le]>>1)}return nf(a,y,b),z}function _p(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var ee=y.destinationEdges;ee.next();){var re=ee.value,oe=re.toVertex,le=y.layer-oe.layer;re=a.linkMinLength(re),le===re&&_p(a,oe,x,b,E,z)}if(z)for(ee=y.sourceEdges;ee.next();)re=ee.value,oe=re.fromVertex,le=oe.layer-y.layer,re=a.linkMinLength(re),le===re&&_p(a,oe,x,b,E,z)}}function xy(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var ee=y.destinationEdges;ee.next();)xy(a,ee.value.toVertex,x,b,E,z);if(z)for(y=y.sourceEdges;y.next();)xy(a,y.value.fromVertex,x,b,E,z)}}oa.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case Cy: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(;X1(a)!==null;){for(E=Jx(a);E!==null;)b[x]=E,x--,E.valid=!1,E=Jx(a);for(E=Qx(a);E!==null;)b[y]=E,y++,E.valid=!1,E=Qx(a);E=null;for(var z=0,ee=this.network.vertexes.iterator;ee.next();){var re=ee.value;if(re.valid){for(var oe=0,le=re.destinationEdges;le.next();)le.value.toVertex.valid&&oe++;le=0;for(var ue=re.sourceEdges;ue.next();)ue.value.fromVertex.valid&&le++;(E===null||z<oe-le)&&(E=re,z=oe-le)}}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 D0: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&&wy(this,y);for(b.reset();b.next();)y=b.value,y.Ll===-1&&wy(this,y);for(a.reset();a.next();)b=a.value,b.forest||(y=b.fromVertex,x=y.finish,E=b.toVertex,z=E.finish,E.Ll<y.Ll&&x<z&&(this.network.gm(b),b.rev=!0));break;case $p: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(z=0;z<E.length;z++)E[z].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 X1(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function Jx(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 Qx(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 wy(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,wy(a,E))}y.finish=a.Kn,a.Kn++}oa.prototype.assignLayers=function(){switch(this.Zk){case by:_x(this);break;case Ey:for(var a,y=this.network.vertexes.iterator;y.next();)a=qx(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 B0:for(_x(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&e1(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 _x(a){for(var y=a.network.vertexes.iterator;y.next();){var x=$x(a,y.value);a.Ia=Math.max(x,a.Ia)}}function $x(a,y){var x=0;if(y.layer===-1){for(var b=y.destinationEdges;b.next();){var E=b.value,z=E.toVertex;E=a.linkMinLength(E),x=Math.max(x,$x(a,z)+E)}y.layer=x}else x=y.layer;return x}function qx(a,y){var x=0;if(y.layer===-1){for(var b=y.sourceEdges;b.next();){var E=b.value,z=E.fromVertex;E=a.linkMinLength(E),x=Math.max(x,qx(a,z)+E)}y.layer=x}else x=y.layer;return x}function e1(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)e1(a,x.value.toVertex);for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(var b=y.sourceEdgesArrayAccess,E=b.length,z=0;z<E;z++){var ee=b[z],re=ee.fromVertex,oe=ee.toVertex;ee=a.linkMinLength(ee),re.layer-oe.layer>ee&&_p(a,re,0,-1,!0,!1)}for(_p(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,b=1/0,re=0,oe=null,ee=a.network.vertexes.iterator;ee.next();){var le=ee.value;if(le.component===1){var ue=0,fe=!1,Se=le.sourceEdgesArrayAccess;E=Se.length;for(var be=0;be<E;be++){var Ae=Se[be],Oe=Ae.fromVertex;ue+=1,Oe.component!==1&&(z+=1,Oe=Oe.layer-le.layer,Ae=a.linkMinLength(Ae),b=Math.min(b,Oe-Ae))}for(Se=le.destinationEdgesArrayAccess,E=Se.length,be=0;be<E;be++)Ae=Se[be].toVertex,--ue,Ae.component!==1?--z:fe=!0;(oe===null||ue<re)&&!fe&&(oe=le,re=ue)}}if(0<z){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer+=b);y.component=0}else oe.component=0}for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(_p(a,y,1,-1,!0,!1);y.component!==0;){for(b=0,E=1/0,z=0,re=null,oe=a.network.vertexes.iterator;oe.next();)if(ee=oe.value,ee.component===1){for(le=0,ue=!1,Se=ee.sourceEdgesArrayAccess,fe=Se.length,be=0;be<fe;be++)Ae=Se[be].fromVertex,le+=1,Ae.component!==1?b+=1:ue=!0;for(Se=ee.destinationEdgesArrayAccess,fe=Se.length,be=0;be<fe;be++)Ae=Se[be],Oe=Ae.toVertex,--le,Oe.component!==1&&(--b,Oe=ee.layer-Oe.layer,Ae=a.linkMinLength(Ae),E=Math.min(E,Oe-Ae));(re===null||le>z)&&!ue&&(re=ee,z=le)}if(0>b){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer-=E);y.component=0}else re.component=0}}}function t1(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}oa.prototype.initializeIndices=function(){switch(this.Qk){default:case Ly: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 T0: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&&n1(this,x);break;case Ay: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&&i1(this,x)}};function n1(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],z=y[b+1];E.portFromColOffset>z.portFromColOffset&&(x=!0,y[b]=z,y[b+1]=E)}}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.toVertex,b.index===-1&&n1(a,b))}function i1(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],z=y[x+1];E.portToColOffset>z.portToColOffset&&(b=!0,y[x]=z,y[x+1]=E)}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.fromVertex,b.index===-1&&i1(a,b))}oa.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=Eu(this),x,b;for(x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)k0(this,b,1),Fc(this,b,1);var E=this.countCrossings();for(E<a&&(a=E,y=Eu(this)),b=this.Ia;0<=b;b--)k0(this,b,-1),Fc(this,b,-1);E=this.countCrossings(),E<a&&(a=E,y=Eu(this))}for(mc(this,y),x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)k0(this,b,0),Fc(this,b,0);for(E=this.countCrossings(),E<a&&(a=E,y=Eu(this)),b=this.Ia;0<=b;b--)k0(this,b,0),Fc(this,b,0);E=this.countCrossings(),E<a&&(a=E,y=Eu(this))}mc(this,y);var z,ee,re;switch(this.rk){case My:break;case ky:for(re=a+1;(b=this.countCrossings())<re;)for(re=b,x=this.Ia;0<=x;x--)for(ee=0;ee<=x;ee++){for(z=!0;z;)for(z=!1,b=x;b>=ee;b--)z=Fc(this,b,-1)||z;for(E=this.countCrossings(),E>=a?mc(this,y):(a=E,y=Eu(this)),z=!0;z;)for(z=!1,b=x;b>=ee;b--)z=Fc(this,b,1)||z;for(E=this.countCrossings(),E>=a?mc(this,y):(a=E,y=Eu(this)),z=!0;z;)for(z=!1,b=ee;b<=x;b++)z=Fc(this,b,1)||z;for(E>=a?mc(this,y):(a=E,y=Eu(this)),z=!0;z;)for(z=!1,b=ee;b<=x;b++)z=Fc(this,b,-1)||z;for(E>=a?mc(this,y):(a=E,y=Eu(this)),z=!0;z;)for(z=!1,b=x;b>=ee;b--)z=Fc(this,b,0)||z;for(E>=a?mc(this,y):(a=E,y=Eu(this)),z=!0;z;)for(z=!1,b=ee;b<=x;b++)z=Fc(this,b,0)||z;E>=a?mc(this,y):(a=E,y=Eu(this))}break;default:case O0:for(x=this.Ia,ee=0,re=a+1;(b=this.countCrossings())<re;){for(re=b,z=!0;z;)for(z=!1,b=x;b>=ee;b--)z=Fc(this,b,-1)||z;for(E=this.countCrossings(),E>=a?mc(this,y):(a=E,y=Eu(this)),z=!0;z;)for(z=!1,b=x;b>=ee;b--)z=Fc(this,b,1)||z;for(E=this.countCrossings(),E>=a?mc(this,y):(a=E,y=Eu(this)),z=!0;z;)for(z=!1,b=ee;b<=x;b++)z=Fc(this,b,1)||z;for(E>=a?mc(this,y):(a=E,y=Eu(this)),z=!0;z;)for(z=!1,b=ee;b<=x;b++)z=Fc(this,b,-1)||z;for(E>=a?mc(this,y):(a=E,y=Eu(this)),z=!0;z;)for(z=!1,b=x;b>=ee;b--)z=Fc(this,b,0)||z;for(E>=a?mc(this,y):(a=E,y=Eu(this)),z=!0;z;)for(z=!1,b=ee;b<=x;b++)z=Fc(this,b,0)||z;E>=a?mc(this,y):(a=E,y=Eu(this))}}mc(this,y)};function k0(a,y,x){var b=tf(a,y),E=a.tc[y],z=Xx(a,y,x),ee=Sy(a,y,x);for(x=0;x<E;x++)ee[x]===-1&&(ee[x]=b[x].column),z[x]===-1&&(z[x]=b[x].column);for(var re=!0,oe;re;)for(re=!1,x=0;x<E-1;x++)(z[x+1]<z[x]||z[x+1]===z[x]&&ee[x+1]<ee[x])&&(re=!0,oe=z[x],z[x]=z[x+1],z[x+1]=oe,oe=ee[x],ee[x]=ee[x+1],ee[x+1]=oe,oe=b[x],b[x]=b[x+1],b[x+1]=oe);for(x=z=0;x<E;x++)oe=b[x],oe.index=x,z+=a.nodeMinColumnSpace(oe,!0),oe.column=z,z+=1,z+=a.nodeMinColumnSpace(oe,!1);nf(a,y,b)}function Fc(a,y,x){var b=tf(a,y),E=a.tc[y];x=Ux(a,y,x);var z,ee=[];for(z=0;z<E;z++)ee[z]=-1;var re=[];for(z=0;z<E;z++)re[z]=-1;for(var oe=!1,le=!0;le;)for(le=!1,z=0;z<E-1;z++){var ue=x[b[z].index*E+b[z+1].index],fe=x[b[z+1].index*E+b[z].index],Se=0,be=0,Ae=b[z].column,Oe=b[z+1].column,rt=a.nodeMinColumnSpace(b[z],!0),Ye=a.nodeMinColumnSpace(b[z],!1),mt=a.nodeMinColumnSpace(b[z+1],!0),wt=a.nodeMinColumnSpace(b[z+1],!1);rt=Ae-rt+mt,Ye=Oe-Ye+wt;var Mt=b[z].sourceEdges.iterator;for(Mt.reset();Mt.next();)if(mt=Mt.value,wt=mt.fromVertex,mt.valid&&wt.layer===y){for(mt=0;b[mt]!==wt;)mt++;mt<z&&(Se+=2*(z-mt),be+=2*(z+1-mt)),mt===z+1&&(Se+=1),mt>z+1&&(Se+=4*(mt-z),be+=4*(mt-(z+1)))}for(Mt=b[z].destinationEdges.iterator,Mt.reset();Mt.next();)if(mt=Mt.value,wt=mt.toVertex,mt.valid&&wt.layer===y){for(mt=0;b[mt]!==wt;)mt++;mt===z+1&&(be+=1)}for(Mt=b[z+1].sourceEdges.iterator,Mt.reset();Mt.next();)if(mt=Mt.value,wt=mt.fromVertex,mt.valid&&wt.layer===y){for(mt=0;b[mt]!==wt;)mt++;mt<z&&(Se+=2*(z+1-mt),be+=2*(z-mt)),mt===z&&(be+=1),mt>z+1&&(Se+=4*(mt-(z+1)),be+=4*(mt-z))}for(Mt=b[z+1].destinationEdges.iterator,Mt.reset();Mt.next();)if(mt=Mt.value,wt=mt.toVertex,mt.valid&&wt.layer===y){for(mt=0;b[mt]!==wt;)mt++;mt===z&&(Se+=1)}mt=wt=0,Mt=ee[b[z].index];var jt=re[b[z].index],mn=ee[b[z+1].index],Ni=re[b[z+1].index];Mt!==-1&&(wt+=Math.abs(Mt-Ae),mt+=Math.abs(Mt-Ye)),jt!==-1&&(wt+=Math.abs(jt-Ae),mt+=Math.abs(jt-Ye)),mn!==-1&&(wt+=Math.abs(mn-Oe),mt+=Math.abs(mn-rt)),Ni!==-1&&(wt+=Math.abs(Ni-Oe),mt+=Math.abs(Ni-rt)),(be<Se-.5||be===Se&&fe<ue-.5||be===Se&&fe===ue&&mt<wt-.5)&&(le=oe=!0,b[z].column=Ye,b[z+1].column=rt,ue=b[z],b[z]=b[z+1],b[z+1]=ue)}for(z=0;z<E;z++)b[z].index=z;return nf(a,y,b),oe}oa.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&nw)!==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 z=E.value;y=z.layer,b=z.column,z=this.nodeMinColumnSpace(z,!1),x[y]=Math.max(x[y],b+z)}for(E.reset();E.next();)z=E.value,y=z.layer,b=z.column,z.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=Xg(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Xg(this,y,-1)||x;x=Xg(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)Py(this,y,1);for(y=this.Md-1;0<=y;y--)Py(this,y,-1);Py(this,this.Md,0)}if(a&&(r1(this,-1),r1(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Xg(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Xg(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Xg(this,y,0)||x}}else $1(this)};function Xg(a,y,x){for(var b=!1;J1(a,y,x);)b=!0;return b}function J1(a,y,x){var b,E=tf(a,y),z=a.tc[y],ee=Sy(a,y,-1);if(0<x)for(b=0;b<z;b++)ee[b]=-1;var re=Sy(a,y,1);if(0>x)for(b=0;b<z;b++)re[b]=-1;for(var oe=!1,le=!0;le;)for(le=!1,b=0;b<z;b++){var ue=E[b].column,fe=a.nodeMinColumnSpace(E[b],!0),Se=a.nodeMinColumnSpace(E[b],!1),be=0;0>b-1||ue-E[b-1].column-1>fe+a.nodeMinColumnSpace(E[b-1],!1)?be=ue-1:be=ue,fe=b+1>=z||E[b+1].column-ue-1>Se+a.nodeMinColumnSpace(E[b+1],!0)?ue+1:ue;var Ae=Se=0,Oe=0;if(0>=x)for(var rt=E[b].sourceEdges.iterator;rt.next();){var Ye=rt.value,mt=Ye.fromVertex;if(Ye.valid&&mt.layer!==y){var wt=yy(Ye),Mt=Ye.portFromColOffset;Ye=Ye.portToColOffset,mt=mt.column,Se+=(Math.abs(ue+Ye-(mt+Mt))+1)*wt,Ae+=(Math.abs(be+Ye-(mt+Mt))+1)*wt,Oe+=(Math.abs(fe+Ye-(mt+Mt))+1)*wt}}if(0<=x)for(rt=E[b].destinationEdges.iterator;rt.next();)Ye=rt.value,mt=Ye.toVertex,Ye.valid&&mt.layer!==y&&(wt=yy(Ye),Mt=Ye.portFromColOffset,Ye=Ye.portToColOffset,mt=mt.column,Se+=(Math.abs(ue+Mt-(mt+Ye))+1)*wt,Ae+=(Math.abs(be+Mt-(mt+Ye))+1)*wt,Oe+=(Math.abs(fe+Mt-(mt+Ye))+1)*wt);Ye=Mt=wt=0,rt=ee[E[b].index],mt=re[E[b].index],rt!==-1&&(wt+=Math.abs(rt-ue),Mt+=Math.abs(rt-be),Ye+=Math.abs(rt-fe)),mt!==-1&&(wt+=Math.abs(mt-ue),Mt+=Math.abs(mt-be),Ye+=Math.abs(mt-fe)),Ae<Se||Ae===Se&&Mt<wt?(le=oe=!0,E[b].column=be):(Oe<Se||Oe===Se&&Ye<wt)&&(le=oe=!0,E[b].column=fe)}return nf(a,y,E),a.normalize(),oe}function Py(a,y,x){var b=tf(a,y),E=a.tc[y],z=Xx(a,y,x),ee=[];for(x=0;x<E;x++)ee[x]=z[x];for(z=!0;z;)for(z=!1,x=0;x<E;x++){var re=b[x].column,oe=a.nodeMinColumnSpace(b[x],!0),le=a.nodeMinColumnSpace(b[x],!1),ue=0;if(ee[x]===-1)if(x===0&&x===E-1)ue=re;else if(x===0){var fe=b[x+1].column;fe-re===le+a.nodeMinColumnSpace(b[x+1],!0)?ue=re-1:ue=re}else x===E-1?(fe=b[x-1].column,ue=re-fe===oe+a.nodeMinColumnSpace(b[x-1],!1)?re+1:re):(fe=b[x-1].column,oe=fe+a.nodeMinColumnSpace(b[x-1],!1)+oe+1,fe=b[x+1].column,le=fe-a.nodeMinColumnSpace(b[x+1],!0)-le-1,ue=(oe+le)/2|0);else x===0&&x===E-1?ue=ee[x]:x===0?(fe=b[x+1].column,le=fe-a.nodeMinColumnSpace(b[x+1],!0)-le-1,ue=Math.min(ee[x],le)):x===E-1?(fe=b[x-1].column,oe=fe+a.nodeMinColumnSpace(b[x-1],!1)+oe+1,ue=Math.max(ee[x],oe)):(fe=b[x-1].column,oe=fe+a.nodeMinColumnSpace(b[x-1],!1)+oe+1,fe=b[x+1].column,le=fe-a.nodeMinColumnSpace(b[x+1],!0)-le-1,oe<ee[x]&&ee[x]<le?ue=ee[x]:oe>=ee[x]?ue=oe:le<=ee[x]&&(ue=le));ue!==re&&(z=!0,b[x].column=ue)}nf(a,y,b),a.normalize()}function Q1(a,y){for(var x=!0,b=a.network.vertexes.iterator;b.next();){var E=b.value,z=a.nodeMinColumnSpace(E,!0),ee=a.nodeMinColumnSpace(E,!1);if(E.column-z<=y&&E.column+ee>=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 _1(a,y){var x=y+1,b,E=[],z=[];for(b=0;b<=a.Ia;b++)E[b]=!1,z[b]=!1;for(var ee=a.network.vertexes.iterator;ee.next();){b=ee.value;var re=b.column-a.nodeMinColumnSpace(b,!0),oe=b.column+a.nodeMinColumnSpace(b,!1);re<=y&&oe>=y&&(E[b.layer]=!0),re<=x&&oe>=x&&(z[b.layer]=!0)}for(re=!0,x=!1,b=0;b<=a.Ia;b++)re=re&&!(E[b]&&z[b]);if(re)for(ee.reset();ee.next();)a=ee.value,a.column>y&&(--a.column,x=!0);return x}function r1(a,y){for(var x=0;x<=a.Ra;x++)for(;Q1(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;_1(a,x););a.normalize();var b;if(0<y)for(x=0;x<=a.Ra;x++){var E=Eu(a),z=M0(a);for(b=z+1;z<b;){b=z,o1(a,x,1);var ee=M0(a);ee>z?mc(a,E):ee<z&&(z=ee,E=Eu(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(E=Eu(a),z=M0(a),b=z+1;z<b;)b=z,o1(a,x,-1),ee=M0(a),ee>z?mc(a,E):ee<z&&(z=ee,E=Eu(a));a.normalize()}function o1(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&&(xy(a,y,a.le,-1,!0,!0),a.le++);var z;for(y=[],z=0;z<a.le*a.le;z++)y[z]=!1;for(E=[],z=0;z<(a.Ia+1)*(a.Ra+1);z++)E[z]=-1;for(b.reset();b.next();){z=b.value;for(var ee=z.layer,re=Math.max(0,z.column-a.nodeMinColumnSpace(z,!0)),oe=Math.min(a.Ra,z.column+a.nodeMinColumnSpace(z,!1));re<=oe;re++)E[ee*(a.Ra+1)+re]=z.component}for(z=0;z<=a.Ia;z++){if(0<x)for(ee=0;ee<a.Ra;ee++)E[z*(a.Ra+1)+ee]!==-1&&E[z*(a.Ra+1)+ee+1]!==-1&&E[z*(a.Ra+1)+ee]!==E[z*(a.Ra+1)+ee+1]&&(y[E[z*(a.Ra+1)+ee]*a.le+E[z*(a.Ra+1)+ee+1]]=!0);if(0>x)for(ee=a.Ra;0<ee;ee--)E[z*(a.Ra+1)+ee]!==-1&&E[z*(a.Ra+1)+ee-1]!==-1&&E[z*(a.Ra+1)+ee]!==E[z*(a.Ra+1)+ee-1]&&(y[E[z*(a.Ra+1)+ee]*a.le+E[z*(a.Ra+1)+ee-1]]=!0)}for(E=[],z=0;z<a.le;z++)E[z]=!0;for(ee=[],ee.push(0);ee.length!==0;)if(oe=ee[ee.length-1],ee.pop(),E[oe])for(E[oe]=!1,z=0;z<a.le;z++)y[oe*a.le+z]&&ee.splice(0,0,z);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 $1(a){for(var y=ei(),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 An,q1(y,x);var z=null,ee=null,re=null,oe=null,le=(a.ve&1)!==0,ue=(a.ve&2)!==0,fe=(a.ve&4)!==0,Se=(a.ve&8)!==0;for(le&&(a.verticalAlignment(y,x,!0),z=N0(a,y,!0,!1)),y.reverse(),fe&&(a.verticalAlignment(y,x,!1),re=N0(a,y,!1,!1)),b=Xi(y),E=b.next();!E.done;E=b.next())E.value.reverse();Se&&(a.verticalAlignment(y,x,!1),oe=N0(a,y,!1,!0)),y.reverse(),ue&&(a.verticalAlignment(y,x,!0),ee=N0(a,y,!0,!0)),yi(y),a.u(z,ee,re,oe),a.network.vertexes.each(function(be){var Ae=ei();le&&Ae.push(z.get(be)),ue&&Ae.push(ee.get(be)),fe&&Ae.push(re.get(be)),Se&&Ae.push(oe.get(be)),Ae.sort(function(rt,Ye){return rt-Ye});var Oe=Ae.length;Oe=(Ae[Math.floor((Oe-1)/2)]+Ae[Math.ceil((Oe-1)/2)])/2,yi(Ae),be.zc=Oe})}function q1(a,y){for(var x=a.length,b=1;b<x-1;b++)for(var E=0,z=0,ee=a[b],re=a[b+1],oe=0;z<re.length;oe++){var le=re[oe];e:{if(le.node===null){var ue=Ny(le);if(0<ue.length){ue=ue[0].node===null;break e}}ue=!1}var fe=ue;if(oe===re.length-1||fe){for(ue=ee.length-1,fe&&(ue=Ny(le)[0].index);z<=oe;){if(le=re[z],!le.bo){fe=[];for(var Se=Xi(le.sourceEdgesArrayAccess),be=Se.next();!be.done;be=Se.next())be=be.value,be.valid&&fe.push(be);le.bo=fe}for(le=Xi(le.bo),fe=le.next();!fe.done;fe=le.next())fe=fe.value,Se=fe.fromVertex.index,(Se<E||Se>ue)&&y.add(fe);z++}E=ue}}}oa.prototype.verticalAlignment=function(a,y,x){ew(a),a=Xi(a);for(var b=a.next();!b.done;b=a.next()){var E=-1;b=Xi(b.value);for(var z=b.next();!z.done;z=b.next()){z=z.value;var ee=x?Ny(z):iw(z),re=ee.length;if(0<re){ee.sort(function(fe,Se){return fe.vi-Se.vi});var oe=(re-1)/2;for(re=Math.floor(oe),oe=Math.ceil(oe);re<=oe;re++)if(z.align===z){var le=ee[re],ue=void 0;ue=x?I0(le,z):I0(z,le),!y.contains(ue)&&E<le.vi&&(le.align=z,z.root=le.root,z.align=le.root,E=le.vi)}}}}};function ew(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 N0(a,y,x,b){for(var E=a.K===90||a.K===270,z=Xi(y),ee=z.next();!ee.done;ee=z.next()){var re=Xi(ee.value);for(ee=re.next();!ee.done;ee=re.next())ee=ee.value,ee.sd=ee,ee.shift=1/0,ee.zc=NaN,ee.qg=0}for(ee=a.K===90||a.K===270,z=Xi(y),re=z.next();!re.done;re=z.next()){re=Xi(re.value);for(var oe=re.next();!oe.done;oe=re.next())if(oe=oe.value,oe.root===oe){for(var le=0,ue=oe;ue.align!==oe;){var fe=ue.align,Se=ee?ue.width:ue.height,be=ee?fe.width:fe.height;if(x){var Ae=I0(ue,fe),Oe=Ae.portFromPos,rt=Ae.portToPos;Ae.link!==null&&(ue.node&&ue.node!==Ae.link.fromNode&&(Oe=ee?ue.focusX:ue.focusY),fe.node&&fe.node!==Ae.link.toNode&&(rt=ee?fe.focusX:fe.focusY))}else Ae=I0(fe,ue),Oe=Ae.portToPos,rt=Ae.portFromPos,Ae.link!==null&&(ue.node&&ue.node!==Ae.link.toNode&&(Oe=ee?ue.focusX:ue.focusY),fe.node&&fe.node!==Ae.link.fromNode&&(rt=ee?fe.focusX:fe.focusY));Se=b?ue.qg+(Se-Oe)-(be-rt):ue.qg+Oe-rt,fe.qg=Se,le=Math.min(le,Se),ue=ue.align}ue=oe;do ue.qg=ue.qg-le,ue=ue.align;while(ue!==oe)}}for(x=Xi(y),ee=x.next();!ee.done;ee=x.next())for(z=Xi(ee.value),ee=z.next();!ee.done;ee=z.next())ee=ee.value,ee.root===ee&&a1(a,ee,y);for(x=0;x<y.length;x++)if(!(0>=y[x].length)&&(ee=y[x][0],ee.sd===ee)){ee.sd.shift===1/0&&(ee.sd.shift=0),ee=x,re=0;do{for(z=y[ee][re];z.align!==z.root;)z=z.align,ee++,0<z.vi&&(re=s1(z,y),re.sd.shift=Math.min(re.sd.shift,z.sd.shift+z.zc+z.qg-(re.zc+re.qg+(E?re.width:re.height)+a.columnSpacing)));re=z.vi+1}while(ee<y.length&&re<y[ee].length&&z.sd===y[ee][re].sd)}for(a=new zi,y=Xi(y),ee=y.next();!ee.done;ee=y.next())for(x=Xi(ee.value),ee=x.next();!ee.done;ee=x.next())ee=ee.value,ee.zc=ee.zc+ee.sd.shift+ee.qg,z=E?ee.width:ee.height,a.add(ee,b?-ee.zc-z:ee.zc);return a}function a1(a,y,x){if(isNaN(y.zc)){y.zc=0;var b=y;do{if(0<b.vi){var E=s1(b,x),z=E.root;a1(a,z,x),y.sd===y&&(y.sd=z.sd);var ee=a.K===90||a.K===270?E.width:E.height;y.sd===z.sd&&(y.zc=Math.max(y.zc,z.zc+E.qg+ee-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 s1(a,y){var x=a.Tz;return a=a.vi,1>a&&Pt("Could not determine previous vertex in layer"),y[x][a-1]}oa.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var b=ei(),E=ei(),z=1/0,ee=0;4>ee;ee++)if(y[ee]){var re=tw(this,y[ee],b,E,ee);re<z&&(x=ee,z=re)}for(z={},ee=0;4>ee;z={delta:z.delta},ee++)y[ee]&&(z.delta=ee===0||ee===2?b[x]-b[ee]:E[x]-E[ee],z.delta!==0&&y[ee].each(function(oe){return function(le){le.value+=oe.delta}}(z)));yi(b),yi(E)};function tw(a,y,x,b,E){if(!y||y.count===0)return x[E]=0,b[E]=0,1/0;var z=1/0,ee=-1/0;return y.each(function(re){var oe=re.key;re=re.value,oe=a.K===90||a.K===270?oe.width:oe.height,re<z&&(z=re),re+oe>ee&&(ee=re+oe)}),x[E]=z,b[E]=ee,ee-z}oa.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=F0(this,!0),y=F0(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 F0(a,y){return a.K===270?y?os:xs:a.K===90?y?xs:os:a.K===180?y?hs:Ls:y?Ls:hs}oa.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 z=1/0,ee=E=1/0,re=-1/0;a.next();){var oe=a.value,le=oe.layer,ue=oe.column|0;b?(ee=y.x+this.kc*ue,le=this.Kd[le]):(ee=this.Kd[le],le=y.y+this.kc*ue),oe.centerX=ee,oe.centerY=le,x&&isFinite(oe.zc)&&(b?oe.node?oe.x=y.x+oe.zc:oe.centerX=y.x+oe.zc:oe.node?oe.y=y.y+oe.zc:oe.centerY=y.y+oe.zc),z=Math.min(oe.x,z),E=Math.min(oe.y,E),b?(ee=z,re=Math.max(re,oe.bounds.right)):(ee=E,re=Math.max(re,oe.bounds.bottom))}for(this.xw=re-ee,z=y.x-z,y=y.y-E,this.Rf=new Je(x&&b?0:z,x&&!b?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},oa.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 Pn(0,0,x,Math.abs(this.Ta[0]))):y.push(new Pn(0,this.Ta[b-1],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===90?b===0?y.push(new Pn(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new Pn(0,this.Ta[b],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===180?b===0?y.push(new Pn(0,0,Math.abs(this.Ta[0]),x)):y.push(new Pn(this.Ta[b-1],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x)):b===0?y.push(new Pn(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new Pn(this.Ta[b],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x));this.commitLayers(y,this.Rf)},oa.prototype.commitLayers=function(){},oa.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,z=b.toNode,ee=b.fromPort,re=b.toPort;if(E!==null){var oe=E.findVisibleNode();oe!==null&&oe!==E&&(E=oe,ee=oe.port)}z!==null&&(oe=z.findVisibleNode(),oe!==null&&oe!==z&&(z=oe,re=oe.port));var le=y.computeSpot(!0,ee);oe=y.computeSpot(!1,re);var ue=x.fromVertex,fe=x.toVertex;if(x.valid)y.curve===nc&&y.pointsCount===4&&(ue.column===fe.column&&this.alignOption===0?(x=y.getLinkPoint(E,ee,le,!0,!1,z,re),re=y.getLinkPoint(z,re,oe,!1,!1,E,ee),x.w()||x.set(E.actualBounds.center),re.w()||re.set(z.actualBounds.center),y.Fj(),y.yf(x.x,x.y),y.yf((2*x.x+re.x)/3,(2*x.y+re.y)/3),y.yf((x.x+2*re.x)/3,(x.y+2*re.y)/3),y.yf(re.x,re.y)):(x=b=!1,ee!==null&&le===Da&&(b=!0),re!==null&&oe===Da&&(x=!0),(b||x)&&(oe=null,b&&(oe=y.getLinkPointFromPoint(E,ee,ee.ga(xo),y.i(3),!0),oe.w()||oe.set(E.actualBounds.center),y.L(0,oe.x,oe.y)),E=null,x&&(E=y.getLinkPointFromPoint(z,re,re.ga(xo),y.i(0),!1),E.w()||E.set(z.actualBounds.center),y.L(3,E.x,E.y)),oe&&(z=y.i(2),y.L(1,(2*oe.x+z.x)/3,(2*oe.y+z.y)/3)),E&&(z=y.i(1),y.L(2,(2*E.x+z.x)/3,(2*E.y+z.y)/3))))),y.zf();else if(ue.layer===fe.layer)y.zf();else{var Se=!1,be=!1,Ae=this.ie,Oe=y.firstPickIndex+1;if(y.isOrthogonal){be=!0;var rt=y.pointsCount;4<rt&&y.points.removeRange(2,rt-3)}else if(y.curve===nc)Se=!0,rt=y.pointsCount,4<rt&&y.points.removeRange(2,rt-3),rt===4&&(Oe=2);else{rt=y.pointsCount;var Ye=le===Da,mt=oe===Da;2<rt&&Ye&&mt?y.points.removeRange(1,rt-2):3<rt&&Ye&&!mt?y.points.removeRange(1,rt-3):3<rt&&!Ye&&mt?y.points.removeRange(2,rt-2):4<rt&&!Ye&&!mt&&y.points.removeRange(2,rt-3)}if(x.rev){for(;fe!==null&&ue!==fe;){var wt=rt=null;for(Ye=fe.sourceEdges.iterator;Ye.next()&&(mt=Ye.value,mt.link!==x.link||(rt=mt.fromVertex,wt=mt.toVertex,rt.node!==null)););if(rt===null)break;if(rt!==ue){Ye=y.i(Oe-1).x,mt=y.i(Oe-1).y;var Mt=rt.centerX,jt=rt.centerY;if(be)this.K===180||this.K===0?Oe===y.firstPickIndex+1?(y.m(Oe++,Ye,mt),y.m(Oe++,Ye,jt)):(wt!==null?wt.centerY:mt)!==jt&&(wt=this.Ta[rt.layer-1]+this.Rf.x,y.m(Oe++,wt,mt),y.m(Oe++,wt,jt)):Oe===y.firstPickIndex+1?(y.m(Oe++,Ye,mt),y.m(Oe++,Mt,mt)):(wt!==null?wt.centerX:Ye)!==Mt&&(wt=this.Ta[rt.layer-1]+this.Rf.y,y.m(Oe++,Ye,wt),y.m(Oe++,Mt,wt));else if(Oe===y.firstPickIndex+1){wt=Math.max(10,this.he[fe.layer]);var mn=Math.max(10,this.Ld[fe.layer]);if(Se)this.K===180?Mt<=fe.bounds.x?(fe=fe.bounds.x,y.m(Oe++,fe-wt,jt),y.m(Oe++,fe,jt),y.m(Oe++,fe+mn,jt)):(y.m(Oe++,Mt-wt,jt),y.m(Oe++,Mt,jt),y.m(Oe++,Mt+mn,jt)):this.K===90?jt>=fe.bounds.bottom?(fe=fe.bounds.y+fe.bounds.height,y.m(Oe++,Mt,fe+mn),y.m(Oe++,Mt,fe),y.m(Oe++,Mt,fe-wt)):(y.m(Oe++,Mt,jt+mn),y.m(Oe++,Mt,jt),y.m(Oe++,Mt,jt-wt)):this.K===270?jt<=fe.bounds.y?(fe=fe.bounds.y,y.m(Oe++,Mt,fe-wt),y.m(Oe++,Mt,fe),y.m(Oe++,Mt,fe+mn)):(y.m(Oe++,Mt,jt-wt),y.m(Oe++,Mt,jt),y.m(Oe++,Mt,jt+mn)):this.K===0&&(Mt>=fe.bounds.right?(fe=fe.bounds.x+fe.bounds.width,y.m(Oe++,fe+mn,jt),y.m(Oe++,fe,jt),y.m(Oe++,fe-wt,jt)):(y.m(Oe++,Mt+mn,jt),y.m(Oe++,Mt,jt),y.m(Oe++,Mt-wt,jt)));else{y.m(Oe++,Ye,mt);var Ni=0;this.K===180||this.K===0?((this.K===180?Mt>=fe.bounds.right:Mt<=fe.bounds.x)&&(Ni=(this.K===0?-wt:mn)/2),y.m(Oe++,Ye+Ni,jt)):((this.K===270?jt>=fe.bounds.bottom:jt<=fe.bounds.y)&&(Ni=(this.K===90?-wt:mn)/2),y.m(Oe++,Mt,mt+Ni)),y.m(Oe++,Mt,jt)}}else wt=Math.max(10,this.he[rt.layer]),mn=Math.max(10,this.Ld[rt.layer]),Se?this.K===180?(y.m(Oe++,Mt-wt-Ae,jt),y.m(Oe++,Math.min(Mt-wt+Ae/2,Mt),jt),y.m(Oe++,Mt,jt),y.m(Oe++,Mt,jt),y.m(Oe++,Math.max(Mt+mn-Ae/2,Mt),jt),y.m(Oe++,Mt+mn+Ae,jt)):this.K===90?(y.m(Oe++,Mt,jt+mn+Ae),y.m(Oe++,Mt,Math.max(jt+mn-Ae/2,jt)),y.m(Oe++,Mt,jt),y.m(Oe++,Mt,jt),y.m(Oe++,Mt,Math.min(jt-wt+Ae/2,jt)),y.m(Oe++,Mt,jt-wt-Ae)):this.K===270?(y.m(Oe++,Mt,jt-wt-Ae),y.m(Oe++,Mt,Math.min(jt-wt+Ae/2,jt)),y.m(Oe++,Mt,jt),y.m(Oe++,Mt,jt),y.m(Oe++,Mt,Math.max(jt+mn-Ae/2,jt)),y.m(Oe++,Mt,jt+mn+Ae)):(y.m(Oe++,Mt+mn+Ae,jt),y.m(Oe++,Math.max(Mt+mn-Ae/2,Mt),jt),y.m(Oe++,Mt,jt),y.m(Oe++,Mt,jt),y.m(Oe++,Math.min(Mt-wt+Ae/2,Mt),jt),y.m(Oe++,Mt-wt-Ae,jt)):y.m(Oe++,Mt,jt)}fe=rt}(re===null||le!==Da||be)&&(Ye=y.i(Oe-1).x,mt=y.i(Oe-1).y,Mt=y.i(Oe).x,jt=y.i(Oe).y,be?(Ae=this.Ld[ue.layer],this.K===180||this.K===0?(be=mt,be>=ue.bounds.y&&be<=ue.bounds.bottom&&(this.K===180?Mt>=ue.bounds.x:Mt<=ue.bounds.right)&&(fe=ue.centerX+(this.K===180?-Ae:Ae),be<ue.bounds.y+ue.bounds.height/2?be=ue.bounds.y-this.kc/2:be=ue.bounds.bottom+this.kc/2,y.m(Oe++,fe,mt),y.m(Oe++,fe,be)),y.m(Oe++,Mt,be)):(be=Ye,be>=ue.bounds.x&&be<=ue.bounds.right&&(this.K===270?jt>=ue.bounds.y:jt<=ue.bounds.bottom)&&(fe=ue.centerY+(this.K===270?-Ae:Ae),be<ue.bounds.x+ue.bounds.width/2?be=ue.bounds.x-this.kc/2:be=ue.bounds.right+this.kc/2,y.m(Oe++,Ye,fe),y.m(Oe++,be,fe)),y.m(Oe++,be,jt)),y.m(Oe++,Mt,jt)):Se?(wt=Math.max(10,this.he[ue.layer]),mn=Math.max(10,this.Ld[ue.layer]),this.K===180&&Mt>=ue.bounds.x?(fe=ue.bounds.x+ue.bounds.width,y.L(Oe-2,fe,mt),y.L(Oe-1,fe+mn,mt)):this.K===90&&jt<=ue.bounds.bottom?(fe=ue.bounds.y,y.L(Oe-2,Ye,fe),y.L(Oe-1,Ye,fe-wt)):this.K===270&&jt>=ue.bounds.y?(fe=ue.bounds.y+ue.bounds.height,y.L(Oe-2,Ye,fe),y.L(Oe-1,Ye,fe+mn)):this.K===0&&Mt<=ue.bounds.right&&(fe=ue.bounds.x,y.L(Oe-2,fe,mt),y.L(Oe-1,fe-wt,mt))):(wt=Math.max(10,this.he[ue.layer]),mn=Math.max(10,this.Ld[ue.layer]),be=0,this.K===180||this.K===0?((this.K===180?Mt<=ue.bounds.x:Mt>=ue.bounds.right)&&(be=(this.K===0?mn:-wt)/2),y.m(Oe++,Mt+be,mt)):((this.K===270?jt<=ue.bounds.y:jt>=ue.bounds.bottom)&&(be=(this.K===90?mn:-wt)/2),y.m(Oe++,Ye,jt+be)),y.m(Oe++,Mt,jt)))}else{for(;ue!==null&&ue!==fe;){for(wt=rt=null,ue=ue.destinationEdges.iterator;ue.next()&&(Ye=ue.value,Ye.link!==x.link||(rt=Ye.toVertex,wt=Ye.fromVertex,wt.node!==null&&(wt=null),rt.node!==null)););if(rt===null)break;rt!==fe&&(Ye=y.i(Oe-1).x,mt=y.i(Oe-1).y,Mt=rt.centerX,jt=rt.centerY,be?this.K===180||this.K===0?(wt!==null?wt.centerY:mt)!==jt&&(wt=this.Ta[rt.layer]+this.Rf.x,Oe===y.firstPickIndex+1&&(wt=this.K===0?Math.max(wt,Ye):Math.min(wt,Ye)),y.m(Oe++,wt,mt),y.m(Oe++,wt,jt)):(wt!==null?wt.centerX:Ye)!==Mt&&(wt=this.Ta[rt.layer]+this.Rf.y,Oe===y.firstPickIndex+1&&(wt=this.K===90?Math.max(wt,mt):Math.min(wt,mt)),y.m(Oe++,Ye,wt),y.m(Oe++,Mt,wt)):(wt=Math.max(10,this.he[rt.layer]),mn=Math.max(10,this.Ld[rt.layer]),Se?this.K===180?(y.m(Oe++,Mt+mn+Ae,jt),y.m(Oe++,Math.max(Mt+mn-Ae/2,Mt),jt),y.m(Oe++,Mt,jt),y.m(Oe++,Mt,jt),y.m(Oe++,Math.min(Mt-wt+Ae/2,Mt),jt),y.m(Oe++,Mt-wt-Ae,jt)):this.K===90?(y.m(Oe++,Mt,jt-wt-Ae),y.m(Oe++,Mt,Math.min(jt-wt+Ae/2,jt)),y.m(Oe++,Mt,jt),y.m(Oe++,Mt,jt),y.m(Oe++,Mt,Math.max(jt+mn-Ae/2,jt)),y.m(Oe++,Mt,jt+mn+Ae)):this.K===270?(y.m(Oe++,Mt,jt+mn+Ae),y.m(Oe++,Mt,Math.max(jt+mn-Ae/2,jt)),y.m(Oe++,Mt,jt),y.m(Oe++,Mt,jt),y.m(Oe++,Mt,Math.min(jt-wt+Ae/2,jt)),y.m(Oe++,Mt,jt-wt-Ae)):(y.m(Oe++,Mt-wt-Ae,jt),y.m(Oe++,Math.min(Mt-wt+Ae/2,Mt),jt),y.m(Oe++,Mt,jt),y.m(Oe++,Mt,jt),y.m(Oe++,Math.max(Mt+mn-Ae/2,Mt),jt),y.m(Oe++,Mt+mn+Ae,jt)):this.K===180?(y.m(Oe++,Mt+mn,jt),y.m(Oe++,Mt-wt,jt)):this.K===90?(y.m(Oe++,Mt,jt-wt),y.m(Oe++,Mt,jt+mn)):this.K===270?(y.m(Oe++,Mt,jt+mn),y.m(Oe++,Mt,jt-wt)):(y.m(Oe++,Mt-wt,jt),y.m(Oe++,Mt+mn,jt)))),ue=rt}be&&(Ye=y.i(Oe-1).x,mt=y.i(Oe-1).y,Mt=y.i(Oe).x,jt=y.i(Oe).y,this.K===180||this.K===0?mt!==jt&&(wt=this.K===0?Math.min(Math.max((Mt+Ye)/2,this.Ta[fe.layer]+this.Rf.x),Mt):Math.max(Math.min((Mt+Ye)/2,this.Ta[fe.layer]+this.Rf.x),Mt),y.m(Oe++,wt,mt),y.m(Oe++,wt,jt)):Ye!==Mt&&(wt=this.K===90?Math.min(Math.max((jt+mt)/2,this.Ta[fe.layer]+this.Rf.y),jt):Math.max(Math.min((jt+mt)/2,this.Ta[fe.layer]+this.Rf.y),jt),y.m(Oe++,Ye,wt),y.m(Oe++,Mt,wt)))}b!==null&&Se&&4<=y.pointsCount&&(ee!==null&&(ee=le===Da?y.getLinkPointFromPoint(E,ee,ee.ga(xo),y.i(3),!0):y.i(0),le===Da&&(le=y.i(2),b=y.i(3),this.direction===90||this.direction===270?(y.L(1,(ee.x+le.x)/2,le.y),y.L(2,b.x,(le.y+b.y)/2)):(y.L(1,le.x,(ee.y+le.y)/2),y.L(2,(le.x+b.x)/2,b.y))),ee.w()||ee.set(E.actualBounds.center),y.L(0,ee.x,ee.y)),re!==null&&(E=oe===Da?y.getLinkPointFromPoint(z,re,re.ga(xo),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),oe===Da&&(re=y.i(y.pointsCount-3),oe=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(E.x+re.x)/2,re.y),y.L(y.pointsCount-2,oe.x,(re.y+oe.y)/2)):(y.L(y.pointsCount-2,re.x,(E.y+re.y)/2),y.L(y.pointsCount-3,(re.x+oe.x)/2,oe.y))),E.w()||E.set(z.actualBounds.center),y.L(y.pointsCount-1,E.x,E.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},oa.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new Mn,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 z=b.i(E),ee=b.i(E+1);if(this.B(z.y,ee.y)&&!this.B(z.x,ee.x)){var re=new rf;re.layer=Math.floor(z.y/2);var oe=b.i(0),le=b.i(b.pointsCount-1);if(re.first=oe.x*oe.x+oe.y,re.jc=le.x*le.x+le.y,re.rd=Math.min(z.x,ee.x),re.Ic=Math.max(z.x,ee.x),re.index=E,re.link=b,E+2<b.pointsCount){oe=b.i(E-1),le=b.i(E+2);var ue=0;oe.y<z.y?ue=le.y<z.y?3:z.x<ee.x?2:1:oe.y>z.y&&(ue=le.y>z.y?0:ee.x<z.x?2:1),re.j=ue}x.push(re)}}}if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,b=a+1;b<x.length&&x[b].layer===z;)b++;if(1<b-a)for(z=a;z<b;){for(ee=x[z].Ic,E=a+1;E<b&&x[E].rd<ee;)ee=Math.max(ee,x[E].Ic),E++;if(ee=E-z,1<ee){for(this.zi(x,this.Js,z,z+ee),ue=1,re=x[z].jc,oe=z;oe<E;oe++)le=x[oe],le.jc!==re&&(ue++,re=le.jc);this.zi(x,this.Ux,z,z+ee);var fe=1;for(re=x[z].first,oe=z;oe<E;oe++)le=x[oe],le.first!==re&&(fe++,re=le.first);for(oe=!0,le=fe,ue<fe?(oe=!1,le=ue,re=x[z].jc,this.zi(x,this.Js,z,z+ee)):re=x[z].first,ue=0,fe=z;fe<E;fe++){var Se=x[fe];(oe?Se.first:Se.jc)!==re&&(ue++,re=oe?Se.first:Se.jc);var be=Se.link;z=be.i(Se.index),ee=be.i(Se.index+1);var Ae=this.linkSpacing*(ue-(le-1)/2);y++,be.uh(),be.L(Se.index,z.x,z.y+Ae),be.L(Se.index+1,ee.x,ee.y+Ae),be.zf()}}z=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++)z=b.i(E),ee=b.i(E+1),this.B(z.x,ee.x)&&!this.B(z.y,ee.y)&&(re=new rf,re.layer=Math.floor(z.x/2),oe=b.i(0),le=b.i(b.pointsCount-1),re.first=oe.x+oe.y*oe.y,re.jc=le.x+le.y*le.y,re.rd=Math.min(z.y,ee.y),re.Ic=Math.max(z.y,ee.y),re.index=E,re.link=b,E+2<b.pointsCount&&(oe=b.i(E-1),le=b.i(E+2),ue=0,oe.x<z.x?ue=le.x<z.x?3:z.y<ee.y?2:1:oe.x>z.x&&(ue=le.x>z.x?0:ee.y<z.y?2:1),re.j=ue),x.push(re));if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,b=a+1;b<x.length&&x[b].layer===z;)b++;if(1<b-a)for(z=a;z<b;){for(ee=x[z].Ic,E=a+1;E<b&&x[E].rd<ee;)ee=Math.max(ee,x[E].Ic),E++;if(ee=E-z,1<ee){for(this.zi(x,this.Js,z,z+ee),ue=1,re=x[z].jc,oe=z;oe<E;oe++)le=x[oe],le.jc!==re&&(ue++,re=le.jc);for(this.zi(x,this.Ux,z,z+ee),fe=1,re=x[z].first,oe=z;oe<E;oe++)le=x[oe],le.first!==re&&(fe++,re=le.first);for(oe=!0,le=fe,ue<fe?(oe=!1,le=ue,re=x[z].jc,this.zi(x,this.Js,z,z+ee)):re=x[z].first,ue=0,fe=z;fe<E;fe++)Se=x[fe],(oe?Se.first:Se.jc)!==re&&(ue++,re=oe?Se.first:Se.jc),be=Se.link,z=be.i(Se.index),ee=be.i(Se.index+1),Ae=this.linkSpacing*(ue-(le-1)/2),y++,be.uh(),be.L(Se.index,z.x+Ae,z.y),be.L(Se.index+1,ee.x+Ae,ee.y),be.zf()}z=E}a=b}}}},Ee=oa.prototype,Ee.Vx=function(a,y){return a instanceof rf&&y instanceof rf&&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},Ee.Ux=function(a,y){return a instanceof rf&&y instanceof rf&&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},Ee.Js=function(a,y){return a instanceof rf&&y instanceof rf&&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},Ee.B=function(a,y){return a-=y,-1<a&&1>a},Ee.zi=function(a,y,x,b){var E=a.length,z=b-x;if(!(1>=z))if((0>x||x>=E-1)&&Pt("not in range 0 <= from < length: "+x),z===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 tf(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 nf(a,y,x){a.He[a.tc[y]]=x}tt.Object.defineProperties(oa.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()):Pt("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==Cy&&a!==D0&&a!==$p||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==B0&&a!==by&&a!==Ey||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==T0&&a!==Ay&&a!==Ly||(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!==My&&a!==O0&&a!==ky||(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 D0=new Xt(oa,"CycleDepthFirst",0),Cy=new Xt(oa,"CycleGreedy",1),$p=new Xt(oa,"CycleFromLayers",2),B0=new Xt(oa,"LayerOptimalLinkLength",0),by=new Xt(oa,"LayerLongestPathSink",1),Ey=new Xt(oa,"LayerLongestPathSource",2),T0=new Xt(oa,"InitDepthFirstOut",0),Ay=new Xt(oa,"InitDepthFirstIn",1),Ly=new Xt(oa,"InitNaive",2),My=new Xt(oa,"AggressiveNone",0),O0=new Xt(oa,"AggressiveLess",1),ky=new Xt(oa,"AggressiveMore",2),nw=8;oa.className="LayeredDigraphLayout",oa.CycleDepthFirst=D0,oa.CycleGreedy=Cy,oa.CycleFromLayers=$p,oa.LayerOptimalLinkLength=B0,oa.LayerLongestPathSink=by,oa.LayerLongestPathSource=Ey,oa.InitDepthFirstOut=T0,oa.InitDepthFirstIn=Ay,oa.InitNaive=Ly,oa.AggressiveNone=My,oa.AggressiveLess=O0,oa.AggressiveMore=ky,oa.PackNone=0,oa.PackExpand=1,oa.PackStraighten=2,oa.PackMedian=4,oa.PackAll=15,oa.AlignNone=0,oa.AlignUpperLeft=1,oa.AlignUpperRight=2,oa.AlignLowerLeft=4,oa.AlignLowerRight=8,oa.AlignAll=15;function rf(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}rf.className="SegInfo";function Jg(a){Ea.call(this,a)}Lt(Jg,Ea),Jg.prototype.createVertex=function(){return new vc(this)},Jg.prototype.createEdge=function(){return new qp(this)},Jg.className="LayeredDigraphNetwork";function vc(a){Xs.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}Lt(vc,Xs);function l1(a,y){return a.index-y.index}function I0(a,y){if(!a.$n){for(var x=[],b=Xi(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&x.push(E);a.$n=x}for(a=Xi(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;Pt("Unable to find destination edge to given vertex")}function Ny(a){if(!a.co){for(var y=[],x=Xi(a.sourceEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.fromVertex);y.sort(l1),a.co=y}return a.co}function iw(a){if(!a.ao){for(var y=[],x=Xi(a.destinationEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.toVertex);y.sort(l1),a.ao=y}return a.ao}vc.prototype.Cl=function(a){Xs.prototype.Cl.call(this,a),this.bo=this.co=null},vc.prototype.Kl=function(a){Xs.prototype.Kl.call(this,a),this.bo=this.co=null},vc.prototype.zl=function(a){Xs.prototype.zl.call(this,a),this.$n=this.ao=null},vc.prototype.Jl=function(a){Xs.prototype.Jl.call(this,a),this.$n=this.ao=null},tt.Object.defineProperties(vc.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)}}}),vc.prototype.deleteDestinationEdge=vc.prototype.Jl,vc.prototype.addDestinationEdge=vc.prototype.zl,vc.prototype.deleteSourceEdge=vc.prototype.Kl,vc.prototype.addSourceEdge=vc.prototype.Cl,vc.className="LayeredDigraphVertex";function qp(a){Gu.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Lt(qp,Gu),tt.Object.defineProperties(qp.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)}}}),qp.className="LayeredDigraphEdge";function Co(a){Za.call(this),this.Ub=new An,this.Wn=H0,this.ud=Td,this.vo=Z0,this.Bq=Wy,this.$v=[],this.td=!0,this.Rb=K0,this.$d=new On(10,10).freeze();var y=new hg(this);this.W=new Dc(y),this.Y=new Dc(y),this.ru=[],a&&Object.assign(this,a)}Lt(Co,Za),Co.prototype.cloneProtected=function(a){Za.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)},Co.prototype.qb=function(a){a.classType===Co?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:Pt("Unknown enum value: "+a):Za.prototype.qb.call(this,a)},Co.prototype.createNetwork=function(){return new hg(this)},Co.prototype.makeNetwork=function(a){function y(b){if(b instanceof Di)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof fi){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 pn?(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},Co.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==V0&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof pn&&(y=a),this.path===H0&&y!==null?this.ud=y.isTreePathToChildren?Td:cg:this.ud=this.path===H0?Td: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 An,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof Di?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof Dc&&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,Fy(this,y));for(y=this.network.vertexes,a=null;a=rw(y),0<a.count;)y=u1(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,Fy(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Dc&&d1(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Dc&&h1(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Dc&&f1(this,y);if(this.Cu(),this.layerStyle===G0){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===Zy)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 z=y.children[E];b=Math.max(b,x?z.width:z.height)}if(0<=b)for(E=0;E<y.children.length;E++)z=y.children[E],x?(y.angle===180&&(z.focusX+=b-z.width),z.width=b):(y.angle===270&&(z.focusY+=b-z.height),z.height=b)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Dc&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new An,this.isValidLayout=!0};function rw(a){var y=new An;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}Co.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case Td:x.sourceEdges.count===0&&this.Ub.add(x);break;case cg:x.destinationEdges.count===0&&this.Ub.add(x);break;default:Pt("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=u1(this,a),a!==null&&this.Ub.add(a))};function u1(a,y){var x=999999,b=null;for(y=y.iterator;y.next();){var E=y.value;switch(a.ud){case Td:E.sourceEdges.count<x&&(x=E.sourceEdges.count,b=E);break;case cg:E.destinationEdges.count<x&&(x=E.destinationEdges.count,b=E);break;default:Pt("Unhandled path value "+a.ud.toString())}}return b}function Fy(a,y){if(y!==null){switch(a.ud){case Td:if(0<y.destinationEdges.count){for(var x=new Mn,b=y.destinationVertexes;b.next();){var E=b.value;c1(a,y,E)&&x.add(E)}0<x.count&&(y.children=x.Fa())}break;case cg:if(0<y.sourceEdges.count){for(x=new Mn,b=y.sourceVertexes;b.next();)E=b.value,c1(a,y,E)&&x.add(E);0<x.count&&(y.children=x.Fa())}break;default:Pt("Unhandled path value"+a.ud.toString())}for(x=y.children,b=x.length,E=0;E<b;E++){var z=x[E];z.initialized=!0,z.level=y.level+1,z.parent=y,a.Ub.remove(z)}for(y=0;y<b;y++)Fy(a,x[y])}}function c1(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}Co.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 z=E=0;z<x.length;z++)x[z]!==y&&(b[E++]=x[z]);a.children=b}}};function d1(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===Rd&&a.sortTreeVertexChildren(y);for(var x=0,b=y.childrenCount,E=0,z=y.children,ee=z.length,re=0;re<ee;re++){var oe=z[re];d1(a,oe),x+=oe.descendantCount+1,b=Math.max(b,oe.maxChildrenCount),E=Math.max(E,oe.maxGenerationCount)}y.descendantCount=x,y.maxChildrenCount=b,y.maxGenerationCount=0<b?E+1:0}}function ow(a,y){switch(a.vo){default:case Z0:return y.parent!==null?y.parent:a.W;case jy:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case zy:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case Ry:var x=!0;if(y.childrenCount===0)x=!1;else for(var b=y.children,E=b.length,z=0;z<E;z++)if(0<b[z].childrenCount){x=!1;break}return x&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}Co.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(ow(this,a)),a.parent!==null&&a.parent.alignment===Rd){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 h1(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var x=y.length,b=0;b<x;b++)h1(a,y[b])}}Co.prototype.assignTreeVertexValues=function(){};function f1(a,y){if(y!==null){y.alignment!==Rd&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,b=0;b<x;b++)f1(a,y[b])}}Co.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case Qg:break;case tm:a.children.reverse();break;case nm:a.children.sort(a.comparer);break;case im:a.children.sort(a.comparer),a.children.reverse();break;default:Pt("Unhandled sorting value "+a.sorting.toString())}},Co.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Co.prototype.addComments=function(a){var y=a.angle,x=a.parent,b=0,E=!1;x!==null&&(b=x.angle,E=x.alignment,E=of(E)),y=y===90||y===270,b=b===90||b===270,x=a.childrenCount===0;var z=0,ee=0,re=0,oe=a.commentSpacing;if(a.node!==null)for(var le=a.node.Mu();le.next();){var ue=le.value;ue.category==="Comment"&&ue.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(ue),ue.Va(),ue=ue.measuredBounds,y&&!x||!E&&!b&&x||E&&b&&x?(z=Math.max(z,ue.width),ee+=ue.height+Math.abs(re)):(z+=ue.width+Math.abs(re),ee=Math.max(ee,ue.height)),re=oe)}a.comments!==null&&(y&&!x||!E&&!b&&x||E&&b&&x?(z+=Math.abs(a.commentMargin),ee=Math.max(0,ee-a.height)):(ee+=Math.abs(a.commentMargin),z=Math.max(0,z-a.width)),E=Pn.allocAt(0,0,a.bounds.width+z,a.bounds.height+ee),a.bounds=E,Pn.free(E))};function of(a){return a===Mh||a===Rd||a===kh||a===nh}function em(a){return a===Mh||a===Rd}function Dy(a){var y=a.parent;if(y!==null){var x=y.alignment;if(of(x)){if(em(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===kh)return!0}}return!1}Co.prototype.layoutComments=function(a){if(a.comments!==null){var y=a.node.measuredBounds,x=a.parent,b=a.angle,E=0,z=!1;x!==null&&(E=x.angle,z=x.alignment,z=of(z)),b=b===90||b===270,x=E===90||E===270;for(var ee=a.childrenCount===0,re=Dy(a),oe=0,le=a.comments,ue=le.length,fe=Je.alloc(),Se=0;Se<ue;Se++){var be=le[Se],Ae=be.measuredBounds;if(b&&!ee||!z&&!x&&ee||z&&x&&ee){if(135<E&&!z||x&&re)if(0<=a.commentMargin)for(fe.h(a.bounds.x-a.commentMargin-Ae.width,a.bounds.y+oe),be.move(fe),be=be.Sd();be.next();){var Oe=be.value;Oe.fromSpot=hs,Oe.toSpot=Ls}else for(fe.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+oe),be.move(fe),be=be.Sd();be.next();)Oe=be.value,Oe.fromSpot=Ls,Oe.toSpot=hs;else if(0<=a.commentMargin)for(fe.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+oe),be.move(fe),be=be.Sd();be.next();)Oe=be.value,Oe.fromSpot=Ls,Oe.toSpot=hs;else for(fe.h(a.bounds.x+a.commentMargin-Ae.width,a.bounds.y+oe),be.move(fe),be=be.Sd();be.next();)Oe=be.value,Oe.fromSpot=hs,Oe.toSpot=Ls;oe=0<=a.commentSpacing?oe+(Ae.height+a.commentSpacing):oe+(a.commentSpacing-Ae.height)}else{if(135<E&&!z||!x&&re)if(0<=a.commentMargin)for(fe.h(a.bounds.x+oe,a.bounds.y-a.commentMargin-Ae.height),be.move(fe),be=be.Sd();be.next();)Oe=be.value,Oe.fromSpot=os,Oe.toSpot=xs;else for(fe.h(a.bounds.x+oe,a.bounds.y+2*a.focus.y-a.commentMargin),be.move(fe),be=be.Sd();be.next();)Oe=be.value,Oe.fromSpot=xs,Oe.toSpot=os;else if(0<=a.commentMargin)for(fe.h(a.bounds.x+oe,a.bounds.y+2*a.focus.y+a.commentMargin),be.move(fe),be=be.Sd();be.next();)Oe=be.value,Oe.fromSpot=xs,Oe.toSpot=os;else for(fe.h(a.bounds.x+oe,a.bounds.y+a.commentMargin-Ae.height),be.move(fe),be=be.Sd();be.next();)Oe=be.value,Oe.fromSpot=os,Oe.toSpot=xs;oe=0<=a.commentSpacing?oe+(Ae.width+a.commentSpacing):oe+(a.commentSpacing-Ae.width)}}if(Je.free(fe),y=oe-a.commentSpacing-(b?y.height:y.width),this.ud===Td)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)}},Co.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 W0:g1(this,a);break;case rm:if(a.alignment===Rd)g1(this,a);else if(a.childrenCount===0)b=a.parent,x=!1,y=0,b!==null&&(y=b.angle,x=b.alignment,x=of(x)),b=Dy(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=Uc(a);y=E===90||E===270;var z=0,ee=a.children,re=ee.length;for(x=0;x<re;x++)b=ee[x],z=Math.max(z,y?b.Da.width:b.Da.height);var oe=a.alignment;b=oe===Od;var le=oe===Id,ue=of(oe),fe=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var Se=a.nodeSpacing,be=this.computeNodeIndent(a),Ae=a.rowSpacing,Oe=0;(b||le||a.hm||a.im&&a.maxGenerationCount===1)&&(Oe=Math.max(0,a.rowIndent)),b=a.width;var rt=a.height,Ye=0,mt=0,wt=0,Mt=null,jt=null,mn=0,Ni=0,Qi=0,Hi=0,hi=0,_n=0,Xr=0,zr=0;if(ue&&!em(oe)&&135<E&&ee.reverse(),em(oe))if(1<re)for(var Jo=0;Jo<re;Jo++)Jo%2===0&&Jo!==re-1&&(zr=Math.max(zr,y?ee[Jo].Da.width:ee[Jo].Da.height));else re===1&&(zr=y?ee[0].Da.width:ee[0].Da.height);if(ue){switch(oe){case Mh:mt=135>E?p1(this,a,ee,zr,Ye,mt):m1(this,a,ee,zr,Ye,mt),zr=mt.x,Ye=mt.width,mt=mt.height;break;case kh:for(Mt=0;Mt<re;Mt++)jt=ee[Mt],fe=jt.Da,wt=_n===0?0:Ae,y?(jt.S.h(z-fe.width,Hi+wt),Ye=Math.max(Ye,fe.width),mt=Math.max(mt,Hi+wt+fe.height),Hi+=wt+fe.height):(jt.S.h(Qi+wt,z-fe.height),Ye=Math.max(Ye,Qi+wt+fe.width),mt=Math.max(mt,fe.height),Qi+=wt+fe.width),_n++;break;case nh:for(Mt=0;Mt<re;Mt++)jt=ee[Mt],z=jt.Da,fe=_n===0?0:Ae,y?(jt.S.h(Se/2+a.focus.x,Hi+fe),Ye=Math.max(Ye,z.width),mt=Math.max(mt,Hi+fe+z.height),Hi+=fe+z.height):(jt.S.h(Qi+fe,Se/2+a.focus.y),Ye=Math.max(Ye,Qi+fe+z.width),mt=Math.max(mt,z.height),Qi+=fe+z.width),_n++}Mt=Ou(this,2),jt=Ou(this,2),y?(Mt[0].h(0,0),Mt[1].h(0,mt),jt[0].h(Ye,0)):(Mt[0].h(0,0),Mt[1].h(Ye,0),jt[0].h(0,mt)),jt[1].h(Ye,mt)}else for(Jo=0;Jo<re;Jo++){var wa=ee[Jo],qs=wa.Da;if(y){0<fe&&0<_n&&Qi+Se+qs.width>fe&&(Qi<z&&Of(a,oe,z-Qi,0,Xr,Jo-1),hi++,_n=0,Xr=Jo,wt=mt,Qi=0,Hi=135<E?-mt-Ae:mt+Ae),z0(this,wa,0,Hi);var cl=0;if(_n===0)Mt=wa.Yo,jt=wa.kp,mn=qs.width,Ni=qs.height,(Mt===null||jt===null||E!==Uc(wa))&&(Mt=Ou(this,2),jt=Ou(this,2),Mt[0].h(0,0),Mt[1].h(0,Ni),jt[0].h(mn,0),jt[1].h(mn,Ni));else{var Xl=ei();Ni=v1(this,a,wa,Mt,jt,mn,Ni,Xl),cl=Ni.x,Mt=Xl[0],jt=Xl[1],mn=Ni.width,Ni=Ni.height,yi(Xl),Qi<qs.width&&0>cl&&(ug(a,-cl,0,Xr,Jo-1),j0(Mt,-cl,0),j0(jt,-cl,0),cl=0)}wa.S.h(cl,Hi),Ye=Math.max(Ye,mn),mt=Math.max(mt,wt+(hi===0?0:Ae)+qs.height),Qi=mn}else 0<fe&&0<_n&&Hi+Se+qs.height>fe&&(Hi<z&&Of(a,oe,0,z-Hi,Xr,Jo-1),hi++,_n=0,Xr=Jo,wt=Ye,Hi=0,Qi=135<E?-Ye-Ae:Ye+Ae),z0(this,wa,Qi,0),cl=0,_n===0?(Mt=wa.Yo,jt=wa.kp,mn=qs.width,Ni=qs.height,(Mt===null||jt===null||E!==Uc(wa))&&(Mt=Ou(this,2),jt=Ou(this,2),Mt[0].h(0,0),Mt[1].h(mn,0),jt[0].h(0,Ni),jt[1].h(mn,Ni))):(Xl=ei(),Ni=v1(this,a,wa,Mt,jt,mn,Ni,Xl),cl=Ni.x,Mt=Xl[0],jt=Xl[1],mn=Ni.width,Ni=Ni.height,yi(Xl),Hi<qs.height&&0>cl&&(ug(a,0,-cl,Xr,Jo-1),j0(Mt,0,-cl),j0(jt,0,-cl),cl=0)),wa.S.h(Qi,cl),mt=Math.max(mt,Ni),Ye=Math.max(Ye,wt+(hi===0?0:Ae)+qs.width),Hi=Ni;_n++}switch(0<hi&&(y?(mt+=Math.max(0,x),Qi<Ye&&Of(a,oe,Ye-Qi,0,Xr,re-1),0<Oe&&(le||ug(a,Oe,0,0,re-1),Ye+=Oe)):(Ye+=Math.max(0,x),Hi<mt&&Of(a,oe,0,mt-Hi,Xr,re-1),0<Oe&&(le||ug(a,0,Oe,0,re-1),mt+=Oe))),Oe=le=0,oe){case _g:y?le+=Ye/2-a.focus.x-be/2:Oe+=mt/2-a.focus.y-be/2;break;case dg:0<hi?y?le+=Ye/2-a.focus.x-be/2:Oe+=mt/2-a.focus.y-be/2:y?(zr=ee[0].S.x+ee[0].la.x,le+=zr+(ee[re-1].S.x+ee[re-1].la.x+2*ee[re-1].focus.x-zr)/2-a.focus.x-be/2):(zr=ee[0].S.y+ee[0].la.y,Oe+=zr+(ee[re-1].S.y+ee[re-1].la.y+2*ee[re-1].focus.y-zr)/2-a.focus.y-be/2);break;case Od:y?(le-=be,Ye+=be):(Oe-=be,mt+=be);break;case Id:y?(le+=Ye-a.width+be,Ye+=be):(Oe+=mt-a.height+be,mt+=be);break;case Mh:y?1<re?le+=zr+Se/2-a.focus.x:le+=ee[0].focus.x-a.focus.x+ee[0].la.x:1<re?Oe+=zr+Se/2-a.focus.y:Oe+=ee[0].focus.y-a.focus.y+ee[0].la.y;break;case kh:y?le+=Ye+Se/2-a.focus.x:Oe+=mt+Se/2-a.focus.y;break;case nh:break;default:mt=this.customAlignment(a,le,Oe,Ye,mt),le=mt[0],Oe=mt[1],Ye=mt[2],mt=mt[3]}for(be=0;be<re;be++)zr=ee[be],y?zr.S.h(zr.S.x+zr.la.x-le,zr.S.y+(135<E?(ue?-mt:-zr.Da.height)+zr.la.y-x:rt+x+zr.la.y)):zr.S.h(zr.S.x+(135<E?(ue?-Ye:-zr.Da.width)+zr.la.x-x:b+x+zr.la.x),zr.S.y+zr.la.y-Oe);if(re=ee=0,ue?y?(Ye=By(a,Ye,le),0>le&&(le=0),135<E&&(Oe+=mt+x),mt+=rt+x,oe===nh&&(ee+=Se/2+a.focus.x),re+=rt+x):(135<E&&(le+=Ye+x),Ye+=b+x,mt=Ty(a,mt,Oe),0>Oe&&(Oe=0),oe===nh&&(re+=Se/2+a.focus.y),ee+=b+x):y?(a.comments===null?b>Ye&&(Ye=Oy(oe,b-Ye,0),ee=Ye.x,re=Ye.y,Ye=b,le=0):Ye=By(a,Ye,le),0>le&&(ee-=le,le=0),135<E&&(Oe+=mt+x),mt=Math.max(Math.max(mt,rt),mt+rt+x),re+=rt+x):(135<E&&(le+=Ye+x),Ye=Math.max(Math.max(Ye,b),Ye+b+x),a.comments===null?rt>mt&&(mt=Oy(oe,0,rt-mt),ee=mt.x,re=mt.y,mt=rt,Oe=0):mt=Ty(a,mt,Oe),0>Oe&&(re-=Oe,Oe=0),ee+=b+x),0<hi)E=Ou(this,4),hi=Ou(this,4),y?(E[2].h(0,rt+x),E[3].h(E[2].x,mt),hi[2].h(Ye,E[2].y),hi[3].h(hi[2].x,E[3].y)):(E[2].h(b+x,0),E[3].h(Ye,E[2].y),hi[2].h(E[2].x,mt),hi[3].h(E[3].x,hi[2].y));else{for(E=Ou(this,Mt.length+2),hi=Ou(this,jt.length+2),oe=0;oe<Mt.length;oe++)ue=Mt[oe],E[oe+2].h(ue.x+ee,ue.y+re);for(oe=0;oe<jt.length;oe++)ue=jt[oe],hi[oe+2].h(ue.x+ee,ue.y+re)}y?(E[0].h(le,0),E[1].h(E[0].x,rt),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])),hi[0].h(le+b,0),hi[1].h(hi[0].x,rt),hi[2].y<hi[1].y&&(hi[2].x<hi[0].x?hi[2].assign(hi[1]):hi[1].assign(hi[2])),hi[3].y<hi[2].y&&(hi[3].x<hi[0].x?hi[3].assign(hi[2]):hi[2].assign(hi[3])),E[2].y-=x/2,hi[2].y-=x/2):(E[0].h(0,Oe),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])),hi[0].h(0,Oe+rt),hi[1].h(b,hi[0].y),hi[2].x<hi[1].x&&(hi[2].y<hi[0].y?hi[2].assign(hi[1]):hi[1].assign(hi[2])),hi[3].x<hi[2].x&&(hi[3].y<hi[0].y?hi[3].assign(hi[2]):hi[2].assign(hi[3])),E[2].x-=x/2,hi[2].x-=x/2),sd(this,Mt),sd(this,jt),a.Yo=E,a.kp=hi,a.la.h(le,Oe),a.Da.h(Ye,mt)}break;default:Pt("Unhandled compaction value "+a.compaction.toString())}}};function g1(a,y){if(y.childrenCount===0){var x=!1,b=0;y.parent!==null&&(b=y.parent.angle,x=y.parent.alignment,x=of(x));var E=Dy(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=Uc(y),x=b===90||b===270;var z=0;E=y.children;for(var ee=E.length,re=0;re<ee;re++){var oe=E[re];z=Math.max(z,x?oe.Da.width:oe.Da.height)}var le=y.alignment,ue=le===Od,fe=le===Id;re=of(le);var Se=Math.max(0,y.breadthLimit);oe=a.computeLayerSpacing(y);var be=y.nodeSpacing,Ae=a.computeNodeIndent(y),Oe=ue||fe?0:Ae/2,rt=y.rowSpacing,Ye=0;(ue||fe||y.hm||y.im&&y.maxGenerationCount===1)&&(Ye=Math.max(0,y.rowIndent)),ue=y.width;var mt=y.height,wt=0,Mt=0,jt=0,mn=0,Ni=0,Qi=0,Hi=0,hi=0,_n=0,Xr=0;if(re&&!em(le)&&135<b&&E.reverse(),em(le))if(1<ee)for(var zr=0;zr<ee;zr++){var Jo=E[zr],wa=Jo.Da;zr%2===0&&zr!==ee-1?_n=Math.max(_n,(x?wa.width:wa.height)+a.computeBusNodeSpacing(Jo)-be):zr%2!==0&&(Xr=Math.max(Xr,(x?wa.width:wa.height)+a.computeBusNodeSpacing(Jo)-be))}else ee===1&&(_n=x?E[0].Da.width:E[0].Da.height);if(re)switch(le){case Mh:case Rd:Mt=135>b?p1(a,y,E,_n,wt,Mt):m1(a,y,E,_n,wt,Mt),_n=Mt.x,wt=Mt.width,Mt=Mt.height;break;case kh:for(Se=0;Se<ee;Se++)Oe=E[Se],jt=Oe.Da,Xr=Hi===0?0:rt,x?(Oe.S.h(z-jt.width,Ni+Xr),wt=Math.max(wt,jt.width),Mt=Math.max(Mt,Ni+Xr+jt.height),Ni+=Xr+jt.height):(Oe.S.h(mn+Xr,z-jt.height),wt=Math.max(wt,mn+Xr+jt.width),Mt=Math.max(Mt,jt.height),mn+=Xr+jt.width),Hi++;break;case nh:for(z=0;z<ee;z++)Se=E[z],Oe=Se.Da,jt=Hi===0?0:rt,x?(Se.S.h(be/2+y.focus.x,Ni+jt),wt=Math.max(wt,Oe.width),Mt=Math.max(Mt,Ni+jt+Oe.height),Ni+=jt+Oe.height):(Se.S.h(mn+jt,be/2+y.focus.y),wt=Math.max(wt,mn+jt+Oe.width),Mt=Math.max(Mt,Oe.height),mn+=jt+Oe.width),Hi++}else for(Xr=0;Xr<ee;Xr++)zr=E[Xr],Jo=zr.Da,x?(0<Se&&0<Hi&&mn+be+Jo.width>Se&&(mn<z&&Of(y,le,z-mn,0,hi,Xr-1),Qi++,Hi=0,hi=Xr,jt=Mt,mn=0,Ni=135<b?-Mt-rt:Mt+rt),wa=Hi===0?Oe:be,z0(a,zr,0,Ni),zr.S.h(mn+wa,Ni),wt=Math.max(wt,mn+wa+Jo.width),Mt=Math.max(Mt,jt+(Qi===0?0:rt)+Jo.height),mn+=wa+Jo.width):(0<Se&&0<Hi&&Ni+be+Jo.height>Se&&(Ni<z&&Of(y,le,0,z-Ni,hi,Xr-1),Qi++,Hi=0,hi=Xr,jt=wt,Ni=0,mn=135<b?-wt-rt:wt+rt),wa=Hi===0?Oe:be,z0(a,zr,mn,0),zr.S.h(mn,Ni+wa),Mt=Math.max(Mt,Ni+wa+Jo.height),wt=Math.max(wt,jt+(Qi===0?0:rt)+Jo.width),Ni+=wa+Jo.height),Hi++;switch(0<Qi&&(x?(Mt+=Math.max(0,oe),mn<wt&&Of(y,le,wt-mn,0,hi,ee-1),0<Ye&&(fe||ug(y,Ye,0,0,ee-1),wt+=Ye)):(wt+=Math.max(0,oe),Ni<Mt&&Of(y,le,0,Mt-Ni,hi,ee-1),0<Ye&&(fe||ug(y,0,Ye,0,ee-1),Mt+=Ye))),Ye=fe=0,le){case _g:x?fe+=wt/2-y.focus.x-Ae/2:Ye+=Mt/2-y.focus.y-Ae/2;break;case dg:0<Qi?x?fe+=wt/2-y.focus.x-Ae/2:Ye+=Mt/2-y.focus.y-Ae/2:x?(a=E[0].S.x+E[0].la.x,fe+=a+(E[ee-1].S.x+E[ee-1].la.x+2*E[ee-1].focus.x-a)/2-y.focus.x-Ae/2):(a=E[0].S.y+E[0].la.y,Ye+=a+(E[ee-1].S.y+E[ee-1].la.y+2*E[ee-1].focus.y-a)/2-y.focus.y-Ae/2);break;case Od:x?(fe-=Ae,wt+=Ae):(Ye-=Ae,Mt+=Ae);break;case Id:x?(fe+=wt-y.width+Ae,wt+=Ae):(Ye+=Mt-y.height+Ae,Mt+=Ae);break;case Mh:case Rd:x?1<ee?fe+=_n+be/2-y.focus.x:fe+=E[0].focus.x-y.focus.x+E[0].la.x:1<ee?Ye+=_n+be/2-y.focus.y:Ye+=E[0].focus.y-y.focus.y+E[0].la.y;break;case kh:x?fe+=wt+be/2-y.focus.x:Ye+=Mt+be/2-y.focus.y;break;case nh:break;default:a=a.customAlignment(y,fe,Ye,wt,Mt),fe=a[0],Ye=a[1],wt=a[2],Mt=a[3]}for(a=0;a<ee;a++)Ae=E[a],x?Ae.S.h(Ae.S.x+Ae.la.x-fe,Ae.S.y+(135<b?(re?-Mt:-Ae.Da.height)+Ae.la.y-oe:mt+oe+Ae.la.y)):Ae.S.h(Ae.S.x+(135<b?(re?-wt:-Ae.Da.width)+Ae.la.x-oe:ue+oe+Ae.la.x),Ae.S.y+Ae.la.y-Ye);x?(wt=By(y,wt,fe),0>fe&&(fe=0),135<b&&(Ye+=Mt+oe),Mt=Math.max(Math.max(Mt,mt),Mt+mt+oe)):(135<b&&(fe+=wt+oe),wt=Math.max(Math.max(wt,ue),wt+ue+oe),Mt=Ty(y,Mt,Ye),0>Ye&&(Ye=0)),y.la.h(fe,Ye),y.Da.h(wt,Mt)}}Co.prototype.customAlignment=function(a,y,x,b,E){return[y,x,b,E]};function p1(a,y,x,b,E,z){var ee=x.length;if(ee===0)return new Pn(b,0,E,z);if(ee===1)return y=x[0],E=y.Da.width,z=y.Da.height,new Pn(b,0,E,z);for(var re=y.nodeSpacing,oe=y.rowSpacing,le=Uc(y)===90,ue=0,fe=0,Se=0,be=0;be<ee;be++)if(!(be%2!==0||1<ee&&be===ee-1)){var Ae=x[be],Oe=Ae.Da,rt=ue===0?0:oe;if(le){var Ye=a.computeBusNodeSpacing(Ae)-re;Ae.S.h(b-(Oe.width+Ye),Se+rt),E=Math.max(E,Oe.width+Ye),z=Math.max(z,Se+rt+Oe.height),Se+=rt+Oe.height}else Ye=a.computeBusNodeSpacing(Ae)-re,Ae.S.h(fe+rt,b-(Oe.height+Ye)),z=Math.max(z,Oe.height+Ye),E=Math.max(E,fe+rt+Oe.width),fe+=rt+Oe.width;ue++}for(ue=0,Ae=fe,be=Se,le?(fe=b+re,Se=0):(fe=0,Se=b+re),Oe=0;Oe<ee;Oe++)if(Oe%2!==0){rt=x[Oe],Ye=rt.Da;var mt=ue===0?0:oe;if(le){var wt=a.computeBusNodeSpacing(rt)-re;rt.S.h(fe+wt,Se+mt),E=Math.max(E,fe+Ye.width+wt),z=Math.max(z,Se+mt+Ye.height),Se+=mt+Ye.height}else wt=a.computeBusNodeSpacing(rt)-re,rt.S.h(fe+mt,Se+wt),E=Math.max(E,fe+mt+Ye.width),z=Math.max(z,Se+Ye.height+wt),fe+=mt+Ye.width;ue++}return 1<ee&&ee%2===1&&(x=x[ee-1],ee=x.Da,a=a.computeBusLastRowSpacing(x,le?Math.max(Math.abs(be),Math.abs(Se)):Math.max(Math.abs(Ae),Math.abs(fe))),le?(x.S.h(b+re/2-x.focus.x-x.la.x,z+a),le=b+re/2-x.focus.x-x.la.x,E=Math.max(E,le+ee.width),0>le&&(E-=le),z=Math.max(z,Math.max(be,Se)+a+ee.height),0>x.S.x&&(b=R0(y,x.S.x,!1,b,re))):(x.S.h(E+a,b+re/2-x.focus.y-x.la.y),E=Math.max(E,Math.max(Ae,fe)+a+ee.width),Se=b+re/2-x.focus.y-x.la.y,z=Math.max(z,Se+ee.height),0>Se&&(z-=Se),0>x.S.y&&(b=R0(y,x.S.y,!0,b,re)))),new Pn(b,0,E,z)}function m1(a,y,x,b,E,z){var ee=x.length;if(ee===0)return new Pn(b,0,E,z);if(ee===1)return x=x[0],E=x.Da.width,z=x.Da.height,new Pn(b,0,E,z);for(var re=y.nodeSpacing,oe=y.rowSpacing,le=Uc(y)===270,ue=0,fe=0,Se=0,be=0;be<ee;be++)if(!(be%2!==0||1<ee&&be===ee-1)){var Ae=x[be],Oe=Ae.Da,rt=ue===0?0:oe;if(le){var Ye=a.computeBusNodeSpacing(Ae)-re;Se-=rt+Oe.height,Ae.S.h(b-(Oe.width+Ye),Se),E=Math.max(E,Oe.width+Ye),z=Math.max(z,Math.abs(Se))}else Ye=a.computeBusNodeSpacing(Ae)-re,fe-=rt+Oe.width,Ae.S.h(fe,b-(Oe.height+Ye)),z=Math.max(z,Oe.height+Ye),E=Math.max(E,Math.abs(fe));ue++}for(ue=0,Ae=fe,be=Se,le?(fe=b+re,Se=0):(fe=0,Se=b+re),Oe=0;Oe<ee;Oe++)if(Oe%2!==0){rt=x[Oe],Ye=rt.Da;var mt=ue===0?0:oe;if(le){var wt=a.computeBusNodeSpacing(rt)-re;Se-=mt+Ye.height,rt.S.h(fe+wt,Se),E=Math.max(E,fe+Ye.width+wt),z=Math.max(z,Math.abs(Se))}else wt=a.computeBusNodeSpacing(rt)-re,fe-=mt+Ye.width,rt.S.h(fe,Se+wt),z=Math.max(z,Se+Ye.height+wt),E=Math.max(E,Math.abs(fe));ue++}for(1<ee&&ee%2===1&&(oe=x[ee-1],ue=oe.Da,a=a.computeBusLastRowSpacing(oe,le?Math.max(Math.abs(be),Math.abs(Se)):Math.max(Math.abs(Ae),Math.abs(fe))),le?(oe.S.h(b+re/2-oe.focus.x-oe.la.x,-z-ue.height-a),fe=b+re/2-oe.focus.x-oe.la.x,E=Math.max(E,fe+ue.width),0>fe&&(E-=fe),z=Math.max(z,Math.abs(Math.min(be,Se))+a+ue.height),0>oe.S.x&&(b=R0(y,oe.S.x,!1,b,re))):(oe.S.h(-E-ue.width-a,b+re/2-oe.focus.y-oe.la.y),E=Math.max(E,Math.abs(Math.min(Ae,fe))+a+ue.width),Se=b+re/2-oe.focus.y-oe.la.y,z=Math.max(z,Se+ue.height),0>Se&&(z-=Se),0>oe.S.y&&(b=R0(y,oe.S.y,!0,b,re)))),y=0;y<ee;y++)re=x[y],le?re.S.h(re.S.x,re.S.y+z):re.S.h(re.S.x+E,re.S.y);return new Pn(b,0,E,z)}Co.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},Co.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function R0(a,y,x,b,E){a=a.children;for(var z=a.length,ee=0;ee<z;ee++)x?a[ee].S.h(a[ee].S.x,a[ee].S.y-y):a[ee].S.h(a[ee].S.x-y,a[ee].S.y);return y=a[z-1],Math.max(b,x?y.la.y+y.focus.y-E/2:y.la.x+y.focus.x-E/2)}function By(a,y,x){switch(a.alignment){case dg:case _g:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case Od:return a.width>y?a.width:y;case Id:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case Mh:case Rd:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case kh:return a.width-a.focus.x+a.nodeSpacing/2+y;case nh:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function Ty(a,y,x){switch(a.alignment){case dg:case _g:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Od:return a.height>y?a.height:y;case Id:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case Mh:case Rd:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case kh:return a.height-a.focus.y+a.nodeSpacing/2+y;case nh:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Oy(a,y,x){switch(a){case _g:y/=2,x/=2;break;case dg:y/=2,x/=2;break;case Od:x=y=0;break;case Id:break;default:Pt("Unhandled alignment value "+a.toString())}return new Je(y,x)}function Of(a,y,x,b,E,z){y=Oy(y,x,b),ug(a,y.x,y.y,E,z)}function ug(a,y,x,b,E){if(y!==0||x!==0)for(a=a.children;b<=E;b++){var z=a[b].S;z.x+=y,z.y+=x}}function z0(a,y,x,b){var E=y.parent;switch(a.ud){case Td:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===E&&y.relativePoint.h(x,b);break;case cg:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===E&&y.relativePoint.h(x,b);break;default:Pt("Unhandled path value "+a.ud.toString())}}function j0(a,y,x){for(var b=0;b<a.length;b++){var E=a[b];E.x+=y,E.y+=x}}function v1(a,y,x,b,E,z,ee,re){var oe=Uc(y),le=oe===90||oe===270,ue=y.nodeSpacing;y=b;var fe=E;b=z;var Se=ee,be=x.Yo,Ae=x.kp;ee=x.Da;var Oe=le?Math.max(Se,ee.height):Math.max(b,ee.width);if((be===null||oe!==Uc(x))&&(be=Ou(a,2),Ae=Ou(a,2),le?(be[0].h(0,0),be[1].h(0,ee.height),Ae[0].h(ee.width,0),Ae[1].h(Ae[0].x,be[1].y)):(be[0].h(0,0),be[1].h(ee.width,0),Ae[0].h(0,ee.height),Ae[1].h(be[1].x,Ae[0].y))),le){if(Se=9999999,!(fe===null||2>fe.length||be===null||2>be.length))for(E=x=0;x<fe.length&&E<be.length;){z=fe[x];var rt=be[E];oe=rt.x,le=rt.y,oe+=b;var Ye=z;x+1<fe.length&&(Ye=fe[x+1]);var mt=rt;rt=mt.x,mt=mt.y,E+1<be.length&&(mt=be[E+1],rt=mt.x,mt=mt.y,rt+=b);var wt=Se;z.y===le?wt=oe-z.x:z.y>le&&z.y<mt?wt=oe+(z.y-le)/(mt-le)*(rt-oe)-z.x:le>z.y&&le<Ye.y&&(wt=oe-(z.x+(le-z.y)/(Ye.y-z.y)*(Ye.x-z.x))),wt<Se&&(Se=wt),Ye.y<=z.y?x++:mt<=le?E++:(Ye.y<=mt&&x++,mt<=Ye.y&&E++)}if(Se=b-Se,Se+=ue,x=be,E=Se,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ue=Ou(a,y.length+x.length),b=z=oe=0;z<x.length&&x[z].y<y[0].y;)le=x[z++],ue[b++].h(le.x+E,le.y);for(;oe<y.length;)le=y[oe++],ue[b++].h(le.x,le.y);for(oe=y[y.length-1].y;z<x.length&&x[z].y<=oe;)z++;for(;z<x.length&&x[z].y>oe;)le=x[z++],ue[b++].h(le.x+E,le.y);for(x=Ou(a,b),oe=0;oe<b;oe++)x[oe].assign(ue[oe]);sd(a,ue),b=x}if(z=Ae,oe=Se,fe===null||2>fe.length||z===null||2>z.length)E=null;else{for(ue=Ou(a,fe.length+z.length),E=le=x=0;x<fe.length&&fe[x].y<z[0].y;)Ye=fe[x++],ue[E++].h(Ye.x,Ye.y);for(;le<z.length;)Ye=z[le++],ue[E++].h(Ye.x+oe,Ye.y);for(z=z[z.length-1].y;x<fe.length&&fe[x].y<=z;)x++;for(;x<fe.length&&fe[x].y>z;)oe=fe[x++],ue[E++].h(oe.x,oe.y);for(z=Ou(a,E),x=0;x<E;x++)z[x].assign(ue[x]);sd(a,ue),E=z}return z=Math.max(0,Se)+ee.width,ee=Oe,sd(a,y),sd(a,be),sd(a,fe),sd(a,Ae),re[0]=b,re[1]=E,new Pn(Se,0,z,ee)}if(b=9999999,!(fe===null||2>fe.length||be===null||2>be.length))for(E=x=0;x<fe.length&&E<be.length;)z=fe[x],rt=be[E],oe=rt.x,le=rt.y,le+=Se,Ye=z,x+1<fe.length&&(Ye=fe[x+1]),mt=rt,rt=mt.x,mt=mt.y,E+1<be.length&&(mt=be[E+1],rt=mt.x,mt=mt.y,mt+=Se),wt=b,z.x===oe?wt=le-z.y:z.x>oe&&z.x<rt?wt=le+(z.x-oe)/(rt-oe)*(mt-le)-z.y:oe>z.x&&oe<Ye.x&&(wt=le-(z.y+(oe-z.x)/(Ye.x-z.x)*(Ye.y-z.y))),wt<b&&(b=wt),Ye.x<=z.x?x++:rt<=oe?E++:(Ye.x<=rt&&x++,rt<=Ye.x&&E++);if(Se-=b,Se+=ue,x=be,E=Se,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ue=Ou(a,y.length+x.length),b=z=oe=0;z<x.length&&x[z].x<y[0].x;)le=x[z++],ue[b++].h(le.x,le.y+E);for(;oe<y.length;)le=y[oe++],ue[b++].h(le.x,le.y);for(oe=y[y.length-1].x;z<x.length&&x[z].x<=oe;)z++;for(;z<x.length&&x[z].x>oe;)le=x[z++],ue[b++].h(le.x,le.y+E);for(x=Ou(a,b),oe=0;oe<b;oe++)x[oe].assign(ue[oe]);sd(a,ue),b=x}if(z=Ae,oe=Se,fe===null||2>fe.length||z===null||2>z.length)E=null;else{for(ue=Ou(a,fe.length+z.length),E=le=x=0;x<fe.length&&fe[x].x<z[0].x;)Ye=fe[x++],ue[E++].h(Ye.x,Ye.y);for(;le<z.length;)Ye=z[le++],ue[E++].h(Ye.x,Ye.y+oe);for(z=z[z.length-1].x;x<fe.length&&fe[x].x<=z;)x++;for(;x<fe.length&&fe[x].x>z;)oe=fe[x++],ue[E++].h(oe.x,oe.y);for(z=Ou(a,E),x=0;x<E;x++)z[x].assign(ue[x]);sd(a,ue),E=z}return z=Oe,ee=Math.max(0,Se)+ee.height,sd(a,y),sd(a,be),sd(a,fe),sd(a,Ae),re[0]=b,re[1]=E,new Pn(Se,0,z,ee)}function Ou(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 Je;return a}function sd(a,y){var x=y.length,b=a.ru[x];b===void 0&&(b=[],a.ru[x]=b),b.push(y)}Co.prototype.arrangeTrees=function(){if(this.Rb===V0)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof Dc){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),Iy(this,y,x,b)}}}else{for(a=[],y=this.Ub.iterator;y.next();)x=y.value,x instanceof Dc&&a.push(x);switch(this.sorting){case Qg:break;case tm:a.reverse();break;case nm:a.sort(this.comparer);break;case im:a.sort(this.comparer),a.reverse();break;default:Pt("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(Iy(this,E,y+E.la.x,x+E.la.y),this.Rb){case K0:x+=E.Da.height+this.$d.height;break;case Hy:y+=E.Da.width+this.$d.width;break;default:Pt("Unhandled arrangement value "+this.Rb.toString())}}}};function Iy(a,y,x,b){if(y!==null){y.x=x,y.y=b,y=y.children;for(var E=y.length,z=0;z<E;z++){var ee=y[z];Iy(a,ee,x+ee.S.x,b+ee.S.y)}}}Co.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},Co.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},Co.prototype.Gu=function(){if(this.layerStyle===G0){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 z=y[E.level];z===void 0?z=this.computeLayerSpacing(E):z=Math.max(z,this.computeLayerSpacing(E)),y[E.level]=z}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 Je(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),b=new Je(-this.layerSpacing/2,-this.nodeSpacing/2)),E=[],x=this.angle===90||this.angle===270?x.width:x.height,z=0,this.angle===180||this.angle===270)for(var ee=0;ee<a.length;ee++)z+=a[ee]+y[ee];for(ee=0;ee<a.length;ee++){var re=a[ee]+y[ee];this.angle===270?(z-=re,E.push(new Pn(0,z,x,re))):this.angle===90?(E.push(new Pn(0,z,x,re)),z+=re):this.angle===180?(z-=re,E.push(new Pn(z,0,re,x))):(E.push(new Pn(z,0,re,x)),z+=re)}this.commitLayers(E,b)}},Co.prototype.commitLayers=function(){},Co.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Co.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof Dc&&y1(this,y)}};function y1(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var x=y.length,b=0;b<x;b++)y1(a,y[b])}}Co.prototype.setPortSpots=function(a){var y=a.alignment;if(of(y)){var x=this.ud===Td,b=Uc(a);switch(b){case 0:var E=Ls;break;case 90:E=xs;break;case 180:E=hs;break;default:E=os}var z=a.children,ee=z.length;switch(y){case Mh:case Rd:for(y=0;y<ee;y++){var re=z[y];if(re=(x?re.sourceEdges:re.destinationEdges).first(),re!==null&&(re=re.link,re!==null)){var oe=b===90||b===270?hs:os;if(ee===1||y===ee-1&&ee%2===1)switch(b){case 0:oe=hs;break;case 90:oe=os;break;case 180:oe=Ls;break;default:oe=xs}else y%2===0&&(oe=b===90||b===270?Ls:xs);x?(a.setsPortSpot&&(re.fromSpot=E),a.setsChildPortSpot&&(re.toSpot=oe)):(a.setsPortSpot&&(re.fromSpot=oe),a.setsChildPortSpot&&(re.toSpot=E))}}break;case kh:for(b=b===90||b===270?Ls:xs,z=x?a.destinationEdges:a.sourceEdges;z.next();)ee=z.value.link,ee!==null&&(x?(a.setsPortSpot&&(ee.fromSpot=E),a.setsChildPortSpot&&(ee.toSpot=b)):(a.setsPortSpot&&(ee.fromSpot=b),a.setsChildPortSpot&&(ee.toSpot=E)));break;case nh:for(b=b===90||b===270?hs:os,z=x?a.destinationEdges:a.sourceEdges;z.next();)ee=z.value.link,ee!==null&&(x?(a.setsPortSpot&&(ee.fromSpot=E),a.setsChildPortSpot&&(ee.toSpot=b)):(a.setsPortSpot&&(ee.fromSpot=b),a.setsChildPortSpot&&(ee.toSpot=E)))}}else if(x=Uc(a),this.ud===Td){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=Ls;break;case 90:b.fromSpot=xs;break;case 180:b.fromSpot=hs;break;default:b.fromSpot=os}else b.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.toSpot=hs;break;case 90:b.toSpot=os;break;case 180:b.toSpot=Ls;break;default:b.toSpot=xs}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=Ls;break;case 90:b.toSpot=xs;break;case 180:b.toSpot=hs;break;default:b.toSpot=os}else b.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.fromSpot=hs;break;case 90:b.fromSpot=os;break;case 180:b.fromSpot=Ls;break;default:b.fromSpot=xs}else b.fromSpot=a.childPortSpot}};function Uc(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}Co.prototype.computeLayerSpacing=function(a){var y=Uc(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},Co.prototype.computeNodeIndent=function(a){var y=Uc(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)},tt.Object.defineProperties(Co.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!==Z0&&a!==zy&&a!==Ry&&a!==jy||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==Wy&&a!==Zy&&a!==G0||(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!==K0&&a!==Hy&&a!==V0||(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!==Qg&&a!==tm&&a!==nm&&!im||(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()):Pt("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!==W0&&a!==rm||(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!==Qg&&a!==tm&&a!==nm&&!im||(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!==W0&&a!==rm||(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 H0=new Xt(Co,"PathDefault",-1),Td=new Xt(Co,"PathDestination",0),cg=new Xt(Co,"PathSource",1),Qg=new Xt(Co,"SortingForwards",10),tm=new Xt(Co,"SortingReverse",11),nm=new Xt(Co,"SortingAscending",12),im=new Xt(Co,"SortingDescending",13),_g=new Xt(Co,"AlignmentCenterSubtrees",20),dg=new Xt(Co,"AlignmentCenterChildren",21),Od=new Xt(Co,"AlignmentStart",22),Id=new Xt(Co,"AlignmentEnd",23),Mh=new Xt(Co,"AlignmentBus",24),Rd=new Xt(Co,"AlignmentBusBranching",25),kh=new Xt(Co,"AlignmentTopLeftBus",26),nh=new Xt(Co,"AlignmentBottomRightBus",27),W0=new Xt(Co,"CompactionNone",30),rm=new Xt(Co,"CompactionBlock",31),Z0=new Xt(Co,"StyleLayered",40),Ry=new Xt(Co,"StyleLastParents",41),zy=new Xt(Co,"StyleAlternating",42),jy=new Xt(Co,"StyleRootOnly",43),K0=new Xt(Co,"ArrangementVertical",50),Hy=new Xt(Co,"ArrangementHorizontal",51),V0=new Xt(Co,"ArrangementFixedRoots",52),Wy=new Xt(Co,"LayerIndividual",60),Zy=new Xt(Co,"LayerSiblings",61),G0=new Xt(Co,"LayerUniform",62);Co.className="TreeLayout",Co.PathDefault=H0,Co.PathDestination=Td,Co.PathSource=cg,Co.SortingForwards=Qg,Co.SortingReverse=tm,Co.SortingAscending=nm,Co.SortingDescending=im,Co.AlignmentCenterSubtrees=_g,Co.AlignmentCenterChildren=dg,Co.AlignmentStart=Od,Co.AlignmentEnd=Id,Co.AlignmentBus=Mh,Co.AlignmentBusBranching=Rd,Co.AlignmentTopLeftBus=kh,Co.AlignmentBottomRightBus=nh,Co.CompactionNone=W0,Co.CompactionBlock=rm,Co.StyleLayered=Z0,Co.StyleLastParents=Ry,Co.StyleAlternating=zy,Co.StyleRootOnly=jy,Co.ArrangementVertical=K0,Co.ArrangementHorizontal=Hy,Co.ArrangementFixedRoots=V0,Co.LayerIndividual=Wy,Co.LayerSiblings=Zy,Co.LayerUniform=G0;function hg(a){Ea.call(this,a)}Lt(hg,Ea),hg.prototype.createVertex=function(){return new Dc(this)},hg.prototype.createEdge=function(){return new $g(this)},hg.className="TreeNetwork";function Dc(a){Xs.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 Je(0,0),this.Da=new On(0,0),this.la=new Je(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Qg,this.hd=ly,this.Kb=0,this.Jb=dg,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=rm,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=Xo,this.wr=!0,this.Dp=Xo}Lt(Dc,Xs),Dc.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)},tt.Object.defineProperties(Dc.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)}}}),Dc.className="TreeVertex";function $g(a){Gu.call(this,a),this.$t=new Je(0,0)}Lt($g,Gu),$g.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 Td:x=this.fromVertex,b=this.toVertex;break;case cg:x=this.toVertex,b=this.fromVertex;break;default:Pt("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 z=Uc(x),ee=y.computeLayerSpacing(x),re=x.rowSpacing;a.vg();var oe=a.curve===nc,le=a.isOrthogonal,ue;if(a.uh(),le||oe){for(ue=2;4<a.pointsCount;)a.pv(2);var fe=a.i(1),Se=a.i(2)}else{for(ue=1;3<a.pointsCount;)a.pv(1);fe=a.i(0),Se=a.i(a.pointsCount-1)}var be=a.i(a.pointsCount-1);z===0?(x.alignment===Id?(z=b.bottom+E.y,E.y===0&&fe.y>be.y+x.rowIndent&&(z=Math.min(z,Math.max(fe.y,z-y.computeNodeIndent(x))))):x.alignment===Od?(z=b.top+E.y,E.y===0&&fe.y<be.y-x.rowIndent&&(z=Math.max(z,Math.min(fe.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+E.y:b.y+b.height/2+E.y,oe?(a.m(ue,fe.x,z),ue++,a.m(ue,b.right+ee,z),ue++,a.m(ue,b.right+ee+(E.x-re)/3,z),ue++,a.m(ue,b.right+ee+2*(E.x-re)/3,z),ue++,a.m(ue,b.right+ee+(E.x-re),z),ue++,a.m(ue,Se.x,z)):(le&&(a.m(ue,b.right+ee/2,fe.y),ue++),a.m(ue,b.right+ee/2,z),ue++,a.m(ue,b.right+ee+E.x-(le?re/2:re),z),ue++,le&&a.m(ue,a.i(ue-1).x,Se.y))):z===90?(x.alignment===Id?(z=b.right+E.x,E.x===0&&fe.x>be.x+x.rowIndent&&(z=Math.min(z,Math.max(fe.x,z-y.computeNodeIndent(x))))):x.alignment===Od?(z=b.left+E.x,E.x===0&&fe.x<be.x-x.rowIndent&&(z=Math.max(z,Math.min(fe.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+E.x:b.x+b.width/2+E.x,oe?(a.m(ue,z,fe.y),ue++,a.m(ue,z,b.bottom+ee),ue++,a.m(ue,z,b.bottom+ee+(E.y-re)/3),ue++,a.m(ue,z,b.bottom+ee+2*(E.y-re)/3),ue++,a.m(ue,z,b.bottom+ee+(E.y-re)),ue++,a.m(ue,z,Se.y)):(le&&(a.m(ue,fe.x,b.bottom+ee/2),ue++),a.m(ue,z,b.bottom+ee/2),ue++,a.m(ue,z,b.bottom+ee+E.y-(le?re/2:re)),ue++,le&&a.m(ue,Se.x,a.i(ue-1).y))):z===180?(x.alignment===Id?(z=b.bottom+E.y,E.y===0&&fe.y>be.y+x.rowIndent&&(z=Math.min(z,Math.max(fe.y,z-y.computeNodeIndent(x))))):x.alignment===Od?(z=b.top+E.y,E.y===0&&fe.y<be.y-x.rowIndent&&(z=Math.max(z,Math.min(fe.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+E.y:b.y+b.height/2+E.y,oe?(a.m(ue,fe.x,z),ue++,a.m(ue,b.left-ee,z),ue++,a.m(ue,b.left-ee+(E.x+re)/3,z),ue++,a.m(ue,b.left-ee+2*(E.x+re)/3,z),ue++,a.m(ue,b.left-ee+(E.x+re),z),ue++,a.m(ue,Se.x,z)):(le&&(a.m(ue,b.left-ee/2,fe.y),ue++),a.m(ue,b.left-ee/2,z),ue++,a.m(ue,b.left-ee+E.x+(le?re/2:re),z),ue++,le&&a.m(ue,a.i(ue-1).x,Se.y))):z===270?(x.alignment===Id?(z=b.right+E.x,E.x===0&&fe.x>be.x+x.rowIndent&&(z=Math.min(z,Math.max(fe.x,z-y.computeNodeIndent(x))))):x.alignment===Od?(z=b.left+E.x,E.x===0&&fe.x<be.x-x.rowIndent&&(z=Math.max(z,Math.min(fe.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+E.x:b.x+b.width/2+E.x,oe?(a.m(ue,z,fe.y),ue++,a.m(ue,z,b.top-ee),ue++,a.m(ue,z,b.top-ee+(E.y+re)/3),ue++,a.m(ue,z,b.top-ee+2*(E.y+re)/3),ue++,a.m(ue,z,b.top-ee+(E.y+re)),ue++,a.m(ue,z,Se.y)):(le&&(a.m(ue,fe.x,b.top-ee/2),ue++),a.m(ue,z,b.top-ee/2),ue++,a.m(ue,z,b.top-ee+E.y+(le?re/2:re)),ue++,le&&a.m(ue,Se.x,a.i(ue-1).y))):Pt("Invalid angle "+z),a.zf()}else E=b,a=this.link,b=this.network.layout,y=Uc(x),y!==Uc(E)&&(ee=b.computeLayerSpacing(x),re=x.bounds,x=E.bounds,y===0&&x.left-re.right<ee+1||y===90&&x.top-re.bottom<ee+1||y===180&&re.left-x.right<ee+1||y===270&&re.top-x.bottom<ee+1||(a.vg(),x=a.curve===nc,E=a.isOrthogonal,b=of(this.fromVertex.alignment),a.uh(),y===0?(y=re.right+ee/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=re.bottom+ee/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=re.left-ee/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=re.top-ee/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()))}}},tt.Object.defineProperties($g.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)}}}),$g.className="TreeEdge",ti.prototype.initializeStandardTools=function(){this.gb("Action",new Rr,this.mouseDownTools),this.gb("Relinking",new ji,this.mouseDownTools),this.gb("LinkReshaping",new Vi,this.mouseDownTools),this.gb("Rotating",new to,this.mouseDownTools),this.gb("Resizing",new Wr,this.mouseDownTools),this.gb("Linking",new ni,this.mouseMoveTools),this.gb("Dragging",new ur,this.mouseMoveTools),this.gb("DragSelecting",new Zr,this.mouseMoveTools),this.gb("Panning",new mr,this.mouseMoveTools),this.gb("ContextMenu",new Mo,this.mouseUpTools),this.gb("TextEditing",new Po,this.mouseUpTools),this.gb("ClickCreating",new lo,this.mouseUpTools),this.gb("ClickSelecting",new Ko,this.mouseUpTools)},yd("Horizontal",new xm),yd("Spot",new Pm),yd("Table",new bm),yd("Viewbox",new Lm),yd("TableRow",new Em),yd("TableColumn",new Am),yd("Graduated",new xp),yd("Grid",new Sp),nd.add("GraphLinksModel",ul),nd.add("TreeModel",pc);var Y0=Ue.go,Ky={get licenseKey(){return pn.licenseKey},set licenseKey(a){pn.licenseKey=a},get version(){return pn.version},Group:Jr,EnumValue:Xt,List:Mn,Set:An,Map:zi,Point:Je,Size:On,Rect:Pn,Margin:Gi,Spot:Ui,Geometry:di,PathFigure:Os,PathSegment:Io,InputEvent:nn,DiagramEvent:hn,ChangedEvent:Tn,Model:or,GraphLinksModel:Bo,TreeModel:uu,Binding:ks,Transaction:lr,UndoManager:Ai,CommandHandler:it,Tool:Ei,DraggingTool:ur,DraggingInfo:Qd,DraggingOptions:ae,LinkingBaseTool:gn,LinkingTool:ni,RelinkingTool:ji,LinkReshapingTool:Vi,ResizingTool:Wr,RotatingTool:to,ClickSelectingTool:Ko,ActionTool:Rr,ClickCreatingTool:lo,HTMLInfo:Nr,ContextMenuTool:Mo,DragSelectingTool:Zr,PanningTool:mr,TextEditingTool:Po,ToolManager:ti,Animation:$a,AnimationManager:Na,AnimationTrigger:yu,Layer:za,Diagram:pn,Palette:he,Overview:pe,Brush:ia,GraphObject:Kt,Panel:si,RowColumnDefinition:Ws,Shape:oo,TextBlock:ba,Picture:Cu,Part:dr,Adornment:Yo,Node:Di,Link:fi,Placeholder:ou,Layout:Za,LayoutNetwork:Ea,LayoutVertex:Xs,LayoutEdge:Gu,GridLayout:Cl,PanelLayout:Us,CircularLayout:qa,CircularNetwork:Ug,CircularVertex:Xp,CircularEdge:A0,ForceDirectedLayout:Bl,ForceDirectedNetwork:lg,ForceDirectedVertex:Jp,ForceDirectedEdge:Qp,LayeredDigraphLayout:oa,LayeredDigraphNetwork:Jg,LayeredDigraphVertex:vc,LayeredDigraphEdge:qp,TreeLayout:Co,TreeNetwork:hg,TreeVertex:Dc,TreeEdge:$g};typeof Y0=="object"&&Y0.version&&Xn("WARNING: a `go` object on the root object is already defined. "+("Debug"in Y0?"debug ":"")+"version: "+Y0.version+", replaced with version: "+Ky.version),pn.prototype.go=Ky,Ue.go=Ky,typeof In.exports=="object"&&(In.exports=typeof ye.g!="undefined"?ye.g.go:self.go)}();var xe=typeof ye.g!="undefined"?ye.g.go:self.go;const Ie=typeof ye.g!="undefined"?ye.g.go:self.go,We=Ie.Group,It=Ie.EnumValue,Qe=Ie.List,vt=Ie.Set,Ne=Ie.Map,Tt=Ie.Point,Ft=Ie.Size,qe=Ie.Rect,gt=Ie.Margin,dt=Ie.Spot,Ct=Ie.Geometry,Me=Ie.PathFigure,te=Ie.PathSegment,ne=Ie.InputEvent,ce=Ie.DiagramEvent,se=Ie.ChangedEvent,ge=Ie.Model,ve=Ie.GraphLinksModel,Ce=Ie.TreeModel,ke=Ie.Binding,Pe=Ie.Transaction,Te=Ie.UndoManager,Ke=Ie.CommandHandler,et=Ie.Tool,Xe=Ie.DraggingTool,ft=Ie.DraggingInfo,Ge=Ie.LinkingBaseTool,kt=Ie.LinkingTool,$e=Ie.RelinkingTool,zt=Ie.LinkReshapingTool,Ht=Ie.ResizingTool,Yt=Ie.RotatingTool,Bt=Ie.ClickSelectingTool,Qt=Ie.ActionTool,ht=Ie.ClickCreatingTool,je=Ie.HTMLInfo,At=Ie.ContextMenuTool,wn=Ie.DragSelectingTool,rn=Ie.PanningTool,bt=Ie.TextEditingTool,Jt=Ie.ToolManager,un=Ie.Animation,Kn=Ie.AnimationManager,En=Ie.AnimationTrigger,Yn=Ie.Layer,St=Ie.Diagram,Vn=Ie.Palette,Cn=Ie.Overview,Si=Ie.Brush,Bn=Ie.GraphObject,tn=Ie.Panel,$t=Ie.RowColumnDefinition,ct=Ie.Shape,ze=Ie.TextBlock,Ut=Ie.TextBlockMetrics,Gt=Ie.Picture,at=Ie.Part,Ve=Ie.Adornment,Be=Ie.Node,we=Ie.Link,me=Ie.Placeholder,De=Ie.Layout,Re=Ie.LayoutNetwork,Le=Ie.LayoutVertex,st=Ie.LayoutEdge,Vt=Ie.GridLayout,sn=Ie.PanelLayout,ln=Ie.CircularLayout,Hn=Ie.CircularNetwork,wi=Ie.CircularVertex,Pi=Ie.CircularEdge,Ri=Ie.ForceDirectedLayout,Zi=Ie.ForceDirectedNetwork,Ln=Ie.ForceDirectedVertex,rr=Ie.ForceDirectedEdge,Kr=Ie.LayeredDigraphLayout,Vr=Ie.LayeredDigraphNetwork,jr=Ie.LayeredDigraphVertex,li=Ie.LayeredDigraphEdge,Ti=Ie.TreeLayout,vr=Ie.TreeNetwork,ui=Ie.TreeVertex,Ir=Ie.TreeEdge,zn=Ie.version},24334:function(In,Fn,ye){var xe,Ie;(function(We,It){In.exports=It(We)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ye.g!="undefined"?ye.g:this,function(We){"use strict";We=We||{};var It=We.Base64,Qe="2.6.4",vt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ne=function($e){for(var zt={},Ht=0,Yt=$e.length;Ht<Yt;Ht++)zt[$e.charAt(Ht)]=Ht;return zt}(vt),Tt=String.fromCharCode,Ft=function($e){if($e.length<2){var zt=$e.charCodeAt(0);return zt<128?$e:zt<2048?Tt(192|zt>>>6)+Tt(128|zt&63):Tt(224|zt>>>12&15)+Tt(128|zt>>>6&63)+Tt(128|zt&63)}else{var zt=65536+($e.charCodeAt(0)-55296)*1024+($e.charCodeAt(1)-56320);return Tt(240|zt>>>18&7)+Tt(128|zt>>>12&63)+Tt(128|zt>>>6&63)+Tt(128|zt&63)}},qe=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,gt=function($e){return $e.replace(qe,Ft)},dt=function($e){var zt=[0,2,1][$e.length%3],Ht=$e.charCodeAt(0)<<16|($e.length>1?$e.charCodeAt(1):0)<<8|($e.length>2?$e.charCodeAt(2):0),Yt=[vt.charAt(Ht>>>18),vt.charAt(Ht>>>12&63),zt>=2?"=":vt.charAt(Ht>>>6&63),zt>=1?"=":vt.charAt(Ht&63)];return Yt.join("")},Ct=We.btoa&&typeof We.btoa=="function"?function($e){return We.btoa($e)}:function($e){if($e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return $e.replace(/[\s\S]{1,3}/g,dt)},Me=function($e){return Ct(gt(String($e)))},te=function($e){return $e.replace(/[+\/]/g,function(zt){return zt=="+"?"-":"_"}).replace(/=/g,"")},ne=function($e,zt){return zt?te(Me($e)):Me($e)},ce=function($e){return ne($e,!0)},se;We.Uint8Array&&(se=function($e,zt){for(var Ht="",Yt=0,Bt=$e.length;Yt<Bt;Yt+=3){var Qt=$e[Yt],ht=$e[Yt+1],je=$e[Yt+2],At=Qt<<16|ht<<8|je;Ht+=vt.charAt(At>>>18)+vt.charAt(At>>>12&63)+(typeof ht!="undefined"?vt.charAt(At>>>6&63):"=")+(typeof je!="undefined"?vt.charAt(At&63):"=")}return zt?te(Ht):Ht});var ge=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ve=function($e){switch($e.length){case 4:var zt=(7&$e.charCodeAt(0))<<18|(63&$e.charCodeAt(1))<<12|(63&$e.charCodeAt(2))<<6|63&$e.charCodeAt(3),Ht=zt-65536;return Tt((Ht>>>10)+55296)+Tt((Ht&1023)+56320);case 3:return Tt((15&$e.charCodeAt(0))<<12|(63&$e.charCodeAt(1))<<6|63&$e.charCodeAt(2));default:return Tt((31&$e.charCodeAt(0))<<6|63&$e.charCodeAt(1))}},Ce=function($e){return $e.replace(ge,ve)},ke=function($e){var zt=$e.length,Ht=zt%4,Yt=(zt>0?Ne[$e.charAt(0)]<<18:0)|(zt>1?Ne[$e.charAt(1)]<<12:0)|(zt>2?Ne[$e.charAt(2)]<<6:0)|(zt>3?Ne[$e.charAt(3)]:0),Bt=[Tt(Yt>>>16),Tt(Yt>>>8&255),Tt(Yt&255)];return Bt.length-=[0,0,2,1][Ht],Bt.join("")},Pe=We.atob&&typeof We.atob=="function"?function($e){return We.atob($e)}:function($e){return $e.replace(/\S{1,4}/g,ke)},Te=function($e){return Pe(String($e).replace(/[^A-Za-z0-9\+\/]/g,""))},Ke=function($e){return Ce(Pe($e))},et=function($e){return String($e).replace(/[-_]/g,function(zt){return zt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Xe=function($e){return Ke(et($e))},ft;We.Uint8Array&&(ft=function($e){return Uint8Array.from(Te(et($e)),function(zt){return zt.charCodeAt(0)})});var Ge=function(){var $e=We.Base64;return We.Base64=It,$e};if(We.Base64={VERSION:Qe,atob:Te,btoa:Ct,fromBase64:Xe,toBase64:ne,utob:gt,encode:ne,encodeURI:ce,btou:Ce,decode:Xe,noConflict:Ge,fromUint8Array:se,toUint8Array:ft},typeof Object.defineProperty=="function"){var kt=function($e){return{value:$e,enumerable:!1,writable:!0,configurable:!0}};We.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",kt(function(){return Xe(this)})),Object.defineProperty(String.prototype,"toBase64",kt(function($e){return ne(this,$e)})),Object.defineProperty(String.prototype,"toBase64URI",kt(function(){return ne(this,!0)}))}}return We.Meteor&&(Base64=We.Base64),In.exports?In.exports.Base64=We.Base64:(xe=[],Ie=function(){return We.Base64}.apply(Fn,xe),Ie!==void 0&&(In.exports=Ie)),{Base64:We.Base64}})},17115:function(In,Fn,ye){"use strict";ye.d(Fn,{ZP:function(){return Ne}});var xe=ye(29043),Ie=ye(59301),We=ye(87746),It=0,Qe=(0,We.Z)();function vt(){var Tt;return Qe?(Tt=It,It+=1):Tt="TEST_OR_SSR",Tt}function Ne(Tt){var Ft=Ie.useState(),qe=(0,xe.Z)(Ft,2),gt=qe[0],dt=qe[1];return Ie.useEffect(function(){dt("rc_select_".concat(vt()))},[]),Tt||gt}},77861:function(In,Fn,ye){"use strict";ye.d(Fn,{Ac:function(){return De},Xo:function(){return rr},Wx:function(){return Vr},ZP:function(){return fn},lk:function(){return Ce}});var xe=ye(5891),Ie=ye(26390),We=ye(80962),It=ye(57259),Qe=ye(29043),vt=ye(19149),Ne=ye(80665),Tt=ye(35788),Ft=ye(51395),qe=ye(59301),gt=ye(92310),dt=ye.n(gt),Ct=ye(28800),Me=ye(93144),te=ye(85108),ne=ye(20475),ce=function(Ue){var an=Ue.className,Dt=Ue.customizeIcon,Rn=Ue.customizeIconProps,dn=Ue.onMouseDown,Pt=Ue.onClick,Sn=Ue.children,Qn;return typeof Dt=="function"?Qn=Dt(Rn):Qn=Dt,qe.createElement("span",{className:an,onMouseDown:function(Rt){Rt.preventDefault(),dn&&dn(Rt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Pt,"aria-hidden":!0},Qn!==void 0?Qn:qe.createElement("span",{className:dt()(an.split(/\s+/).map(function(Xn){return"".concat(Xn,"-icon")}))},Sn))},se=ce;function ge(xt,Ue,an,Dt,Rn){var dn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Pt=arguments.length>6?arguments[6]:void 0,Sn=arguments.length>7?arguments[7]:void 0,Qn=qe.useMemo(function(){if((0,Ne.Z)(Dt)==="object")return Dt.clearIcon;if(Rn)return Rn},[Dt,Rn]),Xn=qe.useMemo(function(){return!!(!dn&&Dt&&(an.length||Pt)&&!(Sn==="combobox"&&Pt===""))},[Dt,dn,an.length,Pt,Sn]);return{allowClear:Xn,clearIcon:qe.createElement(se,{className:"".concat(xt,"-clear"),onMouseDown:Ue,customizeIcon:Qn},"\xD7")}}var ve=qe.createContext(null);function Ce(){return qe.useContext(ve)}function ke(){var xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ue=qe.useState(!1),an=(0,Qe.Z)(Ue,2),Dt=an[0],Rn=an[1],dn=qe.useRef(null),Pt=function(){window.clearTimeout(dn.current)};qe.useEffect(function(){return Pt},[]);var Sn=function(Xn,Rt){Pt(),dn.current=window.setTimeout(function(){Rn(Xn),Rt&&Rt()},xt)};return[Dt,Sn,Pt]}function Pe(){var xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ue=qe.useRef(null),an=qe.useRef(null);qe.useEffect(function(){return function(){window.clearTimeout(an.current)}},[]);function Dt(Rn){(Rn||Ue.current===null)&&(Ue.current=Rn),window.clearTimeout(an.current),an.current=window.setTimeout(function(){Ue.current=null},xt)}return[function(){return Ue.current},Dt]}function Te(xt,Ue,an,Dt){var Rn=qe.useRef(null);Rn.current={open:Ue,triggerOpen:an,customizedTrigger:Dt},qe.useEffect(function(){function dn(Pt){var Sn;if(!((Sn=Rn.current)!==null&&Sn!==void 0&&Sn.customizedTrigger)){var Qn=Pt.target;Qn.shadowRoot&&Pt.composed&&(Qn=Pt.composedPath()[0]||Qn),Rn.current.open&&xt().filter(function(Xn){return Xn}).every(function(Xn){return!Xn.contains(Qn)&&Xn!==Qn})&&Rn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",dn),function(){return window.removeEventListener("mousedown",dn)}},[])}var Ke=ye(36994),et=ye(11780),Xe=function(Ue,an){var Dt,Rn,dn=Ue.prefixCls,Pt=Ue.id,Sn=Ue.inputElement,Qn=Ue.disabled,Xn=Ue.tabIndex,Rt=Ue.autoFocus,vn=Ue.autoComplete,bi=Ue.editable,vi=Ue.activeDescendantId,pi=Ue.value,ei=Ue.maxLength,yi=Ue.onKeyDown,Fi=Ue.onMouseDown,Ki=Ue.onChange,hr=Ue.onPaste,Gn=Ue.onCompositionStart,Li=Ue.onCompositionEnd,Lr=Ue.open,Dr=Ue.attrs,Pr=Sn||qe.createElement("input",null),Xt=Pr,Mi=Xt.ref,ar=Xt.props,Wi=ar.onKeyDown,Mr=ar.onChange,fr=ar.onMouseDown,Br=ar.onCompositionStart,Oi=ar.onCompositionEnd,$i=ar.style;return(0,Ft.Kp)(!("maxLength"in Pr.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Pr=qe.cloneElement(Pr,(0,It.Z)((0,It.Z)((0,It.Z)({type:"search"},ar),{},{id:Pt,ref:(0,ne.sQ)(an,Mi),disabled:Qn,tabIndex:Xn,autoComplete:vn||"off",autoFocus:Rt,className:dt()("".concat(dn,"-selection-search-input"),(Dt=Pr)===null||Dt===void 0||(Rn=Dt.props)===null||Rn===void 0?void 0:Rn.className),role:"combobox","aria-label":"Search","aria-expanded":Lr||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Pt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Pt,"_list"),"aria-activedescendant":Lr?vi:void 0},Dr),{},{value:bi?pi:"",maxLength:ei,readOnly:!bi,unselectable:bi?null:"on",style:(0,It.Z)((0,It.Z)({},$i),{},{opacity:bi?null:0}),onKeyDown:function(Mn){yi(Mn),Wi&&Wi(Mn)},onMouseDown:function(Mn){Fi(Mn),fr&&fr(Mn)},onChange:function(Mn){Ki(Mn),Mr&&Mr(Mn)},onCompositionStart:function(Mn){Gn(Mn),Br&&Br(Mn)},onCompositionEnd:function(Mn){Li(Mn),Oi&&Oi(Mn)},onPaste:hr})),Pr},ft=qe.forwardRef(Xe);ft.displayName="Input";var Ge=ft;function kt(xt){return Array.isArray(xt)?xt:xt!==void 0?[xt]:[]}var $e=typeof window!="undefined"&&window.document&&window.document.documentElement,zt=$e;function Ht(xt){return xt!=null}function Yt(xt){return!xt&&xt!==0}function Bt(xt){return["string","number"].includes((0,Ne.Z)(xt))}function Qt(xt){var Ue=void 0;return xt&&(Bt(xt.title)?Ue=xt.title.toString():Bt(xt.label)&&(Ue=xt.label.toString())),Ue}function ht(xt,Ue){zt?qe.useLayoutEffect(xt,Ue):qe.useEffect(xt,Ue)}function je(xt){var Ue;return(Ue=xt.key)!==null&&Ue!==void 0?Ue:xt.value}var At=function(Ue){Ue.preventDefault(),Ue.stopPropagation()},wn=function(Ue){var an=Ue.id,Dt=Ue.prefixCls,Rn=Ue.values,dn=Ue.open,Pt=Ue.searchValue,Sn=Ue.autoClearSearchValue,Qn=Ue.inputRef,Xn=Ue.placeholder,Rt=Ue.disabled,vn=Ue.mode,bi=Ue.showSearch,vi=Ue.autoFocus,pi=Ue.autoComplete,ei=Ue.activeDescendantId,yi=Ue.tabIndex,Fi=Ue.removeIcon,Ki=Ue.maxTagCount,hr=Ue.maxTagTextLength,Gn=Ue.maxTagPlaceholder,Li=Gn===void 0?function(pt){return"+ ".concat(pt.length," ...")}:Gn,Lr=Ue.tagRender,Dr=Ue.onToggleOpen,Pr=Ue.onRemove,Xt=Ue.onInputChange,Mi=Ue.onInputPaste,ar=Ue.onInputKeyDown,Wi=Ue.onInputMouseDown,Mr=Ue.onInputCompositionStart,fr=Ue.onInputCompositionEnd,Br=qe.useRef(null),Oi=(0,qe.useState)(0),$i=(0,Qe.Z)(Oi,2),nr=$i[0],Mn=$i[1],Tr=(0,qe.useState)(!1),An=(0,Qe.Z)(Tr,2),yr=An[0],_r=An[1],xr="".concat(Dt,"-selection"),Ho=dn||vn==="multiple"&&Sn===!1||vn==="tags"?Pt:"",ho=vn==="tags"||vn==="multiple"&&Sn===!1||bi&&(dn||yr);ht(function(){Mn(Br.current.scrollWidth)},[Ho]);function Sr(pt,Ot,cn,jn,Dn){return qe.createElement("span",{className:dt()("".concat(xr,"-item"),(0,We.Z)({},"".concat(xr,"-item-disabled"),cn)),title:Qt(pt)},qe.createElement("span",{className:"".concat(xr,"-item-content")},Ot),jn&&qe.createElement(se,{className:"".concat(xr,"-item-remove"),onMouseDown:At,onClick:Dn,customizeIcon:Fi},"\xD7"))}function gr(pt,Ot,cn,jn,Dn){var Wt=function(ai){At(ai),Dr(!dn)};return qe.createElement("span",{onMouseDown:Wt},Lr({label:Ot,value:pt,disabled:cn,closable:jn,onClose:Dn}))}function pr(pt){var Ot=pt.disabled,cn=pt.label,jn=pt.value,Dn=!Rt&&!Ot,Wt=cn;if(typeof hr=="number"&&(typeof cn=="string"||typeof cn=="number")){var kn=String(Wt);kn.length>hr&&(Wt="".concat(kn.slice(0,hr),"..."))}var ai=function(Ii){Ii&&Ii.stopPropagation(),Pr(pt)};return typeof Lr=="function"?gr(jn,Wt,Ot,Dn,ai):Sr(pt,Wt,Ot,Dn,ai)}function Yr(pt){var Ot=typeof Li=="function"?Li(pt):Li;return Sr({title:Ot},Ot,!1)}var zi=qe.createElement("div",{className:"".concat(xr,"-search"),style:{width:nr},onFocus:function(){_r(!0)},onBlur:function(){_r(!1)}},qe.createElement(Ge,{ref:Qn,open:dn,prefixCls:Dt,id:an,inputElement:null,disabled:Rt,autoFocus:vi,autoComplete:pi,editable:ho,activeDescendantId:ei,value:Ho,onKeyDown:ar,onMouseDown:Wi,onChange:Xt,onPaste:Mi,onCompositionStart:Mr,onCompositionEnd:fr,tabIndex:yi,attrs:(0,Ke.Z)(Ue,!0)}),qe.createElement("span",{ref:Br,className:"".concat(xr,"-search-mirror"),"aria-hidden":!0},Ho,"\xA0")),Je=qe.createElement(et.Z,{prefixCls:"".concat(xr,"-overflow"),data:Rn,renderItem:pr,renderRest:Yr,suffix:zi,itemKey:je,maxCount:Ki});return qe.createElement(qe.Fragment,null,Je,!Rn.length&&!Ho&&qe.createElement("span",{className:"".concat(xr,"-placeholder")},Xn))},rn=wn,bt=function(Ue){var an=Ue.inputElement,Dt=Ue.prefixCls,Rn=Ue.id,dn=Ue.inputRef,Pt=Ue.disabled,Sn=Ue.autoFocus,Qn=Ue.autoComplete,Xn=Ue.activeDescendantId,Rt=Ue.mode,vn=Ue.open,bi=Ue.values,vi=Ue.placeholder,pi=Ue.tabIndex,ei=Ue.showSearch,yi=Ue.searchValue,Fi=Ue.activeValue,Ki=Ue.maxLength,hr=Ue.onInputKeyDown,Gn=Ue.onInputMouseDown,Li=Ue.onInputChange,Lr=Ue.onInputPaste,Dr=Ue.onInputCompositionStart,Pr=Ue.onInputCompositionEnd,Xt=Ue.title,Mi=qe.useState(!1),ar=(0,Qe.Z)(Mi,2),Wi=ar[0],Mr=ar[1],fr=Rt==="combobox",Br=fr||ei,Oi=bi[0],$i=yi||"";fr&&Fi&&!Wi&&($i=Fi),qe.useEffect(function(){fr&&Mr(!1)},[fr,Fi]);var nr=Rt!=="combobox"&&!vn&&!ei?!1:!!$i,Mn=Xt===void 0?Qt(Oi):Xt,Tr=function(){if(Oi)return null;var yr=nr?{visibility:"hidden"}:void 0;return qe.createElement("span",{className:"".concat(Dt,"-selection-placeholder"),style:yr},vi)};return qe.createElement(qe.Fragment,null,qe.createElement("span",{className:"".concat(Dt,"-selection-search")},qe.createElement(Ge,{ref:dn,prefixCls:Dt,id:Rn,open:vn,inputElement:an,disabled:Pt,autoFocus:Sn,autoComplete:Qn,editable:Br,activeDescendantId:Xn,value:$i,onKeyDown:hr,onMouseDown:Gn,onChange:function(yr){Mr(!0),Li(yr)},onPaste:Lr,onCompositionStart:Dr,onCompositionEnd:Pr,tabIndex:pi,attrs:(0,Ke.Z)(Ue,!0),maxLength:fr?Ki:void 0})),!fr&&Oi?qe.createElement("span",{className:"".concat(Dt,"-selection-item"),title:Mn,style:nr?{visibility:"hidden"}:void 0},Oi.label):null,Tr())},Jt=bt;function un(xt){return![te.Z.ESC,te.Z.SHIFT,te.Z.BACKSPACE,te.Z.TAB,te.Z.WIN_KEY,te.Z.ALT,te.Z.META,te.Z.WIN_KEY_RIGHT,te.Z.CTRL,te.Z.SEMICOLON,te.Z.EQUALS,te.Z.CAPS_LOCK,te.Z.CONTEXT_MENU,te.Z.F1,te.Z.F2,te.Z.F3,te.Z.F4,te.Z.F5,te.Z.F6,te.Z.F7,te.Z.F8,te.Z.F9,te.Z.F10,te.Z.F11,te.Z.F12].includes(xt)}var Kn=function(Ue,an){var Dt=(0,qe.useRef)(null),Rn=(0,qe.useRef)(!1),dn=Ue.prefixCls,Pt=Ue.open,Sn=Ue.mode,Qn=Ue.showSearch,Xn=Ue.tokenWithEnter,Rt=Ue.autoClearSearchValue,vn=Ue.onSearch,bi=Ue.onSearchSubmit,vi=Ue.onToggleOpen,pi=Ue.onInputKeyDown,ei=Ue.domRef;qe.useImperativeHandle(an,function(){return{focus:function(){Dt.current.focus()},blur:function(){Dt.current.blur()}}});var yi=Pe(0),Fi=(0,Qe.Z)(yi,2),Ki=Fi[0],hr=Fi[1],Gn=function($i){var nr=$i.which;(nr===te.Z.UP||nr===te.Z.DOWN)&&$i.preventDefault(),pi&&pi($i),nr===te.Z.ENTER&&Sn==="tags"&&!Rn.current&&!Pt&&(bi==null||bi($i.target.value)),un(nr)&&vi(!0)},Li=function(){hr(!0)},Lr=(0,qe.useRef)(null),Dr=function($i){vn($i,!0,Rn.current)!==!1&&vi(!0)},Pr=function(){Rn.current=!0},Xt=function($i){Rn.current=!1,Sn!=="combobox"&&Dr($i.target.value)},Mi=function($i){var nr=$i.target.value;if(Xn&&Lr.current&&/[\r\n]/.test(Lr.current)){var Mn=Lr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");nr=nr.replace(Mn,Lr.current)}Lr.current=null,Dr(nr)},ar=function($i){var nr=$i.clipboardData,Mn=nr.getData("text");Lr.current=Mn},Wi=function($i){var nr=$i.target;if(nr!==Dt.current){var Mn=document.body.style.msTouchAction!==void 0;Mn?setTimeout(function(){Dt.current.focus()}):Dt.current.focus()}},Mr=function($i){var nr=Ki();$i.target!==Dt.current&&!nr&&Sn!=="combobox"&&$i.preventDefault(),(Sn!=="combobox"&&(!Qn||!nr)||!Pt)&&(Pt&&Rt!==!1&&vn("",!0,!1),vi())},fr={inputRef:Dt,onInputKeyDown:Gn,onInputMouseDown:Li,onInputChange:Mi,onInputPaste:ar,onInputCompositionStart:Pr,onInputCompositionEnd:Xt},Br=Sn==="multiple"||Sn==="tags"?qe.createElement(rn,(0,xe.Z)({},Ue,fr)):qe.createElement(Jt,(0,xe.Z)({},Ue,fr));return qe.createElement("div",{ref:ei,className:"".concat(dn,"-selector"),onClick:Wi,onMouseDown:Mr},Br)},En=qe.forwardRef(Kn);En.displayName="Selector";var Yn=En,St=ye(35593),Vn=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Cn=function(Ue){var an=Ue===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:an,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:an,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:an,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:an,adjustY:1},htmlRegion:"scroll"}}},Si=function(Ue,an){var Dt=Ue.prefixCls,Rn=Ue.disabled,dn=Ue.visible,Pt=Ue.children,Sn=Ue.popupElement,Qn=Ue.animation,Xn=Ue.transitionName,Rt=Ue.dropdownStyle,vn=Ue.dropdownClassName,bi=Ue.direction,vi=bi===void 0?"ltr":bi,pi=Ue.placement,ei=Ue.builtinPlacements,yi=Ue.dropdownMatchSelectWidth,Fi=Ue.dropdownRender,Ki=Ue.dropdownAlign,hr=Ue.getPopupContainer,Gn=Ue.empty,Li=Ue.getTriggerDOMNode,Lr=Ue.onPopupVisibleChange,Dr=Ue.onPopupMouseEnter,Pr=(0,vt.Z)(Ue,Vn),Xt="".concat(Dt,"-dropdown"),Mi=Sn;Fi&&(Mi=Fi(Sn));var ar=qe.useMemo(function(){return ei||Cn(yi)},[ei,yi]),Wi=Qn?"".concat(Xt,"-").concat(Qn):Xn,Mr=typeof yi=="number",fr=qe.useMemo(function(){return Mr?null:yi===!1?"minWidth":"width"},[yi,Mr]),Br=Rt;Mr&&(Br=(0,It.Z)((0,It.Z)({},Br),{},{width:yi}));var Oi=qe.useRef(null);return qe.useImperativeHandle(an,function(){return{getPopupElement:function(){return Oi.current}}}),qe.createElement(St.Z,(0,xe.Z)({},Pr,{showAction:Lr?["click"]:[],hideAction:Lr?["click"]:[],popupPlacement:pi||(vi==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:ar,prefixCls:Xt,popupTransitionName:Wi,popup:qe.createElement("div",{ref:Oi,onMouseEnter:Dr},Mi),stretch:fr,popupAlign:Ki,popupVisible:dn,getPopupContainer:hr,popupClassName:dt()(vn,(0,We.Z)({},"".concat(Xt,"-empty"),Gn)),popupStyle:Br,getTriggerDOMNode:Li,onPopupVisibleChange:Lr}),Pt)},Bn=qe.forwardRef(Si);Bn.displayName="SelectTrigger";var tn=Bn,$t=ye(17953);function ct(xt,Ue){var an=xt.key,Dt;return"value"in xt&&(Dt=xt.value),an!=null?an:Dt!==void 0?Dt:"rc-index-key-".concat(Ue)}function ze(xt,Ue){var an=xt||{},Dt=an.label,Rn=an.value,dn=an.options,Pt=an.groupLabel,Sn=Dt||(Ue?"children":"label");return{label:Sn,value:Rn||"value",options:dn||"options",groupLabel:Pt||Sn}}function Ut(xt){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},an=Ue.fieldNames,Dt=Ue.childrenAsData,Rn=[],dn=ze(an,!1),Pt=dn.label,Sn=dn.value,Qn=dn.options,Xn=dn.groupLabel;function Rt(vn,bi){vn.forEach(function(vi){if(bi||!(Qn in vi)){var pi=vi[Sn];Rn.push({key:ct(vi,Rn.length),groupOption:bi,data:vi,label:vi[Pt],value:pi})}else{var ei=vi[Xn];ei===void 0&&Dt&&(ei=vi.label),Rn.push({key:ct(vi,Rn.length),group:!0,data:vi,label:ei}),Rt(vi[Qn],!0)}})}return Rt(xt,!1),Rn}function Gt(xt){var Ue=(0,It.Z)({},xt);return"props"in Ue||Object.defineProperty(Ue,"props",{get:function(){return(0,Ft.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Ue}}),Ue}function at(xt,Ue){if(!Ue||!Ue.length)return null;var an=!1;function Dt(dn,Pt){var Sn=(0,$t.Z)(Pt),Qn=Sn[0],Xn=Sn.slice(1);if(!Qn)return[dn];var Rt=dn.split(Qn);return an=an||Rt.length>1,Rt.reduce(function(vn,bi){return[].concat((0,Ie.Z)(vn),(0,Ie.Z)(Dt(bi,Xn)))},[]).filter(function(vn){return vn})}var Rn=Dt(xt,Ue);return an?Rn:null}var Ve=["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"],Be=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function we(xt){return xt==="tags"||xt==="multiple"}var me=qe.forwardRef(function(xt,Ue){var an,Dt,Rn=xt.id,dn=xt.prefixCls,Pt=xt.className,Sn=xt.showSearch,Qn=xt.tagRender,Xn=xt.direction,Rt=xt.omitDomProps,vn=xt.displayValues,bi=xt.onDisplayValuesChange,vi=xt.emptyOptions,pi=xt.notFoundContent,ei=pi===void 0?"Not Found":pi,yi=xt.onClear,Fi=xt.mode,Ki=xt.disabled,hr=xt.loading,Gn=xt.getInputElement,Li=xt.getRawInputElement,Lr=xt.open,Dr=xt.defaultOpen,Pr=xt.onDropdownVisibleChange,Xt=xt.activeValue,Mi=xt.onActiveValueChange,ar=xt.activeDescendantId,Wi=xt.searchValue,Mr=xt.autoClearSearchValue,fr=xt.onSearch,Br=xt.onSearchSplit,Oi=xt.tokenSeparators,$i=xt.allowClear,nr=xt.suffixIcon,Mn=xt.clearIcon,Tr=xt.OptionList,An=xt.animation,yr=xt.transitionName,_r=xt.dropdownStyle,xr=xt.dropdownClassName,Ho=xt.dropdownMatchSelectWidth,ho=xt.dropdownRender,Sr=xt.dropdownAlign,gr=xt.placement,pr=xt.builtinPlacements,Yr=xt.getPopupContainer,zi=xt.showAction,Je=zi===void 0?[]:zi,pt=xt.onFocus,Ot=xt.onBlur,cn=xt.onKeyUp,jn=xt.onKeyDown,Dn=xt.onMouseDown,Wt=(0,vt.Z)(xt,Ve),kn=we(Fi),ai=(Sn!==void 0?Sn:kn)||Fi==="combobox",$n=(0,It.Z)({},Wt);Be.forEach(function(Xo){delete $n[Xo]}),Rt==null||Rt.forEach(function(Xo){delete $n[Xo]});var Ii=qe.useState(!1),Bi=(0,Qe.Z)(Ii,2),gi=Bi[0],Yi=Bi[1];qe.useEffect(function(){Yi((0,Me.Z)())},[]);var On=qe.useRef(null),$r=qe.useRef(null),Ur=qe.useRef(null),Ao=qe.useRef(null),eo=qe.useRef(null),qr=ke(),no=(0,Qe.Z)(qr,3),$o=no[0],Qo=no[1],pa=no[2];qe.useImperativeHandle(Ue,function(){var Xo,va;return{focus:(Xo=Ao.current)===null||Xo===void 0?void 0:Xo.focus,blur:(va=Ao.current)===null||va===void 0?void 0:va.blur,scrollTo:function(Cs){var Ss;return(Ss=eo.current)===null||Ss===void 0?void 0:Ss.scrollTo(Cs)}}});var qo=qe.useMemo(function(){var Xo;if(Fi!=="combobox")return Wi;var va=(Xo=vn[0])===null||Xo===void 0?void 0:Xo.value;return typeof va=="string"||typeof va=="number"?String(va):""},[Wi,Fi,vn]),Pn=Fi==="combobox"&&typeof Gn=="function"&&Gn()||null,ca=typeof Li=="function"&&Li(),es=(0,ne.x1)($r,ca==null||(an=ca.props)===null||an===void 0?void 0:an.ref),ts=qe.useState(!1),Ga=(0,Qe.Z)(ts,2),Ds=Ga[0],pl=Ga[1];(0,Ct.Z)(function(){pl(!0)},[]);var ma=(0,Tt.Z)(!1,{defaultValue:Dr,value:Lr}),ko=(0,Qe.Z)(ma,2),Oo=ko[0],Pa=ko[1],io=Ds?Oo:!1,No=!ei&&vi;(Ki||No&&io&&Fi==="combobox")&&(io=!1);var ao=No?!1:io,Gi=qe.useCallback(function(Xo){var va=Xo!==void 0?Xo:!io;Ki||(Pa(va),io!==va&&(Pr==null||Pr(va)))},[Ki,io,Pa,Pr]),ha=qe.useMemo(function(){return(Oi||[]).some(function(Xo){return[`
`,`\r
`].includes(Xo)})},[Oi]),Fa=function(va,dl,Cs){var Ss=!0,os=va;Mi==null||Mi(null);var hs=Cs?null:at(va,Oi);return Fi!=="combobox"&&hs&&(os="",Br==null||Br(hs),Gi(!1),Ss=!1),fr&&qo!==os&&fr(os,{source:dl?"typing":"effect"}),Ss},Bs=function(va){!va||!va.trim()||fr(va,{source:"submit"})};qe.useEffect(function(){!io&&!kn&&Fi!=="combobox"&&Fa("",!1,!1)},[io]),qe.useEffect(function(){Oo&&Ki&&Pa(!1),Ki&&Qo(!1)},[Ki]);var ys=Pe(),nl=(0,Qe.Z)(ys,2),Ui=nl[0],Da=nl[1],ga=function(va){var dl=Ui(),Cs=va.which;if(Cs===te.Z.ENTER&&(Fi!=="combobox"&&va.preventDefault(),io||Gi(!0)),Da(!!qo),Cs===te.Z.BACKSPACE&&!dl&&kn&&!qo&&vn.length){for(var Ss=(0,Ie.Z)(vn),os=null,hs=Ss.length-1;hs>=0;hs-=1){var Ls=Ss[hs];if(!Ls.disabled){Ss.splice(hs,1),os=Ls;break}}os&&bi(Ss,{type:"remove",values:[os]})}for(var xs=arguments.length,Ks=new Array(xs>1?xs-1:0),Ts=1;Ts<xs;Ts++)Ks[Ts-1]=arguments[Ts];if(io&&eo.current){var ka;(ka=eo.current).onKeyDown.apply(ka,[va].concat(Ks))}jn==null||jn.apply(void 0,[va].concat(Ks))},Is=function(va){for(var dl=arguments.length,Cs=new Array(dl>1?dl-1:0),Ss=1;Ss<dl;Ss++)Cs[Ss-1]=arguments[Ss];if(io&&eo.current){var os;(os=eo.current).onKeyUp.apply(os,[va].concat(Cs))}cn==null||cn.apply(void 0,[va].concat(Cs))},ml=function(va){var dl=vn.filter(function(Cs){return Cs!==va});bi(dl,{type:"remove",values:[va]})},Gl=qe.useRef(!1),xo=function(){Qo(!0),Ki||(pt&&!Gl.current&&pt.apply(void 0,arguments),Je.includes("focus")&&Gi(!0)),Gl.current=!0},Au=function(){Qo(!1,function(){Gl.current=!1,Gi(!1)}),!Ki&&(qo&&(Fi==="tags"?fr(qo,{source:"submit"}):Fi==="multiple"&&fr("",{source:"blur"})),Ot&&Ot.apply(void 0,arguments))},il=[];qe.useEffect(function(){return function(){il.forEach(function(Xo){return clearTimeout(Xo)}),il.splice(0,il.length)}},[]);var Nl=function(va){var dl,Cs=va.target,Ss=(dl=Ur.current)===null||dl===void 0?void 0:dl.getPopupElement();if(Ss&&Ss.contains(Cs)){var os=setTimeout(function(){var Ks=il.indexOf(os);if(Ks!==-1&&il.splice(Ks,1),pa(),!gi&&!Ss.contains(document.activeElement)){var Ts;(Ts=Ao.current)===null||Ts===void 0||Ts.focus()}});il.push(os)}for(var hs=arguments.length,Ls=new Array(hs>1?hs-1:0),xs=1;xs<hs;xs++)Ls[xs-1]=arguments[xs];Dn==null||Dn.apply(void 0,[va].concat(Ls))},vl=qe.useState({}),fu=(0,Qe.Z)(vl,2),yl=fu[1];function rl(){yl({})}var Sl;ca&&(Sl=function(va){Gi(va)}),Te(function(){var Xo;return[On.current,(Xo=Ur.current)===null||Xo===void 0?void 0:Xo.getPopupElement()]},ao,Gi,!!ca);var oc=qe.useMemo(function(){return(0,It.Z)((0,It.Z)({},xt),{},{notFoundContent:ei,open:io,triggerOpen:ao,id:Rn,showSearch:ai,multiple:kn,toggleOpen:Gi})},[xt,ei,ao,io,Rn,ai,kn,Gi]),Sc=!!nr||hr,xc;Sc&&(xc=qe.createElement(se,{className:dt()("".concat(dn,"-arrow"),(0,We.Z)({},"".concat(dn,"-arrow-loading"),hr)),customizeIcon:nr,customizeIconProps:{loading:hr,searchValue:qo,open:io,focused:$o,showSearch:ai}}));var Qc=function(){var va;yi==null||yi(),(va=Ao.current)===null||va===void 0||va.focus(),bi([],{type:"clear",values:vn}),Fa("",!1,!1)},gu=ge(dn,Qc,vn,$i,Mn,Ki,qo,Fi),zl=gu.allowClear,xl=gu.clearIcon,Tl=qe.createElement(Tr,{ref:eo}),pu=dt()(dn,Pt,(Dt={},(0,We.Z)(Dt,"".concat(dn,"-focused"),$o),(0,We.Z)(Dt,"".concat(dn,"-multiple"),kn),(0,We.Z)(Dt,"".concat(dn,"-single"),!kn),(0,We.Z)(Dt,"".concat(dn,"-allow-clear"),$i),(0,We.Z)(Dt,"".concat(dn,"-show-arrow"),Sc),(0,We.Z)(Dt,"".concat(dn,"-disabled"),Ki),(0,We.Z)(Dt,"".concat(dn,"-loading"),hr),(0,We.Z)(Dt,"".concat(dn,"-open"),io),(0,We.Z)(Dt,"".concat(dn,"-customize-input"),Pn),(0,We.Z)(Dt,"".concat(dn,"-show-search"),ai),Dt)),wc=qe.createElement(tn,{ref:Ur,disabled:Ki,prefixCls:dn,visible:ao,popupElement:Tl,animation:An,transitionName:yr,dropdownStyle:_r,dropdownClassName:xr,direction:Xn,dropdownMatchSelectWidth:Ho,dropdownRender:ho,dropdownAlign:Sr,placement:gr,builtinPlacements:pr,getPopupContainer:Yr,empty:vi,getTriggerDOMNode:function(){return $r.current},onPopupVisibleChange:Sl,onPopupMouseEnter:rl},ca?qe.cloneElement(ca,{ref:es}):qe.createElement(Yn,(0,xe.Z)({},xt,{domRef:$r,prefixCls:dn,inputElement:Pn,ref:Ao,id:Rn,showSearch:ai,autoClearSearchValue:Mr,mode:Fi,activeDescendantId:ar,tagRender:Qn,values:vn,open:io,onToggleOpen:Gi,activeValue:Xt,searchValue:qo,onSearch:Fa,onSearchSubmit:Bs,onRemove:ml,tokenWithEnter:ha}))),mu;return ca?mu=wc:mu=qe.createElement("div",(0,xe.Z)({className:pu},$n,{ref:On,onMouseDown:Nl,onKeyDown:ga,onKeyUp:Is,onFocus:xo,onBlur:Au}),$o&&!io&&qe.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(vn.map(function(Xo){var va=Xo.label,dl=Xo.value;return["number","string"].includes((0,Ne.Z)(va))?va:dl}).join(", "))),wc,xc,zl&&xl),qe.createElement(ve.Provider,{value:oc},mu)}),De=me,Re=function(xt,Ue){var an=qe.useRef({values:new Map,options:new Map}),Dt=qe.useMemo(function(){var dn=an.current,Pt=dn.values,Sn=dn.options,Qn=xt.map(function(vn){if(vn.label===void 0){var bi;return(0,It.Z)((0,It.Z)({},vn),{},{label:(bi=Pt.get(vn.value))===null||bi===void 0?void 0:bi.label})}return vn}),Xn=new Map,Rt=new Map;return Qn.forEach(function(vn){Xn.set(vn.value,vn),Rt.set(vn.value,Ue.get(vn.value)||Sn.get(vn.value))}),an.current.values=Xn,an.current.options=Rt,Qn},[xt,Ue]),Rn=qe.useCallback(function(dn){return Ue.get(dn)||an.current.options.get(dn)},[Ue]);return[Dt,Rn]};function Le(xt,Ue){return kt(xt).join("").toUpperCase().includes(Ue)}var st=function(xt,Ue,an,Dt,Rn){return qe.useMemo(function(){if(!an||Dt===!1)return xt;var dn=Ue.options,Pt=Ue.label,Sn=Ue.value,Qn=[],Xn=typeof Dt=="function",Rt=an.toUpperCase(),vn=Xn?Dt:function(vi,pi){return Rn?Le(pi[Rn],Rt):pi[dn]?Le(pi[Pt!=="children"?Pt:"label"],Rt):Le(pi[Sn],Rt)},bi=Xn?function(vi){return Gt(vi)}:function(vi){return vi};return xt.forEach(function(vi){if(vi[dn]){var pi=vn(an,bi(vi));if(pi)Qn.push(vi);else{var ei=vi[dn].filter(function(yi){return vn(an,bi(yi))});ei.length&&Qn.push((0,It.Z)((0,It.Z)({},vi),{},(0,We.Z)({},dn,ei)))}return}vn(an,bi(vi))&&Qn.push(vi)}),Qn},[xt,Dt,Rn,an,Ue])},Vt=ye(17115),sn=ye(38298),ln=["children","value"],Hn=["children"];function wi(xt){var Ue=xt,an=Ue.key,Dt=Ue.props,Rn=Dt.children,dn=Dt.value,Pt=(0,vt.Z)(Dt,ln);return(0,It.Z)({key:an,value:dn!==void 0?dn:an,children:Rn},Pt)}function Pi(xt){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,sn.Z)(xt).map(function(an,Dt){if(!qe.isValidElement(an)||!an.type)return null;var Rn=an,dn=Rn.type.isSelectOptGroup,Pt=Rn.key,Sn=Rn.props,Qn=Sn.children,Xn=(0,vt.Z)(Sn,Hn);return Ue||!dn?wi(an):(0,It.Z)((0,It.Z)({key:"__RC_SELECT_GRP__".concat(Pt===null?Dt:Pt,"__"),label:Pt},Xn),{},{options:Pi(Qn)})}).filter(function(an){return an})}function Ri(xt,Ue,an,Dt,Rn){return qe.useMemo(function(){var dn=xt,Pt=!xt;Pt&&(dn=Pi(Ue));var Sn=new Map,Qn=new Map,Xn=function(bi,vi,pi){pi&&typeof pi=="string"&&bi.set(vi[pi],vi)};function Rt(vn){for(var bi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,vi=0;vi<vn.length;vi+=1){var pi=vn[vi];!pi[an.options]||bi?(Sn.set(pi[an.value],pi),Xn(Qn,pi,an.label),Xn(Qn,pi,Dt),Xn(Qn,pi,Rn)):Rt(pi[an.options],!0)}}return Rt(dn),{options:dn,valueOptions:Sn,labelOptions:Qn}},[xt,Ue,an,Dt,Rn])}function Zi(xt){var Ue=qe.useRef();Ue.current=xt;var an=qe.useCallback(function(){return Ue.current.apply(Ue,arguments)},[]);return an}var Ln=function(){return null};Ln.isSelectOptGroup=!0;var rr=Ln,Kr=function(){return null};Kr.isSelectOption=!0;var Vr=Kr,jr=ye(79722),li=ye(64002),Ti=ye(21881),vr=qe.createContext(null),ui=vr;function Ir(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var zn=["disabled","title","children","style","className"];function Ee(xt){return typeof xt=="string"||typeof xt=="number"}var cr=function(Ue,an){var Dt=Ce(),Rn=Dt.prefixCls,dn=Dt.id,Pt=Dt.open,Sn=Dt.multiple,Qn=Dt.mode,Xn=Dt.searchValue,Rt=Dt.toggleOpen,vn=Dt.notFoundContent,bi=Dt.onPopupScroll,vi=qe.useContext(ui),pi=vi.flattenOptions,ei=vi.onActiveValue,yi=vi.defaultActiveFirstOption,Fi=vi.onSelect,Ki=vi.menuItemSelectedIcon,hr=vi.rawValues,Gn=vi.fieldNames,Li=vi.virtual,Lr=vi.direction,Dr=vi.listHeight,Pr=vi.listItemHeight,Xt="".concat(Rn,"-item"),Mi=(0,jr.Z)(function(){return pi},[Pt,pi],function(Sr,gr){return gr[0]&&Sr[1]!==gr[1]}),ar=qe.useRef(null),Wi=function(gr){gr.preventDefault()},Mr=function(gr){ar.current&&ar.current.scrollTo(typeof gr=="number"?{index:gr}:gr)},fr=function(gr){for(var pr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Yr=Mi.length,zi=0;zi<Yr;zi+=1){var Je=(gr+zi*pr+Yr)%Yr,pt=Mi[Je],Ot=pt.group,cn=pt.data;if(!Ot&&!cn.disabled)return Je}return-1},Br=qe.useState(function(){return fr(0)}),Oi=(0,Qe.Z)(Br,2),$i=Oi[0],nr=Oi[1],Mn=function(gr){var pr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;nr(gr);var Yr={source:pr?"keyboard":"mouse"},zi=Mi[gr];if(!zi){ei(null,-1,Yr);return}ei(zi.value,gr,Yr)};(0,qe.useEffect)(function(){Mn(yi!==!1?fr(0):-1)},[Mi.length,Xn]);var Tr=qe.useCallback(function(Sr){return hr.has(Sr)&&Qn!=="combobox"},[Qn,(0,Ie.Z)(hr).toString(),hr.size]);(0,qe.useEffect)(function(){var Sr=setTimeout(function(){if(!Sn&&Pt&&hr.size===1){var pr=Array.from(hr)[0],Yr=Mi.findIndex(function(zi){var Je=zi.data;return Je.value===pr});Yr!==-1&&(Mn(Yr),Mr(Yr))}});if(Pt){var gr;(gr=ar.current)===null||gr===void 0||gr.scrollTo(void 0)}return function(){return clearTimeout(Sr)}},[Pt,Xn,pi.length]);var An=function(gr){gr!==void 0&&Fi(gr,{selected:!hr.has(gr)}),Sn||Rt(!1)};if(qe.useImperativeHandle(an,function(){return{onKeyDown:function(gr){var pr=gr.which,Yr=gr.ctrlKey;switch(pr){case te.Z.N:case te.Z.P:case te.Z.UP:case te.Z.DOWN:{var zi=0;if(pr===te.Z.UP?zi=-1:pr===te.Z.DOWN?zi=1:Ir()&&Yr&&(pr===te.Z.N?zi=1:pr===te.Z.P&&(zi=-1)),zi!==0){var Je=fr($i+zi,zi);Mr(Je),Mn(Je,!0)}break}case te.Z.ENTER:{var pt=Mi[$i];pt&&!pt.data.disabled?An(pt.value):An(void 0),Pt&&gr.preventDefault();break}case te.Z.ESC:Rt(!1),Pt&&gr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(gr){Mr(gr)}}}),Mi.length===0)return qe.createElement("div",{role:"listbox",id:"".concat(dn,"_list"),className:"".concat(Xt,"-empty"),onMouseDown:Wi},vn);var yr=Object.keys(Gn).map(function(Sr){return Gn[Sr]}),_r=function(gr){return gr.label};function xr(Sr,gr){var pr=Sr.group;return{role:pr?"presentation":"option",id:"".concat(dn,"_list_").concat(gr)}}var Ho=function(gr){var pr=Mi[gr];if(!pr)return null;var Yr=pr.data||{},zi=Yr.value,Je=pr.group,pt=(0,Ke.Z)(Yr,!0),Ot=_r(pr);return pr?qe.createElement("div",(0,xe.Z)({"aria-label":typeof Ot=="string"&&!Je?Ot:null},pt,{key:gr},xr(pr,gr),{"aria-selected":Tr(zi)}),zi):null},ho={role:"listbox",id:"".concat(dn,"_list")};return qe.createElement(qe.Fragment,null,Li&&qe.createElement("div",(0,xe.Z)({},ho,{style:{height:0,width:0,overflow:"hidden"}}),Ho($i-1),Ho($i),Ho($i+1)),qe.createElement(Ti.Z,{itemKey:"key",ref:ar,data:Mi,height:Dr,itemHeight:Pr,fullHeight:!1,onMouseDown:Wi,onScroll:bi,virtual:Li,direction:Lr,innerProps:Li?null:ho},function(Sr,gr){var pr,Yr=Sr.group,zi=Sr.groupOption,Je=Sr.data,pt=Sr.label,Ot=Sr.value,cn=Je.key;if(Yr){var jn,Dn=(jn=Je.title)!==null&&jn!==void 0?jn:Ee(pt)?pt.toString():void 0;return qe.createElement("div",{className:dt()(Xt,"".concat(Xt,"-group")),title:Dn},pt!==void 0?pt:cn)}var Wt=Je.disabled,kn=Je.title,ai=Je.children,$n=Je.style,Ii=Je.className,Bi=(0,vt.Z)(Je,zn),gi=(0,li.Z)(Bi,yr),Yi=Tr(Ot),On="".concat(Xt,"-option"),$r=dt()(Xt,On,Ii,(pr={},(0,We.Z)(pr,"".concat(On,"-grouped"),zi),(0,We.Z)(pr,"".concat(On,"-active"),$i===gr&&!Wt),(0,We.Z)(pr,"".concat(On,"-disabled"),Wt),(0,We.Z)(pr,"".concat(On,"-selected"),Yi),pr)),Ur=_r(Sr),Ao=!Ki||typeof Ki=="function"||Yi,eo=typeof Ur=="number"?Ur:Ur||Ot,qr=Ee(eo)?eo.toString():void 0;return kn!==void 0&&(qr=kn),qe.createElement("div",(0,xe.Z)({},(0,Ke.Z)(gi),Li?{}:xr(Sr,gr),{"aria-selected":Yi,className:$r,title:qr,onMouseMove:function(){$i===gr||Wt||Mn(gr)},onClick:function(){Wt||An(Ot)},style:$n}),qe.createElement("div",{className:"".concat(On,"-content")},eo),qe.isValidElement(Ki)||Yi,Ao&&qe.createElement(se,{className:"".concat(Xt,"-option-state"),customizeIcon:Ki,customizeIconProps:{isSelected:Yi}},Yi?"\u2713":null))}))},Xi=qe.forwardRef(cr);Xi.displayName="OptionList";var yn=Xi;function oi(xt){var Ue=xt.mode,an=xt.options,Dt=xt.children,Rn=xt.backfill,dn=xt.allowClear,Pt=xt.placeholder,Sn=xt.getInputElement,Qn=xt.showSearch,Xn=xt.onSearch,Rt=xt.defaultOpen,vn=xt.autoFocus,bi=xt.labelInValue,vi=xt.value,pi=xt.inputValue,ei=xt.optionLabelProp,yi=isMultiple(Ue),Fi=Qn!==void 0?Qn:yi||Ue==="combobox",Ki=an||convertChildrenToData(Dt);if(warning(Ue!=="tags"||Ki.every(function(Lr){return!Lr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Ue==="tags"||Ue==="combobox"){var hr=Ki.some(function(Lr){return Lr.options?Lr.options.some(function(Dr){return typeof("value"in Dr?Dr.value:Dr.key)=="number"}):typeof("value"in Lr?Lr.value:Lr.key)=="number"});warning(!hr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Ue!=="combobox"||!ei,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Ue==="combobox"||!Rn,"`backfill` only works with `combobox` mode."),warning(Ue==="combobox"||!Sn,"`getInputElement` only work with `combobox` mode."),noteOnce(Ue!=="combobox"||!Sn||!dn||!Pt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Xn&&!Fi&&Ue!=="combobox"&&Ue!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Rt||vn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),vi!=null){var Gn=toArray(vi);warning(!bi||Gn.every(function(Lr){return _typeof(Lr)==="object"&&("key"in Lr||"value"in Lr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!yi||Array.isArray(vi),"`value` should be array when `mode` is `multiple` or `tags`")}if(Dt){var Li=null;toNodeArray(Dt).some(function(Lr){if(!React.isValidElement(Lr)||!Lr.type)return!1;var Dr=Lr,Pr=Dr.type;if(Pr.isSelectOption)return!1;if(Pr.isSelectOptGroup){var Xt=toNodeArray(Lr.props.children).every(function(Mi){return!React.isValidElement(Mi)||!Lr.type||Mi.type.isSelectOption?!0:(Li=Mi.type,!1)});return!Xt}return Li=Pr,!0}),Li&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Li.displayName||Li.name||Li,"`.")),warning(pi===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Ci(xt,Ue){if(xt){var an=function Dt(Rn){for(var dn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Pt=0;Pt<Rn.length;Pt++){var Sn=Rn[Pt];if(Sn[Ue==null?void 0:Ue.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!dn&&Array.isArray(Sn[Ue==null?void 0:Ue.options])&&Dt(Sn[Ue==null?void 0:Ue.options],!0))break}};an(xt)}}var xn=null,on=["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"],yt=["inputValue"];function Et(xt){return!xt||(0,Ne.Z)(xt)!=="object"}var Lt=qe.forwardRef(function(xt,Ue){var an=xt.id,Dt=xt.mode,Rn=xt.prefixCls,dn=Rn===void 0?"rc-select":Rn,Pt=xt.backfill,Sn=xt.fieldNames,Qn=xt.inputValue,Xn=xt.searchValue,Rt=xt.onSearch,vn=xt.autoClearSearchValue,bi=vn===void 0?!0:vn,vi=xt.onSelect,pi=xt.onDeselect,ei=xt.dropdownMatchSelectWidth,yi=ei===void 0?!0:ei,Fi=xt.filterOption,Ki=xt.filterSort,hr=xt.optionFilterProp,Gn=xt.optionLabelProp,Li=xt.options,Lr=xt.children,Dr=xt.defaultActiveFirstOption,Pr=xt.menuItemSelectedIcon,Xt=xt.virtual,Mi=xt.direction,ar=xt.listHeight,Wi=ar===void 0?200:ar,Mr=xt.listItemHeight,fr=Mr===void 0?20:Mr,Br=xt.value,Oi=xt.defaultValue,$i=xt.labelInValue,nr=xt.onChange,Mn=(0,vt.Z)(xt,on),Tr=(0,Vt.ZP)(an),An=we(Dt),yr=!!(!Li&&Lr),_r=qe.useMemo(function(){return Fi===void 0&&Dt==="combobox"?!1:Fi},[Fi,Dt]),xr=qe.useMemo(function(){return ze(Sn,yr)},[JSON.stringify(Sn),yr]),Ho=(0,Tt.Z)("",{value:Xn!==void 0?Xn:Qn,postState:function(No){return No||""}}),ho=(0,Qe.Z)(Ho,2),Sr=ho[0],gr=ho[1],pr=Ri(Li,Lr,xr,hr,Gn),Yr=pr.valueOptions,zi=pr.labelOptions,Je=pr.options,pt=qe.useCallback(function(io){var No=kt(io);return No.map(function(ao){var Gi,ha,Fa,Bs,ys;if(Et(ao))Gi=ao;else{var nl;Fa=ao.key,ha=ao.label,Gi=(nl=ao.value)!==null&&nl!==void 0?nl:Fa}var Ui=Yr.get(Gi);if(Ui){var Da;if(ha===void 0&&(ha=Ui==null?void 0:Ui[Gn||xr.label]),Fa===void 0&&(Fa=(Da=Ui==null?void 0:Ui.key)!==null&&Da!==void 0?Da:Gi),Bs=Ui==null?void 0:Ui.disabled,ys=Ui==null?void 0:Ui.title,0)var ga}return{label:ha,value:Gi,key:Fa,disabled:Bs,title:ys}})},[xr,Gn,Yr]),Ot=(0,Tt.Z)(Oi,{value:Br}),cn=(0,Qe.Z)(Ot,2),jn=cn[0],Dn=cn[1],Wt=qe.useMemo(function(){var io,No=pt(jn);return Dt==="combobox"&&Yt((io=No[0])===null||io===void 0?void 0:io.value)?[]:No},[jn,pt,Dt]),kn=Re(Wt,Yr),ai=(0,Qe.Z)(kn,2),$n=ai[0],Ii=ai[1],Bi=qe.useMemo(function(){if(!Dt&&$n.length===1){var io=$n[0];if(io.value===null&&(io.label===null||io.label===void 0))return[]}return $n.map(function(No){var ao;return(0,It.Z)((0,It.Z)({},No),{},{label:(ao=No.label)!==null&&ao!==void 0?ao:No.value})})},[Dt,$n]),gi=qe.useMemo(function(){return new Set($n.map(function(io){return io.value}))},[$n]);qe.useEffect(function(){if(Dt==="combobox"){var io,No=(io=$n[0])===null||io===void 0?void 0:io.value;gr(Ht(No)?String(No):"")}},[$n]);var Yi=Zi(function(io,No){var ao,Gi=No!=null?No:io;return ao={},(0,We.Z)(ao,xr.value,io),(0,We.Z)(ao,xr.label,Gi),ao}),On=qe.useMemo(function(){if(Dt!=="tags")return Je;var io=(0,Ie.Z)(Je),No=function(Gi){return Yr.has(Gi)};return(0,Ie.Z)($n).sort(function(ao,Gi){return ao.value<Gi.value?-1:1}).forEach(function(ao){var Gi=ao.value;No(Gi)||io.push(Yi(Gi,ao.label))}),io},[Yi,Je,Yr,$n,Dt]),$r=st(On,xr,Sr,_r,hr),Ur=qe.useMemo(function(){return Dt!=="tags"||!Sr||$r.some(function(io){return io[hr||"value"]===Sr})||$r.some(function(io){return io[xr.value]===Sr})?$r:[Yi(Sr)].concat((0,Ie.Z)($r))},[Yi,hr,Dt,$r,Sr,xr]),Ao=qe.useMemo(function(){return Ki?(0,Ie.Z)(Ur).sort(function(io,No){return Ki(io,No)}):Ur},[Ur,Ki]),eo=qe.useMemo(function(){return Ut(Ao,{fieldNames:xr,childrenAsData:yr})},[Ao,xr,yr]),qr=function(No){var ao=pt(No);if(Dn(ao),nr&&(ao.length!==$n.length||ao.some(function(Fa,Bs){var ys;return((ys=$n[Bs])===null||ys===void 0?void 0:ys.value)!==(Fa==null?void 0:Fa.value)}))){var Gi=$i?ao:ao.map(function(Fa){return Fa.value}),ha=ao.map(function(Fa){return Gt(Ii(Fa.value))});nr(An?Gi:Gi[0],An?ha:ha[0])}},no=qe.useState(null),$o=(0,Qe.Z)(no,2),Qo=$o[0],pa=$o[1],qo=qe.useState(0),Pn=(0,Qe.Z)(qo,2),ca=Pn[0],es=Pn[1],ts=Dr!==void 0?Dr:Dt!=="combobox",Ga=qe.useCallback(function(io,No){var ao=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Gi=ao.source,ha=Gi===void 0?"keyboard":Gi;es(No),Pt&&Dt==="combobox"&&io!==null&&ha==="keyboard"&&pa(String(io))},[Pt,Dt]),Ds=function(No,ao,Gi){var ha=function(){var Gl,xo=Ii(No);return[$i?{label:xo==null?void 0:xo[xr.label],value:No,key:(Gl=xo==null?void 0:xo.key)!==null&&Gl!==void 0?Gl:No}:No,Gt(xo)]};if(ao&&vi){var Fa=ha(),Bs=(0,Qe.Z)(Fa,2),ys=Bs[0],nl=Bs[1];vi(ys,nl)}else if(!ao&&pi&&Gi!=="clear"){var Ui=ha(),Da=(0,Qe.Z)(Ui,2),ga=Da[0],Is=Da[1];pi(ga,Is)}},pl=Zi(function(io,No){var ao,Gi=An?No.selected:!0;Gi?ao=An?[].concat((0,Ie.Z)($n),[io]):[io]:ao=$n.filter(function(ha){return ha.value!==io}),qr(ao),Ds(io,Gi),Dt==="combobox"?pa(""):(!we||bi)&&(gr(""),pa(""))}),ma=function(No,ao){qr(No);var Gi=ao.type,ha=ao.values;(Gi==="remove"||Gi==="clear")&&ha.forEach(function(Fa){Ds(Fa.value,!1,Gi)})},ko=function(No,ao){if(gr(No),pa(null),ao.source==="submit"){var Gi=(No||"").trim();if(Gi){var ha=Array.from(new Set([].concat((0,Ie.Z)(gi),[Gi])));qr(ha),Ds(Gi,!0),gr("")}return}ao.source!=="blur"&&(Dt==="combobox"&&qr(No),Rt==null||Rt(No))},Oo=function(No){var ao=No;Dt!=="tags"&&(ao=No.map(function(ha){var Fa=zi.get(ha);return Fa==null?void 0:Fa.value}).filter(function(ha){return ha!==void 0}));var Gi=Array.from(new Set([].concat((0,Ie.Z)(gi),(0,Ie.Z)(ao))));qr(Gi),Gi.forEach(function(ha){Ds(ha,!0)})},Pa=qe.useMemo(function(){var io=Xt!==!1&&yi!==!1;return(0,It.Z)((0,It.Z)({},pr),{},{flattenOptions:eo,onActiveValue:Ga,defaultActiveFirstOption:ts,onSelect:pl,menuItemSelectedIcon:Pr,rawValues:gi,fieldNames:xr,virtual:io,direction:Mi,listHeight:Wi,listItemHeight:fr,childrenAsData:yr})},[pr,eo,Ga,ts,pl,Pr,gi,xr,Xt,yi,Wi,fr,yr]);return qe.createElement(ui.Provider,{value:Pa},qe.createElement(De,(0,xe.Z)({},Mn,{id:Tr,prefixCls:dn,ref:Ue,omitDomProps:yt,mode:Dt,displayValues:Bi,onDisplayValuesChange:ma,direction:Mi,searchValue:Sr,onSearch:ko,autoClearSearchValue:bi,onSearchSplit:Oo,dropdownMatchSelectWidth:yi,OptionList:yn,emptyOptions:!eo.length,activeValue:Qo,activeDescendantId:"".concat(Tr,"_list_").concat(ca)})))}),tt=Lt;tt.Option=Vr,tt.OptGroup=rr;var en=tt,fn=en},9296:function(In,Fn,ye){"use strict";ye.r(Fn),ye.d(Fn,{ResizableTextArea:function(){return ft},default:function(){return Yt}});var xe=ye(5891),Ie=ye(57259),We=ye(80962),It=ye(80665),Qe=ye(29043),vt=ye(19149),Ne=ye(26390),Tt=ye(92310),Ft=ye.n(Tt),qe=ye(93681),gt=ye(5643),dt=ye(35788),Ct=ye(59301),Me=ye(29301),te=ye(28800),ne=ye(23073),ce=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,se=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],ge={},ve;function Ce(Bt){var Qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ht=Bt.getAttribute("id")||Bt.getAttribute("data-reactid")||Bt.getAttribute("name");if(Qt&&ge[ht])return ge[ht];var je=window.getComputedStyle(Bt),At=je.getPropertyValue("box-sizing")||je.getPropertyValue("-moz-box-sizing")||je.getPropertyValue("-webkit-box-sizing"),wn=parseFloat(je.getPropertyValue("padding-bottom"))+parseFloat(je.getPropertyValue("padding-top")),rn=parseFloat(je.getPropertyValue("border-bottom-width"))+parseFloat(je.getPropertyValue("border-top-width")),bt=se.map(function(un){return"".concat(un,":").concat(je.getPropertyValue(un))}).join(";"),Jt={sizingStyle:bt,paddingSize:wn,borderSize:rn,boxSizing:At};return Qt&&ht&&(ge[ht]=Jt),Jt}function ke(Bt){var Qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,je=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ve||(ve=document.createElement("textarea"),ve.setAttribute("tab-index","-1"),ve.setAttribute("aria-hidden","true"),document.body.appendChild(ve)),Bt.getAttribute("wrap")?ve.setAttribute("wrap",Bt.getAttribute("wrap")):ve.removeAttribute("wrap");var At=Ce(Bt,Qt),wn=At.paddingSize,rn=At.borderSize,bt=At.boxSizing,Jt=At.sizingStyle;ve.setAttribute("style","".concat(Jt,";").concat(ce)),ve.value=Bt.value||Bt.placeholder||"";var un=void 0,Kn=void 0,En,Yn=ve.scrollHeight;if(bt==="border-box"?Yn+=rn:bt==="content-box"&&(Yn-=wn),ht!==null||je!==null){ve.value=" ";var St=ve.scrollHeight-wn;ht!==null&&(un=St*ht,bt==="border-box"&&(un=un+wn+rn),Yn=Math.max(un,Yn)),je!==null&&(Kn=St*je,bt==="border-box"&&(Kn=Kn+wn+rn),En=Yn>Kn?"":"hidden",Yn=Math.min(Kn,Yn))}var Vn={height:Yn,overflowY:En,resize:"none"};return un&&(Vn.minHeight=un),Kn&&(Vn.maxHeight=Kn),Vn}var Pe=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Te=0,Ke=1,et=2,Xe=Ct.forwardRef(function(Bt,Qt){var ht=Bt,je=ht.prefixCls,At=ht.onPressEnter,wn=ht.defaultValue,rn=ht.value,bt=ht.autoSize,Jt=ht.onResize,un=ht.className,Kn=ht.style,En=ht.disabled,Yn=ht.onChange,St=ht.onInternalAutoSize,Vn=(0,vt.Z)(ht,Pe),Cn=(0,dt.Z)(wn,{value:rn,postState:function(rr){return rr!=null?rr:""}}),Si=(0,Qe.Z)(Cn,2),Bn=Si[0],tn=Si[1],$t=function(rr){tn(rr.target.value),Yn==null||Yn(rr)},ct=Ct.useRef();Ct.useImperativeHandle(Qt,function(){return{textArea:ct.current}});var ze=Ct.useMemo(function(){return bt&&(0,It.Z)(bt)==="object"?[bt.minRows,bt.maxRows]:[]},[bt]),Ut=(0,Qe.Z)(ze,2),Gt=Ut[0],at=Ut[1],Ve=!!bt,Be=function(){try{if(document.activeElement===ct.current){var rr=ct.current,Kr=rr.selectionStart,Vr=rr.selectionEnd,jr=rr.scrollTop;ct.current.setSelectionRange(Kr,Vr),ct.current.scrollTop=jr}}catch(li){}},we=Ct.useState(et),me=(0,Qe.Z)(we,2),De=me[0],Re=me[1],Le=Ct.useState(),st=(0,Qe.Z)(Le,2),Vt=st[0],sn=st[1],ln=function(){Re(Te)};(0,te.Z)(function(){Ve&&ln()},[rn,Gt,at,Ve]),(0,te.Z)(function(){if(De===Te)Re(Ke);else if(De===Ke){var Ln=ke(ct.current,!1,Gt,at);Re(et),sn(Ln)}else Be()},[De]);var Hn=Ct.useRef(),wi=function(){ne.Z.cancel(Hn.current)},Pi=function(rr){De===et&&(Jt==null||Jt(rr),bt&&(wi(),Hn.current=(0,ne.Z)(function(){ln()})))};Ct.useEffect(function(){return wi},[]);var Ri=Ve?Vt:null,Zi=(0,Ie.Z)((0,Ie.Z)({},Kn),Ri);return(De===Te||De===Ke)&&(Zi.overflowY="hidden",Zi.overflowX="hidden"),Ct.createElement(Me.Z,{onResize:Pi,disabled:!(bt||Jt)},Ct.createElement("textarea",(0,xe.Z)({},Vn,{ref:ct,style:Zi,className:Ft()(je,un,(0,We.Z)({},"".concat(je,"-disabled"),En)),disabled:En,value:Bn,onChange:$t})))}),ft=Xe,Ge=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function kt(Bt,Qt){return(0,Ne.Z)(Bt||"").slice(0,Qt).join("")}function $e(Bt,Qt,ht,je){var At=ht;return Bt?At=kt(ht,je):(0,Ne.Z)(Qt||"").length<ht.length&&(0,Ne.Z)(ht||"").length>je&&(At=Qt),At}var zt=Ct.forwardRef(function(Bt,Qt){var ht,je=Bt.defaultValue,At=Bt.value,wn=Bt.onFocus,rn=Bt.onBlur,bt=Bt.onChange,Jt=Bt.allowClear,un=Bt.maxLength,Kn=Bt.onCompositionStart,En=Bt.onCompositionEnd,Yn=Bt.suffix,St=Bt.prefixCls,Vn=St===void 0?"rc-textarea":St,Cn=Bt.classes,Si=Bt.showCount,Bn=Bt.className,tn=Bt.style,$t=Bt.disabled,ct=Bt.hidden,ze=Bt.classNames,Ut=Bt.styles,Gt=Bt.onResize,at=(0,vt.Z)(Bt,Ge),Ve=(0,dt.Z)(je,{value:At,defaultValue:je}),Be=(0,Qe.Z)(Ve,2),we=Be[0],me=Be[1],De=(0,Ct.useRef)(null),Re=Ct.useState(!1),Le=(0,Qe.Z)(Re,2),st=Le[0],Vt=Le[1],sn=Ct.useState(!1),ln=(0,Qe.Z)(sn,2),Hn=ln[0],wi=ln[1],Pi=Ct.useRef(),Ri=Ct.useRef(0),Zi=Ct.useState(null),Ln=(0,Qe.Z)(Zi,2),rr=Ln[0],Kr=Ln[1],Vr=function(){var Et;(Et=De.current)===null||Et===void 0||Et.textArea.focus()};(0,Ct.useImperativeHandle)(Qt,function(){return{resizableTextArea:De.current,focus:Vr,blur:function(){var Et;(Et=De.current)===null||Et===void 0||Et.textArea.blur()}}}),(0,Ct.useEffect)(function(){Vt(function(yt){return!$t&&yt})},[$t]);var jr=Number(un)>0,li=function(Et){wi(!0),Pi.current=we,Ri.current=Et.currentTarget.selectionStart,Kn==null||Kn(Et)},Ti=function(Et){wi(!1);var Lt=Et.currentTarget.value;if(jr){var tt,en=Ri.current>=un+1||Ri.current===((tt=Pi.current)===null||tt===void 0?void 0:tt.length);Lt=$e(en,Pi.current,Lt,un)}Lt!==we&&(me(Lt),(0,gt.rJ)(Et.currentTarget,Et,bt,Lt)),En==null||En(Et)},vr=function(Et){var Lt=Et.target.value;if(!Hn&&jr){var tt=Et.target.selectionStart>=un+1||Et.target.selectionStart===Lt.length||!Et.target.selectionStart;Lt=$e(tt,we,Lt,un)}me(Lt),(0,gt.rJ)(Et.currentTarget,Et,bt,Lt)},ui=function(Et){var Lt=at.onPressEnter,tt=at.onKeyDown;Et.key==="Enter"&&Lt&&Lt(Et),tt==null||tt(Et)},Ir=function(Et){Vt(!0),wn==null||wn(Et)},zn=function(Et){Vt(!1),rn==null||rn(Et)},Ee=function(Et){var Lt;me(""),Vr(),(0,gt.rJ)((Lt=De.current)===null||Lt===void 0?void 0:Lt.textArea,Et,bt)},cr=(0,gt.D7)(we);!Hn&&jr&&At==null&&(cr=kt(cr,un));var Xi=Yn,yn;if(Si){var oi=(0,Ne.Z)(cr).length;(0,It.Z)(Si)==="object"?yn=Si.formatter({value:cr,count:oi,maxLength:un}):yn="".concat(oi).concat(jr?" / ".concat(un):""),Xi=Ct.createElement(Ct.Fragment,null,Xi,Ct.createElement("span",{className:Ft()("".concat(Vn,"-data-count"),ze==null?void 0:ze.count),style:Ut==null?void 0:Ut.count},yn))}var Ci=function(Et){var Lt;Gt==null||Gt(Et),(Lt=De.current)!==null&&Lt!==void 0&&Lt.textArea.style.height&&Kr(!0)},xn=!at.autoSize&&!Si&&!Jt,on=Ct.createElement(qe.BaseInput,{value:cr,allowClear:Jt,handleReset:Ee,suffix:Xi,prefixCls:Vn,classes:{affixWrapper:Ft()(Cn==null?void 0:Cn.affixWrapper,(ht={},(0,We.Z)(ht,"".concat(Vn,"-show-count"),Si),(0,We.Z)(ht,"".concat(Vn,"-textarea-allow-clear"),Jt),ht))},disabled:$t,focused:st,className:Bn,style:(0,Ie.Z)((0,Ie.Z)({},tn),rr&&!xn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof yn=="string"?yn:void 0}},hidden:ct,inputElement:Ct.createElement(ft,(0,xe.Z)({},at,{onKeyDown:ui,onChange:vr,onFocus:Ir,onBlur:zn,onCompositionStart:li,onCompositionEnd:Ti,className:ze==null?void 0:ze.textarea,style:(0,Ie.Z)((0,Ie.Z)({},Ut==null?void 0:Ut.textarea),{},{resize:tn==null?void 0:tn.resize}),disabled:$t,prefixCls:Vn,onResize:Ci,ref:De}))});return on}),Ht=zt,Yt=Ht},39417:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Ke}});var xe=ye(5891),Ie=ye(80962),We=ye(19149),It=ye(57259),Qe=ye(79545),vt=ye(68550),Ne=ye(21882),Tt=ye(17928),Ft=ye(7711),qe=ye(92310),gt=ye.n(qe),dt=ye(36994),Ct=ye(59301),Me=ye(39378),te=function(Xe){for(var ft=Xe.prefixCls,Ge=Xe.level,kt=Xe.isStart,$e=Xe.isEnd,zt="".concat(ft,"-indent-unit"),Ht=[],Yt=0;Yt<Ge;Yt+=1){var Bt;Ht.push(Ct.createElement("span",{key:Yt,className:gt()(zt,(Bt={},(0,Ie.Z)(Bt,"".concat(zt,"-start"),kt[Yt]),(0,Ie.Z)(Bt,"".concat(zt,"-end"),$e[Yt]),Bt))}))}return Ct.createElement("span",{"aria-hidden":"true",className:"".concat(ft,"-indent")},Ht)},ne=Ct.memo(te),ce=ye(67841),se=ye(71430),ge=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ve="open",Ce="close",ke="---",Pe=function(et){(0,Tt.Z)(ft,et);var Xe=(0,Ft.Z)(ft);function ft(){var Ge;(0,Qe.Z)(this,ft);for(var kt=arguments.length,$e=new Array(kt),zt=0;zt<kt;zt++)$e[zt]=arguments[zt];return Ge=Xe.call.apply(Xe,[this].concat($e)),Ge.state={dragNodeHighlight:!1},Ge.selectHandle=void 0,Ge.cacheIndent=void 0,Ge.onSelectorClick=function(Ht){var Yt=Ge.props.context.onNodeClick;Yt(Ht,(0,se.F)(Ge.props)),Ge.isSelectable()?Ge.onSelect(Ht):Ge.onCheck(Ht)},Ge.onSelectorDoubleClick=function(Ht){var Yt=Ge.props.context.onNodeDoubleClick;Yt(Ht,(0,se.F)(Ge.props))},Ge.onSelect=function(Ht){if(!Ge.isDisabled()){var Yt=Ge.props.context.onNodeSelect;Yt(Ht,(0,se.F)(Ge.props))}},Ge.onCheck=function(Ht){if(!Ge.isDisabled()){var Yt=Ge.props,Bt=Yt.disableCheckbox,Qt=Yt.checked,ht=Ge.props.context.onNodeCheck;if(!(!Ge.isCheckable()||Bt)){var je=!Qt;ht(Ht,(0,se.F)(Ge.props),je)}}},Ge.onMouseEnter=function(Ht){var Yt=Ge.props.context.onNodeMouseEnter;Yt(Ht,(0,se.F)(Ge.props))},Ge.onMouseLeave=function(Ht){var Yt=Ge.props.context.onNodeMouseLeave;Yt(Ht,(0,se.F)(Ge.props))},Ge.onContextMenu=function(Ht){var Yt=Ge.props.context.onNodeContextMenu;Yt(Ht,(0,se.F)(Ge.props))},Ge.onDragStart=function(Ht){var Yt=Ge.props.context.onNodeDragStart;Ht.stopPropagation(),Ge.setState({dragNodeHighlight:!0}),Yt(Ht,(0,Ne.Z)(Ge));try{Ht.dataTransfer.setData("text/plain","")}catch(Bt){}},Ge.onDragEnter=function(Ht){var Yt=Ge.props.context.onNodeDragEnter;Ht.preventDefault(),Ht.stopPropagation(),Yt(Ht,(0,Ne.Z)(Ge))},Ge.onDragOver=function(Ht){var Yt=Ge.props.context.onNodeDragOver;Ht.preventDefault(),Ht.stopPropagation(),Yt(Ht,(0,Ne.Z)(Ge))},Ge.onDragLeave=function(Ht){var Yt=Ge.props.context.onNodeDragLeave;Ht.stopPropagation(),Yt(Ht,(0,Ne.Z)(Ge))},Ge.onDragEnd=function(Ht){var Yt=Ge.props.context.onNodeDragEnd;Ht.stopPropagation(),Ge.setState({dragNodeHighlight:!1}),Yt(Ht,(0,Ne.Z)(Ge))},Ge.onDrop=function(Ht){var Yt=Ge.props.context.onNodeDrop;Ht.preventDefault(),Ht.stopPropagation(),Ge.setState({dragNodeHighlight:!1}),Yt(Ht,(0,Ne.Z)(Ge))},Ge.onExpand=function(Ht){var Yt=Ge.props,Bt=Yt.loading,Qt=Yt.context.onNodeExpand;Bt||Qt(Ht,(0,se.F)(Ge.props))},Ge.setSelectHandle=function(Ht){Ge.selectHandle=Ht},Ge.getNodeState=function(){var Ht=Ge.props.expanded;return Ge.isLeaf()?null:Ht?ve:Ce},Ge.hasChildren=function(){var Ht=Ge.props.eventKey,Yt=Ge.props.context.keyEntities,Bt=(0,ce.Z)(Yt,Ht)||{},Qt=Bt.children;return!!(Qt||[]).length},Ge.isLeaf=function(){var Ht=Ge.props,Yt=Ht.isLeaf,Bt=Ht.loaded,Qt=Ge.props.context.loadData,ht=Ge.hasChildren();return Yt===!1?!1:Yt||!Qt&&!ht||Qt&&Bt&&!ht},Ge.isDisabled=function(){var Ht=Ge.props.disabled,Yt=Ge.props.context.disabled;return!!(Yt||Ht)},Ge.isCheckable=function(){var Ht=Ge.props.checkable,Yt=Ge.props.context.checkable;return!Yt||Ht===!1?!1:Yt},Ge.syncLoadData=function(Ht){var Yt=Ht.expanded,Bt=Ht.loading,Qt=Ht.loaded,ht=Ge.props.context,je=ht.loadData,At=ht.onNodeLoad;Bt||je&&Yt&&!Ge.isLeaf()&&!Ge.hasChildren()&&!Qt&&At((0,se.F)(Ge.props))},Ge.isDraggable=function(){var Ht=Ge.props,Yt=Ht.data,Bt=Ht.context.draggable;return!!(Bt&&(!Bt.nodeDraggable||Bt.nodeDraggable(Yt)))},Ge.renderDragHandler=function(){var Ht=Ge.props.context,Yt=Ht.draggable,Bt=Ht.prefixCls;return Yt!=null&&Yt.icon?Ct.createElement("span",{className:"".concat(Bt,"-draggable-icon")},Yt.icon):null},Ge.renderSwitcherIconDom=function(Ht){var Yt=Ge.props.switcherIcon,Bt=Ge.props.context.switcherIcon,Qt=Yt||Bt;return typeof Qt=="function"?Qt((0,It.Z)((0,It.Z)({},Ge.props),{},{isLeaf:Ht})):Qt},Ge.renderSwitcher=function(){var Ht=Ge.props.expanded,Yt=Ge.props.context.prefixCls;if(Ge.isLeaf()){var Bt=Ge.renderSwitcherIconDom(!0);return Bt!==!1?Ct.createElement("span",{className:gt()("".concat(Yt,"-switcher"),"".concat(Yt,"-switcher-noop"))},Bt):null}var Qt=gt()("".concat(Yt,"-switcher"),"".concat(Yt,"-switcher_").concat(Ht?ve:Ce)),ht=Ge.renderSwitcherIconDom(!1);return ht!==!1?Ct.createElement("span",{onClick:Ge.onExpand,className:Qt},ht):null},Ge.renderCheckbox=function(){var Ht=Ge.props,Yt=Ht.checked,Bt=Ht.halfChecked,Qt=Ht.disableCheckbox,ht=Ge.props.context.prefixCls,je=Ge.isDisabled(),At=Ge.isCheckable();if(!At)return null;var wn=typeof At!="boolean"?At:null;return Ct.createElement("span",{className:gt()("".concat(ht,"-checkbox"),Yt&&"".concat(ht,"-checkbox-checked"),!Yt&&Bt&&"".concat(ht,"-checkbox-indeterminate"),(je||Qt)&&"".concat(ht,"-checkbox-disabled")),onClick:Ge.onCheck},wn)},Ge.renderIcon=function(){var Ht=Ge.props.loading,Yt=Ge.props.context.prefixCls;return Ct.createElement("span",{className:gt()("".concat(Yt,"-iconEle"),"".concat(Yt,"-icon__").concat(Ge.getNodeState()||"docu"),Ht&&"".concat(Yt,"-icon_loading"))})},Ge.renderSelector=function(){var Ht=Ge.state.dragNodeHighlight,Yt=Ge.props,Bt=Yt.title,Qt=Bt===void 0?ke:Bt,ht=Yt.selected,je=Yt.icon,At=Yt.loading,wn=Yt.data,rn=Ge.props.context,bt=rn.prefixCls,Jt=rn.showIcon,un=rn.icon,Kn=rn.loadData,En=rn.titleRender,Yn=Ge.isDisabled(),St="".concat(bt,"-node-content-wrapper"),Vn;if(Jt){var Cn=je||un;Vn=Cn?Ct.createElement("span",{className:gt()("".concat(bt,"-iconEle"),"".concat(bt,"-icon__customize"))},typeof Cn=="function"?Cn(Ge.props):Cn):Ge.renderIcon()}else Kn&&At&&(Vn=Ge.renderIcon());var Si;typeof Qt=="function"?Si=Qt(wn):En?Si=En(wn):Si=Qt;var Bn=Ct.createElement("span",{className:"".concat(bt,"-title")},Si);return Ct.createElement("span",{ref:Ge.setSelectHandle,title:typeof Qt=="string"?Qt:"",className:gt()("".concat(St),"".concat(St,"-").concat(Ge.getNodeState()||"normal"),!Yn&&(ht||Ht)&&"".concat(bt,"-node-selected")),onMouseEnter:Ge.onMouseEnter,onMouseLeave:Ge.onMouseLeave,onContextMenu:Ge.onContextMenu,onClick:Ge.onSelectorClick,onDoubleClick:Ge.onSelectorDoubleClick},Vn,Bn,Ge.renderDropIndicator())},Ge.renderDropIndicator=function(){var Ht=Ge.props,Yt=Ht.disabled,Bt=Ht.eventKey,Qt=Ge.props.context,ht=Qt.draggable,je=Qt.dropLevelOffset,At=Qt.dropPosition,wn=Qt.prefixCls,rn=Qt.indent,bt=Qt.dropIndicatorRender,Jt=Qt.dragOverNodeKey,un=Qt.direction,Kn=!!ht,En=!Yt&&Kn&&Jt===Bt,Yn=rn!=null?rn:Ge.cacheIndent;return Ge.cacheIndent=rn,En?bt({dropPosition:At,dropLevelOffset:je,indent:Yn,prefixCls:wn,direction:un}):null},Ge}return(0,vt.Z)(ft,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var kt=this.props.selectable,$e=this.props.context.selectable;return typeof kt=="boolean"?kt:$e}},{key:"render",value:function(){var kt,$e=this.props,zt=$e.eventKey,Ht=$e.className,Yt=$e.style,Bt=$e.dragOver,Qt=$e.dragOverGapTop,ht=$e.dragOverGapBottom,je=$e.isLeaf,At=$e.isStart,wn=$e.isEnd,rn=$e.expanded,bt=$e.selected,Jt=$e.checked,un=$e.halfChecked,Kn=$e.loading,En=$e.domRef,Yn=$e.active,St=$e.data,Vn=$e.onMouseMove,Cn=$e.selectable,Si=(0,We.Z)($e,ge),Bn=this.props.context,tn=Bn.prefixCls,$t=Bn.filterTreeNode,ct=Bn.keyEntities,ze=Bn.dropContainerKey,Ut=Bn.dropTargetKey,Gt=Bn.draggingNodeKey,at=this.isDisabled(),Ve=(0,dt.Z)(Si,{aria:!0,data:!0}),Be=(0,ce.Z)(ct,zt)||{},we=Be.level,me=wn[wn.length-1],De=this.isDraggable(),Re=!at&&De,Le=Gt===zt,st=Cn!==void 0?{"aria-selected":!!Cn}:void 0;return Ct.createElement("div",(0,xe.Z)({ref:En,className:gt()(Ht,"".concat(tn,"-treenode"),(kt={},(0,Ie.Z)(kt,"".concat(tn,"-treenode-disabled"),at),(0,Ie.Z)(kt,"".concat(tn,"-treenode-switcher-").concat(rn?"open":"close"),!je),(0,Ie.Z)(kt,"".concat(tn,"-treenode-checkbox-checked"),Jt),(0,Ie.Z)(kt,"".concat(tn,"-treenode-checkbox-indeterminate"),un),(0,Ie.Z)(kt,"".concat(tn,"-treenode-selected"),bt),(0,Ie.Z)(kt,"".concat(tn,"-treenode-loading"),Kn),(0,Ie.Z)(kt,"".concat(tn,"-treenode-active"),Yn),(0,Ie.Z)(kt,"".concat(tn,"-treenode-leaf-last"),me),(0,Ie.Z)(kt,"".concat(tn,"-treenode-draggable"),De),(0,Ie.Z)(kt,"dragging",Le),(0,Ie.Z)(kt,"drop-target",Ut===zt),(0,Ie.Z)(kt,"drop-container",ze===zt),(0,Ie.Z)(kt,"drag-over",!at&&Bt),(0,Ie.Z)(kt,"drag-over-gap-top",!at&&Qt),(0,Ie.Z)(kt,"drag-over-gap-bottom",!at&&ht),(0,Ie.Z)(kt,"filter-node",$t&&$t((0,se.F)(this.props))),kt)),style:Yt,draggable:Re,"aria-grabbed":Le,onDragStart:Re?this.onDragStart:void 0,onDragEnter:De?this.onDragEnter:void 0,onDragOver:De?this.onDragOver:void 0,onDragLeave:De?this.onDragLeave:void 0,onDrop:De?this.onDrop:void 0,onDragEnd:De?this.onDragEnd:void 0,onMouseMove:Vn},st,Ve),Ct.createElement(ne,{prefixCls:tn,level:we,isStart:At,isEnd:wn}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),ft}(Ct.Component),Te=function(Xe){return Ct.createElement(Me.k.Consumer,null,function(ft){return Ct.createElement(Pe,(0,xe.Z)({},Xe,{context:ft}))})};Te.displayName="TreeNode",Te.isTreeNode=1;var Ke=Te},39378:function(In,Fn,ye){"use strict";ye.d(Fn,{k:function(){return Ie}});var xe=ye(59301),Ie=xe.createContext(null)},99581:function(In,Fn,ye){"use strict";ye.d(Fn,{O:function(){return Ke.Z},Z:function(){return Bn}});var xe=ye(5891),Ie=ye(80962),We=ye(80665),It=ye(57259),Qe=ye(26390),vt=ye(79545),Ne=ye(68550),Tt=ye(21882),Ft=ye(17928),qe=ye(7711),gt=ye(92310),dt=ye.n(gt),Ct=ye(85108),Me=ye(36994),te=ye(51395),ne=ye(59301),ce=ye(39378);function se(tn){var $t=tn.dropPosition,ct=tn.dropLevelOffset,ze=tn.indent,Ut={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch($t){case-1:Ut.top=0,Ut.left=-ct*ze;break;case 1:Ut.bottom=0,Ut.left=-ct*ze;break;case 0:Ut.bottom=0,Ut.left=ze;break}return ne.createElement("div",{style:Ut})}function ge(tn){if(tn==null)throw new TypeError("Cannot destructure "+tn)}var ve=ye(29043),Ce=ye(19149),ke=ye(28800),Pe=ye(21881),Te=ye(43469),Ke=ye(39417);function et(tn,$t){var ct=ne.useState(!1),ze=(0,ve.Z)(ct,2),Ut=ze[0],Gt=ze[1];ne.useLayoutEffect(function(){if(Ut)return tn(),function(){$t()}},[Ut]),ne.useLayoutEffect(function(){return Gt(!0),function(){Gt(!1)}},[])}var Xe=ye(71430),ft=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Ge=function($t,ct){var ze=$t.className,Ut=$t.style,Gt=$t.motion,at=$t.motionNodes,Ve=$t.motionType,Be=$t.onMotionStart,we=$t.onMotionEnd,me=$t.active,De=$t.treeNodeRequiredProps,Re=(0,Ce.Z)($t,ft),Le=ne.useState(!0),st=(0,ve.Z)(Le,2),Vt=st[0],sn=st[1],ln=ne.useContext(ce.k),Hn=ln.prefixCls,wi=at&&Ve!=="hide";(0,ke.Z)(function(){at&&wi!==Vt&&sn(wi)},[at]);var Pi=function(){at&&Be()},Ri=ne.useRef(!1),Zi=function(){at&&!Ri.current&&(Ri.current=!0,we())};et(Pi,Zi);var Ln=function(Kr){wi===Kr&&Zi()};return at?ne.createElement(Te.default,(0,xe.Z)({ref:ct,visible:Vt},Gt,{motionAppear:Ve==="show",onVisibleChanged:Ln}),function(rr,Kr){var Vr=rr.className,jr=rr.style;return ne.createElement("div",{ref:Kr,className:dt()("".concat(Hn,"-treenode-motion"),Vr),style:jr},at.map(function(li){var Ti=(0,xe.Z)({},(ge(li.data),li.data)),vr=li.title,ui=li.key,Ir=li.isStart,zn=li.isEnd;delete Ti.children;var Ee=(0,Xe.H8)(ui,De);return ne.createElement(Ke.Z,(0,xe.Z)({},Ti,Ee,{title:vr,active:me,data:li.data,key:ui,isStart:Ir,isEnd:zn}))}))}):ne.createElement(Ke.Z,(0,xe.Z)({domRef:ct,className:ze,style:Ut},Re,{active:me}))};Ge.displayName="MotionTreeNode";var kt=ne.forwardRef(Ge),$e=kt;function zt(){var tn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],$t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ct=tn.length,ze=$t.length;if(Math.abs(ct-ze)!==1)return{add:!1,key:null};function Ut(Gt,at){var Ve=new Map;Gt.forEach(function(we){Ve.set(we,!0)});var Be=at.filter(function(we){return!Ve.has(we)});return Be.length===1?Be[0]:null}return ct<ze?{add:!0,key:Ut(tn,$t)}:{add:!1,key:Ut($t,tn)}}function Ht(tn,$t,ct){var ze=tn.findIndex(function(Ve){return Ve.key===ct}),Ut=tn[ze+1],Gt=$t.findIndex(function(Ve){return Ve.key===ct});if(Ut){var at=$t.findIndex(function(Ve){return Ve.key===Ut.key});return $t.slice(Gt+1,at)}return $t.slice(Gt+1)}var Yt=["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"],Bt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Qt=function(){},ht="RC_TREE_MOTION_".concat(Math.random()),je={key:ht},At={key:ht,level:0,index:0,pos:"0",node:je,nodes:[je]},wn={parent:null,children:[],pos:At.pos,data:je,title:null,key:ht,isStart:[],isEnd:[]};function rn(tn,$t,ct,ze){return $t===!1||!ct?tn:tn.slice(0,Math.ceil(ct/ze)+1)}function bt(tn){var $t=tn.key,ct=tn.pos;return(0,Xe.km)($t,ct)}function Jt(tn){for(var $t=String(tn.data.key),ct=tn;ct.parent;)ct=ct.parent,$t="".concat(ct.data.key," > ").concat($t);return $t}var un=ne.forwardRef(function(tn,$t){var ct=tn.prefixCls,ze=tn.data,Ut=tn.selectable,Gt=tn.checkable,at=tn.expandedKeys,Ve=tn.selectedKeys,Be=tn.checkedKeys,we=tn.loadedKeys,me=tn.loadingKeys,De=tn.halfCheckedKeys,Re=tn.keyEntities,Le=tn.disabled,st=tn.dragging,Vt=tn.dragOverNodeKey,sn=tn.dropPosition,ln=tn.motion,Hn=tn.height,wi=tn.itemHeight,Pi=tn.virtual,Ri=tn.focusable,Zi=tn.activeItem,Ln=tn.focused,rr=tn.tabIndex,Kr=tn.onKeyDown,Vr=tn.onFocus,jr=tn.onBlur,li=tn.onActiveChange,Ti=tn.onListChangeStart,vr=tn.onListChangeEnd,ui=(0,Ce.Z)(tn,Yt),Ir=ne.useRef(null),zn=ne.useRef(null);ne.useImperativeHandle($t,function(){return{scrollTo:function(vn){Ir.current.scrollTo(vn)},getIndentWidth:function(){return zn.current.offsetWidth}}});var Ee=ne.useState(at),cr=(0,ve.Z)(Ee,2),Xi=cr[0],yn=cr[1],oi=ne.useState(ze),Ci=(0,ve.Z)(oi,2),xn=Ci[0],on=Ci[1],yt=ne.useState(ze),Et=(0,ve.Z)(yt,2),Lt=Et[0],tt=Et[1],en=ne.useState([]),fn=(0,ve.Z)(en,2),xt=fn[0],Ue=fn[1],an=ne.useState(null),Dt=(0,ve.Z)(an,2),Rn=Dt[0],dn=Dt[1],Pt=ne.useRef(ze);Pt.current=ze;function Sn(){var Rt=Pt.current;on(Rt),tt(Rt),Ue([]),dn(null),vr()}(0,ke.Z)(function(){yn(at);var Rt=zt(Xi,at);if(Rt.key!==null)if(Rt.add){var vn=xn.findIndex(function(Fi){var Ki=Fi.key;return Ki===Rt.key}),bi=rn(Ht(xn,ze,Rt.key),Pi,Hn,wi),vi=xn.slice();vi.splice(vn+1,0,wn),tt(vi),Ue(bi),dn("show")}else{var pi=ze.findIndex(function(Fi){var Ki=Fi.key;return Ki===Rt.key}),ei=rn(Ht(ze,xn,Rt.key),Pi,Hn,wi),yi=ze.slice();yi.splice(pi+1,0,wn),tt(yi),Ue(ei),dn("hide")}else xn!==ze&&(on(ze),tt(ze))},[at,ze]),ne.useEffect(function(){st||Sn()},[st]);var Qn=ln?Lt:ze,Xn={expandedKeys:at,selectedKeys:Ve,loadedKeys:we,loadingKeys:me,checkedKeys:Be,halfCheckedKeys:De,dragOverNodeKey:Vt,dropPosition:sn,keyEntities:Re};return ne.createElement(ne.Fragment,null,Ln&&Zi&&ne.createElement("span",{style:Bt,"aria-live":"assertive"},Jt(Zi)),ne.createElement("div",null,ne.createElement("input",{style:Bt,disabled:Ri===!1||Le,tabIndex:Ri!==!1?rr:null,onKeyDown:Kr,onFocus:Vr,onBlur:jr,value:"",onChange:Qt,"aria-label":"for screen reader"})),ne.createElement("div",{className:"".concat(ct,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ne.createElement("div",{className:"".concat(ct,"-indent")},ne.createElement("div",{ref:zn,className:"".concat(ct,"-indent-unit")}))),ne.createElement(Pe.Z,(0,xe.Z)({},ui,{data:Qn,itemKey:bt,height:Hn,fullHeight:!1,virtual:Pi,itemHeight:wi,prefixCls:"".concat(ct,"-list"),ref:Ir,onVisibleChange:function(vn,bi){var vi=new Set(vn),pi=bi.filter(function(ei){return!vi.has(ei)});pi.some(function(ei){return bt(ei)===ht})&&Sn()}}),function(Rt){var vn=Rt.pos,bi=(0,xe.Z)({},(ge(Rt.data),Rt.data)),vi=Rt.title,pi=Rt.key,ei=Rt.isStart,yi=Rt.isEnd,Fi=(0,Xe.km)(pi,vn);delete bi.key,delete bi.children;var Ki=(0,Xe.H8)(Fi,Xn);return ne.createElement($e,(0,xe.Z)({},bi,Ki,{title:vi,active:!!Zi&&pi===Zi.key,pos:vn,data:Rt.data,isStart:ei,isEnd:yi,motion:ln,motionNodes:pi===ht?xt:null,motionType:Rn,onMotionStart:Ti,onMotionEnd:Sn,treeNodeRequiredProps:Xn,onMouseMove:function(){li(null)}}))}))});un.displayName="NodeList";var Kn=un,En=ye(35654),Yn=ye(90782),St=ye(67841),Vn=10,Cn=function(tn){(0,Ft.Z)(ct,tn);var $t=(0,qe.Z)(ct);function ct(){var ze;(0,vt.Z)(this,ct);for(var Ut=arguments.length,Gt=new Array(Ut),at=0;at<Ut;at++)Gt[at]=arguments[at];return ze=$t.call.apply($t,[this].concat(Gt)),ze.destroyed=!1,ze.delayedDragEnterLogic=void 0,ze.loadingRetryTimes={},ze.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,Xe.w$)()},ze.dragStartMousePosition=null,ze.dragNode=void 0,ze.currentMouseOverDroppableNodeKey=null,ze.listRef=ne.createRef(),ze.onNodeDragStart=function(Ve,Be){var we=ze.state,me=we.expandedKeys,De=we.keyEntities,Re=ze.props.onDragStart,Le=Be.props.eventKey;ze.dragNode=Be,ze.dragStartMousePosition={x:Ve.clientX,y:Ve.clientY};var st=(0,En._5)(me,Le);ze.setState({draggingNodeKey:Le,dragChildrenKeys:(0,En.wA)(Le,De),indent:ze.listRef.current.getIndentWidth()}),ze.setExpandedKeys(st),window.addEventListener("dragend",ze.onWindowDragEnd),Re==null||Re({event:Ve,node:(0,Xe.F)(Be.props)})},ze.onNodeDragEnter=function(Ve,Be){var we=ze.state,me=we.expandedKeys,De=we.keyEntities,Re=we.dragChildrenKeys,Le=we.flattenNodes,st=we.indent,Vt=ze.props,sn=Vt.onDragEnter,ln=Vt.onExpand,Hn=Vt.allowDrop,wi=Vt.direction,Pi=Be.props,Ri=Pi.pos,Zi=Pi.eventKey,Ln=(0,Tt.Z)(ze),rr=Ln.dragNode;if(ze.currentMouseOverDroppableNodeKey!==Zi&&(ze.currentMouseOverDroppableNodeKey=Zi),!rr){ze.resetDragState();return}var Kr=(0,En.OM)(Ve,rr,Be,st,ze.dragStartMousePosition,Hn,Le,De,me,wi),Vr=Kr.dropPosition,jr=Kr.dropLevelOffset,li=Kr.dropTargetKey,Ti=Kr.dropContainerKey,vr=Kr.dropTargetPos,ui=Kr.dropAllowed,Ir=Kr.dragOverNodeKey;if(Re.indexOf(li)!==-1||!ui){ze.resetDragState();return}if(ze.delayedDragEnterLogic||(ze.delayedDragEnterLogic={}),Object.keys(ze.delayedDragEnterLogic).forEach(function(zn){clearTimeout(ze.delayedDragEnterLogic[zn])}),rr.props.eventKey!==Be.props.eventKey&&(Ve.persist(),ze.delayedDragEnterLogic[Ri]=window.setTimeout(function(){if(ze.state.draggingNodeKey!==null){var zn=(0,Qe.Z)(me),Ee=(0,St.Z)(De,Be.props.eventKey);Ee&&(Ee.children||[]).length&&(zn=(0,En.L0)(me,Be.props.eventKey)),"expandedKeys"in ze.props||ze.setExpandedKeys(zn),ln==null||ln(zn,{node:(0,Xe.F)(Be.props),expanded:!0,nativeEvent:Ve.nativeEvent})}},800)),rr.props.eventKey===li&&jr===0){ze.resetDragState();return}ze.setState({dragOverNodeKey:Ir,dropPosition:Vr,dropLevelOffset:jr,dropTargetKey:li,dropContainerKey:Ti,dropTargetPos:vr,dropAllowed:ui}),sn==null||sn({event:Ve,node:(0,Xe.F)(Be.props),expandedKeys:me})},ze.onNodeDragOver=function(Ve,Be){var we=ze.state,me=we.dragChildrenKeys,De=we.flattenNodes,Re=we.keyEntities,Le=we.expandedKeys,st=we.indent,Vt=ze.props,sn=Vt.onDragOver,ln=Vt.allowDrop,Hn=Vt.direction,wi=(0,Tt.Z)(ze),Pi=wi.dragNode;if(Pi){var Ri=(0,En.OM)(Ve,Pi,Be,st,ze.dragStartMousePosition,ln,De,Re,Le,Hn),Zi=Ri.dropPosition,Ln=Ri.dropLevelOffset,rr=Ri.dropTargetKey,Kr=Ri.dropContainerKey,Vr=Ri.dropAllowed,jr=Ri.dropTargetPos,li=Ri.dragOverNodeKey;me.indexOf(rr)!==-1||!Vr||(Pi.props.eventKey===rr&&Ln===0?ze.state.dropPosition===null&&ze.state.dropLevelOffset===null&&ze.state.dropTargetKey===null&&ze.state.dropContainerKey===null&&ze.state.dropTargetPos===null&&ze.state.dropAllowed===!1&&ze.state.dragOverNodeKey===null||ze.resetDragState():Zi===ze.state.dropPosition&&Ln===ze.state.dropLevelOffset&&rr===ze.state.dropTargetKey&&Kr===ze.state.dropContainerKey&&jr===ze.state.dropTargetPos&&Vr===ze.state.dropAllowed&&li===ze.state.dragOverNodeKey||ze.setState({dropPosition:Zi,dropLevelOffset:Ln,dropTargetKey:rr,dropContainerKey:Kr,dropTargetPos:jr,dropAllowed:Vr,dragOverNodeKey:li}),sn==null||sn({event:Ve,node:(0,Xe.F)(Be.props)}))}},ze.onNodeDragLeave=function(Ve,Be){ze.currentMouseOverDroppableNodeKey===Be.props.eventKey&&!Ve.currentTarget.contains(Ve.relatedTarget)&&(ze.resetDragState(),ze.currentMouseOverDroppableNodeKey=null);var we=ze.props.onDragLeave;we==null||we({event:Ve,node:(0,Xe.F)(Be.props)})},ze.onWindowDragEnd=function(Ve){ze.onNodeDragEnd(Ve,null,!0),window.removeEventListener("dragend",ze.onWindowDragEnd)},ze.onNodeDragEnd=function(Ve,Be){var we=ze.props.onDragEnd;ze.setState({dragOverNodeKey:null}),ze.cleanDragState(),we==null||we({event:Ve,node:(0,Xe.F)(Be.props)}),ze.dragNode=null,window.removeEventListener("dragend",ze.onWindowDragEnd)},ze.onNodeDrop=function(Ve,Be){var we,me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,De=ze.state,Re=De.dragChildrenKeys,Le=De.dropPosition,st=De.dropTargetKey,Vt=De.dropTargetPos,sn=De.dropAllowed;if(sn){var ln=ze.props.onDrop;if(ze.setState({dragOverNodeKey:null}),ze.cleanDragState(),st!==null){var Hn=(0,It.Z)((0,It.Z)({},(0,Xe.H8)(st,ze.getTreeNodeRequiredProps())),{},{active:((we=ze.getActiveItem())===null||we===void 0?void 0:we.key)===st,data:(0,St.Z)(ze.state.keyEntities,st).node}),wi=Re.indexOf(st)!==-1;(0,te.ZP)(!wi,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Pi=(0,En.yx)(Vt),Ri={event:Ve,node:(0,Xe.F)(Hn),dragNode:ze.dragNode?(0,Xe.F)(ze.dragNode.props):null,dragNodesKeys:[ze.dragNode.props.eventKey].concat(Re),dropToGap:Le!==0,dropPosition:Le+Number(Pi[Pi.length-1])};me||ln==null||ln(Ri),ze.dragNode=null}}},ze.cleanDragState=function(){var Ve=ze.state.draggingNodeKey;Ve!==null&&ze.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),ze.dragStartMousePosition=null,ze.currentMouseOverDroppableNodeKey=null},ze.triggerExpandActionExpand=function(Ve,Be){var we=ze.state,me=we.expandedKeys,De=we.flattenNodes,Re=Be.expanded,Le=Be.key,st=Be.isLeaf;if(!(st||Ve.shiftKey||Ve.metaKey||Ve.ctrlKey)){var Vt=De.filter(function(ln){return ln.key===Le})[0],sn=(0,Xe.F)((0,It.Z)((0,It.Z)({},(0,Xe.H8)(Le,ze.getTreeNodeRequiredProps())),{},{data:Vt.data}));ze.setExpandedKeys(Re?(0,En._5)(me,Le):(0,En.L0)(me,Le)),ze.onNodeExpand(Ve,sn)}},ze.onNodeClick=function(Ve,Be){var we=ze.props,me=we.onClick,De=we.expandAction;De==="click"&&ze.triggerExpandActionExpand(Ve,Be),me==null||me(Ve,Be)},ze.onNodeDoubleClick=function(Ve,Be){var we=ze.props,me=we.onDoubleClick,De=we.expandAction;De==="doubleClick"&&ze.triggerExpandActionExpand(Ve,Be),me==null||me(Ve,Be)},ze.onNodeSelect=function(Ve,Be){var we=ze.state.selectedKeys,me=ze.state,De=me.keyEntities,Re=me.fieldNames,Le=ze.props,st=Le.onSelect,Vt=Le.multiple,sn=Be.selected,ln=Be[Re.key],Hn=!sn;Hn?Vt?we=(0,En.L0)(we,ln):we=[ln]:we=(0,En._5)(we,ln);var wi=we.map(function(Pi){var Ri=(0,St.Z)(De,Pi);return Ri?Ri.node:null}).filter(function(Pi){return Pi});ze.setUncontrolledState({selectedKeys:we}),st==null||st(we,{event:"select",selected:Hn,node:Be,selectedNodes:wi,nativeEvent:Ve.nativeEvent})},ze.onNodeCheck=function(Ve,Be,we){var me=ze.state,De=me.keyEntities,Re=me.checkedKeys,Le=me.halfCheckedKeys,st=ze.props,Vt=st.checkStrictly,sn=st.onCheck,ln=Be.key,Hn,wi={event:"check",node:Be,checked:we,nativeEvent:Ve.nativeEvent};if(Vt){var Pi=we?(0,En.L0)(Re,ln):(0,En._5)(Re,ln),Ri=(0,En._5)(Le,ln);Hn={checked:Pi,halfChecked:Ri},wi.checkedNodes=Pi.map(function(jr){return(0,St.Z)(De,jr)}).filter(function(jr){return jr}).map(function(jr){return jr.node}),ze.setUncontrolledState({checkedKeys:Pi})}else{var Zi=(0,Yn.S)([].concat((0,Qe.Z)(Re),[ln]),!0,De),Ln=Zi.checkedKeys,rr=Zi.halfCheckedKeys;if(!we){var Kr=new Set(Ln);Kr.delete(ln);var Vr=(0,Yn.S)(Array.from(Kr),{checked:!1,halfCheckedKeys:rr},De);Ln=Vr.checkedKeys,rr=Vr.halfCheckedKeys}Hn=Ln,wi.checkedNodes=[],wi.checkedNodesPositions=[],wi.halfCheckedKeys=rr,Ln.forEach(function(jr){var li=(0,St.Z)(De,jr);if(li){var Ti=li.node,vr=li.pos;wi.checkedNodes.push(Ti),wi.checkedNodesPositions.push({node:Ti,pos:vr})}}),ze.setUncontrolledState({checkedKeys:Ln},!1,{halfCheckedKeys:rr})}sn==null||sn(Hn,wi)},ze.onNodeLoad=function(Ve){var Be=Ve.key,we=new Promise(function(me,De){ze.setState(function(Re){var Le=Re.loadedKeys,st=Le===void 0?[]:Le,Vt=Re.loadingKeys,sn=Vt===void 0?[]:Vt,ln=ze.props,Hn=ln.loadData,wi=ln.onLoad;if(!Hn||st.indexOf(Be)!==-1||sn.indexOf(Be)!==-1)return null;var Pi=Hn(Ve);return Pi.then(function(){var Ri=ze.state.loadedKeys,Zi=(0,En.L0)(Ri,Be);wi==null||wi(Zi,{event:"load",node:Ve}),ze.setUncontrolledState({loadedKeys:Zi}),ze.setState(function(Ln){return{loadingKeys:(0,En._5)(Ln.loadingKeys,Be)}}),me()}).catch(function(Ri){if(ze.setState(function(Ln){return{loadingKeys:(0,En._5)(Ln.loadingKeys,Be)}}),ze.loadingRetryTimes[Be]=(ze.loadingRetryTimes[Be]||0)+1,ze.loadingRetryTimes[Be]>=Vn){var Zi=ze.state.loadedKeys;(0,te.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),ze.setUncontrolledState({loadedKeys:(0,En.L0)(Zi,Be)}),me()}De(Ri)}),{loadingKeys:(0,En.L0)(sn,Be)}})});return we.catch(function(){}),we},ze.onNodeMouseEnter=function(Ve,Be){var we=ze.props.onMouseEnter;we==null||we({event:Ve,node:Be})},ze.onNodeMouseLeave=function(Ve,Be){var we=ze.props.onMouseLeave;we==null||we({event:Ve,node:Be})},ze.onNodeContextMenu=function(Ve,Be){var we=ze.props.onRightClick;we&&(Ve.preventDefault(),we({event:Ve,node:Be}))},ze.onFocus=function(){var Ve=ze.props.onFocus;ze.setState({focused:!0});for(var Be=arguments.length,we=new Array(Be),me=0;me<Be;me++)we[me]=arguments[me];Ve==null||Ve.apply(void 0,we)},ze.onBlur=function(){var Ve=ze.props.onBlur;ze.setState({focused:!1}),ze.onActiveChange(null);for(var Be=arguments.length,we=new Array(Be),me=0;me<Be;me++)we[me]=arguments[me];Ve==null||Ve.apply(void 0,we)},ze.getTreeNodeRequiredProps=function(){var Ve=ze.state,Be=Ve.expandedKeys,we=Ve.selectedKeys,me=Ve.loadedKeys,De=Ve.loadingKeys,Re=Ve.checkedKeys,Le=Ve.halfCheckedKeys,st=Ve.dragOverNodeKey,Vt=Ve.dropPosition,sn=Ve.keyEntities;return{expandedKeys:Be||[],selectedKeys:we||[],loadedKeys:me||[],loadingKeys:De||[],checkedKeys:Re||[],halfCheckedKeys:Le||[],dragOverNodeKey:st,dropPosition:Vt,keyEntities:sn}},ze.setExpandedKeys=function(Ve){var Be=ze.state,we=Be.treeData,me=Be.fieldNames,De=(0,Xe.oH)(we,Ve,me);ze.setUncontrolledState({expandedKeys:Ve,flattenNodes:De},!0)},ze.onNodeExpand=function(Ve,Be){var we=ze.state.expandedKeys,me=ze.state,De=me.listChanging,Re=me.fieldNames,Le=ze.props,st=Le.onExpand,Vt=Le.loadData,sn=Be.expanded,ln=Be[Re.key];if(!De){var Hn=we.indexOf(ln),wi=!sn;if((0,te.ZP)(sn&&Hn!==-1||!sn&&Hn===-1,"Expand state not sync with index check"),wi?we=(0,En.L0)(we,ln):we=(0,En._5)(we,ln),ze.setExpandedKeys(we),st==null||st(we,{node:Be,expanded:wi,nativeEvent:Ve.nativeEvent}),wi&&Vt){var Pi=ze.onNodeLoad(Be);Pi&&Pi.then(function(){var Ri=(0,Xe.oH)(ze.state.treeData,we,Re);ze.setUncontrolledState({flattenNodes:Ri})}).catch(function(){var Ri=ze.state.expandedKeys,Zi=(0,En._5)(Ri,ln);ze.setExpandedKeys(Zi)})}}},ze.onListChangeStart=function(){ze.setUncontrolledState({listChanging:!0})},ze.onListChangeEnd=function(){setTimeout(function(){ze.setUncontrolledState({listChanging:!1})})},ze.onActiveChange=function(Ve){var Be=ze.state.activeKey,we=ze.props.onActiveChange;Be!==Ve&&(ze.setState({activeKey:Ve}),Ve!==null&&ze.scrollTo({key:Ve}),we==null||we(Ve))},ze.getActiveItem=function(){var Ve=ze.state,Be=Ve.activeKey,we=Ve.flattenNodes;return Be===null?null:we.find(function(me){var De=me.key;return De===Be})||null},ze.offsetActiveKey=function(Ve){var Be=ze.state,we=Be.flattenNodes,me=Be.activeKey,De=we.findIndex(function(st){var Vt=st.key;return Vt===me});De===-1&&Ve<0&&(De=we.length),De=(De+Ve+we.length)%we.length;var Re=we[De];if(Re){var Le=Re.key;ze.onActiveChange(Le)}else ze.onActiveChange(null)},ze.onKeyDown=function(Ve){var Be=ze.state,we=Be.activeKey,me=Be.expandedKeys,De=Be.checkedKeys,Re=Be.fieldNames,Le=ze.props,st=Le.onKeyDown,Vt=Le.checkable,sn=Le.selectable;switch(Ve.which){case Ct.Z.UP:{ze.offsetActiveKey(-1),Ve.preventDefault();break}case Ct.Z.DOWN:{ze.offsetActiveKey(1),Ve.preventDefault();break}}var ln=ze.getActiveItem();if(ln&&ln.data){var Hn=ze.getTreeNodeRequiredProps(),wi=ln.data.isLeaf===!1||!!(ln.data[Re.children]||[]).length,Pi=(0,Xe.F)((0,It.Z)((0,It.Z)({},(0,Xe.H8)(we,Hn)),{},{data:ln.data,active:!0}));switch(Ve.which){case Ct.Z.LEFT:{wi&&me.includes(we)?ze.onNodeExpand({},Pi):ln.parent&&ze.onActiveChange(ln.parent.key),Ve.preventDefault();break}case Ct.Z.RIGHT:{wi&&!me.includes(we)?ze.onNodeExpand({},Pi):ln.children&&ln.children.length&&ze.onActiveChange(ln.children[0].key),Ve.preventDefault();break}case Ct.Z.ENTER:case Ct.Z.SPACE:{Vt&&!Pi.disabled&&Pi.checkable!==!1&&!Pi.disableCheckbox?ze.onNodeCheck({},Pi,!De.includes(we)):!Vt&&sn&&!Pi.disabled&&Pi.selectable!==!1&&ze.onNodeSelect({},Pi);break}}}st==null||st(Ve)},ze.setUncontrolledState=function(Ve){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!ze.destroyed){var me=!1,De=!0,Re={};Object.keys(Ve).forEach(function(Le){if(Le in ze.props){De=!1;return}me=!0,Re[Le]=Ve[Le]}),me&&(!Be||De)&&ze.setState((0,It.Z)((0,It.Z)({},Re),we))}},ze.scrollTo=function(Ve){ze.listRef.current.scrollTo(Ve)},ze}return(0,Ne.Z)(ct,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Ut=this.props.activeKey;Ut!==void 0&&Ut!==this.state.activeKey&&(this.setState({activeKey:Ut}),Ut!==null&&this.scrollTo({key:Ut}))}},{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 Ut,Gt=this.state,at=Gt.focused,Ve=Gt.flattenNodes,Be=Gt.keyEntities,we=Gt.draggingNodeKey,me=Gt.activeKey,De=Gt.dropLevelOffset,Re=Gt.dropContainerKey,Le=Gt.dropTargetKey,st=Gt.dropPosition,Vt=Gt.dragOverNodeKey,sn=Gt.indent,ln=this.props,Hn=ln.prefixCls,wi=ln.className,Pi=ln.style,Ri=ln.showLine,Zi=ln.focusable,Ln=ln.tabIndex,rr=Ln===void 0?0:Ln,Kr=ln.selectable,Vr=ln.showIcon,jr=ln.icon,li=ln.switcherIcon,Ti=ln.draggable,vr=ln.checkable,ui=ln.checkStrictly,Ir=ln.disabled,zn=ln.motion,Ee=ln.loadData,cr=ln.filterTreeNode,Xi=ln.height,yn=ln.itemHeight,oi=ln.virtual,Ci=ln.titleRender,xn=ln.dropIndicatorRender,on=ln.onContextMenu,yt=ln.onScroll,Et=ln.direction,Lt=ln.rootClassName,tt=ln.rootStyle,en=(0,Me.Z)(this.props,{aria:!0,data:!0}),fn;return Ti&&((0,We.Z)(Ti)==="object"?fn=Ti:typeof Ti=="function"?fn={nodeDraggable:Ti}:fn={}),ne.createElement(ce.k.Provider,{value:{prefixCls:Hn,selectable:Kr,showIcon:Vr,icon:jr,switcherIcon:li,draggable:fn,draggingNodeKey:we,checkable:vr,checkStrictly:ui,disabled:Ir,keyEntities:Be,dropLevelOffset:De,dropContainerKey:Re,dropTargetKey:Le,dropPosition:st,dragOverNodeKey:Vt,indent:sn,direction:Et,dropIndicatorRender:xn,loadData:Ee,filterTreeNode:cr,titleRender:Ci,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}},ne.createElement("div",{role:"tree",className:dt()(Hn,wi,Lt,(Ut={},(0,Ie.Z)(Ut,"".concat(Hn,"-show-line"),Ri),(0,Ie.Z)(Ut,"".concat(Hn,"-focused"),at),(0,Ie.Z)(Ut,"".concat(Hn,"-active-focused"),me!==null),Ut)),style:tt},ne.createElement(Kn,(0,xe.Z)({ref:this.listRef,prefixCls:Hn,style:Pi,data:Ve,disabled:Ir,selectable:Kr,checkable:!!vr,motion:zn,dragging:we!==null,height:Xi,itemHeight:yn,virtual:oi,focusable:Zi,focused:at,tabIndex:rr,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:on,onScroll:yt},this.getTreeNodeRequiredProps(),en))))}}],[{key:"getDerivedStateFromProps",value:function(Ut,Gt){var at=Gt.prevProps,Ve={prevProps:Ut};function Be(Zi){return!at&&Zi in Ut||at&&at[Zi]!==Ut[Zi]}var we,me=Gt.fieldNames;if(Be("fieldNames")&&(me=(0,Xe.w$)(Ut.fieldNames),Ve.fieldNames=me),Be("treeData")?we=Ut.treeData:Be("children")&&((0,te.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),we=(0,Xe.zn)(Ut.children)),we){Ve.treeData=we;var De=(0,Xe.I8)(we,{fieldNames:me});Ve.keyEntities=(0,It.Z)((0,Ie.Z)({},ht,At),De.keyEntities)}var Re=Ve.keyEntities||Gt.keyEntities;if(Be("expandedKeys")||at&&Be("autoExpandParent"))Ve.expandedKeys=Ut.autoExpandParent||!at&&Ut.defaultExpandParent?(0,En.r7)(Ut.expandedKeys,Re):Ut.expandedKeys;else if(!at&&Ut.defaultExpandAll){var Le=(0,It.Z)({},Re);delete Le[ht],Ve.expandedKeys=Object.keys(Le).map(function(Zi){return Le[Zi].key})}else!at&&Ut.defaultExpandedKeys&&(Ve.expandedKeys=Ut.autoExpandParent||Ut.defaultExpandParent?(0,En.r7)(Ut.defaultExpandedKeys,Re):Ut.defaultExpandedKeys);if(Ve.expandedKeys||delete Ve.expandedKeys,we||Ve.expandedKeys){var st=(0,Xe.oH)(we||Gt.treeData,Ve.expandedKeys||Gt.expandedKeys,me);Ve.flattenNodes=st}if(Ut.selectable&&(Be("selectedKeys")?Ve.selectedKeys=(0,En.BT)(Ut.selectedKeys,Ut):!at&&Ut.defaultSelectedKeys&&(Ve.selectedKeys=(0,En.BT)(Ut.defaultSelectedKeys,Ut))),Ut.checkable){var Vt;if(Be("checkedKeys")?Vt=(0,En.E6)(Ut.checkedKeys)||{}:!at&&Ut.defaultCheckedKeys?Vt=(0,En.E6)(Ut.defaultCheckedKeys)||{}:we&&(Vt=(0,En.E6)(Ut.checkedKeys)||{checkedKeys:Gt.checkedKeys,halfCheckedKeys:Gt.halfCheckedKeys}),Vt){var sn=Vt,ln=sn.checkedKeys,Hn=ln===void 0?[]:ln,wi=sn.halfCheckedKeys,Pi=wi===void 0?[]:wi;if(!Ut.checkStrictly){var Ri=(0,Yn.S)(Hn,!0,Re);Hn=Ri.checkedKeys,Pi=Ri.halfCheckedKeys}Ve.checkedKeys=Hn,Ve.halfCheckedKeys=Pi}}return Be("loadedKeys")&&(Ve.loadedKeys=Ut.loadedKeys),Ve}}]),ct}(ne.Component);Cn.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:se,allowDrop:function(){return!0},expandAction:!1},Cn.TreeNode=Ke.Z;var Si=Cn,Bn=Si},35654:function(In,Fn,ye){"use strict";ye.d(Fn,{BT:function(){return ne},E6:function(){return ge},L0:function(){return qe},OM:function(){return te},_5:function(){return Ft},r7:function(){return ve},wA:function(){return dt},yx:function(){return gt}});var xe=ye(26390),Ie=ye(80665),We=ye(51395),It=ye(59301),Qe=ye(39417),vt=ye(67841),Ne=ye(71430),Tt=null;function Ft(Ce,ke){if(!Ce)return[];var Pe=Ce.slice(),Te=Pe.indexOf(ke);return Te>=0&&Pe.splice(Te,1),Pe}function qe(Ce,ke){var Pe=(Ce||[]).slice();return Pe.indexOf(ke)===-1&&Pe.push(ke),Pe}function gt(Ce){return Ce.split("-")}function dt(Ce,ke){var Pe=[],Te=(0,vt.Z)(ke,Ce);function Ke(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];et.forEach(function(Xe){var ft=Xe.key,Ge=Xe.children;Pe.push(ft),Ke(Ge)})}return Ke(Te.children),Pe}function Ct(Ce){if(Ce.parent){var ke=gt(Ce.pos);return Number(ke[ke.length-1])===Ce.parent.children.length-1}return!1}function Me(Ce){var ke=gt(Ce.pos);return Number(ke[ke.length-1])===0}function te(Ce,ke,Pe,Te,Ke,et,Xe,ft,Ge,kt){var $e,zt=Ce.clientX,Ht=Ce.clientY,Yt=Ce.target.getBoundingClientRect(),Bt=Yt.top,Qt=Yt.height,ht=(kt==="rtl"?-1:1)*(((Ke==null?void 0:Ke.x)||0)-zt),je=(ht-12)/Te,At=(0,vt.Z)(ft,Pe.props.eventKey);if(Ht<Bt+Qt/2){var wn=Xe.findIndex(function(Bn){return Bn.key===At.key}),rn=wn<=0?0:wn-1,bt=Xe[rn].key;At=(0,vt.Z)(ft,bt)}var Jt=At.key,un=At,Kn=At.key,En=0,Yn=0;if(!Ge.includes(Jt))for(var St=0;St<je&&Ct(At);St+=1)At=At.parent,Yn+=1;var Vn=ke.props.data,Cn=At.node,Si=!0;return Me(At)&&At.level===0&&Ht<Bt+Qt/2&&et({dragNode:Vn,dropNode:Cn,dropPosition:-1})&&At.key===Pe.props.eventKey?En=-1:(un.children||[]).length&&Ge.includes(Kn)?et({dragNode:Vn,dropNode:Cn,dropPosition:0})?En=0:Si=!1:Yn===0?je>-1.5?et({dragNode:Vn,dropNode:Cn,dropPosition:1})?En=1:Si=!1:et({dragNode:Vn,dropNode:Cn,dropPosition:0})?En=0:et({dragNode:Vn,dropNode:Cn,dropPosition:1})?En=1:Si=!1:et({dragNode:Vn,dropNode:Cn,dropPosition:1})?En=1:Si=!1,{dropPosition:En,dropLevelOffset:Yn,dropTargetKey:At.key,dropTargetPos:At.pos,dragOverNodeKey:Kn,dropContainerKey:En===0?null:(($e=At.parent)===null||$e===void 0?void 0:$e.key)||null,dropAllowed:Si}}function ne(Ce,ke){if(Ce){var Pe=ke.multiple;return Pe?Ce.slice():Ce.length?[Ce[0]]:Ce}}var ce=function(ke){return ke};function se(Ce,ke){if(!Ce)return[];var Pe=ke||{},Te=Pe.processProps,Ke=Te===void 0?ce:Te,et=Array.isArray(Ce)?Ce:[Ce];return et.map(function(Xe){var ft=Xe.children,Ge=_objectWithoutProperties(Xe,Tt),kt=se(ft,ke);return React.createElement(TreeNode,_extends({key:Ge.key},Ke(Ge)),kt)})}function ge(Ce){if(!Ce)return null;var ke;if(Array.isArray(Ce))ke={checkedKeys:Ce,halfCheckedKeys:void 0};else if((0,Ie.Z)(Ce)==="object")ke={checkedKeys:Ce.checked||void 0,halfCheckedKeys:Ce.halfChecked||void 0};else return(0,We.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return ke}function ve(Ce,ke){var Pe=new Set;function Te(Ke){if(!Pe.has(Ke)){var et=(0,vt.Z)(ke,Ke);if(et){Pe.add(Ke);var Xe=et.parent,ft=et.node;ft.disabled||Xe&&Te(Xe.key)}}}return(Ce||[]).forEach(function(Ke){Te(Ke)}),(0,xe.Z)(Pe)}},90782:function(In,Fn,ye){"use strict";ye.d(Fn,{S:function(){return Ne}});var xe=ye(51395),Ie=ye(67841);function We(Tt,Ft){var qe=new Set;return Tt.forEach(function(gt){Ft.has(gt)||qe.add(gt)}),qe}function It(Tt){var Ft=Tt||{},qe=Ft.disabled,gt=Ft.disableCheckbox,dt=Ft.checkable;return!!(qe||gt)||dt===!1}function Qe(Tt,Ft,qe,gt){for(var dt=new Set(Tt),Ct=new Set,Me=0;Me<=qe;Me+=1){var te=Ft.get(Me)||new Set;te.forEach(function(ge){var ve=ge.key,Ce=ge.node,ke=ge.children,Pe=ke===void 0?[]:ke;dt.has(ve)&&!gt(Ce)&&Pe.filter(function(Te){return!gt(Te.node)}).forEach(function(Te){dt.add(Te.key)})})}for(var ne=new Set,ce=qe;ce>=0;ce-=1){var se=Ft.get(ce)||new Set;se.forEach(function(ge){var ve=ge.parent,Ce=ge.node;if(!(gt(Ce)||!ge.parent||ne.has(ge.parent.key))){if(gt(ge.parent.node)){ne.add(ve.key);return}var ke=!0,Pe=!1;(ve.children||[]).filter(function(Te){return!gt(Te.node)}).forEach(function(Te){var Ke=Te.key,et=dt.has(Ke);ke&&!et&&(ke=!1),!Pe&&(et||Ct.has(Ke))&&(Pe=!0)}),ke&&dt.add(ve.key),Pe&&Ct.add(ve.key),ne.add(ve.key)}})}return{checkedKeys:Array.from(dt),halfCheckedKeys:Array.from(We(Ct,dt))}}function vt(Tt,Ft,qe,gt,dt){for(var Ct=new Set(Tt),Me=new Set(Ft),te=0;te<=gt;te+=1){var ne=qe.get(te)||new Set;ne.forEach(function(ve){var Ce=ve.key,ke=ve.node,Pe=ve.children,Te=Pe===void 0?[]:Pe;!Ct.has(Ce)&&!Me.has(Ce)&&!dt(ke)&&Te.filter(function(Ke){return!dt(Ke.node)}).forEach(function(Ke){Ct.delete(Ke.key)})})}Me=new Set;for(var ce=new Set,se=gt;se>=0;se-=1){var ge=qe.get(se)||new Set;ge.forEach(function(ve){var Ce=ve.parent,ke=ve.node;if(!(dt(ke)||!ve.parent||ce.has(ve.parent.key))){if(dt(ve.parent.node)){ce.add(Ce.key);return}var Pe=!0,Te=!1;(Ce.children||[]).filter(function(Ke){return!dt(Ke.node)}).forEach(function(Ke){var et=Ke.key,Xe=Ct.has(et);Pe&&!Xe&&(Pe=!1),!Te&&(Xe||Me.has(et))&&(Te=!0)}),Pe||Ct.delete(Ce.key),Te&&Me.add(Ce.key),ce.add(Ce.key)}})}return{checkedKeys:Array.from(Ct),halfCheckedKeys:Array.from(We(Me,Ct))}}function Ne(Tt,Ft,qe,gt){var dt=[],Ct;gt?Ct=gt:Ct=It;var Me=new Set(Tt.filter(function(se){var ge=!!(0,Ie.Z)(qe,se);return ge||dt.push(se),ge})),te=new Map,ne=0;Object.keys(qe).forEach(function(se){var ge=qe[se],ve=ge.level,Ce=te.get(ve);Ce||(Ce=new Set,te.set(ve,Ce)),Ce.add(ge),ne=Math.max(ne,ve)}),(0,xe.ZP)(!dt.length,"Tree missing follow keys: ".concat(dt.slice(0,100).map(function(se){return"'".concat(se,"'")}).join(", ")));var ce;return Ft===!0?ce=Qe(Me,te,ne,Ct):ce=vt(Me,Ft.halfCheckedKeys,te,ne,Ct),ce}},67841:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return xe}});function xe(Ie,We){return Ie[We]}},71430:function(In,Fn,ye){"use strict";ye.d(Fn,{F:function(){return ve},H8:function(){return ge},I8:function(){return se},km:function(){return dt},oH:function(){return ne},w$:function(){return Ct},zn:function(){return te}});var xe=ye(80665),Ie=ye(26390),We=ye(57259),It=ye(19149),Qe=ye(38298),vt=ye(64002),Ne=ye(51395),Tt=ye(67841),Ft=["children"];function qe(Ce,ke){return"".concat(Ce,"-").concat(ke)}function gt(Ce){return Ce&&Ce.type&&Ce.type.isTreeNode}function dt(Ce,ke){return Ce!=null?Ce:ke}function Ct(Ce){var ke=Ce||{},Pe=ke.title,Te=ke._title,Ke=ke.key,et=ke.children,Xe=Pe||"title";return{title:Xe,_title:Te||[Xe],key:Ke||"key",children:et||"children"}}function Me(Ce,ke){var Pe=new Map;function Te(Ke){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Ke||[]).forEach(function(Xe){var ft=Xe[ke.key],Ge=Xe[ke.children];warning(ft!=null,"Tree node must have a certain key: [".concat(et).concat(ft,"]"));var kt=String(ft);warning(!Pe.has(kt)||ft===null||ft===void 0,"Same 'key' exist in the Tree: ".concat(kt)),Pe.set(kt,!0),Te(Ge,"".concat(et).concat(kt," > "))})}Te(Ce)}function te(Ce){function ke(Pe){var Te=(0,Qe.Z)(Pe);return Te.map(function(Ke){if(!gt(Ke))return(0,Ne.ZP)(!Ke,"Tree/TreeNode can only accept TreeNode as children."),null;var et=Ke.key,Xe=Ke.props,ft=Xe.children,Ge=(0,It.Z)(Xe,Ft),kt=(0,We.Z)({key:et},Ge),$e=ke(ft);return $e.length&&(kt.children=$e),kt}).filter(function(Ke){return Ke})}return ke(Ce)}function ne(Ce,ke,Pe){var Te=Ct(Pe),Ke=Te._title,et=Te.key,Xe=Te.children,ft=new Set(ke===!0?[]:ke),Ge=[];function kt($e){var zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return $e.map(function(Ht,Yt){for(var Bt=qe(zt?zt.pos:"0",Yt),Qt=dt(Ht[et],Bt),ht,je=0;je<Ke.length;je+=1){var At=Ke[je];if(Ht[At]!==void 0){ht=Ht[At];break}}var wn=(0,We.Z)((0,We.Z)({},(0,vt.Z)(Ht,[].concat((0,Ie.Z)(Ke),[et,Xe]))),{},{title:ht,key:Qt,parent:zt,pos:Bt,children:null,data:Ht,isStart:[].concat((0,Ie.Z)(zt?zt.isStart:[]),[Yt===0]),isEnd:[].concat((0,Ie.Z)(zt?zt.isEnd:[]),[Yt===$e.length-1])});return Ge.push(wn),ke===!0||ft.has(Qt)?wn.children=kt(Ht[Xe]||[],wn):wn.children=[],wn})}return kt(Ce),Ge}function ce(Ce,ke,Pe){var Te={};(0,xe.Z)(Pe)==="object"?Te=Pe:Te={externalGetKey:Pe},Te=Te||{};var Ke=Te,et=Ke.childrenPropName,Xe=Ke.externalGetKey,ft=Ke.fieldNames,Ge=Ct(ft),kt=Ge.key,$e=Ge.children,zt=et||$e,Ht;Xe?typeof Xe=="string"?Ht=function(Qt){return Qt[Xe]}:typeof Xe=="function"&&(Ht=function(Qt){return Xe(Qt)}):Ht=function(Qt,ht){return dt(Qt[kt],ht)};function Yt(Bt,Qt,ht,je){var At=Bt?Bt[zt]:Ce,wn=Bt?qe(ht.pos,Qt):"0",rn=Bt?[].concat((0,Ie.Z)(je),[Bt]):[];if(Bt){var bt=Ht(Bt,wn),Jt={node:Bt,index:Qt,pos:wn,key:bt,parentPos:ht.node?ht.pos:null,level:ht.level+1,nodes:rn};ke(Jt)}At&&At.forEach(function(un,Kn){Yt(un,Kn,{node:Bt,pos:wn,level:ht?ht.level+1:-1},rn)})}Yt(null)}function se(Ce){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Pe=ke.initWrapper,Te=ke.processEntity,Ke=ke.onProcessFinished,et=ke.externalGetKey,Xe=ke.childrenPropName,ft=ke.fieldNames,Ge=arguments.length>2?arguments[2]:void 0,kt=et||Ge,$e={},zt={},Ht={posEntities:$e,keyEntities:zt};return Pe&&(Ht=Pe(Ht)||Ht),ce(Ce,function(Yt){var Bt=Yt.node,Qt=Yt.index,ht=Yt.pos,je=Yt.key,At=Yt.parentPos,wn=Yt.level,rn=Yt.nodes,bt={node:Bt,nodes:rn,index:Qt,key:je,pos:ht,level:wn},Jt=dt(je,ht);$e[ht]=bt,zt[Jt]=bt,bt.parent=$e[At],bt.parent&&(bt.parent.children=bt.parent.children||[],bt.parent.children.push(bt)),Te&&Te(bt,Ht)},{externalGetKey:kt,childrenPropName:Xe,fieldNames:ft}),Ke&&Ke(Ht),Ht}function ge(Ce,ke){var Pe=ke.expandedKeys,Te=ke.selectedKeys,Ke=ke.loadedKeys,et=ke.loadingKeys,Xe=ke.checkedKeys,ft=ke.halfCheckedKeys,Ge=ke.dragOverNodeKey,kt=ke.dropPosition,$e=ke.keyEntities,zt=(0,Tt.Z)($e,Ce),Ht={eventKey:Ce,expanded:Pe.indexOf(Ce)!==-1,selected:Te.indexOf(Ce)!==-1,loaded:Ke.indexOf(Ce)!==-1,loading:et.indexOf(Ce)!==-1,checked:Xe.indexOf(Ce)!==-1,halfChecked:ft.indexOf(Ce)!==-1,pos:String(zt?zt.pos:""),dragOver:Ge===Ce&&kt===0,dragOverGapTop:Ge===Ce&&kt===-1,dragOverGapBottom:Ge===Ce&&kt===1};return Ht}function ve(Ce){var ke=Ce.data,Pe=Ce.expanded,Te=Ce.selected,Ke=Ce.checked,et=Ce.loaded,Xe=Ce.loading,ft=Ce.halfChecked,Ge=Ce.dragOver,kt=Ce.dragOverGapTop,$e=Ce.dragOverGapBottom,zt=Ce.pos,Ht=Ce.active,Yt=Ce.eventKey,Bt=(0,We.Z)((0,We.Z)({},ke),{},{expanded:Pe,selected:Te,checked:Ke,loaded:et,loading:Xe,halfChecked:ft,dragOver:Ge,dragOverGapTop:kt,dragOverGapBottom:$e,pos:zt,active:Ht,key:Yt});return"props"in Bt||Object.defineProperty(Bt,"props",{get:function(){return(0,Ne.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Ce}}),Bt}},8178:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Ie}});var xe=ye(4676);function Ie(We,It,Qe,vt){var Ne=xe.unstable_batchedUpdates?function(Ft){xe.unstable_batchedUpdates(Qe,Ft)}:Qe;return We!=null&&We.addEventListener&&We.addEventListener(It,Ne,vt),{remove:function(){We!=null&&We.removeEventListener&&We.removeEventListener(It,Ne,vt)}}}},21783:function(In,Fn,ye){"use strict";ye.d(Fn,{g1:function(){return gt},os:function(){return Ct}});var xe=/margin|padding|width|height|max|min|offset/,Ie={left:!0,top:!0},We={cssFloat:1,styleFloat:1,float:1};function It(Me){return Me.nodeType===1?Me.ownerDocument.defaultView.getComputedStyle(Me,null):{}}function Qe(Me,te,ne){if(te=te.toLowerCase(),ne==="auto"){if(te==="height")return Me.offsetHeight;if(te==="width")return Me.offsetWidth}return te in Ie||(Ie[te]=xe.test(te)),Ie[te]?parseFloat(ne)||0:ne}function vt(Me,te){var ne=arguments.length,ce=It(Me);return te=We[te]?"cssFloat"in Me.style?"cssFloat":"styleFloat":te,ne===1?ce:Qe(Me,te,ce[te]||Me.style[te])}function Ne(Me,te,ne){var ce=arguments.length;if(te=We[te]?"cssFloat"in Me.style?"cssFloat":"styleFloat":te,ce===3)return typeof ne=="number"&&xe.test(te)&&(ne="".concat(ne,"px")),Me.style[te]=ne,ne;for(var se in te)te.hasOwnProperty(se)&&Ne(Me,se,te[se]);return It(Me)}function Tt(Me){return Me===document.body?document.documentElement.clientWidth:Me.offsetWidth}function Ft(Me){return Me===document.body?window.innerHeight||document.documentElement.clientHeight:Me.offsetHeight}function qe(){var Me=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),te=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Me,height:te}}function gt(){var Me=document.documentElement.clientWidth,te=window.innerHeight||document.documentElement.clientHeight;return{width:Me,height:te}}function dt(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Ct(Me){var te=Me.getBoundingClientRect(),ne=document.documentElement;return{left:te.left+(window.pageXOffset||ne.scrollLeft)-(ne.clientLeft||document.body.clientLeft||0),top:te.top+(window.pageYOffset||ne.scrollTop)-(ne.clientTop||document.body.clientTop||0)}}},24387:function(In,Fn,ye){"use strict";ye.d(Fn,{G:function(){return It}});var xe=ye(87746),Ie=function(vt){if((0,xe.Z)()&&window.document.documentElement){var Ne=Array.isArray(vt)?vt:[vt],Tt=window.document.documentElement;return Ne.some(function(Ft){return Ft in Tt.style})}return!1},We=function(vt,Ne){if(!Ie(vt))return!1;var Tt=document.createElement("div"),Ft=Tt.style[vt];return Tt.style[vt]=Ne,Tt.style[vt]!==Ft};function It(Qe,vt){return!Array.isArray(Qe)&&vt!==void 0?We(Qe,vt):Ie(Qe)}},21881:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Si}});var xe=ye(5891),Ie=ye(80665),We=ye(57259),It=ye(80962),Qe=ye(29043),vt=ye(19149),Ne=ye(92310),Tt=ye.n(Ne),Ft=ye(29301),qe=ye(80764),gt=ye(28800),dt=ye(59301),Ct=ye(4676),Me=dt.forwardRef(function(Bn,tn){var $t=Bn.height,ct=Bn.offsetY,ze=Bn.offsetX,Ut=Bn.children,Gt=Bn.prefixCls,at=Bn.onInnerResize,Ve=Bn.innerProps,Be=Bn.rtl,we=Bn.extra,me={},De={display:"flex",flexDirection:"column"};return ct!==void 0&&(me={height:$t,position:"relative",overflow:"hidden"},De=(0,We.Z)((0,We.Z)({},De),{},(0,It.Z)((0,It.Z)((0,It.Z)((0,It.Z)((0,It.Z)({transform:"translateY(".concat(ct,"px)")},Be?"marginRight":"marginLeft",-ze),"position","absolute"),"left",0),"right",0),"top",0))),dt.createElement("div",{style:me},dt.createElement(Ft.Z,{onResize:function(Le){var st=Le.offsetHeight;st&&at&&at()}},dt.createElement("div",(0,xe.Z)({style:De,className:Tt()((0,It.Z)({},"".concat(Gt,"-holder-inner"),Gt)),ref:tn},Ve),Ut,we)))});Me.displayName="Filler";var te=Me;function ne(Bn){var tn=Bn.children,$t=Bn.setRef,ct=dt.useCallback(function(ze){$t(ze)},[]);return dt.cloneElement(tn,{ref:ct})}function ce(Bn,tn,$t,ct,ze,Ut,Gt,at){var Ve=at.getKey;return Bn.slice(tn,$t+1).map(function(Be,we){var me=tn+we,De=Gt(Be,me,{style:{width:ct},offsetX:ze}),Re=Ve(Be);return dt.createElement(ne,{key:Re,setRef:function(st){return Ut(Be,st)}},De)})}function se(Bn,tn,$t,ct){var ze=$t-Bn,Ut=tn-$t,Gt=Math.min(ze,Ut)*2;if(ct<=Gt){var at=Math.floor(ct/2);return ct%2?$t+at+1:$t-at}return ze>Ut?$t-(ct-Ut):$t+(ct-ze)}function ge(Bn,tn,$t){var ct=Bn.length,ze=tn.length,Ut,Gt;if(ct===0&&ze===0)return null;ct<ze?(Ut=Bn,Gt=tn):(Ut=tn,Gt=Bn);var at={__EMPTY_ITEM__:!0};function Ve(Le){return Le!==void 0?$t(Le):at}for(var Be=null,we=Math.abs(ct-ze)!==1,me=0;me<Gt.length;me+=1){var De=Ve(Ut[me]),Re=Ve(Gt[me]);if(De!==Re){Be=me,we=we||De!==Ve(Gt[me+1]);break}}return Be===null?null:{index:Be,multiple:we}}function ve(Bn,tn,$t){var ct=dt.useState(Bn),ze=(0,Qe.Z)(ct,2),Ut=ze[0],Gt=ze[1],at=dt.useState(null),Ve=(0,Qe.Z)(at,2),Be=Ve[0],we=Ve[1];return dt.useEffect(function(){var me=ge(Ut||[],Bn||[],tn);(me==null?void 0:me.index)!==void 0&&($t==null||$t(me.index),we(Bn[me.index])),Gt(Bn)},[Bn]),[Be]}var Ce=ye(23073),ke=(typeof navigator=="undefined"?"undefined":(0,Ie.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Pe=ke,Te=function(Bn,tn,$t,ct){var ze=(0,dt.useRef)(!1),Ut=(0,dt.useRef)(null);function Gt(){clearTimeout(Ut.current),ze.current=!0,Ut.current=setTimeout(function(){ze.current=!1},50)}var at=(0,dt.useRef)({top:Bn,bottom:tn,left:$t,right:ct});return at.current.top=Bn,at.current.bottom=tn,at.current.left=$t,at.current.right=ct,function(Ve,Be){var we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,me=Ve?Be<0&&at.current.left||Be>0&&at.current.right:Be<0&&at.current.top||Be>0&&at.current.bottom;return we&&me?(clearTimeout(Ut.current),ze.current=!1):(!me||ze.current)&&Gt(),!ze.current&&me}};function Ke(Bn,tn,$t,ct,ze,Ut,Gt){var at=(0,dt.useRef)(0),Ve=(0,dt.useRef)(null),Be=(0,dt.useRef)(null),we=(0,dt.useRef)(!1),me=Te(tn,$t,ct,ze);function De(ln,Hn){if(Ce.Z.cancel(Ve.current),!me(!1,Hn)){var wi=ln;if(!wi._virtualHandled)wi._virtualHandled=!0;else return;at.current+=Hn,Be.current=Hn,Pe||wi.preventDefault(),Ve.current=(0,Ce.Z)(function(){var Pi=we.current?10:1;Gt(at.current*Pi,!1),at.current=0})}}function Re(ln,Hn){Gt(Hn,!0),Pe||ln.preventDefault()}var Le=(0,dt.useRef)(null),st=(0,dt.useRef)(null);function Vt(ln){if(Bn){Ce.Z.cancel(st.current),st.current=(0,Ce.Z)(function(){Le.current=null},2);var Hn=ln.deltaX,wi=ln.deltaY,Pi=ln.shiftKey,Ri=Hn,Zi=wi;(Le.current==="sx"||!Le.current&&Pi&&wi&&!Hn)&&(Ri=wi,Zi=0,Le.current="sx");var Ln=Math.abs(Ri),rr=Math.abs(Zi);Le.current===null&&(Le.current=Ut&&Ln>rr?"x":"y"),Le.current==="y"?De(ln,Zi):Re(ln,Ri)}}function sn(ln){Bn&&(we.current=ln.detail===Be.current)}return[Vt,sn]}function et(Bn,tn,$t,ct){var ze=dt.useMemo(function(){return[new Map,[]]},[Bn,$t.id,ct]),Ut=(0,Qe.Z)(ze,2),Gt=Ut[0],at=Ut[1],Ve=function(we){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:we,De=Gt.get(we),Re=Gt.get(me);if(De===void 0||Re===void 0)for(var Le=Bn.length,st=at.length;st<Le;st+=1){var Vt,sn=Bn[st],ln=tn(sn);Gt.set(ln,st);var Hn=(Vt=$t.get(ln))!==null&&Vt!==void 0?Vt:ct;if(at[st]=(at[st-1]||0)+Hn,ln===we&&(De=st),ln===me&&(Re=st),De!==void 0&&Re!==void 0)break}return{top:at[De-1]||0,bottom:at[Re]}};return Ve}var Xe=ye(85899),ft=ye(79545),Ge=ye(68550),kt=function(){function Bn(){(0,ft.Z)(this,Bn),(0,It.Z)(this,"maps",void 0),(0,It.Z)(this,"id",0),(0,It.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,Ge.Z)(Bn,[{key:"set",value:function($t,ct){this.maps[$t]=ct,this.id+=1,this.diffKeys.add($t)}},{key:"get",value:function($t){return this.maps[$t]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),Bn}(),$e=kt;function zt(Bn){var tn=parseFloat(Bn);return isNaN(tn)?0:tn}function Ht(Bn,tn,$t){var ct=dt.useState(0),ze=(0,Qe.Z)(ct,2),Ut=ze[0],Gt=ze[1],at=(0,dt.useRef)(new Map),Ve=(0,dt.useRef)(new $e),Be=(0,dt.useRef)(0);function we(){Be.current+=1}function me(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;we();var Le=function(){var sn=!1;at.current.forEach(function(ln,Hn){if(ln&&ln.offsetParent){var wi=(0,Xe.ZP)(ln),Pi=wi.offsetHeight,Ri=getComputedStyle(wi),Zi=Ri.marginTop,Ln=Ri.marginBottom,rr=zt(Zi),Kr=zt(Ln),Vr=Pi+rr+Kr;Ve.current.get(Hn)!==Vr&&(Ve.current.set(Hn,Vr),sn=!0)}}),sn&&Gt(function(ln){return ln+1})};if(Re)Le();else{Be.current+=1;var st=Be.current;Promise.resolve().then(function(){st===Be.current&&Le()})}}function De(Re,Le){var st=Bn(Re),Vt=at.current.get(st);Le?(at.current.set(st,Le),me()):at.current.delete(st),!Vt!=!Le&&(Le?tn==null||tn(Re):$t==null||$t(Re))}return(0,dt.useEffect)(function(){return we},[]),[De,me,Ve.current,Ut]}var Yt=14/15;function Bt(Bn,tn,$t){var ct=(0,dt.useRef)(!1),ze=(0,dt.useRef)(0),Ut=(0,dt.useRef)(0),Gt=(0,dt.useRef)(null),at=(0,dt.useRef)(null),Ve,Be=function(Re){if(ct.current){var Le=Math.ceil(Re.touches[0].pageX),st=Math.ceil(Re.touches[0].pageY),Vt=ze.current-Le,sn=Ut.current-st,ln=Math.abs(Vt)>Math.abs(sn);ln?ze.current=Le:Ut.current=st;var Hn=$t(ln,ln?Vt:sn,!1,Re);Hn&&Re.preventDefault(),clearInterval(at.current),Hn&&(at.current=setInterval(function(){ln?Vt*=Yt:sn*=Yt;var wi=Math.floor(ln?Vt:sn);(!$t(ln,wi,!0)||Math.abs(wi)<=.1)&&clearInterval(at.current)},16))}},we=function(){ct.current=!1,Ve()},me=function(Re){Ve(),Re.touches.length===1&&!ct.current&&(ct.current=!0,ze.current=Math.ceil(Re.touches[0].pageX),Ut.current=Math.ceil(Re.touches[0].pageY),Gt.current=Re.target,Gt.current.addEventListener("touchmove",Be,{passive:!1}),Gt.current.addEventListener("touchend",we,{passive:!0}))};Ve=function(){Gt.current&&(Gt.current.removeEventListener("touchmove",Be),Gt.current.removeEventListener("touchend",we))},(0,gt.Z)(function(){return Bn&&tn.current.addEventListener("touchstart",me,{passive:!0}),function(){var De;(De=tn.current)===null||De===void 0||De.removeEventListener("touchstart",me),Ve(),clearInterval(at.current)}},[Bn])}function Qt(Bn){return Math.floor(Math.pow(Bn,.5))}function ht(Bn,tn){var $t="touches"in Bn?Bn.touches[0]:Bn;return $t[tn?"pageX":"pageY"]-window[tn?"scrollX":"scrollY"]}function je(Bn,tn,$t){dt.useEffect(function(){var ct=tn.current;if(Bn&&ct){var ze=!1,Ut,Gt,at=function(){Ce.Z.cancel(Ut)},Ve=function De(){at(),Ut=(0,Ce.Z)(function(){$t(Gt),De()})},Be=function(Re){var Le=Re;Le._virtualHandled||(Le._virtualHandled=!0,ze=!0)},we=function(){ze=!1,at()},me=function(Re){if(ze){var Le=ht(Re,!1),st=ct.getBoundingClientRect(),Vt=st.top,sn=st.bottom;if(Le<=Vt){var ln=Vt-Le;Gt=-Qt(ln),Ve()}else if(Le>=sn){var Hn=Le-sn;Gt=Qt(Hn),Ve()}else at()}};return ct.addEventListener("mousedown",Be),ct.ownerDocument.addEventListener("mouseup",we),ct.ownerDocument.addEventListener("mousemove",me),function(){ct.removeEventListener("mousedown",Be),ct.ownerDocument.removeEventListener("mouseup",we),ct.ownerDocument.removeEventListener("mousemove",me),at()}}},[Bn])}var At=10;function wn(Bn,tn,$t,ct,ze,Ut,Gt,at){var Ve=dt.useRef(),Be=dt.useState(null),we=(0,Qe.Z)(Be,2),me=we[0],De=we[1];return(0,gt.Z)(function(){if(me&&me.times<At){if(!Bn.current){De(function(Ee){return(0,We.Z)({},Ee)});return}Ut();var Re=me.targetAlign,Le=me.originAlign,st=me.index,Vt=me.offset,sn=Bn.current.clientHeight,ln=!1,Hn=Re,wi=null;if(sn){for(var Pi=Re||Le,Ri=0,Zi=0,Ln=0,rr=Math.min(tn.length-1,st),Kr=0;Kr<=rr;Kr+=1){var Vr=ze(tn[Kr]);Zi=Ri;var jr=$t.get(Vr);Ln=Zi+(jr===void 0?ct:jr),Ri=Ln}for(var li=Pi==="top"?Vt:sn-Vt,Ti=rr;Ti>=0;Ti-=1){var vr=ze(tn[Ti]),ui=$t.get(vr);if(ui===void 0){ln=!0;break}if(li-=ui,li<=0)break}switch(Pi){case"top":wi=Zi-Vt;break;case"bottom":wi=Ln-sn+Vt;break;default:{var Ir=Bn.current.scrollTop,zn=Ir+sn;Zi<Ir?Hn="top":Ln>zn&&(Hn="bottom")}}wi!==null&&Gt(wi),wi!==me.lastTop&&(ln=!0)}ln&&De((0,We.Z)((0,We.Z)({},me),{},{times:me.times+1,targetAlign:Hn,lastTop:wi}))}},[me,Bn.current]),function(Re){if(Re==null){at();return}if(Ce.Z.cancel(Ve.current),typeof Re=="number")Gt(Re);else if(Re&&(0,Ie.Z)(Re)==="object"){var Le,st=Re.align;"index"in Re?Le=Re.index:Le=tn.findIndex(function(ln){return ze(ln)===Re.key});var Vt=Re.offset,sn=Vt===void 0?0:Vt;De({times:0,index:Le,offset:sn,originAlign:st})}}}var rn=dt.forwardRef(function(Bn,tn){var $t=Bn.prefixCls,ct=Bn.rtl,ze=Bn.scrollOffset,Ut=Bn.scrollRange,Gt=Bn.onStartMove,at=Bn.onStopMove,Ve=Bn.onScroll,Be=Bn.horizontal,we=Bn.spinSize,me=Bn.containerSize,De=Bn.style,Re=Bn.thumbStyle,Le=dt.useState(!1),st=(0,Qe.Z)(Le,2),Vt=st[0],sn=st[1],ln=dt.useState(null),Hn=(0,Qe.Z)(ln,2),wi=Hn[0],Pi=Hn[1],Ri=dt.useState(null),Zi=(0,Qe.Z)(Ri,2),Ln=Zi[0],rr=Zi[1],Kr=!ct,Vr=dt.useRef(),jr=dt.useRef(),li=dt.useState(!1),Ti=(0,Qe.Z)(li,2),vr=Ti[0],ui=Ti[1],Ir=dt.useRef(),zn=function(){clearTimeout(Ir.current),ui(!0),Ir.current=setTimeout(function(){ui(!1)},3e3)},Ee=Ut-me||0,cr=me-we||0,Xi=dt.useMemo(function(){if(ze===0||Ee===0)return 0;var tt=ze/Ee;return tt*cr},[ze,Ee,cr]),yn=function(en){en.stopPropagation(),en.preventDefault()},oi=dt.useRef({top:Xi,dragging:Vt,pageY:wi,startTop:Ln});oi.current={top:Xi,dragging:Vt,pageY:wi,startTop:Ln};var Ci=function(en){sn(!0),Pi(ht(en,Be)),rr(oi.current.top),Gt(),en.stopPropagation(),en.preventDefault()};dt.useEffect(function(){var tt=function(Ue){Ue.preventDefault()},en=Vr.current,fn=jr.current;return en.addEventListener("touchstart",tt,{passive:!1}),fn.addEventListener("touchstart",Ci,{passive:!1}),function(){en.removeEventListener("touchstart",tt),fn.removeEventListener("touchstart",Ci)}},[]);var xn=dt.useRef();xn.current=Ee;var on=dt.useRef();on.current=cr,dt.useEffect(function(){if(Vt){var tt,en=function(Ue){var an=oi.current,Dt=an.dragging,Rn=an.pageY,dn=an.startTop;Ce.Z.cancel(tt);var Pt=Vr.current.getBoundingClientRect(),Sn=me/(Be?Pt.width:Pt.height);if(Dt){var Qn=(ht(Ue,Be)-Rn)*Sn,Xn=dn;!Kr&&Be?Xn-=Qn:Xn+=Qn;var Rt=xn.current,vn=on.current,bi=vn?Xn/vn:0,vi=Math.ceil(bi*Rt);vi=Math.max(vi,0),vi=Math.min(vi,Rt),tt=(0,Ce.Z)(function(){Ve(vi,Be)})}},fn=function(){sn(!1),at()};return window.addEventListener("mousemove",en,{passive:!0}),window.addEventListener("touchmove",en,{passive:!0}),window.addEventListener("mouseup",fn,{passive:!0}),window.addEventListener("touchend",fn,{passive:!0}),function(){window.removeEventListener("mousemove",en),window.removeEventListener("touchmove",en),window.removeEventListener("mouseup",fn),window.removeEventListener("touchend",fn),Ce.Z.cancel(tt)}}},[Vt]),dt.useEffect(function(){return zn(),function(){clearTimeout(Ir.current)}},[ze]),dt.useImperativeHandle(tn,function(){return{delayHidden:zn}});var yt="".concat($t,"-scrollbar"),Et={position:"absolute",visibility:vr?null:"hidden"},Lt={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Be?(Et.height=8,Et.left=0,Et.right=0,Et.bottom=0,Lt.height="100%",Lt.width=we,Kr?Lt.left=Xi:Lt.right=Xi):(Et.width=8,Et.top=0,Et.bottom=0,Kr?Et.right=0:Et.left=0,Lt.width="100%",Lt.height=we,Lt.top=Xi),dt.createElement("div",{ref:Vr,className:Tt()(yt,(0,It.Z)((0,It.Z)((0,It.Z)({},"".concat(yt,"-horizontal"),Be),"".concat(yt,"-vertical"),!Be),"".concat(yt,"-visible"),vr)),style:(0,We.Z)((0,We.Z)({},Et),De),onMouseDown:yn,onMouseMove:zn},dt.createElement("div",{ref:jr,className:Tt()("".concat(yt,"-thumb"),(0,It.Z)({},"".concat(yt,"-thumb-moving"),Vt)),style:(0,We.Z)((0,We.Z)({},Lt),Re),onMouseDown:Ci}))}),bt=rn,Jt=20;function un(){var Bn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,$t=Bn/tn*Bn;return isNaN($t)&&($t=0),$t=Math.max($t,Jt),Math.floor($t)}var Kn=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],En=[],Yn={overflowY:"auto",overflowAnchor:"none"};function St(Bn,tn){var $t=Bn.prefixCls,ct=$t===void 0?"rc-virtual-list":$t,ze=Bn.className,Ut=Bn.height,Gt=Bn.itemHeight,at=Bn.fullHeight,Ve=at===void 0?!0:at,Be=Bn.style,we=Bn.data,me=Bn.children,De=Bn.itemKey,Re=Bn.virtual,Le=Bn.direction,st=Bn.scrollWidth,Vt=Bn.component,sn=Vt===void 0?"div":Vt,ln=Bn.onScroll,Hn=Bn.onVirtualScroll,wi=Bn.onVisibleChange,Pi=Bn.innerProps,Ri=Bn.extraRender,Zi=Bn.styles,Ln=(0,vt.Z)(Bn,Kn),rr=dt.useCallback(function(Dn){return typeof De=="function"?De(Dn):Dn==null?void 0:Dn[De]},[De]),Kr=Ht(rr,null,null),Vr=(0,Qe.Z)(Kr,4),jr=Vr[0],li=Vr[1],Ti=Vr[2],vr=Vr[3],ui=!!(Re!==!1&&Ut&&Gt),Ir=dt.useMemo(function(){return Object.values(Ti.maps).reduce(function(Dn,Wt){return Dn+Wt},0)},[Ti.id,Ti.maps]),zn=ui&&we&&(Math.max(Gt*we.length,Ir)>Ut||!!st),Ee=Le==="rtl",cr=Tt()(ct,(0,It.Z)({},"".concat(ct,"-rtl"),Ee),ze),Xi=we||En,yn=(0,dt.useRef)(),oi=(0,dt.useRef)(),Ci=(0,dt.useRef)(),xn=(0,dt.useState)(0),on=(0,Qe.Z)(xn,2),yt=on[0],Et=on[1],Lt=(0,dt.useState)(0),tt=(0,Qe.Z)(Lt,2),en=tt[0],fn=tt[1],xt=(0,dt.useState)(!1),Ue=(0,Qe.Z)(xt,2),an=Ue[0],Dt=Ue[1],Rn=function(){Dt(!0)},dn=function(){Dt(!1)},Pt={getKey:rr};function Sn(Dn){Et(function(Wt){var kn;typeof Dn=="function"?kn=Dn(Wt):kn=Dn;var ai=Mr(kn);return yn.current.scrollTop=ai,ai})}var Qn=(0,dt.useRef)({start:0,end:Xi.length}),Xn=(0,dt.useRef)(),Rt=ve(Xi,rr),vn=(0,Qe.Z)(Rt,1),bi=vn[0];Xn.current=bi;var vi=dt.useMemo(function(){if(!ui)return{scrollHeight:void 0,start:0,end:Xi.length-1,offset:void 0};if(!zn){var Dn;return{scrollHeight:((Dn=oi.current)===null||Dn===void 0?void 0:Dn.offsetHeight)||0,start:0,end:Xi.length-1,offset:void 0}}for(var Wt=0,kn,ai,$n,Ii=Xi.length,Bi=0;Bi<Ii;Bi+=1){var gi=Xi[Bi],Yi=rr(gi),On=Ti.get(Yi),$r=Wt+(On===void 0?Gt:On);$r>=yt&&kn===void 0&&(kn=Bi,ai=Wt),$r>yt+Ut&&$n===void 0&&($n=Bi),Wt=$r}return kn===void 0&&(kn=0,ai=0,$n=Math.ceil(Ut/Gt)),$n===void 0&&($n=Xi.length-1),$n=Math.min($n+1,Xi.length-1),{scrollHeight:Wt,start:kn,end:$n,offset:ai}},[zn,ui,yt,Xi,vr,Ut]),pi=vi.scrollHeight,ei=vi.start,yi=vi.end,Fi=vi.offset;Qn.current.start=ei,Qn.current.end=yi,dt.useLayoutEffect(function(){var Dn=Ti.getRecord();if(Dn.size===1){var Wt=Array.from(Dn)[0],kn=rr(Xi[ei]);if(kn===Wt){var ai=Ti.get(Wt),$n=ai-Gt;Sn(function(Ii){return Ii+$n})}}Ti.resetRecord()},[pi]);var Ki=dt.useState({width:0,height:Ut}),hr=(0,Qe.Z)(Ki,2),Gn=hr[0],Li=hr[1],Lr=function(Wt){Li({width:Wt.offsetWidth,height:Wt.offsetHeight})},Dr=(0,dt.useRef)(),Pr=(0,dt.useRef)(),Xt=dt.useMemo(function(){return un(Gn.width,st)},[Gn.width,st]),Mi=dt.useMemo(function(){return un(Gn.height,pi)},[Gn.height,pi]),ar=pi-Ut,Wi=(0,dt.useRef)(ar);Wi.current=ar;function Mr(Dn){var Wt=Dn;return Number.isNaN(Wi.current)||(Wt=Math.min(Wt,Wi.current)),Wt=Math.max(Wt,0),Wt}var fr=yt<=0,Br=yt>=ar,Oi=en<=0,$i=en>=st,nr=Te(fr,Br,Oi,$i),Mn=function(){return{x:Ee?-en:en,y:yt}},Tr=(0,dt.useRef)(Mn()),An=(0,qe.useEvent)(function(Dn){if(Hn){var Wt=(0,We.Z)((0,We.Z)({},Mn()),Dn);(Tr.current.x!==Wt.x||Tr.current.y!==Wt.y)&&(Hn(Wt),Tr.current=Wt)}});function yr(Dn,Wt){var kn=Dn;Wt?((0,Ct.flushSync)(function(){fn(kn)}),An()):Sn(kn)}function _r(Dn){var Wt=Dn.currentTarget.scrollTop;Wt!==yt&&Sn(Wt),ln==null||ln(Dn),An()}var xr=function(Wt){var kn=Wt,ai=st?st-Gn.width:0;return kn=Math.max(kn,0),kn=Math.min(kn,ai),kn},Ho=(0,qe.useEvent)(function(Dn,Wt){Wt?((0,Ct.flushSync)(function(){fn(function(kn){var ai=kn+(Ee?-Dn:Dn);return xr(ai)})}),An()):Sn(function(kn){var ai=kn+Dn;return ai})}),ho=Ke(ui,fr,Br,Oi,$i,!!st,Ho),Sr=(0,Qe.Z)(ho,2),gr=Sr[0],pr=Sr[1];Bt(ui,yn,function(Dn,Wt,kn,ai){var $n=ai;return nr(Dn,Wt,kn)?!1:!$n||!$n._virtualHandled?($n&&($n._virtualHandled=!0),gr({preventDefault:function(){},deltaX:Dn?Wt:0,deltaY:Dn?0:Wt}),!0):!1}),je(zn,yn,function(Dn){Sn(function(Wt){return Wt+Dn})}),(0,gt.Z)(function(){function Dn(kn){var ai=fr&&kn.detail<0,$n=Br&&kn.detail>0;ui&&!ai&&!$n&&kn.preventDefault()}var Wt=yn.current;return Wt.addEventListener("wheel",gr,{passive:!1}),Wt.addEventListener("DOMMouseScroll",pr,{passive:!0}),Wt.addEventListener("MozMousePixelScroll",Dn,{passive:!1}),function(){Wt.removeEventListener("wheel",gr),Wt.removeEventListener("DOMMouseScroll",pr),Wt.removeEventListener("MozMousePixelScroll",Dn)}},[ui,fr,Br]),(0,gt.Z)(function(){if(st){var Dn=xr(en);fn(Dn),An({x:Dn})}},[Gn.width,st]);var Yr=function(){var Wt,kn;(Wt=Dr.current)===null||Wt===void 0||Wt.delayHidden(),(kn=Pr.current)===null||kn===void 0||kn.delayHidden()},zi=wn(yn,Xi,Ti,Gt,rr,function(){return li(!0)},Sn,Yr);dt.useImperativeHandle(tn,function(){return{nativeElement:Ci.current,getScrollInfo:Mn,scrollTo:function(Wt){function kn(ai){return ai&&(0,Ie.Z)(ai)==="object"&&("left"in ai||"top"in ai)}kn(Wt)?(Wt.left!==void 0&&fn(xr(Wt.left)),zi(Wt.top)):zi(Wt)}}}),(0,gt.Z)(function(){if(wi){var Dn=Xi.slice(ei,yi+1);wi(Dn,Xi)}},[ei,yi,Xi]);var Je=et(Xi,rr,Ti,Gt),pt=Ri==null?void 0:Ri({start:ei,end:yi,virtual:zn,offsetX:en,offsetY:Fi,rtl:Ee,getSize:Je}),Ot=ce(Xi,ei,yi,st,en,jr,me,Pt),cn=null;Ut&&(cn=(0,We.Z)((0,It.Z)({},Ve?"height":"maxHeight",Ut),Yn),ui&&(cn.overflowY="hidden",st&&(cn.overflowX="hidden"),an&&(cn.pointerEvents="none")));var jn={};return Ee&&(jn.dir="rtl"),dt.createElement("div",(0,xe.Z)({ref:Ci,style:(0,We.Z)((0,We.Z)({},Be),{},{position:"relative"}),className:cr},jn,Ln),dt.createElement(Ft.Z,{onResize:Lr},dt.createElement(sn,{className:"".concat(ct,"-holder"),style:cn,ref:yn,onScroll:_r,onMouseEnter:Yr},dt.createElement(te,{prefixCls:ct,height:pi,offsetX:en,offsetY:Fi,scrollWidth:st,onInnerResize:li,ref:oi,innerProps:Pi,rtl:Ee,extra:pt},Ot))),zn&&pi>Ut&&dt.createElement(bt,{ref:Dr,prefixCls:ct,scrollOffset:yt,scrollRange:pi,rtl:Ee,onScroll:yr,onStartMove:Rn,onStopMove:dn,spinSize:Mi,containerSize:Gn.height,style:Zi==null?void 0:Zi.verticalScrollBar,thumbStyle:Zi==null?void 0:Zi.verticalScrollBarThumb}),zn&&st>Gn.width&&dt.createElement(bt,{ref:Pr,prefixCls:ct,scrollOffset:en,scrollRange:st,rtl:Ee,onScroll:yr,onStartMove:Rn,onStopMove:dn,spinSize:Xt,containerSize:Gn.width,horizontal:!0,style:Zi==null?void 0:Zi.horizontalScrollBar,thumbStyle:Zi==null?void 0:Zi.horizontalScrollBarThumb}))}var Vn=dt.forwardRef(St);Vn.displayName="List";var Cn=Vn,Si=Cn},25510:function(In){"use strict";In.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAiwAAAIsCAYAAADRd/LpAAAgAElEQVR4Xuyda5BtVXXvV3efc+CAYBQRjaJBeWjiVVKVB0mMUV6GKv0cvVVG/XTrViUlSd0bqUoQg4KapKJW8j3mWinNx1SRSgkciKARYiqi1ycvFZSggHgFDofz6L71m3v/9xk9eq695ty91t67u8eimu6z91zzMcaYY/znGGPOudLEExQICgQFggJBgaBAUGDJKbBC/26+98jGkvczuhcUCAoEBYICQYGgwB6lwJUXnroSgGWPMj+GHRQICgQFggJBgZ1CgS2A5YoLTtkpfY9+BgWCAkGBoEBQICiwyylwy33PpREGYNnljI7hBQWCAkGBoEBQYCdTIADLTuZe9D0oEBQICgQFggJ7hAIBWPYIo2OYQYGgQFAgKBAU2MkUCMCyk7kXfQ8KBAWCAkGBoMAeoUAAlj3C6BhmUCAoEBQICgQFdjIFArDsZO5F34MCQYGgQFAgKLBHKBCAZY8wOoYZFAgKBAWCAkGBnUyBACw7mXvR96BAUCAoEBQICuwRCgRg2SOMjmEGBYICQYGgQFBgJ1MgAMtO5l70PSgQFAgKBAWCAnuEAgFY9gijY5hBgaBAUCAoEBTYyRQIwLKTuRd9DwoE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KQVV1jBPrznXnbAgQeGocAVRF+gr790rnUBLAWwtCsOC2DJp1wBLAWw5HNNB54ogKUZsMjCcuXlV9hvzzrHvnPccTZ50mRbcurUEAD68ssvhziM0WPG2vhJE23Ft65kxxx/rM18eaZ9fr/97E+3/skmjB9v3zjqKFt6yaXs+quutUsvuMiuue5aW2T8Inbu+efZVltvHbZG33LrLfaRj3zEXnvtVVtnnbXt9F/+0iZMnBjcUQR7H3HEkbbV5pvZT37ykwBifnDiD0KW1n9+3wfsC1/6oq215po2ZpGxfUGsNrtvU01I+DbK5r4+x8aMGGUv/O0Fm3H3Pfbv/7a3PXD/X23XXXe19ddfzzbb5G12wcUX2+k//6W99tosW3+99e1XZ54Z3DCf+PQn7eprrrannn/aPvjB3e0D73+/PfPUU3brLX+y478JPSbaN75xtG280UZhq/deH/mwzXx1pu20y062yz/ubBPfsqjtt+8X7MmHH7X11p5m//Otb9vqq69tN15/rZ140g/sxz/7ic0dO9Le99732YYbTLcVll/epq21tm20ySbzdzD17S9iy7cy7gZXyPw5UABLASztisMCWPIpVwBLASz5XNOBJwpg6QMs7CB59NFHbcsttwxU1Xb4kOhtvmK84vLf2zlnnWXHH3ucTZo4ySZNmmSjx4wOwbFYENiGO2nRybbKaqvaMccdazded4Mdeeih9tijj4Wg2lN/9rOwK2jG7XfY1b//vX3xC1+28YtOsF+feaZtseWWNmvOHLvplpsDYGG30Lrrrms//elPQ06Na66+OgCWww873LbeZhs76Yc/tD/84UY78cQT7cKLLrL37/FB+++v7G9rrLGmjSADLwnm5r7WlzyMlLbs+QnpS14P7bn5pltt749+xJZdehk78sgjbOONN7IllphiL738ou237352+SWX29hRY+17J37fVnjrCvbxT37C/vDHP9riUxcPcSwrLLO8vfDC32zGXXfZx/b+t5Cw8dvHn2Brr72O3XvfvfbZfT9jq6y+in1or73sA8ThjFvEDjn8SDvzF7+2xSZOtgM//2V7/7+83/508y32fz/8vp38s1Ns1PhF7Mprr7ZVlls+ZLcdM2qMjRnLoZEcc9C3zbtvbxCRyH1gZX4aluISKjEsbUvDAljySVcASwEs+VzTgScKYGkGLH0JZV+3q6+6yn7323PtW0cfbWuvsaZt+45t+/JdjCThGnlMRtioMWNssSmL2ft2+4Cdecav7bhvHWcv/O1vtsvOO9uJP/iBjRk5xh595CG76Y832gfe///sLYsvZr88/XTbfMstQv6Tm2+91fbYfY/g/thg/fUDYFl08mS7WoDl8CNtm222thN/eJLdfPNNAbj87ne/tX9833vtawd9LcTUAFiwrMx9ffb8RGucJzSq75yiESPt7rtn2JVXXm2f/cxnbf31N7Djjv2WTZ++QThO4PUR8+yggw6ys848y5576nk79LDDbM01VrPPf+m/QgDt6musbuedf74tOXVJe+WVl+0v9/3F9tjjQ/bIww/bN446Ouyauv322+yrB+5vSy+7tG2+xWb2trdvYiNHj7RzLrzYbrjyGpsy+S22z3982j7x8U/aH2/6g/3gRyfZz375c3vLkovbTTfdbMtNmdJ3oGJIudJ34GII8OGMGfH8/DOaOCuJq1hYioWlXXFYAEs+5QpgKYAln2s68EQBLM2AhWX9vLlz7bprr7XzzzvPjv7GUbb9dtvbFz//haDAcVPMsXk2dvy4cA4QwGPqUkvZ9/7ve/a9737PXnv1VfvAbrvZccceGzLG/u3F5+z2O2+zbbZ5hy2x5FT7xS9+YVtsvkVwdtzyp1tst/d/MOQq2XD6dPvZz061iePH2zVXX2OXX3G5HXHkkbbV1lvZD086yW67/TY75eST7de//rW9Y4ft7agjjrT11l03HHgYzhsaafbySy8FlxWuq3Hjxtn4CRPt5ptvtQsvvMj++7+/attsu7Udc8yxtu5664YTnIl1OeHbJ9hpp/3S7pvxF9t3n31svWlr28GHHWIPPPhX22STje1HJ59iyyy7jL362iy7//4HbM899rQHH3jIDj/kkHAMwJ9uucWOOPLwEEczdcmpNmWJKSGe56Hnnrbnn3zSll1iKfvYHh+x/fbZz669/no76Scn2+lnnWnLrbyiXX81gGZyOOCRYws4KTqYi8h+O9IBlvm8r4iWAlgKYGlXHBbAkk+5AlgKYMnnmg48UQBLAmCZ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NgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SLQSFjqFdmSGQEjYASMgBEwAqsVge1b1x12GCr/8p6D/12tQrjeRsAIGAEjYASMQN0ITAhL3WJaOiNgBIyAETACRmC1I/C/+Ryxj68oilIAAAAASUVORK5CYII="},32637:function(In,Fn,ye){"use strict";In.exports=ye.p+"static/AssistantCode3.a8740efb.jpeg"},93314:function(In){"use strict";In.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7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LixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},16722:function(In,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Tt}});const xe=Ft=>typeof Ft=="object"&&Ft!=null&&Ft.nodeType===1,Ie=(Ft,qe)=>(!qe||Ft!=="hidden")&&Ft!=="visible"&&Ft!=="clip",We=(Ft,qe)=>{if(Ft.clientHeight<Ft.scrollHeight||Ft.clientWidth<Ft.scrollWidth){const gt=getComputedStyle(Ft,null);return Ie(gt.overflowY,qe)||Ie(gt.overflowX,qe)||(dt=>{const Ct=(Me=>{if(!Me.ownerDocument||!Me.ownerDocument.defaultView)return null;try{return Me.ownerDocument.defaultView.frameElement}catch(te){return null}})(dt);return!!Ct&&(Ct.clientHeight<dt.scrollHeight||Ct.clientWidth<dt.scrollWidth)})(Ft)}return!1},It=(Ft,qe,gt,dt,Ct,Me,te,ne)=>Me<Ft&&te>qe||Me>Ft&&te<qe?0:Me<=Ft&&ne<=gt||te>=qe&&ne>=gt?Me-Ft-dt:te>qe&&ne<gt||Me<Ft&&ne>gt?te-qe+Ct:0,Qe=Ft=>{const qe=Ft.parentElement;return qe==null?Ft.getRootNode().host||null:qe},vt=(Ft,qe)=>{var gt,dt,Ct,Me;if(typeof document=="undefined")return[];const{scrollMode:te,block:ne,inline:ce,boundary:se,skipOverflowHiddenElements:ge}=qe,ve=typeof se=="function"?se:rn=>rn!==se;if(!xe(Ft))throw new TypeError("Invalid target");const Ce=document.scrollingElement||document.documentElement,ke=[];let Pe=Ft;for(;xe(Pe)&&ve(Pe);){if(Pe=Qe(Pe),Pe===Ce){ke.push(Pe);break}Pe!=null&&Pe===document.body&&We(Pe)&&!We(document.documentElement)||Pe!=null&&We(Pe,ge)&&ke.push(Pe)}const Te=(dt=(gt=window.visualViewport)==null?void 0:gt.width)!=null?dt:innerWidth,Ke=(Me=(Ct=window.visualViewport)==null?void 0:Ct.height)!=null?Me:innerHeight,{scrollX:et,scrollY:Xe}=window,{height:ft,width:Ge,top:kt,right:$e,bottom:zt,left:Ht}=Ft.getBoundingClientRect(),{top:Yt,right:Bt,bottom:Qt,left:ht}=(rn=>{const bt=window.getComputedStyle(rn);return{top:parseFloat(bt.scrollMarginTop)||0,right:parseFloat(bt.scrollMarginRight)||0,bottom:parseFloat(bt.scrollMarginBottom)||0,left:parseFloat(bt.scrollMarginLeft)||0}})(Ft);let je=ne==="start"||ne==="nearest"?kt-Yt:ne==="end"?zt+Qt:kt+ft/2-Yt+Qt,At=ce==="center"?Ht+Ge/2-ht+Bt:ce==="end"?$e+Bt:Ht-ht;const wn=[];for(let rn=0;rn<ke.length;rn++){const bt=ke[rn],{height:Jt,width:un,top:Kn,right:En,bottom:Yn,left:St}=bt.getBoundingClientRect();if(te==="if-needed"&&kt>=0&&Ht>=0&&zt<=Ke&&$e<=Te&&(bt===Ce&&!We(bt)||kt>=Kn&&zt<=Yn&&Ht>=St&&$e<=En))return wn;const Vn=getComputedStyle(bt),Cn=parseInt(Vn.borderLeftWidth,10),Si=parseInt(Vn.borderTopWidth,10),Bn=parseInt(Vn.borderRightWidth,10),tn=parseInt(Vn.borderBottomWidth,10);let $t=0,ct=0;const ze="offsetWidth"in bt?bt.offsetWidth-bt.clientWidth-Cn-Bn:0,Ut="offsetHeight"in bt?bt.offsetHeight-bt.clientHeight-Si-tn:0,Gt="offsetWidth"in bt?bt.offsetWidth===0?0:un/bt.offsetWidth:0,at="offsetHeight"in bt?bt.offsetHeight===0?0:Jt/bt.offsetHeight:0;if(Ce===bt)$t=ne==="start"?je:ne==="end"?je-Ke:ne==="nearest"?It(Xe,Xe+Ke,Ke,Si,tn,Xe+je,Xe+je+ft,ft):je-Ke/2,ct=ce==="start"?At:ce==="center"?At-Te/2:ce==="end"?At-Te:It(et,et+Te,Te,Cn,Bn,et+At,et+At+Ge,Ge),$t=Math.max(0,$t+Xe),ct=Math.max(0,ct+et);else{$t=ne==="start"?je-Kn-Si:ne==="end"?je-Yn+tn+Ut:ne==="nearest"?It(Kn,Yn,Jt,Si,tn+Ut,je,je+ft,ft):je-(Kn+Jt/2)+Ut/2,ct=ce==="start"?At-St-Cn:ce==="center"?At-(St+un/2)+ze/2:ce==="end"?At-En+Bn+ze:It(St,En,un,Cn,Bn+ze,At,At+Ge,Ge);const{scrollLeft:Ve,scrollTop:Be}=bt;$t=at===0?0:Math.max(0,Math.min(Be+$t/at,bt.scrollHeight-Jt/at+Ut)),ct=Gt===0?0:Math.max(0,Math.min(Ve+ct/Gt,bt.scrollWidth-un/Gt+ze)),je+=Be-$t,At+=Ve-ct}wn.push({el:bt,top:$t,left:ct})}return wn},Ne=Ft=>Ft===!1?{block:"end",inline:"nearest"}:(qe=>qe===Object(qe)&&Object.keys(qe).length!==0)(Ft)?Ft:{block:"start",inline:"nearest"};function Tt(Ft,qe){if(!Ft.isConnected||!(Ct=>{let Me=Ct;for(;Me&&Me.parentNode;){if(Me.parentNode===document)return!0;Me=Me.parentNode instanceof ShadowRoot?Me.parentNode.host:Me.parentNode}return!1})(Ft))return;const gt=(Ct=>{const Me=window.getComputedStyle(Ct);return{top:parseFloat(Me.scrollMarginTop)||0,right:parseFloat(Me.scrollMarginRight)||0,bottom:parseFloat(Me.scrollMarginBottom)||0,left:parseFloat(Me.scrollMarginLeft)||0}})(Ft);if((Ct=>typeof Ct=="object"&&typeof Ct.behavior=="function")(qe))return qe.behavior(vt(Ft,qe));const dt=typeof qe=="boolean"||qe==null?void 0:qe.behavior;for(const{el:Ct,top:Me,left:te}of vt(Ft,Ne(qe))){const ne=Me-gt.top+gt.bottom,ce=te-gt.left+gt.right;Ct.scroll({top:ne,left:ce,behavior:dt})}}}}]);
}());