|
|
!(function(){var db=Object.defineProperty,pb=Object.defineProperties;var fb=Object.getOwnPropertyDescriptors;var ug=Object.getOwnPropertySymbols;var Ex=Object.prototype.hasOwnProperty,Tx=Object.prototype.propertyIsEnumerable;var kx=Math.pow,Cx=(V,w,h)=>w in V?db(V,w,{enumerable:!0,configurable:!0,writable:!0,value:h}):V[w]=h,Ms=(V,w)=>{for(var h in w||(w={}))Ex.call(w,h)&&Cx(V,h,w[h]);if(ug)for(var h of ug(w))Tx.call(w,h)&&Cx(V,h,w[h]);return V},f0=(V,w)=>pb(V,fb(w));var Nx=(V,w)=>{var h={};for(var y in V)Ex.call(V,y)&&w.indexOf(y)<0&&(h[y]=V[y]);if(V!=null&&ug)for(var y of ug(V))w.indexOf(y)<0&&Tx.call(V,y)&&(h[y]=V[y]);return h};var Ix=(V,w,h)=>new Promise((y,N)=>{var O=K=>{try{_(h.next(K))}catch(I){N(I)}},B=K=>{try{_(h.throw(K))}catch(I){N(I)}},_=K=>K.done?y(K.value):Promise.resolve(K.value).then(O,B);_((h=h.apply(V,w)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[1205],{89489:function(V,w,h){"use strict";h.d(w,{Z:function(){return dt}});var y=h(16378),N=h(59301),O={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"},B=O,_=h(7657),K=function(Q,kt){return N.createElement(_.Z,(0,y.Z)({},Q,{ref:kt,icon:B}))},I=N.forwardRef(K),dt=I},59477:function(V,w,h){"use strict";h.d(w,{Z:function(){return dt}});var y=h(16378),N=h(59301),O={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"},B=O,_=h(7657),K=function(Q,kt){return N.createElement(_.Z,(0,y.Z)({},Q,{ref:kt,icon:B}))},I=N.forwardRef(K),dt=I},40001:function(V,w,h){"use strict";h.d(w,{Z:function(){return dt}});var y=h(16378),N=h(59301),O={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"},B=O,_=h(7657),K=function(Q,kt){return N.createElement(_.Z,(0,y.Z)({},Q,{ref:kt,icon:B}))},I=N.forwardRef(K),dt=I},26227:function(V,w,h){"use strict";h.d(w,{Z:function(){return dt}});var y=h(16378),N=h(59301),O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},B=O,_=h(7657),K=function(Q,kt){return N.createElement(_.Z,(0,y.Z)({},Q,{ref:kt,icon:B}))},I=N.forwardRef(K),dt=I},49198:function(V,w,h){"use strict";h.d(w,{Z:function(){return dt}});var y=h(16378),N=h(59301),O={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"},B=O,_=h(7657),K=function(Q,kt){return N.createElement(_.Z,(0,y.Z)({},Q,{ref:kt,icon:B}))},I=N.forwardRef(K),dt=I},41464:function(V,w,h){"use strict";h.d(w,{Z:function(){return dt}});var y=h(16378),N=h(59301),O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},B=O,_=h(7657),K=function(Q,kt){return N.createElement(_.Z,(0,y.Z)({},Q,{ref:kt,icon:B}))},I=N.forwardRef(K),dt=I},73331:function(V,w,h){"use strict";h.d(w,{Z:function(){return dt}});var y=h(16378),N=h(59301),O={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"},B=O,_=h(7657),K=function(Q,kt){return N.createElement(_.Z,(0,y.Z)({},Q,{ref:kt,icon:B}))},I=N.forwardRef(K),dt=I},15277:function(V,w,h){"use strict";h.d(w,{Z:function(){return dt}});var y=h(16378),N=h(59301),O={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"},B=O,_=h(7657),K=function(Q,kt){return N.createElement(_.Z,(0,y.Z)({},Q,{ref:kt,icon:B}))},I=N.forwardRef(K),dt=I},52671:function(V,w,h){"use strict";h.d(w,{Z:function(){return dt}});var y=h(16378),N=h(59301),O={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"},B=O,_=h(7657),K=function(Q,kt){return N.createElement(_.Z,(0,y.Z)({},Q,{ref:kt,icon:B}))},I=N.forwardRef(K),dt=I},8657:function(V,w,h){"use strict";h.d(w,{Z:function(){return dt}});var y=h(16378),N=h(59301),O={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"},B=O,_=h(7657),K=function(Q,kt){return N.createElement(_.Z,(0,y.Z)({},Q,{ref:kt,icon:B}))},I=N.forwardRef(K),dt=I},56082:function(V,w,h){"use strict";h.d(w,{Z:function(){return dt}});var y=h(16378),N=h(59301),O={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"},B=O,_=h(7657),K=function(Q,kt){return N.createElement(_.Z,(0,y.Z)({},Q,{ref:kt,icon:B}))},I=N.forwardRef(K),dt=I},33853:function(V,w,h){"use strict";h.d(w,{Z:function(){return dt}});var y=h(16378),N=h(59301),O={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"},B=O,_=h(7657),K=function(Q,kt){return N.createElement(_.Z,(0,y.Z)({},Q,{ref:kt,icon:B}))},I=N.forwardRef(K),dt=I},15075:function(V,w,h){"use strict";h.d(w,{Z:function(){return dt}});var y=h(16378),N=h(59301),O={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"},B=O,_=h(7657),K=function(Q,kt){return N.createElement(_.Z,(0,y.Z)({},Q,{ref:kt,icon:B}))},I=N.forwardRef(K),dt=I},43531:function(V,w,h){"use strict";h.d(w,{Z:function(){return dt}});var y=h(16378),N=h(59301),O={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"},B=O,_=h(7657),K=function(Q,kt){return N.createElement(_.Z,(0,y.Z)({},Q,{ref:kt,icon:B}))},I=N.forwardRef(K),dt=I},61485:function(V,w,h){"use strict";h.d(w,{Z:function(){return dt}});var y=h(16378),N=h(59301),O={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"},B=O,_=h(7657),K=function(Q,kt){return N.createElement(_.Z,(0,y.Z)({},Q,{ref:kt,icon:B}))},I=N.forwardRef(K),dt=I},38819:function(V,w,h){"use strict";h.d(w,{Z:function(){return dt}});var y=h(16378),N=h(59301),O={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"},B=O,_=h(7657),K=function(Q,kt){return N.createElement(_.Z,(0,y.Z)({},Q,{ref:kt,icon:B}))},I=N.forwardRef(K),dt=I},47472:function(V,w,h){"use strict";h.d(w,{Z:function(){return dt}});var y=h(16378),N=h(59301),O={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"},B=O,_=h(7657),K=function(Q,kt){return N.createElement(_.Z,(0,y.Z)({},Q,{ref:kt,icon:B}))},I=N.forwardRef(K),dt=I},79906:function(){"use strict"},44383:function(){"use strict"},50371:function(V,w){"use strict";function h(){const y=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let N=1;N<arguments.length;N++){const O=N<0||arguments.length<=N?void 0:arguments[N];O&&Object.keys(O).forEach(B=>{const _=O[B];_!==void 0&&(y[B]=_)})}return y}w.Z=h},13845:function(V,w,h){"use strict";h.d(w,{F:function(){return y},Z:function(){return N}});function y(O){return O!=null&&O===O.window}function N(O,B){var _,K;if(typeof window=="undefined")return 0;const I=B?"scrollTop":"scrollLeft";let dt=0;return y(O)?dt=O[B?"pageYOffset":"pageXOffset"]:O instanceof Document?dt=O.documentElement[I]:(O instanceof HTMLElement||O)&&(dt=O[I]),O&&!y(O)&&typeof dt!="number"&&(dt=(K=((_=O.ownerDocument)!==null&&_!==void 0?_:O).documentElement)===null||K===void 0?void 0:K[I]),dt}},56762:function(V,w,h){"use strict";h.d(w,{Z:function(){return N}});var y=h(59301);function N(){const[,O]=y.useReducer(B=>B+1,0);return O}},68031:function(V,w,h){"use strict";h.d(w,{Z:function(){return B}});var y=h(16089);function N(_,K,I,dt){const rt=I-K;return _/=dt/2,_<1?rt/2*_*_*_+K:rt/2*((_-=2)*_*_+2)+K}var O=h(13845);function B(_){let K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:I=()=>window,callback:dt,duration:rt=450}=K,Q=I(),kt=(0,O.Z)(Q,!0),Y=Date.now(),Yt=()=>{const vt=Date.now()-Y,Tt=N(vt>rt?rt:vt,kt,_,rt);(0,O.F)(Q)?Q.scrollTo(window.pageXOffset,Tt):Q instanceof Document||Q.constructor.name==="HTMLDocument"?Q.documentElement.scrollTop=Tt:Q.scrollTop=Tt,vt<rt?(0,y.Z)(Yt):typeof dt=="function"&&dt()};(0,y.Z)(Yt)}},24905:function(V,w,h){"use strict";h.d(w,{default:function(){return Rt}});var y=h(92310),N=h.n(y),O=h(5630),B=h(59301),_=h(36355),K=h(1684),I=h(32441),rt=B.createContext(null),Q=h(98447),kt=h(14088),Y=h(4572),Yt=function(Lt,Kt){var Qt={};for(var ie in Lt)Object.prototype.hasOwnProperty.call(Lt,ie)&&Kt.indexOf(ie)<0&&(Qt[ie]=Lt[ie]);if(Lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,ie=Object.getOwnPropertySymbols(Lt);yt<ie.length;yt++)Kt.indexOf(ie[yt])<0&&Object.prototype.propertyIsEnumerable.call(Lt,ie[yt])&&(Qt[ie[yt]]=Lt[ie[yt]]);return Qt};const At=(Lt,Kt)=>{var Qt;const{prefixCls:ie,className:yt,rootClassName:ae,children:Ht,indeterminate:Pe=!1,style:ge,onMouseEnter:we,onMouseLeave:pe,skipGroup:ln=!1,disabled:zt}=Lt,nt=Yt(Lt,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:it,direction:Te,checkbox:Ae}=B.useContext(_.E_),de=B.useContext(rt),{isFormItemInput:en}=B.useContext(I.aM),vn=B.useContext(K.Z),Xn=(Qt=(de==null?void 0:de.disabled)||zt)!==null&&Qt!==void 0?Qt:vn,gn=B.useRef(nt.value);B.useEffect(()=>{de==null||de.registerValue(nt.value)},[]),B.useEffect(()=>{if(!ln)return nt.value!==gn.current&&(de==null||de.cancelValue(gn.current),de==null||de.registerValue(nt.value),gn.current=nt.value),()=>de==null?void 0:de.cancelValue(nt.value)},[nt.value]);const _n=it("checkbox",ie),[$n,fn]=(0,Q.ZP)(_n),hn=Object.assign({},nt);de&&!ln&&(hn.onChange=function(){nt.onChange&&nt.onChange.apply(nt,arguments),de.toggleOption&&de.toggleOption({label:Ht,value:nt.value})},hn.name=de.name,hn.checked=de.value.includes(nt.value));const ct=N()(`${_n}-wrapper`,{[`${_n}-rtl`]:Te==="rtl",[`${_n}-wrapper-checked`]:hn.checked,[`${_n}-wrapper-disabled`]:Xn,[`${_n}-wrapper-in-form-item`]:en},Ae==null?void 0:Ae.className,yt,ae,fn),L=N()({[`${_n}-indeterminate`]:Pe},Y.A,fn),k=Pe?"mixed":void 0;return $n(B.createElement(kt.Z,{component:"Checkbox",disabled:Xn},B.createElement("label",{className:ct,style:Object.assign(Object.assign({},Ae==null?void 0:Ae.style),ge),onMouseEnter:we,onMouseLeave:pe},B.createElement(O.Z,Object.assign({"aria-checked":k},hn,{prefixCls:_n,className:L,disabled:Xn,ref:Kt})),Ht!==void 0&&B.createElement("span",null,Ht))))};var Tt=B.forwardRef(At),Mt=h(65093),ft=h(2738),It=function(Lt,Kt){var Qt={};for(var ie in Lt)Object.prototype.hasOwnProperty.call(Lt,ie)&&Kt.indexOf(ie)<0&&(Qt[ie]=Lt[ie]);if(Lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,ie=Object.getOwnPropertySymbols(Lt);yt<ie.length;yt++)Kt.indexOf(ie[yt])<0&&Object.prototype.propertyIsEnumerable.call(Lt,ie[yt])&&(Qt[ie[yt]]=Lt[ie[yt]]);return Qt};const $t=(Lt,Kt)=>{const{defaultValue:Qt,children:ie,options:yt=[],prefixCls:ae,className:Ht,rootClassName:Pe,style:ge,onChange:we}=Lt,pe=It(Lt,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:ln,direction:zt}=B.useContext(_.E_),[nt,it]=B.useState(pe.value||Qt||[]),[Te,Ae]=B.useState([]);B.useEffect(()=>{"value"in pe&&it(pe.value||[])},[pe.value]);const de=B.useMemo(()=>yt.map(z=>typeof z=="string"||typeof z=="number"?{label:z,value:z}:z),[yt]),en=z=>{Ae(G=>G.filter(T=>T!==z))},vn=z=>{Ae(G=>[].concat((0,Mt.Z)(G),[z]))},Xn=z=>{const G=nt.indexOf(z.value),T=(0,Mt.Z)(nt);G===-1?T.push(z.value):T.splice(G,1),"value"in pe||it(T),we==null||we(T.filter(St=>Te.includes(St)).sort((St,fe)=>{const Ct=de.findIndex(Dt=>Dt.value===St),xt=de.findIndex(Dt=>Dt.value===fe);return Ct-xt}))},gn=ln("checkbox",ae),_n=`${gn}-group`,[$n,fn]=(0,Q.ZP)(gn),hn=(0,ft.Z)(pe,["value","disabled"]),ct=yt.length?de.map(z=>B.createElement(Tt,{prefixCls:gn,key:z.value.toString(),disabled:"disabled"in z?z.disabled:pe.disabled,value:z.value,checked:nt.includes(z.value),onChange:z.onChange,className:`${_n}-item`,style:z.style,title:z.title},z.label)):ie,L={toggleOption:Xn,value:nt,disabled:pe.disabled,name:pe.name,registerValue:vn,cancelValue:en},k=N()(_n,{[`${_n}-rtl`]:zt==="rtl"},Ht,Pe,fn);return $n(B.createElement("div",Object.assign({className:k,style:ge},hn,{ref:Kt}),B.createElement(rt.Provider,{value:L},ct)))},Nt=B.forwardRef($t);var Ut=B.memo(Nt);const et=Tt;et.Group=Ut,et.__ANT_CHECKBOX=!0;var Rt=et},98447:function(V,w,h){"use strict";h.d(w,{C2:function(){return _}});var y=h(17313),N=h(37613),O=h(83116);const B=K=>{const{checkboxCls:I}=K,dt=`${I}-wrapper`;return[{[`${I}-group`]:Object.assign(Object.assign({},(0,y.Wf)(K)),{display:"inline-flex",flexWrap:"wrap",columnGap:K.marginXS,[`> ${K.antCls}-row`]:{flex:1}}),[dt]:Object.assign(Object.assign({},(0,y.Wf)(K)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${dt}`]:{marginInlineStart:0},[`&${dt}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[I]:Object.assign(Object.assign({},(0,y.Wf)(K)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:K.borderRadiusSM,alignSelf:"center",[`${I}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${I}-inner`]:Object.assign({},(0,y.oN)(K))},[`${I}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:K.checkboxSize,height:K.checkboxSize,direction:"ltr",backgroundColor:K.colorBgContainer,border:`${K.lineWidth}px ${K.lineType} ${K.colorBorder}`,borderRadius:K.borderRadiusSM,borderCollapse:"separate",transition:`all ${K.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:K.checkboxSize/14*5,height:K.checkboxSize/14*8,border:`${K.lineWidthBold}px solid ${K.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${K.motionDurationFast} ${K.motionEaseInBack}, opacity ${K.motionDurationFast}`}},"& + span":{paddingInlineStart:K.paddingXS,paddingInlineEnd:K.paddingXS}})},{[`
|
|
|
${dt}:not(${dt}-disabled),
|
|
|
${I}:not(${I}-disabled)
|
|
|
`]:{[`&:hover ${I}-inner`]:{borderColor:K.colorPrimary}},[`${dt}:not(${dt}-disabled)`]:{[`&:hover ${I}-checked:not(${I}-disabled) ${I}-inner`]:{backgroundColor:K.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${I}-checked:not(${I}-disabled):after`]:{borderColor:K.colorPrimaryHover}}},{[`${I}-checked`]:{[`${I}-inner`]:{backgroundColor:K.colorPrimary,borderColor:K.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${K.motionDurationMid} ${K.motionEaseOutBack} ${K.motionDurationFast}`}}},[`
|
|
|
${dt}-checked:not(${dt}-disabled),
|
|
|
${I}-checked:not(${I}-disabled)
|
|
|
`]:{[`&:hover ${I}-inner`]:{backgroundColor:K.colorPrimaryHover,borderColor:"transparent"}}},{[I]:{"&-indeterminate":{[`${I}-inner`]:{backgroundColor:K.colorBgContainer,borderColor:K.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:K.fontSizeLG/2,height:K.fontSizeLG/2,backgroundColor:K.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${dt}-disabled`]:{cursor:"not-allowed"},[`${I}-disabled`]:{[`&, ${I}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${I}-inner`]:{background:K.colorBgContainerDisabled,borderColor:K.colorBorder,"&:after":{borderColor:K.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:K.colorTextDisabled},[`&${I}-indeterminate ${I}-inner::after`]:{background:K.colorTextDisabled}}}]};function _(K,I){const dt=(0,N.TS)(I,{checkboxCls:`.${K}`,checkboxSize:I.controlInteractiveSize});return[B(dt)]}w.ZP=(0,O.Z)("Checkbox",(K,I)=>{let{prefixCls:dt}=I;return[_(dt,K)]})},93891:function(V,w,h){"use strict";var y=h(59301),N=h(36355),O=h(64165);const B=_=>{const{componentName:K}=_,{getPrefixCls:I}=(0,y.useContext)(N.E_),dt=I("empty");switch(K){case"Table":case"List":return y.createElement(O.Z,{image:O.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return y.createElement(O.Z,{image:O.Z.PRESENTED_IMAGE_SIMPLE,className:`${dt}-small`});default:return y.createElement(O.Z,null)}};w.Z=B},43428:function(V,w,h){"use strict";h.d(w,{Z:function(){return $n}});var y=h(92310),N=h.n(y),O=h(35227),B=h(10859),_=h(43403),K=h(34280),I=h(59301),dt=I.createContext(null),rt=I.createContext({}),Q=dt,kt=h(78772),Y=h(16378),Yt=h(77900),At=h(10228),vt=h(26112),Tt=h(70425),Mt=function(hn){var ct=hn.prefixCls,L=hn.className,k=hn.style,z=hn.children,G=hn.containerRef,T=hn.id,St=hn.onMouseEnter,fe=hn.onMouseOver,Ct=hn.onMouseLeave,xt=hn.onClick,Dt=hn.onKeyDown,qt=hn.onKeyUp,_t={onMouseEnter:St,onMouseOver:fe,onMouseLeave:Ct,onClick:xt,onKeyDown:Dt,onKeyUp:qt},ve=I.useContext(rt),Ge=ve.panel,Ke=(0,Tt.useComposeRef)(Ge,G);return I.createElement(I.Fragment,null,I.createElement("div",(0,Y.Z)({id:T,className:N()("".concat(ct,"-content"),L),style:(0,O.Z)({},k),"aria-modal":"true",role:"dialog",ref:Ke},_t),z))},ft=Mt,It=h(48736);function $t(fn){return typeof fn=="string"&&String(Number(fn))===fn?((0,It.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(fn)):fn}function Nt(fn){warning(!("wrapperClassName"in fn),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!fn.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Ut={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function et(fn,hn){var ct,L,k,z,G=fn.prefixCls,T=fn.open,St=fn.placement,fe=fn.inline,Ct=fn.push,xt=fn.forceRender,Dt=fn.autoFocus,qt=fn.keyboard,_t=fn.rootClassName,ve=fn.rootStyle,Ge=fn.zIndex,Ke=fn.className,Ce=fn.id,Ve=fn.style,Qe=fn.motion,Bt=fn.width,xe=fn.height,ze=fn.children,Ne=fn.contentWrapperStyle,Cn=fn.mask,En=fn.maskClosable,jn=fn.maskMotion,On=fn.maskClassName,ci=fn.maskStyle,Si=fn.afterOpenChange,vi=fn.onClose,qn=fn.onMouseEnter,an=fn.onMouseOver,Ji=fn.onMouseLeave,ui=fn.onClick,lr=fn.onKeyDown,Di=fn.onKeyUp,D=I.useRef(),fr=I.useRef(),er=I.useRef();I.useImperativeHandle(hn,function(){return D.current});var Gr=function(kn){var ne=kn.keyCode,dn=kn.shiftKey;switch(ne){case At.Z.TAB:{if(ne===At.Z.TAB){if(!dn&&document.activeElement===er.current){var Fn;(Fn=fr.current)===null||Fn===void 0||Fn.focus({preventScroll:!0})}else if(dn&&document.activeElement===fr.current){var hi;(hi=er.current)===null||hi===void 0||hi.focus({preventScroll:!0})}}break}case At.Z.ESC:{vi&&qt&&(kn.stopPropagation(),vi(kn));break}}};I.useEffect(function(){if(T&&Dt){var Gn;(Gn=D.current)===null||Gn===void 0||Gn.focus({preventScroll:!0})}},[T]);var Zr=I.useState(!1),mo=(0,B.Z)(Zr,2),Ei=mo[0],No=mo[1],Ir=I.useContext(Q),Gi;Ct===!1?Gi={distance:0}:Ct===!0?Gi={}:Gi=Ct||{};var Jn=(ct=(L=(k=Gi)===null||k===void 0?void 0:k.distance)!==null&&L!==void 0?L:Ir==null?void 0:Ir.pushDistance)!==null&&ct!==void 0?ct:180,te=I.useMemo(function(){return{pushDistance:Jn,push:function(){No(!0)},pull:function(){No(!1)}}},[Jn]);I.useEffect(function(){if(T){var Gn;Ir==null||(Gn=Ir.push)===null||Gn===void 0||Gn.call(Ir)}else{var kn;Ir==null||(kn=Ir.pull)===null||kn===void 0||kn.call(Ir)}},[T]),I.useEffect(function(){return function(){var Gn;Ir==null||(Gn=Ir.pull)===null||Gn===void 0||Gn.call(Ir)}},[]);var Nn=Cn&&I.createElement(Yt.default,(0,Y.Z)({key:"mask"},jn,{visible:T}),function(Gn,kn){var ne=Gn.className,dn=Gn.style;return I.createElement("div",{className:N()("".concat(G,"-mask"),ne,On),style:(0,O.Z)((0,O.Z)({},dn),ci),onClick:En&&T?vi:void 0,ref:kn})}),Bn=typeof Qe=="function"?Qe(St):Qe,oe={};if(Ei&&Jn)switch(St){case"top":oe.transform="translateY(".concat(Jn,"px)");break;case"bottom":oe.transform="translateY(".concat(-Jn,"px)");break;case"left":oe.transform="translateX(".concat(Jn,"px)");break;default:oe.transform="translateX(".concat(-Jn,"px)");break}St==="left"||St==="right"?oe.width=$t(Bt):oe.height=$t(xe);var Ft={onMouseEnter:qn,onMouseOver:an,onMouseLeave:Ji,onClick:ui,onKeyDown:lr,onKeyUp:Di},qe=I.createElement(Yt.default,(0,Y.Z)({key:"panel"},Bn,{visible:T,forceRender:xt,onVisibleChanged:function(kn){Si==null||Si(kn)},removeOnLeave:!1,leavedClassName:"".concat(G,"-content-wrapper-hidden")}),function(Gn,kn){var ne=Gn.className,dn=Gn.style;return I.createElement("div",(0,Y.Z)({className:N()("".concat(G,"-content-wrapper"),ne),style:(0,O.Z)((0,O.Z)((0,O.Z)({},oe),dn),Ne)},(0,vt.Z)(fn,{data:!0})),I.createElement(ft,(0,Y.Z)({id:Ce,containerRef:kn,prefixCls:G,className:Ke,style:Ve},Ft),ze))}),xn=(0,O.Z)({},ve);return Ge&&(xn.zIndex=Ge),I.createElement(Q.Provider,{value:te},I.createElement("div",{className:N()(G,"".concat(G,"-").concat(St),_t,(z={},(0,kt.Z)(z,"".concat(G,"-open"),T),(0,kt.Z)(z,"".concat(G,"-inline"),fe),z)),style:xn,tabIndex:-1,ref:D,onKeyDown:Gr},Nn,I.createElement("div",{tabIndex:0,ref:fr,style:Ut,"aria-hidden":"true","data-sentinel":"start"}),qe,I.createElement("div",{tabIndex:0,ref:er,style:Ut,"aria-hidden":"true","data-sentinel":"end"})))}var Rt=I.forwardRef(et),Lt=Rt,Kt=function(hn){var ct=hn.open,L=ct===void 0?!1:ct,k=hn.prefixCls,z=k===void 0?"rc-drawer":k,G=hn.placement,T=G===void 0?"right":G,St=hn.autoFocus,fe=St===void 0?!0:St,Ct=hn.keyboard,xt=Ct===void 0?!0:Ct,Dt=hn.width,qt=Dt===void 0?378:Dt,_t=hn.mask,ve=_t===void 0?!0:_t,Ge=hn.maskClosable,Ke=Ge===void 0?!0:Ge,Ce=hn.getContainer,Ve=hn.forceRender,Qe=hn.afterOpenChange,Bt=hn.destroyOnClose,xe=hn.onMouseEnter,ze=hn.onMouseOver,Ne=hn.onMouseLeave,Cn=hn.onClick,En=hn.onKeyDown,jn=hn.onKeyUp,On=hn.panelRef,ci=I.useState(!1),Si=(0,B.Z)(ci,2),vi=Si[0],qn=Si[1],an=I.useState(!1),Ji=(0,B.Z)(an,2),ui=Ji[0],lr=Ji[1];(0,K.Z)(function(){lr(!0)},[]);var Di=ui?L:!1,D=I.useRef(),fr=I.useRef();(0,K.Z)(function(){Di&&(fr.current=document.activeElement)},[Di]);var er=function(No){var Ir;if(qn(No),Qe==null||Qe(No),!No&&fr.current&&!((Ir=D.current)!==null&&Ir!==void 0&&Ir.contains(fr.current))){var Gi;(Gi=fr.current)===null||Gi===void 0||Gi.focus({preventScroll:!0})}},Gr=I.useMemo(function(){return{panel:On}},[On]);if(!Ve&&!vi&&!Di&&Bt)return null;var Zr={onMouseEnter:xe,onMouseOver:ze,onMouseLeave:Ne,onClick:Cn,onKeyDown:En,onKeyUp:jn},mo=(0,O.Z)((0,O.Z)({},hn),{},{open:Di,prefixCls:z,placement:T,autoFocus:fe,keyboard:xt,width:qt,mask:ve,maskClosable:Ke,inline:Ce===!1,afterOpenChange:er,ref:D},Zr);return I.createElement(rt.Provider,{value:Gr},I.createElement(_.Z,{open:Di||Ve||vi,autoDestroy:!1,getContainer:Ce,autoLock:ve&&(Di||vi)},I.createElement(Lt,mo)))},Qt=Kt,ie=Qt,yt=h(62892),ae=h(36355),Ht=h(32441),Pe=h(47729),we=fn=>{const{prefixCls:hn,title:ct,footer:L,extra:k,closeIcon:z,closable:G,onClose:T,headerStyle:St,drawerStyle:fe,bodyStyle:Ct,footerStyle:xt,children:Dt}=fn,qt=I.useCallback(Ce=>I.createElement("button",{type:"button",onClick:T,"aria-label":"Close",className:`${hn}-close`},Ce),[T]),[_t,ve]=(0,Pe.Z)(G,z,qt,void 0,!0),Ge=I.useMemo(()=>!ct&&!_t?null:I.createElement("div",{style:St,className:N()(`${hn}-header`,{[`${hn}-header-close-only`]:_t&&!ct&&!k})},I.createElement("div",{className:`${hn}-header-title`},ve,ct&&I.createElement("div",{className:`${hn}-title`},ct)),k&&I.createElement("div",{className:`${hn}-extra`},k)),[_t,ve,k,St,hn,ct]),Ke=I.useMemo(()=>{if(!L)return null;const Ce=`${hn}-footer`;return I.createElement("div",{className:Ce,style:xt},L)},[L,xt,hn]);return I.createElement("div",{className:`${hn}-wrapper-body`,style:fe},Ge,I.createElement("div",{className:`${hn}-body`,style:Ct},Dt),Ke)},pe=h(33234),ln=h(83116),zt=h(37613),it=fn=>{const{componentCls:hn,motionDurationSlow:ct}=fn,L={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${ct}`}}};return{[hn]:{[`${hn}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${ct}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${hn}-panel-motion`]:{"&-left":[L,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[L,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[L,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[L,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const Te=fn=>{const{componentCls:hn,zIndexPopup:ct,colorBgMask:L,colorBgElevated:k,motionDurationSlow:z,motionDurationMid:G,padding:T,paddingLG:St,fontSizeLG:fe,lineHeightLG:Ct,lineWidth:xt,lineType:Dt,colorSplit:qt,marginSM:_t,colorIcon:ve,colorIconHover:Ge,colorText:Ke,fontWeightStrong:Ce,footerPaddingBlock:Ve,footerPaddingInline:Qe}=fn,Bt=`${hn}-content-wrapper`;return{[hn]:{position:"fixed",inset:0,zIndex:ct,pointerEvents:"none","&-pure":{position:"relative",background:k,[`&${hn}-left`]:{boxShadow:fn.boxShadowDrawerLeft},[`&${hn}-right`]:{boxShadow:fn.boxShadowDrawerRight},[`&${hn}-top`]:{boxShadow:fn.boxShadowDrawerUp},[`&${hn}-bottom`]:{boxShadow:fn.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${hn}-mask`]:{position:"absolute",inset:0,zIndex:ct,background:L,pointerEvents:"auto"},[Bt]:{position:"absolute",zIndex:ct,maxWidth:"100vw",transition:`all ${z}`,"&-hidden":{display:"none"}},[`&-left > ${Bt}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:fn.boxShadowDrawerLeft},[`&-right > ${Bt}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:fn.boxShadowDrawerRight},[`&-top > ${Bt}`]:{top:0,insetInline:0,boxShadow:fn.boxShadowDrawerUp},[`&-bottom > ${Bt}`]:{bottom:0,insetInline:0,boxShadow:fn.boxShadowDrawerDown},[`${hn}-content`]:{width:"100%",height:"100%",overflow:"auto",background:k,pointerEvents:"auto"},[`${hn}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${hn}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${T}px ${St}px`,fontSize:fe,lineHeight:Ct,borderBottom:`${xt}px ${Dt} ${qt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${hn}-extra`]:{flex:"none"},[`${hn}-close`]:{display:"inline-block",marginInlineEnd:_t,color:ve,fontWeight:Ce,fontSize:fe,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${G}`,textRendering:"auto","&:focus, &:hover":{color:Ge,textDecoration:"none"}},[`${hn}-title`]:{flex:1,margin:0,color:Ke,fontWeight:fn.fontWeightStrong,fontSize:fe,lineHeight:Ct},[`${hn}-body`]:{flex:1,minWidth:0,minHeight:0,padding:St,overflow:"auto"},[`${hn}-footer`]:{flexShrink:0,padding:`${Ve}px ${Qe}px`,borderTop:`${xt}px ${Dt} ${qt}`},"&-rtl":{direction:"rtl"}}}};var Ae=(0,ln.Z)("Drawer",fn=>{const hn=(0,zt.TS)(fn,{});return[Te(hn),it(hn)]},fn=>({zIndexPopup:fn.zIndexPopupBase,footerPaddingBlock:fn.paddingXS,footerPaddingInline:fn.padding})),de=h(11575),en=function(fn,hn){var ct={};for(var L in fn)Object.prototype.hasOwnProperty.call(fn,L)&&hn.indexOf(L)<0&&(ct[L]=fn[L]);if(fn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var k=0,L=Object.getOwnPropertySymbols(fn);k<L.length;k++)hn.indexOf(L[k])<0&&Object.prototype.propertyIsEnumerable.call(fn,L[k])&&(ct[L[k]]=fn[L[k]]);return ct};const vn=null,Xn={distance:180},gn=fn=>{var hn;const{rootClassName:ct,width:L,height:k,size:z="default",mask:G=!0,push:T=Xn,open:St,afterOpenChange:fe,onClose:Ct,prefixCls:xt,getContainer:Dt,style:qt,className:_t,visible:ve,afterVisibleChange:Ge}=fn,Ke=en(fn,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:Ce,getPrefixCls:Ve,direction:Qe,drawer:Bt}=I.useContext(ae.E_),xe=Ve("drawer",xt),[ze,Ne]=Ae(xe),Cn=Dt===void 0&&Ce?()=>Ce(document.body):Dt,En=N()({"no-mask":!G,[`${xe}-rtl`]:Qe==="rtl"},ct,Ne),jn=I.useMemo(()=>L!=null?L:z==="large"?736:378,[L,z]),On=I.useMemo(()=>k!=null?k:z==="large"?736:378,[k,z]),ci={motionName:(0,yt.m)(xe,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Si=qn=>({motionName:(0,yt.m)(xe,`panel-motion-${qn}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),vi=(0,de.H)();return ze(I.createElement(pe.BR,null,I.createElement(Ht.Ux,{status:!0,override:!0},I.createElement(ie,Object.assign({prefixCls:xe,onClose:Ct,maskMotion:ci,motion:Si},Ke,{open:St!=null?St:ve,mask:G,push:T,width:jn,height:On,style:Object.assign(Object.assign({},Bt==null?void 0:Bt.style),qt),className:N()(Bt==null?void 0:Bt.className,_t),rootClassName:En,getContainer:Cn,afterOpenChange:fe!=null?fe:Ge,panelRef:vi}),I.createElement(we,Object.assign({prefixCls:xe},Ke,{onClose:Ct}))))))},_n=fn=>{const{prefixCls:hn,style:ct,className:L,placement:k="right"}=fn,z=en(fn,["prefixCls","style","className","placement"]),{getPrefixCls:G}=I.useContext(ae.E_),T=G("drawer",hn),[St,fe]=Ae(T),Ct=N()(T,`${T}-pure`,`${T}-${k}`,fe,L);return St(I.createElement("div",{className:Ct,style:ct},I.createElement(we,Object.assign({prefixCls:T},z))))};gn._InternalPanelDoNotUseOrYouWillBeFired=_n;var $n=gn},91857:function(V,w,h){"use strict";var y=h(59301),N=h(38819),O=h(92310),B=h.n(O),_=h(31561),K=h(70425),I=h(18929),dt=h(2738),rt=h(79676),Q=h(53487),kt=h(92343),Y=h(36355),Yt=h(20834),At=h(40875),vt=h(88088),Tt=h(47211);const Mt=null,ft=Ut=>{const{menu:et,arrow:Rt,prefixCls:Lt,children:Kt,trigger:Qt,disabled:ie,dropdownRender:yt,getPopupContainer:ae,overlayClassName:Ht,rootClassName:Pe,open:ge,onOpenChange:we,visible:pe,onVisibleChange:ln,mouseEnterDelay:zt=.15,mouseLeaveDelay:nt=.1,autoAdjustOverflow:it=!0,placement:Te="",overlay:Ae,transitionName:de}=Ut,{getPopupContainer:en,getPrefixCls:vn,direction:Xn}=y.useContext(Y.E_),gn=y.useMemo(()=>{const _t=vn();return de!==void 0?de:Te.includes("top")?`${_t}-slide-down`:`${_t}-slide-up`},[vn,Te,de]),_n=y.useMemo(()=>Te?Te.includes("Center")?Te.slice(0,Te.indexOf("Center")):Te:Xn==="rtl"?"bottomRight":"bottomLeft",[Te,Xn]),$n=vn("dropdown",Lt),[fn,hn]=(0,Tt.Z)($n),[,ct]=(0,vt.Z)(),L=y.Children.only(Kt),k=(0,kt.Tm)(L,{className:B()(`${$n}-trigger`,{[`${$n}-rtl`]:Xn==="rtl"},L.props.className),disabled:ie}),z=ie?[]:Qt;let G;z&&z.includes("contextMenu")&&(G=!0);const[T,St]=(0,I.Z)(!1,{value:ge!=null?ge:pe}),fe=(0,K.useEvent)(_t=>{we==null||we(_t),ln==null||ln(_t),St(_t)}),Ct=B()(Ht,Pe,hn,{[`${$n}-rtl`]:Xn==="rtl"}),xt=(0,rt.Z)({arrowPointAtCenter:typeof Rt=="object"&&Rt.pointAtCenter,autoAdjustOverflow:it,offset:ct.marginXXS,arrowWidth:Rt?ct.sizePopupArrow:0,borderRadius:ct.borderRadius}),Dt=y.useCallback(()=>{St(!1)},[]),qt=()=>{let _t;return et!=null&&et.items?_t=y.createElement(Yt.default,Object.assign({},et)):typeof Ae=="function"?_t=Ae():_t=Ae,yt&&(_t=yt(_t)),_t=y.Children.only(typeof _t=="string"?y.createElement("span",null,_t):_t),y.createElement(At.J,{prefixCls:`${$n}-menu`,expandIcon:y.createElement("span",{className:`${$n}-menu-submenu-arrow`},y.createElement(N.Z,{className:`${$n}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Dt,validator:ve=>{let{mode:Ge}=ve}},_t)};return fn(y.createElement(_.Z,Object.assign({alignPoint:G},(0,dt.Z)(Ut,["rootClassName"]),{mouseEnterDelay:zt,mouseLeaveDelay:nt,visible:T,builtinPlacements:xt,arrow:!!Rt,overlayClassName:Ct,prefixCls:$n,getPopupContainer:ae||en,transitionName:gn,trigger:z,overlay:qt,placement:_n,onVisibleChange:fe}),k))};function It(Ut){return Object.assign(Object.assign({},Ut),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const $t=(0,Q.Z)(ft,"dropdown",Ut=>Ut,It),Nt=Ut=>y.createElement($t,Object.assign({},Ut),y.createElement("span",null));ft._InternalPanelDoNotUseOrYouWillBeFired=Nt,w.Z=ft},38854:function(V,w,h){"use strict";h.d(w,{Z:function(){return vt}});var y=h(91857),N=h(92310),O=h.n(N),B=h(59301),_=h(18785),K=h(3113),I=h(36355),dt=h(81327),rt=h(33234),Q=h(47211),kt=function(Tt,Mt){var ft={};for(var It in Tt)Object.prototype.hasOwnProperty.call(Tt,It)&&Mt.indexOf(It)<0&&(ft[It]=Tt[It]);if(Tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,It=Object.getOwnPropertySymbols(Tt);$t<It.length;$t++)Mt.indexOf(It[$t])<0&&Object.prototype.propertyIsEnumerable.call(Tt,It[$t])&&(ft[It[$t]]=Tt[It[$t]]);return ft};const Y=Tt=>{const{getPopupContainer:Mt,getPrefixCls:ft,direction:It}=B.useContext(I.E_),{prefixCls:$t,type:Nt="default",danger:Ut,disabled:et,loading:Rt,onClick:Lt,htmlType:Kt,children:Qt,className:ie,menu:yt,arrow:ae,autoFocus:Ht,overlay:Pe,trigger:ge,align:we,open:pe,onOpenChange:ln,placement:zt,getPopupContainer:nt,href:it,icon:Te=B.createElement(_.Z,null),title:Ae,buttonsRender:de=qt=>qt,mouseEnterDelay:en,mouseLeaveDelay:vn,overlayClassName:Xn,overlayStyle:gn,destroyPopupOnHide:_n,dropdownRender:$n}=Tt,fn=kt(Tt,["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"]),hn=ft("dropdown",$t),ct=`${hn}-button`,[L,k]=(0,Q.Z)(hn),z={menu:yt,arrow:ae,autoFocus:Ht,align:we,disabled:et,trigger:et?[]:ge,onOpenChange:ln,getPopupContainer:nt||Mt,mouseEnterDelay:en,mouseLeaveDelay:vn,overlayClassName:Xn,overlayStyle:gn,destroyPopupOnHide:_n,dropdownRender:$n},{compactSize:G,compactItemClassnames:T}=(0,rt.ri)(hn,It),St=O()(ct,T,ie,k);"overlay"in Tt&&(z.overlay=Pe),"open"in Tt&&(z.open=pe),"placement"in Tt?z.placement=zt:z.placement=It==="rtl"?"bottomLeft":"bottomRight";const fe=B.createElement(K.ZP,{type:Nt,danger:Ut,disabled:et,loading:Rt,onClick:Lt,htmlType:Kt,href:it,title:Ae},Qt),Ct=B.createElement(K.ZP,{type:Nt,danger:Ut,icon:Te}),[xt,Dt]=de([fe,Ct]);return L(B.createElement(dt.Z.Compact,Object.assign({className:St,size:G,block:!0},fn),xt,B.createElement(y.Z,Object.assign({},z),Dt)))};Y.__ANT_BUTTON=!0;var Yt=Y;const At=y.Z;At.Button=Yt;var vt=At},47211:function(V,w,h){"use strict";h.d(w,{Z:function(){return kt}});var y=h(17313),N=h(13826),O=h(92899),B=h(29878),_=h(19447),K=h(83116),I=h(37613),rt=Y=>{const{componentCls:Yt,menuCls:At,colorError:vt,colorTextLightSolid:Tt}=Y,Mt=`${At}-item`;return{[`${Yt}, ${Yt}-menu-submenu`]:{[`${At} ${Mt}`]:{[`&${Mt}-danger:not(${Mt}-disabled)`]:{color:vt,"&:hover":{color:Tt,backgroundColor:vt}}}}}};const Q=Y=>{const{componentCls:Yt,menuCls:At,zIndexPopup:vt,dropdownArrowDistance:Tt,sizePopupArrow:Mt,antCls:ft,iconCls:It,motionDurationMid:$t,dropdownPaddingVertical:Nt,fontSize:Ut,dropdownEdgeChildPadding:et,colorTextDisabled:Rt,fontSizeIcon:Lt,controlPaddingHorizontal:Kt,colorBgElevated:Qt}=Y;return[{[Yt]:Object.assign(Object.assign({},(0,y.Wf)(Y)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:vt,display:"block","&::before":{position:"absolute",insetBlock:-Tt+Mt/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${ft}-btn`]:{[`& > ${It}-down, & > ${ft}-btn-icon > ${It}-down`]:{fontSize:Lt}},[`${Yt}-wrap`]:{position:"relative",[`${ft}-btn > ${It}-down`]:{fontSize:Lt},[`${It}-down::before`]:{transition:`transform ${$t}`}},[`${Yt}-wrap-open`]:{[`${It}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${ft}-slide-down-enter${ft}-slide-down-enter-active${Yt}-placement-bottomLeft,
|
|
|
&${ft}-slide-down-appear${ft}-slide-down-appear-active${Yt}-placement-bottomLeft,
|
|
|
&${ft}-slide-down-enter${ft}-slide-down-enter-active${Yt}-placement-bottom,
|
|
|
&${ft}-slide-down-appear${ft}-slide-down-appear-active${Yt}-placement-bottom,
|
|
|
&${ft}-slide-down-enter${ft}-slide-down-enter-active${Yt}-placement-bottomRight,
|
|
|
&${ft}-slide-down-appear${ft}-slide-down-appear-active${Yt}-placement-bottomRight`]:{animationName:N.fJ},[`&${ft}-slide-up-enter${ft}-slide-up-enter-active${Yt}-placement-topLeft,
|
|
|
&${ft}-slide-up-appear${ft}-slide-up-appear-active${Yt}-placement-topLeft,
|
|
|
&${ft}-slide-up-enter${ft}-slide-up-enter-active${Yt}-placement-top,
|
|
|
&${ft}-slide-up-appear${ft}-slide-up-appear-active${Yt}-placement-top,
|
|
|
&${ft}-slide-up-enter${ft}-slide-up-enter-active${Yt}-placement-topRight,
|
|
|
&${ft}-slide-up-appear${ft}-slide-up-appear-active${Yt}-placement-topRight`]:{animationName:N.Qt},[`&${ft}-slide-down-leave${ft}-slide-down-leave-active${Yt}-placement-bottomLeft,
|
|
|
&${ft}-slide-down-leave${ft}-slide-down-leave-active${Yt}-placement-bottom,
|
|
|
&${ft}-slide-down-leave${ft}-slide-down-leave-active${Yt}-placement-bottomRight`]:{animationName:N.Uw},[`&${ft}-slide-up-leave${ft}-slide-up-leave-active${Yt}-placement-topLeft,
|
|
|
&${ft}-slide-up-leave${ft}-slide-up-leave-active${Yt}-placement-top,
|
|
|
&${ft}-slide-up-leave${ft}-slide-up-leave-active${Yt}-placement-topRight`]:{animationName:N.ly}})},(0,_.ZP)(Y,{colorBg:Qt,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Yt} ${At}`]:{position:"relative",margin:0},[`${At}-submenu-popup`]:{position:"absolute",zIndex:vt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Yt}, ${Yt}-menu-submenu`]:{[At]:Object.assign(Object.assign({padding:et,listStyleType:"none",backgroundColor:Qt,backgroundClip:"padding-box",borderRadius:Y.borderRadiusLG,outline:"none",boxShadow:Y.boxShadowSecondary},(0,y.Qy)(Y)),{[`${At}-item-group-title`]:{padding:`${Nt}px ${Kt}px`,color:Y.colorTextDescription,transition:`all ${$t}`},[`${At}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${At}-item-icon`]:{minWidth:Ut,marginInlineEnd:Y.marginXS,fontSize:Y.fontSizeSM},[`${At}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${$t}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${At}-item, ${At}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${Nt}px ${Kt}px`,color:Y.colorText,fontWeight:"normal",fontSize:Ut,lineHeight:Y.lineHeight,cursor:"pointer",transition:`all ${$t}`,borderRadius:Y.borderRadiusSM,"&:hover, &-active":{backgroundColor:Y.controlItemBgHover}},(0,y.Qy)(Y)),{"&-selected":{color:Y.colorPrimary,backgroundColor:Y.controlItemBgActive,"&:hover, &-active":{backgroundColor:Y.controlItemBgActiveHover}},"&-disabled":{color:Rt,cursor:"not-allowed","&:hover":{color:Rt,backgroundColor:Qt,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Y.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Y.colorSplit},[`${Yt}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Y.paddingXS,[`${Yt}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Y.colorTextDescription,fontSize:Lt,fontStyle:"normal"}}}),[`${At}-item-group-list`]:{margin:`0 ${Y.marginXS}px`,padding:0,listStyle:"none"},[`${At}-submenu-title`]:{paddingInlineEnd:Kt+Y.fontSizeSM},[`${At}-submenu-vertical`]:{position:"relative"},[`${At}-submenu${At}-submenu-disabled ${Yt}-menu-submenu-title`]:{[`&, ${Yt}-menu-submenu-arrow-icon`]:{color:Rt,backgroundColor:Qt,cursor:"not-allowed"}},[`${At}-submenu-selected ${Yt}-menu-submenu-title`]:{color:Y.colorPrimary}})}},[(0,N.oN)(Y,"slide-up"),(0,N.oN)(Y,"slide-down"),(0,O.Fm)(Y,"move-up"),(0,O.Fm)(Y,"move-down"),(0,B._y)(Y,"zoom-big")]]};var kt=(0,K.Z)("Dropdown",(Y,Yt)=>{let{rootPrefixCls:At}=Yt;const{marginXXS:vt,sizePopupArrow:Tt,controlHeight:Mt,fontSize:ft,lineHeight:It,paddingXXS:$t,componentCls:Nt,borderRadiusLG:Ut}=Y,et=(Mt-ft*It)/2,{dropdownArrowOffset:Rt}=(0,_.fS)({contentRadius:Ut}),Lt=(0,I.TS)(Y,{menuCls:`${Nt}-menu`,rootPrefixCls:At,dropdownArrowDistance:Tt/2+vt,dropdownArrowOffset:Rt,dropdownPaddingVertical:et,dropdownEdgeChildPadding:$t});return[Q(Lt),rt(Lt)]},Y=>({zIndexPopup:Y.zIndexPopupBase+50}))},64165:function(V,w,h){"use strict";h.d(w,{Z:function(){return $t}});var y=h(92310),N=h.n(y),O=h(59301),B=h(36355),_=h(9763),K=h(64993),I=h(88088),rt=()=>{const[,Nt]=(0,I.Z)(),et=new K.C(Nt.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return O.createElement("svg",{style:et,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},O.createElement("g",{fill:"none",fillRule:"evenodd"},O.createElement("g",{transform:"translate(24 31.67)"},O.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),O.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"}),O.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)"}),O.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"}),O.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"})),O.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"}),O.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},O.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),O.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},kt=()=>{const[,Nt]=(0,I.Z)(),{colorFill:Ut,colorFillTertiary:et,colorFillQuaternary:Rt,colorBgContainer:Lt}=Nt,{borderColor:Kt,shadowColor:Qt,contentColor:ie}=(0,O.useMemo)(()=>({borderColor:new K.C(Ut).onBackground(Lt).toHexShortString(),shadowColor:new K.C(et).onBackground(Lt).toHexShortString(),contentColor:new K.C(Rt).onBackground(Lt).toHexShortString()}),[Ut,et,Rt,Lt]);return O.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},O.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},O.createElement("ellipse",{fill:Qt,cx:"32",cy:"33",rx:"32",ry:"7"}),O.createElement("g",{fillRule:"nonzero",stroke:Kt},O.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"}),O.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:ie}))))},Y=h(83116),Yt=h(37613);const At=Nt=>{const{componentCls:Ut,margin:et,marginXS:Rt,marginXL:Lt,fontSize:Kt,lineHeight:Qt}=Nt;return{[Ut]:{marginInline:Rt,fontSize:Kt,lineHeight:Qt,textAlign:"center",[`${Ut}-image`]:{height:Nt.emptyImgHeight,marginBottom:Rt,opacity:Nt.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Ut}-description`]:{color:Nt.colorText},[`${Ut}-footer`]:{marginTop:et},"&-normal":{marginBlock:Lt,color:Nt.colorTextDisabled,[`${Ut}-description`]:{color:Nt.colorTextDisabled},[`${Ut}-image`]:{height:Nt.emptyImgHeightMD}},"&-small":{marginBlock:Rt,color:Nt.colorTextDisabled,[`${Ut}-image`]:{height:Nt.emptyImgHeightSM}}}}};var vt=(0,Y.Z)("Empty",Nt=>{const{componentCls:Ut,controlHeightLG:et}=Nt,Rt=(0,Yt.TS)(Nt,{emptyImgCls:`${Ut}-img`,emptyImgHeight:et*2.5,emptyImgHeightMD:et,emptyImgHeightSM:et*.875});return[At(Rt)]}),Tt=function(Nt,Ut){var et={};for(var Rt in Nt)Object.prototype.hasOwnProperty.call(Nt,Rt)&&Ut.indexOf(Rt)<0&&(et[Rt]=Nt[Rt]);if(Nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,Rt=Object.getOwnPropertySymbols(Nt);Lt<Rt.length;Lt++)Ut.indexOf(Rt[Lt])<0&&Object.prototype.propertyIsEnumerable.call(Nt,Rt[Lt])&&(et[Rt[Lt]]=Nt[Rt[Lt]]);return et};const Mt=O.createElement(rt,null),ft=O.createElement(kt,null),It=Nt=>{var{className:Ut,rootClassName:et,prefixCls:Rt,image:Lt=Mt,description:Kt,children:Qt,imageStyle:ie,style:yt}=Nt,ae=Tt(Nt,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Ht,direction:Pe,empty:ge}=O.useContext(B.E_),we=Ht("empty",Rt),[pe,ln]=vt(we),[zt]=(0,_.Z)("Empty"),nt=typeof Kt!="undefined"?Kt:zt==null?void 0:zt.description,it=typeof nt=="string"?nt:"empty";let Te=null;return typeof Lt=="string"?Te=O.createElement("img",{alt:it,src:Lt}):Te=Lt,pe(O.createElement("div",Object.assign({className:N()(ln,we,ge==null?void 0:ge.className,{[`${we}-normal`]:Lt===ft,[`${we}-rtl`]:Pe==="rtl"},Ut,et),style:Object.assign(Object.assign({},ge==null?void 0:ge.style),yt)},ae),O.createElement("div",{className:`${we}-image`,style:ie},Te),nt&&O.createElement("div",{className:`${we}-description`},nt),Qt&&O.createElement("div",{className:`${we}-footer`},Qt)))};It.PRESENTED_IMAGE_DEFAULT=Mt,It.PRESENTED_IMAGE_SIMPLE=ft;var $t=It},78241:function(V,w,h){"use strict";h.d(w,{default:function(){return Jn}});var y=h(65093),N=h(92310),O=h.n(N),B=h(77900),_=h(59301),K=h(62892),I=h(32441);function dt(te){const[Nn,Bn]=_.useState(te);return _.useEffect(()=>{const oe=setTimeout(()=>{Bn(te)},te.length?0:10);return()=>{clearTimeout(oe)}},[te]),Nn}var rt=h(17313),Q=h(29878),kt=h(8378),Y=h(37613),Yt=h(83116),vt=te=>{const{componentCls:Nn}=te,Bn=`${Nn}-show-help`,oe=`${Nn}-show-help-item`;return{[Bn]:{transition:`opacity ${te.motionDurationSlow} ${te.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[oe]:{overflow:"hidden",transition:`height ${te.motionDurationSlow} ${te.motionEaseInOut},
|
|
|
opacity ${te.motionDurationSlow} ${te.motionEaseInOut},
|
|
|
transform ${te.motionDurationSlow} ${te.motionEaseInOut} !important`,[`&${oe}-appear, &${oe}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${oe}-leave-active`]:{transform:"translateY(-5px)"}}}}};const Tt=te=>({legend:{display:"block",width:"100%",marginBottom:te.marginLG,padding:0,color:te.colorTextDescription,fontSize:te.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${te.lineWidth}px ${te.lineType} ${te.colorBorder}`},label:{fontSize:te.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 ${te.controlOutlineWidth}px ${te.controlOutline}`},output:{display:"block",paddingTop:15,color:te.colorText,fontSize:te.fontSize,lineHeight:te.lineHeight}}),Mt=(te,Nn)=>{const{formItemCls:Bn}=te;return{[Bn]:{[`${Bn}-label > label`]:{height:Nn},[`${Bn}-control-input`]:{minHeight:Nn}}}},ft=te=>{const{componentCls:Nn}=te;return{[te.componentCls]:Object.assign(Object.assign(Object.assign({},(0,rt.Wf)(te)),Tt(te)),{[`${Nn}-text`]:{display:"inline-block",paddingInlineEnd:te.paddingSM},"&-small":Object.assign({},Mt(te,te.controlHeightSM)),"&-large":Object.assign({},Mt(te,te.controlHeightLG))})}},It=te=>{const{formItemCls:Nn,iconCls:Bn,componentCls:oe,rootPrefixCls:Ft,labelRequiredMarkColor:qe,labelColor:xn,labelFontSize:Gn,labelHeight:kn,labelColonMarginInlineStart:ne,labelColonMarginInlineEnd:dn,itemMarginBottom:Fn}=te;return{[Nn]:Object.assign(Object.assign({},(0,rt.Wf)(te)),{marginBottom:Fn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${Ft}-row`]:{display:"none"},"&-has-warning":{[`${Nn}-split`]:{color:te.colorError}},"&-has-error":{[`${Nn}-split`]:{color:te.colorWarning}},[`${Nn}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${te.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:kn,color:xn,fontSize:Gn,[`> ${Bn}`]:{fontSize:te.fontSize,verticalAlign:"top"},[`&${Nn}-required:not(${Nn}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:te.marginXXS,color:qe,fontSize:te.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${oe}-hide-required-mark &`]:{display:"none"}},[`${Nn}-optional`]:{display:"inline-block",marginInlineStart:te.marginXXS,color:te.colorTextDescription,[`${oe}-hide-required-mark &`]:{display:"none"}},[`${Nn}-tooltip`]:{color:te.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:te.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:ne,marginInlineEnd:dn},[`&${Nn}-no-colon::after`]:{content:'"\\a0"'}}},[`${Nn}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Ft}-col-'"]):not([class*="' ${Ft}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:te.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Nn]:{"&-explain, &-extra":{clear:"both",color:te.colorTextDescription,fontSize:te.fontSize,lineHeight:te.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:te.controlHeightSM,transition:`color ${te.motionDurationMid} ${te.motionEaseOut}`},"&-explain":{"&-error":{color:te.colorError},"&-warning":{color:te.colorWarning}}},[`&-with-help ${Nn}-explain`]:{height:"auto",opacity:1},[`${Nn}-feedback-icon`]:{fontSize:te.fontSize,textAlign:"center",visibility:"visible",animationName:Q.kr,animationDuration:te.motionDurationMid,animationTimingFunction:te.motionEaseOutBack,pointerEvents:"none","&-success":{color:te.colorSuccess},"&-error":{color:te.colorError},"&-warning":{color:te.colorWarning},"&-validating":{color:te.colorPrimary}}})}},$t=te=>{const{componentCls:Nn,formItemCls:Bn}=te;return{[`${Nn}-horizontal`]:{[`${Bn}-label`]:{flexGrow:0},[`${Bn}-control`]:{flex:"1 1 0",minWidth:0},[`${Bn}-label[class$='-24'], ${Bn}-label[class*='-24 ']`]:{[`& + ${Bn}-control`]:{minWidth:"unset"}}}}},Nt=te=>{const{componentCls:Nn,formItemCls:Bn}=te;return{[`${Nn}-inline`]:{display:"flex",flexWrap:"wrap",[Bn]:{flex:"none",marginInlineEnd:te.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Bn}-label,
|
|
|
> ${Bn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Bn}-label`]:{flex:"none"},[`${Nn}-text`]:{display:"inline-block"},[`${Bn}-has-feedback`]:{display:"inline-block"}}}}},Ut=te=>({padding:te.verticalLabelPadding,margin:te.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),et=te=>{const{componentCls:Nn,formItemCls:Bn,rootPrefixCls:oe}=te;return{[`${Bn} ${Bn}-label`]:Ut(te),[Nn]:{[Bn]:{flexWrap:"wrap",[`${Bn}-label, ${Bn}-control`]:{[`&:not([class*=" ${oe}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Rt=te=>{const{componentCls:Nn,formItemCls:Bn,rootPrefixCls:oe}=te;return{[`${Nn}-vertical`]:{[Bn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${Nn}-item-control`]:{width:"100%"}}},[`${Nn}-vertical ${Bn}-label,
|
|
|
.${oe}-col-24${Bn}-label,
|
|
|
.${oe}-col-xl-24${Bn}-label`]:Ut(te),[`@media (max-width: ${te.screenXSMax}px)`]:[et(te),{[Nn]:{[`.${oe}-col-xs-24${Bn}-label`]:Ut(te)}}],[`@media (max-width: ${te.screenSMMax}px)`]:{[Nn]:{[`.${oe}-col-sm-24${Bn}-label`]:Ut(te)}},[`@media (max-width: ${te.screenMDMax}px)`]:{[Nn]:{[`.${oe}-col-md-24${Bn}-label`]:Ut(te)}},[`@media (max-width: ${te.screenLGMax}px)`]:{[Nn]:{[`.${oe}-col-lg-24${Bn}-label`]:Ut(te)}}}},Lt=(te,Nn)=>(0,Y.TS)(te,{formItemCls:`${te.componentCls}-item`,rootPrefixCls:Nn});var Kt=(0,Yt.Z)("Form",(te,Nn)=>{let{rootPrefixCls:Bn}=Nn;const oe=Lt(te,Bn);return[ft(oe),It(oe),vt(oe),$t(oe),Nt(oe),Rt(oe),(0,kt.Z)(oe),Q.kr]},te=>({labelRequiredMarkColor:te.colorError,labelColor:te.colorTextHeading,labelFontSize:te.fontSize,labelHeight:te.controlHeight,labelColonMarginInlineStart:te.marginXXS/2,labelColonMarginInlineEnd:te.marginXS,itemMarginBottom:te.marginLG,verticalLabelPadding:`0 0 ${te.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Qt=[];function ie(te,Nn,Bn){let oe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof te=="string"?te:`${Nn}-${oe}`,error:te,errorStatus:Bn}}var ae=te=>{let{help:Nn,helpStatus:Bn,errors:oe=Qt,warnings:Ft=Qt,className:qe,fieldId:xn,onVisibleChanged:Gn}=te;const{prefixCls:kn}=_.useContext(I.Rk),ne=`${kn}-item-explain`,[,dn]=Kt(kn),Fn=(0,_.useMemo)(()=>(0,K.Z)(kn),[kn]),hi=dt(oe),Me=dt(Ft),In=_.useMemo(()=>Nn!=null?[ie(Nn,"help",Bn)]:[].concat((0,y.Z)(hi.map(($e,He)=>ie($e,"error","error",He))),(0,y.Z)(Me.map(($e,He)=>ie($e,"warning","warning",He)))),[Nn,Bn,hi,Me]),be={};return xn&&(be.id=`${xn}_help`),_.createElement(B.default,{motionDeadline:Fn.motionDeadline,motionName:`${kn}-show-help`,visible:!!In.length,onVisibleChanged:Gn},$e=>{const{className:He,style:Le}=$e;return _.createElement("div",Object.assign({},be,{className:O()(ne,He,qe,dn),style:Le,role:"alert"}),_.createElement(B.CSSMotionList,Object.assign({keys:In},(0,K.Z)(kn),{motionName:`${kn}-show-help-item`,component:!1}),tn=>{const{key:Je,error:yn,errorStatus:bn,className:di,style:Sn}=tn;return _.createElement("div",{key:Je,className:O()(di,{[`${ne}-${bn}`]:bn}),style:Sn},yn)}))})},Ht=h(95013),Pe=h(36355),ge=h(1684),we=h(52946),pe=h(19716),ln=h(16722);const zt=["parentNode"],nt="form_item";function it(te){return te===void 0||te===!1?[]:Array.isArray(te)?te:[te]}function Te(te,Nn){if(!te.length)return;const Bn=te.join("_");return Nn?`${Nn}_${Bn}`:zt.includes(Bn)?`${nt}_${Bn}`:Bn}function Ae(te,Nn,Bn,oe,Ft,qe){let xn=oe;return qe!==void 0?xn=qe:Bn.validating?xn="validating":te.length?xn="error":Nn.length?xn="warning":(Bn.touched||Ft&&Bn.validated)&&(xn="success"),xn}function de(te){return it(te).join("_")}function en(te){const[Nn]=(0,Ht.useForm)(),Bn=_.useRef({}),oe=_.useMemo(()=>te!=null?te:Object.assign(Object.assign({},Nn),{__INTERNAL__:{itemRef:Ft=>qe=>{const xn=de(Ft);qe?Bn.current[xn]=qe:delete Bn.current[xn]}},scrollToField:function(Ft){let qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const xn=it(Ft),Gn=Te(xn,oe.__INTERNAL__.name),kn=Gn?document.getElementById(Gn):null;kn&&(0,ln.Z)(kn,Object.assign({scrollMode:"if-needed",block:"nearest"},qe))},getFieldInstance:Ft=>{const qe=de(Ft);return Bn.current[qe]}}),[te,Nn]);return[oe]}var vn=h(28726),Xn=function(te,Nn){var Bn={};for(var oe in te)Object.prototype.hasOwnProperty.call(te,oe)&&Nn.indexOf(oe)<0&&(Bn[oe]=te[oe]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ft=0,oe=Object.getOwnPropertySymbols(te);Ft<oe.length;Ft++)Nn.indexOf(oe[Ft])<0&&Object.prototype.propertyIsEnumerable.call(te,oe[Ft])&&(Bn[oe[Ft]]=te[oe[Ft]]);return Bn};const gn=(te,Nn)=>{const Bn=_.useContext(ge.Z),{getPrefixCls:oe,direction:Ft,form:qe}=_.useContext(Pe.E_),{prefixCls:xn,className:Gn,rootClassName:kn,size:ne,disabled:dn=Bn,form:Fn,colon:hi,labelAlign:Me,labelWrap:In,labelCol:be,wrapperCol:$e,hideRequiredMark:He,layout:Le="horizontal",scrollToFirstError:tn,requiredMark:Je,onFinishFailed:yn,name:bn,style:di,feedbackIcons:Sn}=te,xi=Xn(te,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),ir=(0,pe.Z)(ne),Mi=_.useContext(vn.Z),le=(0,_.useMemo)(()=>Je!==void 0?Je:qe&&qe.requiredMark!==void 0?qe.requiredMark:!He,[He,Je,qe]),mr=hi!=null?hi:qe==null?void 0:qe.colon,Or=oe("form",xn),[zr,Yr]=Kt(Or),dr=O()(Or,`${Or}-${Le}`,{[`${Or}-hide-required-mark`]:le===!1,[`${Or}-rtl`]:Ft==="rtl",[`${Or}-${ir}`]:ir},Yr,qe==null?void 0:qe.className,Gn,kn),[Er]=en(Fn),{__INTERNAL__:Pi}=Er;Pi.name=bn;const pi=(0,_.useMemo)(()=>({name:bn,labelAlign:Me,labelCol:be,labelWrap:In,wrapperCol:$e,vertical:Le==="vertical",colon:mr,requiredMark:le,itemRef:Pi.itemRef,form:Er,feedbackIcons:Sn}),[bn,Me,be,$e,Le,mr,le,Er,Sn]);_.useImperativeHandle(Nn,()=>Er);const ur=(Rr,je)=>{if(Rr){let nr={block:"nearest"};typeof Rr=="object"&&(nr=Rr),Er.scrollToField(je,nr)}},Re=Rr=>{if(yn==null||yn(Rr),Rr.errorFields.length){const je=Rr.errorFields[0].name;if(tn!==void 0){ur(tn,je);return}qe&&qe.scrollToFirstError!==void 0&&ur(qe.scrollToFirstError,je)}};return zr(_.createElement(ge.n,{disabled:dn},_.createElement(we.q,{size:ir},_.createElement(I.RV,Object.assign({},{validateMessages:Mi}),_.createElement(I.q3.Provider,{value:pi},_.createElement(Ht.default,Object.assign({id:bn},xi,{name:bn,onFinishFailed:Re,form:Er,style:Object.assign(Object.assign({},qe==null?void 0:qe.style),di),className:dr})))))))};var $n=_.forwardRef(gn),fn=h(41799),hn=h(8654),ct=h(92343),L=h(11592);function k(te){if(typeof te=="function")return te;const Nn=(0,L.Z)(te);return Nn.length<=1?Nn[0]:Nn}const z=()=>{const{status:te,errors:Nn=[],warnings:Bn=[]}=(0,_.useContext)(I.aM);return{status:te,errors:Nn,warnings:Bn}};z.Context=I.aM;var G=z,T=h(16089);function St(te){const[Nn,Bn]=_.useState(te),oe=(0,_.useRef)(null),Ft=(0,_.useRef)([]),qe=(0,_.useRef)(!1);_.useEffect(()=>(qe.current=!1,()=>{qe.current=!0,T.Z.cancel(oe.current),oe.current=null}),[]);function xn(Gn){qe.current||(oe.current===null&&(Ft.current=[],oe.current=(0,T.Z)(()=>{oe.current=null,Bn(kn=>{let ne=kn;return Ft.current.forEach(dn=>{ne=dn(ne)}),ne})})),Ft.current.push(Gn))}return[Nn,xn]}function fe(){const{itemRef:te}=_.useContext(I.q3),Nn=_.useRef({});function Bn(oe,Ft){const qe=Ft&&typeof Ft=="object"&&Ft.ref,xn=oe.join("_");return(Nn.current.name!==xn||Nn.current.originRef!==qe)&&(Nn.current.name=xn,Nn.current.originRef=qe,Nn.current.ref=(0,hn.sQ)(te(oe),qe)),Nn.current.ref}return Bn}var Ct=h(29194),xt=h(34280),Dt=h(2738),qt=h(27382),_t=h(37028);const ve=te=>{const{formItemCls:Nn}=te;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Nn}-control`]:{display:"flex"}}}};var Ge=(0,Yt.b)(["Form","item-item"],(te,Nn)=>{let{rootPrefixCls:Bn}=Nn;const oe=Lt(te,Bn);return[ve(oe)]}),Ce=te=>{const{prefixCls:Nn,status:Bn,wrapperCol:oe,children:Ft,errors:qe,warnings:xn,_internalItemRender:Gn,extra:kn,help:ne,fieldId:dn,marginBottom:Fn,onErrorVisibleChanged:hi}=te,Me=`${Nn}-item`,In=_.useContext(I.q3),be=oe||In.wrapperCol||{},$e=O()(`${Me}-control`,be.className),He=_.useMemo(()=>Object.assign({},In),[In]);delete He.labelCol,delete He.wrapperCol;const Le=_.createElement("div",{className:`${Me}-control-input`},_.createElement("div",{className:`${Me}-control-input-content`},Ft)),tn=_.useMemo(()=>({prefixCls:Nn,status:Bn}),[Nn,Bn]),Je=Fn!==null||qe.length||xn.length?_.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},_.createElement(I.Rk.Provider,{value:tn},_.createElement(ae,{fieldId:dn,errors:qe,warnings:xn,help:ne,helpStatus:Bn,className:`${Me}-explain-connected`,onVisibleChanged:hi})),!!Fn&&_.createElement("div",{style:{width:0,height:Fn}})):null,yn={};dn&&(yn.id=`${dn}_extra`);const bn=kn?_.createElement("div",Object.assign({},yn,{className:`${Me}-extra`}),kn):null,di=Gn&&Gn.mark==="pro_table_render"&&Gn.render?Gn.render(te,{input:Le,errorList:Je,extra:bn}):_.createElement(_.Fragment,null,Le,Je,bn);return _.createElement(I.q3.Provider,{value:He},_.createElement(_t.Z,Object.assign({},be,{className:$e}),di),_.createElement(Ge,{prefixCls:Nn}))},Ve=h(61485),Qe=h(31724),Bt=h(9763),xe=h(6848),ze=function(te,Nn){var Bn={};for(var oe in te)Object.prototype.hasOwnProperty.call(te,oe)&&Nn.indexOf(oe)<0&&(Bn[oe]=te[oe]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ft=0,oe=Object.getOwnPropertySymbols(te);Ft<oe.length;Ft++)Nn.indexOf(oe[Ft])<0&&Object.prototype.propertyIsEnumerable.call(te,oe[Ft])&&(Bn[oe[Ft]]=te[oe[Ft]]);return Bn};function Ne(te){return te?typeof te=="object"&&!_.isValidElement(te)?te:{title:te}:null}var En=te=>{let{prefixCls:Nn,label:Bn,htmlFor:oe,labelCol:Ft,labelAlign:qe,colon:xn,required:Gn,requiredMark:kn,tooltip:ne}=te;var dn;const[Fn]=(0,Bt.Z)("Form"),{vertical:hi,labelAlign:Me,labelCol:In,labelWrap:be,colon:$e}=_.useContext(I.q3);if(!Bn)return null;const He=Ft||In||{},Le=qe||Me,tn=`${Nn}-item-label`,Je=O()(tn,Le==="left"&&`${tn}-left`,He.className,{[`${tn}-wrap`]:!!be});let yn=Bn;const bn=xn===!0||$e!==!1&&xn!==!1;bn&&!hi&&typeof Bn=="string"&&Bn.trim()!==""&&(yn=Bn.replace(/[:|:]\s*$/,""));const Sn=Ne(ne);if(Sn){const{icon:le=_.createElement(Ve.Z,null)}=Sn,mr=ze(Sn,["icon"]),Or=_.createElement(xe.Z,Object.assign({},mr),_.cloneElement(le,{className:`${Nn}-item-tooltip`,title:""}));yn=_.createElement(_.Fragment,null,yn,Or)}const xi=kn==="optional",ir=typeof kn=="function";ir?yn=kn(yn,{required:!!Gn}):xi&&!Gn&&(yn=_.createElement(_.Fragment,null,yn,_.createElement("span",{className:`${Nn}-item-optional`,title:""},(Fn==null?void 0:Fn.optional)||((dn=Qe.Z.Form)===null||dn===void 0?void 0:dn.optional))));const Mi=O()({[`${Nn}-item-required`]:Gn,[`${Nn}-item-required-mark-optional`]:xi||ir,[`${Nn}-item-no-colon`]:!bn});return _.createElement(_t.Z,Object.assign({},He,{className:Je}),_.createElement("label",{htmlFor:oe,className:Mi,title:typeof Bn=="string"?Bn:""},yn))},jn=h(29679),On=h(19248),ci=h(96512),Si=h(58617);const vi={success:jn.Z,warning:ci.Z,error:On.Z,validating:Si.Z};function qn(te){let{children:Nn,errors:Bn,warnings:oe,hasFeedback:Ft,validateStatus:qe,prefixCls:xn,meta:Gn,noStyle:kn}=te;const ne=`${xn}-item`,{feedbackIcons:dn}=_.useContext(I.q3),Fn=Ae(Bn,oe,Gn,null,!!Ft,qe),{isFormItemInput:hi,status:Me}=_.useContext(I.aM),In=_.useMemo(()=>{var be;let $e;if(Ft){const tn=Ft!==!0&&Ft.icons||dn,Je=Fn&&((be=tn==null?void 0:tn({status:Fn,errors:Bn,warnings:oe}))===null||be===void 0?void 0:be[Fn]),yn=Fn&&vi[Fn];$e=Je!==!1&&yn?_.createElement("span",{className:O()(`${ne}-feedback-icon`,`${ne}-feedback-icon-${Fn}`)},Je||_.createElement(yn,null)):null}let He=!0,Le=Fn||"";return kn&&(He=hi,Le=(Fn!=null?Fn:Me)||""),{status:Le,errors:Bn,warnings:oe,hasFeedback:!!Ft,feedbackIcon:$e,isFormItemInput:He}},[Fn,Ft,kn,hi,Me]);return _.createElement(I.aM.Provider,{value:In},Nn)}var an=function(te,Nn){var Bn={};for(var oe in te)Object.prototype.hasOwnProperty.call(te,oe)&&Nn.indexOf(oe)<0&&(Bn[oe]=te[oe]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ft=0,oe=Object.getOwnPropertySymbols(te);Ft<oe.length;Ft++)Nn.indexOf(oe[Ft])<0&&Object.prototype.propertyIsEnumerable.call(te,oe[Ft])&&(Bn[oe[Ft]]=te[oe[Ft]]);return Bn};function Ji(te){const{prefixCls:Nn,className:Bn,rootClassName:oe,style:Ft,help:qe,errors:xn,warnings:Gn,validateStatus:kn,meta:ne,hasFeedback:dn,hidden:Fn,children:hi,fieldId:Me,required:In,isRequired:be,onSubItemMetaChange:$e}=te,He=an(te,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),Le=`${Nn}-item`,{requiredMark:tn}=_.useContext(I.q3),Je=_.useRef(null),yn=dt(xn),bn=dt(Gn),di=qe!=null,Sn=!!(di||xn.length||Gn.length),xi=!!Je.current&&(0,Ct.Z)(Je.current),[ir,Mi]=_.useState(null);(0,xt.Z)(()=>{if(Sn&&Je.current){const Yr=getComputedStyle(Je.current);Mi(parseInt(Yr.marginBottom,10))}},[Sn,xi]);const le=Yr=>{Yr||Mi(null)},Or=function(){let Yr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const dr=Yr?yn:ne.errors,Er=Yr?bn:ne.warnings;return Ae(dr,Er,ne,"",!!dn,kn)}(),zr=O()(Le,Bn,oe,{[`${Le}-with-help`]:di||yn.length||bn.length,[`${Le}-has-feedback`]:Or&&dn,[`${Le}-has-success`]:Or==="success",[`${Le}-has-warning`]:Or==="warning",[`${Le}-has-error`]:Or==="error",[`${Le}-is-validating`]:Or==="validating",[`${Le}-hidden`]:Fn});return _.createElement("div",{className:zr,style:Ft,ref:Je},_.createElement(qt.Z,Object.assign({className:`${Le}-row`},(0,Dt.Z)(He,["_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"])),_.createElement(En,Object.assign({htmlFor:Me},te,{requiredMark:tn,required:In!=null?In:be,prefixCls:Nn})),_.createElement(Ce,Object.assign({},te,ne,{errors:yn,warnings:bn,prefixCls:Nn,status:Or,help:qe,marginBottom:ir,onErrorVisibleChanged:le}),_.createElement(I.qI.Provider,{value:$e},_.createElement(qn,{prefixCls:Nn,meta:ne,errors:ne.errors,warnings:ne.warnings,hasFeedback:dn,validateStatus:Or},hi)))),!!ir&&_.createElement("div",{className:`${Le}-margin-offset`,style:{marginBottom:-ir}}))}const ui="__SPLIT__",lr=null,Di=_.memo(te=>{let{children:Nn}=te;return Nn},(te,Nn)=>te.value===Nn.value&&te.update===Nn.update&&te.childProps.length===Nn.childProps.length&&te.childProps.every((Bn,oe)=>Bn===Nn.childProps[oe]));function D(te){return te!=null}function fr(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function er(te){const{name:Nn,noStyle:Bn,className:oe,dependencies:Ft,prefixCls:qe,shouldUpdate:xn,rules:Gn,children:kn,required:ne,label:dn,messageVariables:Fn,trigger:hi="onChange",validateTrigger:Me,hidden:In,help:be}=te,{getPrefixCls:$e}=_.useContext(Pe.E_),{name:He}=_.useContext(I.q3),Le=k(kn),tn=typeof Le=="function",Je=_.useContext(I.qI),{validateTrigger:yn}=_.useContext(Ht.FieldContext),bn=Me!==void 0?Me:yn,di=D(Nn),Sn=$e("form",qe),[xi,ir]=Kt(Sn),Mi=_.useContext(Ht.ListContext),le=_.useRef(),[mr,Or]=St({}),[zr,Yr]=(0,fn.Z)(()=>fr()),dr=je=>{const nr=Mi==null?void 0:Mi.getKey(je.name);if(Yr(je.destroy?fr():je,!0),Bn&&be!==!1&&Je){let Co=je.name;if(je.destroy)Co=le.current||Co;else if(nr!==void 0){const[Br,rs]=nr;Co=[Br].concat((0,y.Z)(rs)),le.current=Co}Je(je,Co)}},Er=(je,nr)=>{Or(Co=>{const Br=Object.assign({},Co),yo=[].concat((0,y.Z)(je.name.slice(0,-1)),(0,y.Z)(nr)).join(ui);return je.destroy?delete Br[yo]:Br[yo]=je,Br})},[Pi,pi]=_.useMemo(()=>{const je=(0,y.Z)(zr.errors),nr=(0,y.Z)(zr.warnings);return Object.values(mr).forEach(Co=>{je.push.apply(je,(0,y.Z)(Co.errors||[])),nr.push.apply(nr,(0,y.Z)(Co.warnings||[]))}),[je,nr]},[mr,zr.errors,zr.warnings]),ur=fe();function Re(je,nr,Co){return Bn&&!In?_.createElement(qn,{prefixCls:Sn,hasFeedback:te.hasFeedback,validateStatus:te.validateStatus,meta:zr,errors:Pi,warnings:pi,noStyle:!0},je):_.createElement(Ji,Object.assign({key:"row"},te,{className:O()(oe,ir),prefixCls:Sn,fieldId:nr,isRequired:Co,errors:Pi,warnings:pi,meta:zr,onSubItemMetaChange:Er}),je)}if(!di&&!tn&&!Ft)return xi(Re(Le));let Rr={};return typeof dn=="string"?Rr.label=dn:Nn&&(Rr.label=String(Nn)),Fn&&(Rr=Object.assign(Object.assign({},Rr),Fn)),xi(_.createElement(Ht.Field,Object.assign({},te,{messageVariables:Rr,trigger:hi,validateTrigger:bn,onMetaChange:dr}),(je,nr,Co)=>{const Br=it(Nn).length&&nr?nr.name:[],rs=Te(Br,He),yo=ne!==void 0?ne:!!(Gn&&Gn.some(tt=>{if(tt&&typeof tt=="object"&&tt.required&&!tt.warningOnly)return!0;if(typeof tt=="function"){const Pn=tt(Co);return Pn&&Pn.required&&!Pn.warningOnly}return!1})),ai=Object.assign({},je);let W=null;if(Array.isArray(Le)&&di)W=Le;else if(!(tn&&(!(xn||Ft)||di))){if(!(Ft&&!tn&&!di))if((0,ct.l$)(Le)){const tt=Object.assign(Object.assign({},Le.props),ai);if(tt.id||(tt.id=rs),be||Pi.length>0||pi.length>0||te.extra){const $=[];(be||Pi.length>0)&&$.push(`${rs}_help`),te.extra&&$.push(`${rs}_extra`),tt["aria-describedby"]=$.join(" ")}Pi.length>0&&(tt["aria-invalid"]="true"),yo&&(tt["aria-required"]="true"),(0,hn.Yr)(Le)&&(tt.ref=ur(Br,Le)),new Set([].concat((0,y.Z)(it(hi)),(0,y.Z)(it(bn)))).forEach($=>{tt[$]=function(){for(var Wi,bi,qi,go,Ui,Xr=arguments.length,$i=new Array(Xr),Vi=0;Vi<Xr;Vi++)$i[Vi]=arguments[Vi];(qi=ai[$])===null||qi===void 0||(Wi=qi).call.apply(Wi,[ai].concat($i)),(Ui=(go=Le.props)[$])===null||Ui===void 0||(bi=Ui).call.apply(bi,[go].concat($i))}});const pt=[tt["aria-required"],tt["aria-invalid"],tt["aria-describedby"]];W=_.createElement(Di,{value:ai[te.valuePropName||"value"],update:Le,childProps:pt},(0,ct.Tm)(Le,tt))}else tn&&(xn||Ft)&&!di?W=Le(Co):W=Le}return Re(W,rs,yo)}))}const Gr=er;Gr.useStatus=G;var Zr=Gr,mo=function(te,Nn){var Bn={};for(var oe in te)Object.prototype.hasOwnProperty.call(te,oe)&&Nn.indexOf(oe)<0&&(Bn[oe]=te[oe]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ft=0,oe=Object.getOwnPropertySymbols(te);Ft<oe.length;Ft++)Nn.indexOf(oe[Ft])<0&&Object.prototype.propertyIsEnumerable.call(te,oe[Ft])&&(Bn[oe[Ft]]=te[oe[Ft]]);return Bn},No=te=>{var{prefixCls:Nn,children:Bn}=te,oe=mo(te,["prefixCls","children"]);const{getPrefixCls:Ft}=_.useContext(Pe.E_),qe=Ft("form",Nn),xn=_.useMemo(()=>({prefixCls:qe,status:"error"}),[qe]);return _.createElement(Ht.List,Object.assign({},oe),(Gn,kn,ne)=>_.createElement(I.Rk.Provider,{value:xn},Bn(Gn.map(dn=>Object.assign(Object.assign({},dn),{fieldKey:dn.key})),kn,{errors:ne.errors,warnings:ne.warnings})))};function Ir(){const{form:te}=(0,_.useContext)(I.q3);return te}const Gi=$n;Gi.Item=Zr,Gi.List=No,Gi.ErrorList=ae,Gi.useForm=en,Gi.useFormInstance=Ir,Gi.useWatch=Ht.useWatch,Gi.Provider=I.RV,Gi.create=()=>{};var Jn=Gi},8628:function(V,w,h){"use strict";var y=h(59301),N=h(34280),O=h(56762),B=h(69507);function _(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const I=(0,y.useRef)({}),dt=(0,O.Z)(),rt=(0,B.ZP)();return(0,N.Z)(()=>{const Q=rt.subscribe(kt=>{I.current=kt,K&&dt()});return()=>rt.unsubscribe(Q)},[]),I.current}w.Z=_},9432:function(V,w,h){"use strict";h.d(w,{Z:function(){return It},n:function(){return Mt}});var y=h(19248),N=h(92310),O=h.n(N),B=h(93681),_=h(8654),K=h(59301),I=h(19080),dt=h(36355),rt=h(1684),Q=h(19716),kt=h(32441),Y=h(33234),Yt=h(59412),At=h(9937);function vt($t){return!!($t.prefix||$t.suffix||$t.allowClear)}var Tt=function($t,Nt){var Ut={};for(var et in $t)Object.prototype.hasOwnProperty.call($t,et)&&Nt.indexOf(et)<0&&(Ut[et]=$t[et]);if($t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,et=Object.getOwnPropertySymbols($t);Rt<et.length;Rt++)Nt.indexOf(et[Rt])<0&&Object.prototype.propertyIsEnumerable.call($t,et[Rt])&&(Ut[et[Rt]]=$t[et[Rt]]);return Ut};function Mt($t,Nt){if(!$t)return;$t.focus(Nt);const{cursor:Ut}=Nt||{};if(Ut){const et=$t.value.length;switch(Ut){case"start":$t.setSelectionRange(0,0);break;case"end":$t.setSelectionRange(et,et);break;default:$t.setSelectionRange(0,et);break}}}var It=(0,K.forwardRef)(($t,Nt)=>{var Ut;const{prefixCls:et,bordered:Rt=!0,status:Lt,size:Kt,disabled:Qt,onBlur:ie,onFocus:yt,suffix:ae,allowClear:Ht,addonAfter:Pe,addonBefore:ge,className:we,style:pe,styles:ln,rootClassName:zt,onChange:nt,classNames:it}=$t,Te=Tt($t,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Ae,direction:de,input:en}=K.useContext(dt.E_),vn=Ae("input",et),Xn=(0,K.useRef)(null),[gn,_n]=(0,At.ZP)(vn),{compactSize:$n,compactItemClassnames:fn}=(0,Y.ri)(vn,de),hn=(0,Q.Z)(Ge=>{var Ke;return(Ke=Kt!=null?Kt:$n)!==null&&Ke!==void 0?Ke:Ge}),ct=K.useContext(rt.Z),L=Qt!=null?Qt:ct,{status:k,hasFeedback:z,feedbackIcon:G}=(0,K.useContext)(kt.aM),T=(0,I.F)(k,Lt),St=vt($t)||!!z,fe=(0,K.useRef)(St);(0,K.useEffect)(()=>{var Ge;St&&fe.current,fe.current=St},[St]);const Ct=(0,Yt.Z)(Xn,!0),xt=Ge=>{Ct(),ie==null||ie(Ge)},Dt=Ge=>{Ct(),yt==null||yt(Ge)},qt=Ge=>{Ct(),nt==null||nt(Ge)},_t=(z||ae)&&K.createElement(K.Fragment,null,ae,z&&G);let ve;return typeof Ht=="object"&&(Ht!=null&&Ht.clearIcon)?ve=Ht:Ht&&(ve={clearIcon:K.createElement(y.Z,null)}),gn(K.createElement(B.default,Object.assign({ref:(0,_.sQ)(Nt,Xn),prefixCls:vn,autoComplete:en==null?void 0:en.autoComplete},Te,{disabled:L,onBlur:xt,onFocus:Dt,style:Object.assign(Object.assign({},en==null?void 0:en.style),pe),styles:Object.assign(Object.assign({},en==null?void 0:en.styles),ln),suffix:_t,allowClear:ve,className:O()(we,zt,fn,en==null?void 0:en.className),onChange:qt,addonAfter:Pe&&K.createElement(Y.BR,null,K.createElement(kt.Ux,{override:!0,status:!0},Pe)),addonBefore:ge&&K.createElement(Y.BR,null,K.createElement(kt.Ux,{override:!0,status:!0},ge)),classNames:Object.assign(Object.assign(Object.assign({},it),en==null?void 0:en.classNames),{input:O()({[`${vn}-sm`]:hn==="small",[`${vn}-lg`]:hn==="large",[`${vn}-rtl`]:de==="rtl",[`${vn}-borderless`]:!Rt},!St&&(0,I.Z)(vn,T),it==null?void 0:it.input,(Ut=en==null?void 0:en.classNames)===null||Ut===void 0?void 0:Ut.input,_n)}),classes:{affixWrapper:O()({[`${vn}-affix-wrapper-sm`]:hn==="small",[`${vn}-affix-wrapper-lg`]:hn==="large",[`${vn}-affix-wrapper-rtl`]:de==="rtl",[`${vn}-affix-wrapper-borderless`]:!Rt},(0,I.Z)(`${vn}-affix-wrapper`,T,z),_n),wrapper:O()({[`${vn}-group-rtl`]:de==="rtl"},_n),group:O()({[`${vn}-group-wrapper-sm`]:hn==="small",[`${vn}-group-wrapper-lg`]:hn==="large",[`${vn}-group-wrapper-rtl`]:de==="rtl",[`${vn}-group-wrapper-disabled`]:L},(0,I.Z)(`${vn}-group-wrapper`,T,z),_n)}})))})},1643:function(V,w,h){"use strict";var y=h(19248),N=h(92310),O=h.n(N),B=h(9296),_=h(59301),K=h(19080),I=h(36355),dt=h(1684),rt=h(19716),Q=h(32441),kt=h(9432),Y=h(9937),Yt=function(vt,Tt){var Mt={};for(var ft in vt)Object.prototype.hasOwnProperty.call(vt,ft)&&Tt.indexOf(ft)<0&&(Mt[ft]=vt[ft]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,ft=Object.getOwnPropertySymbols(vt);It<ft.length;It++)Tt.indexOf(ft[It])<0&&Object.prototype.propertyIsEnumerable.call(vt,ft[It])&&(Mt[ft[It]]=vt[ft[It]]);return Mt};const At=(0,_.forwardRef)((vt,Tt)=>{const{prefixCls:Mt,bordered:ft=!0,size:It,disabled:$t,status:Nt,allowClear:Ut,showCount:et,classNames:Rt,rootClassName:Lt,className:Kt}=vt,Qt=Yt(vt,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:ie,direction:yt}=_.useContext(I.E_),ae=(0,rt.Z)(It),Ht=_.useContext(dt.Z),Pe=$t!=null?$t:Ht,{status:ge,hasFeedback:we,feedbackIcon:pe}=_.useContext(Q.aM),ln=(0,K.F)(ge,Nt),zt=_.useRef(null);_.useImperativeHandle(Tt,()=>{var de;return{resizableTextArea:(de=zt.current)===null||de===void 0?void 0:de.resizableTextArea,focus:en=>{var vn,Xn;(0,kt.n)((Xn=(vn=zt.current)===null||vn===void 0?void 0:vn.resizableTextArea)===null||Xn===void 0?void 0:Xn.textArea,en)},blur:()=>{var en;return(en=zt.current)===null||en===void 0?void 0:en.blur()}}});const nt=ie("input",Mt);let it;typeof Ut=="object"&&(Ut!=null&&Ut.clearIcon)?it=Ut:Ut&&(it={clearIcon:_.createElement(y.Z,null)});const[Te,Ae]=(0,Y.ZP)(nt);return Te(_.createElement(B.default,Object.assign({},Qt,{disabled:Pe,allowClear:it,className:O()(Kt,Lt),classes:{affixWrapper:O()(`${nt}-textarea-affix-wrapper`,{[`${nt}-affix-wrapper-rtl`]:yt==="rtl",[`${nt}-affix-wrapper-borderless`]:!ft,[`${nt}-affix-wrapper-sm`]:ae==="small",[`${nt}-affix-wrapper-lg`]:ae==="large",[`${nt}-textarea-show-count`]:et},(0,K.Z)(`${nt}-affix-wrapper`,ln),Ae)},classNames:Object.assign(Object.assign({},Rt),{textarea:O()({[`${nt}-borderless`]:!ft,[`${nt}-sm`]:ae==="small",[`${nt}-lg`]:ae==="large"},(0,K.Z)(nt,ln),Ae,Rt==null?void 0:Rt.textarea)}),prefixCls:nt,suffix:we&&_.createElement("span",{className:`${nt}-textarea-suffix`},pe),showCount:et,ref:zt})))});w.Z=At},59412:function(V,w,h){"use strict";h.d(w,{Z:function(){return N}});var y=h(59301);function N(O,B){const _=(0,y.useRef)([]),K=()=>{_.current.push(setTimeout(()=>{var I,dt,rt,Q;!((I=O.current)===null||I===void 0)&&I.input&&((dt=O.current)===null||dt===void 0?void 0:dt.input.getAttribute("type"))==="password"&&(!((rt=O.current)===null||rt===void 0)&&rt.input.hasAttribute("value"))&&((Q=O.current)===null||Q===void 0||Q.input.removeAttribute("value"))}))};return(0,y.useEffect)(()=>(B&&K(),()=>_.current.forEach(I=>{I&&clearTimeout(I)})),[]),K}},92832:function(V,w,h){"use strict";h.d(w,{default:function(){return ae}});var y=h(92310),N=h.n(y),O=h(59301),B=h(36355),_=h(32441),K=h(9937),dt=Ht=>{const{getPrefixCls:Pe,direction:ge}=(0,O.useContext)(B.E_),{prefixCls:we,className:pe}=Ht,ln=Pe("input-group",we),zt=Pe("input"),[nt,it]=(0,K.ZP)(zt),Te=N()(ln,{[`${ln}-lg`]:Ht.size==="large",[`${ln}-sm`]:Ht.size==="small",[`${ln}-compact`]:Ht.compact,[`${ln}-rtl`]:ge==="rtl"},it,pe),Ae=(0,O.useContext)(_.aM),de=(0,O.useMemo)(()=>Object.assign(Object.assign({},Ae),{isFormItemInput:!1}),[Ae]);return nt(O.createElement("span",{className:Te,style:Ht.style,onMouseEnter:Ht.onMouseEnter,onMouseLeave:Ht.onMouseLeave,onFocus:Ht.onFocus,onBlur:Ht.onBlur},O.createElement(_.aM.Provider,{value:de},Ht.children)))},rt=h(9432),Q=h(73331),kt=h(15277),Y=h(2738),Yt=h(8654),At=h(59412),vt=function(Ht,Pe){var ge={};for(var we in Ht)Object.prototype.hasOwnProperty.call(Ht,we)&&Pe.indexOf(we)<0&&(ge[we]=Ht[we]);if(Ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,we=Object.getOwnPropertySymbols(Ht);pe<we.length;pe++)Pe.indexOf(we[pe])<0&&Object.prototype.propertyIsEnumerable.call(Ht,we[pe])&&(ge[we[pe]]=Ht[we[pe]]);return ge};const Tt=Ht=>Ht?O.createElement(kt.Z,null):O.createElement(Q.Z,null),Mt={click:"onClick",hover:"onMouseOver"};var It=O.forwardRef((Ht,Pe)=>{const{visibilityToggle:ge=!0}=Ht,we=typeof ge=="object"&&ge.visible!==void 0,[pe,ln]=(0,O.useState)(()=>we?ge.visible:!1),zt=(0,O.useRef)(null);O.useEffect(()=>{we&&ln(ge.visible)},[we,ge]);const nt=(0,At.Z)(zt),it=()=>{const{disabled:L}=Ht;L||(pe&&nt(),ln(k=>{var z;const G=!k;return typeof ge=="object"&&((z=ge.onVisibleChange)===null||z===void 0||z.call(ge,G)),G}))},Te=L=>{const{action:k="click",iconRender:z=Tt}=Ht,G=Mt[k]||"",T=z(pe),St={[G]:it,className:`${L}-icon`,key:"passwordIcon",onMouseDown:fe=>{fe.preventDefault()},onMouseUp:fe=>{fe.preventDefault()}};return O.cloneElement(O.isValidElement(T)?T:O.createElement("span",null,T),St)},{className:Ae,prefixCls:de,inputPrefixCls:en,size:vn}=Ht,Xn=vt(Ht,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:gn}=O.useContext(B.E_),_n=gn("input",en),$n=gn("input-password",de),fn=ge&&Te($n),hn=N()($n,Ae,{[`${$n}-${vn}`]:!!vn}),ct=Object.assign(Object.assign({},(0,Y.Z)(Xn,["suffix","iconRender","visibilityToggle"])),{type:pe?"text":"password",className:hn,prefixCls:_n,suffix:fn});return vn&&(ct.size=vn),O.createElement(rt.Z,Object.assign({ref:(0,Yt.sQ)(Pe,zt)},ct))}),$t=h(47472),Nt=h(92343),Ut=h(3113),et=h(19716),Rt=h(33234),Lt=function(Ht,Pe){var ge={};for(var we in Ht)Object.prototype.hasOwnProperty.call(Ht,we)&&Pe.indexOf(we)<0&&(ge[we]=Ht[we]);if(Ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,we=Object.getOwnPropertySymbols(Ht);pe<we.length;pe++)Pe.indexOf(we[pe])<0&&Object.prototype.propertyIsEnumerable.call(Ht,we[pe])&&(ge[we[pe]]=Ht[we[pe]]);return ge},Qt=O.forwardRef((Ht,Pe)=>{const{prefixCls:ge,inputPrefixCls:we,className:pe,size:ln,suffix:zt,enterButton:nt=!1,addonAfter:it,loading:Te,disabled:Ae,onSearch:de,onChange:en,onCompositionStart:vn,onCompositionEnd:Xn}=Ht,gn=Lt(Ht,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:_n,direction:$n}=O.useContext(B.E_),fn=O.useRef(!1),hn=_n("input-search",ge),ct=_n("input",we),{compactSize:L}=(0,Rt.ri)(hn,$n),k=(0,et.Z)(Ce=>{var Ve;return(Ve=ln!=null?ln:L)!==null&&Ve!==void 0?Ve:Ce}),z=O.useRef(null),G=Ce=>{Ce&&Ce.target&&Ce.type==="click"&&de&&de(Ce.target.value,Ce,{source:"clear"}),en&&en(Ce)},T=Ce=>{var Ve;document.activeElement===((Ve=z.current)===null||Ve===void 0?void 0:Ve.input)&&Ce.preventDefault()},St=Ce=>{var Ve,Qe;de&&de((Qe=(Ve=z.current)===null||Ve===void 0?void 0:Ve.input)===null||Qe===void 0?void 0:Qe.value,Ce,{source:"input"})},fe=Ce=>{fn.current||Te||St(Ce)},Ct=typeof nt=="boolean"?O.createElement($t.Z,null):null,xt=`${hn}-button`;let Dt;const qt=nt||{},_t=qt.type&&qt.type.__ANT_BUTTON===!0;_t||qt.type==="button"?Dt=(0,Nt.Tm)(qt,Object.assign({onMouseDown:T,onClick:Ce=>{var Ve,Qe;(Qe=(Ve=qt==null?void 0:qt.props)===null||Ve===void 0?void 0:Ve.onClick)===null||Qe===void 0||Qe.call(Ve,Ce),St(Ce)},key:"enterButton"},_t?{className:xt,size:k}:{})):Dt=O.createElement(Ut.ZP,{className:xt,type:nt?"primary":void 0,size:k,disabled:Ae,key:"enterButton",onMouseDown:T,onClick:St,loading:Te,icon:Ct},nt),it&&(Dt=[Dt,(0,Nt.Tm)(it,{key:"addonAfter"})]);const ve=N()(hn,{[`${hn}-rtl`]:$n==="rtl",[`${hn}-${k}`]:!!k,[`${hn}-with-button`]:!!nt},pe),Ge=Ce=>{fn.current=!0,vn==null||vn(Ce)},Ke=Ce=>{fn.current=!1,Xn==null||Xn(Ce)};return O.createElement(rt.Z,Object.assign({ref:(0,Yt.sQ)(z,Pe),onPressEnter:fe},gn,{size:k,onCompositionStart:Ge,onCompositionEnd:Ke,prefixCls:ct,addonAfter:Dt,suffix:zt,onChange:G,className:ve,disabled:Ae}))}),ie=h(1643);const yt=rt.Z;yt.Group=dt,yt.Search=Qt,yt.TextArea=ie.Z,yt.Password=It;var ae=yt},45818:function(V,w,h){"use strict";h.d(w,{D:function(){return $t},Z:function(){return et}});var y=h(16378),N=h(59301),O={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"},B=O,_=h(7657),K=function(Lt,Kt){return N.createElement(_.Z,(0,y.Z)({},Lt,{ref:Kt,icon:B}))},I=N.forwardRef(K),dt=I,rt=h(33853),Q=h(38819),kt=h(92310),Y=h.n(kt),Yt=h(2738),vt=Rt=>!isNaN(parseFloat(Rt))&&isFinite(Rt),Tt=h(36355),Mt=h(84966),ft=function(Rt,Lt){var Kt={};for(var Qt in Rt)Object.prototype.hasOwnProperty.call(Rt,Qt)&&Lt.indexOf(Qt)<0&&(Kt[Qt]=Rt[Qt]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,Qt=Object.getOwnPropertySymbols(Rt);ie<Qt.length;ie++)Lt.indexOf(Qt[ie])<0&&Object.prototype.propertyIsEnumerable.call(Rt,Qt[ie])&&(Kt[Qt[ie]]=Rt[Qt[ie]]);return Kt};const It={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},$t=N.createContext({}),Nt=(()=>{let Rt=0;return function(){let Lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Rt+=1,`${Lt}${Rt}`}})();var et=N.forwardRef((Rt,Lt)=>{const{prefixCls:Kt,className:Qt,trigger:ie,children:yt,defaultCollapsed:ae=!1,theme:Ht="dark",style:Pe={},collapsible:ge=!1,reverseArrow:we=!1,width:pe=200,collapsedWidth:ln=80,zeroWidthTriggerStyle:zt,breakpoint:nt,onCollapse:it,onBreakpoint:Te}=Rt,Ae=ft(Rt,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:de}=(0,N.useContext)(Mt.Gs),[en,vn]=(0,N.useState)("collapsed"in Rt?Rt.collapsed:ae),[Xn,gn]=(0,N.useState)(!1);(0,N.useEffect)(()=>{"collapsed"in Rt&&vn(Rt.collapsed)},[Rt.collapsed]);const _n=(k,z)=>{"collapsed"in Rt||vn(k),it==null||it(k,z)},$n=(0,N.useRef)();$n.current=k=>{gn(k.matches),Te==null||Te(k.matches),en!==k.matches&&_n(k.matches,"responsive")},(0,N.useEffect)(()=>{function k(G){return $n.current(G)}let z;if(typeof window!="undefined"){const{matchMedia:G}=window;if(G&&nt&&nt in It){z=G(`(max-width: ${It[nt]})`);try{z.addEventListener("change",k)}catch(T){z.addListener(k)}k(z)}}return()=>{try{z==null||z.removeEventListener("change",k)}catch(G){z==null||z.removeListener(k)}}},[nt]),(0,N.useEffect)(()=>{const k=Nt("ant-sider-");return de.addSider(k),()=>de.removeSider(k)},[]);const fn=()=>{_n(!en,"clickTrigger")},{getPrefixCls:hn}=(0,N.useContext)(Tt.E_),ct=()=>{const k=hn("layout-sider",Kt),z=(0,Yt.Z)(Ae,["collapsed"]),G=en?ln:pe,T=vt(G)?`${G}px`:String(G),St=parseFloat(String(ln||0))===0?N.createElement("span",{onClick:fn,className:Y()(`${k}-zero-width-trigger`,`${k}-zero-width-trigger-${we?"right":"left"}`),style:zt},ie||N.createElement(dt,null)):null,xt={expanded:we?N.createElement(Q.Z,null):N.createElement(rt.Z,null),collapsed:we?N.createElement(rt.Z,null):N.createElement(Q.Z,null)}[en?"collapsed":"expanded"],Dt=ie!==null?St||N.createElement("div",{className:`${k}-trigger`,onClick:fn,style:{width:T}},ie||xt):null,qt=Object.assign(Object.assign({},Pe),{flex:`0 0 ${T}`,maxWidth:T,minWidth:T,width:T}),_t=Y()(k,`${k}-${Ht}`,{[`${k}-collapsed`]:!!en,[`${k}-has-trigger`]:ge&&ie!==null&&!St,[`${k}-below`]:!!Xn,[`${k}-zero-width`]:parseFloat(T)===0},Qt);return N.createElement("aside",Object.assign({className:_t},z,{style:qt,ref:Lt}),N.createElement("div",{className:`${k}-children`},yt),ge||Xn&&St?Dt:null)},L=N.useMemo(()=>({siderCollapsed:en}),[en]);return N.createElement($t.Provider,{value:L},ct())})},84966:function(V,w,h){"use strict";h.d(w,{VY:function(){return $t},$_:function(){return It},h4:function(){return ft},Gs:function(){return Yt},ZP:function(){return Nt}});var y=h(65093),N=h(92310),O=h.n(N),B=h(2738),_=h(59301),K=h(36355),I=h(83116),rt=Ut=>{const{componentCls:et,bodyBg:Rt,lightSiderBg:Lt,lightTriggerBg:Kt,lightTriggerColor:Qt}=Ut;return{[`${et}-sider-light`]:{background:Lt,[`${et}-sider-trigger`]:{color:Qt,background:Kt},[`${et}-sider-zero-width-trigger`]:{color:Qt,background:Kt,border:`1px solid ${Rt}`,borderInlineStart:0}}}};const Q=Ut=>{const{antCls:et,componentCls:Rt,colorText:Lt,triggerColor:Kt,footerBg:Qt,triggerBg:ie,headerHeight:yt,headerPadding:ae,headerColor:Ht,footerPadding:Pe,triggerHeight:ge,zeroTriggerHeight:we,zeroTriggerWidth:pe,motionDurationMid:ln,motionDurationSlow:zt,fontSize:nt,borderRadius:it,bodyBg:Te,headerBg:Ae,siderBg:de}=Ut;return{[Rt]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Te,"&, *":{boxSizing:"border-box"},[`&${Rt}-has-sider`]:{flexDirection:"row",[`> ${Rt}, > ${Rt}-content`]:{width:0}},[`${Rt}-header, &${Rt}-footer`]:{flex:"0 0 auto"},[`${Rt}-sider`]:{position:"relative",minWidth:0,background:de,transition:`all ${ln}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${et}-menu${et}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:ge},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:ge,color:Kt,lineHeight:`${ge}px`,textAlign:"center",background:ie,cursor:"pointer",transition:`all ${ln}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:yt,insetInlineEnd:-pe,zIndex:1,width:pe,height:we,color:Kt,fontSize:Ut.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:de,borderStartStartRadius:0,borderStartEndRadius:it,borderEndEndRadius:it,borderEndStartRadius:0,cursor:"pointer",transition:`background ${zt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${zt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-pe,borderStartStartRadius:it,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:it}}}}},rt(Ut)),{"&-rtl":{direction:"rtl"}}),[`${Rt}-header`]:{height:yt,padding:ae,color:Ht,lineHeight:`${yt}px`,background:Ae,[`${et}-menu`]:{lineHeight:"inherit"}},[`${Rt}-footer`]:{padding:Pe,color:Lt,fontSize:nt,background:Qt},[`${Rt}-content`]:{flex:"auto",minHeight:0}}};var kt=(0,I.Z)("Layout",Ut=>[Q(Ut)],Ut=>{const{colorBgLayout:et,controlHeight:Rt,controlHeightLG:Lt,colorText:Kt,controlHeightSM:Qt,marginXXS:ie,colorTextLightSolid:yt,colorBgContainer:ae}=Ut,Ht=Lt*1.25;return{colorBgHeader:"#001529",colorBgBody:et,colorBgTrigger:"#002140",bodyBg:et,headerBg:"#001529",headerHeight:Rt*2,headerPadding:`0 ${Ht}px`,headerColor:Kt,footerPadding:`${Qt}px ${Ht}px`,footerBg:et,siderBg:"#001529",triggerHeight:Lt+ie*2,triggerBg:"#002140",triggerColor:yt,zeroTriggerWidth:Lt,zeroTriggerHeight:Lt,lightSiderBg:ae,lightTriggerBg:ae,lightTriggerColor:Kt}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Y=function(Ut,et){var Rt={};for(var Lt in Ut)Object.prototype.hasOwnProperty.call(Ut,Lt)&&et.indexOf(Lt)<0&&(Rt[Lt]=Ut[Lt]);if(Ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Kt=0,Lt=Object.getOwnPropertySymbols(Ut);Kt<Lt.length;Kt++)et.indexOf(Lt[Kt])<0&&Object.prototype.propertyIsEnumerable.call(Ut,Lt[Kt])&&(Rt[Lt[Kt]]=Ut[Lt[Kt]]);return Rt};const Yt=_.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function At(Ut){let{suffixCls:et,tagName:Rt,displayName:Lt}=Ut;return Kt=>_.forwardRef((ie,yt)=>_.createElement(Kt,Object.assign({ref:yt,suffixCls:et,tagName:Rt},ie)))}const vt=_.forwardRef((Ut,et)=>{const{prefixCls:Rt,suffixCls:Lt,className:Kt,tagName:Qt}=Ut,ie=Y(Ut,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:yt}=_.useContext(K.E_),ae=yt("layout",Rt),[Ht,Pe]=kt(ae),ge=Lt?`${ae}-${Lt}`:ae;return Ht(_.createElement(Qt,Object.assign({className:O()(Rt||ge,Kt,Pe),ref:et},ie)))}),Tt=_.forwardRef((Ut,et)=>{const{direction:Rt}=_.useContext(K.E_),[Lt,Kt]=_.useState([]),{prefixCls:Qt,className:ie,rootClassName:yt,children:ae,hasSider:Ht,tagName:Pe,style:ge}=Ut,we=Y(Ut,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),pe=(0,B.Z)(we,["suffixCls"]),{getPrefixCls:ln,layout:zt}=_.useContext(K.E_),nt=ln("layout",Qt),[it,Te]=kt(nt),Ae=O()(nt,{[`${nt}-has-sider`]:typeof Ht=="boolean"?Ht:Lt.length>0,[`${nt}-rtl`]:Rt==="rtl"},zt==null?void 0:zt.className,ie,yt,Te),de=_.useMemo(()=>({siderHook:{addSider:en=>{Kt(vn=>[].concat((0,y.Z)(vn),[en]))},removeSider:en=>{Kt(vn=>vn.filter(Xn=>Xn!==en))}}}),[]);return it(_.createElement(Yt.Provider,{value:de},_.createElement(Pe,Object.assign({ref:et,className:Ae,style:Object.assign(Object.assign({},zt==null?void 0:zt.style),ge)},pe),ae)))}),Mt=At({tagName:"div",displayName:"Layout"})(Tt),ft=At({suffixCls:"header",tagName:"header",displayName:"Header"})(vt),It=At({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(vt),$t=At({suffixCls:"content",tagName:"main",displayName:"Content"})(vt);var Nt=Mt},40875:function(V,w,h){"use strict";h.d(w,{J:function(){return K}});var y=h(59301),N=h(33234),O=h(70425),B=function(I,dt){var rt={};for(var Q in I)Object.prototype.hasOwnProperty.call(I,Q)&&dt.indexOf(Q)<0&&(rt[Q]=I[Q]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,Q=Object.getOwnPropertySymbols(I);kt<Q.length;kt++)dt.indexOf(Q[kt])<0&&Object.prototype.propertyIsEnumerable.call(I,Q[kt])&&(rt[Q[kt]]=I[Q[kt]]);return rt};const _=y.createContext(null),K=y.forwardRef((I,dt)=>{const{children:rt}=I,Q=B(I,["children"]),kt=y.useContext(_),Y=y.useMemo(()=>Object.assign(Object.assign({},kt),Q),[kt,Q.prefixCls,Q.mode,Q.selectable]);return y.createElement(_.Provider,{value:Y},y.createElement(N.BR,null,(0,O.supportNodeRef)(rt)?y.cloneElement(rt,{ref:dt}):rt))});w.Z=_},20834:function(V,w,h){"use strict";h.d(w,{default:function(){return L}});var y=h(15285),N=h(59301),O=h(45818),B=h(92310),_=h.n(B),K=h(36355),I=function(k,z){var G={};for(var T in k)Object.prototype.hasOwnProperty.call(k,T)&&z.indexOf(T)<0&&(G[T]=k[T]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,T=Object.getOwnPropertySymbols(k);St<T.length;St++)z.indexOf(T[St])<0&&Object.prototype.propertyIsEnumerable.call(k,T[St])&&(G[T[St]]=k[T[St]]);return G},rt=k=>{const{prefixCls:z,className:G,dashed:T}=k,St=I(k,["prefixCls","className","dashed"]),{getPrefixCls:fe}=N.useContext(K.E_),Ct=fe("menu",z),xt=_()({[`${Ct}-item-divider-dashed`]:!!T},G);return N.createElement(y.iz,Object.assign({className:xt},St))},Q=h(11592),kt=h(2738),Y=h(6848),Yt=h(92343),vt=(0,N.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Mt=k=>{var z;const{className:G,children:T,icon:St,title:fe,danger:Ct}=k,{prefixCls:xt,firstLevel:Dt,direction:qt,disableMenuItemTitleTooltip:_t,inlineCollapsed:ve}=N.useContext(vt),Ge=xe=>{const ze=N.createElement("span",{className:`${xt}-title-content`},T);return(!St||(0,Yt.l$)(T)&&T.type==="span")&&T&&xe&&Dt&&typeof T=="string"?N.createElement("div",{className:`${xt}-inline-collapsed-noicon`},T.charAt(0)):ze},{siderCollapsed:Ke}=N.useContext(O.D);let Ce=fe;typeof fe=="undefined"?Ce=Dt?T:"":fe===!1&&(Ce="");const Ve={title:Ce};!Ke&&!ve&&(Ve.title=null,Ve.open=!1);const Qe=(0,Q.Z)(T).length;let Bt=N.createElement(y.ck,Object.assign({},(0,kt.Z)(k,["title","icon","danger"]),{className:_()({[`${xt}-item-danger`]:Ct,[`${xt}-item-only-child`]:(St?Qe+1:Qe)===1},G),title:typeof fe=="string"?fe:void 0}),(0,Yt.Tm)(St,{className:_()((0,Yt.l$)(St)?(z=St.props)===null||z===void 0?void 0:z.className:"",`${xt}-item-icon`)}),Ge(ve));return _t||(Bt=N.createElement(Y.Z,Object.assign({},Ve,{placement:qt==="rtl"?"left":"right",overlayClassName:`${xt}-inline-collapsed-tooltip`}),Bt)),Bt},It=k=>{var z;const{popupClassName:G,icon:T,title:St,theme:fe}=k,Ct=N.useContext(vt),{prefixCls:xt,inlineCollapsed:Dt,theme:qt}=Ct,_t=(0,y.Xl)();let ve;if(!T)ve=Dt&&!_t.length&&St&&typeof St=="string"?N.createElement("div",{className:`${xt}-inline-collapsed-noicon`},St.charAt(0)):N.createElement("span",{className:`${xt}-title-content`},St);else{const Ke=(0,Yt.l$)(St)&&St.type==="span";ve=N.createElement(N.Fragment,null,(0,Yt.Tm)(T,{className:_()((0,Yt.l$)(T)?(z=T.props)===null||z===void 0?void 0:z.className:"",`${xt}-item-icon`)}),Ke?St:N.createElement("span",{className:`${xt}-title-content`},St))}const Ge=N.useMemo(()=>Object.assign(Object.assign({},Ct),{firstLevel:!1}),[Ct]);return N.createElement(vt.Provider,{value:Ge},N.createElement(y.Wd,Object.assign({},(0,kt.Z)(k,["icon"]),{title:ve,popupClassName:_()(xt,G,`${xt}-${fe||qt}`)})))},$t=h(18785),Nt=h(70425),Ut=h(62892),et=h(40875),Rt=function(k,z){var G={};for(var T in k)Object.prototype.hasOwnProperty.call(k,T)&&z.indexOf(T)<0&&(G[T]=k[T]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,T=Object.getOwnPropertySymbols(k);St<T.length;St++)z.indexOf(T[St])<0&&Object.prototype.propertyIsEnumerable.call(k,T[St])&&(G[T[St]]=k[T[St]]);return G};function Lt(k){return(k||[]).map((z,G)=>{if(z&&typeof z=="object"){const T=z,{label:St,children:fe,key:Ct,type:xt}=T,Dt=Rt(T,["label","children","key","type"]),qt=Ct!=null?Ct:`tmp-${G}`;return fe||xt==="group"?xt==="group"?N.createElement(y.BW,Object.assign({key:qt},Dt,{title:St}),Lt(fe)):N.createElement(It,Object.assign({key:qt},Dt,{title:St}),Lt(fe)):xt==="divider"?N.createElement(rt,Object.assign({key:qt},Dt)):N.createElement(Mt,Object.assign({key:qt},Dt),St)}return null}).filter(z=>z)}function Kt(k){return N.useMemo(()=>k&&Lt(k),[k])}var Qt=h(64993),ie=h(17313),yt=h(8378),ae=h(13826),Ht=h(29878),Pe=h(83116),ge=h(37613),pe=k=>{const{componentCls:z,motionDurationSlow:G,horizontalLineHeight:T,colorSplit:St,lineWidth:fe,lineType:Ct,itemPaddingInline:xt}=k;return{[`${z}-horizontal`]:{lineHeight:T,border:0,borderBottom:`${fe}px ${Ct} ${St}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${z}-item, ${z}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:xt},[`> ${z}-item:hover,
|
|
|
> ${z}-item-active,
|
|
|
> ${z}-submenu ${z}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${z}-item, ${z}-submenu-title`]:{transition:[`border-color ${G}`,`background ${G}`].join(",")},[`${z}-submenu-arrow`]:{display:"none"}}}},zt=k=>{let{componentCls:z,menuArrowOffset:G}=k;return{[`${z}-rtl`]:{direction:"rtl"},[`${z}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${z}-rtl${z}-vertical,
|
|
|
${z}-submenu-rtl ${z}-vertical`]:{[`${z}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${G})`},"&::after":{transform:`rotate(45deg) translateY(${G})`}}}}};const nt=k=>Object.assign({},(0,ie.oN)(k));var Te=(k,z)=>{const{componentCls:G,itemColor:T,itemSelectedColor:St,groupTitleColor:fe,itemBg:Ct,subMenuItemBg:xt,itemSelectedBg:Dt,activeBarHeight:qt,activeBarWidth:_t,activeBarBorderWidth:ve,motionDurationSlow:Ge,motionEaseInOut:Ke,motionEaseOut:Ce,itemPaddingInline:Ve,motionDurationMid:Qe,itemHoverColor:Bt,lineType:xe,colorSplit:ze,itemDisabledColor:Ne,dangerItemColor:Cn,dangerItemHoverColor:En,dangerItemSelectedColor:jn,dangerItemActiveBg:On,dangerItemSelectedBg:ci,itemHoverBg:Si,itemActiveBg:vi,menuSubMenuBg:qn,horizontalItemSelectedColor:an,horizontalItemSelectedBg:Ji,horizontalItemBorderRadius:ui,horizontalItemHoverBg:lr,popupBg:Di}=k;return{[`${G}-${z}, ${G}-${z} > ${G}`]:{color:T,background:Ct,[`&${G}-root:focus-visible`]:Object.assign({},nt(k)),[`${G}-item-group-title`]:{color:fe},[`${G}-submenu-selected`]:{[`> ${G}-submenu-title`]:{color:St}},[`${G}-item-disabled, ${G}-submenu-disabled`]:{color:`${Ne} !important`},[`${G}-item:not(${G}-item-selected):not(${G}-submenu-selected)`]:{[`&:hover, > ${G}-submenu-title:hover`]:{color:Bt}},[`&:not(${G}-horizontal)`]:{[`${G}-item:not(${G}-item-selected)`]:{"&:hover":{backgroundColor:Si},"&:active":{backgroundColor:vi}},[`${G}-submenu-title`]:{"&:hover":{backgroundColor:Si},"&:active":{backgroundColor:vi}}},[`${G}-item-danger`]:{color:Cn,[`&${G}-item:hover`]:{[`&:not(${G}-item-selected):not(${G}-submenu-selected)`]:{color:En}},[`&${G}-item:active`]:{background:On}},[`${G}-item a`]:{"&, &:hover":{color:"inherit"}},[`${G}-item-selected`]:{color:St,[`&${G}-item-danger`]:{color:jn},"a, a:hover":{color:"inherit"}},[`& ${G}-item-selected`]:{backgroundColor:Dt,[`&${G}-item-danger`]:{backgroundColor:ci}},[`${G}-item, ${G}-submenu-title`]:{[`&:not(${G}-item-disabled):focus-visible`]:Object.assign({},nt(k))},[`&${G}-submenu > ${G}`]:{backgroundColor:qn},[`&${G}-popup > ${G}`]:{backgroundColor:Di},[`&${G}-horizontal`]:Object.assign(Object.assign({},z==="dark"?{borderBottom:0}:{}),{[`> ${G}-item, > ${G}-submenu`]:{top:ve,marginTop:-ve,marginBottom:0,borderRadius:ui,"&::after":{position:"absolute",insetInline:Ve,bottom:0,borderBottom:`${qt}px solid transparent`,transition:`border-color ${Ge} ${Ke}`,content:'""'},"&:hover, &-active, &-open":{background:lr,"&::after":{borderBottomWidth:qt,borderBottomColor:an}},"&-selected":{color:an,backgroundColor:Ji,"&:hover":{backgroundColor:Ji},"&::after":{borderBottomWidth:qt,borderBottomColor:an}}}}),[`&${G}-root`]:{[`&${G}-inline, &${G}-vertical`]:{borderInlineEnd:`${ve}px ${xe} ${ze}`}},[`&${G}-inline`]:{[`${G}-sub${G}-inline`]:{background:xt},[`${G}-item, ${G}-submenu-title`]:ve&&_t?{width:`calc(100% + ${ve}px)`}:{},[`${G}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${_t}px solid ${St}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Qe} ${Ce}`,`opacity ${Qe} ${Ce}`].join(","),content:'""'},[`&${G}-item-danger`]:{"&::after":{borderInlineEndColor:jn}}},[`${G}-selected, ${G}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Qe} ${Ke}`,`opacity ${Qe} ${Ke}`].join(",")}}}}}};const Ae=k=>{const{componentCls:z,itemHeight:G,itemMarginInline:T,padding:St,menuArrowSize:fe,marginXS:Ct,itemMarginBlock:xt}=k,Dt=St+fe+Ct;return{[`${z}-item`]:{position:"relative",overflow:"hidden"},[`${z}-item, ${z}-submenu-title`]:{height:G,lineHeight:`${G}px`,paddingInline:St,overflow:"hidden",textOverflow:"ellipsis",marginInline:T,marginBlock:xt,width:`calc(100% - ${T*2}px)`},[`> ${z}-item,
|
|
|
> ${z}-submenu > ${z}-submenu-title`]:{height:G,lineHeight:`${G}px`},[`${z}-item-group-list ${z}-submenu-title,
|
|
|
${z}-submenu-title`]:{paddingInlineEnd:Dt}}};var en=k=>{const{componentCls:z,iconCls:G,itemHeight:T,colorTextLightSolid:St,dropdownWidth:fe,controlHeightLG:Ct,motionDurationMid:xt,motionEaseOut:Dt,paddingXL:qt,itemMarginInline:_t,fontSizeLG:ve,motionDurationSlow:Ge,paddingXS:Ke,boxShadowSecondary:Ce,collapsedWidth:Ve,collapsedIconSize:Qe}=k,Bt={height:T,lineHeight:`${T}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[z]:{"&-inline, &-vertical":Object.assign({[`&${z}-root`]:{boxShadow:"none"}},Ae(k))},[`${z}-submenu-popup`]:{[`${z}-vertical`]:Object.assign(Object.assign({},Ae(k)),{boxShadow:Ce})}},{[`${z}-submenu-popup ${z}-vertical${z}-sub`]:{minWidth:fe,maxHeight:`calc(100vh - ${Ct*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${z}-inline`]:{width:"100%",[`&${z}-root`]:{[`${z}-item, ${z}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Ge}`,`background ${Ge}`,`padding ${xt} ${Dt}`].join(","),[`> ${z}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${z}-sub${z}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${z}-submenu > ${z}-submenu-title`]:Bt,[`& ${z}-item-group-title`]:{paddingInlineStart:qt}},[`${z}-item`]:Bt}},{[`${z}-inline-collapsed`]:{width:Ve,[`&${z}-root`]:{[`${z}-item, ${z}-submenu ${z}-submenu-title`]:{[`> ${z}-inline-collapsed-noicon`]:{fontSize:ve,textAlign:"center"}}},[`> ${z}-item,
|
|
|
> ${z}-item-group > ${z}-item-group-list > ${z}-item,
|
|
|
> ${z}-item-group > ${z}-item-group-list > ${z}-submenu > ${z}-submenu-title,
|
|
|
> ${z}-submenu > ${z}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ve/2}px - ${_t}px)`,textOverflow:"clip",[`
|
|
|
${z}-submenu-arrow,
|
|
|
${z}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${z}-item-icon, ${G}`]:{margin:0,fontSize:Qe,lineHeight:`${T}px`,"+ span":{display:"inline-block",opacity:0}}},[`${z}-item-icon, ${G}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${z}-item-icon, ${G}`]:{display:"none"},"a, a:hover":{color:St}},[`${z}-item-group-title`]:Object.assign(Object.assign({},ie.vS),{paddingInline:Ke})}}]};const vn=k=>{const{componentCls:z,motionDurationSlow:G,motionDurationMid:T,motionEaseInOut:St,motionEaseOut:fe,iconCls:Ct,iconSize:xt,iconMarginInlineEnd:Dt}=k;return{[`${z}-item, ${z}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${G}`,`background ${G}`,`padding ${G} ${St}`].join(","),[`${z}-item-icon, ${Ct}`]:{minWidth:xt,fontSize:xt,transition:[`font-size ${T} ${fe}`,`margin ${G} ${St}`,`color ${G}`].join(","),"+ span":{marginInlineStart:Dt,opacity:1,transition:[`opacity ${G} ${St}`,`margin ${G}`,`color ${G}`].join(",")}},[`${z}-item-icon`]:Object.assign({},(0,ie.Ro)()),[`&${z}-item-only-child`]:{[`> ${Ct}, > ${z}-item-icon`]:{marginInlineEnd:0}}},[`${z}-item-disabled, ${z}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${z}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Xn=k=>{const{componentCls:z,motionDurationSlow:G,motionEaseInOut:T,borderRadius:St,menuArrowSize:fe,menuArrowOffset:Ct}=k;return{[`${z}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:k.margin,width:fe,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${G} ${T}, opacity ${G}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:fe*.6,height:fe*.15,backgroundColor:"currentcolor",borderRadius:St,transition:[`background ${G} ${T}`,`transform ${G} ${T}`,`top ${G} ${T}`,`color ${G} ${T}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Ct})`},"&::after":{transform:`rotate(-45deg) translateY(${Ct})`}}}}},gn=k=>{const{antCls:z,componentCls:G,fontSize:T,motionDurationSlow:St,motionDurationMid:fe,motionEaseInOut:Ct,paddingXS:xt,padding:Dt,colorSplit:qt,lineWidth:_t,zIndexPopup:ve,borderRadiusLG:Ge,subMenuItemBorderRadius:Ke,menuArrowSize:Ce,menuArrowOffset:Ve,lineType:Qe,menuPanelMaskInset:Bt,groupTitleLineHeight:xe,groupTitleFontSize:ze}=k;return[{"":{[`${G}`]:Object.assign(Object.assign({},(0,ie.dF)()),{"&-hidden":{display:"none"}})},[`${G}-submenu-hidden`]:{display:"none"}},{[G]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ie.Wf)(k)),(0,ie.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:T,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${St} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${G}-item`]:{flex:"none"}},[`${G}-item, ${G}-submenu, ${G}-submenu-title`]:{borderRadius:k.itemBorderRadius},[`${G}-item-group-title`]:{padding:`${xt}px ${Dt}px`,fontSize:ze,lineHeight:xe,transition:`all ${St}`},[`&-horizontal ${G}-submenu`]:{transition:[`border-color ${St} ${Ct}`,`background ${St} ${Ct}`].join(",")},[`${G}-submenu, ${G}-submenu-inline`]:{transition:[`border-color ${St} ${Ct}`,`background ${St} ${Ct}`,`padding ${fe} ${Ct}`].join(",")},[`${G}-submenu ${G}-sub`]:{cursor:"initial",transition:[`background ${St} ${Ct}`,`padding ${St} ${Ct}`].join(",")},[`${G}-title-content`]:{transition:`color ${St}`},[`${G}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${G}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:qt,borderStyle:Qe,borderWidth:0,borderTopWidth:_t,marginBlock:_t,padding:0,"&-dashed":{borderStyle:"dashed"}}}),vn(k)),{[`${G}-item-group`]:{[`${G}-item-group-list`]:{margin:0,padding:0,[`${G}-item, ${G}-submenu-title`]:{paddingInline:`${T*2}px ${Dt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:ve,borderRadius:Ge,boxShadow:"none",transformOrigin:"0 0",[`&${G}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Bt}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Bt},"\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:k.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:k.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:k.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:k.paddingXS},[`> ${G}`]:Object.assign(Object.assign(Object.assign({borderRadius:Ge},vn(k)),Xn(k)),{[`${G}-item, ${G}-submenu > ${G}-submenu-title`]:{borderRadius:Ke},[`${G}-submenu-title::after`]:{transition:`transform ${St} ${Ct}`}})}}),Xn(k)),{[`&-inline-collapsed ${G}-submenu-arrow,
|
|
|
&-inline ${G}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ve})`},"&::after":{transform:`rotate(45deg) translateX(-${Ve})`}},[`${G}-submenu-open${G}-submenu-inline > ${G}-submenu-title > ${G}-submenu-arrow`]:{transform:`translateY(-${Ce*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Ve})`},"&::before":{transform:`rotate(45deg) translateX(${Ve})`}}})},{[`${z}-layout-header`]:{[G]:{lineHeight:"inherit"}}}]};var _n=(k,z)=>(0,Pe.Z)("Menu",T=>{if(z===!1)return[];const{colorBgElevated:St,colorPrimary:fe,colorTextLightSolid:Ct,controlHeightLG:xt,fontSize:Dt,darkItemColor:qt,darkDangerItemColor:_t,darkItemBg:ve,darkSubMenuItemBg:Ge,darkItemSelectedColor:Ke,darkItemSelectedBg:Ce,darkDangerItemSelectedBg:Ve,darkItemHoverBg:Qe,darkGroupTitleColor:Bt,darkItemHoverColor:xe,darkItemDisabledColor:ze,darkDangerItemHoverColor:Ne,darkDangerItemSelectedColor:Cn,darkDangerItemActiveBg:En}=T,jn=Dt/7*5,On=(0,ge.TS)(T,{menuArrowSize:jn,menuHorizontalHeight:xt*1.15,menuArrowOffset:`${jn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:St}),ci=(0,ge.TS)(On,{itemColor:qt,itemHoverColor:xe,groupTitleColor:Bt,itemSelectedColor:Ke,itemBg:ve,popupBg:ve,subMenuItemBg:Ge,itemActiveBg:"transparent",itemSelectedBg:Ce,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Qe,itemDisabledColor:ze,dangerItemColor:_t,dangerItemHoverColor:Ne,dangerItemSelectedColor:Cn,dangerItemActiveBg:En,dangerItemSelectedBg:Ve,menuSubMenuBg:Ge,horizontalItemSelectedColor:Ct,horizontalItemSelectedBg:fe});return[gn(On),pe(On),en(On),Te(On,"light"),Te(ci,"dark"),zt(On),(0,yt.Z)(On),(0,ae.oN)(On,"slide-up"),(0,ae.oN)(On,"slide-down"),(0,Ht._y)(On,"zoom-big")]},T=>{const{colorPrimary:St,colorError:fe,colorTextDisabled:Ct,colorErrorBg:xt,colorText:Dt,colorTextDescription:qt,colorBgContainer:_t,colorFillAlter:ve,colorFillContent:Ge,lineWidth:Ke,lineWidthBold:Ce,controlItemBgActive:Ve,colorBgTextHover:Qe,controlHeightLG:Bt,lineHeight:xe,colorBgElevated:ze,marginXXS:Ne,padding:Cn,fontSize:En,controlHeightSM:jn,fontSizeLG:On,colorTextLightSolid:ci,colorErrorHover:Si}=T,vi=new Qt.C(ci).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:T.zIndexPopupBase+50,radiusItem:T.borderRadiusLG,itemBorderRadius:T.borderRadiusLG,radiusSubMenuItem:T.borderRadiusSM,subMenuItemBorderRadius:T.borderRadiusSM,colorItemText:Dt,itemColor:Dt,colorItemTextHover:Dt,itemHoverColor:Dt,colorItemTextHoverHorizontal:St,horizontalItemHoverColor:St,colorGroupTitle:qt,groupTitleColor:qt,colorItemTextSelected:St,itemSelectedColor:St,colorItemTextSelectedHorizontal:St,horizontalItemSelectedColor:St,colorItemBg:_t,itemBg:_t,colorItemBgHover:Qe,itemHoverBg:Qe,colorItemBgActive:Ge,itemActiveBg:Ve,colorSubItemBg:ve,subMenuItemBg:ve,colorItemBgSelected:Ve,itemSelectedBg:Ve,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Ce,activeBarHeight:Ce,colorActiveBarBorderSize:Ke,activeBarBorderWidth:Ke,colorItemTextDisabled:Ct,itemDisabledColor:Ct,colorDangerItemText:fe,dangerItemColor:fe,colorDangerItemTextHover:fe,dangerItemHoverColor:fe,colorDangerItemTextSelected:fe,dangerItemSelectedColor:fe,colorDangerItemBgActive:xt,dangerItemActiveBg:xt,colorDangerItemBgSelected:xt,dangerItemSelectedBg:xt,itemMarginInline:T.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Bt,groupTitleLineHeight:xe,collapsedWidth:Bt*2,popupBg:ze,itemMarginBlock:Ne,itemPaddingInline:Cn,horizontalLineHeight:`${Bt*1.15}px`,iconSize:En,iconMarginInlineEnd:jn-En,collapsedIconSize:On,groupTitleFontSize:En,darkItemDisabledColor:new Qt.C(ci).setAlpha(.25).toRgbString(),darkItemColor:vi,darkDangerItemColor:fe,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:ci,darkItemSelectedBg:St,darkDangerItemSelectedBg:fe,darkItemHoverBg:"transparent",darkGroupTitleColor:vi,darkItemHoverColor:ci,darkDangerItemHoverColor:Si,darkDangerItemSelectedColor:ci,darkDangerItemActiveBg:fe}},{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"]]})(k),$n=function(k,z){var G={};for(var T in k)Object.prototype.hasOwnProperty.call(k,T)&&z.indexOf(T)<0&&(G[T]=k[T]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,T=Object.getOwnPropertySymbols(k);St<T.length;St++)z.indexOf(T[St])<0&&Object.prototype.propertyIsEnumerable.call(k,T[St])&&(G[T[St]]=k[T[St]]);return G},hn=(0,N.forwardRef)((k,z)=>{var G,T;const St=N.useContext(et.Z),fe=St||{},{getPrefixCls:Ct,getPopupContainer:xt,direction:Dt,menu:qt}=N.useContext(K.E_),_t=Ct(),{prefixCls:ve,className:Ge,style:Ke,theme:Ce="light",expandIcon:Ve,_internalDisableMenuItemTitleTooltip:Qe,inlineCollapsed:Bt,siderCollapsed:xe,items:ze,children:Ne,rootClassName:Cn,mode:En,selectable:jn,onClick:On,overflowedIndicatorPopupClassName:ci}=k,Si=$n(k,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),vi=(0,kt.Z)(Si,["collapsedWidth"]),qn=Kt(ze)||Ne;(G=fe.validator)===null||G===void 0||G.call(fe,{mode:En});const an=(0,Nt.useEvent)(function(){var Ei;On==null||On.apply(void 0,arguments),(Ei=fe.onClick)===null||Ei===void 0||Ei.call(fe)}),Ji=fe.mode||En,ui=jn!=null?jn:fe.selectable,lr=N.useMemo(()=>xe!==void 0?xe:Bt,[Bt,xe]),Di={horizontal:{motionName:`${_t}-slide-up`},inline:(0,Ut.Z)(_t),other:{motionName:`${_t}-zoom-big`}},D=Ct("menu",ve||fe.prefixCls),[fr,er]=_n(D,!St),Gr=_()(`${D}-${Ce}`,qt==null?void 0:qt.className,Ge);let Zr;if(typeof Ve=="function")Zr=Ve;else if(Ve===null||Ve===!1)Zr=null;else if(fe.expandIcon===null||fe.expandIcon===!1)Zr=null;else{const Ei=Ve!=null?Ve:fe.expandIcon;Zr=(0,Yt.Tm)(Ei,{className:_()(`${D}-submenu-expand-icon`,(0,Yt.l$)(Ei)?(T=Ei.props)===null||T===void 0?void 0:T.className:"")})}const mo=N.useMemo(()=>({prefixCls:D,inlineCollapsed:lr||!1,direction:Dt,firstLevel:!0,theme:Ce,mode:Ji,disableMenuItemTitleTooltip:Qe}),[D,lr,Dt,Qe,Ce]);return fr(N.createElement(et.Z.Provider,{value:null},N.createElement(vt.Provider,{value:mo},N.createElement(y.ZP,Object.assign({getPopupContainer:xt,overflowedIndicator:N.createElement($t.Z,null),overflowedIndicatorPopupClassName:_()(D,`${D}-${Ce}`,ci),mode:Ji,selectable:ui,onClick:an},vi,{inlineCollapsed:lr,style:Object.assign(Object.assign({},qt==null?void 0:qt.style),Ke),className:Gr,prefixCls:D,direction:Dt,defaultMotions:Di,expandIcon:Zr,ref:z,rootClassName:_()(Cn,er)}),qn))))});const ct=(0,N.forwardRef)((k,z)=>{const G=(0,N.useRef)(null),T=N.useContext(O.D);return(0,N.useImperativeHandle)(z,()=>({menu:G.current,focus:St=>{var fe;(fe=G.current)===null||fe===void 0||fe.focus(St)}})),N.createElement(hn,Object.assign({ref:G},k,T))});ct.Item=Mt,ct.SubMenu=It,ct.Divider=rt,ct.ItemGroup=y.BW;var L=ct},58421:function(V,w,h){"use strict";h.d(w,{Z:function(){return fe}});var y=h(16378),N=h(59301),O={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"},B=O,_=h(7657),K=function(xt,Dt){return N.createElement(_.Z,(0,y.Z)({},xt,{ref:Dt,icon:B}))},I=N.forwardRef(K),dt=I,rt=h(49198),Q=h(33853),kt=h(38819),Y=h(92310),Yt=h.n(Y),At=h(78772),vt=h(35227),Tt=h(44202),Mt=h(86773),ft=h(82412),It=h(60845),$t=h(26112),Nt={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Ut=Nt,et=h(91735),Rt=function(Ct){(0,ft.Z)(Dt,Ct);var xt=(0,It.Z)(Dt);function Dt(){var qt;(0,Tt.Z)(this,Dt);for(var _t=arguments.length,ve=new Array(_t),Ge=0;Ge<_t;Ge++)ve[Ge]=arguments[Ge];return qt=xt.call.apply(xt,[this].concat(ve)),qt.state={goInputText:""},qt.getValidValue=function(){var Ke=qt.state.goInputText;return!Ke||Number.isNaN(Ke)?void 0:Number(Ke)},qt.buildOptionText=function(Ke){return"".concat(Ke," ").concat(qt.props.locale.items_per_page)},qt.changeSize=function(Ke){qt.props.changeSize(Number(Ke))},qt.handleChange=function(Ke){qt.setState({goInputText:Ke.target.value})},qt.handleBlur=function(Ke){var Ce=qt.props,Ve=Ce.goButton,Qe=Ce.quickGo,Bt=Ce.rootPrefixCls,xe=qt.state.goInputText;Ve||xe===""||(qt.setState({goInputText:""}),!(Ke.relatedTarget&&(Ke.relatedTarget.className.indexOf("".concat(Bt,"-item-link"))>=0||Ke.relatedTarget.className.indexOf("".concat(Bt,"-item"))>=0))&&Qe(qt.getValidValue()))},qt.go=function(Ke){var Ce=qt.state.goInputText;Ce!==""&&(Ke.keyCode===Ut.ENTER||Ke.type==="click")&&(qt.setState({goInputText:""}),qt.props.quickGo(qt.getValidValue()))},qt}return(0,Mt.Z)(Dt,[{key:"getPageSizeOptions",value:function(){var _t=this.props,ve=_t.pageSize,Ge=_t.pageSizeOptions;return Ge.some(function(Ke){return Ke.toString()===ve.toString()})?Ge:Ge.concat([ve.toString()]).sort(function(Ke,Ce){var Ve=Number.isNaN(Number(Ke))?0:Number(Ke),Qe=Number.isNaN(Number(Ce))?0:Number(Ce);return Ve-Qe})}},{key:"render",value:function(){var _t=this,ve=this.props,Ge=ve.pageSize,Ke=ve.locale,Ce=ve.rootPrefixCls,Ve=ve.changeSize,Qe=ve.quickGo,Bt=ve.goButton,xe=ve.selectComponentClass,ze=ve.buildOptionText,Ne=ve.selectPrefixCls,Cn=ve.disabled,En=this.state.goInputText,jn="".concat(Ce,"-options"),On=xe,ci=null,Si=null,vi=null;if(!Ve&&!Qe)return null;var qn=this.getPageSizeOptions();if(Ve&&On){var an=qn.map(function(Ji,ui){return N.createElement(On.Option,{key:ui,value:Ji.toString()},(ze||_t.buildOptionText)(Ji))});ci=N.createElement(On,{disabled:Cn,prefixCls:Ne,showSearch:!1,className:"".concat(jn,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Ge||qn[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ui){return ui.parentNode},"aria-label":Ke.page_size,defaultOpen:!1},an)}return Qe&&(Bt&&(vi=typeof Bt=="boolean"?N.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Cn,className:"".concat(jn,"-quick-jumper-button")},Ke.jump_to_confirm):N.createElement("span",{onClick:this.go,onKeyUp:this.go},Bt)),Si=N.createElement("div",{className:"".concat(jn,"-quick-jumper")},Ke.jump_to,N.createElement("input",{disabled:Cn,type:"text",value:En,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Ke.page}),Ke.page,vi)),N.createElement("li",{className:"".concat(jn)},ci,Si)}}]),Dt}(N.Component);Rt.defaultProps={pageSizeOptions:["10","20","50","100"]};var Lt=Rt,Kt=function(xt){var Dt,qt=xt.rootPrefixCls,_t=xt.page,ve=xt.active,Ge=xt.className,Ke=xt.showTitle,Ce=xt.onClick,Ve=xt.onKeyPress,Qe=xt.itemRender,Bt="".concat(qt,"-item"),xe=Yt()(Bt,"".concat(Bt,"-").concat(_t),(Dt={},(0,At.Z)(Dt,"".concat(Bt,"-active"),ve),(0,At.Z)(Dt,"".concat(Bt,"-disabled"),!_t),(0,At.Z)(Dt,xt.className,Ge),Dt)),ze=function(){Ce(_t)},Ne=function(jn){Ve(jn,Ce,_t)},Cn=Qe(_t,"page",N.createElement("a",{rel:"nofollow"},_t));return Cn?N.createElement("li",{title:Ke?_t.toString():null,className:xe,onClick:ze,onKeyPress:Ne,tabIndex:0},Cn):null},Qt=Kt;function ie(){}function yt(Ct){var xt=Number(Ct);return typeof xt=="number"&&!Number.isNaN(xt)&&isFinite(xt)&&Math.floor(xt)===xt}var ae=function(xt,Dt,qt){return qt};function Ht(Ct,xt,Dt){var qt=typeof Ct=="undefined"?xt.pageSize:Ct;return Math.floor((Dt.total-1)/qt)+1}var Pe=function(Ct){(0,ft.Z)(Dt,Ct);var xt=(0,It.Z)(Dt);function Dt(qt){var _t;(0,Tt.Z)(this,Dt),_t=xt.call(this,qt),_t.paginationNode=N.createRef(),_t.getJumpPrevPage=function(){return Math.max(1,_t.state.current-(_t.props.showLessItems?3:5))},_t.getJumpNextPage=function(){return Math.min(Ht(void 0,_t.state,_t.props),_t.state.current+(_t.props.showLessItems?3:5))},_t.getItemIcon=function(Ve,Qe){var Bt=_t.props.prefixCls,xe=Ve||N.createElement("button",{type:"button","aria-label":Qe,className:"".concat(Bt,"-item-link")});return typeof Ve=="function"&&(xe=N.createElement(Ve,(0,vt.Z)({},_t.props))),xe},_t.isValid=function(Ve){var Qe=_t.props.total;return yt(Ve)&&Ve!==_t.state.current&&yt(Qe)&&Qe>0},_t.shouldDisplayQuickJumper=function(){var Ve=_t.props,Qe=Ve.showQuickJumper,Bt=Ve.total,xe=_t.state.pageSize;return Bt<=xe?!1:Qe},_t.handleKeyDown=function(Ve){(Ve.keyCode===Ut.ARROW_UP||Ve.keyCode===Ut.ARROW_DOWN)&&Ve.preventDefault()},_t.handleKeyUp=function(Ve){var Qe=_t.getValidValue(Ve),Bt=_t.state.currentInputValue;Qe!==Bt&&_t.setState({currentInputValue:Qe}),Ve.keyCode===Ut.ENTER?_t.handleChange(Qe):Ve.keyCode===Ut.ARROW_UP?_t.handleChange(Qe-1):Ve.keyCode===Ut.ARROW_DOWN&&_t.handleChange(Qe+1)},_t.handleBlur=function(Ve){var Qe=_t.getValidValue(Ve);_t.handleChange(Qe)},_t.changePageSize=function(Ve){var Qe=_t.state.current,Bt=Ht(Ve,_t.state,_t.props);Qe=Qe>Bt?Bt:Qe,Bt===0&&(Qe=_t.state.current),typeof Ve=="number"&&("pageSize"in _t.props||_t.setState({pageSize:Ve}),"current"in _t.props||_t.setState({current:Qe,currentInputValue:Qe})),_t.props.onShowSizeChange(Qe,Ve),"onChange"in _t.props&&_t.props.onChange&&_t.props.onChange(Qe,Ve)},_t.handleChange=function(Ve){var Qe=_t.props,Bt=Qe.disabled,xe=Qe.onChange,ze=_t.state,Ne=ze.pageSize,Cn=ze.current,En=ze.currentInputValue;if(_t.isValid(Ve)&&!Bt){var jn=Ht(void 0,_t.state,_t.props),On=Ve;return Ve>jn?On=jn:Ve<1&&(On=1),"current"in _t.props||_t.setState({current:On}),On!==En&&_t.setState({currentInputValue:On}),xe(On,Ne),On}return Cn},_t.prev=function(){_t.hasPrev()&&_t.handleChange(_t.state.current-1)},_t.next=function(){_t.hasNext()&&_t.handleChange(_t.state.current+1)},_t.jumpPrev=function(){_t.handleChange(_t.getJumpPrevPage())},_t.jumpNext=function(){_t.handleChange(_t.getJumpNextPage())},_t.hasPrev=function(){return _t.state.current>1},_t.hasNext=function(){return _t.state.current<Ht(void 0,_t.state,_t.props)},_t.runIfEnter=function(Ve,Qe){if(Ve.key==="Enter"||Ve.charCode===13){for(var Bt=arguments.length,xe=new Array(Bt>2?Bt-2:0),ze=2;ze<Bt;ze++)xe[ze-2]=arguments[ze];Qe.apply(void 0,xe)}},_t.runIfEnterPrev=function(Ve){_t.runIfEnter(Ve,_t.prev)},_t.runIfEnterNext=function(Ve){_t.runIfEnter(Ve,_t.next)},_t.runIfEnterJumpPrev=function(Ve){_t.runIfEnter(Ve,_t.jumpPrev)},_t.runIfEnterJumpNext=function(Ve){_t.runIfEnter(Ve,_t.jumpNext)},_t.handleGoTO=function(Ve){(Ve.keyCode===Ut.ENTER||Ve.type==="click")&&_t.handleChange(_t.state.currentInputValue)},_t.renderPrev=function(Ve){var Qe=_t.props,Bt=Qe.prevIcon,xe=Qe.itemRender,ze=xe(Ve,"prev",_t.getItemIcon(Bt,"prev page")),Ne=!_t.hasPrev();return(0,N.isValidElement)(ze)?(0,N.cloneElement)(ze,{disabled:Ne}):ze},_t.renderNext=function(Ve){var Qe=_t.props,Bt=Qe.nextIcon,xe=Qe.itemRender,ze=xe(Ve,"next",_t.getItemIcon(Bt,"next page")),Ne=!_t.hasNext();return(0,N.isValidElement)(ze)?(0,N.cloneElement)(ze,{disabled:Ne}):ze};var ve=qt.onChange!==ie,Ge="current"in qt;Ge&&!ve&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Ke=qt.defaultCurrent;"current"in qt&&(Ke=qt.current);var Ce=qt.defaultPageSize;return"pageSize"in qt&&(Ce=qt.pageSize),Ke=Math.min(Ke,Ht(Ce,void 0,qt)),_t.state={current:Ke,currentInputValue:Ke,pageSize:Ce},_t}return(0,Mt.Z)(Dt,[{key:"componentDidUpdate",value:function(_t,ve){var Ge=this.props.prefixCls;if(ve.current!==this.state.current&&this.paginationNode.current){var Ke=this.paginationNode.current.querySelector(".".concat(Ge,"-item-").concat(ve.current));if(Ke&&document.activeElement===Ke){var Ce;Ke==null||(Ce=Ke.blur)===null||Ce===void 0||Ce.call(Ke)}}}},{key:"getValidValue",value:function(_t){var ve=_t.target.value,Ge=Ht(void 0,this.state,this.props),Ke=this.state.currentInputValue,Ce;return ve===""?Ce=ve:Number.isNaN(Number(ve))?Ce=Ke:ve>=Ge?Ce=Ge:Ce=Number(ve),Ce}},{key:"getShowSizeChanger",value:function(){var _t=this.props,ve=_t.showSizeChanger,Ge=_t.total,Ke=_t.totalBoundaryShowSizeChanger;return typeof ve!="undefined"?ve:Ge>Ke}},{key:"render",value:function(){var _t=this.props,ve=_t.prefixCls,Ge=_t.className,Ke=_t.style,Ce=_t.disabled,Ve=_t.hideOnSinglePage,Qe=_t.total,Bt=_t.locale,xe=_t.showQuickJumper,ze=_t.showLessItems,Ne=_t.showTitle,Cn=_t.showTotal,En=_t.simple,jn=_t.itemRender,On=_t.showPrevNextJumpers,ci=_t.jumpPrevIcon,Si=_t.jumpNextIcon,vi=_t.selectComponentClass,qn=_t.selectPrefixCls,an=_t.pageSizeOptions,Ji=this.state,ui=Ji.current,lr=Ji.pageSize,Di=Ji.currentInputValue;if(Ve===!0&&Qe<=lr)return null;var D=Ht(void 0,this.state,this.props),fr=[],er=null,Gr=null,Zr=null,mo=null,Ei=null,No=xe&&xe.goButton,Ir=ze?1:2,Gi=ui-1>0?ui-1:0,Jn=ui+1<D?ui+1:D,te=(0,$t.Z)(this.props,{aria:!0,data:!0}),Nn=Cn&&N.createElement("li",{className:"".concat(ve,"-total-text")},Cn(Qe,[Qe===0?0:(ui-1)*lr+1,ui*lr>Qe?Qe:ui*lr]));if(En){No&&(typeof No=="boolean"?Ei=N.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Bt.jump_to_confirm):Ei=N.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},No),Ei=N.createElement("li",{title:Ne?"".concat(Bt.jump_to).concat(ui,"/").concat(D):null,className:"".concat(ve,"-simple-pager")},Ei));var Bn=this.renderPrev(Gi);return N.createElement("ul",(0,y.Z)({className:Yt()(ve,"".concat(ve,"-simple"),(0,At.Z)({},"".concat(ve,"-disabled"),Ce),Ge),style:Ke,ref:this.paginationNode},te),Nn,Bn?N.createElement("li",{title:Ne?Bt.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Yt()("".concat(ve,"-prev"),(0,At.Z)({},"".concat(ve,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Bn):null,N.createElement("li",{title:Ne?"".concat(ui,"/").concat(D):null,className:"".concat(ve,"-simple-pager")},N.createElement("input",{type:"text",value:Di,disabled:Ce,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),N.createElement("span",{className:"".concat(ve,"-slash")},"/"),D),N.createElement("li",{title:Ne?Bt.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Yt()("".concat(ve,"-next"),(0,At.Z)({},"".concat(ve,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Jn)),Ei)}if(D<=3+Ir*2){var oe={locale:Bt,rootPrefixCls:ve,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Ne,itemRender:jn};D||fr.push(N.createElement(Qt,(0,y.Z)({},oe,{key:"noPager",page:1,className:"".concat(ve,"-item-disabled")})));for(var Ft=1;Ft<=D;Ft+=1){var qe=ui===Ft;fr.push(N.createElement(Qt,(0,y.Z)({},oe,{key:Ft,page:Ft,active:qe})))}}else{var xn=ze?Bt.prev_3:Bt.prev_5,Gn=ze?Bt.next_3:Bt.next_5,kn=jn(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(ci,"prev page")),ne=jn(this.getJumpNextPage(),"jump-next",this.getItemIcon(Si,"next page"));On&&(er=kn?N.createElement("li",{title:Ne?xn:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Yt()("".concat(ve,"-jump-prev"),(0,At.Z)({},"".concat(ve,"-jump-prev-custom-icon"),!!ci))},kn):null,Gr=ne?N.createElement("li",{title:Ne?Gn:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Yt()("".concat(ve,"-jump-next"),(0,At.Z)({},"".concat(ve,"-jump-next-custom-icon"),!!Si))},ne):null),mo=N.createElement(Qt,{locale:Bt,last:!0,rootPrefixCls:ve,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:D,page:D,active:!1,showTitle:Ne,itemRender:jn}),Zr=N.createElement(Qt,{locale:Bt,rootPrefixCls:ve,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Ne,itemRender:jn});var dn=Math.max(1,ui-Ir),Fn=Math.min(ui+Ir,D);ui-1<=Ir&&(Fn=1+Ir*2),D-ui<=Ir&&(dn=D-Ir*2);for(var hi=dn;hi<=Fn;hi+=1){var Me=ui===hi;fr.push(N.createElement(Qt,{locale:Bt,rootPrefixCls:ve,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:hi,page:hi,active:Me,showTitle:Ne,itemRender:jn}))}ui-1>=Ir*2&&ui!==3&&(fr[0]=(0,N.cloneElement)(fr[0],{className:"".concat(ve,"-item-after-jump-prev")}),fr.unshift(er)),D-ui>=Ir*2&&ui!==D-2&&(fr[fr.length-1]=(0,N.cloneElement)(fr[fr.length-1],{className:"".concat(ve,"-item-before-jump-next")}),fr.push(Gr)),dn!==1&&fr.unshift(Zr),Fn!==D&&fr.push(mo)}var In=!this.hasPrev()||!D,be=!this.hasNext()||!D,$e=this.renderPrev(Gi),He=this.renderNext(Jn);return N.createElement("ul",(0,y.Z)({className:Yt()(ve,Ge,(0,At.Z)({},"".concat(ve,"-disabled"),Ce)),style:Ke,ref:this.paginationNode},te),Nn,$e?N.createElement("li",{title:Ne?Bt.prev_page:null,onClick:this.prev,tabIndex:In?null:0,onKeyPress:this.runIfEnterPrev,className:Yt()("".concat(ve,"-prev"),(0,At.Z)({},"".concat(ve,"-disabled"),In)),"aria-disabled":In},$e):null,fr,He?N.createElement("li",{title:Ne?Bt.next_page:null,onClick:this.next,tabIndex:be?null:0,onKeyPress:this.runIfEnterNext,className:Yt()("".concat(ve,"-next"),(0,At.Z)({},"".concat(ve,"-disabled"),be)),"aria-disabled":be},He):null,N.createElement(Lt,{disabled:Ce,locale:Bt,rootPrefixCls:ve,selectComponentClass:vi,selectPrefixCls:qn,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:ui,pageSize:lr,pageSizeOptions:an,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:No}))}}],[{key:"getDerivedStateFromProps",value:function(_t,ve){var Ge={};if("current"in _t&&(Ge.current=_t.current,_t.current!==ve.current&&(Ge.currentInputValue=Ge.current)),"pageSize"in _t&&_t.pageSize!==ve.pageSize){var Ke=ve.current,Ce=Ht(_t.pageSize,ve,_t);Ke=Ke>Ce?Ce:Ke,"current"in _t||(Ge.current=Ke,Ge.currentInputValue=Ke),Ge.pageSize=_t.pageSize}return Ge}}]),Dt}(N.Component);Pe.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:ie,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:ie,locale:et.Z,style:{},itemRender:ae,totalBoundaryShowSizeChanger:50};var ge=Pe,we=h(22075),pe=h(36355),ln=h(19716),zt=h(8628),nt=h(9763),it=h(57809);const Te=Ct=>N.createElement(it.default,Object.assign({},Ct,{showSearch:!0,size:"small"})),Ae=Ct=>N.createElement(it.default,Object.assign({},Ct,{showSearch:!0,size:"middle"}));Te.Option=it.default.Option,Ae.Option=it.default.Option;var de=h(9937),en=h(17313),vn=h(83116),Xn=h(37613);const gn=Ct=>{const{componentCls:xt}=Ct;return{[`${xt}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${xt}-item-link`]:{color:Ct.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${xt}-item-link`]:{color:Ct.colorTextDisabled,cursor:"not-allowed"}}},[`&${xt}-disabled`]:{cursor:"not-allowed",[`${xt}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Ct.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Ct.colorBorder,backgroundColor:Ct.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Ct.itemActiveBgDisabled},a:{color:Ct.itemActiveColorDisabled}}},[`${xt}-item-link`]:{color:Ct.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${xt}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${xt}-simple-pager`]:{color:Ct.colorTextDisabled},[`${xt}-jump-prev, ${xt}-jump-next`]:{[`${xt}-item-link-icon`]:{opacity:0},[`${xt}-item-ellipsis`]:{opacity:1}}},[`&${xt}-simple`]:{[`${xt}-prev, ${xt}-next`]:{[`&${xt}-disabled ${xt}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},_n=Ct=>{const{componentCls:xt}=Ct;return{[`&${xt}-mini ${xt}-total-text, &${xt}-mini ${xt}-simple-pager`]:{height:Ct.itemSizeSM,lineHeight:`${Ct.itemSizeSM}px`},[`&${xt}-mini ${xt}-item`]:{minWidth:Ct.itemSizeSM,height:Ct.itemSizeSM,margin:0,lineHeight:`${Ct.itemSizeSM-2}px`},[`&${xt}-mini:not(${xt}-disabled) ${xt}-item:not(${xt}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Ct.colorBgTextHover},"&:active":{backgroundColor:Ct.colorBgTextActive}},[`&${xt}-mini ${xt}-prev, &${xt}-mini ${xt}-next`]:{minWidth:Ct.itemSizeSM,height:Ct.itemSizeSM,margin:0,lineHeight:`${Ct.itemSizeSM}px`},[`&${xt}-mini:not(${xt}-disabled)`]:{[`${xt}-prev, ${xt}-next`]:{[`&:hover ${xt}-item-link`]:{backgroundColor:Ct.colorBgTextHover},[`&:active ${xt}-item-link`]:{backgroundColor:Ct.colorBgTextActive},[`&${xt}-disabled:hover ${xt}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${xt}-mini ${xt}-prev ${xt}-item-link,
|
|
|
&${xt}-mini ${xt}-next ${xt}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Ct.itemSizeSM,lineHeight:`${Ct.itemSizeSM}px`}},[`&${xt}-mini ${xt}-jump-prev, &${xt}-mini ${xt}-jump-next`]:{height:Ct.itemSizeSM,marginInlineEnd:0,lineHeight:`${Ct.itemSizeSM}px`},[`&${xt}-mini ${xt}-options`]:{marginInlineStart:Ct.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Ct.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Ct.itemSizeSM,lineHeight:`${Ct.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,de.x0)(Ct)),{width:Ct.paginationMiniQuickJumperInputWidth,height:Ct.controlHeightSM})}}}},$n=Ct=>{const{componentCls:xt}=Ct;return{[`
|
|
|
&${xt}-simple ${xt}-prev,
|
|
|
&${xt}-simple ${xt}-next
|
|
|
`]:{height:Ct.itemSizeSM,lineHeight:`${Ct.itemSizeSM}px`,verticalAlign:"top",[`${xt}-item-link`]:{height:Ct.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Ct.colorBgTextHover},"&:active":{backgroundColor:Ct.colorBgTextActive},"&::after":{height:Ct.itemSizeSM,lineHeight:`${Ct.itemSizeSM}px`}}},[`&${xt}-simple ${xt}-simple-pager`]:{display:"inline-block",height:Ct.itemSizeSM,marginInlineEnd:Ct.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Ct.marginXS,padding:`0 ${Ct.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:Ct.itemInputBg,border:`${Ct.lineWidth}px ${Ct.lineType} ${Ct.colorBorder}`,borderRadius:Ct.borderRadius,outline:"none",transition:`border-color ${Ct.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Ct.colorPrimary},"&:focus":{borderColor:Ct.colorPrimaryHover,boxShadow:`${Ct.inputOutlineOffset}px 0 ${Ct.controlOutlineWidth}px ${Ct.controlOutline}`},"&[disabled]":{color:Ct.colorTextDisabled,backgroundColor:Ct.colorBgContainerDisabled,borderColor:Ct.colorBorder,cursor:"not-allowed"}}}}},fn=Ct=>{const{componentCls:xt}=Ct;return{[`${xt}-jump-prev, ${xt}-jump-next`]:{outline:0,[`${xt}-item-container`]:{position:"relative",[`${xt}-item-link-icon`]:{color:Ct.colorPrimary,fontSize:Ct.fontSizeSM,opacity:0,transition:`all ${Ct.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${xt}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Ct.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Ct.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Ct.paginationEllipsisTextIndent,opacity:1,transition:`all ${Ct.motionDurationMid}`}},"&:hover":{[`${xt}-item-link-icon`]:{opacity:1},[`${xt}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${xt}-prev,
|
|
|
${xt}-jump-prev,
|
|
|
${xt}-jump-next
|
|
|
`]:{marginInlineEnd:Ct.marginXS},[`
|
|
|
${xt}-prev,
|
|
|
${xt}-next,
|
|
|
${xt}-jump-prev,
|
|
|
${xt}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:Ct.itemSize,height:Ct.itemSize,color:Ct.colorText,fontFamily:Ct.fontFamily,lineHeight:`${Ct.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Ct.borderRadius,cursor:"pointer",transition:`all ${Ct.motionDurationMid}`},[`${xt}-prev, ${xt}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Ct.colorText,cursor:"pointer",userSelect:"none"},[`${xt}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Ct.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Ct.lineWidth}px ${Ct.lineType} transparent`,borderRadius:Ct.borderRadius,outline:"none",transition:`all ${Ct.motionDurationMid}`},[`&:hover ${xt}-item-link`]:{backgroundColor:Ct.colorBgTextHover},[`&:active ${xt}-item-link`]:{backgroundColor:Ct.colorBgTextActive},[`&${xt}-disabled:hover`]:{[`${xt}-item-link`]:{backgroundColor:"transparent"}}},[`${xt}-slash`]:{marginInlineEnd:Ct.paginationSlashMarginInlineEnd,marginInlineStart:Ct.paginationSlashMarginInlineStart},[`${xt}-options`]:{display:"inline-block",marginInlineStart:Ct.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Ct.controlHeight,marginInlineStart:Ct.marginXS,lineHeight:`${Ct.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,de.ik)(Ct)),{width:Ct.controlHeightLG*1.25,height:Ct.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Ct.marginXS,marginInlineEnd:Ct.marginXS})}}}},hn=Ct=>{const{componentCls:xt}=Ct;return{[`${xt}-item`]:{display:"inline-block",minWidth:Ct.itemSize,height:Ct.itemSize,marginInlineEnd:Ct.marginXS,fontFamily:Ct.fontFamily,lineHeight:`${Ct.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${Ct.lineWidth}px ${Ct.lineType} transparent`,borderRadius:Ct.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Ct.paginationItemPaddingInline}px`,color:Ct.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${xt}-item-active)`]:{"&:hover":{transition:`all ${Ct.motionDurationMid}`,backgroundColor:Ct.colorBgTextHover},"&:active":{backgroundColor:Ct.colorBgTextActive}},"&-active":{fontWeight:Ct.fontWeightStrong,backgroundColor:Ct.itemActiveBg,borderColor:Ct.colorPrimary,a:{color:Ct.colorPrimary},"&:hover":{borderColor:Ct.colorPrimaryHover},"&:hover a":{color:Ct.colorPrimaryHover}}}}},ct=Ct=>{const{componentCls:xt}=Ct;return{[xt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,en.Wf)(Ct)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${xt}-total-text`]:{display:"inline-block",height:Ct.itemSize,marginInlineEnd:Ct.marginXS,lineHeight:`${Ct.itemSize-2}px`,verticalAlign:"middle"}}),hn(Ct)),fn(Ct)),$n(Ct)),_n(Ct)),gn(Ct)),{[`@media only screen and (max-width: ${Ct.screenLG}px)`]:{[`${xt}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Ct.screenSM}px)`]:{[`${xt}-options`]:{display:"none"}}}),[`&${Ct.componentCls}-rtl`]:{direction:"rtl"}}},L=Ct=>{const{componentCls:xt}=Ct;return{[`${xt}${xt}-disabled:not(${xt}-mini)`]:{"&, &:hover":{[`${xt}-item-link`]:{borderColor:Ct.colorBorder}},"&:focus-visible":{[`${xt}-item-link`]:{borderColor:Ct.colorBorder}},[`${xt}-item, ${xt}-item-link`]:{backgroundColor:Ct.colorBgContainerDisabled,borderColor:Ct.colorBorder,[`&:hover:not(${xt}-item-active)`]:{backgroundColor:Ct.colorBgContainerDisabled,borderColor:Ct.colorBorder,a:{color:Ct.colorTextDisabled}},[`&${xt}-item-active`]:{backgroundColor:Ct.itemActiveBgDisabled}},[`${xt}-prev, ${xt}-next`]:{"&:hover button":{backgroundColor:Ct.colorBgContainerDisabled,borderColor:Ct.colorBorder,color:Ct.colorTextDisabled},[`${xt}-item-link`]:{backgroundColor:Ct.colorBgContainerDisabled,borderColor:Ct.colorBorder}}},[`${xt}:not(${xt}-mini)`]:{[`${xt}-prev, ${xt}-next`]:{"&:hover button":{borderColor:Ct.colorPrimaryHover,backgroundColor:Ct.itemBg},[`${xt}-item-link`]:{backgroundColor:Ct.itemLinkBg,borderColor:Ct.colorBorder},[`&:hover ${xt}-item-link`]:{borderColor:Ct.colorPrimary,backgroundColor:Ct.itemBg,color:Ct.colorPrimary},[`&${xt}-disabled`]:{[`${xt}-item-link`]:{borderColor:Ct.colorBorder,color:Ct.colorTextDisabled}}},[`${xt}-item`]:{backgroundColor:Ct.itemBg,border:`${Ct.lineWidth}px ${Ct.lineType} ${Ct.colorBorder}`,[`&:hover:not(${xt}-item-active)`]:{borderColor:Ct.colorPrimary,backgroundColor:Ct.itemBg,a:{color:Ct.colorPrimary}},"&-active":{borderColor:Ct.colorPrimary}}}}},k=Ct=>{const{componentCls:xt}=Ct;return{[`${xt}:not(${xt}-disabled)`]:{[`${xt}-item`]:Object.assign({},(0,en.Qy)(Ct)),[`${xt}-jump-prev, ${xt}-jump-next`]:{"&:focus-visible":Object.assign({[`${xt}-item-link-icon`]:{opacity:1},[`${xt}-item-ellipsis`]:{opacity:0}},(0,en.oN)(Ct))},[`${xt}-prev, ${xt}-next`]:{[`&:focus-visible ${xt}-item-link`]:Object.assign({},(0,en.oN)(Ct))}}}};var z=(0,vn.Z)("Pagination",Ct=>{const xt=(0,Xn.TS)(Ct,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Ct.marginXXS/2,paginationMiniQuickJumperInputWidth:Ct.controlHeightLG*1.1,paginationItemPaddingInline:Ct.marginXXS*1.5,paginationEllipsisLetterSpacing:Ct.marginXXS/2,paginationSlashMarginInlineStart:Ct.marginXXS,paginationSlashMarginInlineEnd:Ct.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,de.e5)(Ct),(0,de.TM)(Ct));return[ct(xt),k(xt),Ct.wireframe&&L(xt)]},Ct=>({itemBg:Ct.colorBgContainer,itemSize:Ct.controlHeight,itemSizeSM:Ct.controlHeightSM,itemActiveBg:Ct.colorBgContainer,itemLinkBg:Ct.colorBgContainer,itemActiveColorDisabled:Ct.colorTextDisabled,itemActiveBgDisabled:Ct.controlItemBgActiveDisabled,itemInputBg:Ct.colorBgContainer,miniOptionsSizeChangerTop:0})),G=function(Ct,xt){var Dt={};for(var qt in Ct)Object.prototype.hasOwnProperty.call(Ct,qt)&&xt.indexOf(qt)<0&&(Dt[qt]=Ct[qt]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _t=0,qt=Object.getOwnPropertySymbols(Ct);_t<qt.length;_t++)xt.indexOf(qt[_t])<0&&Object.prototype.propertyIsEnumerable.call(Ct,qt[_t])&&(Dt[qt[_t]]=Ct[qt[_t]]);return Dt},St=Ct=>{const{prefixCls:xt,selectPrefixCls:Dt,className:qt,rootClassName:_t,style:ve,size:Ge,locale:Ke,selectComponentClass:Ce,responsive:Ve,showSizeChanger:Qe}=Ct,Bt=G(Ct,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:xe}=(0,zt.Z)(Ve),{getPrefixCls:ze,direction:Ne,pagination:Cn={}}=N.useContext(pe.E_),En=ze("pagination",xt),[jn,On]=z(En),ci=Qe!=null?Qe:Cn.showSizeChanger,Si=N.useMemo(()=>{const D=N.createElement("span",{className:`${En}-item-ellipsis`},"\u2022\u2022\u2022"),fr=N.createElement("button",{className:`${En}-item-link`,type:"button",tabIndex:-1},Ne==="rtl"?N.createElement(kt.Z,null):N.createElement(Q.Z,null)),er=N.createElement("button",{className:`${En}-item-link`,type:"button",tabIndex:-1},Ne==="rtl"?N.createElement(Q.Z,null):N.createElement(kt.Z,null)),Gr=N.createElement("a",{className:`${En}-item-link`},N.createElement("div",{className:`${En}-item-container`},Ne==="rtl"?N.createElement(rt.Z,{className:`${En}-item-link-icon`}):N.createElement(dt,{className:`${En}-item-link-icon`}),D)),Zr=N.createElement("a",{className:`${En}-item-link`},N.createElement("div",{className:`${En}-item-container`},Ne==="rtl"?N.createElement(dt,{className:`${En}-item-link-icon`}):N.createElement(rt.Z,{className:`${En}-item-link-icon`}),D));return{prevIcon:fr,nextIcon:er,jumpPrevIcon:Gr,jumpNextIcon:Zr}},[Ne,En]),[vi]=(0,nt.Z)("Pagination",we.Z),qn=Object.assign(Object.assign({},vi),Ke),an=(0,ln.Z)(Ge),Ji=an==="small"||!!(xe&&!an&&Ve),ui=ze("select",Dt),lr=Yt()({[`${En}-mini`]:Ji,[`${En}-rtl`]:Ne==="rtl"},Cn==null?void 0:Cn.className,qt,_t,On),Di=Object.assign(Object.assign({},Cn==null?void 0:Cn.style),ve);return jn(N.createElement(ge,Object.assign({},Si,Bt,{style:Di,prefixCls:En,selectPrefixCls:ui,className:lr,selectComponentClass:Ce||(Ji?Te:Ae),locale:qn,showSizeChanger:ci})))},fe=St},93948:function(V,w,h){"use strict";h.d(w,{Z:function(){return Qe}});var y=h(59301),N=h(29679),O=h(40001),B=h(19248),_=h(99267),K=h(92310),I=h.n(K),dt=h(2738),rt=h(36355),Q=h(16378),kt=h(35227),Y=h(61206),Yt={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},At=function(){var xe=(0,y.useRef)([]),ze=(0,y.useRef)(null);return(0,y.useEffect)(function(){var Ne=Date.now(),Cn=!1;xe.current.forEach(function(En){if(En){Cn=!0;var jn=En.style;jn.transitionDuration=".3s, .3s, .3s, .06s",ze.current&&Ne-ze.current<100&&(jn.transitionDuration="0s, 0s")}}),Cn&&(ze.current=Date.now())}),xe.current},vt=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Tt=function(xe){var ze=(0,kt.Z)((0,kt.Z)({},Yt),xe),Ne=ze.className,Cn=ze.percent,En=ze.prefixCls,jn=ze.strokeColor,On=ze.strokeLinecap,ci=ze.strokeWidth,Si=ze.style,vi=ze.trailColor,qn=ze.trailWidth,an=ze.transition,Ji=(0,Y.Z)(ze,vt);delete Ji.gapPosition;var ui=Array.isArray(Cn)?Cn:[Cn],lr=Array.isArray(jn)?jn:[jn],Di=At(),D=ci/2,fr=100-ci/2,er="M ".concat(On==="round"?D:0,",").concat(D,`
|
|
|
L `).concat(On==="round"?fr:100,",").concat(D),Gr="0 0 100 ".concat(ci),Zr=0;return y.createElement("svg",(0,Q.Z)({className:I()("".concat(En,"-line"),Ne),viewBox:Gr,preserveAspectRatio:"none",style:Si},Ji),y.createElement("path",{className:"".concat(En,"-line-trail"),d:er,strokeLinecap:On,stroke:vi,strokeWidth:qn||ci,fillOpacity:"0"}),ui.map(function(mo,Ei){var No=1;switch(On){case"round":No=1-ci/100;break;case"square":No=1-ci/2/100;break;default:No=1;break}var Ir={strokeDasharray:"".concat(mo*No,"px, 100px"),strokeDashoffset:"-".concat(Zr,"px"),transition:an||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Gi=lr[Ei]||lr[lr.length-1];return Zr+=mo,y.createElement("path",{key:Ei,className:"".concat(En,"-line-path"),d:er,strokeLinecap:On,stroke:Gi,strokeWidth:ci,fillOpacity:"0",ref:function(te){Di[Ei]=te},style:Ir})}))},Mt=Tt,ft=h(42066),It=h(10859),$t=h(47273),Nt=0,Ut=(0,$t.Z)();function et(){var Bt;return Ut?(Bt=Nt,Nt+=1):Bt="TEST_OR_SSR",Bt}var Rt=function(Bt){var xe=y.useState(),ze=(0,It.Z)(xe,2),Ne=ze[0],Cn=ze[1];return y.useEffect(function(){Cn("rc_progress_".concat(et()))},[]),Bt||Ne},Lt=function(xe){var ze=xe.bg,Ne=xe.children;return y.createElement("div",{style:{width:"100%",height:"100%",background:ze}},Ne)};function Kt(Bt,xe){return Object.keys(Bt).map(function(ze){var Ne=parseFloat(ze),Cn="".concat(Math.floor(Ne*xe),"%");return"".concat(Bt[ze]," ").concat(Cn)})}var Qt=y.forwardRef(function(Bt,xe){var ze=Bt.prefixCls,Ne=Bt.color,Cn=Bt.gradientId,En=Bt.radius,jn=Bt.style,On=Bt.ptg,ci=Bt.strokeLinecap,Si=Bt.strokeWidth,vi=Bt.size,qn=Bt.gapDegree,an=Ne&&(0,ft.Z)(Ne)==="object",Ji=an?"#FFF":void 0,ui=vi/2,lr=y.createElement("circle",{className:"".concat(ze,"-circle-path"),r:En,cx:ui,cy:ui,stroke:Ji,strokeLinecap:ci,strokeWidth:Si,opacity:On===0?0:1,style:jn,ref:xe});if(!an)return lr;var Di="".concat(Cn,"-conic"),D=qn?"".concat(180+qn/2,"deg"):"0deg",fr=Kt(Ne,(360-qn)/360),er=Kt(Ne,1),Gr="conic-gradient(from ".concat(D,", ").concat(fr.join(", "),")"),Zr="linear-gradient(to ".concat(qn?"bottom":"top",", ").concat(er.join(", "),")");return y.createElement(y.Fragment,null,y.createElement("mask",{id:Di},lr),y.createElement("foreignObject",{x:0,y:0,width:vi,height:vi,mask:"url(#".concat(Di,")")},y.createElement(Lt,{bg:Zr},y.createElement(Lt,{bg:Gr}))))}),ie=Qt,yt=100,ae=function(xe,ze,Ne,Cn,En,jn,On,ci,Si,vi){var qn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,an=Ne/100*360*((360-jn)/360),Ji=jn===0?0:{bottom:0,top:180,left:90,right:-90}[On],ui=(100-Cn)/100*ze;Si==="round"&&Cn!==100&&(ui+=vi/2,ui>=ze&&(ui=ze-.01));var lr=yt/2;return{stroke:typeof ci=="string"?ci:void 0,strokeDasharray:"".concat(ze,"px ").concat(xe),strokeDashoffset:ui+qn,transform:"rotate(".concat(En+an+Ji,"deg)"),transformOrigin:"".concat(lr,"px ").concat(lr,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Ht=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Pe(Bt){var xe=Bt!=null?Bt:[];return Array.isArray(xe)?xe:[xe]}var ge=function(xe){var ze=(0,kt.Z)((0,kt.Z)({},Yt),xe),Ne=ze.id,Cn=ze.prefixCls,En=ze.steps,jn=ze.strokeWidth,On=ze.trailWidth,ci=ze.gapDegree,Si=ci===void 0?0:ci,vi=ze.gapPosition,qn=ze.trailColor,an=ze.strokeLinecap,Ji=ze.style,ui=ze.className,lr=ze.strokeColor,Di=ze.percent,D=(0,Y.Z)(ze,Ht),fr=yt/2,er=Rt(Ne),Gr="".concat(er,"-gradient"),Zr=fr-jn/2,mo=Math.PI*2*Zr,Ei=Si>0?90+Si/2:-90,No=mo*((360-Si)/360),Ir=(0,ft.Z)(En)==="object"?En:{count:En,space:2},Gi=Ir.count,Jn=Ir.space,te=Pe(Di),Nn=Pe(lr),Bn=Nn.find(function(ne){return ne&&(0,ft.Z)(ne)==="object"}),oe=Bn&&(0,ft.Z)(Bn)==="object",Ft=oe?"butt":an,qe=ae(mo,No,0,100,Ei,Si,vi,qn,Ft,jn),xn=At(),Gn=function(){var dn=0;return te.map(function(Fn,hi){var Me=Nn[hi]||Nn[Nn.length-1],In=ae(mo,No,dn,Fn,Ei,Si,vi,Me,Ft,jn);return dn+=Fn,y.createElement(ie,{key:hi,color:Me,ptg:Fn,radius:Zr,prefixCls:Cn,gradientId:Gr,style:In,strokeLinecap:Ft,strokeWidth:jn,gapDegree:Si,ref:function($e){xn[hi]=$e},size:yt})}).reverse()},kn=function(){var dn=Math.round(Gi*(te[0]/100)),Fn=100/Gi,hi=0;return new Array(Gi).fill(null).map(function(Me,In){var be=In<=dn-1?Nn[0]:qn,$e=be&&(0,ft.Z)(be)==="object"?"url(#".concat(Gr,")"):void 0,He=ae(mo,No,hi,Fn,Ei,Si,vi,be,"butt",jn,Jn);return hi+=(No-He.strokeDashoffset+Jn)*100/No,y.createElement("circle",{key:In,className:"".concat(Cn,"-circle-path"),r:Zr,cx:fr,cy:fr,stroke:$e,strokeWidth:jn,opacity:1,style:He,ref:function(tn){xn[In]=tn}})})};return y.createElement("svg",(0,Q.Z)({className:I()("".concat(Cn,"-circle"),ui),viewBox:"0 0 ".concat(yt," ").concat(yt),style:Ji,id:Ne,role:"presentation"},D),!Gi&&y.createElement("circle",{className:"".concat(Cn,"-circle-trail"),r:Zr,cx:fr,cy:fr,stroke:qn,strokeLinecap:Ft,strokeWidth:On||jn,style:qe}),Gi?kn():Gn())},we=ge,pe={Line:Mt,Circle:we},ln=h(6848),zt=h(93398);function nt(Bt){return!Bt||Bt<0?0:Bt>100?100:Bt}function it(Bt){let{success:xe,successPercent:ze}=Bt,Ne=ze;return xe&&"progress"in xe&&(Ne=xe.progress),xe&&"percent"in xe&&(Ne=xe.percent),Ne}const Te=Bt=>{let{percent:xe,success:ze,successPercent:Ne}=Bt;const Cn=nt(it({success:ze,successPercent:Ne}));return[Cn,nt(nt(xe)-Cn)]},Ae=Bt=>{let{success:xe={},strokeColor:ze}=Bt;const{strokeColor:Ne}=xe;return[Ne||zt.presetPrimaryColors.green,ze||null]},de=(Bt,xe,ze)=>{var Ne,Cn,En,jn;let On=-1,ci=-1;if(xe==="step"){const Si=ze.steps,vi=ze.strokeWidth;typeof Bt=="string"||typeof Bt=="undefined"?(On=Bt==="small"?2:14,ci=vi!=null?vi:8):typeof Bt=="number"?[On,ci]=[Bt,Bt]:[On=14,ci=8]=Bt,On*=Si}else if(xe==="line"){const Si=ze==null?void 0:ze.strokeWidth;typeof Bt=="string"||typeof Bt=="undefined"?ci=Si||(Bt==="small"?6:8):typeof Bt=="number"?[On,ci]=[Bt,Bt]:[On=-1,ci=8]=Bt}else(xe==="circle"||xe==="dashboard")&&(typeof Bt=="string"||typeof Bt=="undefined"?[On,ci]=Bt==="small"?[60,60]:[120,120]:typeof Bt=="number"?[On,ci]=[Bt,Bt]:(On=(Cn=(Ne=Bt[0])!==null&&Ne!==void 0?Ne:Bt[1])!==null&&Cn!==void 0?Cn:120,ci=(jn=(En=Bt[0])!==null&&En!==void 0?En:Bt[1])!==null&&jn!==void 0?jn:120));return[On,ci]},en=3,vn=Bt=>en/Bt*100;var gn=Bt=>{const{prefixCls:xe,trailColor:ze=null,strokeLinecap:Ne="round",gapPosition:Cn,gapDegree:En,width:jn=120,type:On,children:ci,success:Si,size:vi=jn}=Bt,[qn,an]=de(vi,"circle");let{strokeWidth:Ji}=Bt;Ji===void 0&&(Ji=Math.max(vn(qn),6));const ui={width:qn,height:an,fontSize:qn*.15+6},lr=y.useMemo(()=>{if(En||En===0)return En;if(On==="dashboard")return 75},[En,On]),Di=Cn||On==="dashboard"&&"bottom"||void 0,D=Object.prototype.toString.call(Bt.strokeColor)==="[object Object]",fr=Ae({success:Si,strokeColor:Bt.strokeColor}),er=I()(`${xe}-inner`,{[`${xe}-circle-gradient`]:D}),Gr=y.createElement(we,{percent:Te(Bt),strokeWidth:Ji,trailWidth:Ji,strokeColor:fr,strokeLinecap:Ne,trailColor:ze,prefixCls:xe,gapDegree:lr,gapPosition:Di});return y.createElement("div",{className:er,style:ui},qn<=20?y.createElement(ln.Z,{title:ci},y.createElement("span",null,Gr)):y.createElement(y.Fragment,null,Gr,ci))},_n=function(Bt,xe){var ze={};for(var Ne in Bt)Object.prototype.hasOwnProperty.call(Bt,Ne)&&xe.indexOf(Ne)<0&&(ze[Ne]=Bt[Ne]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Cn=0,Ne=Object.getOwnPropertySymbols(Bt);Cn<Ne.length;Cn++)xe.indexOf(Ne[Cn])<0&&Object.prototype.propertyIsEnumerable.call(Bt,Ne[Cn])&&(ze[Ne[Cn]]=Bt[Ne[Cn]]);return ze};const $n=Bt=>{let xe=[];return Object.keys(Bt).forEach(ze=>{const Ne=parseFloat(ze.replace(/%/g,""));isNaN(Ne)||xe.push({key:Ne,value:Bt[ze]})}),xe=xe.sort((ze,Ne)=>ze.key-Ne.key),xe.map(ze=>{let{key:Ne,value:Cn}=ze;return`${Cn} ${Ne}%`}).join(", ")},fn=(Bt,xe)=>{const{from:ze=zt.presetPrimaryColors.blue,to:Ne=zt.presetPrimaryColors.blue,direction:Cn=xe==="rtl"?"to left":"to right"}=Bt,En=_n(Bt,["from","to","direction"]);if(Object.keys(En).length!==0){const jn=$n(En);return{backgroundImage:`linear-gradient(${Cn}, ${jn})`}}return{backgroundImage:`linear-gradient(${Cn}, ${ze}, ${Ne})`}};var ct=Bt=>{const{prefixCls:xe,direction:ze,percent:Ne,size:Cn,strokeWidth:En,strokeColor:jn,strokeLinecap:On="round",children:ci,trailColor:Si=null,success:vi}=Bt,qn=jn&&typeof jn!="string"?fn(jn,ze):{backgroundColor:jn},an=On==="square"||On==="butt"?0:void 0,Ji={backgroundColor:Si||void 0,borderRadius:an},ui=Cn!=null?Cn:[-1,En||(Cn==="small"?6:8)],[lr,Di]=de(ui,"line",{strokeWidth:En}),D=Object.assign({width:`${nt(Ne)}%`,height:Di,borderRadius:an},qn),fr=it(Bt),er={width:`${nt(fr)}%`,height:Di,borderRadius:an,backgroundColor:vi==null?void 0:vi.strokeColor},Gr={width:lr<0?"100%":lr,height:Di};return y.createElement(y.Fragment,null,y.createElement("div",{className:`${xe}-outer`,style:Gr},y.createElement("div",{className:`${xe}-inner`,style:Ji},y.createElement("div",{className:`${xe}-bg`,style:D}),fr!==void 0?y.createElement("div",{className:`${xe}-success-bg`,style:er}):null)),ci)},k=Bt=>{const{size:xe,steps:ze,percent:Ne=0,strokeWidth:Cn=8,strokeColor:En,trailColor:jn=null,prefixCls:On,children:ci}=Bt,Si=Math.round(ze*(Ne/100)),vi=xe==="small"?2:14,qn=xe!=null?xe:[vi,Cn],[an,Ji]=de(qn,"step",{steps:ze,strokeWidth:Cn}),ui=an/ze,lr=new Array(ze);for(let Di=0;Di<ze;Di++){const D=Array.isArray(En)?En[Di]:En;lr[Di]=y.createElement("div",{key:Di,className:I()(`${On}-steps-item`,{[`${On}-steps-item-active`]:Di<=Si-1}),style:{backgroundColor:Di<=Si-1?D:jn,width:ui,height:Ji}})}return y.createElement("div",{className:`${On}-steps-outer`},lr,ci)},z=h(93083),G=h(17313),T=h(83116),St=h(37613);const fe=Bt=>{const xe=Bt?"100%":"-100%";return new z.Keyframes(`antProgress${Bt?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${xe}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${xe}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Ct=Bt=>{const{componentCls:xe,iconCls:ze}=Bt;return{[xe]:Object.assign(Object.assign({},(0,G.Wf)(Bt)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Bt.fontSize,marginInlineEnd:Bt.marginXS,marginBottom:Bt.marginXS},[`${xe}-outer`]:{display:"inline-block",width:"100%"},[`&${xe}-show-info`]:{[`${xe}-outer`]:{marginInlineEnd:`calc(-2em - ${Bt.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Bt.paddingXS}px)`}},[`${xe}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Bt.remainingColor,borderRadius:Bt.lineBorderRadius},[`${xe}-inner:not(${xe}-circle-gradient)`]:{[`${xe}-circle-path`]:{stroke:Bt.defaultColor}},[`${xe}-success-bg, ${xe}-bg`]:{position:"relative",backgroundColor:Bt.defaultColor,borderRadius:Bt.lineBorderRadius,transition:`all ${Bt.motionDurationSlow} ${Bt.motionEaseInOutCirc}`},[`${xe}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Bt.colorSuccess},[`${xe}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Bt.marginXS,color:Bt.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[ze]:{fontSize:Bt.fontSize}},[`&${xe}-status-active`]:{[`${xe}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Bt.colorBgContainer,borderRadius:Bt.lineBorderRadius,opacity:0,animationName:fe(),animationDuration:Bt.progressActiveMotionDuration,animationTimingFunction:Bt.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${xe}-rtl${xe}-status-active`]:{[`${xe}-bg::before`]:{animationName:fe(!0)}},[`&${xe}-status-exception`]:{[`${xe}-bg`]:{backgroundColor:Bt.colorError},[`${xe}-text`]:{color:Bt.colorError}},[`&${xe}-status-exception ${xe}-inner:not(${xe}-circle-gradient)`]:{[`${xe}-circle-path`]:{stroke:Bt.colorError}},[`&${xe}-status-success`]:{[`${xe}-bg`]:{backgroundColor:Bt.colorSuccess},[`${xe}-text`]:{color:Bt.colorSuccess}},[`&${xe}-status-success ${xe}-inner:not(${xe}-circle-gradient)`]:{[`${xe}-circle-path`]:{stroke:Bt.colorSuccess}}})}},xt=Bt=>{const{componentCls:xe,iconCls:ze}=Bt;return{[xe]:{[`${xe}-circle-trail`]:{stroke:Bt.remainingColor},[`&${xe}-circle ${xe}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${xe}-circle ${xe}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Bt.circleTextColor,fontSize:Bt.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[ze]:{fontSize:`${Bt.fontSize/Bt.fontSizeSM}em`}},[`${xe}-circle&-status-exception`]:{[`${xe}-text`]:{color:Bt.colorError}},[`${xe}-circle&-status-success`]:{[`${xe}-text`]:{color:Bt.colorSuccess}}},[`${xe}-inline-circle`]:{lineHeight:1,[`${xe}-inner`]:{verticalAlign:"bottom"}}}},Dt=Bt=>{const{componentCls:xe}=Bt;return{[xe]:{[`${xe}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Bt.progressStepMinWidth,marginInlineEnd:Bt.progressStepMarginInlineEnd,backgroundColor:Bt.remainingColor,transition:`all ${Bt.motionDurationSlow}`,"&-active":{backgroundColor:Bt.defaultColor}}}}}},qt=Bt=>{const{componentCls:xe,iconCls:ze}=Bt;return{[xe]:{[`${xe}-small&-line, ${xe}-small&-line ${xe}-text ${ze}`]:{fontSize:Bt.fontSizeSM}}}};var _t=(0,T.Z)("Progress",Bt=>{const xe=Bt.marginXXS/2,ze=(0,St.TS)(Bt,{progressStepMarginInlineEnd:xe,progressStepMinWidth:xe,progressActiveMotionDuration:"2.4s"});return[Ct(ze),xt(ze),Dt(ze),qt(ze)]},Bt=>({circleTextColor:Bt.colorText,defaultColor:Bt.colorInfo,remainingColor:Bt.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),ve=function(Bt,xe){var ze={};for(var Ne in Bt)Object.prototype.hasOwnProperty.call(Bt,Ne)&&xe.indexOf(Ne)<0&&(ze[Ne]=Bt[Ne]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Cn=0,Ne=Object.getOwnPropertySymbols(Bt);Cn<Ne.length;Cn++)xe.indexOf(Ne[Cn])<0&&Object.prototype.propertyIsEnumerable.call(Bt,Ne[Cn])&&(ze[Ne[Cn]]=Bt[Ne[Cn]]);return ze};const Ge=null,Ke=["normal","exception","active","success"];var Ve=y.forwardRef((Bt,xe)=>{const{prefixCls:ze,className:Ne,rootClassName:Cn,steps:En,strokeColor:jn,percent:On=0,size:ci="default",showInfo:Si=!0,type:vi="line",status:qn,format:an,style:Ji}=Bt,ui=ve(Bt,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),lr=y.useMemo(()=>{var te,Nn;const Bn=it(Bt);return parseInt(Bn!==void 0?(te=Bn!=null?Bn:0)===null||te===void 0?void 0:te.toString():(Nn=On!=null?On:0)===null||Nn===void 0?void 0:Nn.toString(),10)},[On,Bt.success,Bt.successPercent]),Di=y.useMemo(()=>!Ke.includes(qn)&&lr>=100?"success":qn||"normal",[qn,lr]),{getPrefixCls:D,direction:fr,progress:er}=y.useContext(rt.E_),Gr=D("progress",ze),[Zr,mo]=_t(Gr),Ei=y.useMemo(()=>{if(!Si)return null;const te=it(Bt);let Nn;const Bn=an||(Ft=>`${Ft}%`),oe=vi==="line";return an||Di!=="exception"&&Di!=="success"?Nn=Bn(nt(On),nt(te)):Di==="exception"?Nn=oe?y.createElement(B.Z,null):y.createElement(_.Z,null):Di==="success"&&(Nn=oe?y.createElement(N.Z,null):y.createElement(O.Z,null)),y.createElement("span",{className:`${Gr}-text`,title:typeof Nn=="string"?Nn:void 0},Nn)},[Si,On,lr,Di,vi,Gr,an]),No=Array.isArray(jn)?jn[0]:jn,Ir=typeof jn=="string"||Array.isArray(jn)?jn:void 0;let Gi;vi==="line"?Gi=En?y.createElement(k,Object.assign({},Bt,{strokeColor:Ir,prefixCls:Gr,steps:En}),Ei):y.createElement(ct,Object.assign({},Bt,{strokeColor:No,prefixCls:Gr,direction:fr}),Ei):(vi==="circle"||vi==="dashboard")&&(Gi=y.createElement(gn,Object.assign({},Bt,{strokeColor:No,prefixCls:Gr,progressStatus:Di}),Ei));const Jn=I()(Gr,`${Gr}-status-${Di}`,`${Gr}-${vi==="dashboard"&&"circle"||En&&"steps"||vi}`,{[`${Gr}-inline-circle`]:vi==="circle"&&de(ci,"circle")[0]<=20,[`${Gr}-show-info`]:Si,[`${Gr}-${ci}`]:typeof ci=="string",[`${Gr}-rtl`]:fr==="rtl"},er==null?void 0:er.className,Ne,Cn,mo);return Zr(y.createElement("div",Object.assign({ref:xe,style:Object.assign(Object.assign({},er==null?void 0:er.style),Ji),className:Jn,role:"progressbar","aria-valuenow":lr},(0,dt.Z)(ui,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Gi))}),Qe=Ve},57809:function(V,w,h){"use strict";var y=h(92310),N=h.n(y),O=h(77861),B=h(2738),_=h(59301),K=h(53487),I=h(62892),dt=h(19080),rt=h(36355),Q=h(1684),kt=h(93891),Y=h(19716),Yt=h(32441),At=h(33234),vt=h(14154),Tt=h(58582),Mt=h(84443),ft=h(66339),It=function(Rt,Lt){var Kt={};for(var Qt in Rt)Object.prototype.hasOwnProperty.call(Rt,Qt)&&Lt.indexOf(Qt)<0&&(Kt[Qt]=Rt[Qt]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,Qt=Object.getOwnPropertySymbols(Rt);ie<Qt.length;ie++)Lt.indexOf(Qt[ie])<0&&Object.prototype.propertyIsEnumerable.call(Rt,Qt[ie])&&(Kt[Qt[ie]]=Rt[Qt[ie]]);return Kt};const $t="SECRET_COMBOBOX_MODE_DO_NOT_USE",Nt=(Rt,Lt)=>{var Kt,{prefixCls:Qt,bordered:ie=!0,className:yt,rootClassName:ae,getPopupContainer:Ht,popupClassName:Pe,dropdownClassName:ge,listHeight:we=256,placement:pe,listItemHeight:ln=24,size:zt,disabled:nt,notFoundContent:it,status:Te,builtinPlacements:Ae,dropdownMatchSelectWidth:de,popupMatchSelectWidth:en,direction:vn,style:Xn,allowClear:gn}=Rt,_n=It(Rt,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:$n,getPrefixCls:fn,renderEmpty:hn,direction:ct,virtual:L,popupMatchSelectWidth:k,popupOverflow:z,select:G}=_.useContext(rt.E_),T=fn("select",Qt),St=fn(),fe=vn!=null?vn:ct,{compactSize:Ct,compactItemClassnames:xt}=(0,At.ri)(T,fe),[Dt,qt]=(0,vt.Z)(T),_t=_.useMemo(()=>{const{mode:Di}=_n;if(Di!=="combobox")return Di===$t?"combobox":Di},[_n.mode]),ve=_t==="multiple"||_t==="tags",Ge=(0,Mt.Z)(_n.suffixIcon,_n.showArrow),Ke=(Kt=en!=null?en:de)!==null&&Kt!==void 0?Kt:k,{status:Ce,hasFeedback:Ve,isFormItemInput:Qe,feedbackIcon:Bt}=_.useContext(Yt.aM),xe=(0,dt.F)(Ce,Te);let ze;it!==void 0?ze=it:_t==="combobox"?ze=null:ze=(hn==null?void 0:hn("Select"))||_.createElement(kt.Z,{componentName:"Select"});const{suffixIcon:Ne,itemIcon:Cn,removeIcon:En,clearIcon:jn}=(0,ft.Z)(Object.assign(Object.assign({},_n),{multiple:ve,hasFeedback:Ve,feedbackIcon:Bt,showSuffixIcon:Ge,prefixCls:T,showArrow:_n.showArrow,componentName:"Select"})),On=gn===!0?{clearIcon:jn}:gn,ci=(0,B.Z)(_n,["suffixIcon","itemIcon"]),Si=N()(Pe||ge,{[`${T}-dropdown-${fe}`]:fe==="rtl"},ae,qt),vi=(0,Y.Z)(Di=>{var D;return(D=zt!=null?zt:Ct)!==null&&D!==void 0?D:Di}),qn=_.useContext(Q.Z),an=nt!=null?nt:qn,Ji=N()({[`${T}-lg`]:vi==="large",[`${T}-sm`]:vi==="small",[`${T}-rtl`]:fe==="rtl",[`${T}-borderless`]:!ie,[`${T}-in-form-item`]:Qe},(0,dt.Z)(T,xe,Ve),xt,G==null?void 0:G.className,yt,ae,qt),ui=_.useMemo(()=>pe!==void 0?pe:fe==="rtl"?"bottomRight":"bottomLeft",[pe,fe]),lr=(0,Tt.Z)(Ae,z);return Dt(_.createElement(O.ZP,Object.assign({ref:Lt,virtual:L,showSearch:G==null?void 0:G.showSearch},ci,{style:Object.assign(Object.assign({},G==null?void 0:G.style),Xn),dropdownMatchSelectWidth:Ke,builtinPlacements:lr,transitionName:(0,I.m)(St,"slide-up",_n.transitionName),listHeight:we,listItemHeight:ln,mode:_t,prefixCls:T,placement:ui,direction:fe,suffixIcon:Ne,menuItemSelectedIcon:Cn,removeIcon:En,allowClear:On,notFoundContent:ze,className:Ji,getPopupContainer:Ht||$n,dropdownClassName:Si,disabled:an})))},Ut=_.forwardRef(Nt),et=(0,K.Z)(Ut);Ut.SECRET_COMBOBOX_MODE_DO_NOT_USE=$t,Ut.Option=O.Wx,Ut.OptGroup=O.Xo,Ut._InternalPanelDoNotUseOrYouWillBeFired=et,w.default=Ut},14154:function(V,w,h){"use strict";h.d(w,{Z:function(){return Ut}});var y=h(17313),N=h(74207),O=h(37613),B=h(83116),_=h(13826),K=h(92899);const I=et=>{const{optionHeight:Rt,optionFontSize:Lt,optionLineHeight:Kt,optionPadding:Qt}=et;return{position:"relative",display:"block",minHeight:Rt,padding:Qt,color:et.colorText,fontWeight:"normal",fontSize:Lt,lineHeight:Kt,boxSizing:"border-box"}};var rt=et=>{const{antCls:Rt,componentCls:Lt}=et,Kt=`${Lt}-item`,Qt=`&${Rt}-slide-up-enter${Rt}-slide-up-enter-active`,ie=`&${Rt}-slide-up-appear${Rt}-slide-up-appear-active`,yt=`&${Rt}-slide-up-leave${Rt}-slide-up-leave-active`,ae=`${Lt}-dropdown-placement-`;return[{[`${Lt}-dropdown`]:Object.assign(Object.assign({},(0,y.Wf)(et)),{position:"absolute",top:-9999,zIndex:et.zIndexPopup,boxSizing:"border-box",padding:et.paddingXXS,overflow:"hidden",fontSize:et.fontSize,fontVariant:"initial",backgroundColor:et.colorBgElevated,borderRadius:et.borderRadiusLG,outline:"none",boxShadow:et.boxShadowSecondary,[`
|
|
|
${Qt}${ae}bottomLeft,
|
|
|
${ie}${ae}bottomLeft
|
|
|
`]:{animationName:_.fJ},[`
|
|
|
${Qt}${ae}topLeft,
|
|
|
${ie}${ae}topLeft,
|
|
|
${Qt}${ae}topRight,
|
|
|
${ie}${ae}topRight
|
|
|
`]:{animationName:_.Qt},[`${yt}${ae}bottomLeft`]:{animationName:_.Uw},[`
|
|
|
${yt}${ae}topLeft,
|
|
|
${yt}${ae}topRight
|
|
|
`]:{animationName:_.ly},"&-hidden":{display:"none"},[`${Kt}`]:Object.assign(Object.assign({},I(et)),{cursor:"pointer",transition:`background ${et.motionDurationSlow} ease`,borderRadius:et.borderRadiusSM,"&-group":{color:et.colorTextDescription,fontSize:et.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},y.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Kt}-option-disabled)`]:{backgroundColor:et.optionActiveBg},[`&-selected:not(${Kt}-option-disabled)`]:{color:et.optionSelectedColor,fontWeight:et.optionSelectedFontWeight,backgroundColor:et.optionSelectedBg,[`${Kt}-option-state`]:{color:et.colorPrimary}},"&-disabled":{[`&${Kt}-option-selected`]:{backgroundColor:et.colorBgContainerDisabled},color:et.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:et.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,_.oN)(et,"slide-up"),(0,_.oN)(et,"slide-down"),(0,K.Fm)(et,"move-up"),(0,K.Fm)(et,"move-down")]};const Q=2,kt=et=>{let{controlHeightSM:Rt,controlHeight:Lt,lineWidth:Kt}=et;const Qt=(Lt-Rt)/2-Kt,ie=Math.ceil(Qt/2);return[Qt,ie]};function Y(et,Rt){const{componentCls:Lt,iconCls:Kt}=et,Qt=`${Lt}-selection-overflow`,ie=et.multipleSelectItemHeight,[yt]=kt(et),ae=Rt?`${Lt}-${Rt}`:"";return{[`${Lt}-multiple${ae}`]:{fontSize:et.fontSize,[Qt]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Lt}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${yt-Q}px ${Q*2}px`,borderRadius:et.borderRadius,[`${Lt}-show-search&`]:{cursor:"text"},[`${Lt}-disabled&`]:{background:et.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Q}px 0`,lineHeight:`${ie}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${Lt}-show-arrow ${Lt}-selector,
|
|
|
&${Lt}-allow-clear ${Lt}-selector
|
|
|
`]:{paddingInlineEnd:et.fontSizeIcon+et.controlPaddingHorizontal},[`${Lt}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:ie,marginTop:Q,marginBottom:Q,lineHeight:`${ie-et.lineWidth*2}px`,background:et.multipleItemBg,border:`${et.lineWidth}px ${et.lineType} ${et.multipleItemBorderColor}`,borderRadius:et.borderRadiusSM,cursor:"default",transition:`font-size ${et.motionDurationSlow}, line-height ${et.motionDurationSlow}, height ${et.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Q*2,paddingInlineStart:et.paddingXS,paddingInlineEnd:et.paddingXS/2,[`${Lt}-disabled&`]:{color:et.multipleItemColorDisabled,borderColor:et.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:et.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,y.Ro)()),{display:"inline-flex",alignItems:"center",color:et.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Kt}`]:{verticalAlign:"-0.2em"},"&:hover":{color:et.colorIconHover}})},[`${Qt}-item + ${Qt}-item`]:{[`${Lt}-selection-search`]:{marginInlineStart:0}},[`${Lt}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:et.inputPaddingHorizontalBase-yt,"\n &-input,\n &-mirror\n ":{height:ie,fontFamily:et.fontFamily,lineHeight:`${ie}px`,transition:`all ${et.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Lt}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:et.inputPaddingHorizontalBase,insetInlineEnd:et.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${et.motionDurationSlow}`}}}}var At=et=>{const{componentCls:Rt}=et,Lt=(0,O.TS)(et,{controlHeight:et.controlHeightSM,multipleSelectItemHeight:et.controlHeightXS,borderRadius:et.borderRadiusSM,borderRadiusSM:et.borderRadiusXS}),Kt=(0,O.TS)(et,{fontSize:et.fontSizeLG,controlHeight:et.controlHeightLG,multipleSelectItemHeight:et.multipleItemHeightLG,borderRadius:et.borderRadiusLG,borderRadiusSM:et.borderRadius}),[,Qt]=kt(et);return[Y(et),Y(Lt,"sm"),{[`${Rt}-multiple${Rt}-sm`]:{[`${Rt}-selection-placeholder`]:{insetInline:et.controlPaddingHorizontalSM-et.lineWidth},[`${Rt}-selection-search`]:{marginInlineStart:Qt}}},Y(Kt,"lg")]};function vt(et,Rt){const{componentCls:Lt,inputPaddingHorizontalBase:Kt,borderRadius:Qt}=et,ie=et.controlHeight-et.lineWidth*2,yt=Math.ceil(et.fontSize*1.25),ae=Rt?`${Lt}-${Rt}`:"";return{[`${Lt}-single${ae}`]:{fontSize:et.fontSize,[`${Lt}-selector`]:Object.assign(Object.assign({},(0,y.Wf)(et)),{display:"flex",borderRadius:Qt,[`${Lt}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Kt,insetInlineEnd:Kt,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${Lt}-selection-item,
|
|
|
${Lt}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${ie}px`,transition:`all ${et.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${ie}px`}},[`${Lt}-selection-item`]:{position:"relative",userSelect:"none"},[`${Lt}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Lt}-selection-item:after`,`${Lt}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${Lt}-show-arrow ${Lt}-selection-item,
|
|
|
&${Lt}-show-arrow ${Lt}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:yt},[`&${Lt}-open ${Lt}-selection-item`]:{color:et.colorTextPlaceholder},[`&:not(${Lt}-customize-input)`]:{[`${Lt}-selector`]:{width:"100%",height:et.controlHeight,padding:`0 ${Kt}px`,[`${Lt}-selection-search-input`]:{height:ie},"&:after":{lineHeight:`${ie}px`}}},[`&${Lt}-customize-input`]:{[`${Lt}-selector`]:{"&:after":{display:"none"},[`${Lt}-selection-search`]:{position:"static",width:"100%"},[`${Lt}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Kt}px`,"&:after":{display:"none"}}}}}}}function Tt(et){const{componentCls:Rt}=et,Lt=et.controlPaddingHorizontalSM-et.lineWidth;return[vt(et),vt((0,O.TS)(et,{controlHeight:et.controlHeightSM,borderRadius:et.borderRadiusSM}),"sm"),{[`${Rt}-single${Rt}-sm`]:{[`&:not(${Rt}-customize-input)`]:{[`${Rt}-selection-search`]:{insetInlineStart:Lt,insetInlineEnd:Lt},[`${Rt}-selector`]:{padding:`0 ${Lt}px`},[`&${Rt}-show-arrow ${Rt}-selection-search`]:{insetInlineEnd:Lt+et.fontSize*1.5},[`
|
|
|
&${Rt}-show-arrow ${Rt}-selection-item,
|
|
|
&${Rt}-show-arrow ${Rt}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:et.fontSize*1.5}}}},vt((0,O.TS)(et,{controlHeight:et.singleItemHeightLG,fontSize:et.fontSizeLG,borderRadius:et.borderRadiusLG}),"lg")]}const Mt=et=>{const{componentCls:Rt,selectorBg:Lt}=et;return{position:"relative",backgroundColor:Lt,border:`${et.lineWidth}px ${et.lineType} ${et.colorBorder}`,transition:`all ${et.motionDurationMid} ${et.motionEaseInOut}`,input:{cursor:"pointer"},[`${Rt}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Rt}-disabled&`]:{color:et.colorTextDisabled,background:et.colorBgContainerDisabled,cursor:"not-allowed",[`${Rt}-multiple&`]:{background:et.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},ft=function(et,Rt){let Lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Kt,borderHoverColor:Qt,outlineColor:ie,antCls:yt}=Rt,ae=Lt?{[`${Kt}-selector`]:{borderColor:Qt}}:{};return{[et]:{[`&:not(${Kt}-disabled):not(${Kt}-customize-input):not(${yt}-pagination-size-changer)`]:Object.assign(Object.assign({},ae),{[`${Kt}-focused& ${Kt}-selector`]:{borderColor:Qt,boxShadow:`0 0 0 ${Rt.controlOutlineWidth}px ${ie}`,outline:0},[`&:hover ${Kt}-selector`]:{borderColor:Qt}})}}},It=et=>{const{componentCls:Rt}=et;return{[`${Rt}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},$t=et=>{const{componentCls:Rt,inputPaddingHorizontalBase:Lt,iconCls:Kt}=et;return{[Rt]:Object.assign(Object.assign({},(0,y.Wf)(et)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Rt}-customize-input) ${Rt}-selector`]:Object.assign(Object.assign({},Mt(et)),It(et)),[`${Rt}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},y.vS),[`${Rt}-selection-placeholder`]:Object.assign(Object.assign({},y.vS),{flex:1,color:et.colorTextPlaceholder,pointerEvents:"none"}),[`${Rt}-arrow`]:Object.assign(Object.assign({},(0,y.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Lt,height:et.fontSizeIcon,marginTop:-et.fontSizeIcon/2,color:et.colorTextQuaternary,fontSize:et.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[Kt]:{verticalAlign:"top",transition:`transform ${et.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Rt}-suffix)`]:{pointerEvents:"auto"}},[`${Rt}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Rt}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Lt,zIndex:1,display:"inline-block",width:et.fontSizeIcon,height:et.fontSizeIcon,marginTop:-et.fontSizeIcon/2,color:et.colorTextQuaternary,fontSize:et.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:et.clearBg,cursor:"pointer",opacity:0,transition:`color ${et.motionDurationMid} ease, opacity ${et.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:et.colorTextTertiary}},"&:hover":{[`${Rt}-clear`]:{opacity:1}}}),[`${Rt}-has-feedback`]:{[`${Rt}-clear`]:{insetInlineEnd:Lt+et.fontSize+et.paddingXS}}}},Nt=et=>{const{componentCls:Rt}=et;return[{[Rt]:{[`&-borderless ${Rt}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Rt}-in-form-item`]:{width:"100%"}}},$t(et),Tt(et),At(et),rt(et),{[`${Rt}-rtl`]:{direction:"rtl"}},ft(Rt,(0,O.TS)(et,{borderHoverColor:et.colorPrimaryHover,outlineColor:et.controlOutline})),ft(`${Rt}-status-error`,(0,O.TS)(et,{borderHoverColor:et.colorErrorHover,outlineColor:et.colorErrorOutline}),!0),ft(`${Rt}-status-warning`,(0,O.TS)(et,{borderHoverColor:et.colorWarningHover,outlineColor:et.colorWarningOutline}),!0),(0,N.c)(et,{borderElCls:`${Rt}-selector`,focusElCls:`${Rt}-focused`})]};var Ut=(0,B.Z)("Select",(et,Rt)=>{let{rootPrefixCls:Lt}=Rt;const Kt=(0,O.TS)(et,{rootPrefixCls:Lt,inputPaddingHorizontalBase:et.paddingSM-1,multipleSelectItemHeight:et.multipleItemHeight});return[Nt(Kt)]},et=>{const{fontSize:Rt,lineHeight:Lt,controlHeight:Kt,controlPaddingHorizontal:Qt,zIndexPopupBase:ie,colorText:yt,fontWeightStrong:ae,controlItemBgActive:Ht,controlItemBgHover:Pe,colorBgContainer:ge,colorFillSecondary:we,controlHeightLG:pe,controlHeightSM:ln,colorBgContainerDisabled:zt,colorTextDisabled:nt}=et;return{zIndexPopup:ie+50,optionSelectedColor:yt,optionSelectedFontWeight:ae,optionSelectedBg:Ht,optionActiveBg:Pe,optionPadding:`${(Kt-Rt*Lt)/2}px ${Qt}px`,optionFontSize:Rt,optionLineHeight:Lt,optionHeight:Kt,selectorBg:ge,clearBg:ge,singleItemHeightLG:pe,multipleItemBg:we,multipleItemBorderColor:"transparent",multipleItemHeight:ln,multipleItemHeightLG:Kt,multipleSelectorBgDisabled:zt,multipleItemColorDisabled:nt,multipleItemBorderColorDisabled:"transparent"}})},58582:function(V,w,h){"use strict";h.d(w,{Z:function(){return N}});const y=O=>{const _={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:O==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},_),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},_),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},_),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},_),{points:["br","tr"],offset:[0,-4]})}};function N(O,B){return O||y(B)}},84443:function(V,w,h){"use strict";h.d(w,{Z:function(){return y}});function y(N,O){return O!==void 0?O:N!==null}},66339:function(V,w,h){"use strict";h.d(w,{Z:function(){return dt}});var y=h(40001),N=h(19248),O=h(99267),B=h(84105),_=h(58617),K=h(47472),I=h(59301);function dt(rt){let{suffixIcon:Q,clearIcon:kt,menuItemSelectedIcon:Y,removeIcon:Yt,loading:At,multiple:vt,hasFeedback:Tt,prefixCls:Mt,showSuffixIcon:ft,feedbackIcon:It,showArrow:$t,componentName:Nt}=rt;const Ut=kt!=null?kt:I.createElement(N.Z,null),et=Qt=>Q===null&&!Tt&&!$t?null:I.createElement(I.Fragment,null,ft!==!1&&Qt,Tt&&It);let Rt=null;if(Q!==void 0)Rt=et(Q);else if(At)Rt=et(I.createElement(_.Z,{spin:!0}));else{const Qt=`${Mt}-suffix`;Rt=ie=>{let{open:yt,showSearch:ae}=ie;return et(yt&&ae?I.createElement(K.Z,{className:Qt}):I.createElement(B.Z,{className:Qt}))}}let Lt=null;Y!==void 0?Lt=Y:vt?Lt=I.createElement(y.Z,null):Lt=null;let Kt=null;return Yt!==void 0?Kt=Yt:Kt=I.createElement(O.Z,null),{clearIcon:Ut,suffixIcon:Rt,itemIcon:Lt,removeIcon:Kt}}},81327:function(V,w,h){"use strict";h.d(w,{Z:function(){return Mt}});var y=h(59301),N=h(92310),O=h.n(N),B=h(11592),_=h(36355),K=h(33234);const I=y.createContext({latestIndex:0}),dt=I.Provider;var Q=ft=>{let{className:It,index:$t,children:Nt,split:Ut,style:et}=ft;const{latestIndex:Rt}=y.useContext(I);return Nt==null?null:y.createElement(y.Fragment,null,y.createElement("div",{className:It,style:et},Nt),$t<Rt&&Ut&&y.createElement("span",{className:`${It}-split`},Ut))},kt=h(2856);function Y(ft){return["small","middle","large"].includes(ft)}function Yt(ft){return ft?typeof ft=="number"&&!Number.isNaN(ft):!1}var At=function(ft,It){var $t={};for(var Nt in ft)Object.prototype.hasOwnProperty.call(ft,Nt)&&It.indexOf(Nt)<0&&($t[Nt]=ft[Nt]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ut=0,Nt=Object.getOwnPropertySymbols(ft);Ut<Nt.length;Ut++)It.indexOf(Nt[Ut])<0&&Object.prototype.propertyIsEnumerable.call(ft,Nt[Ut])&&($t[Nt[Ut]]=ft[Nt[Ut]]);return $t};const Tt=y.forwardRef((ft,It)=>{var $t,Nt;const{getPrefixCls:Ut,space:et,direction:Rt}=y.useContext(_.E_),{size:Lt=(et==null?void 0:et.size)||"small",align:Kt,className:Qt,rootClassName:ie,children:yt,direction:ae="horizontal",prefixCls:Ht,split:Pe,style:ge,wrap:we=!1,classNames:pe,styles:ln}=ft,zt=At(ft,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[nt,it]=Array.isArray(Lt)?Lt:[Lt,Lt],Te=Y(it),Ae=Y(nt),de=Yt(it),en=Yt(nt),vn=(0,B.Z)(yt,{keepEmpty:!0}),Xn=Kt===void 0&&ae==="horizontal"?"center":Kt,gn=Ut("space",Ht),[_n,$n]=(0,kt.Z)(gn),fn=O()(gn,et==null?void 0:et.className,$n,`${gn}-${ae}`,{[`${gn}-rtl`]:Rt==="rtl",[`${gn}-align-${Xn}`]:Xn,[`${gn}-gap-row-${it}`]:Te,[`${gn}-gap-col-${nt}`]:Ae},Qt,ie),hn=O()(`${gn}-item`,($t=pe==null?void 0:pe.item)!==null&&$t!==void 0?$t:(Nt=et==null?void 0:et.classNames)===null||Nt===void 0?void 0:Nt.item);let ct=0;const L=vn.map((G,T)=>{var St,fe;G!=null&&(ct=T);const Ct=G&&G.key||`${hn}-${T}`;return y.createElement(Q,{className:hn,key:Ct,index:T,split:Pe,style:(St=ln==null?void 0:ln.item)!==null&&St!==void 0?St:(fe=et==null?void 0:et.styles)===null||fe===void 0?void 0:fe.item},G)}),k=y.useMemo(()=>({latestIndex:ct}),[ct]);if(vn.length===0)return null;const z={};return we&&(z.flexWrap="wrap"),!Ae&&en&&(z.columnGap=nt),!Te&&de&&(z.rowGap=it),_n(y.createElement("div",Object.assign({ref:It,className:fn,style:Object.assign(Object.assign(Object.assign({},z),et==null?void 0:et.style),ge)},zt),y.createElement(dt,{value:k},L)))});Tt.Compact=K.ZP;var Mt=Tt},15969:function(V,w,h){"use strict";h.d(w,{N:function(){return y}});const y=N=>({color:N.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${N.motionDurationSlow}`,"&:focus, &:hover":{color:N.colorLinkHover},"&:active":{color:N.colorLinkActive}})},78673:function(V,w,h){"use strict";h.d(w,{Z:function(){return ae}});var y=h(58617),N=h(92310),O=h.n(N),B=h(16378),_=h(78772),K=h(10859),I=h(61206),dt=h(59301),rt=h(18929),Q=h(10228),kt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Y=dt.forwardRef(function(Ht,Pe){var ge,we=Ht.prefixCls,pe=we===void 0?"rc-switch":we,ln=Ht.className,zt=Ht.checked,nt=Ht.defaultChecked,it=Ht.disabled,Te=Ht.loadingIcon,Ae=Ht.checkedChildren,de=Ht.unCheckedChildren,en=Ht.onClick,vn=Ht.onChange,Xn=Ht.onKeyDown,gn=(0,I.Z)(Ht,kt),_n=(0,rt.Z)(!1,{value:zt,defaultValue:nt}),$n=(0,K.Z)(_n,2),fn=$n[0],hn=$n[1];function ct(G,T){var St=fn;return it||(St=G,hn(St),vn==null||vn(St,T)),St}function L(G){G.which===Q.Z.LEFT?ct(!1,G):G.which===Q.Z.RIGHT&&ct(!0,G),Xn==null||Xn(G)}function k(G){var T=ct(!fn,G);en==null||en(T,G)}var z=O()(pe,ln,(ge={},(0,_.Z)(ge,"".concat(pe,"-checked"),fn),(0,_.Z)(ge,"".concat(pe,"-disabled"),it),ge));return dt.createElement("button",(0,B.Z)({},gn,{type:"button",role:"switch","aria-checked":fn,disabled:it,className:z,ref:Pe,onKeyDown:L,onClick:k}),Te,dt.createElement("span",{className:"".concat(pe,"-inner")},dt.createElement("span",{className:"".concat(pe,"-inner-checked")},Ae),dt.createElement("span",{className:"".concat(pe,"-inner-unchecked")},de)))});Y.displayName="Switch";var Yt=Y,At=h(14088),vt=h(36355),Tt=h(1684),Mt=h(19716),ft=h(64993),It=h(17313),$t=h(83116),Nt=h(37613);const Ut=Ht=>{const{componentCls:Pe,trackHeightSM:ge,trackPadding:we,trackMinWidthSM:pe,innerMinMarginSM:ln,innerMaxMarginSM:zt,handleSizeSM:nt}=Ht,it=`${Pe}-inner`;return{[Pe]:{[`&${Pe}-small`]:{minWidth:pe,height:ge,lineHeight:`${ge}px`,[`${Pe}-inner`]:{paddingInlineStart:zt,paddingInlineEnd:ln,[`${it}-checked`]:{marginInlineStart:`calc(-100% + ${nt+we*2}px - ${zt*2}px)`,marginInlineEnd:`calc(100% - ${nt+we*2}px + ${zt*2}px)`},[`${it}-unchecked`]:{marginTop:-ge,marginInlineStart:0,marginInlineEnd:0}},[`${Pe}-handle`]:{width:nt,height:nt},[`${Pe}-loading-icon`]:{top:(nt-Ht.switchLoadingIconSize)/2,fontSize:Ht.switchLoadingIconSize},[`&${Pe}-checked`]:{[`${Pe}-inner`]:{paddingInlineStart:ln,paddingInlineEnd:zt,[`${it}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${it}-unchecked`]:{marginInlineStart:`calc(100% - ${nt+we*2}px + ${zt*2}px)`,marginInlineEnd:`calc(-100% + ${nt+we*2}px - ${zt*2}px)`}},[`${Pe}-handle`]:{insetInlineStart:`calc(100% - ${nt+we}px)`}},[`&:not(${Pe}-disabled):active`]:{[`&:not(${Pe}-checked) ${it}`]:{[`${it}-unchecked`]:{marginInlineStart:Ht.marginXXS/2,marginInlineEnd:-Ht.marginXXS/2}},[`&${Pe}-checked ${it}`]:{[`${it}-checked`]:{marginInlineStart:-Ht.marginXXS/2,marginInlineEnd:Ht.marginXXS/2}}}}}}},et=Ht=>{const{componentCls:Pe,handleSize:ge}=Ht;return{[Pe]:{[`${Pe}-loading-icon${Ht.iconCls}`]:{position:"relative",top:(ge-Ht.fontSize)/2,color:Ht.switchLoadingIconColor,verticalAlign:"top"},[`&${Pe}-checked ${Pe}-loading-icon`]:{color:Ht.switchColor}}}},Rt=Ht=>{const{componentCls:Pe,motion:ge,trackPadding:we,handleBg:pe,handleShadow:ln,handleSize:zt}=Ht,nt=`${Pe}-handle`;return{[Pe]:{[nt]:{position:"absolute",top:we,insetInlineStart:we,width:zt,height:zt,transition:`all ${Ht.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:pe,borderRadius:zt/2,boxShadow:ln,transition:`all ${Ht.switchDuration} ease-in-out`,content:'""'}},[`&${Pe}-checked ${nt}`]:{insetInlineStart:`calc(100% - ${zt+we}px)`},[`&:not(${Pe}-disabled):active`]:ge?{[`${nt}::before`]:{insetInlineEnd:Ht.switchHandleActiveInset,insetInlineStart:0},[`&${Pe}-checked ${nt}::before`]:{insetInlineEnd:0,insetInlineStart:Ht.switchHandleActiveInset}}:{}}}},Lt=Ht=>{const{componentCls:Pe,trackHeight:ge,trackPadding:we,innerMinMargin:pe,innerMaxMargin:ln,handleSize:zt}=Ht,nt=`${Pe}-inner`;return{[Pe]:{[nt]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:ln,paddingInlineEnd:pe,transition:`padding-inline-start ${Ht.switchDuration} ease-in-out, padding-inline-end ${Ht.switchDuration} ease-in-out`,[`${nt}-checked, ${nt}-unchecked`]:{display:"block",color:Ht.colorTextLightSolid,fontSize:Ht.fontSizeSM,transition:`margin-inline-start ${Ht.switchDuration} ease-in-out, margin-inline-end ${Ht.switchDuration} ease-in-out`,pointerEvents:"none"},[`${nt}-checked`]:{marginInlineStart:`calc(-100% + ${zt+we*2}px - ${ln*2}px)`,marginInlineEnd:`calc(100% - ${zt+we*2}px + ${ln*2}px)`},[`${nt}-unchecked`]:{marginTop:-ge,marginInlineStart:0,marginInlineEnd:0}},[`&${Pe}-checked ${nt}`]:{paddingInlineStart:pe,paddingInlineEnd:ln,[`${nt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${nt}-unchecked`]:{marginInlineStart:`calc(100% - ${zt+we*2}px + ${ln*2}px)`,marginInlineEnd:`calc(-100% + ${zt+we*2}px - ${ln*2}px)`}},[`&:not(${Pe}-disabled):active`]:{[`&:not(${Pe}-checked) ${nt}`]:{[`${nt}-unchecked`]:{marginInlineStart:we*2,marginInlineEnd:-we*2}},[`&${Pe}-checked ${nt}`]:{[`${nt}-checked`]:{marginInlineStart:-we*2,marginInlineEnd:we*2}}}}}},Kt=Ht=>{const{componentCls:Pe,trackHeight:ge,trackMinWidth:we}=Ht;return{[Pe]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,It.Wf)(Ht)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:we,height:ge,lineHeight:`${ge}px`,verticalAlign:"middle",background:Ht.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Ht.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Pe}-disabled)`]:{background:Ht.colorTextTertiary}}),(0,It.Qy)(Ht)),{[`&${Pe}-checked`]:{background:Ht.switchColor,[`&:hover:not(${Pe}-disabled)`]:{background:Ht.colorPrimaryHover}},[`&${Pe}-loading, &${Pe}-disabled`]:{cursor:"not-allowed",opacity:Ht.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Pe}-rtl`]:{direction:"rtl"}})}};var Qt=(0,$t.Z)("Switch",Ht=>{const Pe=(0,Nt.TS)(Ht,{switchDuration:Ht.motionDurationMid,switchColor:Ht.colorPrimary,switchDisabledOpacity:Ht.opacityLoading,switchLoadingIconSize:Ht.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${Ht.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Kt(Pe),Lt(Pe),Rt(Pe),et(Pe),Ut(Pe)]},Ht=>{const{fontSize:Pe,lineHeight:ge,controlHeight:we,colorWhite:pe}=Ht,ln=Pe*ge,zt=we/2,nt=2,it=ln-nt*2,Te=zt-nt*2;return{trackHeight:ln,trackHeightSM:zt,trackMinWidth:it*2+nt*4,trackMinWidthSM:Te*2+nt*2,trackPadding:nt,handleBg:pe,handleSize:it,handleSizeSM:Te,handleShadow:`0 2px 4px 0 ${new ft.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:it/2,innerMaxMargin:it+nt+nt*2,innerMinMarginSM:Te/2,innerMaxMarginSM:Te+nt+nt*2}}),ie=function(Ht,Pe){var ge={};for(var we in Ht)Object.prototype.hasOwnProperty.call(Ht,we)&&Pe.indexOf(we)<0&&(ge[we]=Ht[we]);if(Ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,we=Object.getOwnPropertySymbols(Ht);pe<we.length;pe++)Pe.indexOf(we[pe])<0&&Object.prototype.propertyIsEnumerable.call(Ht,we[pe])&&(ge[we[pe]]=Ht[we[pe]]);return ge};const yt=dt.forwardRef((Ht,Pe)=>{const{prefixCls:ge,size:we,disabled:pe,loading:ln,className:zt,rootClassName:nt,style:it}=Ht,Te=ie(Ht,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Ae,direction:de,switch:en}=dt.useContext(vt.E_),vn=dt.useContext(Tt.Z),Xn=(pe!=null?pe:vn)||ln,gn=Ae("switch",ge),_n=dt.createElement("div",{className:`${gn}-handle`},ln&&dt.createElement(y.Z,{className:`${gn}-loading-icon`})),[$n,fn]=Qt(gn),hn=(0,Mt.Z)(we),ct=O()(en==null?void 0:en.className,{[`${gn}-small`]:hn==="small",[`${gn}-loading`]:ln,[`${gn}-rtl`]:de==="rtl"},zt,nt,fn),L=Object.assign(Object.assign({},en==null?void 0:en.style),it);return $n(dt.createElement(At.Z,{component:"Switch"},dt.createElement(Yt,Object.assign({},Te,{prefixCls:gn,className:ct,style:L,disabled:Xn,ref:Pe,loadingIcon:_n}))))});yt.__ANT_SWITCH=!0;var ae=yt},1710:function(V,w,h){"use strict";h.d(w,{default:function(){return Qc}});var y={},N="rc-table-internal-hook",O=h(10859),B=h(6089),_=h(34280),K=h(13697),I=h(59301),dt=h(4676);function rt(ht){var mt=I.createContext(void 0),ee=function(Se){var me=Se.value,Ye=Se.children,Ze=I.useRef(me);Ze.current=me;var _e=I.useState(function(){return{getValue:function(){return Ze.current},listeners:new Set}}),wn=(0,O.Z)(_e,1),An=wn[0];return(0,_.Z)(function(){(0,dt.unstable_batchedUpdates)(function(){An.listeners.forEach(function(Tn){Tn(me)})})},[me]),I.createElement(mt.Provider,{value:An},Ye)};return{Context:mt,Provider:ee,defaultValue:ht}}function Q(ht,mt){var ee=(0,B.Z)(typeof mt=="function"?mt:function(Tn){if(mt===void 0)return Tn;if(!Array.isArray(mt))return Tn[mt];var ii={};return mt.forEach(function(Vn){ii[Vn]=Tn[Vn]}),ii}),re=I.useContext(ht==null?void 0:ht.Context),Se=re||{},me=Se.listeners,Ye=Se.getValue,Ze=I.useRef();Ze.current=ee(re?Ye():ht==null?void 0:ht.defaultValue);var _e=I.useState({}),wn=(0,O.Z)(_e,2),An=wn[1];return(0,_.Z)(function(){if(!re)return;function Tn(ii){var Vn=ee(ii);(0,K.Z)(Ze.current,Vn,!0)||An({})}return me.add(Tn),function(){me.delete(Tn)}},[re]),Ze.current}var kt=h(16378),Y=h(8654);function Yt(){var ht=I.createContext(null);function mt(){return I.useContext(ht)}function ee(Se,me){var Ye=(0,Y.Yr)(Se),Ze=function(wn,An){var Tn=Ye?{ref:An}:{},ii=I.useRef(0),Vn=I.useRef(wn),Hn=mt();return Hn!==null?I.createElement(Se,(0,kt.Z)({},wn,Tn)):((!me||me(Vn.current,wn))&&(ii.current+=1),Vn.current=wn,I.createElement(ht.Provider,{value:ii.current},I.createElement(Se,(0,kt.Z)({},wn,Tn))))};return Ye?I.forwardRef(Ze):Ze}function re(Se,me){var Ye=(0,Y.Yr)(Se),Ze=function(wn,An){var Tn=Ye?{ref:An}:{};return mt(),I.createElement(Se,(0,kt.Z)({},wn,Tn))};return Ye?I.memo(I.forwardRef(Ze),me):I.memo(Ze,me)}return{makeImmutable:ee,responseImmutable:re,useImmutableMark:mt}}var At=Yt(),vt=At.makeImmutable,Tt=At.responseImmutable,Mt=At.useImmutableMark,ft=Yt(),It=ft.makeImmutable,$t=ft.responseImmutable,Nt=ft.useImmutableMark,Ut=rt(),et=Ut;function Rt(ht,mt){var ee=I.useRef(0);ee.current+=1;var re=I.useRef(ht),Se=[];Object.keys(ht||{}).map(function(Ye){var Ze;(ht==null?void 0:ht[Ye])!==((Ze=re.current)===null||Ze===void 0?void 0:Ze[Ye])&&Se.push(Ye)}),re.current=ht;var me=I.useRef([]);return Se.length&&(me.current=Se),I.useDebugValue(ee.current),I.useDebugValue(me.current.join(", ")),mt&&console.log("".concat(mt,":"),ee.current,me.current),ee.current}var Lt=null,Kt=I.memo(function(){var ht=Rt();return I.createElement("h1",null,"Render Times: ",ht)});Kt.displayName="RenderBlock";var Qt=h(42066),ie=h(35227),yt=h(78772),ae=h(92310),Ht=h.n(ae),Pe=h(80547),ge=h(97938),we=h(48736),pe=I.createContext({renderWithProps:!1}),ln=pe,zt="RC_TABLE_KEY";function nt(ht){return ht==null?[]:Array.isArray(ht)?ht:[ht]}function it(ht){var mt=[],ee={};return ht.forEach(function(re){for(var Se=re||{},me=Se.key,Ye=Se.dataIndex,Ze=me||nt(Ye).join("-")||zt;ee[Ze];)Ze="".concat(Ze,"_next");ee[Ze]=!0,mt.push(Ze)}),mt}function Te(ht){return ht!=null}function Ae(ht){return ht&&(0,Qt.Z)(ht)==="object"&&!Array.isArray(ht)&&!I.isValidElement(ht)}function de(ht,mt,ee,re,Se,me){var Ye=I.useContext(ln),Ze=Nt(),_e=(0,Pe.Z)(function(){if(Te(re))return[re];var wn=mt==null||mt===""?[]:Array.isArray(mt)?mt:[mt],An=(0,ge.Z)(ht,wn),Tn=An,ii=void 0;if(Se){var Vn=Se(An,ht,ee);Ae(Vn)?(Tn=Vn.children,ii=Vn.props,Ye.renderWithProps=!0):Tn=Vn}return[Tn,ii]},[Ze,ht,re,mt,Se,ee],function(wn,An){if(me){var Tn=(0,O.Z)(wn,2),ii=Tn[1],Vn=(0,O.Z)(An,2),Hn=Vn[1];return me(Hn,ii)}return Ye.renderWithProps?!0:!(0,K.Z)(wn,An,!0)});return _e}function en(ht,mt,ee,re){var Se=ht+mt-1;return ht<=re&&Se>=ee}function vn(ht,mt){return Q(et,function(ee){var re=en(ht,mt||1,ee.hoverStartRow,ee.hoverEndRow);return[re,ee.onHover]})}var Xn=function(mt){var ee=mt.ellipsis,re=mt.rowType,Se=mt.children,me,Ye=ee===!0?{showTitle:!0}:ee;return Ye&&(Ye.showTitle||re==="header")&&(typeof Se=="string"||typeof Se=="number"?me=Se.toString():I.isValidElement(Se)&&typeof Se.props.children=="string"&&(me=Se.props.children)),me};function gn(ht){var mt,ee,re,Se,me,Ye,Ze,_e,wn=ht.component,An=ht.children,Tn=ht.ellipsis,ii=ht.scope,Vn=ht.prefixCls,Hn=ht.className,Fi=ht.align,Zn=ht.record,ki=ht.render,wi=ht.dataIndex,_i=ht.renderIndex,pr=ht.shouldCellUpdate,cr=ht.index,Oi=ht.rowType,jt=ht.colSpan,to=ht.rowSpan,Li=ht.fixLeft,sr=ht.fixRight,Ai=ht.firstFixLeft,gi=ht.lastFixLeft,ji=ht.firstFixRight,wr=ht.lastFixRight,yr=ht.appendNode,$r=ht.additionalProps,Bi=$r===void 0?{}:$r,no=ht.isSticky,co="".concat(Vn,"-cell"),S=Q(et,["supportSticky","allColumnsFixedLeft"]),P=S.supportSticky,U=S.allColumnsFixedLeft,Z=de(Zn,wi,_i,An,ki,pr),ot=(0,O.Z)(Z,2),ut=ot[0],bt=ot[1],Jt={},Ie=typeof Li=="number"&&P,Ue=typeof sr=="number"&&P;Ie&&(Jt.position="sticky",Jt.left=Li),Ue&&(Jt.position="sticky",Jt.right=sr);var he=(mt=(ee=(re=bt==null?void 0:bt.colSpan)!==null&&re!==void 0?re:Bi.colSpan)!==null&&ee!==void 0?ee:jt)!==null&&mt!==void 0?mt:1,Fe=(Se=(me=(Ye=bt==null?void 0:bt.rowSpan)!==null&&Ye!==void 0?Ye:Bi.rowSpan)!==null&&me!==void 0?me:to)!==null&&Se!==void 0?Se:1,Oe=vn(cr,Fe),ye=(0,O.Z)(Oe,2),Ni=ye[0],fi=ye[1],zi=function(Mo){var po;Zn&&fi(cr,cr+Fe-1),Bi==null||(po=Bi.onMouseEnter)===null||po===void 0||po.call(Bi,Mo)},mi=function(Mo){var po;Zn&&fi(-1,-1),Bi==null||(po=Bi.onMouseLeave)===null||po===void 0||po.call(Bi,Mo)};if(he===0||Fe===0)return null;var Ri=(Ze=Bi.title)!==null&&Ze!==void 0?Ze:Xn({rowType:Oi,ellipsis:Tn,children:ut}),tr=Ht()(co,Hn,(_e={},(0,yt.Z)(_e,"".concat(co,"-fix-left"),Ie&&P),(0,yt.Z)(_e,"".concat(co,"-fix-left-first"),Ai&&P),(0,yt.Z)(_e,"".concat(co,"-fix-left-last"),gi&&P),(0,yt.Z)(_e,"".concat(co,"-fix-left-all"),gi&&U&&P),(0,yt.Z)(_e,"".concat(co,"-fix-right"),Ue&&P),(0,yt.Z)(_e,"".concat(co,"-fix-right-first"),ji&&P),(0,yt.Z)(_e,"".concat(co,"-fix-right-last"),wr&&P),(0,yt.Z)(_e,"".concat(co,"-ellipsis"),Tn),(0,yt.Z)(_e,"".concat(co,"-with-append"),yr),(0,yt.Z)(_e,"".concat(co,"-fix-sticky"),(Ie||Ue)&&no&&P),(0,yt.Z)(_e,"".concat(co,"-row-hover"),!bt&&Ni),_e),Bi.className,bt==null?void 0:bt.className),oo={};Fi&&(oo.textAlign=Fi);var ho=(0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)({},Jt),Bi.style),oo),bt==null?void 0:bt.style),ti=ut;return(0,Qt.Z)(ti)==="object"&&!Array.isArray(ti)&&!I.isValidElement(ti)&&(ti=null),Tn&&(gi||ji)&&(ti=I.createElement("span",{className:"".concat(co,"-content")},ti)),I.createElement(wn,(0,kt.Z)({},bt,Bi,{className:tr,style:ho,title:Ri,scope:ii,onMouseEnter:zi,onMouseLeave:mi,colSpan:he!==1?he:null,rowSpan:Fe!==1?Fe:null}),yr,ti)}var _n=I.memo(gn);function $n(ht,mt,ee,re,Se,me){var Ye=ee[ht]||{},Ze=ee[mt]||{},_e,wn;Ye.fixed==="left"?_e=re.left[Se==="rtl"?mt:ht]:Ze.fixed==="right"&&(wn=re.right[Se==="rtl"?ht:mt]);var An=!1,Tn=!1,ii=!1,Vn=!1,Hn=ee[mt+1],Fi=ee[ht-1],Zn=!(me!=null&&me.children);if(Se==="rtl"){if(_e!==void 0){var ki=Fi&&Fi.fixed==="left";Vn=!ki&&Zn}else if(wn!==void 0){var wi=Hn&&Hn.fixed==="right";ii=!wi&&Zn}}else if(_e!==void 0){var _i=Hn&&Hn.fixed==="left";An=!_i&&Zn}else if(wn!==void 0){var pr=Fi&&Fi.fixed==="right";Tn=!pr&&Zn}return{fixLeft:_e,fixRight:wn,lastFixLeft:An,firstFixRight:Tn,lastFixRight:ii,firstFixLeft:Vn,isSticky:re.isSticky}}var fn=I.createContext({}),hn=fn;function ct(ht){var mt=ht.className,ee=ht.index,re=ht.children,Se=ht.colSpan,me=Se===void 0?1:Se,Ye=ht.rowSpan,Ze=ht.align,_e=Q(et,["prefixCls","direction"]),wn=_e.prefixCls,An=_e.direction,Tn=I.useContext(hn),ii=Tn.scrollColumnIndex,Vn=Tn.stickyOffsets,Hn=Tn.flattenColumns,Fi=Tn.columns,Zn=ee+me-1,ki=Zn+1===ii?me+1:me,wi=$n(ee,ee+ki-1,Hn,Vn,An,Fi==null?void 0:Fi[ee]);return I.createElement(_n,(0,kt.Z)({className:mt,index:ee,component:"td",prefixCls:wn,record:null,dataIndex:null,align:Ze,colSpan:ki,rowSpan:Ye,render:function(){return re}},wi))}var L=h(61206),k=["children"];function z(ht){var mt=ht.children,ee=(0,L.Z)(ht,k);return I.createElement("tr",ee,mt)}function G(ht){var mt=ht.children;return mt}G.Row=z,G.Cell=ct;var T=G;function St(ht){var mt=ht.children,ee=ht.stickyOffsets,re=ht.flattenColumns,Se=ht.columns,me=Q(et,"prefixCls"),Ye=re.length-1,Ze=re[Ye],_e=I.useMemo(function(){return{stickyOffsets:ee,flattenColumns:re,scrollColumnIndex:Ze!=null&&Ze.scrollbar?Ye:null,columns:Se}},[Ze,re,Ye,ee,Se]);return I.createElement(hn.Provider,{value:_e},I.createElement("tfoot",{className:"".concat(me,"-summary")},mt))}var fe=$t(St),Ct=T,xt=h(70425),Dt=h(29301),qt=h(29194),_t=h(24514),ve=h(75152),Ge=h(26112);function Ke(ht,mt,ee,re,Se,me,Ye){ht.push({record:mt,indent:ee,index:Ye});var Ze=me(mt),_e=Se==null?void 0:Se.has(Ze);if(mt&&Array.isArray(mt[re])&&_e)for(var wn=0;wn<mt[re].length;wn+=1)Ke(ht,mt[re][wn],ee+1,re,Se,me,wn)}function Ce(ht,mt,ee,re){var Se=I.useMemo(function(){if(ee!=null&&ee.size){for(var me=[],Ye=0;Ye<(ht==null?void 0:ht.length);Ye+=1){var Ze=ht[Ye];Ke(me,Ze,0,mt,ee,re,Ye)}return me}return ht==null?void 0:ht.map(function(_e,wn){return{record:_e,indent:0,index:wn}})},[ht,mt,ee,re]);return Se}function Ve(ht){var mt=ht.prefixCls,ee=ht.children,re=ht.component,Se=ht.cellComponent,me=ht.className,Ye=ht.expanded,Ze=ht.colSpan,_e=ht.isEmpty,wn=Q(et,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),An=wn.scrollbarSize,Tn=wn.fixHeader,ii=wn.fixColumn,Vn=wn.componentWidth,Hn=wn.horizonScroll,Fi=ee;return(_e?Hn&&Vn:ii)&&(Fi=I.createElement("div",{style:{width:Vn-(Tn?An:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(mt,"-expanded-row-fixed")},Fi)),I.createElement(re,{className:me,style:{display:Ye?null:"none"}},I.createElement(_n,{component:Se,prefixCls:mt,colSpan:Ze},Fi))}var Qe=Ve;function Bt(ht,mt,ee,re){var Se=Q(et,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),me=Se.flattenColumns,Ye=Se.expandableType,Ze=Se.expandedKeys,_e=Se.childrenColumnName,wn=Se.onTriggerExpand,An=Se.rowExpandable,Tn=Se.onRow,ii=Se.expandRowByClick,Vn=Se.rowClassName,Hn=Ye==="nest",Fi=Ye==="row"&&(!An||An(ht)),Zn=Fi||Hn,ki=Ze&&Ze.has(mt),wi=_e&&ht&&ht[_e],_i=(0,xt.useEvent)(wn),pr=Tn==null?void 0:Tn(ht,ee),cr=pr==null?void 0:pr.onClick,Oi=function(sr){ii&&Zn&&wn(ht,sr);for(var Ai=arguments.length,gi=new Array(Ai>1?Ai-1:0),ji=1;ji<Ai;ji++)gi[ji-1]=arguments[ji];cr==null||cr.apply(void 0,[sr].concat(gi))},jt;typeof Vn=="string"?jt=Vn:typeof Vn=="function"&&(jt=Vn(ht,ee,re));var to=it(me);return(0,ie.Z)((0,ie.Z)({},Se),{},{columnsKey:to,nestExpandable:Hn,expanded:ki,hasNestChildren:wi,record:ht,onTriggerExpand:_i,rowSupportExpand:Fi,expandable:Zn,rowProps:(0,ie.Z)((0,ie.Z)({},pr),{},{className:Ht()(jt,pr==null?void 0:pr.className),onClick:Oi})})}function xe(ht,mt,ee,re,Se){var me=ht.record,Ye=ht.prefixCls,Ze=ht.columnsKey,_e=ht.fixedInfoList,wn=ht.expandIconColumnIndex,An=ht.nestExpandable,Tn=ht.indentSize,ii=ht.expandIcon,Vn=ht.expanded,Hn=ht.hasNestChildren,Fi=ht.onTriggerExpand,Zn=Ze[ee],ki=_e[ee],wi;ee===(wn||0)&&An&&(wi=I.createElement(I.Fragment,null,I.createElement("span",{style:{paddingLeft:"".concat(Tn*re,"px")},className:"".concat(Ye,"-row-indent indent-level-").concat(re)}),ii({prefixCls:Ye,expanded:Vn,expandable:Hn,record:me,onExpand:Fi})));var _i;return mt.onCell&&(_i=mt.onCell(me,Se)),{key:Zn,fixedInfo:ki,appendCellNode:wi,additionalCellProps:_i||{}}}function ze(ht){var mt=ht.className,ee=ht.style,re=ht.record,Se=ht.index,me=ht.renderIndex,Ye=ht.rowKey,Ze=ht.indent,_e=Ze===void 0?0:Ze,wn=ht.rowComponent,An=ht.cellComponent,Tn=ht.scopeCellComponent,ii=Bt(re,Ye,Se,_e),Vn=ii.prefixCls,Hn=ii.flattenColumns,Fi=ii.expandedRowClassName,Zn=ii.expandedRowRender,ki=ii.rowProps,wi=ii.expanded,_i=ii.rowSupportExpand,pr=I.useState(!1),cr=(0,O.Z)(pr,2),Oi=cr[0],jt=cr[1];I.useEffect(function(){wi&&jt(!0)},[wi]);var to=I.createElement(wn,(0,kt.Z)({},ki,{"data-row-key":Ye,className:Ht()(mt,"".concat(Vn,"-row"),"".concat(Vn,"-row-level-").concat(_e),ki==null?void 0:ki.className),style:(0,ie.Z)((0,ie.Z)({},ee),ki==null?void 0:ki.style)}),Hn.map(function(gi,ji){var wr=gi.render,yr=gi.dataIndex,$r=gi.className,Bi=xe(ii,gi,ji,_e,Se),no=Bi.key,co=Bi.fixedInfo,S=Bi.appendCellNode,P=Bi.additionalCellProps;return I.createElement(_n,(0,kt.Z)({className:$r,ellipsis:gi.ellipsis,align:gi.align,scope:gi.rowScope,component:gi.rowScope?Tn:An,prefixCls:Vn,key:no,record:re,index:Se,renderIndex:me,dataIndex:yr,render:wr,shouldCellUpdate:gi.shouldCellUpdate},co,{appendNode:S,additionalProps:P}))})),Li;if(_i&&(Oi||wi)){var sr=Zn(re,Se,_e+1,wi),Ai=Fi&&Fi(re,Se,_e);Li=I.createElement(Qe,{expanded:wi,className:Ht()("".concat(Vn,"-expanded-row"),"".concat(Vn,"-expanded-row-level-").concat(_e+1),Ai),prefixCls:Vn,component:wn,cellComponent:An,colSpan:Hn.length,isEmpty:!1},sr)}return I.createElement(I.Fragment,null,to,Li)}ze.displayName="BodyRow";var Ne=$t(ze);function Cn(ht){var mt=ht.columnKey,ee=ht.onColumnResize,re=I.useRef();return I.useEffect(function(){re.current&&ee(mt,re.current.offsetWidth)},[]),I.createElement(Dt.Z,{data:mt},I.createElement("td",{ref:re,style:{padding:0,border:0,height:0}},I.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function En(ht){var mt=ht.prefixCls,ee=ht.columnsKey,re=ht.onColumnResize;return I.createElement("tr",{"aria-hidden":"true",className:"".concat(mt,"-measure-row"),style:{height:0,fontSize:0}},I.createElement(Dt.Z.Collection,{onBatchResize:function(me){me.forEach(function(Ye){var Ze=Ye.data,_e=Ye.size;re(Ze,_e.offsetWidth)})}},ee.map(function(Se){return I.createElement(Cn,{key:Se,columnKey:Se,onColumnResize:re})})))}function jn(ht){var mt=ht.data,ee=ht.measureColumnWidth,re=Q(et,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Se=re.prefixCls,me=re.getComponent,Ye=re.onColumnResize,Ze=re.flattenColumns,_e=re.getRowKey,wn=re.expandedKeys,An=re.childrenColumnName,Tn=re.emptyNode,ii=Ce(mt,An,wn,_e),Vn=I.useRef({renderWithProps:!1}),Hn=me(["body","wrapper"],"tbody"),Fi=me(["body","row"],"tr"),Zn=me(["body","cell"],"td"),ki=me(["body","cell"],"th"),wi;mt.length?wi=ii.map(function(pr,cr){var Oi=pr.record,jt=pr.indent,to=pr.index,Li=_e(Oi,cr);return I.createElement(Ne,{key:Li,rowKey:Li,record:Oi,index:cr,renderIndex:to,rowComponent:Fi,cellComponent:Zn,scopeCellComponent:ki,getRowKey:_e,indent:jt})}):wi=I.createElement(Qe,{expanded:!0,className:"".concat(Se,"-placeholder"),prefixCls:Se,component:Fi,cellComponent:Zn,colSpan:Ze.length,isEmpty:!0},Tn);var _i=it(Ze);return I.createElement(ln.Provider,{value:Vn.current},I.createElement(Hn,{className:"".concat(Se,"-tbody")},ee&&I.createElement(En,{prefixCls:Se,columnsKey:_i,onColumnResize:Ye}),wi))}jn.displayName="Body";var On=$t(jn),ci=["expandable"],Si="RC_TABLE_INTERNAL_COL_DEFINE";function vi(ht){var mt=ht.expandable,ee=(0,L.Z)(ht,ci),re;return"expandable"in ht?re=(0,ie.Z)((0,ie.Z)({},ee),mt):re=ee,re.showExpandColumn===!1&&(re.expandIconColumnIndex=-1),re}var qn=["columnType"];function an(ht){for(var mt=ht.colWidths,ee=ht.columns,re=ht.columCount,Se=[],me=re||ee.length,Ye=!1,Ze=me-1;Ze>=0;Ze-=1){var _e=mt[Ze],wn=ee&&ee[Ze],An=wn&&wn[Si];if(_e||An||Ye){var Tn=An||{},ii=Tn.columnType,Vn=(0,L.Z)(Tn,qn);Se.unshift(I.createElement("col",(0,kt.Z)({key:Ze,style:{width:_e}},Vn))),Ye=!0}}return I.createElement("colgroup",null,Se)}var Ji=an,ui=h(65093),lr=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Di(ht,mt){return(0,I.useMemo)(function(){for(var ee=[],re=0;re<mt;re+=1){var Se=ht[re];if(Se!==void 0)ee[re]=Se;else return null}return ee},[ht.join("_"),mt])}var D=I.forwardRef(function(ht,mt){var ee=ht.className,re=ht.noData,Se=ht.columns,me=ht.flattenColumns,Ye=ht.colWidths,Ze=ht.columCount,_e=ht.stickyOffsets,wn=ht.direction,An=ht.fixHeader,Tn=ht.stickyTopOffset,ii=ht.stickyBottomOffset,Vn=ht.stickyClassName,Hn=ht.onScroll,Fi=ht.maxContentScroll,Zn=ht.children,ki=(0,L.Z)(ht,lr),wi=Q(et,["prefixCls","scrollbarSize","isSticky"]),_i=wi.prefixCls,pr=wi.scrollbarSize,cr=wi.isSticky,Oi=cr&&!An?0:pr,jt=I.useRef(null),to=I.useCallback(function($r){(0,Y.mH)(mt,$r),(0,Y.mH)(jt,$r)},[]);I.useEffect(function(){var $r;function Bi(no){var co=no,S=co.currentTarget,P=co.deltaX;P&&(Hn({currentTarget:S,scrollLeft:S.scrollLeft+P}),no.preventDefault())}return($r=jt.current)===null||$r===void 0||$r.addEventListener("wheel",Bi),function(){var no;(no=jt.current)===null||no===void 0||no.removeEventListener("wheel",Bi)}},[]);var Li=I.useMemo(function(){return me.every(function($r){return $r.width})},[me]),sr=me[me.length-1],Ai={fixed:sr?sr.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(_i,"-cell-scrollbar")}}},gi=(0,I.useMemo)(function(){return Oi?[].concat((0,ui.Z)(Se),[Ai]):Se},[Oi,Se]),ji=(0,I.useMemo)(function(){return Oi?[].concat((0,ui.Z)(me),[Ai]):me},[Oi,me]),wr=(0,I.useMemo)(function(){var $r=_e.right,Bi=_e.left;return(0,ie.Z)((0,ie.Z)({},_e),{},{left:wn==="rtl"?[].concat((0,ui.Z)(Bi.map(function(no){return no+Oi})),[0]):Bi,right:wn==="rtl"?$r:[].concat((0,ui.Z)($r.map(function(no){return no+Oi})),[0]),isSticky:cr})},[Oi,_e,cr]),yr=Di(Ye,Ze);return I.createElement("div",{style:(0,ie.Z)({overflow:"hidden"},cr?{top:Tn,bottom:ii}:{}),ref:to,className:Ht()(ee,(0,yt.Z)({},Vn,!!Vn))},I.createElement("table",{style:{tableLayout:"fixed",visibility:re||yr?null:"hidden"}},(!re||!Fi||Li)&&I.createElement(Ji,{colWidths:yr?[].concat((0,ui.Z)(yr),[Oi]):[],columCount:Ze+1,columns:ji}),Zn((0,ie.Z)((0,ie.Z)({},ki),{},{stickyOffsets:wr,columns:gi,flattenColumns:ji}))))});D.displayName="FixedHolder";var fr=I.memo(D);function er(ht){var mt=ht.cells,ee=ht.stickyOffsets,re=ht.flattenColumns,Se=ht.rowComponent,me=ht.cellComponent,Ye=ht.tdCellComponent,Ze=ht.onHeaderRow,_e=ht.index,wn=Q(et,["prefixCls","direction"]),An=wn.prefixCls,Tn=wn.direction,ii;Ze&&(ii=Ze(mt.map(function(Hn){return Hn.column}),_e));var Vn=it(mt.map(function(Hn){return Hn.column}));return I.createElement(Se,ii,mt.map(function(Hn,Fi){var Zn=Hn.column,ki=$n(Hn.colStart,Hn.colEnd,re,ee,Tn,Zn),wi;return Zn&&Zn.onHeaderCell&&(wi=Hn.column.onHeaderCell(Zn)),I.createElement(_n,(0,kt.Z)({},Hn,{scope:Zn.title?Hn.colSpan>1?"colgroup":"col":null,ellipsis:Zn.ellipsis,align:Zn.align,component:Zn.title?me:Ye,prefixCls:An,key:Vn[Fi]},ki,{additionalProps:wi,rowType:"header"}))}))}er.displayName="HeaderRow";var Gr=er;function Zr(ht){var mt=[];function ee(Ye,Ze){var _e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;mt[_e]=mt[_e]||[];var wn=Ze,An=Ye.filter(Boolean).map(function(Tn){var ii={key:Tn.key,className:Tn.className||"",children:Tn.title,column:Tn,colStart:wn},Vn=1,Hn=Tn.children;return Hn&&Hn.length>0&&(Vn=ee(Hn,wn,_e+1).reduce(function(Fi,Zn){return Fi+Zn},0),ii.hasSubColumns=!0),"colSpan"in Tn&&(Vn=Tn.colSpan),"rowSpan"in Tn&&(ii.rowSpan=Tn.rowSpan),ii.colSpan=Vn,ii.colEnd=ii.colStart+Vn-1,mt[_e].push(ii),wn+=Vn,Vn});return An}ee(ht,0);for(var re=mt.length,Se=function(Ze){mt[Ze].forEach(function(_e){!("rowSpan"in _e)&&!_e.hasSubColumns&&(_e.rowSpan=re-Ze)})},me=0;me<re;me+=1)Se(me);return mt}function mo(ht){var mt=ht.stickyOffsets,ee=ht.columns,re=ht.flattenColumns,Se=ht.onHeaderRow,me=Q(et,["prefixCls","getComponent"]),Ye=me.prefixCls,Ze=me.getComponent,_e=I.useMemo(function(){return Zr(ee)},[ee]),wn=Ze(["header","wrapper"],"thead"),An=Ze(["header","row"],"tr"),Tn=Ze(["header","cell"],"th"),ii=Ze(["header","cell"],"td");return I.createElement(wn,{className:"".concat(Ye,"-thead")},_e.map(function(Vn,Hn){var Fi=I.createElement(Gr,{key:Hn,flattenColumns:re,cells:Vn,stickyOffsets:mt,rowComponent:An,cellComponent:Tn,tdCellComponent:ii,onHeaderRow:Se,index:Hn});return Fi}))}var Ei=$t(mo),No=h(11592);function Ir(ht){var mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof mt=="number"?mt:mt.endsWith("%")?ht*parseFloat(mt)/100:null}function Gi(ht,mt){return I.useMemo(function(){if(mt&&mt>0){var ee=0,re=0;ht.forEach(function(wn){var An=Ir(mt,wn.width);An?ee+=An:re+=1});var Se=mt-ee,me=re,Ye=Se/re,Ze=0,_e=ht.map(function(wn){var An=(0,ie.Z)({},wn),Tn=Ir(mt,An.width);if(Tn)An.width=Tn;else{var ii=Math.floor(Ye);An.width=me===1?Se:ii,Se-=ii,me-=1}return Ze+=An.width,An});return[_e,Ze]}return[ht,mt]},[ht,mt])}var Jn=["children"],te=["fixed"];function Nn(ht){return(0,No.Z)(ht).filter(function(mt){return I.isValidElement(mt)}).map(function(mt){var ee=mt.key,re=mt.props,Se=re.children,me=(0,L.Z)(re,Jn),Ye=(0,ie.Z)({key:ee},me);return Se&&(Ye.children=Nn(Se)),Ye})}function Bn(ht){var mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return ht.filter(function(ee){return ee&&(0,Qt.Z)(ee)==="object"}).reduce(function(ee,re,Se){var me=re.fixed,Ye=me===!0?"left":me,Ze="".concat(mt,"-").concat(Se),_e=re.children;return _e&&_e.length>0?[].concat((0,ui.Z)(ee),(0,ui.Z)(Bn(_e,Ze).map(function(wn){return(0,ie.Z)({fixed:Ye},wn)}))):[].concat((0,ui.Z)(ee),[(0,ie.Z)((0,ie.Z)({key:Ze},re),{},{fixed:Ye})])},[])}function oe(ht){for(var mt=!0,ee=0;ee<ht.length;ee+=1){var re=ht[ee];if(mt&&re.fixed!=="left")mt=!1;else if(!mt&&re.fixed==="left"){warning(!1,"Index ".concat(ee-1," of `columns` missing `fixed='left'` prop."));break}}for(var Se=!0,me=ht.length-1;me>=0;me-=1){var Ye=ht[me];if(Se&&Ye.fixed!=="right")Se=!1;else if(!Se&&Ye.fixed==="right"){warning(!1,"Index ".concat(me+1," of `columns` missing `fixed='right'` prop."));break}}}function Ft(ht){return ht.map(function(mt){var ee=mt.fixed,re=(0,L.Z)(mt,te),Se=ee;return ee==="left"?Se="right":ee==="right"&&(Se="left"),(0,ie.Z)({fixed:Se},re)})}function qe(ht,mt){var ee=ht.prefixCls,re=ht.columns,Se=ht.children,me=ht.expandable,Ye=ht.expandedKeys,Ze=ht.columnTitle,_e=ht.getRowKey,wn=ht.onTriggerExpand,An=ht.expandIcon,Tn=ht.rowExpandable,ii=ht.expandIconColumnIndex,Vn=ht.direction,Hn=ht.expandRowByClick,Fi=ht.columnWidth,Zn=ht.fixed,ki=ht.scrollWidth,wi=I.useMemo(function(){return re||Nn(Se)},[re,Se]),_i=I.useMemo(function(){if(me){var sr,Ai=wi.slice();if(!Ai.includes(y)){var gi=ii||0;gi>=0&&Ai.splice(gi,0,y)}var ji=Ai.indexOf(y);Ai=Ai.filter(function(Bi,no){return Bi!==y||no===ji});var wr=wi[ji],yr;(Zn==="left"||Zn)&&!ii?yr="left":(Zn==="right"||Zn)&&ii===wi.length?yr="right":yr=wr?wr.fixed:null;var $r=(sr={},(0,yt.Z)(sr,Si,{className:"".concat(ee,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,yt.Z)(sr,"title",Ze),(0,yt.Z)(sr,"fixed",yr),(0,yt.Z)(sr,"className","".concat(ee,"-row-expand-icon-cell")),(0,yt.Z)(sr,"width",Fi),(0,yt.Z)(sr,"render",function(no,co,S){var P=_e(co,S),U=Ye.has(P),Z=Tn?Tn(co):!0,ot=An({prefixCls:ee,expanded:U,expandable:Z,record:co,onExpand:wn});return Hn?I.createElement("span",{onClick:function(bt){return bt.stopPropagation()}},ot):ot}),sr);return Ai.map(function(Bi){return Bi===y?$r:Bi})}return wi.filter(function(Bi){return Bi!==y})},[me,wi,_e,Ye,An,Vn]),pr=I.useMemo(function(){var sr=_i;return mt&&(sr=mt(sr)),sr.length||(sr=[{render:function(){return null}}]),sr},[mt,_i,Vn]),cr=I.useMemo(function(){return Vn==="rtl"?Ft(Bn(pr)):Bn(pr)},[pr,Vn,ki]),Oi=Gi(cr,ki),jt=(0,O.Z)(Oi,2),to=jt[0],Li=jt[1];return[pr,to,Li]}var xn=qe;function Gn(ht){var mt,ee=ht.prefixCls,re=ht.record,Se=ht.onExpand,me=ht.expanded,Ye=ht.expandable,Ze="".concat(ee,"-row-expand-icon");if(!Ye)return I.createElement("span",{className:Ht()(Ze,"".concat(ee,"-row-spaced"))});var _e=function(An){Se(re,An),An.stopPropagation()};return I.createElement("span",{className:Ht()(Ze,(mt={},(0,yt.Z)(mt,"".concat(ee,"-row-expanded"),me),(0,yt.Z)(mt,"".concat(ee,"-row-collapsed"),!me),mt)),onClick:_e})}function kn(ht,mt,ee){var re=[];function Se(me){(me||[]).forEach(function(Ye,Ze){re.push(mt(Ye,Ze)),Se(Ye[ee])})}return Se(ht),re}function ne(ht,mt,ee){var re=vi(ht),Se=re.expandIcon,me=re.expandedRowKeys,Ye=re.defaultExpandedRowKeys,Ze=re.defaultExpandAllRows,_e=re.expandedRowRender,wn=re.onExpand,An=re.onExpandedRowsChange,Tn=re.childrenColumnName,ii=Se||Gn,Vn=Tn||"children",Hn=I.useMemo(function(){return _e?"row":ht.expandable&&ht.internalHooks===N&&ht.expandable.__PARENT_RENDER_ICON__||mt.some(function(cr){return cr&&(0,Qt.Z)(cr)==="object"&&cr[Vn]})?"nest":!1},[!!_e,mt]),Fi=I.useState(function(){return Ye||(Ze?kn(mt,ee,Vn):[])}),Zn=(0,O.Z)(Fi,2),ki=Zn[0],wi=Zn[1],_i=I.useMemo(function(){return new Set(me||ki||[])},[me,ki]),pr=I.useCallback(function(cr){var Oi=ee(cr,mt.indexOf(cr)),jt,to=_i.has(Oi);to?(_i.delete(Oi),jt=(0,ui.Z)(_i)):jt=[].concat((0,ui.Z)(_i),[Oi]),wi(jt),wn&&wn(!to,cr),An&&An(jt)},[ee,_i,mt,wn,An]);return[re,Hn,_i,ii,Vn,pr]}function dn(ht,mt,ee,re){var Se=ht.map(function(me,Ye){return $n(Ye,Ye,ht,mt,ee,re==null?void 0:re[Ye])});return(0,Pe.Z)(function(){return Se},[Se],function(me,Ye){return!(0,K.Z)(me,Ye)})}function Fn(ht){var mt=(0,I.useRef)(ht),ee=(0,I.useState)({}),re=(0,O.Z)(ee,2),Se=re[1],me=(0,I.useRef)(null),Ye=(0,I.useRef)([]);function Ze(_e){Ye.current.push(_e);var wn=Promise.resolve();me.current=wn,wn.then(function(){if(me.current===wn){var An=Ye.current,Tn=mt.current;Ye.current=[],An.forEach(function(ii){mt.current=ii(mt.current)}),me.current=null,Tn!==mt.current&&Se({})}})}return(0,I.useEffect)(function(){return function(){me.current=null}},[]),[mt.current,Ze]}function hi(ht){var mt=(0,I.useRef)(ht||null),ee=(0,I.useRef)();function re(){window.clearTimeout(ee.current)}function Se(Ye){mt.current=Ye,re(),ee.current=window.setTimeout(function(){mt.current=null,ee.current=void 0},100)}function me(){return mt.current}return(0,I.useEffect)(function(){return re},[]),[Se,me]}function Me(){var ht=I.useState(-1),mt=(0,O.Z)(ht,2),ee=mt[0],re=mt[1],Se=I.useState(-1),me=(0,O.Z)(Se,2),Ye=me[0],Ze=me[1],_e=I.useCallback(function(wn,An){re(wn),Ze(An)},[]);return[ee,Ye,_e]}var In=h(47273),be=(0,In.Z)()?window:null;function $e(ht,mt){var ee=(0,Qt.Z)(ht)==="object"?ht:{},re=ee.offsetHeader,Se=re===void 0?0:re,me=ee.offsetSummary,Ye=me===void 0?0:me,Ze=ee.offsetScroll,_e=Ze===void 0?0:Ze,wn=ee.getContainer,An=wn===void 0?function(){return be}:wn,Tn=An()||be;return I.useMemo(function(){var ii=!!ht;return{isSticky:ii,stickyClassName:ii?"".concat(mt,"-sticky-holder"):"",offsetHeader:Se,offsetSummary:Ye,offsetScroll:_e,container:Tn}},[_e,Se,Ye,mt,Tn])}function He(ht,mt,ee){var re=(0,I.useMemo)(function(){for(var Se=[],me=[],Ye=0,Ze=0,_e=0;_e<mt;_e+=1)if(ee==="rtl"){me[_e]=Ze,Ze+=ht[_e]||0;var wn=mt-_e-1;Se[wn]=Ye,Ye+=ht[wn]||0}else{Se[_e]=Ye,Ye+=ht[_e]||0;var An=mt-_e-1;me[An]=Ze,Ze+=ht[An]||0}return{left:Se,right:me}},[ht,mt,ee]);return re}var Le=He;function tn(ht){var mt=ht.className,ee=ht.children;return I.createElement("div",{className:mt},ee)}var Je=tn,yn=h(8224),bn=h(55468),di=function(mt,ee){var re,Se,me=mt.scrollBodyRef,Ye=mt.onScroll,Ze=mt.offsetScroll,_e=mt.container,wn=Q(et,"prefixCls"),An=((re=me.current)===null||re===void 0?void 0:re.scrollWidth)||0,Tn=((Se=me.current)===null||Se===void 0?void 0:Se.clientWidth)||0,ii=An&&Tn*(Tn/An),Vn=I.useRef(),Hn=Fn({scrollLeft:0,isHiddenScrollBar:!1}),Fi=(0,O.Z)(Hn,2),Zn=Fi[0],ki=Fi[1],wi=I.useRef({delta:0,x:0}),_i=I.useState(!1),pr=(0,O.Z)(_i,2),cr=pr[0],Oi=pr[1],jt=function(){Oi(!1)},to=function(ji){ji.persist(),wi.current.delta=ji.pageX-Zn.scrollLeft,wi.current.x=0,Oi(!0),ji.preventDefault()},Li=function(ji){var wr,yr=ji||((wr=window)===null||wr===void 0?void 0:wr.event),$r=yr.buttons;if(!cr||$r===0){cr&&Oi(!1);return}var Bi=wi.current.x+ji.pageX-wi.current.x-wi.current.delta;Bi<=0&&(Bi=0),Bi+ii>=Tn&&(Bi=Tn-ii),Ye({scrollLeft:Bi/Tn*(An+2)}),wi.current.x=ji.pageX},sr=function(){if(me.current){var ji=(0,bn.os)(me.current).top,wr=ji+me.current.offsetHeight,yr=_e===window?document.documentElement.scrollTop+window.innerHeight:(0,bn.os)(_e).top+_e.clientHeight;wr-(0,ve.Z)()<=yr||ji>=yr-Ze?ki(function($r){return(0,ie.Z)((0,ie.Z)({},$r),{},{isHiddenScrollBar:!0})}):ki(function($r){return(0,ie.Z)((0,ie.Z)({},$r),{},{isHiddenScrollBar:!1})})}},Ai=function(ji){ki(function(wr){return(0,ie.Z)((0,ie.Z)({},wr),{},{scrollLeft:ji/An*Tn||0})})};return I.useImperativeHandle(ee,function(){return{setScrollLeft:Ai}}),I.useEffect(function(){var gi=(0,yn.Z)(document.body,"mouseup",jt,!1),ji=(0,yn.Z)(document.body,"mousemove",Li,!1);return sr(),function(){gi.remove(),ji.remove()}},[ii,cr]),I.useEffect(function(){var gi=(0,yn.Z)(_e,"scroll",sr,!1),ji=(0,yn.Z)(window,"resize",sr,!1);return function(){gi.remove(),ji.remove()}},[_e]),I.useEffect(function(){Zn.isHiddenScrollBar||ki(function(gi){var ji=me.current;return ji?(0,ie.Z)((0,ie.Z)({},gi),{},{scrollLeft:ji.scrollLeft/ji.scrollWidth*ji.clientWidth}):gi})},[Zn.isHiddenScrollBar]),An<=Tn||!ii||Zn.isHiddenScrollBar?null:I.createElement("div",{style:{height:(0,ve.Z)(),width:Tn,bottom:Ze},className:"".concat(wn,"-sticky-scroll")},I.createElement("div",{onMouseDown:to,ref:Vn,className:Ht()("".concat(wn,"-sticky-scroll-bar"),(0,yt.Z)({},"".concat(wn,"-sticky-scroll-bar-active"),cr)),style:{width:"".concat(ii,"px"),transform:"translate3d(".concat(Zn.scrollLeft,"px, 0, 0)")}}))},Sn=I.forwardRef(di);function xi(ht){return null}var ir=xi;function Mi(ht){return null}var le=Mi,mr="rc-table",Or=[],zr={};function Yr(){return"No Data"}function dr(ht){var mt,ee=(0,ie.Z)({rowKey:"key",prefixCls:mr,emptyText:Yr},ht),re=ee.prefixCls,Se=ee.className,me=ee.rowClassName,Ye=ee.style,Ze=ee.data,_e=ee.rowKey,wn=ee.scroll,An=ee.tableLayout,Tn=ee.direction,ii=ee.title,Vn=ee.footer,Hn=ee.summary,Fi=ee.caption,Zn=ee.id,ki=ee.showHeader,wi=ee.components,_i=ee.emptyText,pr=ee.onRow,cr=ee.onHeaderRow,Oi=ee.internalHooks,jt=ee.transformColumns,to=ee.internalRefs,Li=ee.tailor,sr=ee.sticky,Ai=Ze||Or,gi=!!Ai.length,ji=Oi===N,wr=I.useCallback(function(Fr,wo){return(0,ge.Z)(wi,Fr)||wo},[wi]),yr=I.useMemo(function(){return typeof _e=="function"?_e:function(Fr){var wo=Fr&&Fr[_e];return wo}},[_e]),$r=wr(["body"]),Bi=Me(),no=(0,O.Z)(Bi,3),co=no[0],S=no[1],P=no[2],U=ne(ee,Ai,yr),Z=(0,O.Z)(U,6),ot=Z[0],ut=Z[1],bt=Z[2],Jt=Z[3],Ie=Z[4],Ue=Z[5],he=wn==null?void 0:wn.x,Fe=I.useState(0),Oe=(0,O.Z)(Fe,2),ye=Oe[0],Ni=Oe[1],fi=xn((0,ie.Z)((0,ie.Z)((0,ie.Z)({},ee),ot),{},{expandable:!!ot.expandedRowRender,columnTitle:ot.columnTitle,expandedKeys:bt,getRowKey:yr,onTriggerExpand:Ue,expandIcon:Jt,expandIconColumnIndex:ot.expandIconColumnIndex,direction:Tn,scrollWidth:ji&&Li&&typeof he=="number"?he:null}),ji?jt:null),zi=(0,O.Z)(fi,3),mi=zi[0],Ri=zi[1],tr=zi[2],oo=tr!=null?tr:he,ho=I.useMemo(function(){return{columns:mi,flattenColumns:Ri}},[mi,Ri]),ti=I.useRef(),Eo=I.useRef(),Mo=I.useRef(),po=I.useRef(),ds=I.useRef(),bo=I.useState(!1),Vr=(0,O.Z)(bo,2),rr=Vr[0],Hr=Vr[1],Qr=I.useState(!1),xr=(0,O.Z)(Qr,2),vo=xr[0],ms=xr[1],qs=Fn(new Map),nn=(0,O.Z)(qs,2),Gs=nn[0],la=nn[1],on=it(Ri),Ws=on.map(function(Fr){return Gs.get(Fr)}),zo=I.useMemo(function(){return Ws},[Ws.join("_")]),pa=Le(zo,Ri.length,Tn),bs=wn&&Te(wn.y),To=wn&&Te(oo)||!!ot.fixed,ba=To&&Ri.some(function(Fr){var wo=Fr.fixed;return wo}),La=I.useRef(),va=$e(sr,re),Ua=va.isSticky,Tl=va.offsetHeader,Va=va.offsetSummary,Xo=va.offsetScroll,ps=va.stickyClassName,Bs=va.container,fs=I.useMemo(function(){return Hn==null?void 0:Hn(Ai)},[Hn,Ai]),$o=(bs||Ua)&&I.isValidElement(fs)&&fs.type===T&&fs.props.fixed,Hs,Ra,kl;bs&&(Ra={overflowY:"scroll",maxHeight:wn.y}),To&&(Hs={overflowX:"auto"},bs||(Ra={overflowY:"hidden"}),kl={width:oo===!0?"auto":oo,minWidth:"100%"});var qc=I.useCallback(function(Fr,wo){(0,qt.Z)(ti.current)&&la(function(Go){if(Go.get(Fr)!==wo){var Na=new Map(Go);return Na.set(Fr,wo),Na}return Go})},[]),ue=hi(null),Tu=(0,O.Z)(ue,2),oi=Tu[0],hr=Tu[1];function Io(Fr,wo){wo&&(typeof wo=="function"?wo(Fr):wo.scrollLeft!==Fr&&(wo.scrollLeft=Fr,wo.scrollLeft!==Fr&&setTimeout(function(){wo.scrollLeft=Fr},0)))}var Qo=(0,B.Z)(function(Fr){var wo=Fr.currentTarget,Go=Fr.scrollLeft,Na=Tn==="rtl",ta=typeof Go=="number"?Go:wo.scrollLeft,Sa=wo||zr;if(!hr()||hr()===Sa){var $l;oi(Sa),Io(ta,Eo.current),Io(ta,Mo.current),Io(ta,ds.current),Io(ta,($l=La.current)===null||$l===void 0?void 0:$l.setScrollLeft)}var Ka=wo||Eo.current;if(Ka){var wa=Ka.scrollWidth,hl=Ka.clientWidth;if(wa===hl){Hr(!1),ms(!1);return}Na?(Hr(-ta<wa-hl),ms(-ta>0)):(Hr(ta>0),ms(ta<wa-hl))}}),ks=function(){To&&Mo.current?Qo({currentTarget:Mo.current}):(Hr(!1),ms(!1))},zl=function(wo){var Go=wo.width;Go!==ye&&(ks(),Ni(ti.current?ti.current.offsetWidth:Go))},Vs=I.useRef(!1);I.useEffect(function(){Vs.current&&ks()},[To,Ze,mi.length]),I.useEffect(function(){Vs.current=!0},[]);var Nl=I.useState(0),zu=(0,O.Z)(Nl,2),C=zu[0],f=zu[1],x=I.useState(!0),A=(0,O.Z)(x,2),H=A[0],J=A[1];I.useEffect(function(){(!Li||!ji)&&(Mo.current instanceof Element?f((0,ve.o)(Mo.current).width):f((0,ve.o)(po.current).width)),J((0,_t.G)("position","sticky"))},[]),I.useEffect(function(){ji&&to&&(to.body.current=Mo.current)});var Et=I.useCallback(function(Fr){return I.createElement(I.Fragment,null,I.createElement(Ei,Fr),$o==="top"&&I.createElement(fe,Fr,fs))},[$o,fs]),Zt=I.useCallback(function(Fr){return I.createElement(fe,Fr,fs)},[fs]),Xt=wr(["table"],"table"),Be=I.useMemo(function(){return An||(ba?oo==="max-content"?"auto":"fixed":bs||Ua||Ri.some(function(Fr){var wo=Fr.ellipsis;return wo})?"fixed":"auto")},[bs,ba,Ri,An,Ua]),un,Dn={colWidths:zo,columCount:Ri.length,stickyOffsets:pa,onHeaderRow:cr,fixHeader:bs,scroll:wn},Qn=I.useMemo(function(){return gi?null:typeof _i=="function"?_i():_i},[gi,_i]),si=I.createElement(On,{data:Ai,measureColumnWidth:bs||To||Ua}),Yi=I.createElement(Ji,{colWidths:Ri.map(function(Fr){var wo=Fr.width;return wo}),columns:Ri}),Xi=Fi!=null?I.createElement("caption",{className:"".concat(re,"-caption")},Fi):void 0,Ar=(0,Ge.Z)(ee,{data:!0}),Pr=(0,Ge.Z)(ee,{aria:!0});if(bs||Ua){var ko;typeof $r=="function"?(ko=$r(Ai,{scrollbarSize:C,ref:Mo,onScroll:Qo}),Dn.colWidths=Ri.map(function(Fr,wo){var Go=Fr.width,Na=wo===Ri.length-1?Go-C:Go;return typeof Na=="number"&&!Number.isNaN(Na)?Na:0})):ko=I.createElement("div",{style:(0,ie.Z)((0,ie.Z)({},Hs),Ra),onScroll:Qo,ref:Mo,className:Ht()("".concat(re,"-body"))},I.createElement(Xt,(0,kt.Z)({style:(0,ie.Z)((0,ie.Z)({},kl),{},{tableLayout:Be})},Pr),Xi,Yi,si,!$o&&fs&&I.createElement(fe,{stickyOffsets:pa,flattenColumns:Ri,columns:mi},fs)));var Ao=(0,ie.Z)((0,ie.Z)((0,ie.Z)({noData:!Ai.length,maxContentScroll:To&&oo==="max-content"},Dn),ho),{},{direction:Tn,stickyClassName:ps,onScroll:Qo});un=I.createElement(I.Fragment,null,ki!==!1&&I.createElement(fr,(0,kt.Z)({},Ao,{stickyTopOffset:Tl,className:"".concat(re,"-header"),ref:Eo}),Et),ko,$o&&$o!=="top"&&I.createElement(fr,(0,kt.Z)({},Ao,{stickyBottomOffset:Va,className:"".concat(re,"-summary"),ref:ds}),Zt),Ua&&I.createElement(Sn,{ref:La,offsetScroll:Xo,scrollBodyRef:Mo,onScroll:Qo,container:Bs}))}else un=I.createElement("div",{style:(0,ie.Z)((0,ie.Z)({},Hs),Ra),className:Ht()("".concat(re,"-content")),onScroll:Qo,ref:Mo},I.createElement(Xt,(0,kt.Z)({style:(0,ie.Z)((0,ie.Z)({},kl),{},{tableLayout:Be})},Pr),Xi,Yi,ki!==!1&&I.createElement(Ei,(0,kt.Z)({},Dn,ho)),si,fs&&I.createElement(fe,{stickyOffsets:pa,flattenColumns:Ri,columns:mi},fs)));var jo=I.createElement("div",(0,kt.Z)({className:Ht()(re,Se,(mt={},(0,yt.Z)(mt,"".concat(re,"-rtl"),Tn==="rtl"),(0,yt.Z)(mt,"".concat(re,"-ping-left"),rr),(0,yt.Z)(mt,"".concat(re,"-ping-right"),vo),(0,yt.Z)(mt,"".concat(re,"-layout-fixed"),An==="fixed"),(0,yt.Z)(mt,"".concat(re,"-fixed-header"),bs),(0,yt.Z)(mt,"".concat(re,"-fixed-column"),ba),(0,yt.Z)(mt,"".concat(re,"-scroll-horizontal"),To),(0,yt.Z)(mt,"".concat(re,"-has-fix-left"),Ri[0]&&Ri[0].fixed),(0,yt.Z)(mt,"".concat(re,"-has-fix-right"),Ri[Ri.length-1]&&Ri[Ri.length-1].fixed==="right"),mt)),style:Ye,id:Zn,ref:ti},Ar),ii&&I.createElement(Je,{className:"".concat(re,"-title")},ii(Ai)),I.createElement("div",{ref:po,className:"".concat(re,"-container")},un),Vn&&I.createElement(Je,{className:"".concat(re,"-footer")},Vn(Ai)));To&&(jo=I.createElement(Dt.Z,{onResize:zl},jo));var ns=dn(Ri,pa,Tn,mi),So=I.useMemo(function(){return{scrollX:oo,prefixCls:re,getComponent:wr,scrollbarSize:C,direction:Tn,fixedInfoList:ns,isSticky:Ua,supportSticky:H,componentWidth:ye,fixHeader:bs,fixColumn:ba,horizonScroll:To,tableLayout:Be,rowClassName:me,expandedRowClassName:ot.expandedRowClassName,expandIcon:Jt,expandableType:ut,expandRowByClick:ot.expandRowByClick,expandedRowRender:ot.expandedRowRender,onTriggerExpand:Ue,expandIconColumnIndex:ot.expandIconColumnIndex,indentSize:ot.indentSize,allColumnsFixedLeft:Ri.every(function(Fr){return Fr.fixed==="left"}),emptyNode:Qn,columns:mi,flattenColumns:Ri,onColumnResize:qc,hoverStartRow:co,hoverEndRow:S,onHover:P,rowExpandable:ot.rowExpandable,onRow:pr,getRowKey:yr,expandedKeys:bt,childrenColumnName:Ie}},[oo,re,wr,C,Tn,ns,Ua,H,ye,bs,ba,To,Be,me,ot.expandedRowClassName,Jt,ut,ot.expandRowByClick,ot.expandedRowRender,Ue,ot.expandIconColumnIndex,ot.indentSize,Qn,mi,Ri,qc,co,S,P,ot.rowExpandable,pr,yr,bt,Ie]);return I.createElement(et.Provider,{value:So},jo)}function Er(ht){return It(dr,ht)}var Pi=Er();Pi.EXPAND_COLUMN=y,Pi.INTERNAL_HOOKS=N,Pi.Column=ir,Pi.ColumnGroup=le,Pi.Summary=Ct;var pi=Pi,ur=h(50030),Re=rt(null),Rr=rt(null);function je(ht,mt,ee){var re=mt||1;return ee[ht+re]-(ee[ht]||0)}function nr(ht){var mt=ht.rowInfo,ee=ht.column,re=ht.colIndex,Se=ht.indent,me=ht.index,Ye=ht.renderIndex,Ze=ht.record,_e=ht.style,wn=ht.className,An=ht.inverse,Tn=ht.getHeight,ii=ee.render,Vn=ee.dataIndex,Hn=ee.className,Fi=ee.width,Zn=Q(Rr,["columnsOffset"]),ki=Zn.columnsOffset,wi=xe(mt,ee,re,Se,me),_i=wi.key,pr=wi.fixedInfo,cr=wi.appendCellNode,Oi=wi.additionalCellProps,jt=Oi.style,to=Oi.colSpan,Li=to===void 0?1:to,sr=Oi.rowSpan,Ai=sr===void 0?1:sr,gi=re-1,ji=je(gi,Li,ki),wr=Li>1?Fi-ji:0,yr=(0,ie.Z)((0,ie.Z)((0,ie.Z)({},jt),_e),{},{flex:"0 0 ".concat(ji,"px"),width:"".concat(ji,"px"),marginRight:wr,pointerEvents:"auto"}),$r=I.useMemo(function(){return An?Ai<=1:Li===0||Ai===0||Ai>1},[Ai,Li,An]);$r?yr.visibility="hidden":An&&(yr.height=Tn==null?void 0:Tn(Ai));var Bi=$r?function(){return null}:ii,no={};return(Ai===0||Li===0)&&(no.rowSpan=1,no.colSpan=1),I.createElement(_n,(0,kt.Z)({className:Ht()(Hn,wn),ellipsis:ee.ellipsis,align:ee.align,scope:ee.rowScope,component:"div",prefixCls:mt.prefixCls,key:_i,record:Ze,index:me,renderIndex:Ye,dataIndex:Vn,render:Bi,shouldCellUpdate:ee.shouldCellUpdate},pr,{appendNode:cr,additionalProps:(0,ie.Z)((0,ie.Z)({},Oi),{},{style:yr},no)}))}var Co=nr,Br=["data","index","className","rowKey","style","extra","getHeight"],rs=I.forwardRef(function(ht,mt){var ee=ht.data,re=ht.index,Se=ht.className,me=ht.rowKey,Ye=ht.style,Ze=ht.extra,_e=ht.getHeight,wn=(0,L.Z)(ht,Br),An=ee.record,Tn=ee.indent,ii=ee.index,Vn=Q(et,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Hn=Vn.scrollX,Fi=Vn.flattenColumns,Zn=Vn.prefixCls,ki=Vn.fixColumn,wi=Vn.componentWidth,_i=Bt(An,me,re,Tn),pr=_i.rowSupportExpand,cr=_i.expanded,Oi=_i.rowProps,jt=_i.expandedRowRender,to=_i.expandedRowClassName,Li;if(pr&&cr){var sr=jt(An,re,Tn+1,cr),Ai=to==null?void 0:to(An,re,Tn),gi={};ki&&(gi={style:(0,yt.Z)({},"--virtual-width","".concat(wi,"px"))});var ji="".concat(Zn,"-expanded-row-cell");Li=I.createElement("div",{className:Ht()("".concat(Zn,"-expanded-row"),"".concat(Zn,"-expanded-row-level-").concat(Tn+1),Ai)},I.createElement(_n,{component:"div",prefixCls:Zn,className:Ht()(ji,(0,yt.Z)({},"".concat(ji,"-fixed"),ki)),additionalProps:gi},sr))}var wr=(0,ie.Z)((0,ie.Z)({},Ye),{},{width:Hn});Ze&&(wr.position="absolute",wr.pointerEvents="none");var yr=I.createElement("div",(0,kt.Z)({},Oi,wn,{ref:pr?null:mt,className:Ht()(Se,"".concat(Zn,"-row"),Oi==null?void 0:Oi.className,(0,yt.Z)({},"".concat(Zn,"-row-extra"),Ze)),style:(0,ie.Z)((0,ie.Z)({},wr),Oi==null?void 0:Oi.style)}),Fi.map(function($r,Bi){return I.createElement(Co,{key:Bi,rowInfo:_i,column:$r,colIndex:Bi,indent:Tn,index:re,renderIndex:ii,record:An,inverse:Ze,getHeight:_e})}));return pr?I.createElement("div",{ref:mt},yr,Li):yr}),yo=$t(rs),ai=yo,W=I.forwardRef(function(ht,mt){var ee=ht.data,re=ht.onScroll,Se=Q(et,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),me=Se.flattenColumns,Ye=Se.onColumnResize,Ze=Se.getRowKey,_e=Se.expandedKeys,wn=Se.prefixCls,An=Se.childrenColumnName,Tn=Se.emptyNode,ii=Se.scrollX,Vn=Q(Re),Hn=Vn.scrollY,Fi=Vn.listItemHeight,Zn=I.useRef(),ki=Ce(ee,An,_e,Ze),wi=I.useMemo(function(){var Li=0;return me.map(function(sr){var Ai=sr.width,gi=sr.key;return Li+=Ai,[gi,Ai,Li]})},[me]),_i=I.useMemo(function(){return wi.map(function(Li){return Li[2]})},[wi]);I.useEffect(function(){wi.forEach(function(Li){var sr=(0,O.Z)(Li,2),Ai=sr[0],gi=sr[1];Ye(Ai,gi)})},[wi]),I.useImperativeHandle(mt,function(){var Li={};return Object.defineProperty(Li,"scrollLeft",{get:function(){var Ai;return((Ai=Zn.current)===null||Ai===void 0?void 0:Ai.getScrollInfo().x)||0},set:function(Ai){var gi;(gi=Zn.current)===null||gi===void 0||gi.scrollTo({left:Ai})}}),Li});var pr=function(sr,Ai){var gi,ji=(gi=ki[Ai])===null||gi===void 0?void 0:gi.record,wr=sr.onCell;if(wr){var yr,$r=wr(ji,Ai);return(yr=$r==null?void 0:$r.rowSpan)!==null&&yr!==void 0?yr:1}return 1},cr=function(sr){var Ai=sr.start,gi=sr.end,ji=sr.getSize,wr=sr.offsetY;if(gi<0)return null;for(var yr=me.filter(function(he){return pr(he,Ai)===0}),$r=Ai,Bi=function(Fe){if(yr=yr.filter(function(Oe){return pr(Oe,Fe)===0}),!yr.length)return $r=Fe,"break"},no=Ai;no>=0;no-=1){var co=Bi(no);if(co==="break")break}for(var S=me.filter(function(he){return pr(he,gi)!==1}),P=gi,U=function(Fe){if(S=S.filter(function(Oe){return pr(Oe,Fe)!==1}),!S.length)return P=Math.max(Fe-1,gi),"break"},Z=gi;Z<ki.length;Z+=1){var ot=U(Z);if(ot==="break")break}for(var ut=[],bt=function(Fe){var Oe=ki[Fe];if(!Oe)return"continue";me.some(function(ye){return pr(ye,Fe)>1})&&ut.push(Fe)},Jt=$r;Jt<=P;Jt+=1)var Ie=bt(Jt);var Ue=ut.map(function(he){var Fe=ki[he],Oe=Ze(Fe.record,he),ye=function(zi){var mi=he+zi-1,Ri=Ze(ki[mi].record,mi),tr=ji(Oe,Ri);return tr.bottom-tr.top},Ni=ji(Oe);return I.createElement(ai,{key:he,data:Fe,rowKey:Oe,index:he,style:{top:-wr+Ni.top},extra:!0,getHeight:ye})});return Ue},Oi=I.useMemo(function(){return{columnsOffset:_i}},[_i]),jt="".concat(wn,"-tbody"),to;return ki.length?to=I.createElement(ur.Z,{fullHeight:!1,ref:Zn,className:Ht()(jt,"".concat(jt,"-virtual")),height:Hn,itemHeight:Fi||24,data:ki,itemKey:function(sr){return Ze(sr.record)},scrollWidth:ii,onVirtualScroll:function(sr){var Ai=sr.x;re({scrollLeft:Ai})},extraRender:cr},function(Li,sr,Ai){var gi=Ze(Li.record,sr);return I.createElement(ai,(0,kt.Z)({data:Li,rowKey:gi,index:sr},Ai))}):to=I.createElement("div",{className:Ht()("".concat(wn,"-placeholder"))},I.createElement(_n,{component:"div",prefixCls:wn},Tn)),I.createElement(Rr.Provider,{value:Oi},to)}),tt=$t(W),Pn=tt,pt=function(mt,ee){var re=ee.ref,Se=ee.onScroll;return I.createElement(Pn,{ref:re,data:mt,onScroll:Se})},$=100;function Wi(ht){var mt=ht.columns,ee=ht.scroll,re=ht.prefixCls,Se=re===void 0?mr:re,me=ht.className,Ye=ht.listItemHeight,Ze=ee||{},_e=Ze.x,wn=Ze.y;typeof _e!="number"&&(_e=((mt||[]).length+1)*$),typeof wn!="number"&&(wn=500);var An=I.useMemo(function(){return{scrollY:wn,listItemHeight:Ye}},[wn,Ye]);return I.createElement(Re.Provider,{value:An},I.createElement(pi,(0,kt.Z)({},ht,{className:Ht()(me,"".concat(Se,"-virtual")),scroll:(0,ie.Z)((0,ie.Z)({},ee),{},{x:_e}),components:{body:pt},columns:mt,internalHooks:N,tailor:!0})))}function bi(ht){return It(Wi,ht)}var qi=bi(),go=null;function Ui(ht){return null}var Xr=Ui;function $i(ht){return null}var Vi=$i,se=h(2738),kr=h(68031),De=h(36355),Wo=h(93891),ls=h(19716),ni=h(8628),Ps=h(31724),Is=h(58421),Js=h(71418),Us=h(88088);function oa(ht){return function(ee){let{prefixCls:re,onExpand:Se,record:me,expanded:Ye,expandable:Ze}=ee;const _e=`${re}-row-expand-icon`;return I.createElement("button",{type:"button",onClick:wn=>{Se(me,wn),wn.stopPropagation()},className:Ht()(_e,{[`${_e}-spaced`]:!Ze,[`${_e}-expanded`]:Ze&&Ye,[`${_e}-collapsed`]:Ze&&!Ye}),"aria-label":Ye?ht.collapse:ht.expand,"aria-expanded":Ye})}}var Qa=oa;function da(ht,mt){return"key"in ht&&ht.key!==void 0&&ht.key!==null?ht.key:ht.dataIndex?Array.isArray(ht.dataIndex)?ht.dataIndex.join("."):ht.dataIndex:mt}function Jr(ht,mt){return mt?`${mt}-${ht}`:`${ht}`}function vs(ht,mt){return typeof ht=="function"?ht(mt):ht}function es(ht,mt){const ee=vs(ht,mt);return Object.prototype.toString.call(ee)==="[object Object]"?"":ee}var ke={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"},ys=ke,Su=h(7657),Dl=function(mt,ee){return I.createElement(Su.Z,(0,kt.Z)({},mt,{ref:ee,icon:ys}))},lo=I.forwardRef(Dl),Fo=lo,ws=h(56762);function Ko(ht){const mt=I.useRef(ht),ee=(0,ws.Z)();return[()=>mt.current,re=>{mt.current=re,ee()}]}var Ur=h(3113),uo=h(24905),Pa=h(38854),br=h(64165),io=h(20834),eo=h(40875),ri=h(5112),Cs=h(17574),Zo=h(47472),ga=h(92832);function sl(ht){let{value:mt,onChange:ee,filterSearch:re,tablePrefixCls:Se,locale:me}=ht;return re?I.createElement("div",{className:`${Se}-filter-dropdown-search`},I.createElement(ga.default,{prefix:I.createElement(Zo.Z,null),placeholder:me.filterSearchPlaceholder,onChange:ee,value:mt,htmlSize:1,className:`${Se}-filter-dropdown-search-input`})):null}var Cl=sl,Wn=h(10228);const us=ht=>{const{keyCode:mt}=ht;mt===Wn.Z.ENTER&&ht.stopPropagation()};var qa=I.forwardRef((ht,mt)=>I.createElement("div",{className:ht.className,onClick:ee=>ee.stopPropagation(),onKeyDown:us,ref:mt},ht.children));function al(ht){let mt=[];return(ht||[]).forEach(ee=>{let{value:re,children:Se}=ee;mt.push(re),Se&&(mt=[].concat((0,ui.Z)(mt),(0,ui.Z)(al(Se))))}),mt}function Fa(ht){return ht.some(mt=>{let{children:ee}=mt;return ee})}function Sr(ht,mt){return typeof mt=="string"||typeof mt=="number"?mt==null?void 0:mt.toString().toLowerCase().includes(ht.trim().toLowerCase()):!1}function iu(ht){let{filters:mt,prefixCls:ee,filteredKeys:re,filterMultiple:Se,searchValue:me,filterSearch:Ye}=ht;return mt.map((Ze,_e)=>{const wn=String(Ze.value);if(Ze.children)return{key:wn||_e,label:Ze.text,popupClassName:`${ee}-dropdown-submenu`,children:iu({filters:Ze.children,prefixCls:ee,filteredKeys:re,filterMultiple:Se,searchValue:me,filterSearch:Ye})};const An=Se?uo.default:ri.ZP,Tn={key:Ze.value!==void 0?wn:_e,label:I.createElement(I.Fragment,null,I.createElement(An,{checked:re.includes(wn)}),I.createElement("span",null,Ze.text))};return me.trim()?typeof Ye=="function"?Ye(me,Ze)?Tn:null:Sr(me,Ze.text)?Tn:null:Tn})}function Ba(ht){var mt,ee;const{tablePrefixCls:re,prefixCls:Se,column:me,dropdownPrefixCls:Ye,columnKey:Ze,filterMultiple:_e,filterMode:wn="menu",filterSearch:An=!1,filterState:Tn,triggerFilter:ii,locale:Vn,children:Hn,getPopupContainer:Fi}=ht,{filterDropdownOpen:Zn,onFilterDropdownOpenChange:ki,filterResetToDefaultFilteredValue:wi,defaultFilteredValue:_i,filterDropdownVisible:pr,onFilterDropdownVisibleChange:cr}=me,[Oi,jt]=I.useState(!1),to=!!(Tn&&(!((mt=Tn.filteredKeys)===null||mt===void 0)&&mt.length||Tn.forceFiltered)),Li=fi=>{jt(fi),ki==null||ki(fi),cr==null||cr(fi)},sr=(ee=Zn!=null?Zn:pr)!==null&&ee!==void 0?ee:Oi,Ai=Tn==null?void 0:Tn.filteredKeys,[gi,ji]=Ko(Ai||[]),wr=fi=>{let{selectedKeys:zi}=fi;ji(zi)},yr=(fi,zi)=>{let{node:mi,checked:Ri}=zi;wr(_e?{selectedKeys:fi}:{selectedKeys:Ri&&mi.key?[mi.key]:[]})};I.useEffect(()=>{Oi&&wr({selectedKeys:Ai||[]})},[Ai]);const[$r,Bi]=I.useState([]),no=fi=>{Bi(fi)},[co,S]=I.useState(""),P=fi=>{const{value:zi}=fi.target;S(zi)};I.useEffect(()=>{Oi||S("")},[Oi]);const U=fi=>{const zi=fi&&fi.length?fi:null;if(zi===null&&(!Tn||!Tn.filteredKeys)||(0,K.Z)(zi,Tn==null?void 0:Tn.filteredKeys,!0))return null;ii({column:me,key:Ze,filteredKeys:zi})},Z=()=>{Li(!1),U(gi())},ot=function(){let{confirm:fi,closeDropdown:zi}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};fi&&U([]),zi&&Li(!1),S(""),ji(wi?(_i||[]).map(mi=>String(mi)):[])},ut=function(){let{closeDropdown:fi}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};fi&&Li(!1),U(gi())},bt=fi=>{fi&&Ai!==void 0&&ji(Ai||[]),Li(fi),!fi&&!me.filterDropdown&&Z()},Jt=Ht()({[`${Ye}-menu-without-submenu`]:!Fa(me.filters||[])}),Ie=fi=>{if(fi.target.checked){const zi=al(me==null?void 0:me.filters).map(mi=>String(mi));ji(zi)}else ji([])},Ue=fi=>{let{filters:zi}=fi;return(zi||[]).map((mi,Ri)=>{const tr=String(mi.value),oo={title:mi.text,key:mi.value!==void 0?tr:Ri};return mi.children&&(oo.children=Ue({filters:mi.children})),oo})},he=fi=>{var zi;return Object.assign(Object.assign({},fi),{text:fi.title,value:fi.key,children:((zi=fi.children)===null||zi===void 0?void 0:zi.map(mi=>he(mi)))||[]})};let Fe;if(typeof me.filterDropdown=="function")Fe=me.filterDropdown({prefixCls:`${Ye}-custom`,setSelectedKeys:fi=>wr({selectedKeys:fi}),selectedKeys:gi(),confirm:ut,clearFilters:ot,filters:me.filters,visible:sr,close:()=>{Li(!1)}});else if(me.filterDropdown)Fe=me.filterDropdown;else{const fi=gi()||[],zi=()=>(me.filters||[]).length===0?I.createElement(br.Z,{image:br.Z.PRESENTED_IMAGE_SIMPLE,description:Vn.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):wn==="tree"?I.createElement(I.Fragment,null,I.createElement(Cl,{filterSearch:An,value:co,onChange:P,tablePrefixCls:re,locale:Vn}),I.createElement("div",{className:`${re}-filter-dropdown-tree`},_e?I.createElement(uo.default,{checked:fi.length===al(me.filters).length,indeterminate:fi.length>0&&fi.length<al(me.filters).length,className:`${re}-filter-dropdown-checkall`,onChange:Ie},Vn.filterCheckall):null,I.createElement(Cs.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:_e,checkStrictly:!_e,className:`${Ye}-menu`,onCheck:yr,checkedKeys:fi,selectedKeys:fi,showIcon:!1,treeData:Ue({filters:me.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:co.trim()?Ri=>typeof An=="function"?An(co,he(Ri)):Sr(co,Ri.title):void 0}))):I.createElement(I.Fragment,null,I.createElement(Cl,{filterSearch:An,value:co,onChange:P,tablePrefixCls:re,locale:Vn}),I.createElement(io.default,{selectable:!0,multiple:_e,prefixCls:`${Ye}-menu`,className:Jt,onSelect:wr,onDeselect:wr,selectedKeys:fi,getPopupContainer:Fi,openKeys:$r,onOpenChange:no,items:iu({filters:me.filters||[],filterSearch:An,prefixCls:Se,filteredKeys:gi(),filterMultiple:_e,searchValue:co})})),mi=()=>wi?(0,K.Z)((_i||[]).map(Ri=>String(Ri)),fi,!0):fi.length===0;Fe=I.createElement(I.Fragment,null,zi(),I.createElement("div",{className:`${Se}-dropdown-btns`},I.createElement(Ur.ZP,{type:"link",size:"small",disabled:mi(),onClick:()=>ot()},Vn.filterReset),I.createElement(Ur.ZP,{type:"primary",size:"small",onClick:Z},Vn.filterConfirm)))}me.filterDropdown&&(Fe=I.createElement(eo.J,{selectable:void 0},Fe));const Oe=()=>I.createElement(qa,{className:`${Se}-dropdown`},Fe);let ye;typeof me.filterIcon=="function"?ye=me.filterIcon(to):me.filterIcon?ye=me.filterIcon:ye=I.createElement(Fo,null);const{direction:Ni}=I.useContext(De.E_);return I.createElement("div",{className:`${Se}-column`},I.createElement("span",{className:`${re}-column-title`},Hn),I.createElement(Pa.Z,{dropdownRender:Oe,trigger:["click"],open:sr,onOpenChange:bt,getPopupContainer:Fi,placement:Ni==="rtl"?"bottomLeft":"bottomRight"},I.createElement("span",{role:"button",tabIndex:-1,className:Ht()(`${Se}-trigger`,{active:to}),onClick:fi=>{fi.stopPropagation()}},ye)))}var Ln=Ba;function Jo(ht,mt,ee){let re=[];return(ht||[]).forEach((Se,me)=>{var Ye;const Ze=Jr(me,ee);if(Se.filters||"filterDropdown"in Se||"onFilter"in Se)if("filteredValue"in Se){let _e=Se.filteredValue;"filterDropdown"in Se||(_e=(Ye=_e==null?void 0:_e.map(String))!==null&&Ye!==void 0?Ye:_e),re.push({column:Se,key:da(Se,Ze),filteredKeys:_e,forceFiltered:Se.filtered})}else re.push({column:Se,key:da(Se,Ze),filteredKeys:mt&&Se.defaultFilteredValue?Se.defaultFilteredValue:void 0,forceFiltered:Se.filtered});"children"in Se&&(re=[].concat((0,ui.Z)(re),(0,ui.Z)(Jo(Se.children,mt,Ze))))}),re}function za(ht,mt,ee,re,Se,me,Ye,Ze){return ee.map((_e,wn)=>{const An=Jr(wn,Ze),{filterMultiple:Tn=!0,filterMode:ii,filterSearch:Vn}=_e;let Hn=_e;if(Hn.filters||Hn.filterDropdown){const Fi=da(Hn,An),Zn=re.find(ki=>{let{key:wi}=ki;return Fi===wi});Hn=Object.assign(Object.assign({},Hn),{title:ki=>I.createElement(Ln,{tablePrefixCls:ht,prefixCls:`${ht}-filter`,dropdownPrefixCls:mt,column:Hn,columnKey:Fi,filterState:Zn,filterMultiple:Tn,filterMode:ii,filterSearch:Vn,triggerFilter:me,locale:Se,getPopupContainer:Ye},vs(_e.title,ki))})}return"children"in Hn&&(Hn=Object.assign(Object.assign({},Hn),{children:za(ht,mt,Hn.children,re,Se,me,Ye,An)})),Hn})}function Aa(ht){const mt={};return ht.forEach(ee=>{let{key:re,filteredKeys:Se,column:me}=ee;const{filters:Ye,filterDropdown:Ze}=me;if(Ze)mt[re]=Se||null;else if(Array.isArray(Se)){const _e=al(Ye);mt[re]=_e.filter(wn=>Se.includes(String(wn)))}else mt[re]=null}),mt}function ka(ht,mt){return mt.reduce((ee,re)=>{const{column:{onFilter:Se,filters:me},filteredKeys:Ye}=re;return Se&&Ye&&Ye.length?ee.filter(Ze=>Ye.some(_e=>{const wn=al(me),An=wn.findIndex(ii=>String(ii)===String(_e)),Tn=An!==-1?wn[An]:_e;return Se(Tn,Ze)})):ee},ht)}const _a=ht=>ht.flatMap(mt=>"children"in mt?[mt].concat((0,ui.Z)(_a(mt.children||[]))):[mt]);function Fu(ht){let{prefixCls:mt,dropdownPrefixCls:ee,mergedColumns:re,onFilterChange:Se,getPopupContainer:me,locale:Ye}=ht;const Ze=I.useMemo(()=>_a(re||[]),[re]),[_e,wn]=I.useState(()=>Jo(Ze,!0)),An=I.useMemo(()=>{const Hn=Jo(Ze,!1);if(Hn.length===0)return Hn;let Fi=!0,Zn=!0;if(Hn.forEach(ki=>{let{filteredKeys:wi}=ki;wi!==void 0?Fi=!1:Zn=!1}),Fi){const ki=(Ze||[]).map((wi,_i)=>da(wi,Jr(_i)));return _e.filter(wi=>{let{key:_i}=wi;return ki.includes(_i)}).map(wi=>{const _i=Ze[ki.findIndex(pr=>pr===wi.key)];return Object.assign(Object.assign({},wi),{column:Object.assign(Object.assign({},wi.column),_i),forceFiltered:_i.filtered})})}return Hn},[Ze,_e]),Tn=I.useMemo(()=>Aa(An),[An]),ii=Hn=>{const Fi=An.filter(Zn=>{let{key:ki}=Zn;return ki!==Hn.key});Fi.push(Hn),wn(Fi),Se(Aa(Fi),Fi)};return[Hn=>za(mt,ee,Hn,An,Ye,ii,me),An,Tn]}var Ha=Fu;function Vl(ht,mt,ee){const re=I.useRef({});function Se(me){if(!re.current||re.current.data!==ht||re.current.childrenColumnName!==mt||re.current.getRowKey!==ee){let Ze=function(_e){_e.forEach((wn,An)=>{const Tn=ee(wn,An);Ye.set(Tn,wn),wn&&typeof wn=="object"&&mt in wn&&Ze(wn[mt]||[])})};const Ye=new Map;Ze(ht),re.current={data:ht,childrenColumnName:mt,kvMap:Ye,getRowKey:ee}}return re.current.kvMap.get(me)}return[Se]}var vr=h(50371),ll=function(ht,mt){var ee={};for(var re in ht)Object.prototype.hasOwnProperty.call(ht,re)&&mt.indexOf(re)<0&&(ee[re]=ht[re]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Se=0,re=Object.getOwnPropertySymbols(ht);Se<re.length;Se++)mt.indexOf(re[Se])<0&&Object.prototype.propertyIsEnumerable.call(ht,re[Se])&&(ee[re[Se]]=ht[re[Se]]);return ee};const Kl=10;function Es(ht,mt){const ee={current:ht.current,pageSize:ht.pageSize};return Object.keys(mt&&typeof mt=="object"?mt:{}).forEach(Se=>{const me=ht[Se];typeof me!="function"&&(ee[Se]=me)}),ee}function Qs(ht,mt,ee){const re=ee&&typeof ee=="object"?ee:{},{total:Se=0}=re,me=ll(re,["total"]),[Ye,Ze]=(0,I.useState)(()=>({current:"defaultCurrent"in me?me.defaultCurrent:1,pageSize:"defaultPageSize"in me?me.defaultPageSize:Kl})),_e=(0,vr.Z)(Ye,me,{total:Se>0?Se:ht}),wn=Math.ceil((Se||ht)/_e.pageSize);_e.current>wn&&(_e.current=wn||1);const An=(ii,Vn)=>{Ze({current:ii!=null?ii:1,pageSize:Vn||_e.pageSize})},Tn=(ii,Vn)=>{var Hn;ee&&((Hn=ee.onChange)===null||Hn===void 0||Hn.call(ee,ii,Vn)),An(ii,Vn),mt(ii,Vn||(_e==null?void 0:_e.pageSize))};return ee===!1?[{},()=>{}]:[Object.assign(Object.assign({},_e),{onChange:Tn}),An]}var ru=Qs,ou=h(84105),su=h(35654),_r=h(90782),Wr=h(71430),sa=h(18929);const Os={},As="SELECT_ALL",os="SELECT_INVERT",cs="SELECT_NONE",qr=[],is=(ht,mt)=>{let ee=[];return(mt||[]).forEach(re=>{ee.push(re),re&&typeof re=="object"&&ht in re&&(ee=[].concat((0,ui.Z)(ee),(0,ui.Z)(is(ht,re[ht]))))}),ee};var tl=(ht,mt)=>{const{preserveSelectedRowKeys:ee,selectedRowKeys:re,defaultSelectedRowKeys:Se,getCheckboxProps:me,onChange:Ye,onSelect:Ze,onSelectAll:_e,onSelectInvert:wn,onSelectNone:An,onSelectMultiple:Tn,columnWidth:ii,type:Vn,selections:Hn,fixed:Fi,renderCell:Zn,hideSelectAll:ki,checkStrictly:wi=!0}=mt||{},{prefixCls:_i,data:pr,pageData:cr,getRecordByKey:Oi,getRowKey:jt,expandType:to,childrenColumnName:Li,locale:sr,getPopupContainer:Ai}=ht,[gi,ji]=(0,sa.Z)(re||Se||qr,{value:re}),wr=I.useRef(new Map),yr=(0,I.useCallback)(he=>{if(ee){const Fe=new Map;he.forEach(Oe=>{let ye=Oi(Oe);!ye&&wr.current.has(Oe)&&(ye=wr.current.get(Oe)),Fe.set(Oe,ye)}),wr.current=Fe}},[Oi,ee]);I.useEffect(()=>{yr(gi)},[gi]);const{keyEntities:$r}=(0,I.useMemo)(()=>{if(wi)return{keyEntities:null};let he=pr;if(ee){const Fe=new Set(pr.map((ye,Ni)=>jt(ye,Ni))),Oe=Array.from(wr.current).reduce((ye,Ni)=>{let[fi,zi]=Ni;return Fe.has(fi)?ye:ye.concat(zi)},[]);he=[].concat((0,ui.Z)(he),(0,ui.Z)(Oe))}return(0,Wr.I8)(he,{externalGetKey:jt,childrenPropName:Li})},[pr,jt,wi,Li,ee]),Bi=(0,I.useMemo)(()=>is(Li,cr),[Li,cr]),no=(0,I.useMemo)(()=>{const he=new Map;return Bi.forEach((Fe,Oe)=>{const ye=jt(Fe,Oe),Ni=(me?me(Fe):null)||{};he.set(ye,Ni)}),he},[Bi,jt,me]),co=(0,I.useCallback)(he=>{var Fe;return!!(!((Fe=no.get(jt(he)))===null||Fe===void 0)&&Fe.disabled)},[no,jt]),[S,P]=(0,I.useMemo)(()=>{if(wi)return[gi||[],[]];const{checkedKeys:he,halfCheckedKeys:Fe}=(0,_r.S)(gi,!0,$r,co);return[he||[],Fe]},[gi,wi,$r,co]),U=(0,I.useMemo)(()=>{const he=Vn==="radio"?S.slice(0,1):S;return new Set(he)},[S,Vn]),Z=(0,I.useMemo)(()=>Vn==="radio"?new Set:new Set(P),[P,Vn]),[ot,ut]=(0,I.useState)(null);I.useEffect(()=>{mt||ji(qr)},[!!mt]);const bt=(0,I.useCallback)((he,Fe)=>{let Oe,ye;yr(he),ee?(Oe=he,ye=he.map(Ni=>wr.current.get(Ni))):(Oe=[],ye=[],he.forEach(Ni=>{const fi=Oi(Ni);fi!==void 0&&(Oe.push(Ni),ye.push(fi))})),ji(Oe),Ye==null||Ye(Oe,ye,{type:Fe})},[ji,Oi,Ye,ee]),Jt=(0,I.useCallback)((he,Fe,Oe,ye)=>{if(Ze){const Ni=Oe.map(fi=>Oi(fi));Ze(Oi(he),Fe,Ni,ye)}bt(Oe,"single")},[Ze,Oi,bt]),Ie=(0,I.useMemo)(()=>!Hn||ki?null:(Hn===!0?[As,os,cs]:Hn).map(Fe=>Fe===As?{key:"all",text:sr.selectionAll,onSelect(){bt(pr.map((Oe,ye)=>jt(Oe,ye)).filter(Oe=>{const ye=no.get(Oe);return!(ye!=null&&ye.disabled)||U.has(Oe)}),"all")}}:Fe===os?{key:"invert",text:sr.selectInvert,onSelect(){const Oe=new Set(U);cr.forEach((Ni,fi)=>{const zi=jt(Ni,fi),mi=no.get(zi);mi!=null&&mi.disabled||(Oe.has(zi)?Oe.delete(zi):Oe.add(zi))});const ye=Array.from(Oe);wn&&wn(ye),bt(ye,"invert")}}:Fe===cs?{key:"none",text:sr.selectNone,onSelect(){An==null||An(),bt(Array.from(U).filter(Oe=>{const ye=no.get(Oe);return ye==null?void 0:ye.disabled}),"none")}}:Fe).map(Fe=>Object.assign(Object.assign({},Fe),{onSelect:function(){for(var Oe,ye,Ni=arguments.length,fi=new Array(Ni),zi=0;zi<Ni;zi++)fi[zi]=arguments[zi];(ye=Fe.onSelect)===null||ye===void 0||(Oe=ye).call.apply(Oe,[Fe].concat(fi)),ut(null)}})),[Hn,U,cr,jt,wn,bt]);return[(0,I.useCallback)(he=>{var Fe;if(!mt)return he.filter(bo=>bo!==Os);let Oe=(0,ui.Z)(he);const ye=new Set(U),Ni=Bi.map(jt).filter(bo=>!no.get(bo).disabled),fi=Ni.every(bo=>ye.has(bo)),zi=Ni.some(bo=>ye.has(bo)),mi=()=>{const bo=[];fi?Ni.forEach(rr=>{ye.delete(rr),bo.push(rr)}):Ni.forEach(rr=>{ye.has(rr)||(ye.add(rr),bo.push(rr))});const Vr=Array.from(ye);_e==null||_e(!fi,Vr.map(rr=>Oi(rr)),bo.map(rr=>Oi(rr))),bt(Vr,"all"),ut(null)};let Ri;if(Vn!=="radio"){let bo;if(Ie){const xr={getPopupContainer:Ai,items:Ie.map((vo,ms)=>{const{key:qs,text:nn,onSelect:Gs}=vo;return{key:qs!=null?qs:ms,onClick:()=>{Gs==null||Gs(Ni)},label:nn}})};bo=I.createElement("div",{className:`${_i}-selection-extra`},I.createElement(Pa.Z,{menu:xr,getPopupContainer:Ai},I.createElement("span",null,I.createElement(ou.Z,null))))}const Vr=Bi.map((xr,vo)=>{const ms=jt(xr,vo),qs=no.get(ms)||{};return Object.assign({checked:ye.has(ms)},qs)}).filter(xr=>{let{disabled:vo}=xr;return vo}),rr=!!Vr.length&&Vr.length===Bi.length,Hr=rr&&Vr.every(xr=>{let{checked:vo}=xr;return vo}),Qr=rr&&Vr.some(xr=>{let{checked:vo}=xr;return vo});Ri=!ki&&I.createElement("div",{className:`${_i}-selection`},I.createElement(uo.default,{checked:rr?Hr:!!Bi.length&&fi,indeterminate:rr?!Hr&&Qr:!fi&&zi,onChange:mi,disabled:Bi.length===0||rr,"aria-label":bo?"Custom selection":"Select all",skipGroup:!0}),bo)}let tr;Vn==="radio"?tr=(bo,Vr,rr)=>{const Hr=jt(Vr,rr),Qr=ye.has(Hr);return{node:I.createElement(ri.ZP,Object.assign({},no.get(Hr),{checked:Qr,onClick:xr=>xr.stopPropagation(),onChange:xr=>{ye.has(Hr)||Jt(Hr,!0,[Hr],xr.nativeEvent)}})),checked:Qr}}:tr=(bo,Vr,rr)=>{var Hr;const Qr=jt(Vr,rr),xr=ye.has(Qr),vo=Z.has(Qr),ms=no.get(Qr);let qs;return to==="nest"?qs=vo:qs=(Hr=ms==null?void 0:ms.indeterminate)!==null&&Hr!==void 0?Hr:vo,{node:I.createElement(uo.default,Object.assign({},ms,{indeterminate:qs,checked:xr,skipGroup:!0,onClick:nn=>nn.stopPropagation(),onChange:nn=>{let{nativeEvent:Gs}=nn;const{shiftKey:la}=Gs;let on=-1,Ws=-1;if(la&&wi){const zo=new Set([ot,Qr]);Ni.some((pa,bs)=>{if(zo.has(pa))if(on===-1)on=bs;else return Ws=bs,!0;return!1})}if(Ws!==-1&&on!==Ws&&wi){const zo=Ni.slice(on,Ws+1),pa=[];xr?zo.forEach(To=>{ye.has(To)&&(pa.push(To),ye.delete(To))}):zo.forEach(To=>{ye.has(To)||(pa.push(To),ye.add(To))});const bs=Array.from(ye);Tn==null||Tn(!xr,bs.map(To=>Oi(To)),pa.map(To=>Oi(To))),bt(bs,"multiple")}else{const zo=S;if(wi){const pa=xr?(0,su._5)(zo,Qr):(0,su.L0)(zo,Qr);Jt(Qr,!xr,pa,Gs)}else{const pa=(0,_r.S)([].concat((0,ui.Z)(zo),[Qr]),!0,$r,co),{checkedKeys:bs,halfCheckedKeys:To}=pa;let ba=bs;if(xr){const La=new Set(bs);La.delete(Qr),ba=(0,_r.S)(Array.from(La),{checked:!1,halfCheckedKeys:To},$r,co).checkedKeys}Jt(Qr,!xr,ba,Gs)}}ut(xr?null:Qr)}})),checked:xr}};const oo=(bo,Vr,rr)=>{const{node:Hr,checked:Qr}=tr(bo,Vr,rr);return Zn?Zn(Qr,Vr,rr,Hr):Hr};if(!Oe.includes(Os))if(Oe.findIndex(bo=>{var Vr;return((Vr=bo[Si])===null||Vr===void 0?void 0:Vr.columnType)==="EXPAND_COLUMN"})===0){const[bo,...Vr]=Oe;Oe=[bo,Os].concat((0,ui.Z)(Vr))}else Oe=[Os].concat((0,ui.Z)(Oe));const ho=Oe.indexOf(Os);Oe=Oe.filter((bo,Vr)=>bo!==Os||Vr===ho);const ti=Oe[ho-1],Eo=Oe[ho+1];let Mo=Fi;Mo===void 0&&((Eo==null?void 0:Eo.fixed)!==void 0?Mo=Eo.fixed:(ti==null?void 0:ti.fixed)!==void 0&&(Mo=ti.fixed)),Mo&&ti&&((Fe=ti[Si])===null||Fe===void 0?void 0:Fe.columnType)==="EXPAND_COLUMN"&&ti.fixed===void 0&&(ti.fixed=Mo);const po=Ht()(`${_i}-selection-col`,{[`${_i}-selection-col-with-dropdown`]:Hn&&Vn==="checkbox"}),ds={fixed:Mo,width:ii,className:`${_i}-selection-column`,title:mt.columnTitle||Ri,render:oo,onCell:mt.onCell,[Si]:{className:po}};return Oe.map(bo=>bo===Os?ds:bo)},[jt,Bi,mt,S,U,Z,ii,Ie,to,ot,no,Tn,Jt,co]),U]},Lo=h(89489),Ga=h(59477),Rc=h(6848);const Ii="ascend",Ti="descend";function Zu(ht){return typeof ht.sorter=="object"&&typeof ht.sorter.multiple=="number"?ht.sorter.multiple:!1}function Vt(ht){return typeof ht=="function"?ht:ht&&typeof ht=="object"&&ht.compare?ht.compare:!1}function mn(ht,mt){return mt?ht[ht.indexOf(mt)+1]:ht[0]}function $a(ht,mt,ee){let re=[];function Se(me,Ye){re.push({column:me,key:da(me,Ye),multiplePriority:Zu(me),sortOrder:me.sortOrder})}return(ht||[]).forEach((me,Ye)=>{const Ze=Jr(Ye,ee);me.children?("sortOrder"in me&&Se(me,Ze),re=[].concat((0,ui.Z)(re),(0,ui.Z)($a(me.children,mt,Ze)))):me.sorter&&("sortOrder"in me?Se(me,Ze):mt&&me.defaultSortOrder&&re.push({column:me,key:da(me,Ze),multiplePriority:Zu(me),sortOrder:me.defaultSortOrder}))}),re}function au(ht,mt,ee,re,Se,me,Ye,Ze){return(mt||[]).map((_e,wn)=>{const An=Jr(wn,Ze);let Tn=_e;if(Tn.sorter){const ii=Tn.sortDirections||Se,Vn=Tn.showSorterTooltip===void 0?Ye:Tn.showSorterTooltip,Hn=da(Tn,An),Fi=ee.find(to=>{let{key:Li}=to;return Li===Hn}),Zn=Fi?Fi.sortOrder:null,ki=mn(ii,Zn);let wi;if(_e.sortIcon)wi=_e.sortIcon({sortOrder:Zn});else{const to=ii.includes(Ii)&&I.createElement(Ga.Z,{className:Ht()(`${ht}-column-sorter-up`,{active:Zn===Ii})}),Li=ii.includes(Ti)&&I.createElement(Lo.Z,{className:Ht()(`${ht}-column-sorter-down`,{active:Zn===Ti})});wi=I.createElement("span",{className:Ht()(`${ht}-column-sorter`,{[`${ht}-column-sorter-full`]:!!(to&&Li)})},I.createElement("span",{className:`${ht}-column-sorter-inner`,"aria-hidden":"true"},to,Li))}const{cancelSort:_i,triggerAsc:pr,triggerDesc:cr}=me||{};let Oi=_i;ki===Ti?Oi=cr:ki===Ii&&(Oi=pr);const jt=typeof Vn=="object"?Vn:{title:Oi};Tn=Object.assign(Object.assign({},Tn),{className:Ht()(Tn.className,{[`${ht}-column-sort`]:Zn}),title:to=>{const Li=I.createElement("div",{className:`${ht}-column-sorters`},I.createElement("span",{className:`${ht}-column-title`},vs(_e.title,to)),wi);return Vn?I.createElement(Rc.Z,Object.assign({},jt),Li):Li},onHeaderCell:to=>{const Li=_e.onHeaderCell&&_e.onHeaderCell(to)||{},sr=Li.onClick,Ai=Li.onKeyDown;Li.onClick=wr=>{re({column:_e,key:Hn,sortOrder:ki,multiplePriority:Zu(_e)}),sr==null||sr(wr)},Li.onKeyDown=wr=>{wr.keyCode===Wn.Z.ENTER&&(re({column:_e,key:Hn,sortOrder:ki,multiplePriority:Zu(_e)}),Ai==null||Ai(wr))};const gi=es(_e.title,{}),ji=gi==null?void 0:gi.toString();return Zn?Li["aria-sort"]=Zn==="ascend"?"ascending":"descending":Li["aria-label"]=ji||"",Li.className=Ht()(Li.className,`${ht}-column-has-sorters`),Li.tabIndex=0,_e.ellipsis&&(Li.title=(gi!=null?gi:"").toString()),Li}})}return"children"in Tn&&(Tn=Object.assign(Object.assign({},Tn),{children:au(ht,Tn.children,ee,re,Se,me,Ye,An)})),Tn})}function ss(ht){const{column:mt,sortOrder:ee}=ht;return{column:mt,order:ee,field:mt.dataIndex,columnKey:mt.key}}function Fl(ht){const mt=ht.filter(ee=>{let{sortOrder:re}=ee;return re}).map(ss);return mt.length===0&&ht.length?Object.assign(Object.assign({},ss(ht[ht.length-1])),{column:void 0}):mt.length<=1?mt[0]||{}:mt}function lu(ht,mt,ee){const re=mt.slice().sort((Ye,Ze)=>Ze.multiplePriority-Ye.multiplePriority),Se=ht.slice(),me=re.filter(Ye=>{let{column:{sorter:Ze},sortOrder:_e}=Ye;return Vt(Ze)&&_e});return me.length?Se.sort((Ye,Ze)=>{for(let _e=0;_e<me.length;_e+=1){const wn=me[_e],{column:{sorter:An},sortOrder:Tn}=wn,ii=Vt(An);if(ii&&Tn){const Vn=ii(Ye,Ze,Tn);if(Vn!==0)return Tn===Ii?Vn:-Vn}}return 0}).map(Ye=>{const Ze=Ye[ee];return Ze?Object.assign(Object.assign({},Ye),{[ee]:lu(Ze,mt,ee)}):Ye}):Se}function Sc(ht){let{prefixCls:mt,mergedColumns:ee,onSorterChange:re,sortDirections:Se,tableLocale:me,showSorterTooltip:Ye}=ht;const[Ze,_e]=I.useState($a(ee,!0)),wn=I.useMemo(()=>{let Hn=!0;const Fi=$a(ee,!1);if(!Fi.length)return Ze;const Zn=[];function ki(_i){Hn?Zn.push(_i):Zn.push(Object.assign(Object.assign({},_i),{sortOrder:null}))}let wi=null;return Fi.forEach(_i=>{wi===null?(ki(_i),_i.sortOrder&&(_i.multiplePriority===!1?Hn=!1:wi=!0)):(wi&&_i.multiplePriority!==!1||(Hn=!1),ki(_i))}),Zn},[ee,Ze]),An=I.useMemo(()=>{const Hn=wn.map(Fi=>{let{column:Zn,sortOrder:ki}=Fi;return{column:Zn,order:ki}});return{sortColumns:Hn,sortColumn:Hn[0]&&Hn[0].column,sortOrder:Hn[0]&&Hn[0].order}},[wn]);function Tn(Hn){let Fi;Hn.multiplePriority===!1||!wn.length||wn[0].multiplePriority===!1?Fi=[Hn]:Fi=[].concat((0,ui.Z)(wn.filter(Zn=>{let{key:ki}=Zn;return ki!==Hn.key})),[Hn]),_e(Fi),re(Fl(Fi),Fi)}return[Hn=>au(mt,Hn,wn,Tn,Se,me,Ye),wn,An,()=>Fl(wn)]}function sc(ht,mt){return ht.map(ee=>{const re=Object.assign({},ee);return re.title=vs(ee.title,mt),"children"in re&&(re.children=sc(re.children,mt)),re})}function Ls(ht){return[I.useCallback(ee=>sc(ee,ht),[ht])]}var Lr=Er((ht,mt)=>{const{_renderTimes:ee}=ht,{_renderTimes:re}=mt;return ee!==re}),ja=bi((ht,mt)=>{const{_renderTimes:ee}=ht,{_renderTimes:re}=mt;return ee!==re}),Ma=h(64993),xs=h(17313),xo=h(83116),ia=h(37613),Tr=ht=>{const{componentCls:mt}=ht,ee=`${ht.lineWidth}px ${ht.lineType} ${ht.tableBorderColor}`,re=(Se,me,Ye)=>({[`&${mt}-${Se}`]:{[`> ${mt}-container`]:{[`> ${mt}-content, > ${mt}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${mt}-expanded-row-fixed`]:{margin:`-${me}px -${Ye+ht.lineWidth}px`}}}}}});return{[`${mt}-wrapper`]:{[`${mt}${mt}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${mt}-title`]:{border:ee,borderBottom:0},[`> ${mt}-container`]:{borderInlineStart:ee,borderTop:ee,[`
|
|
|
> ${mt}-content,
|
|
|
> ${mt}-header,
|
|
|
> ${mt}-body,
|
|
|
> ${mt}-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:ee},"> thead":{"> tr:not(:last-child) > th":{borderBottom:ee},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${mt}-cell-fix-right-first::after`]:{borderInlineEnd:ee}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${mt}-expanded-row-fixed`]:{margin:`-${ht.tablePaddingVertical}px -${ht.tablePaddingHorizontal+ht.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:ht.lineWidth,bottom:0,borderInlineEnd:ee,content:'""'}}}}}},[`&${mt}-scroll-horizontal`]:{[`> ${mt}-container > ${mt}-body`]:{"> table > tbody":{[`
|
|
|
> tr${mt}-expanded-row,
|
|
|
> tr${mt}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},re("middle",ht.tablePaddingVerticalMiddle,ht.tablePaddingHorizontalMiddle)),re("small",ht.tablePaddingVerticalSmall,ht.tablePaddingHorizontalSmall)),{[`> ${mt}-footer`]:{border:ee,borderTop:0}}),[`${mt}-cell`]:{[`${mt}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${ht.lineWidth}px 0 ${ht.lineWidth}px ${ht.tableHeaderBg}`}},[`${mt}-bordered ${mt}-cell-scrollbar`]:{borderInlineEnd:ee}}}},ra=ht=>{const{componentCls:mt}=ht;return{[`${mt}-wrapper`]:{[`${mt}-cell-ellipsis`]:Object.assign(Object.assign({},xs.vS),{wordBreak:"keep-all",[`
|
|
|
&${mt}-cell-fix-left-last,
|
|
|
&${mt}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${mt}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${mt}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},_o=ht=>{const{componentCls:mt}=ht;return{[`${mt}-wrapper`]:{[`${mt}-tbody > tr${mt}-placeholder`]:{textAlign:"center",color:ht.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:ht.colorBgContainer}}}}},Oa=h(15969),hs=ht=>{const{componentCls:mt,antCls:ee,controlInteractiveSize:re,motionDurationSlow:Se,lineWidth:me,paddingXS:Ye,lineType:Ze,tableBorderColor:_e,tableExpandIconBg:wn,tableExpandColumnWidth:An,borderRadius:Tn,fontSize:ii,fontSizeSM:Vn,lineHeight:Hn,tablePaddingVertical:Fi,tablePaddingHorizontal:Zn,tableExpandedRowBg:ki,paddingXXS:wi}=ht,_i=re/2-me,pr=_i*2+me*3,cr=`${me}px ${Ze} ${_e}`,Oi=wi-me;return{[`${mt}-wrapper`]:{[`${mt}-expand-icon-col`]:{width:An},[`${mt}-row-expand-icon-cell`]:{textAlign:"center",[`${mt}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${mt}-row-indent`]:{height:1,float:"left"},[`${mt}-row-expand-icon`]:Object.assign(Object.assign({},(0,Oa.N)(ht)),{position:"relative",float:"left",boxSizing:"border-box",width:pr,height:pr,padding:0,color:"inherit",lineHeight:`${pr}px`,background:wn,border:cr,borderRadius:Tn,transform:`scale(${re/pr})`,transition:`all ${Se}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Se} ease-out`,content:'""'},"&::before":{top:_i,insetInlineEnd:Oi,insetInlineStart:Oi,height:me},"&::after":{top:Oi,bottom:Oi,insetInlineStart:_i,width:me,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"}}),[`${mt}-row-indent + ${mt}-row-expand-icon`]:{marginTop:(ii*Hn-me*3)/2-Math.ceil((Vn*1.4-me*3)/2),marginInlineEnd:Ye},[`tr${mt}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:ki}},[`${ee}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${mt}-expanded-row-fixed`]:{position:"relative",margin:`-${Fi}px -${Zn}px`,padding:`${Fi}px ${Zn}px`}}}},Rs=ht=>{const{componentCls:mt,antCls:ee,iconCls:re,tableFilterDropdownWidth:Se,tableFilterDropdownSearchWidth:me,paddingXXS:Ye,paddingXS:Ze,colorText:_e,lineWidth:wn,lineType:An,tableBorderColor:Tn,tableHeaderIconColor:ii,fontSizeSM:Vn,tablePaddingHorizontal:Hn,borderRadius:Fi,motionDurationSlow:Zn,colorTextDescription:ki,colorPrimary:wi,tableHeaderFilterActiveBg:_i,colorTextDisabled:pr,tableFilterDropdownBg:cr,tableFilterDropdownHeight:Oi,controlItemBgHover:jt,controlItemBgActive:to,boxShadowSecondary:Li,filterDropdownMenuBg:sr}=ht,Ai=`${ee}-dropdown`,gi=`${mt}-filter-dropdown`,ji=`${ee}-tree`,wr=`${wn}px ${An} ${Tn}`;return[{[`${mt}-wrapper`]:{[`${mt}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${mt}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Ye,marginInline:`${Ye}px ${-Hn/2}px`,padding:`0 ${Ye}px`,color:ii,fontSize:Vn,borderRadius:Fi,cursor:"pointer",transition:`all ${Zn}`,"&:hover":{color:ki,background:_i},"&.active":{color:wi}}}},{[`${ee}-dropdown`]:{[gi]:Object.assign(Object.assign({},(0,xs.Wf)(ht)),{minWidth:Se,backgroundColor:cr,borderRadius:Fi,boxShadow:Li,overflow:"hidden",[`${Ai}-menu`]:{maxHeight:Oi,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:sr,"&:empty::after":{display:"block",padding:`${Ze}px 0`,color:pr,fontSize:Vn,textAlign:"center",content:'"Not Found"'}},[`${gi}-tree`]:{paddingBlock:`${Ze}px 0`,paddingInline:Ze,[ji]:{padding:0},[`${ji}-treenode ${ji}-node-content-wrapper:hover`]:{backgroundColor:jt},[`${ji}-treenode-checkbox-checked ${ji}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:to}}},[`${gi}-search`]:{padding:Ze,borderBottom:wr,"&-input":{input:{minWidth:me},[re]:{color:pr}}},[`${gi}-checkall`]:{width:"100%",marginBottom:Ye,marginInlineStart:Ye},[`${gi}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Ze-wn}px ${Ze}px`,overflow:"hidden",borderTop:wr}})}},{[`${ee}-dropdown ${gi}, ${gi}-submenu`]:{[`${ee}-checkbox-wrapper + span`]:{paddingInlineStart:Ze,color:_e},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Yu=ht=>{const{componentCls:mt,lineWidth:ee,colorSplit:re,motionDurationSlow:Se,zIndexTableFixed:me,tableBg:Ye,zIndexTableSticky:Ze}=ht,_e=re;return{[`${mt}-wrapper`]:{[`
|
|
|
${mt}-cell-fix-left,
|
|
|
${mt}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:me,background:Ye},[`
|
|
|
${mt}-cell-fix-left-first::after,
|
|
|
${mt}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-ee,width:30,transform:"translateX(100%)",transition:`box-shadow ${Se}`,content:'""',pointerEvents:"none"},[`${mt}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${mt}-cell-fix-right-first::after,
|
|
|
${mt}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-ee,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Se}`,content:'""',pointerEvents:"none"},[`${mt}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Ze+1,width:30,transition:`box-shadow ${Se}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${mt}-ping-left`]:{[`&:not(${mt}-has-fix-left) ${mt}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${_e}`}},[`
|
|
|
${mt}-cell-fix-left-first::after,
|
|
|
${mt}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${_e}`},[`${mt}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${mt}-ping-right`]:{[`&:not(${mt}-has-fix-right) ${mt}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${_e}`}},[`
|
|
|
${mt}-cell-fix-right-first::after,
|
|
|
${mt}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${_e}`}}}}},Dc=ht=>{const{componentCls:mt,antCls:ee}=ht;return{[`${mt}-wrapper`]:{[`${mt}-pagination${ee}-pagination`]:{margin:`${ht.margin}px 0`},[`${mt}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:ht.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},vh=ht=>{const{componentCls:mt,tableRadius:ee}=ht;return{[`${mt}-wrapper`]:{[mt]:{[`${mt}-title, ${mt}-header`]:{borderRadius:`${ee}px ${ee}px 0 0`},[`${mt}-title + ${mt}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${mt}-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:ee,borderStartEndRadius:ee,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:ee},"> *:last-child":{borderStartEndRadius:ee}}},"&-footer":{borderRadius:`0 0 ${ee}px ${ee}px`}}}}},lc=ht=>{const{componentCls:mt}=ht;return{[`${mt}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${mt}-pagination-left`]:{justifyContent:"flex-end"},[`${mt}-pagination-right`]:{justifyContent:"flex-start"},[`${mt}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${mt}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${mt}-row-indent`]:{float:"right"}}}}},uc=ht=>{const{componentCls:mt,antCls:ee,iconCls:re,fontSizeIcon:Se,padding:me,paddingXS:Ye,tableHeaderIconColor:Ze,tableHeaderIconColorHover:_e,tableSelectionColumnWidth:wn}=ht;return{[`${mt}-wrapper`]:{[`${mt}-selection-col`]:{width:wn,[`&${mt}-selection-col-with-dropdown`]:{width:wn+Se+me/4}},[`${mt}-bordered ${mt}-selection-col`]:{width:wn+Ye*2,[`&${mt}-selection-col-with-dropdown`]:{width:wn+Se+me/4+Ye*2}},[`
|
|
|
table tr th${mt}-selection-column,
|
|
|
table tr td${mt}-selection-column
|
|
|
`]:{paddingInlineEnd:ht.paddingXS,paddingInlineStart:ht.paddingXS,textAlign:"center",[`${ee}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${mt}-selection-column${mt}-cell-fix-left`]:{zIndex:ht.zIndexTableFixed+1},[`table tr th${mt}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${mt}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${mt}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${ht.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${ht.tablePaddingHorizontal/4}px`,[re]:{color:Ze,fontSize:Se,verticalAlign:"baseline","&:hover":{color:_e}}}}}},Cu=ht=>{const{componentCls:mt}=ht,ee=(re,Se,me,Ye)=>({[`${mt}${mt}-${re}`]:{fontSize:Ye,[`
|
|
|
${mt}-title,
|
|
|
${mt}-footer,
|
|
|
${mt}-cell,
|
|
|
${mt}-thead > tr > th,
|
|
|
${mt}-tbody > tr > th,
|
|
|
${mt}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${Se}px ${me}px`},[`${mt}-filter-trigger`]:{marginInlineEnd:`-${me/2}px`},[`${mt}-expanded-row-fixed`]:{margin:`-${Se}px -${me}px`},[`${mt}-tbody`]:{[`${mt}-wrapper:only-child ${mt}`]:{marginBlock:`-${Se}px`,marginInline:`${ht.tableExpandColumnWidth-me}px -${me}px`}},[`${mt}-selection-column`]:{paddingInlineStart:`${me/4}px`}}});return{[`${mt}-wrapper`]:Object.assign(Object.assign({},ee("middle",ht.tablePaddingVerticalMiddle,ht.tablePaddingHorizontalMiddle,ht.tableFontSizeMiddle)),ee("small",ht.tablePaddingVerticalSmall,ht.tablePaddingHorizontalSmall,ht.tableFontSizeSmall))}},ul=ht=>{const{componentCls:mt,marginXXS:ee,fontSizeIcon:re,tableHeaderIconColor:Se,tableHeaderIconColorHover:me}=ht;return{[`${mt}-wrapper`]:{[`${mt}-thead th${mt}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${ht.motionDurationSlow}`,"&:hover":{background:ht.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:ht.colorPrimary},[`
|
|
|
&${mt}-cell-fix-left:hover,
|
|
|
&${mt}-cell-fix-right:hover
|
|
|
`]:{background:ht.tableFixedHeaderSortActiveBg}},[`${mt}-thead th${mt}-column-sort`]:{background:ht.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${mt}-column-sort`]:{background:ht.tableBodySortBg},[`${mt}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${mt}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${mt}-column-sorter`]:{marginInlineStart:ee,color:Se,fontSize:0,transition:`color ${ht.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:re,"&.active":{color:ht.colorPrimary}},[`${mt}-column-sorter-up + ${mt}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${mt}-column-sorters:hover ${mt}-column-sorter`]:{color:me}}}},Bu=ht=>{const{componentCls:mt,opacityLoading:ee,tableScrollThumbBg:re,tableScrollThumbBgHover:Se,tableScrollThumbSize:me,tableScrollBg:Ye,zIndexTableSticky:Ze,stickyScrollBarBorderRadius:_e}=ht,wn=`${ht.lineWidth}px ${ht.lineType} ${ht.tableBorderColor}`;return{[`${mt}-wrapper`]:{[`${mt}-sticky`]:{"&-holder":{position:"sticky",zIndex:Ze,background:ht.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${me}px !important`,zIndex:Ze,display:"flex",alignItems:"center",background:Ye,borderTop:wn,opacity:ee,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:me,backgroundColor:re,borderRadius:_e,transition:`all ${ht.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Se}}}}}}},uu=ht=>{const{componentCls:mt,lineWidth:ee,tableBorderColor:re}=ht,Se=`${ee}px ${ht.lineType} ${re}`;return{[`${mt}-wrapper`]:{[`${mt}-summary`]:{position:"relative",zIndex:ht.zIndexTableFixed,background:ht.tableBg,"> tr":{"> th, > td":{borderBottom:Se}}},[`div${mt}-summary`]:{boxShadow:`0 -${ee}px 0 ${re}`}}}},Zl=ht=>{const{componentCls:mt}=ht,ee=`${ht.lineWidth}px ${ht.lineType} ${ht.tableBorderColor}`,re=`${mt}-expanded-row-cell`;return{[`${mt}-wrapper`]:{[`${mt}-tbody-virtual`]:{[`${mt}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${mt}-cell`]:{borderBottom:ee},[`${mt}-expanded-row`]:{[`${re}${re}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${ht.lineWidth}px)`,borderInlineEnd:"none"}}},[`${mt}-bordered`]:{[`${mt}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:ee,position:"absolute"},[`${mt}-cell`]:{borderInlineEnd:ee,[`&${mt}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-ht.lineWidth,borderInlineStart:ee}}}}}}};const El=ht=>{const{componentCls:mt,fontWeightStrong:ee,tablePaddingVertical:re,tablePaddingHorizontal:Se,lineWidth:me,lineType:Ye,tableBorderColor:Ze,tableFontSize:_e,tableBg:wn,tableRadius:An,tableHeaderTextColor:Tn,motionDurationMid:ii,tableHeaderBg:Vn,tableHeaderCellSplitColor:Hn,tableRowHoverBg:Fi,tableSelectedRowBg:Zn,tableSelectedRowHoverBg:ki,tableFooterTextColor:wi,tableFooterBg:_i,paddingContentVerticalLG:pr}=ht,cr=`${me}px ${Ye} ${Ze}`;return{[`${mt}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,xs.dF)()),{[mt]:Object.assign(Object.assign({},(0,xs.Wf)(ht)),{fontSize:_e,background:wn,borderRadius:`${An}px ${An}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${An}px ${An}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${mt}-cell,
|
|
|
${mt}-thead > tr > th,
|
|
|
${mt}-tbody > tr > th,
|
|
|
${mt}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${pr}px ${Se}px`,overflowWrap:"break-word"},[`${mt}-title`]:{padding:`${re}px ${Se}px`},[`${mt}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:Tn,fontWeight:ee,textAlign:"start",background:Vn,borderBottom:cr,transition:`background ${ii} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${mt}-selection-column):not(${mt}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:Hn,transform:"translateY(-50%)",transition:`background-color ${ii}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${mt}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${ii}, border-color ${ii}`,borderBottom:cr,[`
|
|
|
> ${mt}-wrapper:only-child,
|
|
|
> ${mt}-expanded-row-fixed > ${mt}-wrapper:only-child
|
|
|
`]:{[mt]:{marginBlock:`-${re}px`,marginInline:`${ht.tableExpandColumnWidth-Se}px -${Se}px`,[`${mt}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Tn,fontWeight:ee,textAlign:"start",background:Vn,borderBottom:cr,transition:`background ${ii} ease`},[`
|
|
|
&${mt}-row:hover > th,
|
|
|
&${mt}-row:hover > td,
|
|
|
> th${mt}-cell-row-hover,
|
|
|
> td${mt}-cell-row-hover
|
|
|
`]:{background:Fi},[`&${mt}-row-selected`]:{"> th, > td":{background:Zn},"&:hover > th, &:hover > td":{background:ki}}}},[`${mt}-footer`]:{padding:`${re}px ${Se}px`,color:wi,background:_i}})}};var Yl=(0,xo.Z)("Table",ht=>{const{colorTextHeading:mt,colorSplit:ee,colorIcon:re,colorIconHover:Se,opacityLoading:me,colorBgContainer:Ye,controlInteractiveSize:Ze,headerBg:_e,headerColor:wn,headerSortActiveBg:An,headerSortHoverBg:Tn,bodySortBg:ii,rowHoverBg:Vn,rowSelectedBg:Hn,rowSelectedHoverBg:Fi,rowExpandedBg:Zn,cellPaddingBlock:ki,cellPaddingInline:wi,cellPaddingBlockMD:_i,cellPaddingInlineMD:pr,cellPaddingBlockSM:cr,cellPaddingInlineSM:Oi,borderColor:jt,footerBg:to,footerColor:Li,headerBorderRadius:sr,cellFontSize:Ai,cellFontSizeMD:gi,cellFontSizeSM:ji,headerSplitColor:wr,fixedHeaderSortActiveBg:yr,headerFilterHoverBg:$r,filterDropdownBg:Bi,expandIconBg:no,selectionColumnWidth:co,stickyScrollBarBg:S}=ht,P=new Ma.C(re),U=new Ma.C(Se),Z=2,ot=(0,ia.TS)(ht,{tableFontSize:Ai,tableBg:Ye,tableRadius:sr,tablePaddingVertical:ki,tablePaddingHorizontal:wi,tablePaddingVerticalMiddle:_i,tablePaddingHorizontalMiddle:pr,tablePaddingVerticalSmall:cr,tablePaddingHorizontalSmall:Oi,tableBorderColor:jt,tableHeaderTextColor:wn,tableHeaderBg:_e,tableFooterTextColor:Li,tableFooterBg:to,tableHeaderCellSplitColor:wr,tableHeaderSortBg:An,tableHeaderSortHoverBg:Tn,tableHeaderIconColor:P.clone().setAlpha(P.getAlpha()*me).toRgbString(),tableHeaderIconColorHover:U.clone().setAlpha(U.getAlpha()*me).toRgbString(),tableBodySortBg:ii,tableFixedHeaderSortActiveBg:yr,tableHeaderFilterActiveBg:$r,tableFilterDropdownBg:Bi,tableRowHoverBg:Vn,tableSelectedRowBg:Hn,tableSelectedRowHoverBg:Fi,zIndexTableFixed:Z,zIndexTableSticky:Z+1,tableFontSizeMiddle:gi,tableFontSizeSmall:ji,tableSelectionColumnWidth:co,tableExpandIconBg:no,tableExpandColumnWidth:Ze+2*ht.padding,tableExpandedRowBg:Zn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:S,tableScrollThumbBgHover:mt,tableScrollBg:ee});return[El(ot),Dc(ot),uu(ot),ul(ot),Rs(ot),Tr(ot),vh(ot),hs(ot),uu(ot),_o(ot),uc(ot),Yu(ot),Bu(ot),ra(ot),Cu(ot),lc(ot),Zl(ot)]},ht=>{const{colorFillAlter:mt,colorBgContainer:ee,colorTextHeading:re,colorFillSecondary:Se,colorFillContent:me,controlItemBgActive:Ye,controlItemBgActiveHover:Ze,padding:_e,paddingSM:wn,paddingXS:An,colorBorderSecondary:Tn,borderRadiusLG:ii,fontSize:Vn,controlHeight:Hn,colorTextPlaceholder:Fi}=ht,Zn=new Ma.C(Se).onBackground(ee).toHexShortString(),ki=new Ma.C(me).onBackground(ee).toHexShortString(),wi=new Ma.C(mt).onBackground(ee).toHexShortString();return{headerBg:wi,headerColor:re,headerSortActiveBg:Zn,headerSortHoverBg:ki,bodySortBg:wi,rowHoverBg:wi,rowSelectedBg:Ye,rowSelectedHoverBg:Ze,rowExpandedBg:mt,cellPaddingBlock:_e,cellPaddingInline:_e,cellPaddingBlockMD:wn,cellPaddingInlineMD:An,cellPaddingBlockSM:An,cellPaddingInlineSM:An,borderColor:Tn,headerBorderRadius:ii,footerBg:wi,footerColor:re,cellFontSize:Vn,cellFontSizeMD:Vn,cellFontSizeSM:Vn,headerSplitColor:Tn,fixedHeaderSortActiveBg:Zn,headerFilterHoverBg:me,filterDropdownMenuBg:ee,filterDropdownBg:ee,expandIconBg:ee,selectionColumnWidth:Hn,stickyScrollBarBg:Fi,stickyScrollBarBorderRadius:100}});const Eu=[],Cc=(ht,mt)=>{const{prefixCls:ee,className:re,rootClassName:Se,style:me,size:Ye,bordered:Ze,dropdownPrefixCls:_e,dataSource:wn,pagination:An,rowSelection:Tn,rowKey:ii="key",rowClassName:Vn,columns:Hn,children:Fi,childrenColumnName:Zn,onChange:ki,getPopupContainer:wi,loading:_i,expandIcon:pr,expandable:cr,expandedRowRender:Oi,expandIconColumnIndex:jt,indentSize:to,scroll:Li,sortDirections:sr,locale:Ai,showSorterTooltip:gi=!0,virtual:ji}=ht,wr=I.useMemo(()=>Hn||Nn(Fi),[Hn,Fi]),yr=I.useMemo(()=>wr.some(Xo=>Xo.responsive),[wr]),$r=(0,ni.Z)(yr),Bi=I.useMemo(()=>{const Xo=new Set(Object.keys($r).filter(ps=>$r[ps]));return wr.filter(ps=>!ps.responsive||ps.responsive.some(Bs=>Xo.has(Bs)))},[wr,$r]),no=(0,se.Z)(ht,["className","style","columns"]),{locale:co=Ps.Z,direction:S,table:P,renderEmpty:U,getPrefixCls:Z,getPopupContainer:ot}=I.useContext(De.E_),ut=(0,ls.Z)(Ye),bt=Object.assign(Object.assign({},co.Table),Ai),Jt=wn||Eu,Ie=Z("table",ee),Ue=Z("dropdown",_e),he=Object.assign({childrenColumnName:Zn,expandIconColumnIndex:jt},cr),{childrenColumnName:Fe="children"}=he,Oe=I.useMemo(()=>Jt.some(Xo=>Xo==null?void 0:Xo[Fe])?"nest":Oi||cr&&cr.expandedRowRender?"row":null,[Jt]),ye={body:I.useRef()},Ni=I.useMemo(()=>typeof ii=="function"?ii:Xo=>Xo==null?void 0:Xo[ii],[ii]),[fi]=Vl(Jt,Fe,Ni),zi={},mi=function(Xo,ps){let Bs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var fs,$o,Hs;const Ra=Object.assign(Object.assign({},zi),Xo);Bs&&((fs=zi.resetPagination)===null||fs===void 0||fs.call(zi),!(($o=Ra.pagination)===null||$o===void 0)&&$o.current&&(Ra.pagination.current=1),An&&An.onChange&&An.onChange(1,(Hs=Ra.pagination)===null||Hs===void 0?void 0:Hs.pageSize)),Li&&Li.scrollToFirstRowOnChange!==!1&&ye.body.current&&(0,kr.Z)(0,{getContainer:()=>ye.body.current}),ki==null||ki(Ra.pagination,Ra.filters,Ra.sorter,{currentDataSource:ka(lu(Jt,Ra.sorterStates,Fe),Ra.filterStates),action:ps})},Ri=(Xo,ps)=>{mi({sorter:Xo,sorterStates:ps},"sort",!1)},[tr,oo,ho,ti]=Sc({prefixCls:Ie,mergedColumns:Bi,onSorterChange:Ri,sortDirections:sr||["ascend","descend"],tableLocale:bt,showSorterTooltip:gi}),Eo=I.useMemo(()=>lu(Jt,oo,Fe),[Jt,oo]);zi.sorter=ti(),zi.sorterStates=oo;const Mo=(Xo,ps)=>{mi({filters:Xo,filterStates:ps},"filter",!0)},[po,ds,bo]=Ha({prefixCls:Ie,locale:bt,dropdownPrefixCls:Ue,mergedColumns:Bi,onFilterChange:Mo,getPopupContainer:wi||ot}),Vr=ka(Eo,ds);zi.filters=bo,zi.filterStates=ds;const rr=I.useMemo(()=>{const Xo={};return Object.keys(bo).forEach(ps=>{bo[ps]!==null&&(Xo[ps]=bo[ps])}),Object.assign(Object.assign({},ho),{filters:Xo})},[ho,bo]),[Hr]=Ls(rr),Qr=(Xo,ps)=>{mi({pagination:Object.assign(Object.assign({},zi.pagination),{current:Xo,pageSize:ps})},"paginate")},[xr,vo]=ru(Vr.length,Qr,An);zi.pagination=An===!1?{}:Es(xr,An),zi.resetPagination=vo;const ms=I.useMemo(()=>{if(An===!1||!xr.pageSize)return Vr;const{current:Xo=1,total:ps,pageSize:Bs=Kl}=xr;return Vr.length<ps?Vr.length>Bs?Vr.slice((Xo-1)*Bs,Xo*Bs):Vr:Vr.slice((Xo-1)*Bs,Xo*Bs)},[!!An,Vr,xr&&xr.current,xr&&xr.pageSize,xr&&xr.total]),[qs,nn]=tl({prefixCls:Ie,data:Vr,pageData:ms,getRowKey:Ni,getRecordByKey:fi,expandType:Oe,childrenColumnName:Fe,locale:bt,getPopupContainer:wi||ot},Tn),Gs=(Xo,ps,Bs)=>{let fs;return typeof Vn=="function"?fs=Ht()(Vn(Xo,ps,Bs)):fs=Ht()(Vn),Ht()({[`${Ie}-row-selected`]:nn.has(Ni(Xo,ps))},fs)};he.__PARENT_RENDER_ICON__=he.expandIcon,he.expandIcon=he.expandIcon||pr||Qa(bt),Oe==="nest"&&he.expandIconColumnIndex===void 0?he.expandIconColumnIndex=Tn?1:0:he.expandIconColumnIndex>0&&Tn&&(he.expandIconColumnIndex-=1),typeof he.indentSize!="number"&&(he.indentSize=typeof to=="number"?to:15);const la=I.useCallback(Xo=>Hr(qs(po(tr(Xo)))),[tr,po,qs]);let on,Ws;if(An!==!1&&(xr!=null&&xr.total)){let Xo;xr.size?Xo=xr.size:Xo=ut==="small"||ut==="middle"?"small":void 0;const ps=$o=>I.createElement(Is.Z,Object.assign({},xr,{className:Ht()(`${Ie}-pagination ${Ie}-pagination-${$o}`,xr.className),size:Xo})),Bs=S==="rtl"?"left":"right",{position:fs}=xr;if(fs!==null&&Array.isArray(fs)){const $o=fs.find(kl=>kl.includes("top")),Hs=fs.find(kl=>kl.includes("bottom")),Ra=fs.every(kl=>`${kl}`=="none");!$o&&!Hs&&!Ra&&(Ws=ps(Bs)),$o&&(on=ps($o.toLowerCase().replace("top",""))),Hs&&(Ws=ps(Hs.toLowerCase().replace("bottom","")))}else Ws=ps(Bs)}let zo;typeof _i=="boolean"?zo={spinning:_i}:typeof _i=="object"&&(zo=Object.assign({spinning:!0},_i));const[pa,bs]=Yl(Ie),[,To]=(0,Us.Z)(),ba=Ht()(`${Ie}-wrapper`,P==null?void 0:P.className,{[`${Ie}-wrapper-rtl`]:S==="rtl"},re,Se,bs),La=Object.assign(Object.assign({},P==null?void 0:P.style),me),va=Ai&&Ai.emptyText||(U==null?void 0:U("Table"))||I.createElement(Wo.Z,{componentName:"Table"}),Ua=ji?ja:Lr,Tl={},Va=I.useMemo(()=>{const{fontSize:Xo,lineHeight:ps,padding:Bs,paddingXS:fs,paddingSM:$o}=To,Hs=Math.floor(Xo*ps);switch(ut){case"large":return Bs*2+Hs;case"small":return fs*2+Hs;default:return $o*2+Hs}},[To,ut]);return ji&&(Tl.listItemHeight=Va),pa(I.createElement("div",{ref:mt,className:ba,style:La},I.createElement(Js.Z,Object.assign({spinning:!1},zo),on,I.createElement(Ua,Object.assign({},Tl,no,{columns:Bi,direction:S,expandable:he,prefixCls:Ie,className:Ht()({[`${Ie}-middle`]:ut==="middle",[`${Ie}-small`]:ut==="small",[`${Ie}-bordered`]:Ze,[`${Ie}-empty`]:Jt.length===0}),data:ms,rowKey:Ni,rowClassName:Gs,emptyText:va,internalHooks:N,internalRefs:ye,transformColumns:la})),Ws)))};var Xc=I.forwardRef(Cc);const Jc=(ht,mt)=>{const ee=I.useRef(0);return ee.current+=1,I.createElement(Xc,Object.assign({},ht,{ref:mt,_renderTimes:ee.current}))},_s=I.forwardRef(Jc);_s.SELECTION_COLUMN=Os,_s.EXPAND_COLUMN=y,_s.SELECTION_ALL=As,_s.SELECTION_INVERT=os,_s.SELECTION_NONE=cs,_s.Column=Xr,_s.ColumnGroup=Vi,_s.Summary=Ct;var cu=_s,Qc=cu},17574:function(V,w,h){"use strict";h.d(w,{default:function(){return zt}});var y=h(48039),N=h(65093),O=h(52671),B=h(8657),_=h(16378),K=h(59301),I={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"},dt=I,rt=h(7657),Q=function(it,Te){return K.createElement(rt.Z,(0,_.Z)({},it,{ref:Te,icon:dt}))},kt=K.forwardRef(Q),Y=kt,Yt=h(92310),At=h.n(Yt),vt=h(35654),Tt=h(71430),Mt=h(36355),ft=h(56082),It=h(62892),$t=h(20648);const Nt=4;function Ut(nt){const{dropPosition:it,dropLevelOffset:Te,prefixCls:Ae,indent:de,direction:en="ltr"}=nt,vn=en==="ltr"?"left":"right",Xn=en==="ltr"?"right":"left",gn={[vn]:-Te*de+Nt,[Xn]:0};switch(it){case-1:gn.top=-3;break;case 1:gn.bottom=-3;break;default:gn.bottom=-3,gn[vn]=de+Nt;break}return K.createElement("div",{style:gn,className:`${Ae}-drop-indicator`})}var et=h(71997),Lt=K.forwardRef((nt,it)=>{const{getPrefixCls:Te,direction:Ae,virtual:de,tree:en}=K.useContext(Mt.E_),{prefixCls:vn,className:Xn,showIcon:gn=!1,showLine:_n,switcherIcon:$n,blockNode:fn=!1,children:hn,checkable:ct=!1,selectable:L=!0,draggable:k,motion:z,style:G}=nt,T=Te("tree",vn),St=Te(),fe=z!=null?z:Object.assign(Object.assign({},(0,It.Z)(St)),{motionAppear:!1}),Ct=Object.assign(Object.assign({},nt),{checkable:ct,selectable:L,showIcon:gn,motion:fe,blockNode:fn,showLine:!!_n,dropIndicatorRender:Ut}),[xt,Dt]=(0,$t.ZP)(T),qt=K.useMemo(()=>{if(!k)return!1;let ve={};switch(typeof k){case"function":ve.nodeDraggable=k;break;case"object":ve=Object.assign({},k);break;default:break}return ve.icon!==!1&&(ve.icon=ve.icon||K.createElement(ft.Z,null)),ve},[k]),_t=ve=>K.createElement(et.Z,{prefixCls:T,switcherIcon:$n,treeNodeProps:ve,showLine:_n});return xt(K.createElement(y.Z,Object.assign({itemHeight:20,ref:it,virtual:de},Ct,{style:Object.assign(Object.assign({},en==null?void 0:en.style),G),prefixCls:T,className:At()({[`${T}-icon-hide`]:!gn,[`${T}-block-node`]:fn,[`${T}-unselectable`]:!L,[`${T}-rtl`]:Ae==="rtl"},en==null?void 0:en.className,Xn,Dt),direction:Ae,checkable:ct&&K.createElement("span",{className:`${T}-checkbox-inner`}),selectable:L,switcherIcon:_t,draggable:qt}),hn))}),Kt;(function(nt){nt[nt.None=0]="None",nt[nt.Start=1]="Start",nt[nt.End=2]="End"})(Kt||(Kt={}));function Qt(nt,it){function Te(Ae){const{key:de,children:en}=Ae;it(de,Ae)!==!1&&Qt(en||[],it)}nt.forEach(Te)}function ie(nt){let{treeData:it,expandedKeys:Te,startKey:Ae,endKey:de}=nt;const en=[];let vn=Kt.None;if(Ae&&Ae===de)return[Ae];if(!Ae||!de)return[];function Xn(gn){return gn===Ae||gn===de}return Qt(it,gn=>{if(vn===Kt.End)return!1;if(Xn(gn)){if(en.push(gn),vn===Kt.None)vn=Kt.Start;else if(vn===Kt.Start)return vn=Kt.End,!1}else vn===Kt.Start&&en.push(gn);return Te.includes(gn)}),en}function yt(nt,it){const Te=(0,N.Z)(it),Ae=[];return Qt(nt,(de,en)=>{const vn=Te.indexOf(de);return vn!==-1&&(Ae.push(en),Te.splice(vn,1)),!!Te.length}),Ae}var ae=function(nt,it){var Te={};for(var Ae in nt)Object.prototype.hasOwnProperty.call(nt,Ae)&&it.indexOf(Ae)<0&&(Te[Ae]=nt[Ae]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,Ae=Object.getOwnPropertySymbols(nt);de<Ae.length;de++)it.indexOf(Ae[de])<0&&Object.prototype.propertyIsEnumerable.call(nt,Ae[de])&&(Te[Ae[de]]=nt[Ae[de]]);return Te};function Ht(nt){const{isLeaf:it,expanded:Te}=nt;return it?K.createElement(O.Z,null):Te?K.createElement(B.Z,null):K.createElement(Y,null)}function Pe(nt){let{treeData:it,children:Te}=nt;return it||(0,Tt.zn)(Te)}const ge=(nt,it)=>{var{defaultExpandAll:Te,defaultExpandParent:Ae,defaultExpandedKeys:de}=nt,en=ae(nt,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const vn=K.useRef(),Xn=K.useRef(),gn=()=>{const{keyEntities:qt}=(0,Tt.I8)(Pe(en));let _t;return Te?_t=Object.keys(qt):Ae?_t=(0,vt.r7)(en.expandedKeys||de||[],qt):_t=en.expandedKeys||de,_t},[_n,$n]=K.useState(en.selectedKeys||en.defaultSelectedKeys||[]),[fn,hn]=K.useState(()=>gn());K.useEffect(()=>{"selectedKeys"in en&&$n(en.selectedKeys)},[en.selectedKeys]),K.useEffect(()=>{"expandedKeys"in en&&hn(en.expandedKeys)},[en.expandedKeys]);const ct=(qt,_t)=>{var ve;return"expandedKeys"in en||hn(qt),(ve=en.onExpand)===null||ve===void 0?void 0:ve.call(en,qt,_t)},L=(qt,_t)=>{var ve;const{multiple:Ge}=en,{node:Ke,nativeEvent:Ce}=_t,{key:Ve=""}=Ke,Qe=Pe(en),Bt=Object.assign(Object.assign({},_t),{selected:!0}),xe=(Ce==null?void 0:Ce.ctrlKey)||(Ce==null?void 0:Ce.metaKey),ze=Ce==null?void 0:Ce.shiftKey;let Ne;Ge&&xe?(Ne=qt,vn.current=Ve,Xn.current=Ne,Bt.selectedNodes=yt(Qe,Ne)):Ge&&ze?(Ne=Array.from(new Set([].concat((0,N.Z)(Xn.current||[]),(0,N.Z)(ie({treeData:Qe,expandedKeys:fn,startKey:Ve,endKey:vn.current}))))),Bt.selectedNodes=yt(Qe,Ne)):(Ne=[Ve],vn.current=Ve,Xn.current=Ne,Bt.selectedNodes=yt(Qe,Ne)),(ve=en.onSelect)===null||ve===void 0||ve.call(en,Ne,Bt),"selectedKeys"in en||$n(Ne)},{getPrefixCls:k,direction:z}=K.useContext(Mt.E_),{prefixCls:G,className:T,showIcon:St=!0,expandAction:fe="click"}=en,Ct=ae(en,["prefixCls","className","showIcon","expandAction"]),xt=k("tree",G),Dt=At()(`${xt}-directory`,{[`${xt}-directory-rtl`]:z==="rtl"},T);return K.createElement(Lt,Object.assign({icon:Ht,ref:it,blockNode:!0},Ct,{showIcon:St,expandAction:fe,prefixCls:xt,className:Dt,expandedKeys:fn,selectedKeys:_n,onSelect:L,onExpand:ct}))};var pe=K.forwardRef(ge);const ln=Lt;ln.DirectoryTree=pe,ln.TreeNode=y.O;var zt=ln},20648:function(V,w,h){"use strict";h.d(w,{TM:function(){return Yt},Yk:function(){return Y}});var y=h(93083),N=h(98447),O=h(17313),B=h(8378),_=h(37613),K=h(83116);const I=new y.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),dt=(At,vt)=>({[`.${At}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${vt.motionDurationSlow}`}}}),rt=(At,vt)=>({[`.${At}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:vt.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${vt.lineWidthBold}px solid ${vt.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Q=(At,vt)=>{const{treeCls:Tt,treeNodeCls:Mt,treeNodePadding:ft,titleHeight:It,nodeSelectedBg:$t,nodeHoverBg:Nt}=vt,Ut=vt.paddingXS;return{[Tt]:Object.assign(Object.assign({},(0,O.Wf)(vt)),{background:vt.colorBgContainer,borderRadius:vt.borderRadius,transition:`background-color ${vt.motionDurationSlow}`,[`&${Tt}-rtl`]:{[`${Tt}-switcher`]:{"&_close":{[`${Tt}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${Tt}-active-focused)`]:Object.assign({},(0,O.oN)(vt)),[`${Tt}-list-holder-inner`]:{alignItems:"flex-start"},[`&${Tt}-block-node`]:{[`${Tt}-list-holder-inner`]:{alignItems:"stretch",[`${Tt}-node-content-wrapper`]:{flex:"auto"},[`${Mt}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:ft,insetInlineStart:0,border:`1px solid ${vt.colorPrimary}`,opacity:0,animationName:I,animationDuration:vt.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${Mt}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${ft}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${Tt}-node-content-wrapper`]:{color:vt.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${Tt}-node-content-wrapper`]:Object.assign({},(0,O.oN)(vt)),[`&:not(${Mt}-disabled).filter-node ${Tt}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${Tt}-draggable-icon`]:{flexShrink:0,width:It,lineHeight:`${It}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${vt.motionDurationSlow}`,[`${Mt}:hover &`]:{opacity:.45}},[`&${Mt}-disabled`]:{[`${Tt}-draggable-icon`]:{visibility:"hidden"}}}},[`${Tt}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:It}},[`${Tt}-draggable-icon`]:{visibility:"hidden"},[`${Tt}-switcher`]:Object.assign(Object.assign({},dt(At,vt)),{position:"relative",flex:"none",alignSelf:"stretch",width:It,margin:0,lineHeight:`${It}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${Tt}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:vt.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:It/2,bottom:-ft,marginInlineStart:-1,borderInlineEnd:`1px solid ${vt.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:It/2*.8,height:It/2,borderBottom:`1px solid ${vt.colorBorder}`,content:'""'}}}),[`${Tt}-checkbox`]:{top:"initial",marginInlineEnd:Ut},[`${Tt}-node-content-wrapper, ${Tt}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:It,margin:0,padding:`0 ${vt.paddingXS/2}px`,color:"inherit",lineHeight:`${It}px`,background:"transparent",borderRadius:vt.borderRadius,cursor:"pointer",transition:`all ${vt.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:Nt},[`&${Tt}-node-selected`]:{backgroundColor:$t},[`${Tt}-iconEle`]:{display:"inline-block",width:It,height:It,lineHeight:`${It}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${Tt}-unselectable ${Tt}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${Tt}-node-content-wrapper`]:Object.assign({lineHeight:`${It}px`,userSelect:"none"},rt(At,vt)),[`${Mt}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${vt.colorPrimary}`}},"&-show-line":{[`${Tt}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:It/2,bottom:-ft,borderInlineEnd:`1px solid ${vt.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${Tt}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${Mt}-leaf-last`]:{[`${Tt}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${It/2}px !important`}}}}})}},kt=At=>{const{treeCls:vt,treeNodeCls:Tt,treeNodePadding:Mt,directoryNodeSelectedBg:ft,directoryNodeSelectedColor:It}=At;return{[`${vt}${vt}-directory`]:{[Tt]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:Mt,insetInlineStart:0,transition:`background-color ${At.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:At.controlItemBgHover}},"> *":{zIndex:1},[`${vt}-switcher`]:{transition:`color ${At.motionDurationMid}`},[`${vt}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${vt}-node-selected`]:{color:It,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:ft},[`${vt}-switcher`]:{color:It},[`${vt}-node-content-wrapper`]:{color:It,background:"transparent"}}}}}},Y=(At,vt)=>{const Tt=`.${At}`,Mt=`${Tt}-treenode`,ft=vt.paddingXS/2,It=(0,_.TS)(vt,{treeCls:Tt,treeNodeCls:Mt,treeNodePadding:ft});return[Q(At,It),kt(It)]},Yt=At=>{const{controlHeightSM:vt}=At;return{titleHeight:vt,nodeHoverBg:At.controlItemBgHover,nodeSelectedBg:At.controlItemBgActive}};w.ZP=(0,K.Z)("Tree",(At,vt)=>{let{prefixCls:Tt}=vt;return[{[At.componentCls]:(0,N.C2)(`${Tt}-checkbox`,At)},Y(Tt,At),(0,B.Z)(At)]},At=>{const{colorTextLightSolid:vt,colorPrimary:Tt}=At;return Object.assign(Object.assign({},Yt(At)),{directoryNodeSelectedColor:vt,directoryNodeSelectedBg:Tt})})},71997:function(V,w,h){"use strict";h.d(w,{Z:function(){return Mt}});var y=h(16378),N=h(59301),O={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"},B=O,_=h(7657),K=function(It,$t){return N.createElement(_.Z,(0,y.Z)({},It,{ref:$t,icon:B}))},I=N.forwardRef(K),dt=I,rt=h(52671),Q=h(58617),kt=h(15075),Y=h(43531),Yt=h(92310),At=h.n(Yt),vt=h(92343),Mt=ft=>{const{prefixCls:It,switcherIcon:$t,treeNodeProps:Nt,showLine:Ut}=ft,{isLeaf:et,expanded:Rt,loading:Lt}=Nt;if(Lt)return N.createElement(Q.Z,{className:`${It}-switcher-loading-icon`});let Kt;if(Ut&&typeof Ut=="object"&&(Kt=Ut.showLeafIcon),et){if(!Ut)return null;if(typeof Kt!="boolean"&&Kt){const yt=typeof Kt=="function"?Kt(Nt):Kt,ae=`${It}-switcher-line-custom-icon`;return(0,vt.l$)(yt)?(0,vt.Tm)(yt,{className:At()(yt.props.className||"",ae)}):yt}return Kt?N.createElement(rt.Z,{className:`${It}-switcher-line-icon`}):N.createElement("span",{className:`${It}-switcher-leaf-line`})}const Qt=`${It}-switcher-icon`,ie=typeof $t=="function"?$t(Nt):$t;return(0,vt.l$)(ie)?(0,vt.Tm)(ie,{className:At()(ie.props.className||"",Qt)}):ie!==void 0?ie:Ut?Rt?N.createElement(kt.Z,{className:`${It}-switcher-line-icon`}):N.createElement(Y.Z,{className:`${It}-switcher-line-icon`}):N.createElement(dt,{className:Qt})}},54580:function(V,w,h){"use strict";h.d(w,{default:function(){return In}});var y=h(59301),N=h(65093),O=h(92310),B=h.n(O),_=h(16378),K=h(44202),I=h(86773),dt=h(82412),rt=h(60845),Q=h(78772),kt=h(61206),Y=h(62907),Yt=h(42066),At=h(3872),vt=h(26112);function Tt(be,$e){var He="cannot ".concat(be.method," ").concat(be.action," ").concat($e.status,"'"),Le=new Error(He);return Le.status=$e.status,Le.method=be.method,Le.url=be.action,Le}function Mt(be){var $e=be.responseText||be.response;if(!$e)return $e;try{return JSON.parse($e)}catch(He){return $e}}function ft(be){var $e=new XMLHttpRequest;be.onProgress&&$e.upload&&($e.upload.onprogress=function(Je){Je.total>0&&(Je.percent=Je.loaded/Je.total*100),be.onProgress(Je)});var He=new FormData;be.data&&Object.keys(be.data).forEach(function(tn){var Je=be.data[tn];if(Array.isArray(Je)){Je.forEach(function(yn){He.append("".concat(tn,"[]"),yn)});return}He.append(tn,Je)}),be.file instanceof Blob?He.append(be.filename,be.file,be.file.name):He.append(be.filename,be.file),$e.onerror=function(Je){be.onError(Je)},$e.onload=function(){return $e.status<200||$e.status>=300?be.onError(Tt(be,$e),Mt($e)):be.onSuccess(Mt($e),$e)},$e.open(be.method,be.action,!0),be.withCredentials&&"withCredentials"in $e&&($e.withCredentials=!0);var Le=be.headers||{};return Le["X-Requested-With"]!==null&&$e.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Le).forEach(function(tn){Le[tn]!==null&&$e.setRequestHeader(tn,Le[tn])}),$e.send(He),{abort:function(){$e.abort()}}}var It=+new Date,$t=0;function Nt(){return"rc-upload-".concat(It,"-").concat(++$t)}var Ut=h(48736),et=function(be,$e){if(be&&$e){var He=Array.isArray($e)?$e:$e.split(","),Le=be.name||"",tn=be.type||"",Je=tn.replace(/\/.*$/,"");return He.some(function(yn){var bn=yn.trim();if(/^\*(\/\*)?$/.test(yn))return!0;if(bn.charAt(0)==="."){var di=Le.toLowerCase(),Sn=bn.toLowerCase(),xi=[Sn];return(Sn===".jpg"||Sn===".jpeg")&&(xi=[".jpg",".jpeg"]),xi.some(function(ir){return di.endsWith(ir)})}return/\/\*$/.test(bn)?Je===bn.replace(/\/.*$/,""):tn===bn?!0:/^\w+$/.test(bn)?((0,Ut.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(bn,"'.Skip for check.")),!0):!1})}return!0};function Rt(be,$e){var He=be.createReader(),Le=[];function tn(){He.readEntries(function(Je){var yn=Array.prototype.slice.apply(Je);Le=Le.concat(yn);var bn=!yn.length;bn?$e(Le):tn()})}tn()}var Lt=function($e,He,Le){var tn=function Je(yn,bn){yn&&(yn.path=bn||"",yn.isFile?yn.file(function(di){Le(di)&&(yn.fullPath&&!di.webkitRelativePath&&(Object.defineProperties(di,{webkitRelativePath:{writable:!0}}),di.webkitRelativePath=yn.fullPath.replace(/^\//,""),Object.defineProperties(di,{webkitRelativePath:{writable:!1}})),He([di]))}):yn.isDirectory&&Rt(yn,function(di){di.forEach(function(Sn){Je(Sn,"".concat(bn).concat(yn.name,"/"))})}))};$e.forEach(function(Je){tn(Je.webkitGetAsEntry())})},Kt=Lt,Qt=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],ie=function(be){(0,dt.Z)(He,be);var $e=(0,rt.Z)(He);function He(){var Le;(0,K.Z)(this,He);for(var tn=arguments.length,Je=new Array(tn),yn=0;yn<tn;yn++)Je[yn]=arguments[yn];return Le=$e.call.apply($e,[this].concat(Je)),Le.state={uid:Nt()},Le.reqs={},Le.fileInput=void 0,Le._isMounted=void 0,Le.onChange=function(bn){var di=Le.props,Sn=di.accept,xi=di.directory,ir=bn.target.files,Mi=(0,N.Z)(ir).filter(function(le){return!xi||et(le,Sn)});Le.uploadFiles(Mi),Le.reset()},Le.onClick=function(bn){var di=Le.fileInput;if(di){var Sn=bn.target,xi=Le.props.onClick;if(Sn&&Sn.tagName==="BUTTON"){var ir=di.parentNode;ir.focus(),Sn.blur()}di.click(),xi&&xi(bn)}},Le.onKeyDown=function(bn){bn.key==="Enter"&&Le.onClick(bn)},Le.onFileDrop=function(bn){var di=Le.props.multiple;if(bn.preventDefault(),bn.type!=="dragover")if(Le.props.directory)Kt(Array.prototype.slice.call(bn.dataTransfer.items),Le.uploadFiles,function(xi){return et(xi,Le.props.accept)});else{var Sn=(0,N.Z)(bn.dataTransfer.files).filter(function(xi){return et(xi,Le.props.accept)});di===!1&&(Sn=Sn.slice(0,1)),Le.uploadFiles(Sn)}},Le.uploadFiles=function(bn){var di=(0,N.Z)(bn),Sn=di.map(function(xi){return xi.uid=Nt(),Le.processFile(xi,di)});Promise.all(Sn).then(function(xi){var ir=Le.props.onBatchStart;ir==null||ir(xi.map(function(Mi){var le=Mi.origin,mr=Mi.parsedFile;return{file:le,parsedFile:mr}})),xi.filter(function(Mi){return Mi.parsedFile!==null}).forEach(function(Mi){Le.post(Mi)})})},Le.processFile=function(){var bn=(0,At.Z)((0,Y.Z)().mark(function di(Sn,xi){var ir,Mi,le,mr,Or,zr,Yr,dr,Er;return(0,Y.Z)().wrap(function(pi){for(;;)switch(pi.prev=pi.next){case 0:if(ir=Le.props.beforeUpload,Mi=Sn,!ir){pi.next=14;break}return pi.prev=3,pi.next=6,ir(Sn,xi);case 6:Mi=pi.sent,pi.next=12;break;case 9:pi.prev=9,pi.t0=pi.catch(3),Mi=!1;case 12:if(Mi!==!1){pi.next=14;break}return pi.abrupt("return",{origin:Sn,parsedFile:null,action:null,data:null});case 14:if(le=Le.props.action,typeof le!="function"){pi.next=21;break}return pi.next=18,le(Sn);case 18:mr=pi.sent,pi.next=22;break;case 21:mr=le;case 22:if(Or=Le.props.data,typeof Or!="function"){pi.next=29;break}return pi.next=26,Or(Sn);case 26:zr=pi.sent,pi.next=30;break;case 29:zr=Or;case 30:return Yr=((0,Yt.Z)(Mi)==="object"||typeof Mi=="string")&&Mi?Mi:Sn,Yr instanceof File?dr=Yr:dr=new File([Yr],Sn.name,{type:Sn.type}),Er=dr,Er.uid=Sn.uid,pi.abrupt("return",{origin:Sn,data:zr,parsedFile:Er,action:mr});case 35:case"end":return pi.stop()}},di,null,[[3,9]])}));return function(di,Sn){return bn.apply(this,arguments)}}(),Le.saveFileInput=function(bn){Le.fileInput=bn},Le}return(0,I.Z)(He,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(tn){var Je=this,yn=tn.data,bn=tn.origin,di=tn.action,Sn=tn.parsedFile;if(this._isMounted){var xi=this.props,ir=xi.onStart,Mi=xi.customRequest,le=xi.name,mr=xi.headers,Or=xi.withCredentials,zr=xi.method,Yr=bn.uid,dr=Mi||ft,Er={action:di,filename:le,data:yn,file:Sn,headers:mr,withCredentials:Or,method:zr||"post",onProgress:function(pi){var ur=Je.props.onProgress;ur==null||ur(pi,Sn)},onSuccess:function(pi,ur){var Re=Je.props.onSuccess;Re==null||Re(pi,Sn,ur),delete Je.reqs[Yr]},onError:function(pi,ur){var Re=Je.props.onError;Re==null||Re(pi,ur,Sn),delete Je.reqs[Yr]}};ir(bn),this.reqs[Yr]=dr(Er)}}},{key:"reset",value:function(){this.setState({uid:Nt()})}},{key:"abort",value:function(tn){var Je=this.reqs;if(tn){var yn=tn.uid?tn.uid:tn;Je[yn]&&Je[yn].abort&&Je[yn].abort(),delete Je[yn]}else Object.keys(Je).forEach(function(bn){Je[bn]&&Je[bn].abort&&Je[bn].abort(),delete Je[bn]})}},{key:"render",value:function(){var tn=this.props,Je=tn.component,yn=tn.prefixCls,bn=tn.className,di=tn.disabled,Sn=tn.id,xi=tn.style,ir=tn.multiple,Mi=tn.accept,le=tn.capture,mr=tn.children,Or=tn.directory,zr=tn.openFileDialogOnClick,Yr=tn.onMouseEnter,dr=tn.onMouseLeave,Er=(0,kt.Z)(tn,Qt),Pi=B()((0,Q.Z)((0,Q.Z)((0,Q.Z)({},yn,!0),"".concat(yn,"-disabled"),di),bn,bn)),pi=Or?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},ur=di?{}:{onClick:zr?this.onClick:function(){},onKeyDown:zr?this.onKeyDown:function(){},onMouseEnter:Yr,onMouseLeave:dr,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return y.createElement(Je,(0,_.Z)({},ur,{className:Pi,role:"button",style:xi}),y.createElement("input",(0,_.Z)({},(0,vt.Z)(Er,{aria:!0,data:!0}),{id:Sn,disabled:di,type:"file",ref:this.saveFileInput,onClick:function(Rr){return Rr.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Mi},pi,{multiple:ir,onChange:this.onChange},le!=null?{capture:le}:{})),mr)}}]),He}(y.Component),yt=ie;function ae(){}var Ht=function(be){(0,dt.Z)(He,be);var $e=(0,rt.Z)(He);function He(){var Le;(0,K.Z)(this,He);for(var tn=arguments.length,Je=new Array(tn),yn=0;yn<tn;yn++)Je[yn]=arguments[yn];return Le=$e.call.apply($e,[this].concat(Je)),Le.uploader=void 0,Le.saveUploader=function(bn){Le.uploader=bn},Le}return(0,I.Z)(He,[{key:"abort",value:function(tn){this.uploader.abort(tn)}},{key:"render",value:function(){return y.createElement(yt,(0,_.Z)({},this.props,{ref:this.saveUploader}))}}]),He}(y.Component);Ht.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:ae,onError:ae,onSuccess:ae,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Pe=Ht,ge=Pe,we=h(18929),pe=h(4676),ln=h(36355),zt=h(1684),nt=h(9763),it=h(31724),Te={icon:function($e,He){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:He}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:$e}}]}},name:"file",theme:"twotone"},Ae=Te,de=h(7657),en=function($e,He){return y.createElement(de.Z,(0,_.Z)({},$e,{ref:He,icon:Ae}))},vn=y.forwardRef(en),Xn=vn,gn=h(58617),_n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},$n=_n,fn=function($e,He){return y.createElement(de.Z,(0,_.Z)({},$e,{ref:He,icon:$n}))},hn=y.forwardRef(fn),ct=hn,L={icon:function($e,He){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:$e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:He}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:He}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:He}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:$e}}]}},name:"picture",theme:"twotone"},k=L,z=function($e,He){return y.createElement(de.Z,(0,_.Z)({},$e,{ref:He,icon:k}))},G=y.forwardRef(z),T=G,St=h(77900),fe=h(56762),Ct=h(62892),xt=h(92343),Dt=h(3113);function qt(be){return Object.assign(Object.assign({},be),{lastModified:be.lastModified,lastModifiedDate:be.lastModifiedDate,name:be.name,size:be.size,type:be.type,uid:be.uid,percent:0,originFileObj:be})}function _t(be,$e){const He=(0,N.Z)($e),Le=He.findIndex(tn=>{let{uid:Je}=tn;return Je===be.uid});return Le===-1?He.push(be):He[Le]=be,He}function ve(be,$e){const He=be.uid!==void 0?"uid":"name";return $e.filter(Le=>Le[He]===be[He])[0]}function Ge(be,$e){const He=be.uid!==void 0?"uid":"name",Le=$e.filter(tn=>tn[He]!==be[He]);return Le.length===$e.length?null:Le}const Ke=function(){const $e=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Le=$e[$e.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Le)||[""])[0]},Ce=be=>be.indexOf("image/")===0,Ve=be=>{if(be.type&&!be.thumbUrl)return Ce(be.type);const $e=be.thumbUrl||be.url||"",He=Ke($e);return/^data:image\//.test($e)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(He)?!0:!(/^data:/.test($e)||He)},Qe=200;function Bt(be){return new Promise($e=>{if(!be.type||!Ce(be.type)){$e("");return}const He=document.createElement("canvas");He.width=Qe,He.height=Qe,He.style.cssText=`position: fixed; left: 0; top: 0; width: ${Qe}px; height: ${Qe}px; z-index: 9999; display: none;`,document.body.appendChild(He);const Le=He.getContext("2d"),tn=new Image;if(tn.onload=()=>{const{width:Je,height:yn}=tn;let bn=Qe,di=Qe,Sn=0,xi=0;Je>yn?(di=yn*(Qe/Je),xi=-(di-bn)/2):(bn=Je*(Qe/yn),Sn=-(bn-di)/2),Le.drawImage(tn,Sn,xi,bn,di);const ir=He.toDataURL();document.body.removeChild(He),window.URL.revokeObjectURL(tn.src),$e(ir)},tn.crossOrigin="anonymous",be.type.startsWith("image/svg+xml")){const Je=new FileReader;Je.onload=()=>{Je.result&&(tn.src=Je.result)},Je.readAsDataURL(be)}else if(be.type.startsWith("image/gif")){const Je=new FileReader;Je.onload=()=>{Je.result&&$e(Je.result)},Je.readAsDataURL(be)}else tn.src=window.URL.createObjectURL(be)})}var xe=h(26227),ze=h(41464),Ne=h(15277),Cn=h(93948),En=h(6848),On=y.forwardRef((be,$e)=>{let{prefixCls:He,className:Le,style:tn,locale:Je,listType:yn,file:bn,items:di,progress:Sn,iconRender:xi,actionIconRender:ir,itemRender:Mi,isImgUrl:le,showPreviewIcon:mr,showRemoveIcon:Or,showDownloadIcon:zr,previewIcon:Yr,removeIcon:dr,downloadIcon:Er,onPreview:Pi,onDownload:pi,onClose:ur}=be;var Re,Rr;const{status:je}=bn,[nr,Co]=y.useState(je);y.useEffect(()=>{je!=="removed"&&Co(je)},[je]);const[Br,rs]=y.useState(!1);y.useEffect(()=>{const De=setTimeout(()=>{rs(!0)},300);return()=>{clearTimeout(De)}},[]);const yo=xi(bn);let ai=y.createElement("div",{className:`${He}-icon`},yo);if(yn==="picture"||yn==="picture-card"||yn==="picture-circle")if(nr==="uploading"||!bn.thumbUrl&&!bn.url){const De=B()(`${He}-list-item-thumbnail`,{[`${He}-list-item-file`]:nr!=="uploading"});ai=y.createElement("div",{className:De},yo)}else{const De=le!=null&&le(bn)?y.createElement("img",{src:bn.thumbUrl||bn.url,alt:bn.name,className:`${He}-list-item-image`,crossOrigin:bn.crossOrigin}):yo,Wo=B()(`${He}-list-item-thumbnail`,{[`${He}-list-item-file`]:le&&!le(bn)});ai=y.createElement("a",{className:Wo,onClick:ls=>Pi(bn,ls),href:bn.url||bn.thumbUrl,target:"_blank",rel:"noopener noreferrer"},De)}const W=B()(`${He}-list-item`,`${He}-list-item-${nr}`),tt=typeof bn.linkProps=="string"?JSON.parse(bn.linkProps):bn.linkProps,Pn=Or?ir((typeof dr=="function"?dr(bn):dr)||y.createElement(xe.Z,null),()=>ur(bn),He,Je.removeFile):null,pt=zr&&nr==="done"?ir((typeof Er=="function"?Er(bn):Er)||y.createElement(ze.Z,null),()=>pi(bn),He,Je.downloadFile):null,$=yn!=="picture-card"&&yn!=="picture-circle"&&y.createElement("span",{key:"download-delete",className:B()(`${He}-list-item-actions`,{picture:yn==="picture"})},pt,Pn),Wi=B()(`${He}-list-item-name`),bi=bn.url?[y.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Wi,title:bn.name},tt,{href:bn.url,onClick:De=>Pi(bn,De)}),bn.name),$]:[y.createElement("span",{key:"view",className:Wi,onClick:De=>Pi(bn,De),title:bn.name},bn.name),$],qi={pointerEvents:"none",opacity:.5},go=mr?y.createElement("a",{href:bn.url||bn.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:bn.url||bn.thumbUrl?void 0:qi,onClick:De=>Pi(bn,De),title:Je.previewFile},typeof Yr=="function"?Yr(bn):Yr||y.createElement(Ne.Z,null)):null,Ui=(yn==="picture-card"||yn==="picture-circle")&&nr!=="uploading"&&y.createElement("span",{className:`${He}-list-item-actions`},go,nr==="done"&&pt,Pn),{getPrefixCls:Xr}=y.useContext(ln.E_),$i=Xr(),Vi=y.createElement("div",{className:W},ai,bi,Ui,Br&&y.createElement(St.default,{motionName:`${$i}-fade`,visible:nr==="uploading",motionDeadline:2e3},De=>{let{className:Wo}=De;const ls="percent"in bn?y.createElement(Cn.Z,Object.assign({},Sn,{type:"line",percent:bn.percent,"aria-label":bn["aria-label"],"aria-labelledby":bn["aria-labelledby"]})):null;return y.createElement("div",{className:B()(`${He}-list-item-progress`,Wo)},ls)})),se=bn.response&&typeof bn.response=="string"?bn.response:((Re=bn.error)===null||Re===void 0?void 0:Re.statusText)||((Rr=bn.error)===null||Rr===void 0?void 0:Rr.message)||Je.uploadError,kr=nr==="error"?y.createElement(En.Z,{title:se,getPopupContainer:De=>De.parentNode},Vi):Vi;return y.createElement("div",{className:B()(`${He}-list-item-container`,Le),style:tn,ref:$e},Mi?Mi(kr,bn,di,{download:pi.bind(null,bn),preview:Pi.bind(null,bn),remove:ur.bind(null,bn)}):kr)});const ci=(be,$e)=>{const{listType:He="text",previewFile:Le=Bt,onPreview:tn,onDownload:Je,onRemove:yn,locale:bn,iconRender:di,isImageUrl:Sn=Ve,prefixCls:xi,items:ir=[],showPreviewIcon:Mi=!0,showRemoveIcon:le=!0,showDownloadIcon:mr=!1,removeIcon:Or,previewIcon:zr,downloadIcon:Yr,progress:dr={size:[-1,2],showInfo:!1},appendAction:Er,appendActionVisible:Pi=!0,itemRender:pi,disabled:ur}=be,Re=(0,fe.Z)(),[Rr,je]=y.useState(!1);y.useEffect(()=>{He!=="picture"&&He!=="picture-card"&&He!=="picture-circle"||(ir||[]).forEach(qi=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(qi.originFileObj instanceof File||qi.originFileObj instanceof Blob)||qi.thumbUrl!==void 0||(qi.thumbUrl="",Le&&Le(qi.originFileObj).then(go=>{qi.thumbUrl=go||"",Re()}))})},[He,ir,Le]),y.useEffect(()=>{je(!0)},[]);const nr=(qi,go)=>{if(tn)return go==null||go.preventDefault(),tn(qi)},Co=qi=>{typeof Je=="function"?Je(qi):qi.url&&window.open(qi.url)},Br=qi=>{yn==null||yn(qi)},rs=qi=>{if(di)return di(qi,He);const go=qi.status==="uploading",Ui=Sn&&Sn(qi)?y.createElement(T,null):y.createElement(Xn,null);let Xr=go?y.createElement(gn.Z,null):y.createElement(ct,null);return He==="picture"?Xr=go?y.createElement(gn.Z,null):Ui:(He==="picture-card"||He==="picture-circle")&&(Xr=go?bn.uploading:Ui),Xr},yo=(qi,go,Ui,Xr)=>{const $i={type:"text",size:"small",title:Xr,onClick:Vi=>{go(),(0,xt.l$)(qi)&&qi.props.onClick&&qi.props.onClick(Vi)},className:`${Ui}-list-item-action`,disabled:ur};if((0,xt.l$)(qi)){const Vi=(0,xt.Tm)(qi,Object.assign(Object.assign({},qi.props),{onClick:()=>{}}));return y.createElement(Dt.ZP,Object.assign({},$i,{icon:Vi}))}return y.createElement(Dt.ZP,Object.assign({},$i),y.createElement("span",null,qi))};y.useImperativeHandle($e,()=>({handlePreview:nr,handleDownload:Co}));const{getPrefixCls:ai}=y.useContext(ln.E_),W=ai("upload",xi),tt=ai(),Pn=B()(`${W}-list`,`${W}-list-${He}`),pt=(0,N.Z)(ir.map(qi=>({key:qi.uid,file:qi})));let Wi={motionDeadline:2e3,motionName:`${W}-${He==="picture-card"||He==="picture-circle"?"animate-inline":"animate"}`,keys:pt,motionAppear:Rr};const bi=y.useMemo(()=>{const qi=Object.assign({},(0,Ct.Z)(tt));return delete qi.onAppearEnd,delete qi.onEnterEnd,delete qi.onLeaveEnd,qi},[tt]);return He!=="picture-card"&&He!=="picture-circle"&&(Wi=Object.assign(Object.assign({},bi),Wi)),y.createElement("div",{className:Pn},y.createElement(St.CSSMotionList,Object.assign({},Wi,{component:!1}),qi=>{let{key:go,file:Ui,className:Xr,style:$i}=qi;return y.createElement(On,{key:go,locale:bn,prefixCls:W,className:Xr,style:$i,file:Ui,items:ir,progress:dr,listType:He,isImgUrl:Sn,showPreviewIcon:Mi,showRemoveIcon:le,showDownloadIcon:mr,removeIcon:Or,previewIcon:zr,downloadIcon:Yr,iconRender:rs,actionIconRender:yo,itemRender:pi,onPreview:nr,onDownload:Co,onClose:Br})}),Er&&y.createElement(St.default,Object.assign({},Wi,{visible:Pi,forceRender:!0}),qi=>{let{className:go,style:Ui}=qi;return(0,xt.Tm)(Er,Xr=>({className:B()(Xr.className,go),style:Object.assign(Object.assign(Object.assign({},Ui),{pointerEvents:go?"none":void 0}),Xr.style)}))}))};var vi=y.forwardRef(ci),qn=h(17313),an=h(8378),Ji=h(83116),ui=h(37613),Di=be=>{const{componentCls:$e,iconCls:He}=be;return{[`${$e}-wrapper`]:{[`${$e}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:be.colorFillAlter,border:`${be.lineWidth}px dashed ${be.colorBorder}`,borderRadius:be.borderRadiusLG,cursor:"pointer",transition:`border-color ${be.motionDurationSlow}`,[$e]:{padding:`${be.padding}px 0`},[`${$e}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${$e}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${$e}-disabled):hover`]:{borderColor:be.colorPrimaryHover},[`p${$e}-drag-icon`]:{marginBottom:be.margin,[He]:{color:be.colorPrimary,fontSize:be.uploadThumbnailSize}},[`p${$e}-text`]:{margin:`0 0 ${be.marginXXS}px`,color:be.colorTextHeading,fontSize:be.fontSizeLG},[`p${$e}-hint`]:{color:be.colorTextDescription,fontSize:be.fontSize},[`&${$e}-disabled`]:{cursor:"not-allowed",[`p${$e}-drag-icon ${He},
|
|
|
p${$e}-text,
|
|
|
p${$e}-hint
|
|
|
`]:{color:be.colorTextDisabled}}}}}},fr=be=>{const{componentCls:$e,antCls:He,iconCls:Le,fontSize:tn,lineHeight:Je}=be,yn=`${$e}-list-item`,bn=`${yn}-actions`,di=`${yn}-action`,Sn=Math.round(tn*Je);return{[`${$e}-wrapper`]:{[`${$e}-list`]:Object.assign(Object.assign({},(0,qn.dF)()),{lineHeight:be.lineHeight,[yn]:{position:"relative",height:be.lineHeight*tn,marginTop:be.marginXS,fontSize:tn,display:"flex",alignItems:"center",transition:`background-color ${be.motionDurationSlow}`,"&:hover":{backgroundColor:be.controlItemBgHover},[`${yn}-name`]:Object.assign(Object.assign({},qn.vS),{padding:`0 ${be.paddingXS}px`,lineHeight:Je,flex:"auto",transition:`all ${be.motionDurationSlow}`}),[bn]:{[di]:{opacity:0},[`${di}${He}-btn-sm`]:{height:Sn,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
|
${di}:focus-visible,
|
|
|
&.picture ${di}
|
|
|
`]:{opacity:1},[Le]:{color:be.actionsColor,transition:`all ${be.motionDurationSlow}`},[`&:hover ${Le}`]:{color:be.colorText}},[`${$e}-icon ${Le}`]:{color:be.colorTextDescription,fontSize:tn},[`${yn}-progress`]:{position:"absolute",bottom:-be.uploadProgressOffset,width:"100%",paddingInlineStart:tn+be.paddingXS,fontSize:tn,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${yn}:hover ${di}`]:{opacity:1,color:be.colorText},[`${yn}-error`]:{color:be.colorError,[`${yn}-name, ${$e}-icon ${Le}`]:{color:be.colorError},[bn]:{[`${Le}, ${Le}:hover`]:{color:be.colorError},[di]:{opacity:1}}},[`${$e}-list-item-container`]:{transition:`opacity ${be.motionDurationSlow}, height ${be.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},er=h(93083),Gr=h(1950);const Zr=new er.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),mo=new er.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var No=be=>{const{componentCls:$e}=be,He=`${$e}-animate-inline`;return[{[`${$e}-wrapper`]:{[`${He}-appear, ${He}-enter, ${He}-leave`]:{animationDuration:be.motionDurationSlow,animationTimingFunction:be.motionEaseInOutCirc,animationFillMode:"forwards"},[`${He}-appear, ${He}-enter`]:{animationName:Zr},[`${He}-leave`]:{animationName:mo}}},{[`${$e}-wrapper`]:(0,Gr.J$)(be)},Zr,mo]},Ir=h(93398),Gi=h(64993);const Jn=be=>{const{componentCls:$e,iconCls:He,uploadThumbnailSize:Le,uploadProgressOffset:tn}=be,Je=`${$e}-list`,yn=`${Je}-item`;return{[`${$e}-wrapper`]:{[`
|
|
|
${Je}${Je}-picture,
|
|
|
${Je}${Je}-picture-card,
|
|
|
${Je}${Je}-picture-circle
|
|
|
`]:{[yn]:{position:"relative",height:Le+be.lineWidth*2+be.paddingXS*2,padding:be.paddingXS,border:`${be.lineWidth}px ${be.lineType} ${be.colorBorder}`,borderRadius:be.borderRadiusLG,"&:hover":{background:"transparent"},[`${yn}-thumbnail`]:Object.assign(Object.assign({},qn.vS),{width:Le,height:Le,lineHeight:`${Le+be.paddingSM}px`,textAlign:"center",flex:"none",[He]:{fontSize:be.fontSizeHeading2,color:be.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${yn}-progress`]:{bottom:tn,width:`calc(100% - ${be.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Le+be.paddingXS}},[`${yn}-error`]:{borderColor:be.colorError,[`${yn}-thumbnail ${He}`]:{[`svg path[fill='${Ir.blue[0]}']`]:{fill:be.colorErrorBg},[`svg path[fill='${Ir.blue.primary}']`]:{fill:be.colorError}}},[`${yn}-uploading`]:{borderStyle:"dashed",[`${yn}-name`]:{marginBottom:tn}}},[`${Je}${Je}-picture-circle ${yn}`]:{[`&, &::before, ${yn}-thumbnail`]:{borderRadius:"50%"}}}}},te=be=>{const{componentCls:$e,iconCls:He,fontSizeLG:Le,colorTextLightSolid:tn}=be,Je=`${$e}-list`,yn=`${Je}-item`,bn=be.uploadPicCardSize;return{[`
|
|
|
${$e}-wrapper${$e}-picture-card-wrapper,
|
|
|
${$e}-wrapper${$e}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,qn.dF)()),{display:"inline-block",width:"100%",[`${$e}${$e}-select`]:{width:bn,height:bn,marginInlineEnd:be.marginXS,marginBottom:be.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:be.colorFillAlter,border:`${be.lineWidth}px dashed ${be.colorBorder}`,borderRadius:be.borderRadiusLG,cursor:"pointer",transition:`border-color ${be.motionDurationSlow}`,[`> ${$e}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${$e}-disabled):hover`]:{borderColor:be.colorPrimary}},[`${Je}${Je}-picture-card, ${Je}${Je}-picture-circle`]:{[`${Je}-item-container`]:{display:"inline-block",width:bn,height:bn,marginBlock:`0 ${be.marginXS}px`,marginInline:`0 ${be.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[yn]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${be.paddingXS*2}px)`,height:`calc(100% - ${be.paddingXS*2}px)`,backgroundColor:be.colorBgMask,opacity:0,transition:`all ${be.motionDurationSlow}`,content:'" "'}},[`${yn}:hover`]:{[`&::before, ${yn}-actions`]:{opacity:1}},[`${yn}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${be.motionDurationSlow}`,[`${He}-eye, ${He}-download, ${He}-delete`]:{zIndex:10,width:Le,margin:`0 ${be.marginXXS}px`,fontSize:Le,cursor:"pointer",transition:`all ${be.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${yn}-actions, ${yn}-actions:hover`]:{[`${He}-eye, ${He}-download, ${He}-delete`]:{color:new Gi.C(tn).setAlpha(.65).toRgbString(),"&:hover":{color:tn}}},[`${yn}-thumbnail, ${yn}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${yn}-name`]:{display:"none",textAlign:"center"},[`${yn}-file + ${yn}-name`]:{position:"absolute",bottom:be.margin,display:"block",width:`calc(100% - ${be.paddingXS*2}px)`},[`${yn}-uploading`]:{[`&${yn}`]:{backgroundColor:be.colorFillAlter},[`&::before, ${He}-eye, ${He}-download, ${He}-delete`]:{display:"none"}},[`${yn}-progress`]:{bottom:be.marginXL,width:`calc(100% - ${be.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${$e}-wrapper${$e}-picture-circle-wrapper`]:{[`${$e}${$e}-select`]:{borderRadius:"50%"}}}};var Bn=be=>{const{componentCls:$e}=be;return{[`${$e}-rtl`]:{direction:"rtl"}}};const oe=be=>{const{componentCls:$e,colorTextDisabled:He}=be;return{[`${$e}-wrapper`]:Object.assign(Object.assign({},(0,qn.Wf)(be)),{[$e]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${$e}-select`]:{display:"inline-block"},[`${$e}-disabled`]:{color:He,cursor:"not-allowed"}})}};var Ft=(0,Ji.Z)("Upload",be=>{const{fontSizeHeading3:$e,fontSize:He,lineHeight:Le,lineWidth:tn,controlHeightLG:Je}=be,yn=Math.round(He*Le),bn=(0,ui.TS)(be,{uploadThumbnailSize:$e*2,uploadProgressOffset:yn/2+tn,uploadPicCardSize:Je*2.55});return[oe(bn),Di(bn),Jn(bn),te(bn),fr(bn),No(bn),Bn(bn),(0,an.Z)(bn)]},be=>({actionsColor:be.colorTextDescription})),qe=function(be,$e,He,Le){function tn(Je){return Je instanceof He?Je:new He(function(yn){yn(Je)})}return new(He||(He=Promise))(function(Je,yn){function bn(xi){try{Sn(Le.next(xi))}catch(ir){yn(ir)}}function di(xi){try{Sn(Le.throw(xi))}catch(ir){yn(ir)}}function Sn(xi){xi.done?Je(xi.value):tn(xi.value).then(bn,di)}Sn((Le=Le.apply(be,$e||[])).next())})};const xn=`__LIST_IGNORE_${Date.now()}__`,Gn=(be,$e)=>{const{fileList:He,defaultFileList:Le,onRemove:tn,showUploadList:Je=!0,listType:yn="text",onPreview:bn,onDownload:di,onChange:Sn,onDrop:xi,previewFile:ir,disabled:Mi,locale:le,iconRender:mr,isImageUrl:Or,progress:zr,prefixCls:Yr,className:dr,type:Er="select",children:Pi,style:pi,itemRender:ur,maxCount:Re,data:Rr={},multiple:je=!1,action:nr="",accept:Co="",supportServerRender:Br=!0,rootClassName:rs}=be,yo=y.useContext(zt.Z),ai=Mi!=null?Mi:yo,[W,tt]=(0,we.Z)(Le||[],{value:He,postState:lo=>lo!=null?lo:[]}),[Pn,pt]=y.useState("drop"),$=y.useRef(null);y.useMemo(()=>{const lo=Date.now();(He||[]).forEach((Fo,ws)=>{!Fo.uid&&!Object.isFrozen(Fo)&&(Fo.uid=`__AUTO__${lo}_${ws}__`)})},[He]);const Wi=(lo,Fo,ws)=>{let Ko=(0,N.Z)(Fo),Ur=!1;Re===1?Ko=Ko.slice(-1):Re&&(Ur=Ko.length>Re,Ko=Ko.slice(0,Re)),(0,pe.flushSync)(()=>{tt(Ko)});const uo={file:lo,fileList:Ko};ws&&(uo.event=ws),(!Ur||Ko.some(Pa=>Pa.uid===lo.uid))&&(0,pe.flushSync)(()=>{Sn==null||Sn(uo)})},bi=(lo,Fo)=>qe(void 0,void 0,void 0,function*(){const{beforeUpload:ws,transformFile:Ko}=be;let Ur=lo;if(ws){const uo=yield ws(lo,Fo);if(uo===!1)return!1;if(delete lo[xn],uo===xn)return Object.defineProperty(lo,xn,{value:!0,configurable:!0}),!1;typeof uo=="object"&&uo&&(Ur=uo)}return Ko&&(Ur=yield Ko(Ur)),Ur}),qi=lo=>{const Fo=lo.filter(Ur=>!Ur.file[xn]);if(!Fo.length)return;const ws=Fo.map(Ur=>qt(Ur.file));let Ko=(0,N.Z)(W);ws.forEach(Ur=>{Ko=_t(Ur,Ko)}),ws.forEach((Ur,uo)=>{let Pa=Ur;if(Fo[uo].parsedFile)Ur.status="uploading";else{const{originFileObj:br}=Ur;let io;try{io=new File([br],br.name,{type:br.type})}catch(eo){io=new Blob([br],{type:br.type}),io.name=br.name,io.lastModifiedDate=new Date,io.lastModified=new Date().getTime()}io.uid=Ur.uid,Pa=io}Wi(Pa,Ko)})},go=(lo,Fo,ws)=>{try{typeof lo=="string"&&(lo=JSON.parse(lo))}catch(uo){}if(!ve(Fo,W))return;const Ko=qt(Fo);Ko.status="done",Ko.percent=100,Ko.response=lo,Ko.xhr=ws;const Ur=_t(Ko,W);Wi(Ko,Ur)},Ui=(lo,Fo)=>{if(!ve(Fo,W))return;const ws=qt(Fo);ws.status="uploading",ws.percent=lo.percent;const Ko=_t(ws,W);Wi(ws,Ko,lo)},Xr=(lo,Fo,ws)=>{if(!ve(ws,W))return;const Ko=qt(ws);Ko.error=lo,Ko.response=Fo,Ko.status="error";const Ur=_t(Ko,W);Wi(Ko,Ur)},$i=lo=>{let Fo;Promise.resolve(typeof tn=="function"?tn(lo):tn).then(ws=>{var Ko;if(ws===!1)return;const Ur=Ge(lo,W);Ur&&(Fo=Object.assign(Object.assign({},lo),{status:"removed"}),W==null||W.forEach(uo=>{const Pa=Fo.uid!==void 0?"uid":"name";uo[Pa]===Fo[Pa]&&!Object.isFrozen(uo)&&(uo.status="removed")}),(Ko=$.current)===null||Ko===void 0||Ko.abort(Fo),Wi(Fo,Ur))})},Vi=lo=>{pt(lo.type),lo.type==="drop"&&(xi==null||xi(lo))};y.useImperativeHandle($e,()=>({onBatchStart:qi,onSuccess:go,onProgress:Ui,onError:Xr,fileList:W,upload:$.current}));const{getPrefixCls:se,direction:kr,upload:De}=y.useContext(ln.E_),Wo=se("upload",Yr),ls=Object.assign(Object.assign({onBatchStart:qi,onError:Xr,onProgress:Ui,onSuccess:go},be),{data:Rr,multiple:je,action:nr,accept:Co,supportServerRender:Br,prefixCls:Wo,disabled:ai,beforeUpload:bi,onChange:void 0});delete ls.className,delete ls.style,(!Pi||ai)&&delete ls.id;const[ni,Ps]=Ft(Wo),[Is]=(0,nt.Z)("Upload",it.Z.Upload),{showRemoveIcon:Js,showPreviewIcon:Us,showDownloadIcon:oa,removeIcon:Qa,previewIcon:da,downloadIcon:Jr}=typeof Je=="boolean"?{}:Je,vs=(lo,Fo)=>Je?y.createElement(vi,{prefixCls:Wo,listType:yn,items:W,previewFile:ir,onPreview:bn,onDownload:di,onRemove:$i,showRemoveIcon:!ai&&Js,showPreviewIcon:Us,showDownloadIcon:oa,removeIcon:Qa,previewIcon:da,downloadIcon:Jr,iconRender:mr,locale:Object.assign(Object.assign({},Is),le),isImageUrl:Or,progress:zr,appendAction:lo,appendActionVisible:Fo,itemRender:ur,disabled:ai}):lo,es=B()(`${Wo}-wrapper`,dr,rs,Ps,De==null?void 0:De.className,{[`${Wo}-rtl`]:kr==="rtl",[`${Wo}-picture-card-wrapper`]:yn==="picture-card",[`${Wo}-picture-circle-wrapper`]:yn==="picture-circle"}),ke=Object.assign(Object.assign({},De==null?void 0:De.style),pi);if(Er==="drag"){const lo=B()(Ps,Wo,`${Wo}-drag`,{[`${Wo}-drag-uploading`]:W.some(Fo=>Fo.status==="uploading"),[`${Wo}-drag-hover`]:Pn==="dragover",[`${Wo}-disabled`]:ai,[`${Wo}-rtl`]:kr==="rtl"});return ni(y.createElement("span",{className:es},y.createElement("div",{className:lo,style:ke,onDrop:Vi,onDragOver:Vi,onDragLeave:Vi},y.createElement(ge,Object.assign({},ls,{ref:$,className:`${Wo}-btn`}),y.createElement("div",{className:`${Wo}-drag-container`},Pi))),vs()))}const ys=B()(Wo,`${Wo}-select`,{[`${Wo}-disabled`]:ai}),Dl=(lo=>y.createElement("div",{className:ys,style:lo},y.createElement(ge,Object.assign({},ls,{ref:$}))))(Pi?void 0:{display:"none"});return ni(yn==="picture-card"||yn==="picture-circle"?y.createElement("span",{className:es},vs(Dl,!!Pi)):y.createElement("span",{className:es},Dl,vs()))};var ne=y.forwardRef(Gn),dn=function(be,$e){var He={};for(var Le in be)Object.prototype.hasOwnProperty.call(be,Le)&&$e.indexOf(Le)<0&&(He[Le]=be[Le]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tn=0,Le=Object.getOwnPropertySymbols(be);tn<Le.length;tn++)$e.indexOf(Le[tn])<0&&Object.prototype.propertyIsEnumerable.call(be,Le[tn])&&(He[Le[tn]]=be[Le[tn]]);return He},hi=y.forwardRef((be,$e)=>{var{style:He,height:Le}=be,tn=dn(be,["style","height"]);return y.createElement(ne,Object.assign({ref:$e},tn,{type:"drag",style:Object.assign(Object.assign({},He),{height:Le})}))});const Me=ne;Me.Dragger=hi,Me.LIST_IGNORE=xn;var In=Me},99498:function(V,w,h){(function(y){y(h(89780))})(function(y){y.defineOption("placeholder","",function(dt,rt,Q){var kt=Q&&Q!=y.Init;if(rt&&!kt)dt.on("blur",_),dt.on("change",K),dt.on("swapDoc",K),y.on(dt.getInputField(),"compositionupdate",dt.state.placeholderCompose=function(){B(dt)}),K(dt);else if(!rt&&kt){dt.off("blur",_),dt.off("change",K),dt.off("swapDoc",K),y.off(dt.getInputField(),"compositionupdate",dt.state.placeholderCompose),N(dt);var Y=dt.getWrapperElement();Y.className=Y.className.replace(" CodeMirror-empty","")}rt&&!dt.hasFocus()&&_(dt)});function N(dt){dt.state.placeholder&&(dt.state.placeholder.parentNode.removeChild(dt.state.placeholder),dt.state.placeholder=null)}function O(dt){N(dt);var rt=dt.state.placeholder=document.createElement("pre");rt.style.cssText="height: 0; overflow: visible",rt.style.direction=dt.getOption("direction"),rt.className="CodeMirror-placeholder CodeMirror-line-like";var Q=dt.getOption("placeholder");typeof Q=="string"&&(Q=document.createTextNode(Q)),rt.appendChild(Q),dt.display.lineSpace.insertBefore(rt,dt.display.lineSpace.firstChild)}function B(dt){setTimeout(function(){var rt=!1,Q=dt.getInputField();Q.nodeName=="TEXTAREA"?rt=!Q.value:dt.lineCount()==1&&(rt=!/[^\u200b]/.test(Q.querySelector(".CodeMirror-line").textContent)),rt?O(dt):N(dt)},20)}function _(dt){I(dt)&&O(dt)}function K(dt){var rt=dt.getWrapperElement(),Q=I(dt);rt.className=rt.className.replace(" CodeMirror-empty","")+(Q?" CodeMirror-empty":""),Q?O(dt):N(dt)}function I(dt){return dt.lineCount()===1&&dt.getLine(0)===""}})},25717:function(V,w,h){(function(y){y(h(89780))})(function(y){var N={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},O=y.Pos;y.defineOption("autoCloseBrackets",!1,function(vt,Tt,Mt){Mt&&Mt!=y.Init&&(vt.removeKeyMap(_),vt.state.closeBrackets=null),Tt&&(K(B(Tt,"pairs")),vt.state.closeBrackets=Tt,vt.addKeyMap(_))});function B(vt,Tt){return Tt=="pairs"&&typeof vt=="string"?vt:typeof vt=="object"&&vt[Tt]!=null?vt[Tt]:N[Tt]}var _={Backspace:rt,Enter:Q};function K(vt){for(var Tt=0;Tt<vt.length;Tt++){var Mt=vt.charAt(Tt),ft="'"+Mt+"'";_[ft]||(_[ft]=I(Mt))}}K(N.pairs+"`");function I(vt){return function(Tt){return Y(Tt,vt)}}function dt(vt){var Tt=vt.state.closeBrackets;if(!Tt||Tt.override)return Tt;var Mt=vt.getModeAt(vt.getCursor());return Mt.closeBrackets||Tt}function rt(vt){var Tt=dt(vt);if(!Tt||vt.getOption("disableInput"))return y.Pass;for(var Mt=B(Tt,"pairs"),ft=vt.listSelections(),It=0;It<ft.length;It++){if(!ft[It].empty())return y.Pass;var $t=Yt(vt,ft[It].head);if(!$t||Mt.indexOf($t)%2!=0)return y.Pass}for(var It=ft.length-1;It>=0;It--){var Nt=ft[It].head;vt.replaceRange("",O(Nt.line,Nt.ch-1),O(Nt.line,Nt.ch+1),"+delete")}}function Q(vt){var Tt=dt(vt),Mt=Tt&&B(Tt,"explode");if(!Mt||vt.getOption("disableInput"))return y.Pass;for(var ft=vt.listSelections(),It=0;It<ft.length;It++){if(!ft[It].empty())return y.Pass;var $t=Yt(vt,ft[It].head);if(!$t||Mt.indexOf($t)%2!=0)return y.Pass}vt.operation(function(){var Nt=vt.lineSeparator()||`
|
|
|
`;vt.replaceSelection(Nt+Nt,null),vt.execCommand("goCharLeft"),ft=vt.listSelections();for(var Ut=0;Ut<ft.length;Ut++){var et=ft[Ut].head.line;vt.indentLine(et,null,!0),vt.indentLine(et+1,null,!0)}})}function kt(vt){var Tt=y.cmpPos(vt.anchor,vt.head)>0;return{anchor:new O(vt.anchor.line,vt.anchor.ch+(Tt?-1:1)),head:new O(vt.head.line,vt.head.ch+(Tt?1:-1))}}function Y(vt,Tt){var Mt=dt(vt);if(!Mt||vt.getOption("disableInput"))return y.Pass;var ft=B(Mt,"pairs"),It=ft.indexOf(Tt);if(It==-1)return y.Pass;for(var $t=B(Mt,"closeBefore"),Nt=B(Mt,"triples"),Ut=ft.charAt(It+1)==Tt,et=vt.listSelections(),Rt=It%2==0,Lt,Kt=0;Kt<et.length;Kt++){var Qt=et[Kt],ie=Qt.head,yt,ae=vt.getRange(ie,O(ie.line,ie.ch+1));if(Rt&&!Qt.empty())yt="surround";else if((Ut||!Rt)&&ae==Tt)Ut&&At(vt,ie)?yt="both":Nt.indexOf(Tt)>=0&&vt.getRange(ie,O(ie.line,ie.ch+3))==Tt+Tt+Tt?yt="skipThree":yt="skip";else if(Ut&&ie.ch>1&&Nt.indexOf(Tt)>=0&&vt.getRange(O(ie.line,ie.ch-2),ie)==Tt+Tt){if(ie.ch>2&&/\bstring/.test(vt.getTokenTypeAt(O(ie.line,ie.ch-2))))return y.Pass;yt="addFour"}else if(Ut){var Ht=ie.ch==0?" ":vt.getRange(O(ie.line,ie.ch-1),ie);if(!y.isWordChar(ae)&&Ht!=Tt&&!y.isWordChar(Ht))yt="both";else return y.Pass}else if(Rt&&(ae.length===0||/\s/.test(ae)||$t.indexOf(ae)>-1))yt="both";else return y.Pass;if(!Lt)Lt=yt;else if(Lt!=yt)return y.Pass}var Pe=It%2?ft.charAt(It-1):Tt,ge=It%2?Tt:ft.charAt(It+1);vt.operation(function(){if(Lt=="skip")vt.execCommand("goCharRight");else if(Lt=="skipThree")for(var we=0;we<3;we++)vt.execCommand("goCharRight");else if(Lt=="surround"){for(var pe=vt.getSelections(),we=0;we<pe.length;we++)pe[we]=Pe+pe[we]+ge;vt.replaceSelections(pe,"around"),pe=vt.listSelections().slice();for(var we=0;we<pe.length;we++)pe[we]=kt(pe[we]);vt.setSelections(pe)}else Lt=="both"?(vt.replaceSelection(Pe+ge,null),vt.triggerElectric(Pe+ge),vt.execCommand("goCharLeft")):Lt=="addFour"&&(vt.replaceSelection(Pe+Pe+Pe+Pe,"before"),vt.execCommand("goCharRight"))})}function Yt(vt,Tt){var Mt=vt.getRange(O(Tt.line,Tt.ch-1),O(Tt.line,Tt.ch+1));return Mt.length==2?Mt:null}function At(vt,Tt){var Mt=vt.getTokenAt(O(Tt.line,Tt.ch+1));return/\bstring/.test(Mt.type)&&Mt.start==Tt.ch&&(Tt.ch==0||!/\bstring/.test(vt.getTokenTypeAt(Tt)))}})},6313:function(V,w,h){(function(y){y(h(89780),h(32855))})(function(y){y.defineOption("autoCloseTags",!1,function(rt,Q,kt){if(kt!=y.Init&&kt&&rt.removeKeyMap("autoCloseTags"),!!Q){var Y={name:"autoCloseTags"};(typeof Q!="object"||Q.whenClosing!==!1)&&(Y["'/'"]=function(Yt){return K(Yt)}),(typeof Q!="object"||Q.whenOpening!==!1)&&(Y["'>'"]=function(Yt){return B(Yt)}),rt.addKeyMap(Y)}});var N=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],O=["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 B(rt){if(rt.getOption("disableInput"))return y.Pass;for(var Q=rt.listSelections(),kt=[],Y=rt.getOption("autoCloseTags"),Yt=0;Yt<Q.length;Yt++){if(!Q[Yt].empty())return y.Pass;var At=Q[Yt].head,vt=rt.getTokenAt(At),Tt=y.innerMode(rt.getMode(),vt.state),Mt=Tt.state,ft=Tt.mode.xmlCurrentTag&&Tt.mode.xmlCurrentTag(Mt),It=ft&&ft.name;if(!It)return y.Pass;var $t=Tt.mode.configuration=="html",Nt=typeof Y=="object"&&Y.dontCloseTags||$t&&N,Ut=typeof Y=="object"&&Y.indentTags||$t&&O;vt.end>At.ch&&(It=It.slice(0,It.length-vt.end+At.ch));var et=It.toLowerCase();if(!It||vt.type=="string"&&(vt.end!=At.ch||!/[\"\']/.test(vt.string.charAt(vt.string.length-1))||vt.string.length==1)||vt.type=="tag"&&ft.close||vt.string.indexOf("/")==At.ch-vt.start-1||Nt&&I(Nt,et)>-1||dt(rt,Tt.mode.xmlCurrentContext&&Tt.mode.xmlCurrentContext(Mt)||[],It,At,!0))return y.Pass;var Rt=typeof Y=="object"&&Y.emptyTags;if(Rt&&I(Rt,It)>-1){kt[Yt]={text:"/>",newPos:y.Pos(At.line,At.ch+2)};continue}var Lt=Ut&&I(Ut,et)>-1;kt[Yt]={indent:Lt,text:">"+(Lt?`
|
|
|
|
|
|
`:"")+"</"+It+">",newPos:Lt?y.Pos(At.line+1,0):y.Pos(At.line,At.ch+1)}}for(var Kt=typeof Y=="object"&&Y.dontIndentOnAutoClose,Yt=Q.length-1;Yt>=0;Yt--){var Qt=kt[Yt];rt.replaceRange(Qt.text,Q[Yt].head,Q[Yt].anchor,"+insert");var ie=rt.listSelections().slice(0);ie[Yt]={head:Qt.newPos,anchor:Qt.newPos},rt.setSelections(ie),!Kt&&Qt.indent&&(rt.indentLine(Qt.newPos.line,null,!0),rt.indentLine(Qt.newPos.line+1,null,!0))}}function _(rt,Q){for(var kt=rt.listSelections(),Y=[],Yt=Q?"/":"</",At=rt.getOption("autoCloseTags"),vt=typeof At=="object"&&At.dontIndentOnSlash,Tt=0;Tt<kt.length;Tt++){if(!kt[Tt].empty())return y.Pass;var Mt=kt[Tt].head,ft=rt.getTokenAt(Mt),It=y.innerMode(rt.getMode(),ft.state),$t=It.state;if(Q&&(ft.type=="string"||ft.string.charAt(0)!="<"||ft.start!=Mt.ch-1))return y.Pass;var Nt,Ut=It.mode.name!="xml"&&rt.getMode().name=="htmlmixed";if(Ut&&It.mode.name=="javascript")Nt=Yt+"script";else if(Ut&&It.mode.name=="css")Nt=Yt+"style";else{var et=It.mode.xmlCurrentContext&&It.mode.xmlCurrentContext($t);if(!et||et.length&&dt(rt,et,et[et.length-1],Mt))return y.Pass;Nt=Yt+et[et.length-1]}rt.getLine(Mt.line).charAt(ft.end)!=">"&&(Nt+=">"),Y[Tt]=Nt}if(rt.replaceSelections(Y),kt=rt.listSelections(),!vt)for(var Tt=0;Tt<kt.length;Tt++)(Tt==kt.length-1||kt[Tt].head.line<kt[Tt+1].head.line)&&rt.indentLine(kt[Tt].head.line)}function K(rt){return rt.getOption("disableInput")?y.Pass:_(rt,!0)}y.commands.closeTag=function(rt){return _(rt)};function I(rt,Q){if(rt.indexOf)return rt.indexOf(Q);for(var kt=0,Y=rt.length;kt<Y;++kt)if(rt[kt]==Q)return kt;return-1}function dt(rt,Q,kt,Y,Yt){if(!y.scanForClosingTag)return!1;var At=Math.min(rt.lastLine()+1,Y.line+500),vt=y.scanForClosingTag(rt,Y,null,At);if(!vt||vt.tag!=kt)return!1;for(var Tt=Yt?1:0,Mt=Q.length-1;Mt>=0&&Q[Mt]==kt;Mt--)++Tt;Y=vt.to;for(var Mt=1;Mt<Tt;Mt++){var ft=y.scanForClosingTag(rt,Y,null,At);if(!ft||ft.tag!=kt)return!1;Y=ft.to}return!0}})},32855:function(V,w,h){(function(y){y(h(89780))})(function(y){"use strict";var N=y.Pos;function O(Mt,ft){return Mt.line-ft.line||Mt.ch-ft.ch}var B="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",_=B+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",K=new RegExp("<(/?)(["+B+"]["+_+"]*)","g");function I(Mt,ft,It,$t){this.line=ft,this.ch=It,this.cm=Mt,this.text=Mt.getLine(ft),this.min=$t?Math.max($t.from,Mt.firstLine()):Mt.firstLine(),this.max=$t?Math.min($t.to-1,Mt.lastLine()):Mt.lastLine()}function dt(Mt,ft){var It=Mt.cm.getTokenTypeAt(N(Mt.line,ft));return It&&/\btag\b/.test(It)}function rt(Mt){if(!(Mt.line>=Mt.max))return Mt.ch=0,Mt.text=Mt.cm.getLine(++Mt.line),!0}function Q(Mt){if(!(Mt.line<=Mt.min))return Mt.text=Mt.cm.getLine(--Mt.line),Mt.ch=Mt.text.length,!0}function kt(Mt){for(;;){var ft=Mt.text.indexOf(">",Mt.ch);if(ft==-1){if(rt(Mt))continue;return}if(!dt(Mt,ft+1)){Mt.ch=ft+1;continue}var It=Mt.text.lastIndexOf("/",ft),$t=It>-1&&!/\S/.test(Mt.text.slice(It+1,ft));return Mt.ch=ft+1,$t?"selfClose":"regular"}}function Y(Mt){for(;;){var ft=Mt.ch?Mt.text.lastIndexOf("<",Mt.ch-1):-1;if(ft==-1){if(Q(Mt))continue;return}if(!dt(Mt,ft+1)){Mt.ch=ft;continue}K.lastIndex=ft,Mt.ch=ft;var It=K.exec(Mt.text);if(It&&It.index==ft)return It}}function Yt(Mt){for(;;){K.lastIndex=Mt.ch;var ft=K.exec(Mt.text);if(!ft){if(rt(Mt))continue;return}if(!dt(Mt,ft.index+1)){Mt.ch=ft.index+1;continue}return Mt.ch=ft.index+ft[0].length,ft}}function At(Mt){for(;;){var ft=Mt.ch?Mt.text.lastIndexOf(">",Mt.ch-1):-1;if(ft==-1){if(Q(Mt))continue;return}if(!dt(Mt,ft+1)){Mt.ch=ft;continue}var It=Mt.text.lastIndexOf("/",ft),$t=It>-1&&!/\S/.test(Mt.text.slice(It+1,ft));return Mt.ch=ft+1,$t?"selfClose":"regular"}}function vt(Mt,ft){for(var It=[];;){var $t=Yt(Mt),Nt,Ut=Mt.line,et=Mt.ch-($t?$t[0].length:0);if(!$t||!(Nt=kt(Mt)))return;if(Nt!="selfClose")if($t[1]){for(var Rt=It.length-1;Rt>=0;--Rt)if(It[Rt]==$t[2]){It.length=Rt;break}if(Rt<0&&(!ft||ft==$t[2]))return{tag:$t[2],from:N(Ut,et),to:N(Mt.line,Mt.ch)}}else It.push($t[2])}}function Tt(Mt,ft){for(var It=[];;){var $t=At(Mt);if(!$t)return;if($t=="selfClose"){Y(Mt);continue}var Nt=Mt.line,Ut=Mt.ch,et=Y(Mt);if(!et)return;if(et[1])It.push(et[2]);else{for(var Rt=It.length-1;Rt>=0;--Rt)if(It[Rt]==et[2]){It.length=Rt;break}if(Rt<0&&(!ft||ft==et[2]))return{tag:et[2],from:N(Mt.line,Mt.ch),to:N(Nt,Ut)}}}}y.registerHelper("fold","xml",function(Mt,ft){for(var It=new I(Mt,ft.line,0);;){var $t=Yt(It);if(!$t||It.line!=ft.line)return;var Nt=kt(It);if(!Nt)return;if(!$t[1]&&Nt!="selfClose"){var Ut=N(It.line,It.ch),et=vt(It,$t[2]);return et&&O(et.from,Ut)>0?{from:Ut,to:et.from}:null}}}),y.findMatchingTag=function(Mt,ft,It){var $t=new I(Mt,ft.line,ft.ch,It);if(!($t.text.indexOf(">")==-1&&$t.text.indexOf("<")==-1)){var Nt=kt($t),Ut=Nt&&N($t.line,$t.ch),et=Nt&&Y($t);if(!(!Nt||!et||O($t,ft)>0)){var Rt={from:N($t.line,$t.ch),to:Ut,tag:et[2]};return Nt=="selfClose"?{open:Rt,close:null,at:"open"}:et[1]?{open:Tt($t,et[2]),close:Rt,at:"close"}:($t=new I(Mt,Ut.line,Ut.ch,It),{open:Rt,close:vt($t,et[2]),at:"open"})}}},y.findEnclosingTag=function(Mt,ft,It,$t){for(var Nt=new I(Mt,ft.line,ft.ch,It);;){var Ut=Tt(Nt,$t);if(!Ut)break;var et=new I(Mt,ft.line,ft.ch,It),Rt=vt(et,Ut.tag);if(Rt)return{open:Ut,close:Rt}}},y.scanForClosingTag=function(Mt,ft,It,$t){var Nt=new I(Mt,ft.line,ft.ch,$t?{from:0,to:$t}:null);return vt(Nt,It)}})},89780:function(V){(function(w,h){V.exports=h()})(this,function(){"use strict";var w=navigator.userAgent,h=navigator.platform,y=/gecko\/\d/i.test(w),N=/MSIE \d/.test(w),O=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(w),B=/Edge\/(\d+)/.exec(w),_=N||O||B,K=_&&(N?document.documentMode||6:+(B||O)[1]),I=!B&&/WebKit\//.test(w),dt=I&&/Qt\/\d+\.\d+/.test(w),rt=!B&&/Chrome\//.test(w),Q=/Opera\//.test(w),kt=/Apple Computer/.test(navigator.vendor),Y=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(w),Yt=/PhantomJS/.test(w),At=!B&&/AppleWebKit/.test(w)&&/Mobile\/\w+/.test(w),vt=/Android/.test(w),Tt=At||vt||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(w),Mt=At||/Mac/.test(h),ft=/\bCrOS\b/.test(w),It=/win/i.test(h),$t=Q&&w.match(/Version\/(\d*\.\d*)/);$t&&($t=Number($t[1])),$t&&$t>=15&&(Q=!1,I=!0);var Nt=Mt&&(dt||Q&&($t==null||$t<12.11)),Ut=y||_&&K>=9;function et(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Rt=function(a,c){var g=a.className,m=et(c).exec(g);if(m){var b=g.slice(m.index+m[0].length);a.className=g.slice(0,m.index)+(b?m[1]+b:"")}};function Lt(a){for(var c=a.childNodes.length;c>0;--c)a.removeChild(a.firstChild);return a}function Kt(a,c){return Lt(a).appendChild(c)}function Qt(a,c,g,m){var b=document.createElement(a);if(g&&(b.className=g),m&&(b.style.cssText=m),typeof c=="string")b.appendChild(document.createTextNode(c));else if(c)for(var F=0;F<c.length;++F)b.appendChild(c[F]);return b}function ie(a,c,g,m){var b=Qt(a,c,g,m);return b.setAttribute("role","presentation"),b}var yt;document.createRange?yt=function(a,c,g,m){var b=document.createRange();return b.setEnd(m||a,g),b.setStart(a,c),b}:yt=function(a,c,g){var m=document.body.createTextRange();try{m.moveToElementText(a.parentNode)}catch(b){return m}return m.collapse(!0),m.moveEnd("character",g),m.moveStart("character",c),m};function ae(a,c){if(c.nodeType==3&&(c=c.parentNode),a.contains)return a.contains(c);do if(c.nodeType==11&&(c=c.host),c==a)return!0;while(c=c.parentNode)}function Ht(){var a;try{a=document.activeElement}catch(c){a=document.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function Pe(a,c){var g=a.className;et(c).test(g)||(a.className+=(g?" ":"")+c)}function ge(a,c){for(var g=a.split(" "),m=0;m<g.length;m++)g[m]&&!et(g[m]).test(c)&&(c+=" "+g[m]);return c}var we=function(a){a.select()};At?we=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:_&&(we=function(a){try{a.select()}catch(c){}});function pe(a){var c=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,c)}}function ln(a,c,g){c||(c={});for(var m in a)a.hasOwnProperty(m)&&(g!==!1||!c.hasOwnProperty(m))&&(c[m]=a[m]);return c}function zt(a,c,g,m,b){c==null&&(c=a.search(/[^\s\u00a0]/),c==-1&&(c=a.length));for(var F=m||0,X=b||0;;){var lt=a.indexOf(" ",F);if(lt<0||lt>=c)return X+(c-F);X+=lt-F,X+=g-X%g,F=lt+1}}var nt=function(){this.id=null,this.f=null,this.time=0,this.handler=pe(this.onTimeout,this)};nt.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},nt.prototype.set=function(a,c){this.f=c;var g=+new Date+a;(!this.id||g<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=g)};function it(a,c){for(var g=0;g<a.length;++g)if(a[g]==c)return g;return-1}var Te=50,Ae={toString:function(){return"CodeMirror.Pass"}},de={scroll:!1},en={origin:"*mouse"},vn={origin:"+move"};function Xn(a,c,g){for(var m=0,b=0;;){var F=a.indexOf(" ",m);F==-1&&(F=a.length);var X=F-m;if(F==a.length||b+X>=c)return m+Math.min(X,c-b);if(b+=F-m,b+=g-b%g,m=F+1,b>=c)return m}}var gn=[""];function _n(a){for(;gn.length<=a;)gn.push($n(gn)+" ");return gn[a]}function $n(a){return a[a.length-1]}function fn(a,c){for(var g=[],m=0;m<a.length;m++)g[m]=c(a[m],m);return g}function hn(a,c,g){for(var m=0,b=g(c);m<a.length&&g(a[m])<=b;)m++;a.splice(m,0,c)}function ct(){}function L(a,c){var g;return Object.create?g=Object.create(a):(ct.prototype=a,g=new ct),c&&ln(c,g),g}var k=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function z(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||k.test(a))}function G(a,c){return c?c.source.indexOf("\\w")>-1&&z(a)?!0:c.test(a):z(a)}function T(a){for(var c in a)if(a.hasOwnProperty(c)&&a[c])return!1;return!0}var St=/[\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 fe(a){return a.charCodeAt(0)>=768&&St.test(a)}function Ct(a,c,g){for(;(g<0?c>0:c<a.length)&&fe(a.charAt(c));)c+=g;return c}function xt(a,c,g){for(var m=c>g?-1:1;;){if(c==g)return c;var b=(c+g)/2,F=m<0?Math.ceil(b):Math.floor(b);if(F==c)return a(F)?c:g;a(F)?g=F:c=F+m}}function Dt(a,c,g,m){if(!a)return m(c,g,"ltr",0);for(var b=!1,F=0;F<a.length;++F){var X=a[F];(X.from<g&&X.to>c||c==g&&X.to==c)&&(m(Math.max(X.from,c),Math.min(X.to,g),X.level==1?"rtl":"ltr",F),b=!0)}b||m(c,g,"ltr")}var qt=null;function _t(a,c,g){var m;qt=null;for(var b=0;b<a.length;++b){var F=a[b];if(F.from<c&&F.to>c)return b;F.to==c&&(F.from!=F.to&&g=="before"?m=b:qt=b),F.from==c&&(F.from!=F.to&&g!="before"?m=b:qt=b)}return m!=null?m:qt}var ve=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",c="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function g(Pt){return Pt<=247?a.charAt(Pt):1424<=Pt&&Pt<=1524?"R":1536<=Pt&&Pt<=1785?c.charAt(Pt-1536):1774<=Pt&&Pt<=2220?"r":8192<=Pt&&Pt<=8203?"w":Pt==8204?"b":"L"}var m=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,b=/[stwN]/,F=/[LRr]/,X=/[Lb1n]/,lt=/[1n]/;function st(Pt,Ee,Wt){this.level=Pt,this.from=Ee,this.to=Wt}return function(Pt,Ee){var Wt=Ee=="ltr"?"L":"R";if(Pt.length==0||Ee=="ltr"&&!m.test(Pt))return!1;for(var rn=Pt.length,Xe=[],Kn=0;Kn<rn;++Kn)Xe.push(g(Pt.charCodeAt(Kn)));for(var ei=0,yi=Wt;ei<rn;++ei){var Zi=Xe[ei];Zi=="m"?Xe[ei]=yi:yi=Zi}for(var Cr=0,ar=Wt;Cr<rn;++Cr){var Dr=Xe[Cr];Dr=="1"&&ar=="r"?Xe[Cr]="n":F.test(Dr)&&(ar=Dr,Dr=="r"&&(Xe[Cr]="R"))}for(var fo=1,or=Xe[0];fo<rn-1;++fo){var Vo=Xe[fo];Vo=="+"&&or=="1"&&Xe[fo+1]=="1"?Xe[fo]="1":Vo==","&&or==Xe[fo+1]&&(or=="1"||or=="n")&&(Xe[fo]=or),or=Vo}for(var ua=0;ua<rn;++ua){var nl=Xe[ua];if(nl==",")Xe[ua]="N";else if(nl=="%"){var ya=void 0;for(ya=ua+1;ya<rn&&Xe[ya]=="%";++ya);for(var mu=ua&&Xe[ua-1]=="!"||ya<rn&&Xe[ya]=="1"?"1":"N",jl=ua;jl<ya;++jl)Xe[jl]=mu;ua=ya-1}}for(var Ya=0,Nu=Wt;Ya<rn;++Ya){var Il=Xe[Ya];Nu=="L"&&Il=="1"?Xe[Ya]="L":F.test(Il)&&(Nu=Il)}for(var Xa=0;Xa<rn;++Xa)if(b.test(Xe[Xa])){var Ss=void 0;for(Ss=Xa+1;Ss<rn&&b.test(Xe[Ss]);++Ss);for(var Ca=(Xa?Xe[Xa-1]:Wt)=="L",dl=(Ss<rn?Xe[Ss]:Wt)=="L",Al=Ca==dl?Ca?"L":"R":Wt,hc=Xa;hc<Ss;++hc)Xe[hc]=Al;Xa=Ss-1}for(var xa=[],Ju,Ia=0;Ia<rn;)if(X.test(Xe[Ia])){var Zd=Ia;for(++Ia;Ia<rn&&X.test(Xe[Ia]);++Ia);xa.push(new st(0,Zd,Ia))}else{var ju=Ia,Iu=xa.length,gu=Ee=="rtl"?1:0;for(++Ia;Ia<rn&&Xe[Ia]!="L";++Ia);for(var Zs=ju;Zs<Ia;)if(lt.test(Xe[Zs])){ju<Zs&&(xa.splice(Iu,0,new st(1,ju,Zs)),Iu+=gu);var pl=Zs;for(++Zs;Zs<Ia&<.test(Xe[Zs]);++Zs);xa.splice(Iu,0,new st(2,pl,Zs)),Iu+=gu,ju=Zs}else++Zs;ju<Ia&&xa.splice(Iu,0,new st(1,ju,Ia))}return Ee=="ltr"&&(xa[0].level==1&&(Ju=Pt.match(/^\s+/))&&(xa[0].from=Ju[0].length,xa.unshift(new st(0,0,Ju[0].length))),$n(xa).level==1&&(Ju=Pt.match(/\s+$/))&&($n(xa).to-=Ju[0].length,xa.push(new st(0,rn-Ju[0].length,rn)))),Ee=="rtl"?xa.reverse():xa}}();function Ge(a,c){var g=a.order;return g==null&&(g=a.order=ve(a.text,c)),g}var Ke=[],Ce=function(a,c,g){if(a.addEventListener)a.addEventListener(c,g,!1);else if(a.attachEvent)a.attachEvent("on"+c,g);else{var m=a._handlers||(a._handlers={});m[c]=(m[c]||Ke).concat(g)}};function Ve(a,c){return a._handlers&&a._handlers[c]||Ke}function Qe(a,c,g){if(a.removeEventListener)a.removeEventListener(c,g,!1);else if(a.detachEvent)a.detachEvent("on"+c,g);else{var m=a._handlers,b=m&&m[c];if(b){var F=it(b,g);F>-1&&(m[c]=b.slice(0,F).concat(b.slice(F+1)))}}}function Bt(a,c){var g=Ve(a,c);if(g.length)for(var m=Array.prototype.slice.call(arguments,2),b=0;b<g.length;++b)g[b].apply(null,m)}function xe(a,c,g){return typeof c=="string"&&(c={type:c,preventDefault:function(){this.defaultPrevented=!0}}),Bt(a,g||c.type,a,c),On(c)||c.codemirrorIgnore}function ze(a){var c=a._handlers&&a._handlers.cursorActivity;if(c)for(var g=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),m=0;m<c.length;++m)it(g,c[m])==-1&&g.push(c[m])}function Ne(a,c){return Ve(a,c).length>0}function Cn(a){a.prototype.on=function(c,g){Ce(this,c,g)},a.prototype.off=function(c,g){Qe(this,c,g)}}function En(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function jn(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function On(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function ci(a){En(a),jn(a)}function Si(a){return a.target||a.srcElement}function vi(a){var c=a.which;return c==null&&(a.button&1?c=1:a.button&2?c=3:a.button&4&&(c=2)),Mt&&a.ctrlKey&&c==1&&(c=3),c}var qn=function(){if(_&&K<9)return!1;var a=Qt("div");return"draggable"in a||"dragDrop"in a}(),an;function Ji(a){if(an==null){var c=Qt("span","\u200B");Kt(a,Qt("span",[c,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(an=c.offsetWidth<=1&&c.offsetHeight>2&&!(_&&K<8))}var g=an?Qt("span","\u200B"):Qt("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return g.setAttribute("cm-text",""),g}var ui;function lr(a){if(ui!=null)return ui;var c=Kt(a,document.createTextNode("A\u062EA")),g=yt(c,0,1).getBoundingClientRect(),m=yt(c,1,2).getBoundingClientRect();return Lt(a),!g||g.left==g.right?!1:ui=m.right-g.right<3}var Di=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(a){for(var c=0,g=[],m=a.length;c<=m;){var b=a.indexOf(`
|
|
|
`,c);b==-1&&(b=a.length);var F=a.slice(c,a.charAt(b-1)=="\r"?b-1:b),X=F.indexOf("\r");X!=-1?(g.push(F.slice(0,X)),c+=X+1):(g.push(F),c=b+1)}return g}:function(a){return a.split(/\r\n?|\n/)},D=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(c){return!1}}:function(a){var c;try{c=a.ownerDocument.selection.createRange()}catch(g){}return!c||c.parentElement()!=a?!1:c.compareEndPoints("StartToEnd",c)!=0},fr=function(){var a=Qt("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),er=null;function Gr(a){if(er!=null)return er;var c=Kt(a,Qt("span","x")),g=c.getBoundingClientRect(),m=yt(c,0,1).getBoundingClientRect();return er=Math.abs(g.left-m.left)>1}var Zr={},mo={};function Ei(a,c){arguments.length>2&&(c.dependencies=Array.prototype.slice.call(arguments,2)),Zr[a]=c}function No(a,c){mo[a]=c}function Ir(a){if(typeof a=="string"&&mo.hasOwnProperty(a))a=mo[a];else if(a&&typeof a.name=="string"&&mo.hasOwnProperty(a.name)){var c=mo[a.name];typeof c=="string"&&(c={name:c}),a=L(c,a),a.name=c.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return Ir("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return Ir("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function Gi(a,c){c=Ir(c);var g=Zr[c.name];if(!g)return Gi(a,"text/plain");var m=g(a,c);if(Jn.hasOwnProperty(c.name)){var b=Jn[c.name];for(var F in b)b.hasOwnProperty(F)&&(m.hasOwnProperty(F)&&(m["_"+F]=m[F]),m[F]=b[F])}if(m.name=c.name,c.helperType&&(m.helperType=c.helperType),c.modeProps)for(var X in c.modeProps)m[X]=c.modeProps[X];return m}var Jn={};function te(a,c){var g=Jn.hasOwnProperty(a)?Jn[a]:Jn[a]={};ln(c,g)}function Nn(a,c){if(c===!0)return c;if(a.copyState)return a.copyState(c);var g={};for(var m in c){var b=c[m];b instanceof Array&&(b=b.concat([])),g[m]=b}return g}function Bn(a,c){for(var g;a.innerMode&&(g=a.innerMode(c),!(!g||g.mode==a));)c=g.state,a=g.mode;return g||{mode:a,state:c}}function oe(a,c,g){return a.startState?a.startState(c,g):!0}var Ft=function(a,c,g){this.pos=this.start=0,this.string=a,this.tabSize=c||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=g};Ft.prototype.eol=function(){return this.pos>=this.string.length},Ft.prototype.sol=function(){return this.pos==this.lineStart},Ft.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ft.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ft.prototype.eat=function(a){var c=this.string.charAt(this.pos),g;if(typeof a=="string"?g=c==a:g=c&&(a.test?a.test(c):a(c)),g)return++this.pos,c},Ft.prototype.eatWhile=function(a){for(var c=this.pos;this.eat(a););return this.pos>c},Ft.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},Ft.prototype.skipToEnd=function(){this.pos=this.string.length},Ft.prototype.skipTo=function(a){var c=this.string.indexOf(a,this.pos);if(c>-1)return this.pos=c,!0},Ft.prototype.backUp=function(a){this.pos-=a},Ft.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=zt(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?zt(this.string,this.lineStart,this.tabSize):0)},Ft.prototype.indentation=function(){return zt(this.string,null,this.tabSize)-(this.lineStart?zt(this.string,this.lineStart,this.tabSize):0)},Ft.prototype.match=function(a,c,g){if(typeof a=="string"){var m=function(X){return g?X.toLowerCase():X},b=this.string.substr(this.pos,a.length);if(m(b)==m(a))return c!==!1&&(this.pos+=a.length),!0}else{var F=this.string.slice(this.pos).match(a);return F&&F.index>0?null:(F&&c!==!1&&(this.pos+=F[0].length),F)}},Ft.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ft.prototype.hideFirstChars=function(a,c){this.lineStart+=a;try{return c()}finally{this.lineStart-=a}},Ft.prototype.lookAhead=function(a){var c=this.lineOracle;return c&&c.lookAhead(a)},Ft.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function qe(a,c){if(c-=a.first,c<0||c>=a.size)throw new Error("There is no line "+(c+a.first)+" in the document.");for(var g=a;!g.lines;)for(var m=0;;++m){var b=g.children[m],F=b.chunkSize();if(c<F){g=b;break}c-=F}return g.lines[c]}function xn(a,c,g){var m=[],b=c.line;return a.iter(c.line,g.line+1,function(F){var X=F.text;b==g.line&&(X=X.slice(0,g.ch)),b==c.line&&(X=X.slice(c.ch)),m.push(X),++b}),m}function Gn(a,c,g){var m=[];return a.iter(c,g,function(b){m.push(b.text)}),m}function kn(a,c){var g=c-a.height;if(g)for(var m=a;m;m=m.parent)m.height+=g}function ne(a){if(a.parent==null)return null;for(var c=a.parent,g=it(c.lines,a),m=c.parent;m;c=m,m=m.parent)for(var b=0;m.children[b]!=c;++b)g+=m.children[b].chunkSize();return g+c.first}function dn(a,c){var g=a.first;t:do{for(var m=0;m<a.children.length;++m){var b=a.children[m],F=b.height;if(c<F){a=b;continue t}c-=F,g+=b.chunkSize()}return g}while(!a.lines);for(var X=0;X<a.lines.length;++X){var lt=a.lines[X],st=lt.height;if(c<st)break;c-=st}return g+X}function Fn(a,c){return c>=a.first&&c<a.first+a.size}function hi(a,c){return String(a.lineNumberFormatter(c+a.firstLineNumber))}function Me(a,c,g){if(g===void 0&&(g=null),!(this instanceof Me))return new Me(a,c,g);this.line=a,this.ch=c,this.sticky=g}function In(a,c){return a.line-c.line||a.ch-c.ch}function be(a,c){return a.sticky==c.sticky&&In(a,c)==0}function $e(a){return Me(a.line,a.ch)}function He(a,c){return In(a,c)<0?c:a}function Le(a,c){return In(a,c)<0?a:c}function tn(a,c){return Math.max(a.first,Math.min(c,a.first+a.size-1))}function Je(a,c){if(c.line<a.first)return Me(a.first,0);var g=a.first+a.size-1;return c.line>g?Me(g,qe(a,g).text.length):yn(c,qe(a,c.line).text.length)}function yn(a,c){var g=a.ch;return g==null||g>c?Me(a.line,c):g<0?Me(a.line,0):a}function bn(a,c){for(var g=[],m=0;m<c.length;m++)g[m]=Je(a,c[m]);return g}var di=function(a,c){this.state=a,this.lookAhead=c},Sn=function(a,c,g,m){this.state=c,this.doc=a,this.line=g,this.maxLookAhead=m||0,this.baseTokens=null,this.baseTokenPos=1};Sn.prototype.lookAhead=function(a){var c=this.doc.getLine(this.line+a);return c!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),c},Sn.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var c=this.baseTokens[this.baseTokenPos+1];return{type:c&&c.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-a}},Sn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Sn.fromSaved=function(a,c,g){return c instanceof di?new Sn(a,Nn(a.mode,c.state),g,c.lookAhead):new Sn(a,Nn(a.mode,c),g)},Sn.prototype.save=function(a){var c=a!==!1?Nn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new di(c,this.maxLookAhead):c};function xi(a,c,g,m){var b=[a.state.modeGen],F={};Er(a,c.text,a.doc.mode,g,function(Pt,Ee){return b.push(Pt,Ee)},F,m);for(var X=g.state,lt=function(Pt){g.baseTokens=b;var Ee=a.state.overlays[Pt],Wt=1,rn=0;g.state=!0,Er(a,c.text,Ee.mode,g,function(Xe,Kn){for(var ei=Wt;rn<Xe;){var yi=b[Wt];yi>Xe&&b.splice(Wt,1,Xe,b[Wt+1],yi),Wt+=2,rn=Math.min(Xe,yi)}if(Kn)if(Ee.opaque)b.splice(ei,Wt-ei,Xe,"overlay "+Kn),Wt=ei+2;else for(;ei<Wt;ei+=2){var Zi=b[ei+1];b[ei+1]=(Zi?Zi+" ":"")+"overlay "+Kn}},F),g.state=X,g.baseTokens=null,g.baseTokenPos=1},st=0;st<a.state.overlays.length;++st)lt(st);return{styles:b,classes:F.bgClass||F.textClass?F:null}}function ir(a,c,g){if(!c.styles||c.styles[0]!=a.state.modeGen){var m=Mi(a,ne(c)),b=c.text.length>a.options.maxHighlightLength&&Nn(a.doc.mode,m.state),F=xi(a,c,m);b&&(m.state=b),c.stateAfter=m.save(!b),c.styles=F.styles,F.classes?c.styleClasses=F.classes:c.styleClasses&&(c.styleClasses=null),g===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return c.styles}function Mi(a,c,g){var m=a.doc,b=a.display;if(!m.mode.startState)return new Sn(m,!0,c);var F=Pi(a,c,g),X=F>m.first&&qe(m,F-1).stateAfter,lt=X?Sn.fromSaved(m,X,F):new Sn(m,oe(m.mode),F);return m.iter(F,c,function(st){le(a,st.text,lt);var Pt=lt.line;st.stateAfter=Pt==c-1||Pt%5==0||Pt>=b.viewFrom&&Pt<b.viewTo?lt.save():null,lt.nextLine()}),g&&(m.modeFrontier=lt.line),lt}function le(a,c,g,m){var b=a.doc.mode,F=new Ft(c,a.options.tabSize,g);for(F.start=F.pos=m||0,c==""&&mr(b,g.state);!F.eol();)Or(b,F,g.state),F.start=F.pos}function mr(a,c){if(a.blankLine)return a.blankLine(c);if(a.innerMode){var g=Bn(a,c);if(g.mode.blankLine)return g.mode.blankLine(g.state)}}function Or(a,c,g,m){for(var b=0;b<10;b++){m&&(m[0]=Bn(a,g).mode);var F=a.token(c,g);if(c.pos>c.start)return F}throw new Error("Mode "+a.name+" failed to advance stream.")}var zr=function(a,c,g){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=c||null,this.state=g};function Yr(a,c,g,m){var b=a.doc,F=b.mode,X;c=Je(b,c);var lt=qe(b,c.line),st=Mi(a,c.line,g),Pt=new Ft(lt.text,a.options.tabSize,st),Ee;for(m&&(Ee=[]);(m||Pt.pos<c.ch)&&!Pt.eol();)Pt.start=Pt.pos,X=Or(F,Pt,st.state),m&&Ee.push(new zr(Pt,X,Nn(b.mode,st.state)));return m?Ee:new zr(Pt,X,st.state)}function dr(a,c){if(a)for(;;){var g=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!g)break;a=a.slice(0,g.index)+a.slice(g.index+g[0].length);var m=g[1]?"bgClass":"textClass";c[m]==null?c[m]=g[2]:new RegExp("(?:^|\\s)"+g[2]+"(?:$|\\s)").test(c[m])||(c[m]+=" "+g[2])}return a}function Er(a,c,g,m,b,F,X){var lt=g.flattenSpans;lt==null&&(lt=a.options.flattenSpans);var st=0,Pt=null,Ee=new Ft(c,a.options.tabSize,m),Wt,rn=a.options.addModeClass&&[null];for(c==""&&dr(mr(g,m.state),F);!Ee.eol();){if(Ee.pos>a.options.maxHighlightLength?(lt=!1,X&&le(a,c,m,Ee.pos),Ee.pos=c.length,Wt=null):Wt=dr(Or(g,Ee,m.state,rn),F),rn){var Xe=rn[0].name;Xe&&(Wt="m-"+(Wt?Xe+" "+Wt:Xe))}if(!lt||Pt!=Wt){for(;st<Ee.start;)st=Math.min(Ee.start,st+5e3),b(st,Pt);Pt=Wt}Ee.start=Ee.pos}for(;st<Ee.pos;){var Kn=Math.min(Ee.pos,st+5e3);b(Kn,Pt),st=Kn}}function Pi(a,c,g){for(var m,b,F=a.doc,X=g?-1:c-(a.doc.mode.innerMode?1e3:100),lt=c;lt>X;--lt){if(lt<=F.first)return F.first;var st=qe(F,lt-1),Pt=st.stateAfter;if(Pt&&(!g||lt+(Pt instanceof di?Pt.lookAhead:0)<=F.modeFrontier))return lt;var Ee=zt(st.text,null,a.options.tabSize);(b==null||m>Ee)&&(b=lt-1,m=Ee)}return b}function pi(a,c){if(a.modeFrontier=Math.min(a.modeFrontier,c),!(a.highlightFrontier<c-10)){for(var g=a.first,m=c-1;m>g;m--){var b=qe(a,m).stateAfter;if(b&&(!(b instanceof di)||m+b.lookAhead<c)){g=m+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,g)}}var ur=!1,Re=!1;function Rr(){ur=!0}function je(){Re=!0}function nr(a,c,g){this.marker=a,this.from=c,this.to=g}function Co(a,c){if(a)for(var g=0;g<a.length;++g){var m=a[g];if(m.marker==c)return m}}function Br(a,c){for(var g,m=0;m<a.length;++m)a[m]!=c&&(g||(g=[])).push(a[m]);return g}function rs(a,c){a.markedSpans=a.markedSpans?a.markedSpans.concat([c]):[c],c.marker.attachLine(a)}function yo(a,c,g){var m;if(a)for(var b=0;b<a.length;++b){var F=a[b],X=F.marker,lt=F.from==null||(X.inclusiveLeft?F.from<=c:F.from<c);if(lt||F.from==c&&X.type=="bookmark"&&(!g||!F.marker.insertLeft)){var st=F.to==null||(X.inclusiveRight?F.to>=c:F.to>c);(m||(m=[])).push(new nr(X,F.from,st?null:F.to))}}return m}function ai(a,c,g){var m;if(a)for(var b=0;b<a.length;++b){var F=a[b],X=F.marker,lt=F.to==null||(X.inclusiveRight?F.to>=c:F.to>c);if(lt||F.from==c&&X.type=="bookmark"&&(!g||F.marker.insertLeft)){var st=F.from==null||(X.inclusiveLeft?F.from<=c:F.from<c);(m||(m=[])).push(new nr(X,st?null:F.from-c,F.to==null?null:F.to-c))}}return m}function W(a,c){if(c.full)return null;var g=Fn(a,c.from.line)&&qe(a,c.from.line).markedSpans,m=Fn(a,c.to.line)&&qe(a,c.to.line).markedSpans;if(!g&&!m)return null;var b=c.from.ch,F=c.to.ch,X=In(c.from,c.to)==0,lt=yo(g,b,X),st=ai(m,F,X),Pt=c.text.length==1,Ee=$n(c.text).length+(Pt?b:0);if(lt)for(var Wt=0;Wt<lt.length;++Wt){var rn=lt[Wt];if(rn.to==null){var Xe=Co(st,rn.marker);Xe?Pt&&(rn.to=Xe.to==null?null:Xe.to+Ee):rn.to=b}}if(st)for(var Kn=0;Kn<st.length;++Kn){var ei=st[Kn];if(ei.to!=null&&(ei.to+=Ee),ei.from==null){var yi=Co(lt,ei.marker);yi||(ei.from=Ee,Pt&&(lt||(lt=[])).push(ei))}else ei.from+=Ee,Pt&&(lt||(lt=[])).push(ei)}lt&&(lt=tt(lt)),st&&st!=lt&&(st=tt(st));var Zi=[lt];if(!Pt){var Cr=c.text.length-2,ar;if(Cr>0&<)for(var Dr=0;Dr<lt.length;++Dr)lt[Dr].to==null&&(ar||(ar=[])).push(new nr(lt[Dr].marker,null,null));for(var fo=0;fo<Cr;++fo)Zi.push(ar);Zi.push(st)}return Zi}function tt(a){for(var c=0;c<a.length;++c){var g=a[c];g.from!=null&&g.from==g.to&&g.marker.clearWhenEmpty!==!1&&a.splice(c--,1)}return a.length?a:null}function Pn(a,c,g){var m=null;if(a.iter(c.line,g.line+1,function(Xe){if(Xe.markedSpans)for(var Kn=0;Kn<Xe.markedSpans.length;++Kn){var ei=Xe.markedSpans[Kn].marker;ei.readOnly&&(!m||it(m,ei)==-1)&&(m||(m=[])).push(ei)}}),!m)return null;for(var b=[{from:c,to:g}],F=0;F<m.length;++F)for(var X=m[F],lt=X.find(0),st=0;st<b.length;++st){var Pt=b[st];if(!(In(Pt.to,lt.from)<0||In(Pt.from,lt.to)>0)){var Ee=[st,1],Wt=In(Pt.from,lt.from),rn=In(Pt.to,lt.to);(Wt<0||!X.inclusiveLeft&&!Wt)&&Ee.push({from:Pt.from,to:lt.from}),(rn>0||!X.inclusiveRight&&!rn)&&Ee.push({from:lt.to,to:Pt.to}),b.splice.apply(b,Ee),st+=Ee.length-3}}return b}function pt(a){var c=a.markedSpans;if(c){for(var g=0;g<c.length;++g)c[g].marker.detachLine(a);a.markedSpans=null}}function $(a,c){if(c){for(var g=0;g<c.length;++g)c[g].marker.attachLine(a);a.markedSpans=c}}function Wi(a){return a.inclusiveLeft?-1:0}function bi(a){return a.inclusiveRight?1:0}function qi(a,c){var g=a.lines.length-c.lines.length;if(g!=0)return g;var m=a.find(),b=c.find(),F=In(m.from,b.from)||Wi(a)-Wi(c);if(F)return-F;var X=In(m.to,b.to)||bi(a)-bi(c);return X||c.id-a.id}function go(a,c){var g=Re&&a.markedSpans,m;if(g)for(var b=void 0,F=0;F<g.length;++F)b=g[F],b.marker.collapsed&&(c?b.from:b.to)==null&&(!m||qi(m,b.marker)<0)&&(m=b.marker);return m}function Ui(a){return go(a,!0)}function Xr(a){return go(a,!1)}function $i(a,c){var g=Re&&a.markedSpans,m;if(g)for(var b=0;b<g.length;++b){var F=g[b];F.marker.collapsed&&(F.from==null||F.from<c)&&(F.to==null||F.to>c)&&(!m||qi(m,F.marker)<0)&&(m=F.marker)}return m}function Vi(a,c,g,m,b){var F=qe(a,c),X=Re&&F.markedSpans;if(X)for(var lt=0;lt<X.length;++lt){var st=X[lt];if(st.marker.collapsed){var Pt=st.marker.find(0),Ee=In(Pt.from,g)||Wi(st.marker)-Wi(b),Wt=In(Pt.to,m)||bi(st.marker)-bi(b);if(!(Ee>=0&&Wt<=0||Ee<=0&&Wt>=0)&&(Ee<=0&&(st.marker.inclusiveRight&&b.inclusiveLeft?In(Pt.to,g)>=0:In(Pt.to,g)>0)||Ee>=0&&(st.marker.inclusiveRight&&b.inclusiveLeft?In(Pt.from,m)<=0:In(Pt.from,m)<0)))return!0}}}function se(a){for(var c;c=Ui(a);)a=c.find(-1,!0).line;return a}function kr(a){for(var c;c=Xr(a);)a=c.find(1,!0).line;return a}function De(a){for(var c,g;c=Xr(a);)a=c.find(1,!0).line,(g||(g=[])).push(a);return g}function Wo(a,c){var g=qe(a,c),m=se(g);return g==m?c:ne(m)}function ls(a,c){if(c>a.lastLine())return c;var g=qe(a,c),m;if(!ni(a,g))return c;for(;m=Xr(g);)g=m.find(1,!0).line;return ne(g)+1}function ni(a,c){var g=Re&&c.markedSpans;if(g){for(var m=void 0,b=0;b<g.length;++b)if(m=g[b],!!m.marker.collapsed){if(m.from==null)return!0;if(!m.marker.widgetNode&&m.from==0&&m.marker.inclusiveLeft&&Ps(a,c,m))return!0}}}function Ps(a,c,g){if(g.to==null){var m=g.marker.find(1,!0);return Ps(a,m.line,Co(m.line.markedSpans,g.marker))}if(g.marker.inclusiveRight&&g.to==c.text.length)return!0;for(var b=void 0,F=0;F<c.markedSpans.length;++F)if(b=c.markedSpans[F],b.marker.collapsed&&!b.marker.widgetNode&&b.from==g.to&&(b.to==null||b.to!=g.from)&&(b.marker.inclusiveLeft||g.marker.inclusiveRight)&&Ps(a,c,b))return!0}function Is(a){a=se(a);for(var c=0,g=a.parent,m=0;m<g.lines.length;++m){var b=g.lines[m];if(b==a)break;c+=b.height}for(var F=g.parent;F;g=F,F=g.parent)for(var X=0;X<F.children.length;++X){var lt=F.children[X];if(lt==g)break;c+=lt.height}return c}function Js(a){if(a.height==0)return 0;for(var c=a.text.length,g,m=a;g=Ui(m);){var b=g.find(0,!0);m=b.from.line,c+=b.from.ch-b.to.ch}for(m=a;g=Xr(m);){var F=g.find(0,!0);c-=m.text.length-F.from.ch,m=F.to.line,c+=m.text.length-F.to.ch}return c}function Us(a){var c=a.display,g=a.doc;c.maxLine=qe(g,g.first),c.maxLineLength=Js(c.maxLine),c.maxLineChanged=!0,g.iter(function(m){var b=Js(m);b>c.maxLineLength&&(c.maxLineLength=b,c.maxLine=m)})}var oa=function(a,c,g){this.text=a,$(this,c),this.height=g?g(this):1};oa.prototype.lineNo=function(){return ne(this)},Cn(oa);function Qa(a,c,g,m){a.text=c,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),pt(a),$(a,g);var b=m?m(a):1;b!=a.height&&kn(a,b)}function da(a){a.parent=null,pt(a)}var Jr={},vs={};function es(a,c){if(!a||/^\s*$/.test(a))return null;var g=c.addModeClass?vs:Jr;return g[a]||(g[a]=a.replace(/\S+/g,"cm-$&"))}function ke(a,c){var g=ie("span",null,null,I?"padding-right: .1px":null),m={pre:ie("pre",[g],"CodeMirror-line"),content:g,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};c.measure={};for(var b=0;b<=(c.rest?c.rest.length:0);b++){var F=b?c.rest[b-1]:c.line,X=void 0;m.pos=0,m.addToken=Su,lr(a.display.measure)&&(X=Ge(F,a.doc.direction))&&(m.addToken=lo(m.addToken,X)),m.map=[];var lt=c!=a.display.externalMeasured&&ne(F);ws(F,m,ir(a,F,lt)),F.styleClasses&&(F.styleClasses.bgClass&&(m.bgClass=ge(F.styleClasses.bgClass,m.bgClass||"")),F.styleClasses.textClass&&(m.textClass=ge(F.styleClasses.textClass,m.textClass||""))),m.map.length==0&&m.map.push(0,0,m.content.appendChild(Ji(a.display.measure))),b==0?(c.measure.map=m.map,c.measure.cache={}):((c.measure.maps||(c.measure.maps=[])).push(m.map),(c.measure.caches||(c.measure.caches=[])).push({}))}if(I){var st=m.content.lastChild;(/\bcm-tab\b/.test(st.className)||st.querySelector&&st.querySelector(".cm-tab"))&&(m.content.className="cm-tab-wrap-hack")}return Bt(a,"renderLine",a,c.line,m.pre),m.pre.className&&(m.textClass=ge(m.pre.className,m.textClass||"")),m}function ys(a){var c=Qt("span","\u2022","cm-invalidchar");return c.title="\\u"+a.charCodeAt(0).toString(16),c.setAttribute("aria-label",c.title),c}function Su(a,c,g,m,b,F,X){if(c){var lt=a.splitSpaces?Dl(c,a.trailingSpace):c,st=a.cm.state.specialChars,Pt=!1,Ee;if(!st.test(c))a.col+=c.length,Ee=document.createTextNode(lt),a.map.push(a.pos,a.pos+c.length,Ee),_&&K<9&&(Pt=!0),a.pos+=c.length;else{Ee=document.createDocumentFragment();for(var Wt=0;;){st.lastIndex=Wt;var rn=st.exec(c),Xe=rn?rn.index-Wt:c.length-Wt;if(Xe){var Kn=document.createTextNode(lt.slice(Wt,Wt+Xe));_&&K<9?Ee.appendChild(Qt("span",[Kn])):Ee.appendChild(Kn),a.map.push(a.pos,a.pos+Xe,Kn),a.col+=Xe,a.pos+=Xe}if(!rn)break;Wt+=Xe+1;var ei=void 0;if(rn[0]==" "){var yi=a.cm.options.tabSize,Zi=yi-a.col%yi;ei=Ee.appendChild(Qt("span",_n(Zi),"cm-tab")),ei.setAttribute("role","presentation"),ei.setAttribute("cm-text"," "),a.col+=Zi}else rn[0]=="\r"||rn[0]==`
|
|
|
`?(ei=Ee.appendChild(Qt("span",rn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),ei.setAttribute("cm-text",rn[0]),a.col+=1):(ei=a.cm.options.specialCharPlaceholder(rn[0]),ei.setAttribute("cm-text",rn[0]),_&&K<9?Ee.appendChild(Qt("span",[ei])):Ee.appendChild(ei),a.col+=1);a.map.push(a.pos,a.pos+1,ei),a.pos++}}if(a.trailingSpace=lt.charCodeAt(c.length-1)==32,g||m||b||Pt||F||X){var Cr=g||"";m&&(Cr+=m),b&&(Cr+=b);var ar=Qt("span",[Ee],Cr,F);if(X)for(var Dr in X)X.hasOwnProperty(Dr)&&Dr!="style"&&Dr!="class"&&ar.setAttribute(Dr,X[Dr]);return a.content.appendChild(ar)}a.content.appendChild(Ee)}}function Dl(a,c){if(a.length>1&&!/ /.test(a))return a;for(var g=c,m="",b=0;b<a.length;b++){var F=a.charAt(b);F==" "&&g&&(b==a.length-1||a.charCodeAt(b+1)==32)&&(F="\xA0"),m+=F,g=F==" "}return m}function lo(a,c){return function(g,m,b,F,X,lt,st){b=b?b+" cm-force-border":"cm-force-border";for(var Pt=g.pos,Ee=Pt+m.length;;){for(var Wt=void 0,rn=0;rn<c.length&&(Wt=c[rn],!(Wt.to>Pt&&Wt.from<=Pt));rn++);if(Wt.to>=Ee)return a(g,m,b,F,X,lt,st);a(g,m.slice(0,Wt.to-Pt),b,F,null,lt,st),F=null,m=m.slice(Wt.to-Pt),Pt=Wt.to}}}function Fo(a,c,g,m){var b=!m&&g.widgetNode;b&&a.map.push(a.pos,a.pos+c,b),!m&&a.cm.display.input.needsContentAttribute&&(b||(b=a.content.appendChild(document.createElement("span"))),b.setAttribute("cm-marker",g.id)),b&&(a.cm.display.input.setUneditable(b),a.content.appendChild(b)),a.pos+=c,a.trailingSpace=!1}function ws(a,c,g){var m=a.markedSpans,b=a.text,F=0;if(!m){for(var X=1;X<g.length;X+=2)c.addToken(c,b.slice(F,F=g[X]),es(g[X+1],c.cm.options));return}for(var lt=b.length,st=0,Pt=1,Ee="",Wt,rn,Xe=0,Kn,ei,yi,Zi,Cr;;){if(Xe==st){Kn=ei=yi=rn="",Cr=null,Zi=null,Xe=1/0;for(var ar=[],Dr=void 0,fo=0;fo<m.length;++fo){var or=m[fo],Vo=or.marker;if(Vo.type=="bookmark"&&or.from==st&&Vo.widgetNode)ar.push(Vo);else if(or.from<=st&&(or.to==null||or.to>st||Vo.collapsed&&or.to==st&&or.from==st)){if(or.to!=null&&or.to!=st&&Xe>or.to&&(Xe=or.to,ei=""),Vo.className&&(Kn+=" "+Vo.className),Vo.css&&(rn=(rn?rn+";":"")+Vo.css),Vo.startStyle&&or.from==st&&(yi+=" "+Vo.startStyle),Vo.endStyle&&or.to==Xe&&(Dr||(Dr=[])).push(Vo.endStyle,or.to),Vo.title&&((Cr||(Cr={})).title=Vo.title),Vo.attributes)for(var ua in Vo.attributes)(Cr||(Cr={}))[ua]=Vo.attributes[ua];Vo.collapsed&&(!Zi||qi(Zi.marker,Vo)<0)&&(Zi=or)}else or.from>st&&Xe>or.from&&(Xe=or.from)}if(Dr)for(var nl=0;nl<Dr.length;nl+=2)Dr[nl+1]==Xe&&(ei+=" "+Dr[nl]);if(!Zi||Zi.from==st)for(var ya=0;ya<ar.length;++ya)Fo(c,0,ar[ya]);if(Zi&&(Zi.from||0)==st){if(Fo(c,(Zi.to==null?lt+1:Zi.to)-st,Zi.marker,Zi.from==null),Zi.to==null)return;Zi.to==st&&(Zi=!1)}}if(st>=lt)break;for(var mu=Math.min(lt,Xe);;){if(Ee){var jl=st+Ee.length;if(!Zi){var Ya=jl>mu?Ee.slice(0,mu-st):Ee;c.addToken(c,Ya,Wt?Wt+Kn:Kn,yi,st+Ya.length==Xe?ei:"",rn,Cr)}if(jl>=mu){Ee=Ee.slice(mu-st),st=mu;break}st=jl,yi=""}Ee=b.slice(F,F=g[Pt++]),Wt=es(g[Pt++],c.cm.options)}}}function Ko(a,c,g){this.line=c,this.rest=De(c),this.size=this.rest?ne($n(this.rest))-g+1:1,this.node=this.text=null,this.hidden=ni(a,c)}function Ur(a,c,g){for(var m=[],b,F=c;F<g;F=b){var X=new Ko(a.doc,qe(a.doc,F),F);b=F+X.size,m.push(X)}return m}var uo=null;function Pa(a){uo?uo.ops.push(a):a.ownsGroup=uo={ops:[a],delayedCallbacks:[]}}function br(a){var c=a.delayedCallbacks,g=0;do{for(;g<c.length;g++)c[g].call(null);for(var m=0;m<a.ops.length;m++){var b=a.ops[m];if(b.cursorActivityHandlers)for(;b.cursorActivityCalled<b.cursorActivityHandlers.length;)b.cursorActivityHandlers[b.cursorActivityCalled++].call(null,b.cm)}}while(g<c.length)}function io(a,c){var g=a.ownsGroup;if(g)try{br(g)}finally{uo=null,c(g)}}var eo=null;function ri(a,c){var g=Ve(a,c);if(g.length){var m=Array.prototype.slice.call(arguments,2),b;uo?b=uo.delayedCallbacks:eo?b=eo:(b=eo=[],setTimeout(Cs,0));for(var F=function(lt){b.push(function(){return g[lt].apply(null,m)})},X=0;X<g.length;++X)F(X)}}function Cs(){var a=eo;eo=null;for(var c=0;c<a.length;++c)a[c]()}function Zo(a,c,g,m){for(var b=0;b<c.changes.length;b++){var F=c.changes[b];F=="text"?Wn(a,c):F=="gutter"?Fs(a,c,g,m):F=="class"?us(a,c):F=="widget"&&qa(a,c,m)}c.changes=null}function ga(a){return a.node==a.text&&(a.node=Qt("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),_&&K<8&&(a.node.style.zIndex=2)),a.node}function sl(a,c){var g=c.bgClass?c.bgClass+" "+(c.line.bgClass||""):c.line.bgClass;if(g&&(g+=" CodeMirror-linebackground"),c.background)g?c.background.className=g:(c.background.parentNode.removeChild(c.background),c.background=null);else if(g){var m=ga(c);c.background=m.insertBefore(Qt("div",null,g),m.firstChild),a.display.input.setUneditable(c.background)}}function Cl(a,c){var g=a.display.externalMeasured;return g&&g.line==c.line?(a.display.externalMeasured=null,c.measure=g.measure,g.built):ke(a,c)}function Wn(a,c){var g=c.text.className,m=Cl(a,c);c.text==c.node&&(c.node=m.pre),c.text.parentNode.replaceChild(m.pre,c.text),c.text=m.pre,m.bgClass!=c.bgClass||m.textClass!=c.textClass?(c.bgClass=m.bgClass,c.textClass=m.textClass,us(a,c)):g&&(c.text.className=g)}function us(a,c){sl(a,c),c.line.wrapClass?ga(c).className=c.line.wrapClass:c.node!=c.text&&(c.node.className="");var g=c.textClass?c.textClass+" "+(c.line.textClass||""):c.line.textClass;c.text.className=g||""}function Fs(a,c,g,m){if(c.gutter&&(c.node.removeChild(c.gutter),c.gutter=null),c.gutterBackground&&(c.node.removeChild(c.gutterBackground),c.gutterBackground=null),c.line.gutterClass){var b=ga(c);c.gutterBackground=Qt("div",null,"CodeMirror-gutter-background "+c.line.gutterClass,"left: "+(a.options.fixedGutter?m.fixedPos:-m.gutterTotalWidth)+"px; width: "+m.gutterTotalWidth+"px"),a.display.input.setUneditable(c.gutterBackground),b.insertBefore(c.gutterBackground,c.text)}var F=c.line.gutterMarkers;if(a.options.lineNumbers||F){var X=ga(c),lt=c.gutter=Qt("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?m.fixedPos:-m.gutterTotalWidth)+"px");if(a.display.input.setUneditable(lt),X.insertBefore(lt,c.text),c.line.gutterClass&&(lt.className+=" "+c.line.gutterClass),a.options.lineNumbers&&(!F||!F["CodeMirror-linenumbers"])&&(c.lineNumber=lt.appendChild(Qt("div",hi(a.options,g),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+m.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),F)for(var st=0;st<a.display.gutterSpecs.length;++st){var Pt=a.display.gutterSpecs[st].className,Ee=F.hasOwnProperty(Pt)&&F[Pt];Ee&<.appendChild(Qt("div",[Ee],"CodeMirror-gutter-elt","left: "+m.gutterLeft[Pt]+"px; width: "+m.gutterWidth[Pt]+"px"))}}}function qa(a,c,g){c.alignable&&(c.alignable=null);for(var m=et("CodeMirror-linewidget"),b=c.node.firstChild,F=void 0;b;b=F)F=b.nextSibling,m.test(b.className)&&c.node.removeChild(b);Fa(a,c,g)}function al(a,c,g,m){var b=Cl(a,c);return c.text=c.node=b.pre,b.bgClass&&(c.bgClass=b.bgClass),b.textClass&&(c.textClass=b.textClass),us(a,c),Fs(a,c,g,m),Fa(a,c,m),c.node}function Fa(a,c,g){if(Sr(a,c.line,c,g,!0),c.rest)for(var m=0;m<c.rest.length;m++)Sr(a,c.rest[m],c,g,!1)}function Sr(a,c,g,m,b){if(c.widgets)for(var F=ga(g),X=0,lt=c.widgets;X<lt.length;++X){var st=lt[X],Pt=Qt("div",[st.node],"CodeMirror-linewidget"+(st.className?" "+st.className:""));st.handleMouseEvents||Pt.setAttribute("cm-ignore-events","true"),iu(st,Pt,g,m),a.display.input.setUneditable(Pt),b&&st.above?F.insertBefore(Pt,g.gutter||g.text):F.appendChild(Pt),ri(st,"redraw")}}function iu(a,c,g,m){if(a.noHScroll){(g.alignable||(g.alignable=[])).push(c);var b=m.wrapperWidth;c.style.left=m.fixedPos+"px",a.coverGutter||(b-=m.gutterTotalWidth,c.style.paddingLeft=m.gutterTotalWidth+"px"),c.style.width=b+"px"}a.coverGutter&&(c.style.zIndex=5,c.style.position="relative",a.noHScroll||(c.style.marginLeft=-m.gutterTotalWidth+"px"))}function Ba(a){if(a.height!=null)return a.height;var c=a.doc.cm;if(!c)return 0;if(!ae(document.body,a.node)){var g="position: relative;";a.coverGutter&&(g+="margin-left: -"+c.display.gutters.offsetWidth+"px;"),a.noHScroll&&(g+="width: "+c.display.wrapper.clientWidth+"px;"),Kt(c.display.measure,Qt("div",[a.node],null,g))}return a.height=a.node.parentNode.offsetHeight}function Ln(a,c){for(var g=Si(c);g!=a.wrapper;g=g.parentNode)if(!g||g.nodeType==1&&g.getAttribute("cm-ignore-events")=="true"||g.parentNode==a.sizer&&g!=a.mover)return!0}function Jo(a){return a.lineSpace.offsetTop}function za(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function Aa(a){if(a.cachedPaddingH)return a.cachedPaddingH;var c=Kt(a.measure,Qt("pre","x","CodeMirror-line-like")),g=window.getComputedStyle?window.getComputedStyle(c):c.currentStyle,m={left:parseInt(g.paddingLeft),right:parseInt(g.paddingRight)};return!isNaN(m.left)&&!isNaN(m.right)&&(a.cachedPaddingH=m),m}function ka(a){return Te-a.display.nativeBarWidth}function _a(a){return a.display.scroller.clientWidth-ka(a)-a.display.barWidth}function Fu(a){return a.display.scroller.clientHeight-ka(a)-a.display.barHeight}function Ha(a,c,g){var m=a.options.lineWrapping,b=m&&_a(a);if(!c.measure.heights||m&&c.measure.width!=b){var F=c.measure.heights=[];if(m){c.measure.width=b;for(var X=c.text.firstChild.getClientRects(),lt=0;lt<X.length-1;lt++){var st=X[lt],Pt=X[lt+1];Math.abs(st.bottom-Pt.bottom)>2&&F.push((st.bottom+Pt.top)/2-g.top)}}F.push(g.bottom-g.top)}}function Vl(a,c,g){if(a.line==c)return{map:a.measure.map,cache:a.measure.cache};for(var m=0;m<a.rest.length;m++)if(a.rest[m]==c)return{map:a.measure.maps[m],cache:a.measure.caches[m]};for(var b=0;b<a.rest.length;b++)if(ne(a.rest[b])>g)return{map:a.measure.maps[b],cache:a.measure.caches[b],before:!0}}function vr(a,c){c=se(c);var g=ne(c),m=a.display.externalMeasured=new Ko(a.doc,c,g);m.lineN=g;var b=m.built=ke(a,m);return m.text=b.pre,Kt(a.display.lineMeasure,b.pre),m}function ll(a,c,g,m){return Qs(a,Es(a,c),g,m)}function Kl(a,c){if(c>=a.display.viewFrom&&c<a.display.viewTo)return a.display.view[Ma(a,c)];var g=a.display.externalMeasured;if(g&&c>=g.lineN&&c<g.lineN+g.size)return g}function Es(a,c){var g=ne(c),m=Kl(a,g);m&&!m.text?m=null:m&&m.changes&&(Zo(a,m,g,Sc(a)),a.curOp.forceUpdate=!0),m||(m=vr(a,c));var b=Vl(m,c,g);return{line:c,view:m,rect:null,map:b.map,cache:b.cache,before:b.before,hasHeights:!1}}function Qs(a,c,g,m,b){c.before&&(g=-1);var F=g+(m||""),X;return c.cache.hasOwnProperty(F)?X=c.cache[F]:(c.rect||(c.rect=c.view.text.getBoundingClientRect()),c.hasHeights||(Ha(a,c.view,c.rect),c.hasHeights=!0),X=_r(a,c,g,m),X.bogus||(c.cache[F]=X)),{left:X.left,right:X.right,top:b?X.rtop:X.top,bottom:b?X.rbottom:X.bottom}}var ru={left:0,right:0,top:0,bottom:0};function ou(a,c,g){for(var m,b,F,X,lt,st,Pt=0;Pt<a.length;Pt+=3)if(lt=a[Pt],st=a[Pt+1],c<lt?(b=0,F=1,X="left"):c<st?(b=c-lt,F=b+1):(Pt==a.length-3||c==st&&a[Pt+3]>c)&&(F=st-lt,b=F-1,c>=st&&(X="right")),b!=null){if(m=a[Pt+2],lt==st&&g==(m.insertLeft?"left":"right")&&(X=g),g=="left"&&b==0)for(;Pt&&a[Pt-2]==a[Pt-3]&&a[Pt-1].insertLeft;)m=a[(Pt-=3)+2],X="left";if(g=="right"&&b==st-lt)for(;Pt<a.length-3&&a[Pt+3]==a[Pt+4]&&!a[Pt+5].insertLeft;)m=a[(Pt+=3)+2],X="right";break}return{node:m,start:b,end:F,collapse:X,coverStart:lt,coverEnd:st}}function su(a,c){var g=ru;if(c=="left")for(var m=0;m<a.length&&(g=a[m]).left==g.right;m++);else for(var b=a.length-1;b>=0&&(g=a[b]).left==g.right;b--);return g}function _r(a,c,g,m){var b=ou(c.map,g,m),F=b.node,X=b.start,lt=b.end,st=b.collapse,Pt;if(F.nodeType==3){for(var Ee=0;Ee<4;Ee++){for(;X&&fe(c.line.text.charAt(b.coverStart+X));)--X;for(;b.coverStart+lt<b.coverEnd&&fe(c.line.text.charAt(b.coverStart+lt));)++lt;if(_&&K<9&&X==0&<==b.coverEnd-b.coverStart?Pt=F.parentNode.getBoundingClientRect():Pt=su(yt(F,X,lt).getClientRects(),m),Pt.left||Pt.right||X==0)break;lt=X,X=X-1,st="right"}_&&K<11&&(Pt=Wr(a.display.measure,Pt))}else{X>0&&(st=m="right");var Wt;a.options.lineWrapping&&(Wt=F.getClientRects()).length>1?Pt=Wt[m=="right"?Wt.length-1:0]:Pt=F.getBoundingClientRect()}if(_&&K<9&&!X&&(!Pt||!Pt.left&&!Pt.right)){var rn=F.parentNode.getClientRects()[0];rn?Pt={left:rn.left,right:rn.left+lu(a.display),top:rn.top,bottom:rn.bottom}:Pt=ru}for(var Xe=Pt.top-c.rect.top,Kn=Pt.bottom-c.rect.top,ei=(Xe+Kn)/2,yi=c.view.measure.heights,Zi=0;Zi<yi.length-1&&!(ei<yi[Zi]);Zi++);var Cr=Zi?yi[Zi-1]:0,ar=yi[Zi],Dr={left:(st=="right"?Pt.right:Pt.left)-c.rect.left,right:(st=="left"?Pt.left:Pt.right)-c.rect.left,top:Cr,bottom:ar};return!Pt.left&&!Pt.right&&(Dr.bogus=!0),a.options.singleCursorHeightPerLine||(Dr.rtop=Xe,Dr.rbottom=Kn),Dr}function Wr(a,c){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Gr(a))return c;var g=screen.logicalXDPI/screen.deviceXDPI,m=screen.logicalYDPI/screen.deviceYDPI;return{left:c.left*g,right:c.right*g,top:c.top*m,bottom:c.bottom*m}}function sa(a){if(a.measure&&(a.measure.cache={},a.measure.heights=null,a.rest))for(var c=0;c<a.rest.length;c++)a.measure.caches[c]={}}function Os(a){a.display.externalMeasure=null,Lt(a.display.lineMeasure);for(var c=0;c<a.display.view.length;c++)sa(a.display.view[c])}function As(a){Os(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function os(){return rt&&vt?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function cs(){return rt&&vt?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function qr(a){var c=0;if(a.widgets)for(var g=0;g<a.widgets.length;++g)a.widgets[g].above&&(c+=Ba(a.widgets[g]));return c}function is(a,c,g,m,b){if(!b){var F=qr(c);g.top+=F,g.bottom+=F}if(m=="line")return g;m||(m="local");var X=Is(c);if(m=="local"?X+=Jo(a.display):X-=a.display.viewOffset,m=="page"||m=="window"){var lt=a.display.lineSpace.getBoundingClientRect();X+=lt.top+(m=="window"?0:cs());var st=lt.left+(m=="window"?0:os());g.left+=st,g.right+=st}return g.top+=X,g.bottom+=X,g}function Pl(a,c,g){if(g=="div")return c;var m=c.left,b=c.top;if(g=="page")m-=os(),b-=cs();else if(g=="local"||!g){var F=a.display.sizer.getBoundingClientRect();m+=F.left,b+=F.top}var X=a.display.lineSpace.getBoundingClientRect();return{left:m-X.left,top:b-X.top}}function tl(a,c,g,m,b){return m||(m=qe(a.doc,c.line)),is(a,m,ll(a,m,c.ch,b),g)}function Lo(a,c,g,m,b,F){m=m||qe(a.doc,c.line),b||(b=Es(a,m));function X(Kn,ei){var yi=Qs(a,b,Kn,ei?"right":"left",F);return ei?yi.left=yi.right:yi.right=yi.left,is(a,m,yi,g)}var lt=Ge(m,a.doc.direction),st=c.ch,Pt=c.sticky;if(st>=m.text.length?(st=m.text.length,Pt="before"):st<=0&&(st=0,Pt="after"),!lt)return X(Pt=="before"?st-1:st,Pt=="before");function Ee(Kn,ei,yi){var Zi=lt[ei],Cr=Zi.level==1;return X(yi?Kn-1:Kn,Cr!=yi)}var Wt=_t(lt,st,Pt),rn=qt,Xe=Ee(st,Wt,Pt=="before");return rn!=null&&(Xe.other=Ee(st,rn,Pt!="before")),Xe}function Ga(a,c){var g=0;c=Je(a.doc,c),a.options.lineWrapping||(g=lu(a.display)*c.ch);var m=qe(a.doc,c.line),b=Is(m)+Jo(a.display);return{left:g,right:g,top:b,bottom:b+m.height}}function Rc(a,c,g,m,b){var F=Me(a,c,g);return F.xRel=b,m&&(F.outside=m),F}function Ii(a,c,g){var m=a.doc;if(g+=a.display.viewOffset,g<0)return Rc(m.first,0,null,-1,-1);var b=dn(m,g),F=m.first+m.size-1;if(b>F)return Rc(m.first+m.size-1,qe(m,F).text.length,null,1,1);c<0&&(c=0);for(var X=qe(m,b);;){var lt=mn(a,X,b,c,g),st=$i(X,lt.ch+(lt.xRel>0||lt.outside>0?1:0));if(!st)return lt;var Pt=st.find(1);if(Pt.line==b)return Pt;X=qe(m,b=Pt.line)}}function Ti(a,c,g,m){m-=qr(c);var b=c.text.length,F=xt(function(X){return Qs(a,g,X-1).bottom<=m},b,0);return b=xt(function(X){return Qs(a,g,X).top>m},F,b),{begin:F,end:b}}function Zu(a,c,g,m){g||(g=Es(a,c));var b=is(a,c,Qs(a,g,m),"line").top;return Ti(a,c,g,b)}function Vt(a,c,g,m){return a.bottom<=g?!1:a.top>g?!0:(m?a.left:a.right)>c}function mn(a,c,g,m,b){b-=Is(c);var F=Es(a,c),X=qr(c),lt=0,st=c.text.length,Pt=!0,Ee=Ge(c,a.doc.direction);if(Ee){var Wt=(a.options.lineWrapping?au:$a)(a,c,g,F,Ee,m,b);Pt=Wt.level!=1,lt=Pt?Wt.from:Wt.to-1,st=Pt?Wt.to:Wt.from-1}var rn=null,Xe=null,Kn=xt(function(fo){var or=Qs(a,F,fo);return or.top+=X,or.bottom+=X,Vt(or,m,b,!1)?(or.top<=b&&or.left<=m&&(rn=fo,Xe=or),!0):!1},lt,st),ei,yi,Zi=!1;if(Xe){var Cr=m-Xe.left<Xe.right-m,ar=Cr==Pt;Kn=rn+(ar?0:1),yi=ar?"after":"before",ei=Cr?Xe.left:Xe.right}else{!Pt&&(Kn==st||Kn==lt)&&Kn++,yi=Kn==0?"after":Kn==c.text.length?"before":Qs(a,F,Kn-(Pt?1:0)).bottom+X<=b==Pt?"after":"before";var Dr=Lo(a,Me(g,Kn,yi),"line",c,F);ei=Dr.left,Zi=b<Dr.top?-1:b>=Dr.bottom?1:0}return Kn=Ct(c.text,Kn,1),Rc(g,Kn,yi,Zi,m-ei)}function $a(a,c,g,m,b,F,X){var lt=xt(function(Wt){var rn=b[Wt],Xe=rn.level!=1;return Vt(Lo(a,Me(g,Xe?rn.to:rn.from,Xe?"before":"after"),"line",c,m),F,X,!0)},0,b.length-1),st=b[lt];if(lt>0){var Pt=st.level!=1,Ee=Lo(a,Me(g,Pt?st.from:st.to,Pt?"after":"before"),"line",c,m);Vt(Ee,F,X,!0)&&Ee.top>X&&(st=b[lt-1])}return st}function au(a,c,g,m,b,F,X){var lt=Ti(a,c,m,X),st=lt.begin,Pt=lt.end;/\s/.test(c.text.charAt(Pt-1))&&Pt--;for(var Ee=null,Wt=null,rn=0;rn<b.length;rn++){var Xe=b[rn];if(!(Xe.from>=Pt||Xe.to<=st)){var Kn=Xe.level!=1,ei=Qs(a,m,Kn?Math.min(Pt,Xe.to)-1:Math.max(st,Xe.from)).right,yi=ei<F?F-ei+1e9:ei-F;(!Ee||Wt>yi)&&(Ee=Xe,Wt=yi)}}return Ee||(Ee=b[b.length-1]),Ee.from<st&&(Ee={from:st,to:Ee.to,level:Ee.level}),Ee.to>Pt&&(Ee={from:Ee.from,to:Pt,level:Ee.level}),Ee}var ss;function Fl(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(ss==null){ss=Qt("pre",null,"CodeMirror-line-like");for(var c=0;c<49;++c)ss.appendChild(document.createTextNode("x")),ss.appendChild(Qt("br"));ss.appendChild(document.createTextNode("x"))}Kt(a.measure,ss);var g=ss.offsetHeight/50;return g>3&&(a.cachedTextHeight=g),Lt(a.measure),g||1}function lu(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var c=Qt("span","xxxxxxxxxx"),g=Qt("pre",[c],"CodeMirror-line-like");Kt(a.measure,g);var m=c.getBoundingClientRect(),b=(m.right-m.left)/10;return b>2&&(a.cachedCharWidth=b),b||10}function Sc(a){for(var c=a.display,g={},m={},b=c.gutters.clientLeft,F=c.gutters.firstChild,X=0;F;F=F.nextSibling,++X){var lt=a.display.gutterSpecs[X].className;g[lt]=F.offsetLeft+F.clientLeft+b,m[lt]=F.clientWidth}return{fixedPos:sc(c),gutterTotalWidth:c.gutters.offsetWidth,gutterLeft:g,gutterWidth:m,wrapperWidth:c.wrapper.clientWidth}}function sc(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function Ls(a){var c=Fl(a.display),g=a.options.lineWrapping,m=g&&Math.max(5,a.display.scroller.clientWidth/lu(a.display)-3);return function(b){if(ni(a.doc,b))return 0;var F=0;if(b.widgets)for(var X=0;X<b.widgets.length;X++)b.widgets[X].height&&(F+=b.widgets[X].height);return g?F+(Math.ceil(b.text.length/m)||1)*c:F+c}}function Lr(a){var c=a.doc,g=Ls(a);c.iter(function(m){var b=g(m);b!=m.height&&kn(m,b)})}function ja(a,c,g,m){var b=a.display;if(!g&&Si(c).getAttribute("cm-not-content")=="true")return null;var F,X,lt=b.lineSpace.getBoundingClientRect();try{F=c.clientX-lt.left,X=c.clientY-lt.top}catch(Wt){return null}var st=Ii(a,F,X),Pt;if(m&&st.xRel>0&&(Pt=qe(a.doc,st.line).text).length==st.ch){var Ee=zt(Pt,Pt.length,a.options.tabSize)-Pt.length;st=Me(st.line,Math.max(0,Math.round((F-Aa(a.display).left)/lu(a.display))-Ee))}return st}function Ma(a,c){if(c>=a.display.viewTo||(c-=a.display.viewFrom,c<0))return null;for(var g=a.display.view,m=0;m<g.length;m++)if(c-=g[m].size,c<0)return m}function xs(a,c,g,m){c==null&&(c=a.doc.first),g==null&&(g=a.doc.first+a.doc.size),m||(m=0);var b=a.display;if(m&&g<b.viewTo&&(b.updateLineNumbers==null||b.updateLineNumbers>c)&&(b.updateLineNumbers=c),a.curOp.viewChanged=!0,c>=b.viewTo)Re&&Wo(a.doc,c)<b.viewTo&&ia(a);else if(g<=b.viewFrom)Re&&ls(a.doc,g+m)>b.viewFrom?ia(a):(b.viewFrom+=m,b.viewTo+=m);else if(c<=b.viewFrom&&g>=b.viewTo)ia(a);else if(c<=b.viewFrom){var F=aa(a,g,g+m,1);F?(b.view=b.view.slice(F.index),b.viewFrom=F.lineN,b.viewTo+=m):ia(a)}else if(g>=b.viewTo){var X=aa(a,c,c,-1);X?(b.view=b.view.slice(0,X.index),b.viewTo=X.lineN):ia(a)}else{var lt=aa(a,c,c,-1),st=aa(a,g,g+m,1);lt&&st?(b.view=b.view.slice(0,lt.index).concat(Ur(a,lt.lineN,st.lineN)).concat(b.view.slice(st.index)),b.viewTo+=m):ia(a)}var Pt=b.externalMeasured;Pt&&(g<Pt.lineN?Pt.lineN+=m:c<Pt.lineN+Pt.size&&(b.externalMeasured=null))}function xo(a,c,g){a.curOp.viewChanged=!0;var m=a.display,b=a.display.externalMeasured;if(b&&c>=b.lineN&&c<b.lineN+b.size&&(m.externalMeasured=null),!(c<m.viewFrom||c>=m.viewTo)){var F=m.view[Ma(a,c)];if(F.node!=null){var X=F.changes||(F.changes=[]);it(X,g)==-1&&X.push(g)}}}function ia(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function aa(a,c,g,m){var b=Ma(a,c),F,X=a.display.view;if(!Re||g==a.doc.first+a.doc.size)return{index:b,lineN:g};for(var lt=a.display.viewFrom,st=0;st<b;st++)lt+=X[st].size;if(lt!=c){if(m>0){if(b==X.length-1)return null;F=lt+X[b].size-c,b++}else F=lt-c;c+=F,g+=F}for(;Wo(a.doc,g)!=g;){if(b==(m<0?0:X.length-1))return null;g+=m*X[b-(m<0?1:0)].size,b+=m}return{index:b,lineN:g}}function Tr(a,c,g){var m=a.display,b=m.view;b.length==0||c>=m.viewTo||g<=m.viewFrom?(m.view=Ur(a,c,g),m.viewFrom=c):(m.viewFrom>c?m.view=Ur(a,c,m.viewFrom).concat(m.view):m.viewFrom<c&&(m.view=m.view.slice(Ma(a,c))),m.viewFrom=c,m.viewTo<g?m.view=m.view.concat(Ur(a,m.viewTo,g)):m.viewTo>g&&(m.view=m.view.slice(0,Ma(a,g)))),m.viewTo=g}function Wa(a){for(var c=a.display.view,g=0,m=0;m<c.length;m++){var b=c[m];!b.hidden&&(!b.node||b.changes)&&++g}return g}function ra(a){a.display.input.showSelection(a.display.input.prepareSelection())}function wu(a,c){c===void 0&&(c=!0);for(var g=a.doc,m={},b=m.cursors=document.createDocumentFragment(),F=m.selection=document.createDocumentFragment(),X=0;X<g.sel.ranges.length;X++)if(!(!c&&X==g.sel.primIndex)){var lt=g.sel.ranges[X];if(!(lt.from().line>=a.display.viewTo||lt.to().line<a.display.viewFrom)){var st=lt.empty();(st||a.options.showCursorWhenSelecting)&&_o(a,lt.head,b),st||Ro(a,lt,F)}}return m}function _o(a,c,g){var m=Lo(a,c,"div",null,null,!a.options.singleCursorHeightPerLine),b=g.appendChild(Qt("div","\xA0","CodeMirror-cursor"));if(b.style.left=m.left+"px",b.style.top=m.top+"px",b.style.height=Math.max(0,m.bottom-m.top)*a.options.cursorHeight+"px",m.other){var F=g.appendChild(Qt("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));F.style.display="",F.style.left=m.other.left+"px",F.style.top=m.other.top+"px",F.style.height=(m.other.bottom-m.other.top)*.85+"px"}}function Oa(a,c){return a.top-c.top||a.left-c.left}function Ro(a,c,g){var m=a.display,b=a.doc,F=document.createDocumentFragment(),X=Aa(a.display),lt=X.left,st=Math.max(m.sizerWidth,_a(a)-m.sizer.offsetLeft)-X.right,Pt=b.direction=="ltr";function Ee(ar,Dr,fo,or){Dr<0&&(Dr=0),Dr=Math.round(Dr),or=Math.round(or),F.appendChild(Qt("div",null,"CodeMirror-selected","position: absolute; left: "+ar+`px;
|
|
|
top: `+Dr+"px; width: "+(fo==null?st-ar:fo)+`px;
|
|
|
height: `+(or-Dr)+"px"))}function Wt(ar,Dr,fo){var or=qe(b,ar),Vo=or.text.length,ua,nl;function ya(Ya,Nu){return tl(a,Me(ar,Ya),"div",or,Nu)}function mu(Ya,Nu,Il){var Xa=Zu(a,or,null,Ya),Ss=Nu=="ltr"==(Il=="after")?"left":"right",Ca=Il=="after"?Xa.begin:Xa.end-(/\s/.test(or.text.charAt(Xa.end-1))?2:1);return ya(Ca,Ss)[Ss]}var jl=Ge(or,b.direction);return Dt(jl,Dr||0,fo==null?Vo:fo,function(Ya,Nu,Il,Xa){var Ss=Il=="ltr",Ca=ya(Ya,Ss?"left":"right"),dl=ya(Nu-1,Ss?"right":"left"),Al=Dr==null&&Ya==0,hc=fo==null&&Nu==Vo,xa=Xa==0,Ju=!jl||Xa==jl.length-1;if(dl.top-Ca.top<=3){var Ia=(Pt?Al:hc)&&xa,Zd=(Pt?hc:Al)&&Ju,ju=Ia?lt:(Ss?Ca:dl).left,Iu=Zd?st:(Ss?dl:Ca).right;Ee(ju,Ca.top,Iu-ju,Ca.bottom)}else{var gu,Zs,pl,Pc;Ss?(gu=Pt&&Al&&xa?lt:Ca.left,Zs=Pt?st:mu(Ya,Il,"before"),pl=Pt?lt:mu(Nu,Il,"after"),Pc=Pt&&hc&&Ju?st:dl.right):(gu=Pt?mu(Ya,Il,"before"):lt,Zs=!Pt&&Al&&xa?st:Ca.right,pl=!Pt&&hc&&Ju?lt:dl.left,Pc=Pt?mu(Nu,Il,"after"):st),Ee(gu,Ca.top,Zs-gu,Ca.bottom),Ca.bottom<dl.top&&Ee(lt,Ca.bottom,null,dl.top),Ee(pl,dl.top,Pc-pl,dl.bottom)}(!ua||Oa(Ca,ua)<0)&&(ua=Ca),Oa(dl,ua)<0&&(ua=dl),(!nl||Oa(Ca,nl)<0)&&(nl=Ca),Oa(dl,nl)<0&&(nl=dl)}),{start:ua,end:nl}}var rn=c.from(),Xe=c.to();if(rn.line==Xe.line)Wt(rn.line,rn.ch,Xe.ch);else{var Kn=qe(b,rn.line),ei=qe(b,Xe.line),yi=se(Kn)==se(ei),Zi=Wt(rn.line,rn.ch,yi?Kn.text.length+1:null).end,Cr=Wt(Xe.line,yi?0:null,Xe.ch).start;yi&&(Zi.top<Cr.top-2?(Ee(Zi.right,Zi.top,null,Zi.bottom),Ee(lt,Cr.top,Cr.left,Cr.bottom)):Ee(Zi.right,Zi.top,Cr.left-Zi.right,Zi.bottom)),Zi.bottom<Cr.top&&Ee(lt,Zi.bottom,null,Cr.top)}g.appendChild(F)}function hs(a){if(a.state.focused){var c=a.display;clearInterval(c.blinker);var g=!0;c.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?c.blinker=setInterval(function(){a.hasFocus()||Yu(a),c.cursorDiv.style.visibility=(g=!g)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(c.cursorDiv.style.visibility="hidden")}}function Ts(a){a.state.focused||(a.display.input.focus(),Ho(a))}function Rs(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Yu(a))},100)}function Ho(a,c){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(Bt(a,"focus",a,c),a.state.focused=!0,Pe(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),I&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),hs(a))}function Yu(a,c){a.state.delayingBlurEvent||(a.state.focused&&(Bt(a,"blur",a,c),a.state.focused=!1,Rt(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function Nr(a){for(var c=a.display,g=c.lineDiv.offsetTop,m=0;m<c.view.length;m++){var b=c.view[m],F=a.options.lineWrapping,X=void 0,lt=0;if(!b.hidden){if(_&&K<8){var st=b.node.offsetTop+b.node.offsetHeight;X=st-g,g=st}else{var Pt=b.node.getBoundingClientRect();X=Pt.bottom-Pt.top,!F&&b.text.firstChild&&(lt=b.text.firstChild.getBoundingClientRect().right-Pt.left-1)}var Ee=b.line.height-X;if((Ee>.005||Ee<-.005)&&(kn(b.line,X),Dc(b.line),b.rest))for(var Wt=0;Wt<b.rest.length;Wt++)Dc(b.rest[Wt]);if(lt>a.display.sizerWidth){var rn=Math.ceil(lt/lu(a.display));rn>a.display.maxLineLength&&(a.display.maxLineLength=rn,a.display.maxLine=b.line,a.display.maxLineChanged=!0)}}}}function Dc(a){if(a.widgets)for(var c=0;c<a.widgets.length;++c){var g=a.widgets[c],m=g.node.parentNode;m&&(g.height=m.offsetHeight)}}function Bo(a,c,g){var m=g&&g.top!=null?Math.max(0,g.top):a.scroller.scrollTop;m=Math.floor(m-Jo(a));var b=g&&g.bottom!=null?g.bottom:m+a.wrapper.clientHeight,F=dn(c,m),X=dn(c,b);if(g&&g.ensure){var lt=g.ensure.from.line,st=g.ensure.to.line;lt<F?(F=lt,X=dn(c,Is(qe(c,lt))+a.wrapper.clientHeight)):Math.min(st,c.lastLine())>=X&&(F=dn(c,Is(qe(c,st))-a.wrapper.clientHeight),X=st)}return{from:F,to:Math.max(X,F+1)}}function vh(a,c){if(!xe(a,"scrollCursorIntoView")){var g=a.display,m=g.sizer.getBoundingClientRect(),b=null;if(c.top+m.top<0?b=!0:c.bottom+m.top>(window.innerHeight||document.documentElement.clientHeight)&&(b=!1),b!=null&&!Yt){var F=Qt("div","\u200B",null,`position: absolute;
|
|
|
top: `+(c.top-g.viewOffset-Jo(a.display))+`px;
|
|
|
height: `+(c.bottom-c.top+ka(a)+g.barHeight)+`px;
|
|
|
left: `+c.left+"px; width: "+Math.max(2,c.right-c.left)+"px;");a.display.lineSpace.appendChild(F),F.scrollIntoView(b),a.display.lineSpace.removeChild(F)}}}function ac(a,c,g,m){m==null&&(m=0);var b;!a.options.lineWrapping&&c==g&&(c=c.ch?Me(c.line,c.sticky=="before"?c.ch-1:c.ch,"after"):c,g=c.sticky=="before"?Me(c.line,c.ch+1,"before"):c);for(var F=0;F<5;F++){var X=!1,lt=Lo(a,c),st=!g||g==c?lt:Lo(a,g);b={left:Math.min(lt.left,st.left),top:Math.min(lt.top,st.top)-m,right:Math.max(lt.left,st.left),bottom:Math.max(lt.bottom,st.bottom)+m};var Pt=Yc(a,b),Ee=a.doc.scrollTop,Wt=a.doc.scrollLeft;if(Pt.scrollTop!=null&&(Bu(a,Pt.scrollTop),Math.abs(a.doc.scrollTop-Ee)>1&&(X=!0)),Pt.scrollLeft!=null&&(uu(a,Pt.scrollLeft),Math.abs(a.doc.scrollLeft-Wt)>1&&(X=!0)),!X)break}return b}function lc(a,c){var g=Yc(a,c);g.scrollTop!=null&&Bu(a,g.scrollTop),g.scrollLeft!=null&&uu(a,g.scrollLeft)}function Yc(a,c){var g=a.display,m=Fl(a.display);c.top<0&&(c.top=0);var b=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:g.scroller.scrollTop,F=Fu(a),X={};c.bottom-c.top>F&&(c.bottom=c.top+F);var lt=a.doc.height+za(g),st=c.top<m,Pt=c.bottom>lt-m;if(c.top<b)X.scrollTop=st?0:c.top;else if(c.bottom>b+F){var Ee=Math.min(c.top,(Pt?lt:c.bottom)-F);Ee!=b&&(X.scrollTop=Ee)}var Wt=a.options.fixedGutter?0:g.gutters.offsetWidth,rn=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:g.scroller.scrollLeft-Wt,Xe=_a(a)-g.gutters.offsetWidth,Kn=c.right-c.left>Xe;return Kn&&(c.right=c.left+Xe),c.left<10?X.scrollLeft=0:c.left<rn?X.scrollLeft=Math.max(0,c.left+Wt-(Kn?0:10)):c.right>Xe+rn-3&&(X.scrollLeft=c.right+(Kn?0:10)-Xe),X}function uc(a,c){c!=null&&(ul(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+c)}function Bl(a){ul(a);var c=a.getCursor();a.curOp.scrollToPos={from:c,to:c,margin:a.options.cursorScrollMargin}}function Cu(a,c,g){(c!=null||g!=null)&&ul(a),c!=null&&(a.curOp.scrollLeft=c),g!=null&&(a.curOp.scrollTop=g)}function Yo(a,c){ul(a),a.curOp.scrollToPos=c}function ul(a){var c=a.curOp.scrollToPos;if(c){a.curOp.scrollToPos=null;var g=Ga(a,c.from),m=Ga(a,c.to);wc(a,g,m,c.margin)}}function wc(a,c,g,m){var b=Yc(a,{left:Math.min(c.left,g.left),top:Math.min(c.top,g.top)-m,right:Math.max(c.right,g.right),bottom:Math.max(c.bottom,g.bottom)+m});Cu(a,b.scrollLeft,b.scrollTop)}function Bu(a,c){Math.abs(a.doc.scrollTop-c)<2||(y||ki(a,{top:c}),yh(a,c,!0),y&&ki(a),wn(a,100))}function yh(a,c,g){c=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,c)),!(a.display.scroller.scrollTop==c&&!g)&&(a.doc.scrollTop=c,a.display.scrollbars.setScrollTop(c),a.display.scroller.scrollTop!=c&&(a.display.scroller.scrollTop=c))}function uu(a,c,g,m){c=Math.max(0,Math.min(c,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((g?c==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-c)<2)&&!m)&&(a.doc.scrollLeft=c,cr(a),a.display.scroller.scrollLeft!=c&&(a.display.scroller.scrollLeft=c),a.display.scrollbars.setScrollLeft(c))}function cl(a){var c=a.display,g=c.gutters.offsetWidth,m=Math.round(a.doc.height+za(a.display));return{clientHeight:c.scroller.clientHeight,viewHeight:c.wrapper.clientHeight,scrollWidth:c.scroller.scrollWidth,clientWidth:c.scroller.clientWidth,viewWidth:c.wrapper.clientWidth,barLeft:a.options.fixedGutter?g:0,docHeight:m,scrollHeight:m+ka(a)+c.barHeight,nativeBarWidth:c.nativeBarWidth,gutterWidth:g}}var Zl=function(a,c,g){this.cm=g;var m=this.vert=Qt("div",[Qt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),b=this.horiz=Qt("div",[Qt("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");m.tabIndex=b.tabIndex=-1,a(m),a(b),Ce(m,"scroll",function(){m.clientHeight&&c(m.scrollTop,"vertical")}),Ce(b,"scroll",function(){b.clientWidth&&c(b.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,_&&K<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Zl.prototype.update=function(a){var c=a.scrollWidth>a.clientWidth+1,g=a.scrollHeight>a.clientHeight+1,m=a.nativeBarWidth;if(g){this.vert.style.display="block",this.vert.style.bottom=c?m+"px":"0";var b=a.viewHeight-(c?m:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+b)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(c){this.horiz.style.display="block",this.horiz.style.right=g?m+"px":"0",this.horiz.style.left=a.barLeft+"px";var F=a.viewWidth-a.barLeft-(g?m:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+F)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(m==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:g?m:0,bottom:c?m:0}},Zl.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Zl.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Zl.prototype.zeroWidthHack=function(){var a=Mt&&!Y?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new nt,this.disableVert=new nt},Zl.prototype.enableZeroWidthBar=function(a,c,g){a.style.pointerEvents="auto";function m(){var b=a.getBoundingClientRect(),F=g=="vert"?document.elementFromPoint(b.right-1,(b.top+b.bottom)/2):document.elementFromPoint((b.right+b.left)/2,b.bottom-1);F!=a?a.style.pointerEvents="none":c.set(1e3,m)}c.set(1e3,m)},Zl.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var El=function(){};El.prototype.update=function(){return{bottom:0,right:0}},El.prototype.setScrollLeft=function(){},El.prototype.setScrollTop=function(){},El.prototype.clear=function(){};function Yl(a,c){c||(c=cl(a));var g=a.display.barWidth,m=a.display.barHeight;Eu(a,c);for(var b=0;b<4&&g!=a.display.barWidth||m!=a.display.barHeight;b++)g!=a.display.barWidth&&a.options.lineWrapping&&Nr(a),Eu(a,cl(a)),g=a.display.barWidth,m=a.display.barHeight}function Eu(a,c){var g=a.display,m=g.scrollbars.update(c);g.sizer.style.paddingRight=(g.barWidth=m.right)+"px",g.sizer.style.paddingBottom=(g.barHeight=m.bottom)+"px",g.heightForcer.style.borderBottom=m.bottom+"px solid transparent",m.right&&m.bottom?(g.scrollbarFiller.style.display="block",g.scrollbarFiller.style.height=m.bottom+"px",g.scrollbarFiller.style.width=m.right+"px"):g.scrollbarFiller.style.display="",m.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(g.gutterFiller.style.display="block",g.gutterFiller.style.height=m.bottom+"px",g.gutterFiller.style.width=c.gutterWidth+"px"):g.gutterFiller.style.display=""}var Cc={native:Zl,null:El};function Xc(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Rt(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Cc[a.options.scrollbarStyle](function(c){a.display.wrapper.insertBefore(c,a.display.scrollbarFiller),Ce(c,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),c.setAttribute("cm-not-content","true")},function(c,g){g=="horizontal"?uu(a,c):Bu(a,c)},a),a.display.scrollbars.addClass&&Pe(a.display.wrapper,a.display.scrollbars.addClass)}var Jc=0;function _s(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.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:++Jc},Pa(a.curOp)}function cu(a){var c=a.curOp;c&&io(c,function(g){for(var m=0;m<g.ops.length;m++)g.ops[m].cm.curOp=null;Qc(g)})}function Qc(a){for(var c=a.ops,g=0;g<c.length;g++)ht(c[g]);for(var m=0;m<c.length;m++)mt(c[m]);for(var b=0;b<c.length;b++)ee(c[b]);for(var F=0;F<c.length;F++)re(c[F]);for(var X=0;X<c.length;X++)Se(c[X])}function ht(a){var c=a.cm,g=c.display;ii(c),a.updateMaxLine&&Us(c),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<g.viewFrom||a.scrollToPos.to.line>=g.viewTo)||g.maxLineChanged&&c.options.lineWrapping,a.update=a.mustUpdate&&new Tn(c,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function mt(a){a.updatedDisplay=a.mustUpdate&&Fi(a.cm,a.update)}function ee(a){var c=a.cm,g=c.display;a.updatedDisplay&&Nr(c),a.barMeasure=cl(c),g.maxLineChanged&&!c.options.lineWrapping&&(a.adjustWidthTo=ll(c,g.maxLine,g.maxLine.text.length).left+3,c.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(g.scroller.clientWidth,g.sizer.offsetLeft+a.adjustWidthTo+ka(c)+c.display.barWidth),a.maxScrollLeft=Math.max(0,g.sizer.offsetLeft+a.adjustWidthTo-_a(c))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=g.input.prepareSelection())}function re(a){var c=a.cm;a.adjustWidthTo!=null&&(c.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<c.doc.scrollLeft&&uu(c,Math.min(c.display.scroller.scrollLeft,a.maxScrollLeft),!0),c.display.maxLineChanged=!1);var g=a.focus&&a.focus==Ht();a.preparedSelection&&c.display.input.showSelection(a.preparedSelection,g),(a.updatedDisplay||a.startHeight!=c.doc.height)&&Yl(c,a.barMeasure),a.updatedDisplay&&pr(c,a.barMeasure),a.selectionChanged&&hs(c),c.state.focused&&a.updateInput&&c.display.input.reset(a.typing),g&&Ts(a.cm)}function Se(a){var c=a.cm,g=c.display,m=c.doc;if(a.updatedDisplay&&Zn(c,a.update),g.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(g.wheelStartX=g.wheelStartY=null),a.scrollTop!=null&&yh(c,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&uu(c,a.scrollLeft,!0,!0),a.scrollToPos){var b=ac(c,Je(m,a.scrollToPos.from),Je(m,a.scrollToPos.to),a.scrollToPos.margin);vh(c,b)}var F=a.maybeHiddenMarkers,X=a.maybeUnhiddenMarkers;if(F)for(var lt=0;lt<F.length;++lt)F[lt].lines.length||Bt(F[lt],"hide");if(X)for(var st=0;st<X.length;++st)X[st].lines.length&&Bt(X[st],"unhide");g.wrapper.offsetHeight&&(m.scrollTop=c.display.scroller.scrollTop),a.changeObjs&&Bt(c,"changes",c,a.changeObjs),a.update&&a.update.finish()}function me(a,c){if(a.curOp)return c();_s(a);try{return c()}finally{cu(a)}}function Ye(a,c){return function(){if(a.curOp)return c.apply(a,arguments);_s(a);try{return c.apply(a,arguments)}finally{cu(a)}}}function Ze(a){return function(){if(this.curOp)return a.apply(this,arguments);_s(this);try{return a.apply(this,arguments)}finally{cu(this)}}}function _e(a){return function(){var c=this.cm;if(!c||c.curOp)return a.apply(this,arguments);_s(c);try{return a.apply(this,arguments)}finally{cu(c)}}}function wn(a,c){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(c,pe(An,a))}function An(a){var c=a.doc;if(!(c.highlightFrontier>=a.display.viewTo)){var g=+new Date+a.options.workTime,m=Mi(a,c.highlightFrontier),b=[];c.iter(m.line,Math.min(c.first+c.size,a.display.viewTo+500),function(F){if(m.line>=a.display.viewFrom){var X=F.styles,lt=F.text.length>a.options.maxHighlightLength?Nn(c.mode,m.state):null,st=xi(a,F,m,!0);lt&&(m.state=lt),F.styles=st.styles;var Pt=F.styleClasses,Ee=st.classes;Ee?F.styleClasses=Ee:Pt&&(F.styleClasses=null);for(var Wt=!X||X.length!=F.styles.length||Pt!=Ee&&(!Pt||!Ee||Pt.bgClass!=Ee.bgClass||Pt.textClass!=Ee.textClass),rn=0;!Wt&&rn<X.length;++rn)Wt=X[rn]!=F.styles[rn];Wt&&b.push(m.line),F.stateAfter=m.save(),m.nextLine()}else F.text.length<=a.options.maxHighlightLength&&le(a,F.text,m),F.stateAfter=m.line%5==0?m.save():null,m.nextLine();if(+new Date>g)return wn(a,a.options.workDelay),!0}),c.highlightFrontier=m.line,c.modeFrontier=Math.max(c.modeFrontier,m.line),b.length&&me(a,function(){for(var F=0;F<b.length;F++)xo(a,b[F],"text")})}}var Tn=function(a,c,g){var m=a.display;this.viewport=c,this.visible=Bo(m,a.doc,c),this.editorIsHidden=!m.wrapper.offsetWidth,this.wrapperHeight=m.wrapper.clientHeight,this.wrapperWidth=m.wrapper.clientWidth,this.oldDisplayWidth=_a(a),this.force=g,this.dims=Sc(a),this.events=[]};Tn.prototype.signal=function(a,c){Ne(a,c)&&this.events.push(arguments)},Tn.prototype.finish=function(){for(var a=0;a<this.events.length;a++)Bt.apply(null,this.events[a])};function ii(a){var c=a.display;!c.scrollbarsClipped&&c.scroller.offsetWidth&&(c.nativeBarWidth=c.scroller.offsetWidth-c.scroller.clientWidth,c.heightForcer.style.height=ka(a)+"px",c.sizer.style.marginBottom=-c.nativeBarWidth+"px",c.sizer.style.borderRightWidth=ka(a)+"px",c.scrollbarsClipped=!0)}function Vn(a){if(a.hasFocus())return null;var c=Ht();if(!c||!ae(a.display.lineDiv,c))return null;var g={activeElt:c};if(window.getSelection){var m=window.getSelection();m.anchorNode&&m.extend&&ae(a.display.lineDiv,m.anchorNode)&&(g.anchorNode=m.anchorNode,g.anchorOffset=m.anchorOffset,g.focusNode=m.focusNode,g.focusOffset=m.focusOffset)}return g}function Hn(a){if(!(!a||!a.activeElt||a.activeElt==Ht())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&ae(document.body,a.anchorNode)&&ae(document.body,a.focusNode))){var c=window.getSelection(),g=document.createRange();g.setEnd(a.anchorNode,a.anchorOffset),g.collapse(!1),c.removeAllRanges(),c.addRange(g),c.extend(a.focusNode,a.focusOffset)}}function Fi(a,c){var g=a.display,m=a.doc;if(c.editorIsHidden)return ia(a),!1;if(!c.force&&c.visible.from>=g.viewFrom&&c.visible.to<=g.viewTo&&(g.updateLineNumbers==null||g.updateLineNumbers>=g.viewTo)&&g.renderedView==g.view&&Wa(a)==0)return!1;Oi(a)&&(ia(a),c.dims=Sc(a));var b=m.first+m.size,F=Math.max(c.visible.from-a.options.viewportMargin,m.first),X=Math.min(b,c.visible.to+a.options.viewportMargin);g.viewFrom<F&&F-g.viewFrom<20&&(F=Math.max(m.first,g.viewFrom)),g.viewTo>X&&g.viewTo-X<20&&(X=Math.min(b,g.viewTo)),Re&&(F=Wo(a.doc,F),X=ls(a.doc,X));var lt=F!=g.viewFrom||X!=g.viewTo||g.lastWrapHeight!=c.wrapperHeight||g.lastWrapWidth!=c.wrapperWidth;Tr(a,F,X),g.viewOffset=Is(qe(a.doc,g.viewFrom)),a.display.mover.style.top=g.viewOffset+"px";var st=Wa(a);if(!lt&&st==0&&!c.force&&g.renderedView==g.view&&(g.updateLineNumbers==null||g.updateLineNumbers>=g.viewTo))return!1;var Pt=Vn(a);return st>4&&(g.lineDiv.style.display="none"),wi(a,g.updateLineNumbers,c.dims),st>4&&(g.lineDiv.style.display=""),g.renderedView=g.view,Hn(Pt),Lt(g.cursorDiv),Lt(g.selectionDiv),g.gutters.style.height=g.sizer.style.minHeight=0,lt&&(g.lastWrapHeight=c.wrapperHeight,g.lastWrapWidth=c.wrapperWidth,wn(a,400)),g.updateLineNumbers=null,!0}function Zn(a,c){for(var g=c.viewport,m=!0;;m=!1){if(!m||!a.options.lineWrapping||c.oldDisplayWidth==_a(a)){if(g&&g.top!=null&&(g={top:Math.min(a.doc.height+za(a.display)-Fu(a),g.top)}),c.visible=Bo(a.display,a.doc,g),c.visible.from>=a.display.viewFrom&&c.visible.to<=a.display.viewTo)break}else m&&(c.visible=Bo(a.display,a.doc,g));if(!Fi(a,c))break;Nr(a);var b=cl(a);ra(a),Yl(a,b),pr(a,b),c.force=!1}c.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(c.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function ki(a,c){var g=new Tn(a,c);if(Fi(a,g)){Nr(a),Zn(a,g);var m=cl(a);ra(a),Yl(a,m),pr(a,m),g.finish()}}function wi(a,c,g){var m=a.display,b=a.options.lineNumbers,F=m.lineDiv,X=F.firstChild;function lt(Kn){var ei=Kn.nextSibling;return I&&Mt&&a.display.currentWheelTarget==Kn?Kn.style.display="none":Kn.parentNode.removeChild(Kn),ei}for(var st=m.view,Pt=m.viewFrom,Ee=0;Ee<st.length;Ee++){var Wt=st[Ee];if(!Wt.hidden)if(!Wt.node||Wt.node.parentNode!=F){var rn=al(a,Wt,Pt,g);F.insertBefore(rn,X)}else{for(;X!=Wt.node;)X=lt(X);var Xe=b&&c!=null&&c<=Pt&&Wt.lineNumber;Wt.changes&&(it(Wt.changes,"gutter")>-1&&(Xe=!1),Zo(a,Wt,Pt,g)),Xe&&(Lt(Wt.lineNumber),Wt.lineNumber.appendChild(document.createTextNode(hi(a.options,Pt)))),X=Wt.node.nextSibling}Pt+=Wt.size}for(;X;)X=lt(X)}function _i(a){var c=a.gutters.offsetWidth;a.sizer.style.marginLeft=c+"px"}function pr(a,c){a.display.sizer.style.minHeight=c.docHeight+"px",a.display.heightForcer.style.top=c.docHeight+"px",a.display.gutters.style.height=c.docHeight+a.display.barHeight+ka(a)+"px"}function cr(a){var c=a.display,g=c.view;if(!(!c.alignWidgets&&(!c.gutters.firstChild||!a.options.fixedGutter))){for(var m=sc(c)-c.scroller.scrollLeft+a.doc.scrollLeft,b=c.gutters.offsetWidth,F=m+"px",X=0;X<g.length;X++)if(!g[X].hidden){a.options.fixedGutter&&(g[X].gutter&&(g[X].gutter.style.left=F),g[X].gutterBackground&&(g[X].gutterBackground.style.left=F));var lt=g[X].alignable;if(lt)for(var st=0;st<lt.length;st++)lt[st].style.left=F}a.options.fixedGutter&&(c.gutters.style.left=m+b+"px")}}function Oi(a){if(!a.options.lineNumbers)return!1;var c=a.doc,g=hi(a.options,c.first+c.size-1),m=a.display;if(g.length!=m.lineNumChars){var b=m.measure.appendChild(Qt("div",[Qt("div",g)],"CodeMirror-linenumber CodeMirror-gutter-elt")),F=b.firstChild.offsetWidth,X=b.offsetWidth-F;return m.lineGutter.style.width="",m.lineNumInnerWidth=Math.max(F,m.lineGutter.offsetWidth-X)+1,m.lineNumWidth=m.lineNumInnerWidth+X,m.lineNumChars=m.lineNumInnerWidth?g.length:-1,m.lineGutter.style.width=m.lineNumWidth+"px",_i(a.display),!0}return!1}function jt(a,c){for(var g=[],m=!1,b=0;b<a.length;b++){var F=a[b],X=null;if(typeof F!="string"&&(X=F.style,F=F.className),F=="CodeMirror-linenumbers")if(c)m=!0;else continue;g.push({className:F,style:X})}return c&&!m&&g.push({className:"CodeMirror-linenumbers",style:null}),g}function to(a){var c=a.gutters,g=a.gutterSpecs;Lt(c),a.lineGutter=null;for(var m=0;m<g.length;++m){var b=g[m],F=b.className,X=b.style,lt=c.appendChild(Qt("div",null,"CodeMirror-gutter "+F));X&&(lt.style.cssText=X),F=="CodeMirror-linenumbers"&&(a.lineGutter=lt,lt.style.width=(a.lineNumWidth||1)+"px")}c.style.display=g.length?"":"none",_i(a)}function Li(a){to(a.display),xs(a),cr(a)}function sr(a,c,g,m){var b=this;this.input=g,b.scrollbarFiller=Qt("div",null,"CodeMirror-scrollbar-filler"),b.scrollbarFiller.setAttribute("cm-not-content","true"),b.gutterFiller=Qt("div",null,"CodeMirror-gutter-filler"),b.gutterFiller.setAttribute("cm-not-content","true"),b.lineDiv=ie("div",null,"CodeMirror-code"),b.selectionDiv=Qt("div",null,null,"position: relative; z-index: 1"),b.cursorDiv=Qt("div",null,"CodeMirror-cursors"),b.measure=Qt("div",null,"CodeMirror-measure"),b.lineMeasure=Qt("div",null,"CodeMirror-measure"),b.lineSpace=ie("div",[b.measure,b.lineMeasure,b.selectionDiv,b.cursorDiv,b.lineDiv],null,"position: relative; outline: none");var F=ie("div",[b.lineSpace],"CodeMirror-lines");b.mover=Qt("div",[F],null,"position: relative"),b.sizer=Qt("div",[b.mover],"CodeMirror-sizer"),b.sizerWidth=null,b.heightForcer=Qt("div",null,null,"position: absolute; height: "+Te+"px; width: 1px;"),b.gutters=Qt("div",null,"CodeMirror-gutters"),b.lineGutter=null,b.scroller=Qt("div",[b.sizer,b.heightForcer,b.gutters],"CodeMirror-scroll"),b.scroller.setAttribute("tabIndex","-1"),b.wrapper=Qt("div",[b.scrollbarFiller,b.gutterFiller,b.scroller],"CodeMirror"),_&&K<8&&(b.gutters.style.zIndex=-1,b.scroller.style.paddingRight=0),!I&&!(y&&Tt)&&(b.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(b.wrapper):a(b.wrapper)),b.viewFrom=b.viewTo=c.first,b.reportedViewFrom=b.reportedViewTo=c.first,b.view=[],b.renderedView=null,b.externalMeasured=null,b.viewOffset=0,b.lastWrapHeight=b.lastWrapWidth=0,b.updateLineNumbers=null,b.nativeBarWidth=b.barHeight=b.barWidth=0,b.scrollbarsClipped=!1,b.lineNumWidth=b.lineNumInnerWidth=b.lineNumChars=null,b.alignWidgets=!1,b.cachedCharWidth=b.cachedTextHeight=b.cachedPaddingH=null,b.maxLine=null,b.maxLineLength=0,b.maxLineChanged=!1,b.wheelDX=b.wheelDY=b.wheelStartX=b.wheelStartY=null,b.shift=!1,b.selForContextMenu=null,b.activeTouch=null,b.gutterSpecs=jt(m.gutters,m.lineNumbers),to(b),g.init(b)}var Ai=0,gi=null;_?gi=-.53:y?gi=15:rt?gi=-.7:kt&&(gi=-1/3);function ji(a){var c=a.wheelDeltaX,g=a.wheelDeltaY;return c==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(c=a.detail),g==null&&a.detail&&a.axis==a.VERTICAL_AXIS?g=a.detail:g==null&&(g=a.wheelDelta),{x:c,y:g}}function wr(a){var c=ji(a);return c.x*=gi,c.y*=gi,c}function yr(a,c){var g=ji(c),m=g.x,b=g.y,F=a.display,X=F.scroller,lt=X.scrollWidth>X.clientWidth,st=X.scrollHeight>X.clientHeight;if(m&<||b&&st){if(b&&Mt&&I){t:for(var Pt=c.target,Ee=F.view;Pt!=X;Pt=Pt.parentNode)for(var Wt=0;Wt<Ee.length;Wt++)if(Ee[Wt].node==Pt){a.display.currentWheelTarget=Pt;break t}}if(m&&!y&&!Q&&gi!=null){b&&st&&Bu(a,Math.max(0,X.scrollTop+b*gi)),uu(a,Math.max(0,X.scrollLeft+m*gi)),(!b||b&&st)&&En(c),F.wheelStartX=null;return}if(b&&gi!=null){var rn=b*gi,Xe=a.doc.scrollTop,Kn=Xe+F.wrapper.clientHeight;rn<0?Xe=Math.max(0,Xe+rn-50):Kn=Math.min(a.doc.height,Kn+rn+50),ki(a,{top:Xe,bottom:Kn})}Ai<20&&(F.wheelStartX==null?(F.wheelStartX=X.scrollLeft,F.wheelStartY=X.scrollTop,F.wheelDX=m,F.wheelDY=b,setTimeout(function(){if(F.wheelStartX!=null){var ei=X.scrollLeft-F.wheelStartX,yi=X.scrollTop-F.wheelStartY,Zi=yi&&F.wheelDY&&yi/F.wheelDY||ei&&F.wheelDX&&ei/F.wheelDX;F.wheelStartX=F.wheelStartY=null,Zi&&(gi=(gi*Ai+Zi)/(Ai+1),++Ai)}},200)):(F.wheelDX+=m,F.wheelDY+=b))}}var $r=function(a,c){this.ranges=a,this.primIndex=c};$r.prototype.primary=function(){return this.ranges[this.primIndex]},$r.prototype.equals=function(a){if(a==this)return!0;if(a.primIndex!=this.primIndex||a.ranges.length!=this.ranges.length)return!1;for(var c=0;c<this.ranges.length;c++){var g=this.ranges[c],m=a.ranges[c];if(!be(g.anchor,m.anchor)||!be(g.head,m.head))return!1}return!0},$r.prototype.deepCopy=function(){for(var a=[],c=0;c<this.ranges.length;c++)a[c]=new Bi($e(this.ranges[c].anchor),$e(this.ranges[c].head));return new $r(a,this.primIndex)},$r.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},$r.prototype.contains=function(a,c){c||(c=a);for(var g=0;g<this.ranges.length;g++){var m=this.ranges[g];if(In(c,m.from())>=0&&In(a,m.to())<=0)return g}return-1};var Bi=function(a,c){this.anchor=a,this.head=c};Bi.prototype.from=function(){return Le(this.anchor,this.head)},Bi.prototype.to=function(){return He(this.anchor,this.head)},Bi.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function no(a,c,g){var m=a&&a.options.selectionsMayTouch,b=c[g];c.sort(function(rn,Xe){return In(rn.from(),Xe.from())}),g=it(c,b);for(var F=1;F<c.length;F++){var X=c[F],lt=c[F-1],st=In(lt.to(),X.from());if(m&&!X.empty()?st>0:st>=0){var Pt=Le(lt.from(),X.from()),Ee=He(lt.to(),X.to()),Wt=lt.empty()?X.from()==X.head:lt.from()==lt.head;F<=g&&--g,c.splice(--F,2,new Bi(Wt?Ee:Pt,Wt?Pt:Ee))}}return new $r(c,g)}function co(a,c){return new $r([new Bi(a,c||a)],0)}function S(a){return a.text?Me(a.from.line+a.text.length-1,$n(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function P(a,c){if(In(a,c.from)<0)return a;if(In(a,c.to)<=0)return S(c);var g=a.line+c.text.length-(c.to.line-c.from.line)-1,m=a.ch;return a.line==c.to.line&&(m+=S(c).ch-c.to.ch),Me(g,m)}function U(a,c){for(var g=[],m=0;m<a.sel.ranges.length;m++){var b=a.sel.ranges[m];g.push(new Bi(P(b.anchor,c),P(b.head,c)))}return no(a.cm,g,a.sel.primIndex)}function Z(a,c,g){return a.line==c.line?Me(g.line,a.ch-c.ch+g.ch):Me(g.line+(a.line-c.line),a.ch)}function ot(a,c,g){for(var m=[],b=Me(a.first,0),F=b,X=0;X<c.length;X++){var lt=c[X],st=Z(lt.from,b,F),Pt=Z(S(lt),b,F);if(b=lt.to,F=Pt,g=="around"){var Ee=a.sel.ranges[X],Wt=In(Ee.head,Ee.anchor)<0;m[X]=new Bi(Wt?Pt:st,Wt?st:Pt)}else m[X]=new Bi(st,st)}return new $r(m,a.sel.primIndex)}function ut(a){a.doc.mode=Gi(a.options,a.doc.modeOption),bt(a)}function bt(a){a.doc.iter(function(c){c.stateAfter&&(c.stateAfter=null),c.styles&&(c.styles=null)}),a.doc.modeFrontier=a.doc.highlightFrontier=a.doc.first,wn(a,100),a.state.modeGen++,a.curOp&&xs(a)}function Jt(a,c){return c.from.ch==0&&c.to.ch==0&&$n(c.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function Ie(a,c,g,m){function b(Cr){return g?g[Cr]:null}function F(Cr,ar,Dr){Qa(Cr,ar,Dr,m),ri(Cr,"change",Cr,c)}function X(Cr,ar){for(var Dr=[],fo=Cr;fo<ar;++fo)Dr.push(new oa(Pt[fo],b(fo),m));return Dr}var lt=c.from,st=c.to,Pt=c.text,Ee=qe(a,lt.line),Wt=qe(a,st.line),rn=$n(Pt),Xe=b(Pt.length-1),Kn=st.line-lt.line;if(c.full)a.insert(0,X(0,Pt.length)),a.remove(Pt.length,a.size-Pt.length);else if(Jt(a,c)){var ei=X(0,Pt.length-1);F(Wt,Wt.text,Xe),Kn&&a.remove(lt.line,Kn),ei.length&&a.insert(lt.line,ei)}else if(Ee==Wt)if(Pt.length==1)F(Ee,Ee.text.slice(0,lt.ch)+rn+Ee.text.slice(st.ch),Xe);else{var yi=X(1,Pt.length-1);yi.push(new oa(rn+Ee.text.slice(st.ch),Xe,m)),F(Ee,Ee.text.slice(0,lt.ch)+Pt[0],b(0)),a.insert(lt.line+1,yi)}else if(Pt.length==1)F(Ee,Ee.text.slice(0,lt.ch)+Pt[0]+Wt.text.slice(st.ch),b(0)),a.remove(lt.line+1,Kn);else{F(Ee,Ee.text.slice(0,lt.ch)+Pt[0],b(0)),F(Wt,rn+Wt.text.slice(st.ch),Xe);var Zi=X(1,Pt.length-1);Kn>1&&a.remove(lt.line+1,Kn-1),a.insert(lt.line+1,Zi)}ri(a,"change",a,c)}function Ue(a,c,g){function m(b,F,X){if(b.linked)for(var lt=0;lt<b.linked.length;++lt){var st=b.linked[lt];if(st.doc!=F){var Pt=X&&st.sharedHist;g&&!Pt||(c(st.doc,Pt),m(st.doc,b,Pt))}}}m(a,null,!0)}function he(a,c){if(c.cm)throw new Error("This document is already in use.");a.doc=c,c.cm=a,Lr(a),ut(a),Fe(a),a.options.lineWrapping||Us(a),a.options.mode=c.modeOption,xs(a)}function Fe(a){(a.doc.direction=="rtl"?Pe:Rt)(a.display.lineDiv,"CodeMirror-rtl")}function Oe(a){me(a,function(){Fe(a),xs(a)})}function ye(a){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=a||1}function Ni(a,c){var g={from:$e(c.from),to:S(c),text:xn(a,c.from,c.to)};return ho(a,g,c.from.line,c.to.line+1),Ue(a,function(m){return ho(m,g,c.from.line,c.to.line+1)},!0),g}function fi(a){for(;a.length;){var c=$n(a);if(c.ranges)a.pop();else break}}function zi(a,c){if(c)return fi(a.done),$n(a.done);if(a.done.length&&!$n(a.done).ranges)return $n(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),$n(a.done)}function mi(a,c,g,m){var b=a.history;b.undone.length=0;var F=+new Date,X,lt;if((b.lastOp==m||b.lastOrigin==c.origin&&c.origin&&(c.origin.charAt(0)=="+"&&b.lastModTime>F-(a.cm?a.cm.options.historyEventDelay:500)||c.origin.charAt(0)=="*"))&&(X=zi(b,b.lastOp==m)))lt=$n(X.changes),In(c.from,c.to)==0&&In(c.from,lt.to)==0?lt.to=S(c):X.changes.push(Ni(a,c));else{var st=$n(b.done);for((!st||!st.ranges)&&oo(a.sel,b.done),X={changes:[Ni(a,c)],generation:b.generation},b.done.push(X);b.done.length>b.undoDepth;)b.done.shift(),b.done[0].ranges||b.done.shift()}b.done.push(g),b.generation=++b.maxGeneration,b.lastModTime=b.lastSelTime=F,b.lastOp=b.lastSelOp=m,b.lastOrigin=b.lastSelOrigin=c.origin,lt||Bt(a,"historyAdded")}function Ri(a,c,g,m){var b=c.charAt(0);return b=="*"||b=="+"&&g.ranges.length==m.ranges.length&&g.somethingSelected()==m.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function tr(a,c,g,m){var b=a.history,F=m&&m.origin;g==b.lastSelOp||F&&b.lastSelOrigin==F&&(b.lastModTime==b.lastSelTime&&b.lastOrigin==F||Ri(a,F,$n(b.done),c))?b.done[b.done.length-1]=c:oo(c,b.done),b.lastSelTime=+new Date,b.lastSelOrigin=F,b.lastSelOp=g,m&&m.clearRedo!==!1&&fi(b.undone)}function oo(a,c){var g=$n(c);g&&g.ranges&&g.equals(a)||c.push(a)}function ho(a,c,g,m){var b=c["spans_"+a.id],F=0;a.iter(Math.max(a.first,g),Math.min(a.first+a.size,m),function(X){X.markedSpans&&((b||(b=c["spans_"+a.id]={}))[F]=X.markedSpans),++F})}function ti(a){if(!a)return null;for(var c,g=0;g<a.length;++g)a[g].marker.explicitlyCleared?c||(c=a.slice(0,g)):c&&c.push(a[g]);return c?c.length?c:null:a}function Eo(a,c){var g=c["spans_"+a.id];if(!g)return null;for(var m=[],b=0;b<c.text.length;++b)m.push(ti(g[b]));return m}function Mo(a,c){var g=Eo(a,c),m=W(a,c);if(!g)return m;if(!m)return g;for(var b=0;b<g.length;++b){var F=g[b],X=m[b];if(F&&X)t:for(var lt=0;lt<X.length;++lt){for(var st=X[lt],Pt=0;Pt<F.length;++Pt)if(F[Pt].marker==st.marker)continue t;F.push(st)}else X&&(g[b]=X)}return g}function po(a,c,g){for(var m=[],b=0;b<a.length;++b){var F=a[b];if(F.ranges){m.push(g?$r.prototype.deepCopy.call(F):F);continue}var X=F.changes,lt=[];m.push({changes:lt});for(var st=0;st<X.length;++st){var Pt=X[st],Ee=void 0;if(lt.push({from:Pt.from,to:Pt.to,text:Pt.text}),c)for(var Wt in Pt)(Ee=Wt.match(/^spans_(\d+)$/))&&it(c,Number(Ee[1]))>-1&&($n(lt)[Wt]=Pt[Wt],delete Pt[Wt])}}return m}function ds(a,c,g,m){if(m){var b=a.anchor;if(g){var F=In(c,b)<0;F!=In(g,b)<0?(b=c,c=g):F!=In(c,g)<0&&(c=g)}return new Bi(b,c)}else return new Bi(g||c,c)}function bo(a,c,g,m,b){b==null&&(b=a.cm&&(a.cm.display.shift||a.extend)),vo(a,new $r([ds(a.sel.primary(),c,g,b)],0),m)}function Vr(a,c,g){for(var m=[],b=a.cm&&(a.cm.display.shift||a.extend),F=0;F<a.sel.ranges.length;F++)m[F]=ds(a.sel.ranges[F],c[F],null,b);var X=no(a.cm,m,a.sel.primIndex);vo(a,X,g)}function rr(a,c,g,m){var b=a.sel.ranges.slice(0);b[c]=g,vo(a,no(a.cm,b,a.sel.primIndex),m)}function Hr(a,c,g,m){vo(a,co(c,g),m)}function Qr(a,c,g){var m={ranges:c.ranges,update:function(b){this.ranges=[];for(var F=0;F<b.length;F++)this.ranges[F]=new Bi(Je(a,b[F].anchor),Je(a,b[F].head))},origin:g&&g.origin};return Bt(a,"beforeSelectionChange",a,m),a.cm&&Bt(a.cm,"beforeSelectionChange",a.cm,m),m.ranges!=c.ranges?no(a.cm,m.ranges,m.ranges.length-1):c}function xr(a,c,g){var m=a.history.done,b=$n(m);b&&b.ranges?(m[m.length-1]=c,ms(a,c,g)):vo(a,c,g)}function vo(a,c,g){ms(a,c,g),tr(a,a.sel,a.cm?a.cm.curOp.id:NaN,g)}function ms(a,c,g){(Ne(a,"beforeSelectionChange")||a.cm&&Ne(a.cm,"beforeSelectionChange"))&&(c=Qr(a,c,g));var m=g&&g.bias||(In(c.primary().head,a.sel.primary().head)<0?-1:1);qs(a,Gs(a,c,m,!0)),!(g&&g.scroll===!1)&&a.cm&&Bl(a.cm)}function qs(a,c){c.equals(a.sel)||(a.sel=c,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,ze(a.cm)),ri(a,"cursorActivity",a))}function nn(a){qs(a,Gs(a,a.sel,null,!1))}function Gs(a,c,g,m){for(var b,F=0;F<c.ranges.length;F++){var X=c.ranges[F],lt=c.ranges.length==a.sel.ranges.length&&a.sel.ranges[F],st=on(a,X.anchor,lt&<.anchor,g,m),Pt=on(a,X.head,lt&<.head,g,m);(b||st!=X.anchor||Pt!=X.head)&&(b||(b=c.ranges.slice(0,F)),b[F]=new Bi(st,Pt))}return b?no(a.cm,b,c.primIndex):c}function la(a,c,g,m,b){var F=qe(a,c.line);if(F.markedSpans)for(var X=0;X<F.markedSpans.length;++X){var lt=F.markedSpans[X],st=lt.marker,Pt="selectLeft"in st?!st.selectLeft:st.inclusiveLeft,Ee="selectRight"in st?!st.selectRight:st.inclusiveRight;if((lt.from==null||(Pt?lt.from<=c.ch:lt.from<c.ch))&&(lt.to==null||(Ee?lt.to>=c.ch:lt.to>c.ch))){if(b&&(Bt(st,"beforeCursorEnter"),st.explicitlyCleared))if(F.markedSpans){--X;continue}else break;if(!st.atomic)continue;if(g){var Wt=st.find(m<0?1:-1),rn=void 0;if((m<0?Ee:Pt)&&(Wt=Ws(a,Wt,-m,Wt&&Wt.line==c.line?F:null)),Wt&&Wt.line==c.line&&(rn=In(Wt,g))&&(m<0?rn<0:rn>0))return la(a,Wt,c,m,b)}var Xe=st.find(m<0?-1:1);return(m<0?Pt:Ee)&&(Xe=Ws(a,Xe,m,Xe.line==c.line?F:null)),Xe?la(a,Xe,c,m,b):null}}return c}function on(a,c,g,m,b){var F=m||1,X=la(a,c,g,F,b)||!b&&la(a,c,g,F,!0)||la(a,c,g,-F,b)||!b&&la(a,c,g,-F,!0);return X||(a.cantEdit=!0,Me(a.first,0))}function Ws(a,c,g,m){return g<0&&c.ch==0?c.line>a.first?Je(a,Me(c.line-1)):null:g>0&&c.ch==(m||qe(a,c.line)).text.length?c.line<a.first+a.size-1?Me(c.line+1,0):null:new Me(c.line,c.ch+g)}function zo(a){a.setSelection(Me(a.firstLine(),0),Me(a.lastLine()),de)}function pa(a,c,g){var m={canceled:!1,from:c.from,to:c.to,text:c.text,origin:c.origin,cancel:function(){return m.canceled=!0}};return g&&(m.update=function(b,F,X,lt){b&&(m.from=Je(a,b)),F&&(m.to=Je(a,F)),X&&(m.text=X),lt!==void 0&&(m.origin=lt)}),Bt(a,"beforeChange",a,m),a.cm&&Bt(a.cm,"beforeChange",a.cm,m),m.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:m.from,to:m.to,text:m.text,origin:m.origin}}function bs(a,c,g){if(a.cm){if(!a.cm.curOp)return Ye(a.cm,bs)(a,c,g);if(a.cm.state.suppressEdits)return}if(!((Ne(a,"beforeChange")||a.cm&&Ne(a.cm,"beforeChange"))&&(c=pa(a,c,!0),!c))){var m=ur&&!g&&Pn(a,c.from,c.to);if(m)for(var b=m.length-1;b>=0;--b)To(a,{from:m[b].from,to:m[b].to,text:b?[""]:c.text,origin:c.origin});else To(a,c)}}function To(a,c){if(!(c.text.length==1&&c.text[0]==""&&In(c.from,c.to)==0)){var g=U(a,c);mi(a,c,g,a.cm?a.cm.curOp.id:NaN),va(a,c,g,W(a,c));var m=[];Ue(a,function(b,F){!F&&it(m,b.history)==-1&&(ps(b.history,c),m.push(b.history)),va(b,c,null,W(b,c))})}}function ba(a,c,g){var m=a.cm&&a.cm.state.suppressEdits;if(!(m&&!g)){for(var b=a.history,F,X=a.sel,lt=c=="undo"?b.done:b.undone,st=c=="undo"?b.undone:b.done,Pt=0;Pt<lt.length&&(F=lt[Pt],!(g?F.ranges&&!F.equals(a.sel):!F.ranges));Pt++);if(Pt!=lt.length){for(b.lastOrigin=b.lastSelOrigin=null;;)if(F=lt.pop(),F.ranges){if(oo(F,st),g&&!F.equals(a.sel)){vo(a,F,{clearRedo:!1});return}X=F}else if(m){lt.push(F);return}else break;var Ee=[];oo(X,st),st.push({changes:Ee,generation:b.generation}),b.generation=F.generation||++b.maxGeneration;for(var Wt=Ne(a,"beforeChange")||a.cm&&Ne(a.cm,"beforeChange"),rn=function(ei){var yi=F.changes[ei];if(yi.origin=c,Wt&&!pa(a,yi,!1))return lt.length=0,{};Ee.push(Ni(a,yi));var Zi=ei?U(a,yi):$n(lt);va(a,yi,Zi,Mo(a,yi)),!ei&&a.cm&&a.cm.scrollIntoView({from:yi.from,to:S(yi)});var Cr=[];Ue(a,function(ar,Dr){!Dr&&it(Cr,ar.history)==-1&&(ps(ar.history,yi),Cr.push(ar.history)),va(ar,yi,null,Mo(ar,yi))})},Xe=F.changes.length-1;Xe>=0;--Xe){var Kn=rn(Xe);if(Kn)return Kn.v}}}}function La(a,c){if(c!=0&&(a.first+=c,a.sel=new $r(fn(a.sel.ranges,function(b){return new Bi(Me(b.anchor.line+c,b.anchor.ch),Me(b.head.line+c,b.head.ch))}),a.sel.primIndex),a.cm)){xs(a.cm,a.first,a.first-c,c);for(var g=a.cm.display,m=g.viewFrom;m<g.viewTo;m++)xo(a.cm,m,"gutter")}}function va(a,c,g,m){if(a.cm&&!a.cm.curOp)return Ye(a.cm,va)(a,c,g,m);if(c.to.line<a.first){La(a,c.text.length-1-(c.to.line-c.from.line));return}if(!(c.from.line>a.lastLine())){if(c.from.line<a.first){var b=c.text.length-1-(a.first-c.from.line);La(a,b),c={from:Me(a.first,0),to:Me(c.to.line+b,c.to.ch),text:[$n(c.text)],origin:c.origin}}var F=a.lastLine();c.to.line>F&&(c={from:c.from,to:Me(F,qe(a,F).text.length),text:[c.text[0]],origin:c.origin}),c.removed=xn(a,c.from,c.to),g||(g=U(a,c)),a.cm?Ua(a.cm,c,m):Ie(a,c,m),ms(a,g,de),a.cantEdit&&on(a,Me(a.firstLine(),0))&&(a.cantEdit=!1)}}function Ua(a,c,g){var m=a.doc,b=a.display,F=c.from,X=c.to,lt=!1,st=F.line;a.options.lineWrapping||(st=ne(se(qe(m,F.line))),m.iter(st,X.line+1,function(Xe){if(Xe==b.maxLine)return lt=!0,!0})),m.sel.contains(c.from,c.to)>-1&&ze(a),Ie(m,c,g,Ls(a)),a.options.lineWrapping||(m.iter(st,F.line+c.text.length,function(Xe){var Kn=Js(Xe);Kn>b.maxLineLength&&(b.maxLine=Xe,b.maxLineLength=Kn,b.maxLineChanged=!0,lt=!1)}),lt&&(a.curOp.updateMaxLine=!0)),pi(m,F.line),wn(a,400);var Pt=c.text.length-(X.line-F.line)-1;c.full?xs(a):F.line==X.line&&c.text.length==1&&!Jt(a.doc,c)?xo(a,F.line,"text"):xs(a,F.line,X.line+1,Pt);var Ee=Ne(a,"changes"),Wt=Ne(a,"change");if(Wt||Ee){var rn={from:F,to:X,text:c.text,removed:c.removed,origin:c.origin};Wt&&ri(a,"change",a,rn),Ee&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(rn)}a.display.selForContextMenu=null}function Tl(a,c,g,m,b){var F;m||(m=g),In(m,g)<0&&(F=[m,g],g=F[0],m=F[1]),typeof c=="string"&&(c=a.splitLines(c)),bs(a,{from:g,to:m,text:c,origin:b})}function Va(a,c,g,m){g<a.line?a.line+=m:c<a.line&&(a.line=c,a.ch=0)}function Xo(a,c,g,m){for(var b=0;b<a.length;++b){var F=a[b],X=!0;if(F.ranges){F.copied||(F=a[b]=F.deepCopy(),F.copied=!0);for(var lt=0;lt<F.ranges.length;lt++)Va(F.ranges[lt].anchor,c,g,m),Va(F.ranges[lt].head,c,g,m);continue}for(var st=0;st<F.changes.length;++st){var Pt=F.changes[st];if(g<Pt.from.line)Pt.from=Me(Pt.from.line+m,Pt.from.ch),Pt.to=Me(Pt.to.line+m,Pt.to.ch);else if(c<=Pt.to.line){X=!1;break}}X||(a.splice(0,b+1),b=0)}}function ps(a,c){var g=c.from.line,m=c.to.line,b=c.text.length-(m-g)-1;Xo(a.done,g,m,b),Xo(a.undone,g,m,b)}function Bs(a,c,g,m){var b=c,F=c;return typeof c=="number"?F=qe(a,tn(a,c)):b=ne(c),b==null?null:(m(F,b)&&a.cm&&xo(a.cm,b,g),F)}function fs(a){this.lines=a,this.parent=null;for(var c=0,g=0;g<a.length;++g)a[g].parent=this,c+=a[g].height;this.height=c}fs.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,c){for(var g=a,m=a+c;g<m;++g){var b=this.lines[g];this.height-=b.height,da(b),ri(b,"delete")}this.lines.splice(a,c)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,c,g){this.height+=g,this.lines=this.lines.slice(0,a).concat(c).concat(this.lines.slice(a));for(var m=0;m<c.length;++m)c[m].parent=this},iterN:function(a,c,g){for(var m=a+c;a<m;++a)if(g(this.lines[a]))return!0}};function $o(a){this.children=a;for(var c=0,g=0,m=0;m<a.length;++m){var b=a[m];c+=b.chunkSize(),g+=b.height,b.parent=this}this.size=c,this.height=g,this.parent=null}$o.prototype={chunkSize:function(){return this.size},removeInner:function(a,c){this.size-=c;for(var g=0;g<this.children.length;++g){var m=this.children[g],b=m.chunkSize();if(a<b){var F=Math.min(c,b-a),X=m.height;if(m.removeInner(a,F),this.height-=X-m.height,b==F&&(this.children.splice(g--,1),m.parent=null),(c-=F)==0)break;a=0}else a-=b}if(this.size-c<25&&(this.children.length>1||!(this.children[0]instanceof fs))){var lt=[];this.collapse(lt),this.children=[new fs(lt)],this.children[0].parent=this}},collapse:function(a){for(var c=0;c<this.children.length;++c)this.children[c].collapse(a)},insertInner:function(a,c,g){this.size+=c.length,this.height+=g;for(var m=0;m<this.children.length;++m){var b=this.children[m],F=b.chunkSize();if(a<=F){if(b.insertInner(a,c,g),b.lines&&b.lines.length>50){for(var X=b.lines.length%25+25,lt=X;lt<b.lines.length;){var st=new fs(b.lines.slice(lt,lt+=25));b.height-=st.height,this.children.splice(++m,0,st),st.parent=this}b.lines=b.lines.slice(0,X),this.maybeSpill()}break}a-=F}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var c=a.children.splice(a.children.length-5,5),g=new $o(c);if(a.parent){a.size-=g.size,a.height-=g.height;var b=it(a.parent.children,a);a.parent.children.splice(b+1,0,g)}else{var m=new $o(a.children);m.parent=a,a.children=[m,g],a=m}g.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,c,g){for(var m=0;m<this.children.length;++m){var b=this.children[m],F=b.chunkSize();if(a<F){var X=Math.min(c,F-a);if(b.iterN(a,X,g))return!0;if((c-=X)==0)break;a=0}else a-=F}}};var Hs=function(a,c,g){if(g)for(var m in g)g.hasOwnProperty(m)&&(this[m]=g[m]);this.doc=a,this.node=c};Hs.prototype.clear=function(){var a=this.doc.cm,c=this.line.widgets,g=this.line,m=ne(g);if(!(m==null||!c)){for(var b=0;b<c.length;++b)c[b]==this&&c.splice(b--,1);c.length||(g.widgets=null);var F=Ba(this);kn(g,Math.max(0,g.height-F)),a&&(me(a,function(){Ra(a,g,-F),xo(a,m,"widget")}),ri(a,"lineWidgetCleared",a,this,m))}},Hs.prototype.changed=function(){var a=this,c=this.height,g=this.doc.cm,m=this.line;this.height=null;var b=Ba(this)-c;b&&(ni(this.doc,m)||kn(m,m.height+b),g&&me(g,function(){g.curOp.forceUpdate=!0,Ra(g,m,b),ri(g,"lineWidgetChanged",g,a,ne(m))}))},Cn(Hs);function Ra(a,c,g){Is(c)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&uc(a,g)}function kl(a,c,g,m){var b=new Hs(a,g,m),F=a.cm;return F&&b.noHScroll&&(F.display.alignWidgets=!0),Bs(a,c,"widget",function(X){var lt=X.widgets||(X.widgets=[]);if(b.insertAt==null?lt.push(b):lt.splice(Math.min(lt.length-1,Math.max(0,b.insertAt)),0,b),b.line=X,F&&!ni(a,X)){var st=Is(X)<a.scrollTop;kn(X,X.height+Ba(b)),st&&uc(F,b.height),F.curOp.forceUpdate=!0}return!0}),F&&ri(F,"lineWidgetAdded",F,b,typeof c=="number"?c:ne(c)),b}var qc=0,ue=function(a,c){this.lines=[],this.type=c,this.doc=a,this.id=++qc};ue.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,c=a&&!a.curOp;if(c&&_s(a),Ne(this,"clear")){var g=this.find();g&&ri(this,"clear",g.from,g.to)}for(var m=null,b=null,F=0;F<this.lines.length;++F){var X=this.lines[F],lt=Co(X.markedSpans,this);a&&!this.collapsed?xo(a,ne(X),"text"):a&&(lt.to!=null&&(b=ne(X)),lt.from!=null&&(m=ne(X))),X.markedSpans=Br(X.markedSpans,lt),lt.from==null&&this.collapsed&&!ni(this.doc,X)&&a&&kn(X,Fl(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var st=0;st<this.lines.length;++st){var Pt=se(this.lines[st]),Ee=Js(Pt);Ee>a.display.maxLineLength&&(a.display.maxLine=Pt,a.display.maxLineLength=Ee,a.display.maxLineChanged=!0)}m!=null&&a&&this.collapsed&&xs(a,m,b+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&nn(a.doc)),a&&ri(a,"markerCleared",a,this,m,b),c&&cu(a),this.parent&&this.parent.clear()}},ue.prototype.find=function(a,c){a==null&&this.type=="bookmark"&&(a=1);for(var g,m,b=0;b<this.lines.length;++b){var F=this.lines[b],X=Co(F.markedSpans,this);if(X.from!=null&&(g=Me(c?F:ne(F),X.from),a==-1))return g;if(X.to!=null&&(m=Me(c?F:ne(F),X.to),a==1))return m}return g&&{from:g,to:m}},ue.prototype.changed=function(){var a=this,c=this.find(-1,!0),g=this,m=this.doc.cm;!c||!m||me(m,function(){var b=c.line,F=ne(c.line),X=Kl(m,F);if(X&&(sa(X),m.curOp.selectionChanged=m.curOp.forceUpdate=!0),m.curOp.updateMaxLine=!0,!ni(g.doc,b)&&g.height!=null){var lt=g.height;g.height=null;var st=Ba(g)-lt;st&&kn(b,b.height+st)}ri(m,"markerChanged",m,a)})},ue.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var c=this.doc.cm.curOp;(!c.maybeHiddenMarkers||it(c.maybeHiddenMarkers,this)==-1)&&(c.maybeUnhiddenMarkers||(c.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},ue.prototype.detachLine=function(a){if(this.lines.splice(it(this.lines,a),1),!this.lines.length&&this.doc.cm){var c=this.doc.cm.curOp;(c.maybeHiddenMarkers||(c.maybeHiddenMarkers=[])).push(this)}},Cn(ue);function Tu(a,c,g,m,b){if(m&&m.shared)return hr(a,c,g,m,b);if(a.cm&&!a.cm.curOp)return Ye(a.cm,Tu)(a,c,g,m,b);var F=new ue(a,b),X=In(c,g);if(m&&ln(m,F,!1),X>0||X==0&&F.clearWhenEmpty!==!1)return F;if(F.replacedWith&&(F.collapsed=!0,F.widgetNode=ie("span",[F.replacedWith],"CodeMirror-widget"),m.handleMouseEvents||F.widgetNode.setAttribute("cm-ignore-events","true"),m.insertLeft&&(F.widgetNode.insertLeft=!0)),F.collapsed){if(Vi(a,c.line,c,g,F)||c.line!=g.line&&Vi(a,g.line,c,g,F))throw new Error("Inserting collapsed marker partially overlapping an existing one");je()}F.addToHistory&&mi(a,{from:c,to:g,origin:"markText"},a.sel,NaN);var lt=c.line,st=a.cm,Pt;if(a.iter(lt,g.line+1,function(Wt){st&&F.collapsed&&!st.options.lineWrapping&&se(Wt)==st.display.maxLine&&(Pt=!0),F.collapsed&<!=c.line&&kn(Wt,0),rs(Wt,new nr(F,lt==c.line?c.ch:null,lt==g.line?g.ch:null)),++lt}),F.collapsed&&a.iter(c.line,g.line+1,function(Wt){ni(a,Wt)&&kn(Wt,0)}),F.clearOnEnter&&Ce(F,"beforeCursorEnter",function(){return F.clear()}),F.readOnly&&(Rr(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),F.collapsed&&(F.id=++qc,F.atomic=!0),st){if(Pt&&(st.curOp.updateMaxLine=!0),F.collapsed)xs(st,c.line,g.line+1);else if(F.className||F.startStyle||F.endStyle||F.css||F.attributes||F.title)for(var Ee=c.line;Ee<=g.line;Ee++)xo(st,Ee,"text");F.atomic&&nn(st.doc),ri(st,"markerAdded",st,F)}return F}var oi=function(a,c){this.markers=a,this.primary=c;for(var g=0;g<a.length;++g)a[g].parent=this};oi.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();ri(this,"clear")}},oi.prototype.find=function(a,c){return this.primary.find(a,c)},Cn(oi);function hr(a,c,g,m,b){m=ln(m),m.shared=!1;var F=[Tu(a,c,g,m,b)],X=F[0],lt=m.widgetNode;return Ue(a,function(st){lt&&(m.widgetNode=lt.cloneNode(!0)),F.push(Tu(st,Je(st,c),Je(st,g),m,b));for(var Pt=0;Pt<st.linked.length;++Pt)if(st.linked[Pt].isParent)return;X=$n(F)}),new oi(F,X)}function Io(a){return a.findMarks(Me(a.first,0),a.clipPos(Me(a.lastLine())),function(c){return c.parent})}function Qo(a,c){for(var g=0;g<c.length;g++){var m=c[g],b=m.find(),F=a.clipPos(b.from),X=a.clipPos(b.to);if(In(F,X)){var lt=Tu(a,F,X,m.primary,m.primary.type);m.markers.push(lt),lt.parent=m}}}function ks(a){for(var c=function(m){var b=a[m],F=[b.primary.doc];Ue(b.primary.doc,function(st){return F.push(st)});for(var X=0;X<b.markers.length;X++){var lt=b.markers[X];it(F,lt.doc)==-1&&(lt.parent=null,b.markers.splice(X--,1))}},g=0;g<a.length;g++)c(g)}var zl=0,Vs=function(a,c,g,m,b){if(!(this instanceof Vs))return new Vs(a,c,g,m,b);g==null&&(g=0),$o.call(this,[new fs([new oa("",null)])]),this.first=g,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=g;var F=Me(g,0);this.sel=co(F),this.history=new ye(null),this.id=++zl,this.modeOption=c,this.lineSep=m,this.direction=b=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),Ie(this,{from:F,to:F,text:a}),vo(this,co(F),de)};Vs.prototype=L($o.prototype,{constructor:Vs,iter:function(a,c,g){g?this.iterN(a-this.first,c-a,g):this.iterN(this.first,this.first+this.size,a)},insert:function(a,c){for(var g=0,m=0;m<c.length;++m)g+=c[m].height;this.insertInner(a-this.first,c,g)},remove:function(a,c){this.removeInner(a-this.first,c)},getValue:function(a){var c=Gn(this,this.first,this.first+this.size);return a===!1?c:c.join(a||this.lineSeparator())},setValue:_e(function(a){var c=Me(this.first,0),g=this.first+this.size-1;bs(this,{from:c,to:Me(g,qe(this,g).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&Cu(this.cm,0,0),vo(this,co(c),de)}),replaceRange:function(a,c,g,m){c=Je(this,c),g=g?Je(this,g):c,Tl(this,a,c,g,m)},getRange:function(a,c,g){var m=xn(this,Je(this,a),Je(this,c));return g===!1?m:m.join(g||this.lineSeparator())},getLine:function(a){var c=this.getLineHandle(a);return c&&c.text},getLineHandle:function(a){if(Fn(this,a))return qe(this,a)},getLineNumber:function(a){return ne(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=qe(this,a)),se(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return Je(this,a)},getCursor:function(a){var c=this.sel.primary(),g;return a==null||a=="head"?g=c.head:a=="anchor"?g=c.anchor:a=="end"||a=="to"||a===!1?g=c.to():g=c.from(),g},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:_e(function(a,c,g){Hr(this,Je(this,typeof a=="number"?Me(a,c||0):a),null,g)}),setSelection:_e(function(a,c,g){Hr(this,Je(this,a),Je(this,c||a),g)}),extendSelection:_e(function(a,c,g){bo(this,Je(this,a),c&&Je(this,c),g)}),extendSelections:_e(function(a,c){Vr(this,bn(this,a),c)}),extendSelectionsBy:_e(function(a,c){var g=fn(this.sel.ranges,a);Vr(this,bn(this,g),c)}),setSelections:_e(function(a,c,g){if(a.length){for(var m=[],b=0;b<a.length;b++)m[b]=new Bi(Je(this,a[b].anchor),Je(this,a[b].head));c==null&&(c=Math.min(a.length-1,this.sel.primIndex)),vo(this,no(this.cm,m,c),g)}}),addSelection:_e(function(a,c,g){var m=this.sel.ranges.slice(0);m.push(new Bi(Je(this,a),Je(this,c||a))),vo(this,no(this.cm,m,m.length-1),g)}),getSelection:function(a){for(var c=this.sel.ranges,g,m=0;m<c.length;m++){var b=xn(this,c[m].from(),c[m].to());g=g?g.concat(b):b}return a===!1?g:g.join(a||this.lineSeparator())},getSelections:function(a){for(var c=[],g=this.sel.ranges,m=0;m<g.length;m++){var b=xn(this,g[m].from(),g[m].to());a!==!1&&(b=b.join(a||this.lineSeparator())),c[m]=b}return c},replaceSelection:function(a,c,g){for(var m=[],b=0;b<this.sel.ranges.length;b++)m[b]=a;this.replaceSelections(m,c,g||"+input")},replaceSelections:_e(function(a,c,g){for(var m=[],b=this.sel,F=0;F<b.ranges.length;F++){var X=b.ranges[F];m[F]={from:X.from(),to:X.to(),text:this.splitLines(a[F]),origin:g}}for(var lt=c&&c!="end"&&ot(this,m,c),st=m.length-1;st>=0;st--)bs(this,m[st]);lt?xr(this,lt):this.cm&&Bl(this.cm)}),undo:_e(function(){ba(this,"undo")}),redo:_e(function(){ba(this,"redo")}),undoSelection:_e(function(){ba(this,"undo",!0)}),redoSelection:_e(function(){ba(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,c=0,g=0,m=0;m<a.done.length;m++)a.done[m].ranges||++c;for(var b=0;b<a.undone.length;b++)a.undone[b].ranges||++g;return{undo:c,redo:g}},clearHistory:function(){var a=this;this.history=new ye(this.history.maxGeneration),Ue(this,function(c){return c.history=a.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(a){return a&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(a){return this.history.generation==(a||this.cleanGeneration)},getHistory:function(){return{done:po(this.history.done),undone:po(this.history.undone)}},setHistory:function(a){var c=this.history=new ye(this.history.maxGeneration);c.done=po(a.done.slice(0),null,!0),c.undone=po(a.undone.slice(0),null,!0)},setGutterMarker:_e(function(a,c,g){return Bs(this,a,"gutter",function(m){var b=m.gutterMarkers||(m.gutterMarkers={});return b[c]=g,!g&&T(b)&&(m.gutterMarkers=null),!0})}),clearGutter:_e(function(a){var c=this;this.iter(function(g){g.gutterMarkers&&g.gutterMarkers[a]&&Bs(c,g,"gutter",function(){return g.gutterMarkers[a]=null,T(g.gutterMarkers)&&(g.gutterMarkers=null),!0})})}),lineInfo:function(a){var c;if(typeof a=="number"){if(!Fn(this,a)||(c=a,a=qe(this,a),!a))return null}else if(c=ne(a),c==null)return null;return{line:c,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass:_e(function(a,c,g){return Bs(this,a,c=="gutter"?"gutter":"class",function(m){var b=c=="text"?"textClass":c=="background"?"bgClass":c=="gutter"?"gutterClass":"wrapClass";if(!m[b])m[b]=g;else{if(et(g).test(m[b]))return!1;m[b]+=" "+g}return!0})}),removeLineClass:_e(function(a,c,g){return Bs(this,a,c=="gutter"?"gutter":"class",function(m){var b=c=="text"?"textClass":c=="background"?"bgClass":c=="gutter"?"gutterClass":"wrapClass",F=m[b];if(F)if(g==null)m[b]=null;else{var X=F.match(et(g));if(!X)return!1;var lt=X.index+X[0].length;m[b]=F.slice(0,X.index)+(!X.index||lt==F.length?"":" ")+F.slice(lt)||null}else return!1;return!0})}),addLineWidget:_e(function(a,c,g){return kl(this,a,c,g)}),removeLineWidget:function(a){a.clear()},markText:function(a,c,g){return Tu(this,Je(this,a),Je(this,c),g,g&&g.type||"range")},setBookmark:function(a,c){var g={replacedWith:c&&(c.nodeType==null?c.widget:c),insertLeft:c&&c.insertLeft,clearWhenEmpty:!1,shared:c&&c.shared,handleMouseEvents:c&&c.handleMouseEvents};return a=Je(this,a),Tu(this,a,a,g,"bookmark")},findMarksAt:function(a){a=Je(this,a);var c=[],g=qe(this,a.line).markedSpans;if(g)for(var m=0;m<g.length;++m){var b=g[m];(b.from==null||b.from<=a.ch)&&(b.to==null||b.to>=a.ch)&&c.push(b.marker.parent||b.marker)}return c},findMarks:function(a,c,g){a=Je(this,a),c=Je(this,c);var m=[],b=a.line;return this.iter(a.line,c.line+1,function(F){var X=F.markedSpans;if(X)for(var lt=0;lt<X.length;lt++){var st=X[lt];!(st.to!=null&&b==a.line&&a.ch>=st.to||st.from==null&&b!=a.line||st.from!=null&&b==c.line&&st.from>=c.ch)&&(!g||g(st.marker))&&m.push(st.marker.parent||st.marker)}++b}),m},getAllMarks:function(){var a=[];return this.iter(function(c){var g=c.markedSpans;if(g)for(var m=0;m<g.length;++m)g[m].from!=null&&a.push(g[m].marker)}),a},posFromIndex:function(a){var c,g=this.first,m=this.lineSeparator().length;return this.iter(function(b){var F=b.text.length+m;if(F>a)return c=a,!0;a-=F,++g}),Je(this,Me(g,c))},indexFromPos:function(a){a=Je(this,a);var c=a.ch;if(a.line<this.first||a.ch<0)return 0;var g=this.lineSeparator().length;return this.iter(this.first,a.line,function(m){c+=m.text.length+g}),c},copy:function(a){var c=new Vs(Gn(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return c.scrollTop=this.scrollTop,c.scrollLeft=this.scrollLeft,c.sel=this.sel,c.extend=!1,a&&(c.history.undoDepth=this.history.undoDepth,c.setHistory(this.getHistory())),c},linkedDoc:function(a){a||(a={});var c=this.first,g=this.first+this.size;a.from!=null&&a.from>c&&(c=a.from),a.to!=null&&a.to<g&&(g=a.to);var m=new Vs(Gn(this,c,g),a.mode||this.modeOption,c,this.lineSep,this.direction);return a.sharedHist&&(m.history=this.history),(this.linked||(this.linked=[])).push({doc:m,sharedHist:a.sharedHist}),m.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],Qo(m,Io(this)),m},unlinkDoc:function(a){if(a instanceof gs&&(a=a.doc),this.linked)for(var c=0;c<this.linked.length;++c){var g=this.linked[c];if(g.doc==a){this.linked.splice(c,1),a.unlinkDoc(this),ks(Io(this));break}}if(a.history==this.history){var m=[a.id];Ue(a,function(b){return m.push(b.id)},!0),a.history=new ye(null),a.history.done=po(this.history.done,m),a.history.undone=po(this.history.undone,m)}},iterLinkedDocs:function(a){Ue(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):Di(a)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:_e(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(c){return c.order=null}),this.cm&&Oe(this.cm))})}),Vs.prototype.eachLine=Vs.prototype.iter;var Nl=0;function zu(a){var c=this;if(x(c),!(xe(c,a)||Ln(c.display,a))){En(a),_&&(Nl=+new Date);var g=ja(c,a,!0),m=a.dataTransfer.files;if(!(!g||c.isReadOnly()))if(m&&m.length&&window.FileReader&&window.File)for(var b=m.length,F=Array(b),X=0,lt=function(){++X==b&&Ye(c,function(){g=Je(c.doc,g);var Xe={from:g,to:g,text:c.doc.splitLines(F.filter(function(Kn){return Kn!=null}).join(c.doc.lineSeparator())),origin:"paste"};bs(c.doc,Xe),xr(c.doc,co(Je(c.doc,g),Je(c.doc,S(Xe))))})()},st=function(Xe,Kn){if(c.options.allowDropFileTypes&&it(c.options.allowDropFileTypes,Xe.type)==-1){lt();return}var ei=new FileReader;ei.onerror=function(){return lt()},ei.onload=function(){var yi=ei.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(yi)){lt();return}F[Kn]=yi,lt()},ei.readAsText(Xe)},Pt=0;Pt<m.length;Pt++)st(m[Pt],Pt);else{if(c.state.draggingText&&c.doc.sel.contains(g)>-1){c.state.draggingText(a),setTimeout(function(){return c.display.input.focus()},20);return}try{var Ee=a.dataTransfer.getData("Text");if(Ee){var Wt;if(c.state.draggingText&&!c.state.draggingText.copy&&(Wt=c.listSelections()),ms(c.doc,co(g,g)),Wt)for(var rn=0;rn<Wt.length;++rn)Tl(c.doc,"",Wt[rn].anchor,Wt[rn].head,"drag");c.replaceSelection(Ee,"around","paste"),c.display.input.focus()}}catch(Xe){}}}}function C(a,c){if(_&&(!a.state.draggingText||+new Date-Nl<100)){ci(c);return}if(!(xe(a,c)||Ln(a.display,c))&&(c.dataTransfer.setData("Text",a.getSelection()),c.dataTransfer.effectAllowed="copyMove",c.dataTransfer.setDragImage&&!kt)){var g=Qt("img",null,null,"position: fixed; left: 0; top: 0;");g.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Q&&(g.width=g.height=1,a.display.wrapper.appendChild(g),g._top=g.offsetTop),c.dataTransfer.setDragImage(g,0,0),Q&&g.parentNode.removeChild(g)}}function f(a,c){var g=ja(a,c);if(g){var m=document.createDocumentFragment();_o(a,g,m),a.display.dragCursor||(a.display.dragCursor=Qt("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),Kt(a.display.dragCursor,m)}}function x(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function A(a){if(document.getElementsByClassName){for(var c=document.getElementsByClassName("CodeMirror"),g=[],m=0;m<c.length;m++){var b=c[m].CodeMirror;b&&g.push(b)}g.length&&g[0].operation(function(){for(var F=0;F<g.length;F++)a(g[F])})}}var H=!1;function J(){H||(Et(),H=!0)}function Et(){var a;Ce(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,A(Zt)},100))}),Ce(window,"blur",function(){return A(Yu)})}function Zt(a){var c=a.display;c.cachedCharWidth=c.cachedTextHeight=c.cachedPaddingH=null,c.scrollbarsClipped=!1,a.setSize()}for(var Xt={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"},Be=0;Be<10;Be++)Xt[Be+48]=Xt[Be+96]=String(Be);for(var un=65;un<=90;un++)Xt[un]=String.fromCharCode(un);for(var Dn=1;Dn<=12;Dn++)Xt[Dn+111]=Xt[Dn+63235]="F"+Dn;var Qn={};Qn.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"},Qn.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"},Qn.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"},Qn.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"]},Qn.default=Mt?Qn.macDefault:Qn.pcDefault;function si(a){var c=a.split(/-(?!$)/);a=c[c.length-1];for(var g,m,b,F,X=0;X<c.length-1;X++){var lt=c[X];if(/^(cmd|meta|m)$/i.test(lt))F=!0;else if(/^a(lt)?$/i.test(lt))g=!0;else if(/^(c|ctrl|control)$/i.test(lt))m=!0;else if(/^s(hift)?$/i.test(lt))b=!0;else throw new Error("Unrecognized modifier name: "+lt)}return g&&(a="Alt-"+a),m&&(a="Ctrl-"+a),F&&(a="Cmd-"+a),b&&(a="Shift-"+a),a}function Yi(a){var c={};for(var g in a)if(a.hasOwnProperty(g)){var m=a[g];if(/^(name|fallthrough|(de|at)tach)$/.test(g))continue;if(m=="..."){delete a[g];continue}for(var b=fn(g.split(" "),si),F=0;F<b.length;F++){var X=void 0,lt=void 0;F==b.length-1?(lt=b.join(" "),X=m):(lt=b.slice(0,F+1).join(" "),X="...");var st=c[lt];if(!st)c[lt]=X;else if(st!=X)throw new Error("Inconsistent bindings for "+lt)}delete a[g]}for(var Pt in c)a[Pt]=c[Pt];return a}function Xi(a,c,g,m){c=Ao(c);var b=c.call?c.call(a,m):c[a];if(b===!1)return"nothing";if(b==="...")return"multi";if(b!=null&&g(b))return"handled";if(c.fallthrough){if(Object.prototype.toString.call(c.fallthrough)!="[object Array]")return Xi(a,c.fallthrough,g,m);for(var F=0;F<c.fallthrough.length;F++){var X=Xi(a,c.fallthrough[F],g,m);if(X)return X}}}function Ar(a){var c=typeof a=="string"?a:Xt[a.keyCode];return c=="Ctrl"||c=="Alt"||c=="Shift"||c=="Mod"}function Pr(a,c,g){var m=a;return c.altKey&&m!="Alt"&&(a="Alt-"+a),(Nt?c.metaKey:c.ctrlKey)&&m!="Ctrl"&&(a="Ctrl-"+a),(Nt?c.ctrlKey:c.metaKey)&&m!="Mod"&&(a="Cmd-"+a),!g&&c.shiftKey&&m!="Shift"&&(a="Shift-"+a),a}function ko(a,c){if(Q&&a.keyCode==34&&a.char)return!1;var g=Xt[a.keyCode];return g==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(g=a.code),Pr(g,a,c))}function Ao(a){return typeof a=="string"?Qn[a]:a}function jo(a,c){for(var g=a.doc.sel.ranges,m=[],b=0;b<g.length;b++){for(var F=c(g[b]);m.length&&In(F.from,$n(m).to)<=0;){var X=m.pop();if(In(X.from,F.from)<0){F.from=X.from;break}}m.push(F)}me(a,function(){for(var lt=m.length-1;lt>=0;lt--)Tl(a.doc,"",m[lt].from,m[lt].to,"+delete");Bl(a)})}function ns(a,c,g){var m=Ct(a.text,c+g,g);return m<0||m>a.text.length?null:m}function So(a,c,g){var m=ns(a,c.ch,g);return m==null?null:new Me(c.line,m,g<0?"after":"before")}function Fr(a,c,g,m,b){if(a){c.doc.direction=="rtl"&&(b=-b);var F=Ge(g,c.doc.direction);if(F){var X=b<0?$n(F):F[0],lt=b<0==(X.level==1),st=lt?"after":"before",Pt;if(X.level>0||c.doc.direction=="rtl"){var Ee=Es(c,g);Pt=b<0?g.text.length-1:0;var Wt=Qs(c,Ee,Pt).top;Pt=xt(function(rn){return Qs(c,Ee,rn).top==Wt},b<0==(X.level==1)?X.from:X.to-1,Pt),st=="before"&&(Pt=ns(g,Pt,1))}else Pt=b<0?X.to:X.from;return new Me(m,Pt,st)}}return new Me(m,b<0?g.text.length:0,b<0?"before":"after")}function wo(a,c,g,m){var b=Ge(c,a.doc.direction);if(!b)return So(c,g,m);g.ch>=c.text.length?(g.ch=c.text.length,g.sticky="before"):g.ch<=0&&(g.ch=0,g.sticky="after");var F=_t(b,g.ch,g.sticky),X=b[F];if(a.doc.direction=="ltr"&&X.level%2==0&&(m>0?X.to>g.ch:X.from<g.ch))return So(c,g,m);var lt=function(Zi,Cr){return ns(c,Zi instanceof Me?Zi.ch:Zi,Cr)},st,Pt=function(Zi){return a.options.lineWrapping?(st=st||Es(a,c),Zu(a,c,st,Zi)):{begin:0,end:c.text.length}},Ee=Pt(g.sticky=="before"?lt(g,-1):g.ch);if(a.doc.direction=="rtl"||X.level==1){var Wt=X.level==1==m<0,rn=lt(g,Wt?1:-1);if(rn!=null&&(Wt?rn<=X.to&&rn<=Ee.end:rn>=X.from&&rn>=Ee.begin)){var Xe=Wt?"before":"after";return new Me(g.line,rn,Xe)}}var Kn=function(Zi,Cr,ar){for(var Dr=function(ua,nl){return nl?new Me(g.line,lt(ua,1),"before"):new Me(g.line,ua,"after")};Zi>=0&&Zi<b.length;Zi+=Cr){var fo=b[Zi],or=Cr>0==(fo.level!=1),Vo=or?ar.begin:lt(ar.end,-1);if(fo.from<=Vo&&Vo<fo.to||(Vo=or?fo.from:lt(fo.to,-1),ar.begin<=Vo&&Vo<ar.end))return Dr(Vo,or)}},ei=Kn(F+m,m,Ee);if(ei)return ei;var yi=m>0?Ee.end:lt(Ee.begin,-1);return yi!=null&&!(m>0&&yi==c.text.length)&&(ei=Kn(m>0?0:b.length-1,m,Pt(yi)),ei)?ei:null}var Go={selectAll:zo,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),de)},killLine:function(a){return jo(a,function(c){if(c.empty()){var g=qe(a.doc,c.head.line).text.length;return c.head.ch==g&&c.head.line<a.lastLine()?{from:c.head,to:Me(c.head.line+1,0)}:{from:c.head,to:Me(c.head.line,g)}}else return{from:c.from(),to:c.to()}})},deleteLine:function(a){return jo(a,function(c){return{from:Me(c.from().line,0),to:Je(a.doc,Me(c.to().line+1,0))}})},delLineLeft:function(a){return jo(a,function(c){return{from:Me(c.from().line,0),to:c.from()}})},delWrappedLineLeft:function(a){return jo(a,function(c){var g=a.charCoords(c.head,"div").top+5,m=a.coordsChar({left:0,top:g},"div");return{from:m,to:c.from()}})},delWrappedLineRight:function(a){return jo(a,function(c){var g=a.charCoords(c.head,"div").top+5,m=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:g},"div");return{from:c.from(),to:m}})},undo:function(a){return a.undo()},redo:function(a){return a.redo()},undoSelection:function(a){return a.undoSelection()},redoSelection:function(a){return a.redoSelection()},goDocStart:function(a){return a.extendSelection(Me(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(Me(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(c){return Na(a,c.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(c){return Sa(a,c.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(c){return ta(a,c.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(c){var g=a.cursorCoords(c.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:g},"div")},vn)},goLineLeft:function(a){return a.extendSelectionsBy(function(c){var g=a.cursorCoords(c.head,"div").top+5;return a.coordsChar({left:0,top:g},"div")},vn)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(c){var g=a.cursorCoords(c.head,"div").top+5,m=a.coordsChar({left:0,top:g},"div");return m.ch<a.getLine(m.line).search(/\S/)?Sa(a,c.head):m},vn)},goLineUp:function(a){return a.moveV(-1,"line")},goLineDown:function(a){return a.moveV(1,"line")},goPageUp:function(a){return a.moveV(-1,"page")},goPageDown:function(a){return a.moveV(1,"page")},goCharLeft:function(a){return a.moveH(-1,"char")},goCharRight:function(a){return a.moveH(1,"char")},goColumnLeft:function(a){return a.moveH(-1,"column")},goColumnRight:function(a){return a.moveH(1,"column")},goWordLeft:function(a){return a.moveH(-1,"word")},goGroupRight:function(a){return a.moveH(1,"group")},goGroupLeft:function(a){return a.moveH(-1,"group")},goWordRight:function(a){return a.moveH(1,"word")},delCharBefore:function(a){return a.deleteH(-1,"codepoint")},delCharAfter:function(a){return a.deleteH(1,"char")},delWordBefore:function(a){return a.deleteH(-1,"word")},delWordAfter:function(a){return a.deleteH(1,"word")},delGroupBefore:function(a){return a.deleteH(-1,"group")},delGroupAfter:function(a){return a.deleteH(1,"group")},indentAuto:function(a){return a.indentSelection("smart")},indentMore:function(a){return a.indentSelection("add")},indentLess:function(a){return a.indentSelection("subtract")},insertTab:function(a){return a.replaceSelection(" ")},insertSoftTab:function(a){for(var c=[],g=a.listSelections(),m=a.options.tabSize,b=0;b<g.length;b++){var F=g[b].from(),X=zt(a.getLine(F.line),F.ch,m);c.push(_n(m-X%m))}a.replaceSelections(c)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return me(a,function(){for(var c=a.listSelections(),g=[],m=0;m<c.length;m++)if(c[m].empty()){var b=c[m].head,F=qe(a.doc,b.line).text;if(F){if(b.ch==F.length&&(b=new Me(b.line,b.ch-1)),b.ch>0)b=new Me(b.line,b.ch+1),a.replaceRange(F.charAt(b.ch-1)+F.charAt(b.ch-2),Me(b.line,b.ch-2),b,"+transpose");else if(b.line>a.doc.first){var X=qe(a.doc,b.line-1).text;X&&(b=new Me(b.line,1),a.replaceRange(F.charAt(0)+a.doc.lineSeparator()+X.charAt(X.length-1),Me(b.line-1,X.length-1),b,"+transpose"))}}g.push(new Bi(b,b))}a.setSelections(g)})},newlineAndIndent:function(a){return me(a,function(){for(var c=a.listSelections(),g=c.length-1;g>=0;g--)a.replaceRange(a.doc.lineSeparator(),c[g].anchor,c[g].head,"+input");c=a.listSelections();for(var m=0;m<c.length;m++)a.indentLine(c[m].from().line,null,!0);Bl(a)})},openLine:function(a){return a.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function Na(a,c){var g=qe(a.doc,c),m=se(g);return m!=g&&(c=ne(m)),Fr(!0,a,m,c,1)}function ta(a,c){var g=qe(a.doc,c),m=kr(g);return m!=g&&(c=ne(m)),Fr(!0,a,g,c,-1)}function Sa(a,c){var g=Na(a,c.line),m=qe(a.doc,g.line),b=Ge(m,a.doc.direction);if(!b||b[0].level==0){var F=Math.max(g.ch,m.text.search(/\S/)),X=c.line==g.line&&c.ch<=F&&c.ch;return Me(g.line,X?0:F,g.sticky)}return g}function $l(a,c,g){if(typeof c=="string"&&(c=Go[c],!c))return!1;a.display.input.ensurePolled();var m=a.display.shift,b=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),g&&(a.display.shift=!1),b=c(a)!=Ae}finally{a.display.shift=m,a.state.suppressEdits=!1}return b}function Ka(a,c,g){for(var m=0;m<a.state.keyMaps.length;m++){var b=Xi(c,a.state.keyMaps[m],g,a);if(b)return b}return a.options.extraKeys&&Xi(c,a.options.extraKeys,g,a)||Xi(c,a.options.keyMap,g,a)}var wa=new nt;function hl(a,c,g,m){var b=a.state.keySeq;if(b){if(Ar(c))return"handled";if(/\'$/.test(c)?a.state.keySeq=null:wa.set(50,function(){a.state.keySeq==b&&(a.state.keySeq=null,a.display.input.reset())}),Ec(a,b+" "+c,g,m))return!0}return Ec(a,c,g,m)}function Ec(a,c,g,m){var b=Ka(a,c,m);return b=="multi"&&(a.state.keySeq=c),b=="handled"&&ri(a,"keyHandled",a,c,g),(b=="handled"||b=="multi")&&(En(g),hs(a)),!!b}function Tc(a,c){var g=ko(c,!0);return g?c.shiftKey&&!a.state.keySeq?hl(a,"Shift-"+g,c,function(m){return $l(a,m,!0)})||hl(a,g,c,function(m){if(typeof m=="string"?/^go[A-Z]/.test(m):m.motion)return $l(a,m)}):hl(a,g,c,function(m){return $l(a,m)}):!1}function xh(a,c,g){return hl(a,"'"+g+"'",c,function(m){return $l(a,m,!0)})}var hu=null;function cc(a){var c=this;if(!(a.target&&a.target!=c.display.input.getField())&&(c.curOp.focus=Ht(),!xe(c,a))){_&&K<11&&a.keyCode==27&&(a.returnValue=!1);var g=a.keyCode;c.display.shift=g==16||a.shiftKey;var m=Tc(c,a);Q&&(hu=m?g:null,!m&&g==88&&!fr&&(Mt?a.metaKey:a.ctrlKey)&&c.replaceSelection("",null,"cut")),y&&!Mt&&!m&&g==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),g==18&&!/\bCodeMirror-crosshair\b/.test(c.display.lineDiv.className)&&du(c)}}function du(a){var c=a.display.lineDiv;Pe(c,"CodeMirror-crosshair");function g(m){(m.keyCode==18||!m.altKey)&&(Rt(c,"CodeMirror-crosshair"),Qe(document,"keyup",g),Qe(document,"mouseover",g))}Ce(document,"keyup",g),Ce(document,"mouseover",g)}function th(a){a.keyCode==16&&(this.doc.sel.shift=!1),xe(this,a)}function ku(a){var c=this;if(!(a.target&&a.target!=c.display.input.getField())&&!(Ln(c.display,a)||xe(c,a)||a.ctrlKey&&!a.altKey||Mt&&a.metaKey)){var g=a.keyCode,m=a.charCode;if(Q&&g==hu){hu=null,En(a);return}if(!(Q&&(!a.which||a.which<10)&&Tc(c,a))){var b=String.fromCharCode(m==null?g:m);b!="\b"&&(xh(c,a,b)||c.display.input.onKeyPress(a))}}}var eh=400,gd=function(a,c,g){this.time=a,this.pos=c,this.button=g};gd.prototype.compare=function(a,c,g){return this.time+eh>a&&In(c,this.pos)==0&&g==this.button};var Xu,$u;function bh(a,c){var g=+new Date;return $u&&$u.compare(g,a,c)?(Xu=$u=null,"triple"):Xu&&Xu.compare(g,a,c)?($u=new gd(g,a,c),Xu=null,"double"):(Xu=new gd(g,a,c),$u=null,"single")}function pu(a){var c=this,g=c.display;if(!(xe(c,a)||g.activeTouch&&g.input.supportsTouch())){if(g.input.ensurePolled(),g.shift=a.shiftKey,Ln(g,a)){I||(g.scroller.draggable=!1,setTimeout(function(){return g.scroller.draggable=!0},100));return}if(!ih(c,a)){var m=ja(c,a),b=vi(a),F=m?bh(m,b):"single";window.focus(),b==1&&c.state.selectingText&&c.state.selectingText(a),!(m&&_d(c,b,m,F,a))&&(b==1?m?vp(c,m,F,a):Si(a)==g.scroller&&En(a):b==2?(m&&bo(c.doc,m),setTimeout(function(){return g.input.focus()},20)):b==3&&(Ut?c.display.input.onContextMenu(a):Rs(c)))}}}function _d(a,c,g,m,b){var F="Click";return m=="double"?F="Double"+F:m=="triple"&&(F="Triple"+F),F=(c==1?"Left":c==2?"Middle":"Right")+F,hl(a,Pr(F,b),b,function(X){if(typeof X=="string"&&(X=Go[X]),!X)return!1;var lt=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),lt=X(a,g)!=Ae}finally{a.state.suppressEdits=!1}return lt})}function vd(a,c,g){var m=a.getOption("configureMouse"),b=m?m(a,c,g):{};if(b.unit==null){var F=ft?g.shiftKey&&g.metaKey:g.altKey;b.unit=F?"rectangle":c=="single"?"char":c=="double"?"word":"line"}return(b.extend==null||a.doc.extend)&&(b.extend=a.doc.extend||g.shiftKey),b.addNew==null&&(b.addNew=Mt?g.metaKey:g.ctrlKey),b.moveOnDrag==null&&(b.moveOnDrag=!(Mt?g.altKey:g.ctrlKey)),b}function vp(a,c,g,m){_?setTimeout(pe(Ts,a),0):a.curOp.focus=Ht();var b=vd(a,g,m),F=a.doc.sel,X;a.options.dragDrop&&qn&&!a.isReadOnly()&&g=="single"&&(X=F.contains(c))>-1&&(In((X=F.ranges[X]).from(),c)<0||c.xRel>0)&&(In(X.to(),c)>0||c.xRel<0)?Wh(a,m,c,b):yp(a,m,c,b)}function Wh(a,c,g,m){var b=a.display,F=!1,X=Ye(a,function(Pt){I&&(b.scroller.draggable=!1),a.state.draggingText=!1,Qe(b.wrapper.ownerDocument,"mouseup",X),Qe(b.wrapper.ownerDocument,"mousemove",lt),Qe(b.scroller,"dragstart",st),Qe(b.scroller,"drop",X),F||(En(Pt),m.addNew||bo(a.doc,g,null,null,m.extend),I&&!kt||_&&K==9?setTimeout(function(){b.wrapper.ownerDocument.body.focus({preventScroll:!0}),b.input.focus()},20):b.input.focus())}),lt=function(Pt){F=F||Math.abs(c.clientX-Pt.clientX)+Math.abs(c.clientY-Pt.clientY)>=10},st=function(){return F=!0};I&&(b.scroller.draggable=!0),a.state.draggingText=X,X.copy=!m.moveOnDrag,b.scroller.dragDrop&&b.scroller.dragDrop(),Ce(b.wrapper.ownerDocument,"mouseup",X),Ce(b.wrapper.ownerDocument,"mousemove",lt),Ce(b.scroller,"dragstart",st),Ce(b.scroller,"drop",X),Rs(a),setTimeout(function(){return b.input.focus()},20)}function yd(a,c,g){if(g=="char")return new Bi(c,c);if(g=="word")return a.findWordAt(c);if(g=="line")return new Bi(Me(c.line,0),Je(a.doc,Me(c.line+1,0)));var m=g(a,c);return new Bi(m.from,m.to)}function yp(a,c,g,m){var b=a.display,F=a.doc;En(c);var X,lt,st=F.sel,Pt=st.ranges;if(m.addNew&&!m.extend?(lt=F.sel.contains(g),lt>-1?X=Pt[lt]:X=new Bi(g,g)):(X=F.sel.primary(),lt=F.sel.primIndex),m.unit=="rectangle")m.addNew||(X=new Bi(g,g)),g=ja(a,c,!0,!0),lt=-1;else{var Ee=yd(a,g,m.unit);m.extend?X=ds(X,Ee.anchor,Ee.head,m.extend):X=Ee}m.addNew?lt==-1?(lt=Pt.length,vo(F,no(a,Pt.concat([X]),lt),{scroll:!1,origin:"*mouse"})):Pt.length>1&&Pt[lt].empty()&&m.unit=="char"&&!m.extend?(vo(F,no(a,Pt.slice(0,lt).concat(Pt.slice(lt+1)),0),{scroll:!1,origin:"*mouse"}),st=F.sel):rr(F,lt,X,en):(lt=0,vo(F,new $r([X],0),en),st=F.sel);var Wt=g;function rn(ar){if(In(Wt,ar)!=0)if(Wt=ar,m.unit=="rectangle"){for(var Dr=[],fo=a.options.tabSize,or=zt(qe(F,g.line).text,g.ch,fo),Vo=zt(qe(F,ar.line).text,ar.ch,fo),ua=Math.min(or,Vo),nl=Math.max(or,Vo),ya=Math.min(g.line,ar.line),mu=Math.min(a.lastLine(),Math.max(g.line,ar.line));ya<=mu;ya++){var jl=qe(F,ya).text,Ya=Xn(jl,ua,fo);ua==nl?Dr.push(new Bi(Me(ya,Ya),Me(ya,Ya))):jl.length>Ya&&Dr.push(new Bi(Me(ya,Ya),Me(ya,Xn(jl,nl,fo))))}Dr.length||Dr.push(new Bi(g,g)),vo(F,no(a,st.ranges.slice(0,lt).concat(Dr),lt),{origin:"*mouse",scroll:!1}),a.scrollIntoView(ar)}else{var Nu=X,Il=yd(a,ar,m.unit),Xa=Nu.anchor,Ss;In(Il.anchor,Xa)>0?(Ss=Il.head,Xa=Le(Nu.from(),Il.anchor)):(Ss=Il.anchor,Xa=He(Nu.to(),Il.head));var Ca=st.ranges.slice(0);Ca[lt]=xd(a,new Bi(Je(F,Xa),Ss)),vo(F,no(a,Ca,lt),en)}}var Xe=b.wrapper.getBoundingClientRect(),Kn=0;function ei(ar){var Dr=++Kn,fo=ja(a,ar,!0,m.unit=="rectangle");if(fo)if(In(fo,Wt)!=0){a.curOp.focus=Ht(),rn(fo);var or=Bo(b,F);(fo.line>=or.to||fo.line<or.from)&&setTimeout(Ye(a,function(){Kn==Dr&&ei(ar)}),150)}else{var Vo=ar.clientY<Xe.top?-20:ar.clientY>Xe.bottom?20:0;Vo&&setTimeout(Ye(a,function(){Kn==Dr&&(b.scroller.scrollTop+=Vo,ei(ar))}),50)}}function yi(ar){a.state.selectingText=!1,Kn=1/0,ar&&(En(ar),b.input.focus()),Qe(b.wrapper.ownerDocument,"mousemove",Zi),Qe(b.wrapper.ownerDocument,"mouseup",Cr),F.history.lastSelOrigin=null}var Zi=Ye(a,function(ar){ar.buttons===0||!vi(ar)?yi(ar):ei(ar)}),Cr=Ye(a,yi);a.state.selectingText=Cr,Ce(b.wrapper.ownerDocument,"mousemove",Zi),Ce(b.wrapper.ownerDocument,"mouseup",Cr)}function xd(a,c){var g=c.anchor,m=c.head,b=qe(a.doc,g.line);if(In(g,m)==0&&g.sticky==m.sticky)return c;var F=Ge(b);if(!F)return c;var X=_t(F,g.ch,g.sticky),lt=F[X];if(lt.from!=g.ch&<.to!=g.ch)return c;var st=X+(lt.from==g.ch==(lt.level!=1)?0:1);if(st==0||st==F.length)return c;var Pt;if(m.line!=g.line)Pt=(m.line-g.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var Ee=_t(F,m.ch,m.sticky),Wt=Ee-X||(m.ch-g.ch)*(lt.level==1?-1:1);Ee==st-1||Ee==st?Pt=Wt<0:Pt=Wt>0}var rn=F[st+(Pt?-1:0)],Xe=Pt==(rn.level==1),Kn=Xe?rn.from:rn.to,ei=Xe?"after":"before";return g.ch==Kn&&g.sticky==ei?c:new Bi(new Me(g.line,Kn,ei),m)}function nh(a,c,g,m){var b,F;if(c.touches)b=c.touches[0].clientX,F=c.touches[0].clientY;else try{b=c.clientX,F=c.clientY}catch(rn){return!1}if(b>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;m&&En(c);var X=a.display,lt=X.lineDiv.getBoundingClientRect();if(F>lt.bottom||!Ne(a,g))return On(c);F-=lt.top-X.viewOffset;for(var st=0;st<a.display.gutterSpecs.length;++st){var Pt=X.gutters.childNodes[st];if(Pt&&Pt.getBoundingClientRect().right>=b){var Ee=dn(a.doc,F),Wt=a.display.gutterSpecs[st];return Bt(a,g,a,Ee,Wt.className,c),On(c)}}}function ih(a,c){return nh(a,c,"gutterClick",!0)}function xp(a,c){Ln(a.display,c)||m0(a,c)||xe(a,c,"contextmenu")||Ut||a.display.input.onContextMenu(c)}function m0(a,c){return Ne(a,"gutterContextMenu")?nh(a,c,"gutterContextMenu",!1):!1}function bp(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),As(a)}var Sh={toString:function(){return"CodeMirror.Init"}},cf={},Hd={};function g0(a){var c=a.optionHandlers;function g(m,b,F,X){a.defaults[m]=b,F&&(c[m]=X?function(lt,st,Pt){Pt!=Sh&&F(lt,st,Pt)}:F)}a.defineOption=g,a.Init=Sh,g("value","",function(m,b){return m.setValue(b)},!0),g("mode",null,function(m,b){m.doc.modeOption=b,ut(m)},!0),g("indentUnit",2,ut,!0),g("indentWithTabs",!1),g("smartIndent",!0),g("tabSize",4,function(m){bt(m),As(m),xs(m)},!0),g("lineSeparator",null,function(m,b){if(m.doc.lineSep=b,!!b){var F=[],X=m.doc.first;m.doc.iter(function(st){for(var Pt=0;;){var Ee=st.text.indexOf(b,Pt);if(Ee==-1)break;Pt=Ee+b.length,F.push(Me(X,Ee))}X++});for(var lt=F.length-1;lt>=0;lt--)Tl(m.doc,b,F[lt],Me(F[lt].line,F[lt].ch+b.length))}}),g("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(m,b,F){m.state.specialChars=new RegExp(b.source+(b.test(" ")?"":"| "),"g"),F!=Sh&&m.refresh()}),g("specialCharPlaceholder",ys,function(m){return m.refresh()},!0),g("electricChars",!0),g("inputStyle",Tt?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),g("spellcheck",!1,function(m,b){return m.getInputField().spellcheck=b},!0),g("autocorrect",!1,function(m,b){return m.getInputField().autocorrect=b},!0),g("autocapitalize",!1,function(m,b){return m.getInputField().autocapitalize=b},!0),g("rtlMoveVisually",!It),g("wholeLineUpdateBefore",!0),g("theme","default",function(m){bp(m),Li(m)},!0),g("keyMap","default",function(m,b,F){var X=Ao(b),lt=F!=Sh&&Ao(F);lt&<.detach&<.detach(m,X),X.attach&&X.attach(m,lt||null)}),g("extraKeys",null),g("configureMouse",null),g("lineWrapping",!1,v0,!0),g("gutters",[],function(m,b){m.display.gutterSpecs=jt(b,m.options.lineNumbers),Li(m)},!0),g("fixedGutter",!0,function(m,b){m.display.gutters.style.left=b?sc(m.display)+"px":"0",m.refresh()},!0),g("coverGutterNextToScrollbar",!1,function(m){return Yl(m)},!0),g("scrollbarStyle","native",function(m){Xc(m),Yl(m),m.display.scrollbars.setScrollTop(m.doc.scrollTop),m.display.scrollbars.setScrollLeft(m.doc.scrollLeft)},!0),g("lineNumbers",!1,function(m,b){m.display.gutterSpecs=jt(m.options.gutters,b),Li(m)},!0),g("firstLineNumber",1,Li,!0),g("lineNumberFormatter",function(m){return m},Li,!0),g("showCursorWhenSelecting",!1,ra,!0),g("resetSelectionOnContextMenu",!0),g("lineWiseCopyCut",!0),g("pasteLinesPerSelection",!0),g("selectionsMayTouch",!1),g("readOnly",!1,function(m,b){b=="nocursor"&&(Yu(m),m.display.input.blur()),m.display.input.readOnlyChanged(b)}),g("screenReaderLabel",null,function(m,b){b=b===""?null:b,m.display.input.screenReaderLabelChanged(b)}),g("disableInput",!1,function(m,b){b||m.display.input.reset()},!0),g("dragDrop",!0,Sp),g("allowDropFileTypes",null),g("cursorBlinkRate",530),g("cursorScrollMargin",0),g("cursorHeight",1,ra,!0),g("singleCursorHeightPerLine",!0,ra,!0),g("workTime",100),g("workDelay",100),g("flattenSpans",!0,bt,!0),g("addModeClass",!1,bt,!0),g("pollInterval",100),g("undoDepth",200,function(m,b){return m.doc.history.undoDepth=b}),g("historyEventDelay",1250),g("viewportMargin",10,function(m){return m.refresh()},!0),g("maxHighlightLength",1e4,bt,!0),g("moveInputWithCursor",!0,function(m,b){b||m.display.input.resetPosition()}),g("tabindex",null,function(m,b){return m.display.input.getField().tabIndex=b||""}),g("autofocus",null),g("direction","ltr",function(m,b){return m.doc.setDirection(b)},!0),g("phrases",null)}function Sp(a,c,g){var m=g&&g!=Sh;if(!c!=!m){var b=a.display.dragFunctions,F=c?Ce:Qe;F(a.display.scroller,"dragstart",b.start),F(a.display.scroller,"dragenter",b.enter),F(a.display.scroller,"dragover",b.over),F(a.display.scroller,"dragleave",b.leave),F(a.display.scroller,"drop",b.drop)}}function v0(a){a.options.lineWrapping?(Pe(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Rt(a.display.wrapper,"CodeMirror-wrap"),Us(a)),Lr(a),xs(a),As(a),setTimeout(function(){return Yl(a)},100)}function gs(a,c){var g=this;if(!(this instanceof gs))return new gs(a,c);this.options=c=c?ln(c):{},ln(cf,c,!1);var m=c.value;typeof m=="string"?m=new Vs(m,c.mode,null,c.lineSeparator,c.direction):c.mode&&(m.modeOption=c.mode),this.doc=m;var b=new gs.inputStyles[c.inputStyle](this),F=this.display=new sr(a,m,b,c);F.wrapper.CodeMirror=this,bp(this),c.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Xc(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 nt,keySeq:null,specialChars:null},c.autofocus&&!Tt&&F.input.focus(),_&&K<11&&setTimeout(function(){return g.display.input.reset(!0)},20),bd(this),J(),_s(this),this.curOp.forceUpdate=!0,he(this,m),c.autofocus&&!Tt||this.hasFocus()?setTimeout(function(){g.hasFocus()&&!g.state.focused&&Ho(g)},20):Yu(this);for(var X in Hd)Hd.hasOwnProperty(X)&&Hd[X](this,c[X],Sh);Oi(this),c.finishInit&&c.finishInit(this);for(var lt=0;lt<Vh.length;++lt)Vh[lt](this);cu(this),I&&c.lineWrapping&&getComputedStyle(F.lineDiv).textRendering=="optimizelegibility"&&(F.lineDiv.style.textRendering="auto")}gs.defaults=cf,gs.optionHandlers=Hd;function bd(a){var c=a.display;Ce(c.scroller,"mousedown",Ye(a,pu)),_&&K<11?Ce(c.scroller,"dblclick",Ye(a,function(st){if(!xe(a,st)){var Pt=ja(a,st);if(!(!Pt||ih(a,st)||Ln(a.display,st))){En(st);var Ee=a.findWordAt(Pt);bo(a.doc,Ee.anchor,Ee.head)}}})):Ce(c.scroller,"dblclick",function(st){return xe(a,st)||En(st)}),Ce(c.scroller,"contextmenu",function(st){return xp(a,st)}),Ce(c.input.getField(),"contextmenu",function(st){c.scroller.contains(st.target)||xp(a,st)});var g,m={end:0};function b(){c.activeTouch&&(g=setTimeout(function(){return c.activeTouch=null},1e3),m=c.activeTouch,m.end=+new Date)}function F(st){if(st.touches.length!=1)return!1;var Pt=st.touches[0];return Pt.radiusX<=1&&Pt.radiusY<=1}function X(st,Pt){if(Pt.left==null)return!0;var Ee=Pt.left-st.left,Wt=Pt.top-st.top;return Ee*Ee+Wt*Wt>20*20}Ce(c.scroller,"touchstart",function(st){if(!xe(a,st)&&!F(st)&&!ih(a,st)){c.input.ensurePolled(),clearTimeout(g);var Pt=+new Date;c.activeTouch={start:Pt,moved:!1,prev:Pt-m.end<=300?m:null},st.touches.length==1&&(c.activeTouch.left=st.touches[0].pageX,c.activeTouch.top=st.touches[0].pageY)}}),Ce(c.scroller,"touchmove",function(){c.activeTouch&&(c.activeTouch.moved=!0)}),Ce(c.scroller,"touchend",function(st){var Pt=c.activeTouch;if(Pt&&!Ln(c,st)&&Pt.left!=null&&!Pt.moved&&new Date-Pt.start<300){var Ee=a.coordsChar(c.activeTouch,"page"),Wt;!Pt.prev||X(Pt,Pt.prev)?Wt=new Bi(Ee,Ee):!Pt.prev.prev||X(Pt,Pt.prev.prev)?Wt=a.findWordAt(Ee):Wt=new Bi(Me(Ee.line,0),Je(a.doc,Me(Ee.line+1,0))),a.setSelection(Wt.anchor,Wt.head),a.focus(),En(st)}b()}),Ce(c.scroller,"touchcancel",b),Ce(c.scroller,"scroll",function(){c.scroller.clientHeight&&(Bu(a,c.scroller.scrollTop),uu(a,c.scroller.scrollLeft,!0),Bt(a,"scroll",a))}),Ce(c.scroller,"mousewheel",function(st){return yr(a,st)}),Ce(c.scroller,"DOMMouseScroll",function(st){return yr(a,st)}),Ce(c.wrapper,"scroll",function(){return c.wrapper.scrollTop=c.wrapper.scrollLeft=0}),c.dragFunctions={enter:function(st){xe(a,st)||ci(st)},over:function(st){xe(a,st)||(f(a,st),ci(st))},start:function(st){return C(a,st)},drop:Ye(a,zu),leave:function(st){xe(a,st)||x(a)}};var lt=c.input.getField();Ce(lt,"keyup",function(st){return th.call(a,st)}),Ce(lt,"keydown",Ye(a,cc)),Ce(lt,"keypress",Ye(a,ku)),Ce(lt,"focus",function(st){return Ho(a,st)}),Ce(lt,"blur",function(st){return Yu(a,st)})}var Vh=[];gs.defineInitHook=function(a){return Vh.push(a)};function el(a,c,g,m){var b=a.doc,F;g==null&&(g="add"),g=="smart"&&(b.mode.indent?F=Mi(a,c).state:g="prev");var X=a.options.tabSize,lt=qe(b,c),st=zt(lt.text,null,X);lt.stateAfter&&(lt.stateAfter=null);var Pt=lt.text.match(/^\s*/)[0],Ee;if(!m&&!/\S/.test(lt.text))Ee=0,g="not";else if(g=="smart"&&(Ee=b.mode.indent(F,lt.text.slice(Pt.length),lt.text),Ee==Ae||Ee>150)){if(!m)return;g="prev"}g=="prev"?c>b.first?Ee=zt(qe(b,c-1).text,null,X):Ee=0:g=="add"?Ee=st+a.options.indentUnit:g=="subtract"?Ee=st-a.options.indentUnit:typeof g=="number"&&(Ee=st+g),Ee=Math.max(0,Ee);var Wt="",rn=0;if(a.options.indentWithTabs)for(var Xe=Math.floor(Ee/X);Xe;--Xe)rn+=X,Wt+=" ";if(rn<Ee&&(Wt+=_n(Ee-rn)),Wt!=Pt)return Tl(b,Wt,Me(c,0),Me(c,Pt.length),"+input"),lt.stateAfter=null,!0;for(var Kn=0;Kn<b.sel.ranges.length;Kn++){var ei=b.sel.ranges[Kn];if(ei.head.line==c&&ei.head.ch<Pt.length){var yi=Me(c,Pt.length);rr(b,Kn,new Bi(yi,yi));break}}}var fu=null;function Kh(a){fu=a}function Gd(a,c,g,m,b){var F=a.doc;a.display.shift=!1,m||(m=F.sel);var X=+new Date-200,lt=b=="paste"||a.state.pasteIncoming>X,st=Di(c),Pt=null;if(lt&&m.ranges.length>1)if(fu&&fu.text.join(`
|
|
|
`)==c){if(m.ranges.length%fu.text.length==0){Pt=[];for(var Ee=0;Ee<fu.text.length;Ee++)Pt.push(F.splitLines(fu.text[Ee]))}}else st.length==m.ranges.length&&a.options.pasteLinesPerSelection&&(Pt=fn(st,function(Zi){return[Zi]}));for(var Wt=a.curOp.updateInput,rn=m.ranges.length-1;rn>=0;rn--){var Xe=m.ranges[rn],Kn=Xe.from(),ei=Xe.to();Xe.empty()&&(g&&g>0?Kn=Me(Kn.line,Kn.ch-g):a.state.overwrite&&!lt?ei=Me(ei.line,Math.min(qe(F,ei.line).text.length,ei.ch+$n(st).length)):lt&&fu&&fu.lineWise&&fu.text.join(`
|
|
|
`)==st.join(`
|
|
|
`)&&(Kn=ei=Me(Kn.line,0)));var yi={from:Kn,to:ei,text:Pt?Pt[rn%Pt.length]:st,origin:b||(lt?"paste":a.state.cutIncoming>X?"cut":"+input")};bs(a.doc,yi),ri(a,"inputRead",a,yi)}c&&!lt&&df(a,c),Bl(a),a.curOp.updateInput<2&&(a.curOp.updateInput=Wt),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function hf(a,c){var g=a.clipboardData&&a.clipboardData.getData("Text");if(g)return a.preventDefault(),!c.isReadOnly()&&!c.options.disableInput&&me(c,function(){return Gd(c,g,0,null,"paste")}),!0}function df(a,c){if(!(!a.options.electricChars||!a.options.smartIndent))for(var g=a.doc.sel,m=g.ranges.length-1;m>=0;m--){var b=g.ranges[m];if(!(b.head.ch>100||m&&g.ranges[m-1].head.line==b.head.line)){var F=a.getModeAt(b.head),X=!1;if(F.electricChars){for(var lt=0;lt<F.electricChars.length;lt++)if(c.indexOf(F.electricChars.charAt(lt))>-1){X=el(a,b.head.line,"smart");break}}else F.electricInput&&F.electricInput.test(qe(a.doc,b.head.line).text.slice(0,b.head.ch))&&(X=el(a,b.head.line,"smart"));X&&ri(a,"electricInput",a,b.head.line)}}}function pf(a){for(var c=[],g=[],m=0;m<a.doc.sel.ranges.length;m++){var b=a.doc.sel.ranges[m].head.line,F={anchor:Me(b,0),head:Me(b+1,0)};g.push(F),c.push(a.getRange(F.anchor,F.head))}return{text:c,ranges:g}}function ff(a,c,g,m){a.setAttribute("autocorrect",g?"":"off"),a.setAttribute("autocapitalize",m?"":"off"),a.setAttribute("spellcheck",!!c)}function mf(){var a=Qt("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),c=Qt("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return I?a.style.width="1000px":a.setAttribute("wrap","off"),At&&(a.style.border="1px solid black"),ff(a),c}function wh(a){var c=a.optionHandlers,g=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(m,b){var F=this.options,X=F[m];F[m]==b&&m!="mode"||(F[m]=b,c.hasOwnProperty(m)&&Ye(this,c[m])(this,b,X),Bt(this,"optionChange",this,m))},getOption:function(m){return this.options[m]},getDoc:function(){return this.doc},addKeyMap:function(m,b){this.state.keyMaps[b?"push":"unshift"](Ao(m))},removeKeyMap:function(m){for(var b=this.state.keyMaps,F=0;F<b.length;++F)if(b[F]==m||b[F].name==m)return b.splice(F,1),!0},addOverlay:Ze(function(m,b){var F=m.token?m:a.getMode(this.options,m);if(F.startState)throw new Error("Overlays may not be stateful.");hn(this.state.overlays,{mode:F,modeSpec:m,opaque:b&&b.opaque,priority:b&&b.priority||0},function(X){return X.priority}),this.state.modeGen++,xs(this)}),removeOverlay:Ze(function(m){for(var b=this.state.overlays,F=0;F<b.length;++F){var X=b[F].modeSpec;if(X==m||typeof m=="string"&&X.name==m){b.splice(F,1),this.state.modeGen++,xs(this);return}}}),indentLine:Ze(function(m,b,F){typeof b!="string"&&typeof b!="number"&&(b==null?b=this.options.smartIndent?"smart":"prev":b=b?"add":"subtract"),Fn(this.doc,m)&&el(this,m,b,F)}),indentSelection:Ze(function(m){for(var b=this.doc.sel.ranges,F=-1,X=0;X<b.length;X++){var lt=b[X];if(lt.empty())lt.head.line>F&&(el(this,lt.head.line,m,!0),F=lt.head.line,X==this.doc.sel.primIndex&&Bl(this));else{var st=lt.from(),Pt=lt.to(),Ee=Math.max(F,st.line);F=Math.min(this.lastLine(),Pt.line-(Pt.ch?0:1))+1;for(var Wt=Ee;Wt<F;++Wt)el(this,Wt,m);var rn=this.doc.sel.ranges;st.ch==0&&b.length==rn.length&&rn[X].from().ch>0&&rr(this.doc,X,new Bi(st,rn[X].to()),de)}}}),getTokenAt:function(m,b){return Yr(this,m,b)},getLineTokens:function(m,b){return Yr(this,Me(m),b,!0)},getTokenTypeAt:function(m){m=Je(this.doc,m);var b=ir(this,qe(this.doc,m.line)),F=0,X=(b.length-1)/2,lt=m.ch,st;if(lt==0)st=b[2];else for(;;){var Pt=F+X>>1;if((Pt?b[Pt*2-1]:0)>=lt)X=Pt;else if(b[Pt*2+1]<lt)F=Pt+1;else{st=b[Pt*2+2];break}}var Ee=st?st.indexOf("overlay "):-1;return Ee<0?st:Ee==0?null:st.slice(0,Ee-1)},getModeAt:function(m){var b=this.doc.mode;return b.innerMode?a.innerMode(b,this.getTokenAt(m).state).mode:b},getHelper:function(m,b){return this.getHelpers(m,b)[0]},getHelpers:function(m,b){var F=[];if(!g.hasOwnProperty(b))return F;var X=g[b],lt=this.getModeAt(m);if(typeof lt[b]=="string")X[lt[b]]&&F.push(X[lt[b]]);else if(lt[b])for(var st=0;st<lt[b].length;st++){var Pt=X[lt[b][st]];Pt&&F.push(Pt)}else lt.helperType&&X[lt.helperType]?F.push(X[lt.helperType]):X[lt.name]&&F.push(X[lt.name]);for(var Ee=0;Ee<X._global.length;Ee++){var Wt=X._global[Ee];Wt.pred(lt,this)&&it(F,Wt.val)==-1&&F.push(Wt.val)}return F},getStateAfter:function(m,b){var F=this.doc;return m=tn(F,m==null?F.first+F.size-1:m),Mi(this,m+1,b).state},cursorCoords:function(m,b){var F,X=this.doc.sel.primary();return m==null?F=X.head:typeof m=="object"?F=Je(this.doc,m):F=m?X.from():X.to(),Lo(this,F,b||"page")},charCoords:function(m,b){return tl(this,Je(this.doc,m),b||"page")},coordsChar:function(m,b){return m=Pl(this,m,b||"page"),Ii(this,m.left,m.top)},lineAtHeight:function(m,b){return m=Pl(this,{top:m,left:0},b||"page").top,dn(this.doc,m+this.display.viewOffset)},heightAtLine:function(m,b,F){var X=!1,lt;if(typeof m=="number"){var st=this.doc.first+this.doc.size-1;m<this.doc.first?m=this.doc.first:m>st&&(m=st,X=!0),lt=qe(this.doc,m)}else lt=m;return is(this,lt,{top:0,left:0},b||"page",F||X).top+(X?this.doc.height-Is(lt):0)},defaultTextHeight:function(){return Fl(this.display)},defaultCharWidth:function(){return lu(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(m,b,F,X,lt){var st=this.display;m=Lo(this,Je(this.doc,m));var Pt=m.bottom,Ee=m.left;if(b.style.position="absolute",b.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(b),st.sizer.appendChild(b),X=="over")Pt=m.top;else if(X=="above"||X=="near"){var Wt=Math.max(st.wrapper.clientHeight,this.doc.height),rn=Math.max(st.sizer.clientWidth,st.lineSpace.clientWidth);(X=="above"||m.bottom+b.offsetHeight>Wt)&&m.top>b.offsetHeight?Pt=m.top-b.offsetHeight:m.bottom+b.offsetHeight<=Wt&&(Pt=m.bottom),Ee+b.offsetWidth>rn&&(Ee=rn-b.offsetWidth)}b.style.top=Pt+"px",b.style.left=b.style.right="",lt=="right"?(Ee=st.sizer.clientWidth-b.offsetWidth,b.style.right="0px"):(lt=="left"?Ee=0:lt=="middle"&&(Ee=(st.sizer.clientWidth-b.offsetWidth)/2),b.style.left=Ee+"px"),F&&lc(this,{left:Ee,top:Pt,right:Ee+b.offsetWidth,bottom:Pt+b.offsetHeight})},triggerOnKeyDown:Ze(cc),triggerOnKeyPress:Ze(ku),triggerOnKeyUp:th,triggerOnMouseDown:Ze(pu),execCommand:function(m){if(Go.hasOwnProperty(m))return Go[m].call(null,this)},triggerElectric:Ze(function(m){df(this,m)}),findPosH:function(m,b,F,X){var lt=1;b<0&&(lt=-1,b=-b);for(var st=Je(this.doc,m),Pt=0;Pt<b&&(st=Wd(this.doc,st,lt,F,X),!st.hitSide);++Pt);return st},moveH:Ze(function(m,b){var F=this;this.extendSelectionsBy(function(X){return F.display.shift||F.doc.extend||X.empty()?Wd(F.doc,X.head,m,b,F.options.rtlMoveVisually):m<0?X.from():X.to()},vn)}),deleteH:Ze(function(m,b){var F=this.doc.sel,X=this.doc;F.somethingSelected()?X.replaceSelection("",null,"+delete"):jo(this,function(lt){var st=Wd(X,lt.head,m,b,!1);return m<0?{from:st,to:lt.head}:{from:lt.head,to:st}})}),findPosV:function(m,b,F,X){var lt=1,st=X;b<0&&(lt=-1,b=-b);for(var Pt=Je(this.doc,m),Ee=0;Ee<b;++Ee){var Wt=Lo(this,Pt,"div");if(st==null?st=Wt.left:Wt.left=st,Pt=Ch(this,Wt,lt,F),Pt.hitSide)break}return Pt},moveV:Ze(function(m,b){var F=this,X=this.doc,lt=[],st=!this.display.shift&&!X.extend&&X.sel.somethingSelected();if(X.extendSelectionsBy(function(Ee){if(st)return m<0?Ee.from():Ee.to();var Wt=Lo(F,Ee.head,"div");Ee.goalColumn!=null&&(Wt.left=Ee.goalColumn),lt.push(Wt.left);var rn=Ch(F,Wt,m,b);return b=="page"&&Ee==X.sel.primary()&&uc(F,tl(F,rn,"div").top-Wt.top),rn},vn),lt.length)for(var Pt=0;Pt<X.sel.ranges.length;Pt++)X.sel.ranges[Pt].goalColumn=lt[Pt]}),findWordAt:function(m){var b=this.doc,F=qe(b,m.line).text,X=m.ch,lt=m.ch;if(F){var st=this.getHelper(m,"wordChars");(m.sticky=="before"||lt==F.length)&&X?--X:++lt;for(var Pt=F.charAt(X),Ee=G(Pt,st)?function(Wt){return G(Wt,st)}:/\s/.test(Pt)?function(Wt){return/\s/.test(Wt)}:function(Wt){return!/\s/.test(Wt)&&!G(Wt)};X>0&&Ee(F.charAt(X-1));)--X;for(;lt<F.length&&Ee(F.charAt(lt));)++lt}return new Bi(Me(m.line,X),Me(m.line,lt))},toggleOverwrite:function(m){m!=null&&m==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Pe(this.display.cursorDiv,"CodeMirror-overwrite"):Rt(this.display.cursorDiv,"CodeMirror-overwrite"),Bt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ht()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Ze(function(m,b){Cu(this,m,b)}),getScrollInfo:function(){var m=this.display.scroller;return{left:m.scrollLeft,top:m.scrollTop,height:m.scrollHeight-ka(this)-this.display.barHeight,width:m.scrollWidth-ka(this)-this.display.barWidth,clientHeight:Fu(this),clientWidth:_a(this)}},scrollIntoView:Ze(function(m,b){m==null?(m={from:this.doc.sel.primary().head,to:null},b==null&&(b=this.options.cursorScrollMargin)):typeof m=="number"?m={from:Me(m,0),to:null}:m.from==null&&(m={from:m,to:null}),m.to||(m.to=m.from),m.margin=b||0,m.from.line!=null?Yo(this,m):wc(this,m.from,m.to,m.margin)}),setSize:Ze(function(m,b){var F=this,X=function(st){return typeof st=="number"||/^\d+$/.test(String(st))?st+"px":st};m!=null&&(this.display.wrapper.style.width=X(m)),b!=null&&(this.display.wrapper.style.height=X(b)),this.options.lineWrapping&&Os(this);var lt=this.display.viewFrom;this.doc.iter(lt,this.display.viewTo,function(st){if(st.widgets){for(var Pt=0;Pt<st.widgets.length;Pt++)if(st.widgets[Pt].noHScroll){xo(F,lt,"widget");break}}++lt}),this.curOp.forceUpdate=!0,Bt(this,"refresh",this)}),operation:function(m){return me(this,m)},startOperation:function(){return _s(this)},endOperation:function(){return cu(this)},refresh:Ze(function(){var m=this.display.cachedTextHeight;xs(this),this.curOp.forceUpdate=!0,As(this),Cu(this,this.doc.scrollLeft,this.doc.scrollTop),_i(this.display),(m==null||Math.abs(m-Fl(this.display))>.5||this.options.lineWrapping)&&Lr(this),Bt(this,"refresh",this)}),swapDoc:Ze(function(m){var b=this.doc;return b.cm=null,this.state.selectingText&&this.state.selectingText(),he(this,m),As(this),this.display.input.reset(),Cu(this,m.scrollLeft,m.scrollTop),this.curOp.forceScroll=!0,ri(this,"swapDoc",this,b),b}),phrase:function(m){var b=this.options.phrases;return b&&Object.prototype.hasOwnProperty.call(b,m)?b[m]:m},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}},Cn(a),a.registerHelper=function(m,b,F){g.hasOwnProperty(m)||(g[m]=a[m]={_global:[]}),g[m][b]=F},a.registerGlobalHelper=function(m,b,F,X){a.registerHelper(m,b,X),g[m]._global.push({pred:F,val:X})}}function Wd(a,c,g,m,b){var F=c,X=g,lt=qe(a,c.line),st=b&&a.direction=="rtl"?-g:g;function Pt(){var Cr=c.line+st;return Cr<a.first||Cr>=a.first+a.size?!1:(c=new Me(Cr,c.ch,c.sticky),lt=qe(a,Cr))}function Ee(Cr){var ar;if(m=="codepoint"){var Dr=lt.text.charCodeAt(c.ch+(m>0?0:-1));isNaN(Dr)?ar=null:ar=new Me(c.line,Math.max(0,Math.min(lt.text.length,c.ch+g*(Dr>=55296&&Dr<56320?2:1))),-g)}else b?ar=wo(a.cm,lt,c,g):ar=So(lt,c,g);if(ar==null)if(!Cr&&Pt())c=Fr(b,a.cm,lt,c.line,st);else return!1;else c=ar;return!0}if(m=="char"||m=="codepoint")Ee();else if(m=="column")Ee(!0);else if(m=="word"||m=="group")for(var Wt=null,rn=m=="group",Xe=a.cm&&a.cm.getHelper(c,"wordChars"),Kn=!0;!(g<0&&!Ee(!Kn));Kn=!1){var ei=lt.text.charAt(c.ch)||`
|
|
|
`,yi=G(ei,Xe)?"w":rn&&ei==`
|
|
|
`?"n":!rn||/\s/.test(ei)?null:"p";if(rn&&!Kn&&!yi&&(yi="s"),Wt&&Wt!=yi){g<0&&(g=1,Ee(),c.sticky="after");break}if(yi&&(Wt=yi),g>0&&!Ee(!Kn))break}var Zi=on(a,c,F,X,!0);return be(F,Zi)&&(Zi.hitSide=!0),Zi}function Ch(a,c,g,m){var b=a.doc,F=c.left,X;if(m=="page"){var lt=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),st=Math.max(lt-.5*Fl(a.display),3);X=(g>0?c.bottom:c.top)+g*st}else m=="line"&&(X=g>0?c.bottom+3:c.top-3);for(var Pt;Pt=Ii(a,F,X),!!Pt.outside;){if(g<0?X<=0:X>=b.height){Pt.hitSide=!0;break}X+=g*5}return Pt}var Ks=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new nt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ks.prototype.init=function(a){var c=this,g=this,m=g.cm,b=g.div=a.lineDiv;ff(b,m.options.spellcheck,m.options.autocorrect,m.options.autocapitalize);function F(lt){for(var st=lt.target;st;st=st.parentNode){if(st==b)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(st.className))break}return!1}Ce(b,"paste",function(lt){!F(lt)||xe(m,lt)||hf(lt,m)||K<=11&&setTimeout(Ye(m,function(){return c.updateFromDOM()}),20)}),Ce(b,"compositionstart",function(lt){c.composing={data:lt.data,done:!1}}),Ce(b,"compositionupdate",function(lt){c.composing||(c.composing={data:lt.data,done:!1})}),Ce(b,"compositionend",function(lt){c.composing&&(lt.data!=c.composing.data&&c.readFromDOMSoon(),c.composing.done=!0)}),Ce(b,"touchstart",function(){return g.forceCompositionEnd()}),Ce(b,"input",function(){c.composing||c.readFromDOMSoon()});function X(lt){if(!(!F(lt)||xe(m,lt))){if(m.somethingSelected())Kh({lineWise:!1,text:m.getSelections()}),lt.type=="cut"&&m.replaceSelection("",null,"cut");else if(m.options.lineWiseCopyCut){var st=pf(m);Kh({lineWise:!0,text:st.text}),lt.type=="cut"&&m.operation(function(){m.setSelections(st.ranges,0,de),m.replaceSelection("",null,"cut")})}else return;if(lt.clipboardData){lt.clipboardData.clearData();var Pt=fu.text.join(`
|
|
|
`);if(lt.clipboardData.setData("Text",Pt),lt.clipboardData.getData("Text")==Pt){lt.preventDefault();return}}var Ee=mf(),Wt=Ee.firstChild;m.display.lineSpace.insertBefore(Ee,m.display.lineSpace.firstChild),Wt.value=fu.text.join(`
|
|
|
`);var rn=document.activeElement;we(Wt),setTimeout(function(){m.display.lineSpace.removeChild(Ee),rn.focus(),rn==b&&g.showPrimarySelection()},50)}}Ce(b,"copy",X),Ce(b,"cut",X)},Ks.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},Ks.prototype.prepareSelection=function(){var a=wu(this.cm,!1);return a.focus=document.activeElement==this.div,a},Ks.prototype.showSelection=function(a,c){!a||!this.cm.display.view.length||((a.focus||c)&&this.showPrimarySelection(),this.showMultipleSelections(a))},Ks.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ks.prototype.showPrimarySelection=function(){var a=this.getSelection(),c=this.cm,g=c.doc.sel.primary(),m=g.from(),b=g.to();if(c.display.viewTo==c.display.viewFrom||m.line>=c.display.viewTo||b.line<c.display.viewFrom){a.removeAllRanges();return}var F=Vd(c,a.anchorNode,a.anchorOffset),X=Vd(c,a.focusNode,a.focusOffset);if(!(F&&!F.bad&&X&&!X.bad&&In(Le(F,X),m)==0&&In(He(F,X),b)==0)){var lt=c.display.view,st=m.line>=c.display.viewFrom&&wp(c,m)||{node:lt[0].measure.map[2],offset:0},Pt=b.line<c.display.viewTo&&wp(c,b);if(!Pt){var Ee=lt[lt.length-1].measure,Wt=Ee.maps?Ee.maps[Ee.maps.length-1]:Ee.map;Pt={node:Wt[Wt.length-1],offset:Wt[Wt.length-2]-Wt[Wt.length-3]}}if(!st||!Pt){a.removeAllRanges();return}var rn=a.rangeCount&&a.getRangeAt(0),Xe;try{Xe=yt(st.node,st.offset,Pt.offset,Pt.node)}catch(Kn){}Xe&&(!y&&c.state.focused?(a.collapse(st.node,st.offset),Xe.collapsed||(a.removeAllRanges(),a.addRange(Xe))):(a.removeAllRanges(),a.addRange(Xe)),rn&&a.anchorNode==null?a.addRange(rn):y&&this.startGracePeriod()),this.rememberSelection()}},Ks.prototype.startGracePeriod=function(){var a=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){a.gracePeriod=!1,a.selectionChanged()&&a.cm.operation(function(){return a.cm.curOp.selectionChanged=!0})},20)},Ks.prototype.showMultipleSelections=function(a){Kt(this.cm.display.cursorDiv,a.cursors),Kt(this.cm.display.selectionDiv,a.selection)},Ks.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},Ks.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var c=a.getRangeAt(0).commonAncestorContainer;return ae(this.div,c)},Ks.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ks.prototype.blur=function(){this.div.blur()},Ks.prototype.getField=function(){return this.div},Ks.prototype.supportsTouch=function(){return!0},Ks.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():me(this.cm,function(){return a.cm.curOp.selectionChanged=!0});function c(){a.cm.state.focused&&(a.pollSelection(),a.polling.set(a.cm.options.pollInterval,c))}this.polling.set(this.cm.options.pollInterval,c)},Ks.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},Ks.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),c=this.cm;if(vt&&rt&&this.cm.display.gutterSpecs.length&&gf(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var g=Vd(c,a.anchorNode,a.anchorOffset),m=Vd(c,a.focusNode,a.focusOffset);g&&m&&me(c,function(){vo(c.doc,co(g,m),de),(g.bad||m.bad)&&(c.curOp.selectionChanged=!0)})}}},Ks.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,c=a.display,g=a.doc.sel.primary(),m=g.from(),b=g.to();if(m.ch==0&&m.line>a.firstLine()&&(m=Me(m.line-1,qe(a.doc,m.line-1).length)),b.ch==qe(a.doc,b.line).text.length&&b.line<a.lastLine()&&(b=Me(b.line+1,0)),m.line<c.viewFrom||b.line>c.viewTo-1)return!1;var F,X,lt;m.line==c.viewFrom||(F=Ma(a,m.line))==0?(X=ne(c.view[0].line),lt=c.view[0].node):(X=ne(c.view[F].line),lt=c.view[F-1].node.nextSibling);var st=Ma(a,b.line),Pt,Ee;if(st==c.view.length-1?(Pt=c.viewTo-1,Ee=c.lineDiv.lastChild):(Pt=ne(c.view[st+1].line)-1,Ee=c.view[st+1].node.previousSibling),!lt)return!1;for(var Wt=a.doc.splitLines(wd(a,lt,Ee,X,Pt)),rn=xn(a.doc,Me(X,0),Me(Pt,qe(a.doc,Pt).text.length));Wt.length>1&&rn.length>1;)if($n(Wt)==$n(rn))Wt.pop(),rn.pop(),Pt--;else if(Wt[0]==rn[0])Wt.shift(),rn.shift(),X++;else break;for(var Xe=0,Kn=0,ei=Wt[0],yi=rn[0],Zi=Math.min(ei.length,yi.length);Xe<Zi&&ei.charCodeAt(Xe)==yi.charCodeAt(Xe);)++Xe;for(var Cr=$n(Wt),ar=$n(rn),Dr=Math.min(Cr.length-(Wt.length==1?Xe:0),ar.length-(rn.length==1?Xe:0));Kn<Dr&&Cr.charCodeAt(Cr.length-Kn-1)==ar.charCodeAt(ar.length-Kn-1);)++Kn;if(Wt.length==1&&rn.length==1&&X==m.line)for(;Xe&&Xe>m.ch&&Cr.charCodeAt(Cr.length-Kn-1)==ar.charCodeAt(ar.length-Kn-1);)Xe--,Kn++;Wt[Wt.length-1]=Cr.slice(0,Cr.length-Kn).replace(/^\u200b+/,""),Wt[0]=Wt[0].slice(Xe).replace(/\u200b+$/,"");var fo=Me(X,Xe),or=Me(Pt,rn.length?$n(rn).length-Kn:0);if(Wt.length>1||Wt[0]||In(fo,or))return Tl(a.doc,Wt,fo,or,"+input"),!0},Ks.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ks.prototype.reset=function(){this.forceCompositionEnd()},Ks.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ks.prototype.readFromDOMSoon=function(){var a=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(a.readDOMTimeout=null,a.composing)if(a.composing.done)a.composing=null;else return;a.updateFromDOM()},80))},Ks.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&me(this.cm,function(){return xs(a.cm)})},Ks.prototype.setUneditable=function(a){a.contentEditable="false"},Ks.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||Ye(this.cm,Gd)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},Ks.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},Ks.prototype.onContextMenu=function(){},Ks.prototype.resetPosition=function(){},Ks.prototype.needsContentAttribute=!0;function wp(a,c){var g=Kl(a,c.line);if(!g||g.hidden)return null;var m=qe(a.doc,c.line),b=Vl(g,m,c.line),F=Ge(m,a.doc.direction),X="left";if(F){var lt=_t(F,c.ch);X=lt%2?"right":"left"}var st=ou(b.map,c.ch,X);return st.offset=st.collapse=="right"?st.end:st.start,st}function gf(a){for(var c=a;c;c=c.parentNode)if(/CodeMirror-gutter-wrapper/.test(c.className))return!0;return!1}function Sd(a,c){return c&&(a.bad=!0),a}function wd(a,c,g,m,b){var F="",X=!1,lt=a.doc.lineSeparator(),st=!1;function Pt(Xe){return function(Kn){return Kn.id==Xe}}function Ee(){X&&(F+=lt,st&&(F+=lt),X=st=!1)}function Wt(Xe){Xe&&(Ee(),F+=Xe)}function rn(Xe){if(Xe.nodeType==1){var Kn=Xe.getAttribute("cm-text");if(Kn){Wt(Kn);return}var ei=Xe.getAttribute("cm-marker"),yi;if(ei){var Zi=a.findMarks(Me(m,0),Me(b+1,0),Pt(+ei));Zi.length&&(yi=Zi[0].find(0))&&Wt(xn(a.doc,yi.from,yi.to).join(lt));return}if(Xe.getAttribute("contenteditable")=="false")return;var Cr=/^(pre|div|p|li|table|br)$/i.test(Xe.nodeName);if(!/^br$/i.test(Xe.nodeName)&&Xe.textContent.length==0)return;Cr&&Ee();for(var ar=0;ar<Xe.childNodes.length;ar++)rn(Xe.childNodes[ar]);/^(pre|p)$/i.test(Xe.nodeName)&&(st=!0),Cr&&(X=!0)}else Xe.nodeType==3&&Wt(Xe.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;rn(c),c!=g;)c=c.nextSibling,st=!1;return F}function Vd(a,c,g){var m;if(c==a.display.lineDiv){if(m=a.display.lineDiv.childNodes[g],!m)return Sd(a.clipPos(Me(a.display.viewTo-1)),!0);c=null,g=0}else for(m=c;;m=m.parentNode){if(!m||m==a.display.lineDiv)return null;if(m.parentNode&&m.parentNode==a.display.lineDiv)break}for(var b=0;b<a.display.view.length;b++){var F=a.display.view[b];if(F.node==m)return y0(F,c,g)}}function y0(a,c,g){var m=a.text.firstChild,b=!1;if(!c||!ae(m,c))return Sd(Me(ne(a.line),0),!0);if(c==m&&(b=!0,c=m.childNodes[g],g=0,!c)){var F=a.rest?$n(a.rest):a.line;return Sd(Me(ne(F),F.text.length),b)}var X=c.nodeType==3?c:null,lt=c;for(!X&&c.childNodes.length==1&&c.firstChild.nodeType==3&&(X=c.firstChild,g&&(g=X.nodeValue.length));lt.parentNode!=m;)lt=lt.parentNode;var st=a.measure,Pt=st.maps;function Ee(yi,Zi,Cr){for(var ar=-1;ar<(Pt?Pt.length:0);ar++)for(var Dr=ar<0?st.map:Pt[ar],fo=0;fo<Dr.length;fo+=3){var or=Dr[fo+2];if(or==yi||or==Zi){var Vo=ne(ar<0?a.line:a.rest[ar]),ua=Dr[fo]+Cr;return(Cr<0||or!=yi)&&(ua=Dr[fo+(Cr?1:0)]),Me(Vo,ua)}}}var Wt=Ee(X,lt,g);if(Wt)return Sd(Wt,b);for(var rn=lt.nextSibling,Xe=X?X.nodeValue.length-g:0;rn;rn=rn.nextSibling){if(Wt=Ee(rn,rn.firstChild,0),Wt)return Sd(Me(Wt.line,Wt.ch-Xe),b);Xe+=rn.textContent.length}for(var Kn=lt.previousSibling,ei=g;Kn;Kn=Kn.previousSibling){if(Wt=Ee(Kn,Kn.firstChild,-1),Wt)return Sd(Me(Wt.line,Wt.ch+ei),b);ei+=Kn.textContent.length}}var Za=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new nt,this.hasSelection=!1,this.composing=null};Za.prototype.init=function(a){var c=this,g=this,m=this.cm;this.createField(a);var b=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),At&&(b.style.width="0px"),Ce(b,"input",function(){_&&K>=9&&c.hasSelection&&(c.hasSelection=null),g.poll()}),Ce(b,"paste",function(X){xe(m,X)||hf(X,m)||(m.state.pasteIncoming=+new Date,g.fastPoll())});function F(X){if(!xe(m,X)){if(m.somethingSelected())Kh({lineWise:!1,text:m.getSelections()});else if(m.options.lineWiseCopyCut){var lt=pf(m);Kh({lineWise:!0,text:lt.text}),X.type=="cut"?m.setSelections(lt.ranges,null,de):(g.prevInput="",b.value=lt.text.join(`
|
|
|
`),we(b))}else return;X.type=="cut"&&(m.state.cutIncoming=+new Date)}}Ce(b,"cut",F),Ce(b,"copy",F),Ce(a.scroller,"paste",function(X){if(!(Ln(a,X)||xe(m,X))){if(!b.dispatchEvent){m.state.pasteIncoming=+new Date,g.focus();return}var lt=new Event("paste");lt.clipboardData=X.clipboardData,b.dispatchEvent(lt)}}),Ce(a.lineSpace,"selectstart",function(X){Ln(a,X)||En(X)}),Ce(b,"compositionstart",function(){var X=m.getCursor("from");g.composing&&g.composing.range.clear(),g.composing={start:X,range:m.markText(X,m.getCursor("to"),{className:"CodeMirror-composing"})}}),Ce(b,"compositionend",function(){g.composing&&(g.poll(),g.composing.range.clear(),g.composing=null)})},Za.prototype.createField=function(a){this.wrapper=mf(),this.textarea=this.wrapper.firstChild},Za.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Za.prototype.prepareSelection=function(){var a=this.cm,c=a.display,g=a.doc,m=wu(a);if(a.options.moveInputWithCursor){var b=Lo(a,g.sel.primary().head,"div"),F=c.wrapper.getBoundingClientRect(),X=c.lineDiv.getBoundingClientRect();m.teTop=Math.max(0,Math.min(c.wrapper.clientHeight-10,b.top+X.top-F.top)),m.teLeft=Math.max(0,Math.min(c.wrapper.clientWidth-10,b.left+X.left-F.left))}return m},Za.prototype.showSelection=function(a){var c=this.cm,g=c.display;Kt(g.cursorDiv,a.cursors),Kt(g.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},Za.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var c=this.cm;if(c.somethingSelected()){this.prevInput="";var g=c.getSelection();this.textarea.value=g,c.state.focused&&we(this.textarea),_&&K>=9&&(this.hasSelection=g)}else a||(this.prevInput=this.textarea.value="",_&&K>=9&&(this.hasSelection=null))}},Za.prototype.getField=function(){return this.textarea},Za.prototype.supportsTouch=function(){return!1},Za.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Tt||Ht()!=this.textarea))try{this.textarea.focus()}catch(a){}},Za.prototype.blur=function(){this.textarea.blur()},Za.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Za.prototype.receivedFocus=function(){this.slowPoll()},Za.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Za.prototype.fastPoll=function(){var a=!1,c=this;c.pollingFast=!0;function g(){var m=c.poll();!m&&!a?(a=!0,c.polling.set(60,g)):(c.pollingFast=!1,c.slowPoll())}c.polling.set(20,g)},Za.prototype.poll=function(){var a=this,c=this.cm,g=this.textarea,m=this.prevInput;if(this.contextMenuPending||!c.state.focused||D(g)&&!m&&!this.composing||c.isReadOnly()||c.options.disableInput||c.state.keySeq)return!1;var b=g.value;if(b==m&&!c.somethingSelected())return!1;if(_&&K>=9&&this.hasSelection===b||Mt&&/[\uf700-\uf7ff]/.test(b))return c.display.input.reset(),!1;if(c.doc.sel==c.display.selForContextMenu){var F=b.charCodeAt(0);if(F==8203&&!m&&(m="\u200B"),F==8666)return this.reset(),this.cm.execCommand("undo")}for(var X=0,lt=Math.min(m.length,b.length);X<lt&&m.charCodeAt(X)==b.charCodeAt(X);)++X;return me(c,function(){Gd(c,b.slice(X),m.length-X,null,a.composing?"*compose":null),b.length>1e3||b.indexOf(`
|
|
|
`)>-1?g.value=a.prevInput="":a.prevInput=b,a.composing&&(a.composing.range.clear(),a.composing.range=c.markText(a.composing.start,c.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Za.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Za.prototype.onKeyPress=function(){_&&K>=9&&(this.hasSelection=null),this.fastPoll()},Za.prototype.onContextMenu=function(a){var c=this,g=c.cm,m=g.display,b=c.textarea;c.contextMenuPending&&c.contextMenuPending();var F=ja(g,a),X=m.scroller.scrollTop;if(!F||Q)return;var lt=g.options.resetSelectionOnContextMenu;lt&&g.doc.sel.contains(F)==-1&&Ye(g,vo)(g.doc,co(F),de);var st=b.style.cssText,Pt=c.wrapper.style.cssText,Ee=c.wrapper.offsetParent.getBoundingClientRect();c.wrapper.style.cssText="position: static",b.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(a.clientY-Ee.top-5)+"px; left: "+(a.clientX-Ee.left-5)+`px;
|
|
|
z-index: 1000; background: `+(_?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Wt;I&&(Wt=window.scrollY),m.input.focus(),I&&window.scrollTo(null,Wt),m.input.reset(),g.somethingSelected()||(b.value=c.prevInput=" "),c.contextMenuPending=Xe,m.selForContextMenu=g.doc.sel,clearTimeout(m.detectingSelectAll);function rn(){if(b.selectionStart!=null){var ei=g.somethingSelected(),yi="\u200B"+(ei?b.value:"");b.value="\u21DA",b.value=yi,c.prevInput=ei?"":"\u200B",b.selectionStart=1,b.selectionEnd=yi.length,m.selForContextMenu=g.doc.sel}}function Xe(){if(c.contextMenuPending==Xe&&(c.contextMenuPending=!1,c.wrapper.style.cssText=Pt,b.style.cssText=st,_&&K<9&&m.scrollbars.setScrollTop(m.scroller.scrollTop=X),b.selectionStart!=null)){(!_||_&&K<9)&&rn();var ei=0,yi=function(){m.selForContextMenu==g.doc.sel&&b.selectionStart==0&&b.selectionEnd>0&&c.prevInput=="\u200B"?Ye(g,zo)(g):ei++<10?m.detectingSelectAll=setTimeout(yi,500):(m.selForContextMenu=null,m.input.reset())};m.detectingSelectAll=setTimeout(yi,200)}}if(_&&K>=9&&rn(),Ut){ci(a);var Kn=function(){Qe(window,"mouseup",Kn),setTimeout(Xe,20)};Ce(window,"mouseup",Kn)}else setTimeout(Xe,50)},Za.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Za.prototype.setUneditable=function(){},Za.prototype.needsContentAttribute=!1;function x0(a,c){if(c=c?ln(c):{},c.value=a.value,!c.tabindex&&a.tabIndex&&(c.tabindex=a.tabIndex),!c.placeholder&&a.placeholder&&(c.placeholder=a.placeholder),c.autofocus==null){var g=Ht();c.autofocus=g==a||a.getAttribute("autofocus")!=null&&g==document.body}function m(){a.value=lt.getValue()}var b;if(a.form&&(Ce(a.form,"submit",m),!c.leaveSubmitMethodAlone)){var F=a.form;b=F.submit;try{var X=F.submit=function(){m(),F.submit=b,F.submit(),F.submit=X}}catch(st){}}c.finishInit=function(st){st.save=m,st.getTextArea=function(){return a},st.toTextArea=function(){st.toTextArea=isNaN,m(),a.parentNode.removeChild(st.getWrapperElement()),a.style.display="",a.form&&(Qe(a.form,"submit",m),!c.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=b))}},a.style.display="none";var lt=gs(function(st){return a.parentNode.insertBefore(st,a.nextSibling)},c);return lt}function Cd(a){a.off=Qe,a.on=Ce,a.wheelEventPixels=wr,a.Doc=Vs,a.splitLines=Di,a.countColumn=zt,a.findColumn=Xn,a.isWordChar=z,a.Pass=Ae,a.signal=Bt,a.Line=oa,a.changeEnd=S,a.scrollbarModel=Cc,a.Pos=Me,a.cmpPos=In,a.modes=Zr,a.mimeModes=mo,a.resolveMode=Ir,a.getMode=Gi,a.modeExtensions=Jn,a.extendMode=te,a.copyState=Nn,a.startState=oe,a.innerMode=Bn,a.commands=Go,a.keyMap=Qn,a.keyName=ko,a.isModifierKey=Ar,a.lookupKey=Xi,a.normalizeKeyMap=Yi,a.StringStream=Ft,a.SharedTextMarker=oi,a.TextMarker=ue,a.LineWidget=Hs,a.e_preventDefault=En,a.e_stopPropagation=jn,a.e_stop=ci,a.addClass=Pe,a.contains=ae,a.rmClass=Rt,a.keyNames=Xt}g0(gs),wh(gs);var rh="iter insert remove copy getEditor constructor".split(" ");for(var Kd in Vs.prototype)Vs.prototype.hasOwnProperty(Kd)&&it(rh,Kd)<0&&(gs.prototype[Kd]=function(a){return function(){return a.apply(this.doc,arguments)}}(Vs.prototype[Kd]));return Cn(Vs),gs.inputStyles={textarea:Za,contenteditable:Ks},gs.defineMode=function(a){!gs.defaults.mode&&a!="null"&&(gs.defaults.mode=a),Ei.apply(this,arguments)},gs.defineMIME=No,gs.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),gs.defineMIME("text/plain","null"),gs.defineExtension=function(a,c){gs.prototype[a]=c},gs.defineDocExtension=function(a,c){Vs.prototype[a]=c},gs.fromTextArea=x0,Cd(gs),gs.version="5.58.2",gs})},25419:function(V,w,h){(function(y){y(h(89780),h(15525),h(98101))})(function(y){"use strict";y.defineMode("markdown",function(N,O){var B=y.getMode(N,"text/html"),_=B.name=="null";function K(zt){if(y.findModeByName){var nt=y.findModeByName(zt);nt&&(zt=nt.mime||nt.mimes[0])}var it=y.getMode(N,zt);return it.name=="null"?null:it}O.highlightFormatting===void 0&&(O.highlightFormatting=!1),O.maxBlockquoteDepth===void 0&&(O.maxBlockquoteDepth=0),O.taskLists===void 0&&(O.taskLists=!1),O.strikethrough===void 0&&(O.strikethrough=!1),O.emoji===void 0&&(O.emoji=!1),O.fencedCodeBlockHighlighting===void 0&&(O.fencedCodeBlockHighlighting=!0),O.fencedCodeBlockDefaultMode===void 0&&(O.fencedCodeBlockDefaultMode="text/plain"),O.xml===void 0&&(O.xml=!0),O.tokenTypeOverrides===void 0&&(O.tokenTypeOverrides={});var I={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 dt in I)I.hasOwnProperty(dt)&&O.tokenTypeOverrides[dt]&&(I[dt]=O.tokenTypeOverrides[dt]);var rt=/^([*\-_])(?:\s*\1){2,}\s*$/,Q=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,kt=/^\[(x| )\](?=\s)/i,Y=O.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Yt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,At=/^[^#!\[\]*_\\<>` "'(~:]+/,vt=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Tt=/^\s*\[[^\]]+?\]:.*$/,Mt=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,ft=" ";function It(zt,nt,it){return nt.f=nt.inline=it,it(zt,nt)}function $t(zt,nt,it){return nt.f=nt.block=it,it(zt,nt)}function Nt(zt){return!zt||!/\S/.test(zt.string)}function Ut(zt){if(zt.linkTitle=!1,zt.linkHref=!1,zt.linkText=!1,zt.em=!1,zt.strong=!1,zt.strikethrough=!1,zt.quote=0,zt.indentedCode=!1,zt.f==Rt){var nt=_;if(!nt){var it=y.innerMode(B,zt.htmlState);nt=it.mode.name=="xml"&&it.state.tagStart===null&&!it.state.context&&it.state.tokenize.isInText}nt&&(zt.f=ie,zt.block=et,zt.htmlState=null)}return zt.trailingSpace=0,zt.trailingSpaceNewLine=!1,zt.prevLine=zt.thisLine,zt.thisLine={stream:null},null}function et(zt,nt){var it=zt.column()===nt.indentation,Te=Nt(nt.prevLine.stream),Ae=nt.indentedCode,de=nt.prevLine.hr,en=nt.list!==!1,vn=(nt.listStack[nt.listStack.length-1]||0)+3;nt.indentedCode=!1;var Xn=nt.indentation;if(nt.indentationDiff===null&&(nt.indentationDiff=nt.indentation,en)){for(nt.list=null;Xn<nt.listStack[nt.listStack.length-1];)nt.listStack.pop(),nt.listStack.length?nt.indentation=nt.listStack[nt.listStack.length-1]:nt.list=!1;nt.list!==!1&&(nt.indentationDiff=Xn-nt.listStack[nt.listStack.length-1])}var gn=!Te&&!de&&!nt.prevLine.header&&(!en||!Ae)&&!nt.prevLine.fencedCodeEnd,_n=(nt.list===!1||de||Te)&&nt.indentation<=vn&&zt.match(rt),$n=null;if(nt.indentationDiff>=4&&(Ae||nt.prevLine.fencedCodeEnd||nt.prevLine.header||Te))return zt.skipToEnd(),nt.indentedCode=!0,I.code;if(zt.eatSpace())return null;if(it&&nt.indentation<=vn&&($n=zt.match(Y))&&$n[1].length<=6)return nt.quote=0,nt.header=$n[1].length,nt.thisLine.header=!0,O.highlightFormatting&&(nt.formatting="header"),nt.f=nt.inline,Kt(nt);if(nt.indentation<=vn&&zt.eat(">"))return nt.quote=it?1:nt.quote+1,O.highlightFormatting&&(nt.formatting="quote"),zt.eatSpace(),Kt(nt);if(!_n&&!nt.setext&&it&&nt.indentation<=vn&&($n=zt.match(Q))){var fn=$n[1]?"ol":"ul";return nt.indentation=Xn+zt.current().length,nt.list=!0,nt.quote=0,nt.listStack.push(nt.indentation),nt.em=!1,nt.strong=!1,nt.code=!1,nt.strikethrough=!1,O.taskLists&&zt.match(kt,!1)&&(nt.taskList=!0),nt.f=nt.inline,O.highlightFormatting&&(nt.formatting=["list","list-"+fn]),Kt(nt)}else{if(it&&nt.indentation<=vn&&($n=zt.match(vt,!0)))return nt.quote=0,nt.fencedEndRE=new RegExp($n[1]+"+ *$"),nt.localMode=O.fencedCodeBlockHighlighting&&K($n[2]||O.fencedCodeBlockDefaultMode),nt.localMode&&(nt.localState=y.startState(nt.localMode)),nt.f=nt.block=Lt,O.highlightFormatting&&(nt.formatting="code-block"),nt.code=-1,Kt(nt);if(nt.setext||(!gn||!en)&&!nt.quote&&nt.list===!1&&!nt.code&&!_n&&!Tt.test(zt.string)&&($n=zt.lookAhead(1))&&($n=$n.match(Yt)))return nt.setext?(nt.header=nt.setext,nt.setext=0,zt.skipToEnd(),O.highlightFormatting&&(nt.formatting="header")):(nt.header=$n[0].charAt(0)=="="?1:2,nt.setext=nt.header),nt.thisLine.header=!0,nt.f=nt.inline,Kt(nt);if(_n)return zt.skipToEnd(),nt.hr=!0,nt.thisLine.hr=!0,I.hr;if(zt.peek()==="[")return It(zt,nt,ge)}return It(zt,nt,nt.inline)}function Rt(zt,nt){var it=B.token(zt,nt.htmlState);if(!_){var Te=y.innerMode(B,nt.htmlState);(Te.mode.name=="xml"&&Te.state.tagStart===null&&!Te.state.context&&Te.state.tokenize.isInText||nt.md_inside&&zt.current().indexOf(">")>-1)&&(nt.f=ie,nt.block=et,nt.htmlState=null)}return it}function Lt(zt,nt){var it=nt.listStack[nt.listStack.length-1]||0,Te=nt.indentation<it,Ae=it+3;if(nt.fencedEndRE&&nt.indentation<=Ae&&(Te||zt.match(nt.fencedEndRE))){O.highlightFormatting&&(nt.formatting="code-block");var de;return Te||(de=Kt(nt)),nt.localMode=nt.localState=null,nt.block=et,nt.f=ie,nt.fencedEndRE=null,nt.code=0,nt.thisLine.fencedCodeEnd=!0,Te?$t(zt,nt,nt.block):de}else return nt.localMode?nt.localMode.token(zt,nt.localState):(zt.skipToEnd(),I.code)}function Kt(zt){var nt=[];if(zt.formatting){nt.push(I.formatting),typeof zt.formatting=="string"&&(zt.formatting=[zt.formatting]);for(var it=0;it<zt.formatting.length;it++)nt.push(I.formatting+"-"+zt.formatting[it]),zt.formatting[it]==="header"&&nt.push(I.formatting+"-"+zt.formatting[it]+"-"+zt.header),zt.formatting[it]==="quote"&&(!O.maxBlockquoteDepth||O.maxBlockquoteDepth>=zt.quote?nt.push(I.formatting+"-"+zt.formatting[it]+"-"+zt.quote):nt.push("error"))}if(zt.taskOpen)return nt.push("meta"),nt.length?nt.join(" "):null;if(zt.taskClosed)return nt.push("property"),nt.length?nt.join(" "):null;if(zt.linkHref?nt.push(I.linkHref,"url"):(zt.strong&&nt.push(I.strong),zt.em&&nt.push(I.em),zt.strikethrough&&nt.push(I.strikethrough),zt.emoji&&nt.push(I.emoji),zt.linkText&&nt.push(I.linkText),zt.code&&nt.push(I.code),zt.image&&nt.push(I.image),zt.imageAltText&&nt.push(I.imageAltText,"link"),zt.imageMarker&&nt.push(I.imageMarker)),zt.header&&nt.push(I.header,I.header+"-"+zt.header),zt.quote&&(nt.push(I.quote),!O.maxBlockquoteDepth||O.maxBlockquoteDepth>=zt.quote?nt.push(I.quote+"-"+zt.quote):nt.push(I.quote+"-"+O.maxBlockquoteDepth)),zt.list!==!1){var Te=(zt.listStack.length-1)%3;Te?Te===1?nt.push(I.list2):nt.push(I.list3):nt.push(I.list1)}return zt.trailingSpaceNewLine?nt.push("trailing-space-new-line"):zt.trailingSpace&&nt.push("trailing-space-"+(zt.trailingSpace%2?"a":"b")),nt.length?nt.join(" "):null}function Qt(zt,nt){if(zt.match(At,!0))return Kt(nt)}function ie(zt,nt){var it=nt.text(zt,nt);if(typeof it!="undefined")return it;if(nt.list)return nt.list=null,Kt(nt);if(nt.taskList){var Te=zt.match(kt,!0)[1]===" ";return Te?nt.taskOpen=!0:nt.taskClosed=!0,O.highlightFormatting&&(nt.formatting="task"),nt.taskList=!1,Kt(nt)}if(nt.taskOpen=!1,nt.taskClosed=!1,nt.header&&zt.match(/^#+$/,!0))return O.highlightFormatting&&(nt.formatting="header"),Kt(nt);var Ae=zt.next();if(nt.linkTitle){nt.linkTitle=!1;var de=Ae;Ae==="("&&(de=")"),de=(de+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var en="^\\s*(?:[^"+de+"\\\\]+|\\\\\\\\|\\\\.)"+de;if(zt.match(new RegExp(en),!0))return I.linkHref}if(Ae==="`"){var vn=nt.formatting;O.highlightFormatting&&(nt.formatting="code"),zt.eatWhile("`");var Xn=zt.current().length;if(nt.code==0&&(!nt.quote||Xn==1))return nt.code=Xn,Kt(nt);if(Xn==nt.code){var gn=Kt(nt);return nt.code=0,gn}else return nt.formatting=vn,Kt(nt)}else if(nt.code)return Kt(nt);if(Ae==="\\"&&(zt.next(),O.highlightFormatting)){var _n=Kt(nt),$n=I.formatting+"-escape";return _n?_n+" "+$n:$n}if(Ae==="!"&&zt.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return nt.imageMarker=!0,nt.image=!0,O.highlightFormatting&&(nt.formatting="image"),Kt(nt);if(Ae==="["&&nt.imageMarker&&zt.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return nt.imageMarker=!1,nt.imageAltText=!0,O.highlightFormatting&&(nt.formatting="image"),Kt(nt);if(Ae==="]"&&nt.imageAltText){O.highlightFormatting&&(nt.formatting="image");var _n=Kt(nt);return nt.imageAltText=!1,nt.image=!1,nt.inline=nt.f=ae,_n}if(Ae==="["&&!nt.image)return nt.linkText&&zt.match(/^.*?\]/)||(nt.linkText=!0,O.highlightFormatting&&(nt.formatting="link")),Kt(nt);if(Ae==="]"&&nt.linkText){O.highlightFormatting&&(nt.formatting="link");var _n=Kt(nt);return nt.linkText=!1,nt.inline=nt.f=zt.match(/\(.*?\)| ?\[.*?\]/,!1)?ae:ie,_n}if(Ae==="<"&&zt.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){nt.f=nt.inline=yt,O.highlightFormatting&&(nt.formatting="link");var _n=Kt(nt);return _n?_n+=" ":_n="",_n+I.linkInline}if(Ae==="<"&&zt.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){nt.f=nt.inline=yt,O.highlightFormatting&&(nt.formatting="link");var _n=Kt(nt);return _n?_n+=" ":_n="",_n+I.linkEmail}if(O.xml&&Ae==="<"&&zt.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var fn=zt.string.indexOf(">",zt.pos);if(fn!=-1){var hn=zt.string.substring(zt.start,fn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(hn)&&(nt.md_inside=!0)}return zt.backUp(1),nt.htmlState=y.startState(B),$t(zt,nt,Rt)}if(O.xml&&Ae==="<"&&zt.match(/^\/\w*?>/))return nt.md_inside=!1,"tag";if(Ae==="*"||Ae==="_"){for(var ct=1,L=zt.pos==1?" ":zt.string.charAt(zt.pos-2);ct<3&&zt.eat(Ae);)ct++;var k=zt.peek()||" ",z=!/\s/.test(k)&&(!Mt.test(k)||/\s/.test(L)||Mt.test(L)),G=!/\s/.test(L)&&(!Mt.test(L)||/\s/.test(k)||Mt.test(k)),T=null,St=null;if(ct%2&&(!nt.em&&z&&(Ae==="*"||!G||Mt.test(L))?T=!0:nt.em==Ae&&G&&(Ae==="*"||!z||Mt.test(k))&&(T=!1)),ct>1&&(!nt.strong&&z&&(Ae==="*"||!G||Mt.test(L))?St=!0:nt.strong==Ae&&G&&(Ae==="*"||!z||Mt.test(k))&&(St=!1)),St!=null||T!=null){O.highlightFormatting&&(nt.formatting=T==null?"strong":St==null?"em":"strong em"),T===!0&&(nt.em=Ae),St===!0&&(nt.strong=Ae);var gn=Kt(nt);return T===!1&&(nt.em=!1),St===!1&&(nt.strong=!1),gn}}else if(Ae===" "&&(zt.eat("*")||zt.eat("_"))){if(zt.peek()===" ")return Kt(nt);zt.backUp(1)}if(O.strikethrough){if(Ae==="~"&&zt.eatWhile(Ae)){if(nt.strikethrough){O.highlightFormatting&&(nt.formatting="strikethrough");var gn=Kt(nt);return nt.strikethrough=!1,gn}else if(zt.match(/^[^\s]/,!1))return nt.strikethrough=!0,O.highlightFormatting&&(nt.formatting="strikethrough"),Kt(nt)}else if(Ae===" "&&zt.match(/^~~/,!0)){if(zt.peek()===" ")return Kt(nt);zt.backUp(2)}}if(O.emoji&&Ae===":"&&zt.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){nt.emoji=!0,O.highlightFormatting&&(nt.formatting="emoji");var fe=Kt(nt);return nt.emoji=!1,fe}return Ae===" "&&(zt.match(/^ +$/,!1)?nt.trailingSpace++:nt.trailingSpace&&(nt.trailingSpaceNewLine=!0)),Kt(nt)}function yt(zt,nt){var it=zt.next();if(it===">"){nt.f=nt.inline=ie,O.highlightFormatting&&(nt.formatting="link");var Te=Kt(nt);return Te?Te+=" ":Te="",Te+I.linkInline}return zt.match(/^[^>]+/,!0),I.linkInline}function ae(zt,nt){if(zt.eatSpace())return null;var it=zt.next();return it==="("||it==="["?(nt.f=nt.inline=Pe(it==="("?")":"]"),O.highlightFormatting&&(nt.formatting="link-string"),nt.linkHref=!0,Kt(nt)):"error"}var Ht={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Pe(zt){return function(nt,it){var Te=nt.next();if(Te===zt){it.f=it.inline=ie,O.highlightFormatting&&(it.formatting="link-string");var Ae=Kt(it);return it.linkHref=!1,Ae}return nt.match(Ht[zt]),it.linkHref=!0,Kt(it)}}function ge(zt,nt){return zt.match(/^([^\]\\]|\\.)*\]:/,!1)?(nt.f=we,zt.next(),O.highlightFormatting&&(nt.formatting="link"),nt.linkText=!0,Kt(nt)):It(zt,nt,ie)}function we(zt,nt){if(zt.match(/^\]:/,!0)){nt.f=nt.inline=pe,O.highlightFormatting&&(nt.formatting="link");var it=Kt(nt);return nt.linkText=!1,it}return zt.match(/^([^\]\\]|\\.)+/,!0),I.linkText}function pe(zt,nt){return zt.eatSpace()?null:(zt.match(/^[^\s]+/,!0),zt.peek()===void 0?nt.linkTitle=!0:zt.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),nt.f=nt.inline=ie,I.linkHref+" url")}var ln={startState:function(){return{f:et,prevLine:{stream:null},thisLine:{stream:null},block:et,htmlState:null,indentation:0,inline:ie,text:Qt,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(zt){return{f:zt.f,prevLine:zt.prevLine,thisLine:zt.thisLine,block:zt.block,htmlState:zt.htmlState&&y.copyState(B,zt.htmlState),indentation:zt.indentation,localMode:zt.localMode,localState:zt.localMode?y.copyState(zt.localMode,zt.localState):null,inline:zt.inline,text:zt.text,formatting:!1,linkText:zt.linkText,linkTitle:zt.linkTitle,linkHref:zt.linkHref,code:zt.code,em:zt.em,strong:zt.strong,strikethrough:zt.strikethrough,emoji:zt.emoji,header:zt.header,setext:zt.setext,hr:zt.hr,taskList:zt.taskList,list:zt.list,listStack:zt.listStack.slice(0),quote:zt.quote,indentedCode:zt.indentedCode,trailingSpace:zt.trailingSpace,trailingSpaceNewLine:zt.trailingSpaceNewLine,md_inside:zt.md_inside,fencedEndRE:zt.fencedEndRE}},token:function(zt,nt){if(nt.formatting=!1,zt!=nt.thisLine.stream){if(nt.header=0,nt.hr=!1,zt.match(/^\s*$/,!0))return Ut(nt),null;if(nt.prevLine=nt.thisLine,nt.thisLine={stream:zt},nt.taskList=!1,nt.trailingSpace=0,nt.trailingSpaceNewLine=!1,!nt.localState&&(nt.f=nt.block,nt.f!=Rt)){var it=zt.match(/^\s*/,!0)[0].replace(/\t/g,ft).length;if(nt.indentation=it,nt.indentationDiff=null,it>0)return null}}return nt.f(zt,nt)},innerMode:function(zt){return zt.block==Rt?{state:zt.htmlState,mode:B}:zt.localState?{state:zt.localState,mode:zt.localMode}:{state:zt,mode:ln}},indent:function(zt,nt,it){return zt.block==Rt&&B.indent?B.indent(zt.htmlState,nt,it):zt.localState&&zt.localMode.indent?zt.localMode.indent(zt.localState,nt,it):y.Pass},blankLine:Ut,getType:Kt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return ln},"xml"),y.defineMIME("text/markdown","markdown"),y.defineMIME("text/x-markdown","markdown")})},98101:function(V,w,h){(function(y){y(h(89780))})(function(y){"use strict";y.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 N=0;N<y.modeInfo.length;N++){var O=y.modeInfo[N];O.mimes&&(O.mime=O.mimes[0])}y.findModeByMIME=function(B){B=B.toLowerCase();for(var _=0;_<y.modeInfo.length;_++){var K=y.modeInfo[_];if(K.mime==B)return K;if(K.mimes){for(var I=0;I<K.mimes.length;I++)if(K.mimes[I]==B)return K}}if(/\+xml$/.test(B))return y.findModeByMIME("application/xml");if(/\+json$/.test(B))return y.findModeByMIME("application/json")},y.findModeByExtension=function(B){B=B.toLowerCase();for(var _=0;_<y.modeInfo.length;_++){var K=y.modeInfo[_];if(K.ext){for(var I=0;I<K.ext.length;I++)if(K.ext[I]==B)return K}}},y.findModeByFileName=function(B){for(var _=0;_<y.modeInfo.length;_++){var K=y.modeInfo[_];if(K.file&&K.file.test(B))return K}var I=B.lastIndexOf("."),dt=I>-1&&B.substring(I+1,B.length);if(dt)return y.findModeByExtension(dt)},y.findModeByName=function(B){B=B.toLowerCase();for(var _=0;_<y.modeInfo.length;_++){var K=y.modeInfo[_];if(K.name.toLowerCase()==B)return K;if(K.alias){for(var I=0;I<K.alias.length;I++)if(K.alias[I].toLowerCase()==B)return K}}}})},67549:function(V,w,h){(function(y){y(h(89780))})(function(y){"use strict";y.defineMode("stex",function(N,O){"use strict";function B(At,vt){At.cmdState.push(vt)}function _(At){return At.cmdState.length>0?At.cmdState[At.cmdState.length-1]:null}function K(At){var vt=At.cmdState.pop();vt&&vt.closeBracket()}function I(At){for(var vt=At.cmdState,Tt=vt.length-1;Tt>=0;Tt--){var Mt=vt[Tt];if(Mt.name!="DEFAULT")return Mt}return{styleIdentifier:function(){return null}}}function dt(At,vt,Tt){return function(){this.name=At,this.bracketNo=0,this.style=vt,this.styles=Tt,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var rt={};rt.importmodule=dt("importmodule","tag",["string","builtin"]),rt.documentclass=dt("documentclass","tag",["","atom"]),rt.usepackage=dt("usepackage","tag",["atom"]),rt.begin=dt("begin","tag",["atom"]),rt.end=dt("end","tag",["atom"]),rt.label=dt("label","tag",["atom"]),rt.ref=dt("ref","tag",["atom"]),rt.eqref=dt("eqref","tag",["atom"]),rt.cite=dt("cite","tag",["atom"]),rt.bibitem=dt("bibitem","tag",["atom"]),rt.Bibitem=dt("Bibitem","tag",["atom"]),rt.RBibitem=dt("RBibitem","tag",["atom"]),rt.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Q(At,vt){At.f=vt}function kt(At,vt){var Tt;if(At.match(/^\\[a-zA-Z@]+/)){var Mt=At.current().slice(1);return Tt=rt.hasOwnProperty(Mt)?rt[Mt]:rt.DEFAULT,Tt=new Tt,B(vt,Tt),Q(vt,Yt),Tt.style}if(At.match(/^\\[$&%#{}_]/)||At.match(/^\\[,;!\/\\]/))return"tag";if(At.match("\\["))return Q(vt,function(It,$t){return Y(It,$t,"\\]")}),"keyword";if(At.match("\\("))return Q(vt,function(It,$t){return Y(It,$t,"\\)")}),"keyword";if(At.match("$$"))return Q(vt,function(It,$t){return Y(It,$t,"$$")}),"keyword";if(At.match("$"))return Q(vt,function(It,$t){return Y(It,$t,"$")}),"keyword";var ft=At.next();if(ft=="%")return At.skipToEnd(),"comment";if(ft=="}"||ft=="]"){if(Tt=_(vt),Tt)Tt.closeBracket(ft),Q(vt,Yt);else return"error";return"bracket"}else return ft=="{"||ft=="["?(Tt=rt.DEFAULT,Tt=new Tt,B(vt,Tt),"bracket"):/\d/.test(ft)?(At.eatWhile(/[\w.%]/),"atom"):(At.eatWhile(/[\w\-_]/),Tt=I(vt),Tt.name=="begin"&&(Tt.argument=At.current()),Tt.styleIdentifier())}function Y(At,vt,Tt){if(At.eatSpace())return null;if(Tt&&At.match(Tt))return Q(vt,kt),"keyword";if(At.match(/^\\[a-zA-Z@]+/))return"tag";if(At.match(/^[a-zA-Z]+/))return"variable-2";if(At.match(/^\\[$&%#{}_]/)||At.match(/^\\[,;!\/]/)||At.match(/^[\^_&]/))return"tag";if(At.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(At.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Mt=At.next();return Mt=="{"||Mt=="}"||Mt=="["||Mt=="]"||Mt=="("||Mt==")"?"bracket":Mt=="%"?(At.skipToEnd(),"comment"):"error"}function Yt(At,vt){var Tt=At.peek(),Mt;return Tt=="{"||Tt=="["?(Mt=_(vt),Mt.openBracket(Tt),At.eat(Tt),Q(vt,kt),"bracket"):/[ \t\r]/.test(Tt)?(At.eat(Tt),null):(Q(vt,kt),K(vt),kt(At,vt))}return{startState:function(){var At=O.inMathMode?function(vt,Tt){return Y(vt,Tt)}:kt;return{cmdState:[],f:At}},copyState:function(At){return{cmdState:At.cmdState.slice(),f:At.f}},token:function(At,vt){return vt.f(At,vt)},blankLine:function(At){At.f=kt,At.cmdState.length=0},lineComment:"%"}}),y.defineMIME("text/x-stex","stex"),y.defineMIME("text/x-latex","stex")})},15525:function(V,w,h){(function(y){y(h(89780))})(function(y){"use strict";var N={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},O={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};y.defineMode("xml",function(B,_){var K=B.indentUnit,I={},dt=_.htmlMode?N:O;for(var rt in dt)I[rt]=dt[rt];for(var rt in _)I[rt]=_[rt];var Q,kt;function Y(yt,ae){function Ht(we){return ae.tokenize=we,we(yt,ae)}var Pe=yt.next();if(Pe=="<")return yt.eat("!")?yt.eat("[")?yt.match("CDATA[")?Ht(vt("atom","]]>")):null:yt.match("--")?Ht(vt("comment","-->")):yt.match("DOCTYPE",!0,!0)?(yt.eatWhile(/[\w\._\-]/),Ht(Tt(1))):null:yt.eat("?")?(yt.eatWhile(/[\w\._\-]/),ae.tokenize=vt("meta","?>"),"meta"):(Q=yt.eat("/")?"closeTag":"openTag",ae.tokenize=Yt,"tag bracket");if(Pe=="&"){var ge;return yt.eat("#")?yt.eat("x")?ge=yt.eatWhile(/[a-fA-F\d]/)&&yt.eat(";"):ge=yt.eatWhile(/[\d]/)&&yt.eat(";"):ge=yt.eatWhile(/[\w\.\-:]/)&&yt.eat(";"),ge?"atom":"error"}else return yt.eatWhile(/[^&<]/),null}Y.isInText=!0;function Yt(yt,ae){var Ht=yt.next();if(Ht==">"||Ht=="/"&&yt.eat(">"))return ae.tokenize=Y,Q=Ht==">"?"endTag":"selfcloseTag","tag bracket";if(Ht=="=")return Q="equals",null;if(Ht=="<"){ae.tokenize=Y,ae.state=$t,ae.tagName=ae.tagStart=null;var Pe=ae.tokenize(yt,ae);return Pe?Pe+" tag error":"tag error"}else return/[\'\"]/.test(Ht)?(ae.tokenize=At(Ht),ae.stringStartCol=yt.column(),ae.tokenize(yt,ae)):(yt.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function At(yt){var ae=function(Ht,Pe){for(;!Ht.eol();)if(Ht.next()==yt){Pe.tokenize=Yt;break}return"string"};return ae.isInAttribute=!0,ae}function vt(yt,ae){return function(Ht,Pe){for(;!Ht.eol();){if(Ht.match(ae)){Pe.tokenize=Y;break}Ht.next()}return yt}}function Tt(yt){return function(ae,Ht){for(var Pe;(Pe=ae.next())!=null;){if(Pe=="<")return Ht.tokenize=Tt(yt+1),Ht.tokenize(ae,Ht);if(Pe==">")if(yt==1){Ht.tokenize=Y;break}else return Ht.tokenize=Tt(yt-1),Ht.tokenize(ae,Ht)}return"meta"}}function Mt(yt,ae,Ht){this.prev=yt.context,this.tagName=ae,this.indent=yt.indented,this.startOfLine=Ht,(I.doNotIndent.hasOwnProperty(ae)||yt.context&&yt.context.noIndent)&&(this.noIndent=!0)}function ft(yt){yt.context&&(yt.context=yt.context.prev)}function It(yt,ae){for(var Ht;;){if(!yt.context||(Ht=yt.context.tagName,!I.contextGrabbers.hasOwnProperty(Ht)||!I.contextGrabbers[Ht].hasOwnProperty(ae)))return;ft(yt)}}function $t(yt,ae,Ht){return yt=="openTag"?(Ht.tagStart=ae.column(),Nt):yt=="closeTag"?Ut:$t}function Nt(yt,ae,Ht){return yt=="word"?(Ht.tagName=ae.current(),kt="tag",Lt):I.allowMissingTagName&&yt=="endTag"?(kt="tag bracket",Lt(yt,ae,Ht)):(kt="error",Nt)}function Ut(yt,ae,Ht){if(yt=="word"){var Pe=ae.current();return Ht.context&&Ht.context.tagName!=Pe&&I.implicitlyClosed.hasOwnProperty(Ht.context.tagName)&&ft(Ht),Ht.context&&Ht.context.tagName==Pe||I.matchClosing===!1?(kt="tag",et):(kt="tag error",Rt)}else return I.allowMissingTagName&&yt=="endTag"?(kt="tag bracket",et(yt,ae,Ht)):(kt="error",Rt)}function et(yt,ae,Ht){return yt!="endTag"?(kt="error",et):(ft(Ht),$t)}function Rt(yt,ae,Ht){return kt="error",et(yt,ae,Ht)}function Lt(yt,ae,Ht){if(yt=="word")return kt="attribute",Kt;if(yt=="endTag"||yt=="selfcloseTag"){var Pe=Ht.tagName,ge=Ht.tagStart;return Ht.tagName=Ht.tagStart=null,yt=="selfcloseTag"||I.autoSelfClosers.hasOwnProperty(Pe)?It(Ht,Pe):(It(Ht,Pe),Ht.context=new Mt(Ht,Pe,ge==Ht.indented)),$t}return kt="error",Lt}function Kt(yt,ae,Ht){return yt=="equals"?Qt:(I.allowMissing||(kt="error"),Lt(yt,ae,Ht))}function Qt(yt,ae,Ht){return yt=="string"?ie:yt=="word"&&I.allowUnquoted?(kt="string",Lt):(kt="error",Lt(yt,ae,Ht))}function ie(yt,ae,Ht){return yt=="string"?ie:Lt(yt,ae,Ht)}return{startState:function(yt){var ae={tokenize:Y,state:$t,indented:yt||0,tagName:null,tagStart:null,context:null};return yt!=null&&(ae.baseIndent=yt),ae},token:function(yt,ae){if(!ae.tagName&&yt.sol()&&(ae.indented=yt.indentation()),yt.eatSpace())return null;Q=null;var Ht=ae.tokenize(yt,ae);return(Ht||Q)&&Ht!="comment"&&(kt=null,ae.state=ae.state(Q||Ht,yt,ae),kt&&(Ht=kt=="error"?Ht+" error":kt)),Ht},indent:function(yt,ae,Ht){var Pe=yt.context;if(yt.tokenize.isInAttribute)return yt.tagStart==yt.indented?yt.stringStartCol+1:yt.indented+K;if(Pe&&Pe.noIndent)return y.Pass;if(yt.tokenize!=Yt&&yt.tokenize!=Y)return Ht?Ht.match(/^(\s*)/)[0].length:0;if(yt.tagName)return I.multilineTagIndentPastTag!==!1?yt.tagStart+yt.tagName.length+2:yt.tagStart+K*(I.multilineTagIndentFactor||1);if(I.alignCDATA&&/<!\[CDATA\[/.test(ae))return 0;var ge=ae&&/^<(\/)?([\w_:\.-]*)/.exec(ae);if(ge&&ge[1])for(;Pe;)if(Pe.tagName==ge[2]){Pe=Pe.prev;break}else if(I.implicitlyClosed.hasOwnProperty(Pe.tagName))Pe=Pe.prev;else break;else if(ge)for(;Pe;){var we=I.contextGrabbers[Pe.tagName];if(we&&we.hasOwnProperty(ge[2]))Pe=Pe.prev;else break}for(;Pe&&Pe.prev&&!Pe.startOfLine;)Pe=Pe.prev;return Pe?Pe.indent+K:yt.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:I.htmlMode?"html":"xml",helperType:I.htmlMode?"html":"xml",skipAttribute:function(yt){yt.state==Qt&&(yt.state=Lt)},xmlCurrentTag:function(yt){return yt.tagName?{name:yt.tagName,close:yt.type=="closeTag"}:null},xmlCurrentContext:function(yt){for(var ae=[],Ht=yt.context;Ht;Ht=Ht.prev)Ht.tagName&&ae.push(Ht.tagName);return ae.reverse()}}}),y.defineMIME("text/xml","xml"),y.defineMIME("application/xml","xml"),y.mimeModes.hasOwnProperty("text/html")||y.defineMIME("text/html",{name:"xml",htmlMode:!0})})},58951:function(V,w){"use strict";var h;w.Q=B,h=_;var y=",",N=" ",O="";function B(K){for(var I=[],dt=String(K||O),rt=dt.indexOf(y),Q=0,kt=!1,Y;!kt;)rt===-1&&(rt=dt.length,kt=!0),Y=dt.slice(Q,rt).trim(),(Y||!kt)&&I.push(Y),Q=rt+1,rt=dt.indexOf(y,Q);return I}function _(K,I){var dt=I||{},rt=dt.padLeft===!1?O:N,Q=dt.padRight?N:O;return K[K.length-1]===O&&(K=K.concat(O)),K.join(Q+y+rt).trim()}},58847:function(V){"use strict";var w=Object.prototype.hasOwnProperty,h=Object.prototype.toString,y=Object.defineProperty,N=Object.getOwnPropertyDescriptor,O=function(dt){return typeof Array.isArray=="function"?Array.isArray(dt):h.call(dt)==="[object Array]"},B=function(dt){if(!dt||h.call(dt)!=="[object Object]")return!1;var rt=w.call(dt,"constructor"),Q=dt.constructor&&dt.constructor.prototype&&w.call(dt.constructor.prototype,"isPrototypeOf");if(dt.constructor&&!rt&&!Q)return!1;var kt;for(kt in dt);return typeof kt=="undefined"||w.call(dt,kt)},_=function(dt,rt){y&&rt.name==="__proto__"?y(dt,rt.name,{enumerable:!0,configurable:!0,value:rt.newValue,writable:!0}):dt[rt.name]=rt.newValue},K=function(dt,rt){if(rt==="__proto__")if(w.call(dt,rt)){if(N)return N(dt,rt).value}else return;return dt[rt]};V.exports=function I(){var dt,rt,Q,kt,Y,Yt,At=arguments[0],vt=1,Tt=arguments.length,Mt=!1;for(typeof At=="boolean"&&(Mt=At,At=arguments[1]||{},vt=2),(At==null||typeof At!="object"&&typeof At!="function")&&(At={});vt<Tt;++vt)if(dt=arguments[vt],dt!=null)for(rt in dt)Q=K(At,rt),kt=K(dt,rt),At!==kt&&(Mt&&kt&&(B(kt)||(Y=O(kt)))?(Y?(Y=!1,Yt=Q&&O(Q)?Q:[]):Yt=Q&&B(Q)?Q:{},_(At,{name:rt,newValue:I(Mt,Yt,kt)})):typeof kt!="undefined"&&_(At,{name:rt,newValue:kt}));return At}},12378:function(V,w,h){"use strict";h.d(w,{$u:function(){return rt},BD:function(){return ct},E9:function(){return dt},FF:function(){return an},FJ:function(){return $t},Hn:function(){return It},KX:function(){return Ut},NB:function(){return Dt},S0:function(){return $n},UL:function(){return Q},Vk:function(){return ft},Vm:function(){return _t},YI:function(){return fn},ZA:function(){return O},Zt:function(){return kt},al:function(){return T},bn:function(){return G},bx:function(){return L},g2:function(){return hn},h1:function(){return Qt},hD:function(){return Cn},l4:function(){return K},rU:function(){return qt},s_:function(){return k},uz:function(){return xt},z6:function(){return Y}}),V=h.hmd(V),function(){var D;function fr(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}function er(t){var e=typeof Symbol!="undefined"&&Symbol.iterator&&t[Symbol.iterator];return e?e.call(t):{next:fr(t)}}function Gr(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}var Zr=typeof Object.create=="function"?Object.create:function(t){function e(){}return e.prototype=t,new e},mo;if(typeof Object.setPrototypeOf=="function")mo=Object.setPrototypeOf;else{var Ei;t:{var No={a:!0},Ir={};try{Ir.__proto__=No,Ei=Ir.a;break t}catch(t){}Ei=!1}mo=Ei?function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+" is not extensible");return t}:null}var Gi=mo;function Jn(t,e){if(t.prototype=Zr(e.prototype),t.prototype.constructor=t,Gi)Gi(t,e);else for(var n in e)if(n!="prototype")if(Object.defineProperties){var i=Object.getOwnPropertyDescriptor(e,n);i&&Object.defineProperty(t,n,i)}else t[n]=e[n];t.QA=e.prototype}var te=typeof h.g!="undefined"&&h.g!=null?h.g:self,Nn=typeof Object.assign=="function"?Object.assign:function(t,e){for(var n=1;n<arguments.length;n++){var i=arguments[n];if(i)for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},Bn=typeof Object.defineProperties=="function"?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)};function oe(t,e){if(e){var n=te;t=t.split(".");for(var i=0;i<t.length-1;i++){var r=t[i];r in n||(n[r]={}),n=n[r]}t=t[t.length-1],i=n[t],e=e(i),e!=i&&e!=null&&Bn(n,t,{writable:!0,value:e})}}oe("Object.assign",function(t){return t||Nn}),oe("Array.prototype.fill",function(t){return t||function(e,n,i){var r=this.length||0;for(0>n&&(n=Math.max(0,r+n)),(i==null||i>r)&&(i=r),i=Number(i),0>i&&(i=Math.max(0,r+i)),n=Number(n||0);n<i;n++)this[n]=e;return this}});var Ft=typeof globalThis=="object"&&globalThis||typeof h.g=="object"&&h.g.global===h.g&&h.g||typeof self=="object"&&self.self===self&&self||{};Ft.requestAnimationFrame===void 0&&(Ft.setImmediate===void 0?Ft.requestAnimationFrame=function(t){Ft.setTimeout(t,0)}:Ft.requestAnimationFrame=Ft.setImmediate);function qe(){}function xn(t,e){var n=-1;return function(){var i=this,r=arguments;n!==-1&&Ft.clearTimeout(n),n=Gn(function(){n=-1,t.apply(i,r)},e)}}function Gn(t,e){return Ft.setTimeout(t,e)}function kn(t){return Ft.document.createElement(t)}function ne(t){throw Error(t)}function dn(t,e){t="The object is frozen, so its properties cannot be set: "+t.toString(),e!==void 0&&(t+=" to value: "+e),ne(t)}function Fn(t,e,n,i){n=n===null?"*":typeof n=="string"?n:typeof n=="function"&&typeof n.className=="string"?n.className:"",i!==void 0&&(n+="."+i),ne(n+" is not in the range "+e+": "+t)}function hi(t){Ft.console&&Ft.console.log(t)}function Me(t){return typeof t=="object"&&t!==null}function In(t){return Array.isArray(t)||Ft.NodeList&&t instanceof Ft.NodeList||Ft.HTMLCollection&&t instanceof Ft.HTMLCollection}function be(t){return Array.prototype.slice.call(t)}function $e(t,e,n){Array.isArray(t)?e>=t.length?t.push(n):t.splice(e,0,n):ne("Cannot insert an object into an HTMLCollection or NodeList: "+n+" at "+e)}function He(t,e){Array.isArray(t)?e>=t.length?t.pop():t.splice(e,1):ne("Cannot remove an object from an HTMLCollection or NodeList at "+e)}function Le(){var t=Mi.pop();return t===void 0?[]:t}function tn(t){t.length=0,Mi.push(t)}function Je(t){if(typeof t=="function"){if(t.className)return t.className;if(t.name)return t.name;var e=t.toString();if(e=e.substring(9,e.indexOf("(")).trim(),e!=="")return t._className=e}else if(Me(t)&&t.constructor)return Je(t.constructor);return typeof t}function yn(t){var e=t;return Me(t)&&(t.text?e=t.text:t.name?e=t.name:t.key!==void 0?e=t.key:t.id!==void 0?e=t.id:t.constructor===Object&&(t.Text?e=t.Text:t.Name?e=t.Name:t.Key!==void 0?e=t.Key:t.Id!==void 0?e=t.Id:t.ID!==void 0&&(e=t.ID))),e===void 0?"undefined":e===null?"null":e.toString()}function bn(t,e){if(t.hasOwnProperty(e))return!0;for(t=Object.getPrototypeOf(t);t&&t!==Function;){if(t.hasOwnProperty(e))return!0;var n=t.CA;if(n&&n[e])return!0;t=Object.getPrototypeOf(t)}return!1}function di(t,e,n){Object.defineProperty(Bo.prototype,t,{get:e,set:n})}function Sn(t){for(var e=[],n=0;256>n;n++)e["0123456789abcdef".charAt(n>>4)+"0123456789abcdef".charAt(n&15)]=String.fromCharCode(n);t.length%2&&(t="0"+t),n=[];for(var i=0,r=0;r<t.length;r+=2)n[i++]=e[t.substr(r,2)];for(t=n.join(""),t=t===""?"0":t,e=[],n=0;256>n;n++)e[n]=n;for(n=i=0;256>n;n++)i=(i+e[n]+119)%256,r=e[n],e[n]=e[i],e[i]=r;i=n=0;for(var o="",s=0;s<t.length;s++)n=(n+1)%256,i=(i+e[n])%256,r=e[n],e[n]=e[i],e[i]=r,o+=String.fromCharCode(t.charCodeAt(s)^e[(e[n]+e[i])%256]);return o.indexOf("GoJS 2.1 evaluation")>-1||o.indexOf("\xA9 1998-2021 Northwoods Software")>-1||o.indexOf("Not for distribution or production use")>-1||o.indexOf("gojs.net")>-1?"":o}var xi=Ft.navigator!==void 0&&0<Ft.navigator.userAgent.indexOf("Trident/7"),ir=Ft.navigator!==void 0&&Ft.navigator.platform!==void 0&&Ft.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,Mi=[];Object.freeze([]),qe.className="Util",qe.Dx="32ab5ff3b26f42dc0ed90f21472913b5",qe.adym="gojs.net",qe.vfo="28e645fdb266",qe.className="Util";function le(t,e,n){nr(this),this.j=t,this.xa=e,this.o=n}le.prototype.toString=function(){return"EnumValue."+this.xa};function mr(t,e){return e==null||e===""?null:t[e]}te.Object.defineProperties(le.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),le.className="EnumValue";function Or(){this.ew=[]}Or.prototype.toString=function(){return this.ew.join("")},Or.prototype.add=function(t){t!==""&&this.ew.push(t)},Or.className="StringBuilder";function zr(){}zr.className="PropertyCollection";var Yr={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(t){Ft.console&&Ft.console.log(t)},HA:function(t,e,n,i){t.strokeStyle="red",t.fillStyle="red",t.font="8px sans-serif",t.beginPath(),t.moveTo(-10,0),t.lineTo(10,0),t.moveTo(0,-10),t.lineTo(0,10),t.stroke(),t.setTransform(1,0,0,1,0,0),t.scale(n,n),t.transform(e.m11,e.m12,e.m21,e.m22,e.dx,e.dy),t.lineWidth=2,t.beginPath(),t.moveTo(i.left,i.top+20),t.lineTo(i.left,i.top),t.lineTo(i.left+20,i.top),t.moveTo(i.right,i.bottom-20),t.lineTo(i.right,i.bottom),t.lineTo(i.right-20,i.bottom),t.stroke(),t.fillText("DB: "+Math.round(i.x)+", "+Math.round(i.y)+", "+Math.round(i.width)+", "+Math.round(i.height),i.left,i.top-5)},DA:function(t){var e={},n;for(n in t){if(e.x=n,e.x!=="licenseKey"){var i=t[e.x];if(i.prototype!==void 0){e.Zl=Object.getOwnPropertyNames(i.prototype);for(var r={Tj:0};r.Tj<e.Zl.length;r={Tj:r.Tj},r.Tj++){var o=Object.getOwnPropertyDescriptor(i.prototype,e.Zl[r.Tj]);o.get!==void 0&&o.set===void 0&&Object.defineProperty(i.prototype,e.Zl[r.Tj],{set:function(s,l){return function(){throw Error("Property "+s.Zl[l.Tj]+" of "+s.x+" is read-only.")}}(e,r)})}}}e={Zl:e.Zl,x:e.x}}}};function dr(){}dr.prototype.reset=function(){},dr.prototype.next=function(){return!1},dr.prototype.Ad=function(){return!1},dr.prototype.first=function(){return null},dr.prototype.any=function(){return!1},dr.prototype.all=function(){return!0},dr.prototype.each=function(){return this},dr.prototype.map=function(){return this},dr.prototype.filter=function(){return this},dr.prototype.de=function(){},dr.prototype.toString=function(){return"EmptyIterator"},te.Object.defineProperties(dr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),dr.prototype.first=dr.prototype.first,dr.prototype.hasNext=dr.prototype.Ad,dr.prototype.next=dr.prototype.next,dr.prototype.reset=dr.prototype.reset;var Er=null;dr.className="EmptyIterator",Er=new dr;function Pi(t){this.key=-1,this.value=t}Pi.prototype.reset=function(){this.key=-1},Pi.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Pi.prototype.Ad=function(){return this.next()},Pi.prototype.first=function(){return this.key=0,this.value},Pi.prototype.any=function(t){return this.key=-1,t(this.value)},Pi.prototype.all=function(t){return this.key=-1,t(this.value)},Pi.prototype.each=function(t){return this.key=-1,t(this.value),this},Pi.prototype.map=function(t){return new Pi(t(this.value))},Pi.prototype.filter=function(t){return t(this.value)?new Pi(this.value):Er},Pi.prototype.de=function(){this.value=null},Pi.prototype.toString=function(){return"SingletonIterator("+this.value+")"},te.Object.defineProperties(Pi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),Pi.prototype.first=Pi.prototype.first,Pi.prototype.hasNext=Pi.prototype.Ad,Pi.prototype.next=Pi.prototype.next,Pi.prototype.reset=Pi.prototype.reset,Pi.className="SingletonIterator";function pi(t){this.Bb=t,this.qf=null,t.Sa=null,this.qa=t.Ja,this.Za=-1}pi.prototype.reset=function(){var t=this.Bb;t.Sa=null,this.qa=t.Ja,this.Za=-1},pi.prototype.next=function(){var t=this.Bb;if(t.Ja!==this.qa&&0>this.key)return!1;t=t.s;var e=t.length,n=++this.Za,i=this.qf;if(i!==null)for(;n<e;){var r=t[n];if(i(r))return this.key=this.Za=n,this.value=r,!0;n++}else{if(n<e)return this.key=n,this.value=t[n],!0;this.de()}return!1},pi.prototype.Ad=function(){return this.next()},pi.prototype.first=function(){var t=this.Bb;this.qa=t.Ja,this.Za=0,t=t.s;var e=t.length,n=this.qf;if(n!==null){for(var i=0;i<e;){var r=t[i];if(n(r))return this.key=this.Za=i,this.value=r;i++}return null}return 0<e?(t=t[0],this.key=0,this.value=t):null},pi.prototype.any=function(t){var e=this.Bb;e.Sa=null,this.Za=-1,e=e.s;for(var n=e.length,i=this.qf,r=0;r<n;r++){var o=e[r];if((i===null||i(o))&&t(o))return!0}return!1},pi.prototype.all=function(t){var e=this.Bb;e.Sa=null,this.Za=-1,e=e.s;for(var n=e.length,i=this.qf,r=0;r<n;r++){var o=e[r];if((i===null||i(o))&&!t(o))return!1}return!0},pi.prototype.each=function(t){var e=this.Bb;e.Sa=null,this.Za=-1,e=e.s;for(var n=e.length,i=this.qf,r=0;r<n;r++){var o=e[r];(i===null||i(o))&&t(o)}return this},pi.prototype.map=function(t){var e=this.Bb;e.Sa=null,this.Za=-1;var n=[];e=e.s;for(var i=e.length,r=this.qf,o=0;o<i;o++){var s=e[o];(r===null||r(s))&&n.push(t(s))}return t=new Re,t.s=n,t.xb(),t.iterator},pi.prototype.filter=function(t){var e=this.Bb;e.Sa=null,this.Za=-1;var n=[];e=e.s;for(var i=e.length,r=this.qf,o=0;o<i;o++){var s=e[o];(r===null||r(s))&&t(s)&&n.push(s)}return t=new Re,t.s=n,t.xb(),t.iterator},pi.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},pi.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},te.Object.defineProperties(pi.prototype,{iterator:{get:function(){return this}},predicate:{get:function(){return this.qf},set:function(t){this.qf=t}},count:{get:function(){var t=this.qf;if(t!==null){for(var e=0,n=this.Bb.s,i=n.length,r=0;r<i;r++)t(n[r])&&e++;return e}return this.Bb.s.length}}}),pi.prototype.first=pi.prototype.first,pi.prototype.hasNext=pi.prototype.Ad,pi.prototype.next=pi.prototype.next,pi.prototype.reset=pi.prototype.reset,pi.className="ListIterator";function ur(t){this.Bb=t,t.Hg=null,this.qa=t.Ja,this.Za=t.s.length}ur.prototype.reset=function(){var t=this.Bb;t.Hg=null,this.qa=t.Ja,this.Za=t.s.length},ur.prototype.next=function(){var t=this.Bb;if(t.Ja!==this.qa&&0>this.key)return!1;var e=--this.Za;return 0<=e?(this.key=e,this.value=t.s[e],!0):(this.de(),!1)},ur.prototype.Ad=function(){return this.next()},ur.prototype.first=function(){var t=this.Bb;this.qa=t.Ja;var e=t.s;return this.Za=t=e.length-1,0<=t?(e=e[t],this.key=t,this.value=e):null},ur.prototype.any=function(t){var e=this.Bb;e.Hg=null,e=e.s;var n=e.length;for(this.Za=n,--n;0<=n;n--)if(t(e[n]))return!0;return!1},ur.prototype.all=function(t){var e=this.Bb;e.Hg=null,e=e.s;var n=e.length;for(this.Za=n,--n;0<=n;n--)if(!t(e[n]))return!1;return!0},ur.prototype.each=function(t){var e=this.Bb;e.Hg=null,e=e.s;var n=e.length;for(this.Za=n,--n;0<=n;n--)t(e[n]);return this},ur.prototype.map=function(t){var e=this.Bb;e.Hg=null;var n=[];e=e.s;var i=e.length;for(this.Za=i,--i;0<=i;i--)n.push(t(e[i]));return t=new Re,t.s=n,t.xb(),t.iterator},ur.prototype.filter=function(t){var e=this.Bb;e.Hg=null;var n=[];e=e.s;var i=e.length;for(this.Za=i,--i;0<=i;i--){var r=e[i];t(r)&&n.push(r)}return t=new Re,t.s=n,t.xb(),t.iterator},ur.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},ur.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},te.Object.defineProperties(ur.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),ur.prototype.first=ur.prototype.first,ur.prototype.hasNext=ur.prototype.Ad,ur.prototype.next=ur.prototype.next,ur.prototype.reset=ur.prototype.reset,ur.className="ListIteratorBackwards";function Re(t){nr(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof t=="string"&&ne("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),t!==void 0&&this.addAll(t)}D=Re.prototype,D.xb=function(){var t=this.Ja;t++,999999999<t&&(t=0),this.Ja=t},D.freeze=function(){return this._isFrozen=!0,this},D.ka=function(){return this._isFrozen=!1,this},D.toString=function(){return"List()#"+Br(this)},D.add=function(t){return t===null?this:(this._isFrozen&&dn(this,t),this.s.push(t),this.xb(),this)},D.push=function(t){this.add(t)},D.addAll=function(t){if(t===null)return this;this._isFrozen&&dn(this);var e=this.s;if(In(t))for(var n=t.length,i=0;i<n;i++)e.push(t[i]);else for(t=t.iterator;t.next();)e.push(t.value);return this.xb(),this},D.clear=function(){this._isFrozen&&dn(this),this.s.length=0,this.xb()},D.contains=function(t){return t===null?!1:this.s.indexOf(t)!==-1},D.has=function(t){return this.contains(t)},D.indexOf=function(t){return t===null?-1:this.s.indexOf(t)},D.M=function(t){var e=this.s;return(0>t||t>=e.length)&&Fn(t,"0 <= i < length",Re,"elt:i"),e[t]},D.get=function(t){return this.M(t)},D.cd=function(t,e){var n=this.s;(0>t||t>=n.length)&&Fn(t,"0 <= i < length",Re,"setElt:i"),this._isFrozen&&dn(this,t),n[t]=e},D.set=function(t,e){this.cd(t,e)},D.first=function(){var t=this.s;return t.length===0?null:t[0]},D.jc=function(){var t=this.s,e=t.length;return 0<e?t[e-1]:null},D.pop=function(){this._isFrozen&&dn(this);var t=this.s;return 0<t.length?t.pop():null},Re.prototype.any=function(t){for(var e=this.s,n=e.length,i=0;i<n;i++)if(t(e[i]))return!0;return!1},Re.prototype.all=function(t){for(var e=this.s,n=e.length,i=0;i<n;i++)if(!t(e[i]))return!1;return!0},Re.prototype.each=function(t){for(var e=this.s,n=e.length,i=0;i<n;i++)t(e[i]);return this},Re.prototype.map=function(t){for(var e=new Re,n=[],i=this.s,r=i.length,o=0;o<r;o++)n.push(t(i[o]));return e.s=n,e.xb(),e},Re.prototype.filter=function(t){for(var e=new Re,n=[],i=this.s,r=i.length,o=0;o<r;o++){var s=i[o];t(s)&&n.push(s)}return e.s=n,e.xb(),e},D=Re.prototype,D.Gb=function(t,e){0>t&&Fn(t,">= 0",Re,"insertAt:i"),this._isFrozen&&dn(this,t);var n=this.s;t>=n.length?n.push(e):n.splice(t,0,e),this.xb()},D.remove=function(t){if(t===null)return!1;this._isFrozen&&dn(this,t);var e=this.s;return t=e.indexOf(t),t===-1?!1:(t===e.length-1?e.pop():e.splice(t,1),this.xb(),!0)},D.delete=function(t){return this.remove(t)},D.mb=function(t){var e=this.s;(0>t||t>=e.length)&&Fn(t,"0 <= i < length",Re,"removeAt:i"),this._isFrozen&&dn(this,t),t===e.length-1?e.pop():e.splice(t,1),this.xb()},D.removeRange=function(t,e){var n=this.s,i=n.length;if(0>t)t=0;else if(t>=i)return this;if(0>e)return this;if(e>=i&&(e=i-1),t>e)return this;this._isFrozen&&dn(this);for(var r=t,o=e+1;o<i;)n[r++]=n[o++];return n.length=i-(e-t+1),this.xb(),this},Re.prototype.copy=function(){var t=new Re,e=this.s;return 0<e.length&&(t.s=Array.prototype.slice.call(e)),t},D=Re.prototype,D.Fa=function(){for(var t=this.s,e=this.count,n=Array(e),i=0;i<e;i++)n[i]=t[i];return n},D.Iv=function(){for(var t=new je,e=this.s,n=this.count,i=0;i<n;i++)t.add(e[i]);return t},D.sort=function(t){return this._isFrozen&&dn(this),this.s.sort(t),this.xb(),this},D.zi=function(t,e,n){var i=this.s,r=i.length;e===void 0&&(e=0),n===void 0&&(n=r),this._isFrozen&&dn(this);var o=n-e;if(1>=o)return this;if((0>e||e>=r-1)&&Fn(e,"0 <= from < length",Re,"sortRange:from"),o===2)return n=i[e],r=i[e+1],0<t(n,r)&&(i[e]=r,i[e+1]=n,this.xb()),this;if(e===0)if(n>=r)i.sort(t);else for(e=i.slice(0,n),e.sort(t),t=0;t<n;t++)i[t]=e[t];else if(n>=r)for(n=i.slice(e),n.sort(t),t=e;t<r;t++)i[t]=n[t-e];else for(r=i.slice(e,n),r.sort(t),t=e;t<n;t++)i[t]=r[t-e];return this.xb(),this},D.reverse=function(){return this._isFrozen&&dn(this),this.s.reverse(),this.xb(),this},te.Object.defineProperties(Re.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 Er;var t=this.Sa;return t!==null?(t.reset(),t):new pi(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Er;var t=this.Hg;return t!==null?(t.reset(),t):new ur(this)}}}),Re.prototype.reverse=Re.prototype.reverse,Re.prototype.sortRange=Re.prototype.zi,Re.prototype.sort=Re.prototype.sort,Re.prototype.toSet=Re.prototype.Iv,Re.prototype.toArray=Re.prototype.Fa,Re.prototype.removeRange=Re.prototype.removeRange,Re.prototype.removeAt=Re.prototype.mb,Re.prototype.delete=Re.prototype.delete,Re.prototype.remove=Re.prototype.remove,Re.prototype.insertAt=Re.prototype.Gb,Re.prototype.pop=Re.prototype.pop,Re.prototype.last=Re.prototype.jc,Re.prototype.first=Re.prototype.first,Re.prototype.set=Re.prototype.set,Re.prototype.setElt=Re.prototype.cd,Re.prototype.get=Re.prototype.get,Re.prototype.elt=Re.prototype.M,Re.prototype.indexOf=Re.prototype.indexOf,Re.prototype.has=Re.prototype.has,Re.prototype.contains=Re.prototype.contains,Re.prototype.clear=Re.prototype.clear,Re.prototype.addAll=Re.prototype.addAll,Re.prototype.push=Re.prototype.push,Re.prototype.add=Re.prototype.add,Re.prototype.thaw=Re.prototype.ka,Re.prototype.freeze=Re.prototype.freeze,Re.className="List";function Rr(t){this.eg=t,t.Sa=null,this.qa=t.Ja,this.sa=null}Rr.prototype.reset=function(){var t=this.eg;t.Sa=null,this.qa=t.Ja,this.sa=null},Rr.prototype.next=function(){var t=this.eg;if(t.Ja!==this.qa&&this.key===null)return!1;var e=this.sa;return e=e===null?t.ea:e.va,e!==null?(this.sa=e,this.value=e.value,this.key=e.key,!0):(this.de(),!1)},Rr.prototype.Ad=function(){return this.next()},Rr.prototype.first=function(){var t=this.eg;if(this.qa=t.Ja,t=t.ea,t!==null){this.sa=t;var e=t.value;return this.key=t.key,this.value=e}return null},Rr.prototype.any=function(t){var e=this.eg;for(this.sa=e.Sa=null,e=e.ea;e!==null;){if(t(e.value))return!0;e=e.va}return!1},Rr.prototype.all=function(t){var e=this.eg;for(this.sa=e.Sa=null,e=e.ea;e!==null;){if(!t(e.value))return!1;e=e.va}return!0},Rr.prototype.each=function(t){var e=this.eg;for(this.sa=e.Sa=null,e=e.ea;e!==null;)t(e.value),e=e.va;return this},Rr.prototype.map=function(t){var e=this.eg;e.Sa=null;var n=new Re;for(e=e.ea;e!==null;)n.add(t(e.value)),e=e.va;return n.iterator},Rr.prototype.filter=function(t){var e=this.eg;e.Sa=null;var n=new Re;for(e=e.ea;e!==null;){var i=e.value;t(i)&&n.add(i),e=e.va}return n.iterator},Rr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Rr.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},te.Object.defineProperties(Rr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),Rr.prototype.first=Rr.prototype.first,Rr.prototype.hasNext=Rr.prototype.Ad,Rr.prototype.next=Rr.prototype.next,Rr.prototype.reset=Rr.prototype.reset,Rr.className="SetIterator";function je(t){nr(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof t=="string"&&ne("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),t!==void 0&&this.addAll(t)}D=je.prototype,D.xb=function(){var t=this.Ja;t++,999999999<t&&(t=0),this.Ja=t},D.freeze=function(){return this._isFrozen=!0,this},D.ka=function(){return this._isFrozen=!1,this},D.toString=function(){return"Set()#"+Br(this)},D.add=function(t){if(t===null)return this;this._isFrozen&&dn(this,t);var e=t;return Me(t)&&(e=Co(t)),this.Tb[e]===void 0&&(this.Sb++,t=new tt(t,t),this.Tb[e]=t,e=this.kf,e===null?this.ea=t:(t.ll=e,e.va=t),this.kf=t,this.xb()),this},D.addAll=function(t){if(t===null)return this;if(this._isFrozen&&dn(this),In(t))for(var e=t.length,n=0;n<e;n++)this.add(t[n]);else for(t=t.iterator;t.next();)this.add(t.value);return this},D.contains=function(t){if(t===null)return!1;var e=t;return Me(t)&&(e=Br(t),e===void 0)?!1:this.Tb[e]!==void 0},D.has=function(t){return this.contains(t)},D.Sy=function(t){if(t===null)return!0;for(t=t.iterator;t.next();)if(!this.contains(t.value))return!1;return!0},D.Ty=function(t){if(t===null)return!0;for(t=t.iterator;t.next();)if(this.contains(t.value))return!0;return!1},D.first=function(){var t=this.ea;return t===null?null:t.value},je.prototype.any=function(t){for(var e=this.ea;e!==null;){if(t(e.value))return!0;e=e.va}return!1},je.prototype.all=function(t){for(var e=this.ea;e!==null;){if(!t(e.value))return!1;e=e.va}return!0},je.prototype.each=function(t){for(var e=this.ea;e!==null;)t(e.value),e=e.va;return this},je.prototype.map=function(t){for(var e=new je,n=this.ea;n!==null;)e.add(t(n.value)),n=n.va;return e},je.prototype.filter=function(t){for(var e=new je,n=this.ea;n!==null;){var i=n.value;t(i)&&e.add(i),n=n.va}return e},D=je.prototype,D.remove=function(t){if(t===null)return!1;this._isFrozen&&dn(this,t);var e=t;if(Me(t)&&(e=Br(t),e===void 0)||(t=this.Tb[e],t===void 0))return!1;var n=t.va,i=t.ll;return n!==null&&(n.ll=i),i!==null&&(i.va=n),this.ea===t&&(this.ea=n),this.kf===t&&(this.kf=i),delete this.Tb[e],this.Sb--,this.xb(),!0},D.delete=function(t){return this.remove(t)},D.hp=function(t){if(t===null)return this;if(this._isFrozen&&dn(this),In(t))for(var e=t.length,n=0;n<e;n++)this.remove(t[n]);else for(t=t.iterator;t.next();)this.remove(t.value);return this},D.pA=function(t){if(t===null||this.count===0)return this;this._isFrozen&&dn(this);var e=new je;e.addAll(t),t=[];for(var n=this.iterator;n.next();){var i=n.value;e.contains(i)||t.push(i)}return this.hp(t),this},D.clear=function(){this._isFrozen&&dn(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},je.prototype.copy=function(){var t=new je,e=this.Tb,n;for(n in e)t.add(e[n].value);return t},je.prototype.Fa=function(){var t=Array(this.Sb),e=this.Tb,n=0,i;for(i in e)t[n]=e[i].value,n++;return t},je.prototype.Hv=function(){var t=new Re,e=this.Tb,n;for(n in e)t.add(e[n].value);return t};function nr(t){t.__gohashid=rs++}function Co(t){var e=t.__gohashid;return e===void 0&&(e=rs++,t.__gohashid=e),e}function Br(t){return t.__gohashid}te.Object.defineProperties(je.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Er;var t=this.Sa;return t!==null?(t.reset(),t):new Rr(this)}}}),je.prototype.toList=je.prototype.Hv,je.prototype.toArray=je.prototype.Fa,je.prototype.clear=je.prototype.clear,je.prototype.retainAll=je.prototype.pA,je.prototype.removeAll=je.prototype.hp,je.prototype.delete=je.prototype.delete,je.prototype.remove=je.prototype.remove,je.prototype.first=je.prototype.first,je.prototype.containsAny=je.prototype.Ty,je.prototype.containsAll=je.prototype.Sy,je.prototype.has=je.prototype.has,je.prototype.contains=je.prototype.contains,je.prototype.addAll=je.prototype.addAll,je.prototype.add=je.prototype.add,je.prototype.thaw=je.prototype.ka,je.prototype.freeze=je.prototype.freeze;var rs=1;je.className="Set",je.uniqueHash=nr,je.hashIdUnique=Co,je.hashId=Br;function yo(t){this.ma=t,this.qa=t.Ja,this.sa=null}yo.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},yo.prototype.next=function(){var t=this.ma;if(t.Ja!==this.qa&&this.key===null)return!1;var e=this.sa;return e=e===null?t.ea:e.va,e!==null?(this.sa=e,this.value=this.key=t=e.key,!0):(this.de(),!1)},yo.prototype.Ad=function(){return this.next()},yo.prototype.first=function(){var t=this.ma;return this.qa=t.Ja,t=t.ea,t!==null?(this.sa=t,this.value=this.key=t=t.key):null},yo.prototype.any=function(t){var e=this.ma;for(this.sa=null,e=e.ea;e!==null;){if(t(e.key))return!0;e=e.va}return!1},yo.prototype.all=function(t){var e=this.ma;for(this.sa=null,e=e.ea;e!==null;){if(!t(e.key))return!1;e=e.va}return!0},yo.prototype.each=function(t){var e=this.ma;for(this.sa=null,e=e.ea;e!==null;)t(e.key),e=e.va;return this},yo.prototype.map=function(t){var e=this.ma;this.sa=null;var n=new Re;for(e=e.ea;e!==null;)n.add(t(e.key)),e=e.va;return n.iterator},yo.prototype.filter=function(t){var e=this.ma;this.sa=null;var n=new Re;for(e=e.ea;e!==null;){var i=e.key;t(i)&&n.add(i),e=e.va}return n.iterator},yo.prototype.de=function(){this.value=this.key=null,this.qa=-1},yo.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},te.Object.defineProperties(yo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),yo.prototype.first=yo.prototype.first,yo.prototype.hasNext=yo.prototype.Ad,yo.prototype.next=yo.prototype.next,yo.prototype.reset=yo.prototype.reset,yo.className="MapKeySetIterator";function ai(t){je.call(this),nr(this),this._isFrozen=!0,this.ma=t}Jn(ai,je),D=ai.prototype,D.freeze=function(){return this},D.ka=function(){return this},D.toString=function(){return"MapKeySet("+this.ma.toString()+")"},D.add=function(){ne("This Set is read-only: "+this.toString())},D.contains=function(t){return this.ma.contains(t)},D.has=function(t){return this.contains(t)},D.remove=function(){ne("This Set is read-only: "+this.toString())},D.delete=function(t){return this.remove(t)},D.clear=function(){ne("This Set is read-only: "+this.toString())},D.first=function(){var t=this.ma.ea;return t!==null?t.key:null},ai.prototype.any=function(t){for(var e=this.ma.ea;e!==null;){if(t(e.key))return!0;e=e.va}return!1},ai.prototype.all=function(t){for(var e=this.ma.ea;e!==null;){if(!t(e.key))return!1;e=e.va}return!0},ai.prototype.each=function(t){for(var e=this.ma.ea;e!==null;)t(e.key),e=e.va;return this},ai.prototype.map=function(t){for(var e=new je,n=this.ma.ea;n!==null;)e.add(t(n.key)),n=n.va;return e},ai.prototype.filter=function(t){for(var e=new je,n=this.ma.ea;n!==null;){var i=n.key;t(i)&&e.add(i),n=n.va}return e},ai.prototype.copy=function(){return new ai(this.ma)},ai.prototype.Iv=function(){var t=new je,e=this.ma.Tb,n;for(n in e)t.add(e[n].key);return t},ai.prototype.Fa=function(){var t=this.ma.Tb,e=Array(this.ma.Sb),n=0,i;for(i in t)e[n]=t[i].key,n++;return e},ai.prototype.Hv=function(){var t=new Re,e=this.ma.Tb,n;for(n in e)t.add(e[n].key);return t},te.Object.defineProperties(ai.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Er:new yo(this.ma)}}}),ai.prototype.toList=ai.prototype.Hv,ai.prototype.toArray=ai.prototype.Fa,ai.prototype.toSet=ai.prototype.Iv,ai.prototype.first=ai.prototype.first,ai.prototype.clear=ai.prototype.clear,ai.prototype.delete=ai.prototype.delete,ai.prototype.remove=ai.prototype.remove,ai.prototype.has=ai.prototype.has,ai.prototype.contains=ai.prototype.contains,ai.prototype.add=ai.prototype.add,ai.prototype.thaw=ai.prototype.ka,ai.prototype.freeze=ai.prototype.freeze,ai.className="MapKeySet";function W(t){this.ma=t,t.jf=null,this.qa=t.Ja,this.sa=null}W.prototype.reset=function(){var t=this.ma;t.jf=null,this.qa=t.Ja,this.sa=null},W.prototype.next=function(){var t=this.ma;if(t.Ja!==this.qa&&this.key===null)return!1;var e=this.sa;return e=e===null?t.ea:e.va,e!==null?(this.sa=e,this.value=e.value,this.key=e.key,!0):(this.de(),!1)},W.prototype.Ad=function(){return this.next()},W.prototype.first=function(){var t=this.ma;if(this.qa=t.Ja,t=t.ea,t!==null){this.sa=t;var e=t.value;return this.key=t.key,this.value=e}return null},W.prototype.any=function(t){var e=this.ma;for(this.sa=e.jf=null,e=e.ea;e!==null;){if(t(e.value))return!0;e=e.va}return!1},W.prototype.all=function(t){var e=this.ma;for(this.sa=e.jf=null,e=e.ea;e!==null;){if(!t(e.value))return!1;e=e.va}return!0},W.prototype.each=function(t){var e=this.ma;for(this.sa=e.jf=null,e=e.ea;e!==null;)t(e.value),e=e.va;return this},W.prototype.map=function(t){var e=this.ma;this.sa=e.jf=null;var n=new Re;for(e=e.ea;e!==null;)n.add(t(e.value)),e=e.va;return n.iterator},W.prototype.filter=function(t){var e=this.ma;this.sa=e.jf=null;var n=new Re;for(e=e.ea;e!==null;){var i=e.value;t(i)&&n.add(i),e=e.va}return n.iterator},W.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},W.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},te.Object.defineProperties(W.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),W.prototype.first=W.prototype.first,W.prototype.hasNext=W.prototype.Ad,W.prototype.next=W.prototype.next,W.prototype.reset=W.prototype.reset,W.className="MapValueSetIterator";function tt(t,e){this.key=t,this.value=e,this.ll=this.va=null}tt.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},tt.className="KeyValuePair";function Pn(t){this.ma=t,t.Sa=null,this.qa=t.Ja,this.sa=null}Pn.prototype.reset=function(){var t=this.ma;t.Sa=null,this.qa=t.Ja,this.sa=null},Pn.prototype.next=function(){var t=this.ma;if(t.Ja!==this.qa&&this.key===null)return!1;var e=this.sa;return e=e===null?t.ea:e.va,e!==null?(this.sa=e,this.key=e.key,this.value=e.value,!0):(this.de(),!1)},Pn.prototype.Ad=function(){return this.next()},Pn.prototype.first=function(){var t=this.ma;return this.qa=t.Ja,t=t.ea,t!==null?(this.sa=t,this.key=t.key,this.value=t.value,t):null},Pn.prototype.any=function(t){var e=this.ma;for(this.sa=e.Sa=null,e=e.ea;e!==null;){if(t(e))return!0;e=e.va}return!1},Pn.prototype.all=function(t){var e=this.ma;for(this.sa=e.Sa=null,e=e.ea;e!==null;){if(!t(e))return!1;e=e.va}return!0},Pn.prototype.each=function(t){var e=this.ma;for(this.sa=e.Sa=null,e=e.ea;e!==null;)t(e),e=e.va;return this},Pn.prototype.map=function(t){var e=this.ma;this.sa=e.Sa=null;var n=new Re;for(e=e.ea;e!==null;)n.add(t(e)),e=e.va;return n.iterator},Pn.prototype.filter=function(t){var e=this.ma;this.sa=e.Sa=null;var n=new Re;for(e=e.ea;e!==null;)t(e)&&n.add(e),e=e.va;return n.iterator},Pn.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},Pn.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},te.Object.defineProperties(Pn.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Pn.prototype.first=Pn.prototype.first,Pn.prototype.hasNext=Pn.prototype.Ad,Pn.prototype.next=Pn.prototype.next,Pn.prototype.reset=Pn.prototype.reset,Pn.className="MapIterator";function pt(t){nr(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof t=="string"&&ne("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),t!==void 0&&this.addAll(t)}D=pt.prototype,D.xb=function(){var t=this.Ja;t++,999999999<t&&(t=0),this.Ja=t},D.freeze=function(){return this._isFrozen=!0,this},D.ka=function(){return this._isFrozen=!1,this},D.toString=function(){return"Map()#"+Br(this)},D.add=function(t,e){this._isFrozen&&dn(this,t);var n=t;Me(t)&&(n=Co(t));var i=this.Tb[n];return i===void 0?(this.Sb++,t=new tt(t,e),this.Tb[n]=t,n=this.kf,n===null?this.ea=t:(t.ll=n,n.va=t),this.kf=t,this.xb()):i.value=e,this},D.set=function(t,e){return this.add(t,e)},D.addAll=function(t){if(t===null)return this;if(In(t))for(var e=t.length,n=0;n<e;n++){var i=t[n];this.add(i.key,i.value)}else if(t instanceof pt)for(t=t.iterator;t.next();)this.add(t.key,t.value);else for(t=t.iterator;t.next();)e=t.value,this.add(e.key,e.value);return this},D.first=function(){return this.ea},pt.prototype.any=function(t){for(var e=this.ea;e!==null;){if(t(e))return!0;e=e.va}return!1},pt.prototype.all=function(t){for(var e=this.ea;e!==null;){if(!t(e))return!1;e=e.va}return!0},pt.prototype.each=function(t){for(var e=this.ea;e!==null;)t(e),e=e.va;return this},pt.prototype.map=function(t){for(var e=new pt,n=this.ea;n!==null;)e.add(n.key,t(n)),n=n.va;return e},pt.prototype.filter=function(t){for(var e=new pt,n=this.ea;n!==null;)t(n)&&e.add(n.key,n.value),n=n.va;return e},D=pt.prototype,D.contains=function(t){var e=t;return Me(t)&&(e=Br(t),e===void 0)?!1:this.Tb[e]!==void 0},D.has=function(t){return this.contains(t)},D.I=function(t){var e=t;return Me(t)&&(e=Br(t),e===void 0)?null:(t=this.Tb[e],t===void 0?null:t.value)},D.get=function(t){return this.I(t)},D.remove=function(t){if(t===null)return!1;this._isFrozen&&dn(this,t);var e=t;if(Me(t)&&(e=Br(t),e===void 0)||(t=this.Tb[e],t===void 0))return!1;var n=t.va,i=t.ll;return n!==null&&(n.ll=i),i!==null&&(i.va=n),this.ea===t&&(this.ea=n),this.kf===t&&(this.kf=i),delete this.Tb[e],this.Sb--,this.xb(),!0},D.delete=function(t){return this.remove(t)},D.clear=function(){this._isFrozen&&dn(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()},pt.prototype.copy=function(){var t=new pt,e=this.Tb,n;for(n in e){var i=e[n];t.add(i.key,i.value)}return t},pt.prototype.Fa=function(){var t=this.Tb,e=Array(this.Sb),n=0,i;for(i in t){var r=t[i];e[n]=new tt(r.key,r.value),n++}return e},pt.prototype.Lf=function(){return new ai(this)},te.Object.defineProperties(pt.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Er;var t=this.Sa;return t!==null?(t.reset(),t):new Pn(this)}},iteratorKeys:{get:function(){return 0>=this.count?Er:new yo(this)}},iteratorValues:{get:function(){if(0>=this.count)return Er;var t=this.jf;return t!==null?(t.reset(),t):new W(this)}}}),pt.prototype.toKeySet=pt.prototype.Lf,pt.prototype.toArray=pt.prototype.Fa,pt.prototype.clear=pt.prototype.clear,pt.prototype.delete=pt.prototype.delete,pt.prototype.remove=pt.prototype.remove,pt.prototype.get=pt.prototype.get,pt.prototype.getValue=pt.prototype.I,pt.prototype.has=pt.prototype.has,pt.prototype.contains=pt.prototype.contains,pt.prototype.first=pt.prototype.first,pt.prototype.addAll=pt.prototype.addAll,pt.prototype.set=pt.prototype.set,pt.prototype.add=pt.prototype.add,pt.prototype.thaw=pt.prototype.ka,pt.prototype.freeze=pt.prototype.freeze,pt.className="Map";function $(t,e){t===void 0?this.y=this.x=0:typeof t=="number"&&typeof e=="number"?(this.x=t,this.y=e):ne("Invalid arguments to Point constructor: "+t+", "+e),this._isFrozen=!1}var Wi,bi,qi,go,Ui;$.prototype.assign=function(t){return this.x=t.x,this.y=t.y,this},$.prototype.h=function(t,e){return this.x=t,this.y=e,this},$.prototype.sg=function(t,e){return this.x=t,this.y=e,this},$.prototype.set=function(t){return this.x=t.x,this.y=t.y,this},$.prototype.copy=function(){var t=new $;return t.x=this.x,t.y=this.y,t},D=$.prototype,D.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},D.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},D.freeze=function(){return this._isFrozen=!0,this},D.ka=function(){return Object.isFrozen(this)&&ne("cannot thaw constant: "+this),this._isFrozen=!1,this};function Xr(t){if(typeof t=="string"){t=t.split(" ");for(var e=0,n=0;t[e]==="";)e++;var i=t[e++];i&&(n=parseFloat(i));for(var r=0;t[e]==="";)e++;return(i=t[e++])&&(r=parseFloat(i)),new $(n,r)}return new $}function $i(t){return t.x.toString()+" "+t.y.toString()}D.toString=function(){return"Point("+this.x+","+this.y+")"},D.D=function(t){return t instanceof $?this.x===t.x&&this.y===t.y:!1},D.hi=function(t,e){return this.x===t&&this.y===e},D.Xa=function(t){return Vt.B(this.x,t.x)&&Vt.B(this.y,t.y)},D.add=function(t){return this.x+=t.x,this.y+=t.y,this},D.re=function(t){return this.x-=t.x,this.y-=t.y,this},D.offset=function(t,e){return this.x+=t,this.y+=e,this},$.prototype.rotate=function(t){if(t===0)return this;var e=this.x,n=this.y;if(e===0&&n===0)return this;if(360<=t?t-=360:0>t&&(t+=360),t===90){t=0;var i=1}else t===180?(t=-1,i=0):t===270?(t=0,i=-1):(i=t*Math.PI/180,t=Math.cos(i),i=Math.sin(i));return this.x=t*e-i*n,this.y=i*e+t*n,this},D=$.prototype,D.scale=function(t,e){return this.x*=t,this.y*=e,this},D.Bf=function(t){var e=t.x-this.x;return t=t.y-this.y,e*e+t*t},D.zd=function(t,e){return t-=this.x,e-=this.y,t*t+e*e},D.normalize=function(){var t=this.x,e=this.y,n=Math.sqrt(t*t+e*e);return 0<n&&(this.x=t/n,this.y=e/n),this},D.ab=function(t){return Vi(t.x-this.x,t.y-this.y)},D.direction=function(t,e){return Vi(t-this.x,e-this.y)};function Vi(t,e){if(t===0)return 0<e?90:0>e?270:0;if(e===0)return 0<t?0:180;if(isNaN(t)||isNaN(e))return 0;var n=180*Math.atan(Math.abs(e/t))/Math.PI;return 0>t?n=0>e?n+180:180-n:0>e&&(n=360-n),n}D.Ry=function(t,e){return Vt.Fl(t.x,t.y,e.x,e.y,this.x,this.y)},D.fA=function(t,e,n,i){return Vt.qh(t,e,n,i,this.x,this.y,this),this},D.gA=function(t,e){return Vt.qh(t.x,t.y,e.x,e.y,this.x,this.y,this),this},D.uA=function(t,e,n,i){return Vt.No(this.x,this.y,t,e,n,i,this),this},D.vA=function(t,e){return Vt.No(this.x,this.y,t.x,t.y,e.width,e.height,this),this},D.xi=function(t,e){return this.x=t.x+e.x*t.width+e.offsetX,this.y=t.y+e.y*t.height+e.offsetY,this},D.yi=function(t,e,n,i,r){return this.x=t+r.x*n+r.offsetX,this.y=e+r.y*i+r.offsetY,this},D.transform=function(t){return t.Ga(this),this};function se(t,e){return e.Cd(t),t}function kr(t,e,n,i,r,o){var s=r-n,l=o-i,u=s*s+l*l;n-=t,i-=e;var d=-n*s-i*l;return 0>=d||d>=u?(s=r-t,l=o-e,Math.min(n*n+i*i,s*s+l*l)):(t=s*i-l*n,t*t/u)}function De(t,e,n,i){return t=n-t,e=i-e,t*t+e*e}function Wo(t,e,n,i){return t=n-t,e=i-e,t===0?0<e?90:0>e?270:0:e===0?0<t?0:180:isNaN(t)||isNaN(e)?0:(i=180*Math.atan(Math.abs(e/t))/Math.PI,0>t?i=0>e?i+180:180-i:0>e&&(i=360-i),i)}D.w=function(){return isFinite(this.x)&&isFinite(this.y)},$.alloc=function(){var t=ls.pop();return t===void 0?new $:t},$.allocAt=function(t,e){var n=ls.pop();return n===void 0?new $(t,e):(n.x=t,n.y=e,n)},$.free=function(t){ls.push(t)},$.prototype.isReal=$.prototype.w,$.prototype.setSpot=$.prototype.yi,$.prototype.setRectSpot=$.prototype.xi,$.prototype.snapToGridPoint=$.prototype.vA,$.prototype.snapToGrid=$.prototype.uA,$.prototype.projectOntoLineSegmentPoint=$.prototype.gA,$.prototype.projectOntoLineSegment=$.prototype.fA,$.intersectingLineSegments=function(t,e,n,i,r,o,s,l){return Vt.Rl(t,e,n,i,r,o,s,l)},$.prototype.compareWithLineSegmentPoint=$.prototype.Ry,$.compareWithLineSegment=function(t,e,n,i,r,o){return Vt.Fl(t,e,n,i,r,o)},$.prototype.direction=$.prototype.direction,$.prototype.directionPoint=$.prototype.ab,$.prototype.normalize=$.prototype.normalize,$.prototype.distanceSquared=$.prototype.zd,$.prototype.distanceSquaredPoint=$.prototype.Bf,$.prototype.scale=$.prototype.scale,$.prototype.rotate=$.prototype.rotate,$.prototype.offset=$.prototype.offset,$.prototype.subtract=$.prototype.re,$.prototype.add=$.prototype.add,$.prototype.equalsApprox=$.prototype.Xa,$.prototype.equalTo=$.prototype.hi,$.prototype.equals=$.prototype.D,$.prototype.set=$.prototype.set,$.prototype.setTo=$.prototype.sg;var ls=[];$.className="Point",$.parse=Xr,$.stringify=$i,$.distanceLineSegmentSquared=kr,$.distanceSquared=De,$.direction=Wo,$.Origin=Wi=new $(0,0).ja(),$.InfiniteTopLeft=bi=new $(-1/0,-1/0).ja(),$.InfiniteBottomRight=qi=new $(1/0,1/0).ja(),$.SixPoint=go=new $(6,6).ja(),$.NoPoint=Ui=new $(NaN,NaN).ja(),$.parse=Xr,$.stringify=$i,$.distanceLineSegmentSquared=kr,$.distanceSquared=De,$.direction=Wo;function ni(t,e){t===void 0?this.height=this.width=0:typeof t=="number"&&(0<=t||isNaN(t))&&typeof e=="number"&&(0<=e||isNaN(e))?(this.width=t,this.height=e):ne("Invalid arguments to Size constructor: "+t+", "+e),this._isFrozen=!1}var Ps,Is,Js,Us,oa,Qa,da;ni.prototype.assign=function(t){return this.width=t.width,this.height=t.height,this},ni.prototype.h=function(t,e){return this.width=t,this.height=e,this},ni.prototype.sg=function(t,e){return this.width=t,this.height=e,this},ni.prototype.set=function(t){return this.width=t.width,this.height=t.height,this},ni.prototype.copy=function(){var t=new ni;return t.width=this.width,t.height=this.height,t},D=ni.prototype,D.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},D.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},D.freeze=function(){return this._isFrozen=!0,this},D.ka=function(){return Object.isFrozen(this)&&ne("cannot thaw constant: "+this),this._isFrozen=!1,this};function Jr(t){if(typeof t=="string"){t=t.split(" ");for(var e=0,n=0;t[e]==="";)e++;var i=t[e++];i&&(n=parseFloat(i));for(var r=0;t[e]==="";)e++;return(i=t[e++])&&(r=parseFloat(i)),new ni(n,r)}return new ni}function vs(t){return t.width.toString()+" "+t.height.toString()}D.toString=function(){return"Size("+this.width+","+this.height+")"},D.D=function(t){return t instanceof ni?this.width===t.width&&this.height===t.height:!1},D.hi=function(t,e){return this.width===t&&this.height===e},D.Xa=function(t){return Vt.B(this.width,t.width)&&Vt.B(this.height,t.height)},D.Bc=function(t,e){return t=this.width+t,this.width=0<=t?t:0,e=this.height+e,this.height=0<=e?e:0,this},D.w=function(){return isFinite(this.width)&&isFinite(this.height)},ni.alloc=function(){var t=es.pop();return t===void 0?new ni:t},ni.free=function(t){es.push(t)},ni.prototype.isReal=ni.prototype.w,ni.prototype.inflate=ni.prototype.Bc,ni.prototype.equalsApprox=ni.prototype.Xa,ni.prototype.equalTo=ni.prototype.hi,ni.prototype.equals=ni.prototype.D,ni.prototype.set=ni.prototype.set,ni.prototype.setTo=ni.prototype.sg;var es=[];ni.className="Size",ni.parse=Jr,ni.stringify=vs,ni.ZeroSize=Ps=new ni(0,0).ja(),ni.OneSize=Is=new ni(1,1).ja(),ni.SixSize=Js=new ni(6,6).ja(),ni.EightSize=Us=new ni(8,8).ja(),ni.TenSize=oa=new ni(10,10).ja(),ni.InfiniteSize=Qa=new ni(1/0,1/0).ja(),ni.NoSize=da=new ni(NaN,NaN).ja(),ni.parse=Jr,ni.stringify=vs;function ke(t,e,n,i){t===void 0?this.height=this.width=this.y=this.x=0:typeof t=="number"&&typeof e=="number"&&typeof n=="number"&&(0<=n||isNaN(n))&&typeof i=="number"&&(0<=i||isNaN(i))?(this.x=t,this.y=e,this.width=n,this.height=i):t instanceof $?(n=t.x,t=t.y,e instanceof $?(i=e.x,e=e.y,this.x=Math.min(n,i),this.y=Math.min(t,e),this.width=Math.abs(n-i),this.height=Math.abs(t-e)):e instanceof ni?(this.x=n,this.y=t,this.width=e.width,this.height=e.height):ne("Incorrect second argument supplied to Rect constructor "+e)):ne("Invalid arguments to Rect constructor: "+t+", "+e+", "+n+", "+i),this._isFrozen=!1}D=ke.prototype,D.assign=function(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this},D.h=function(t,e,n,i){return this.x=t,this.y=e,this.width=n,this.height=i,this};function ys(t,e,n){t.width=e,t.height=n}D.sg=function(t,e,n,i){return this.x=t,this.y=e,this.width=n,this.height=i,this},D.set=function(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this},D.dd=function(t){return this.x=t.x,this.y=t.y,this},D.tA=function(t){return this.width=t.width,this.height=t.height,this},ke.prototype.copy=function(){var t=new ke;return t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t},D=ke.prototype,D.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},D.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},D.freeze=function(){return this._isFrozen=!0,this},D.ka=function(){return Object.isFrozen(this)&&ne("cannot thaw constant: "+this),this._isFrozen=!1,this};function Su(t){if(typeof t=="string"){t=t.split(" ");for(var e=0,n=0;t[e]==="";)e++;var i=t[e++];i&&(n=parseFloat(i));for(var r=0;t[e]==="";)e++;(i=t[e++])&&(r=parseFloat(i));for(var o=0;t[e]==="";)e++;(i=t[e++])&&(o=parseFloat(i));for(var s=0;t[e]==="";)e++;return(i=t[e++])&&(s=parseFloat(i)),new ke(n,r,o,s)}return new ke}function Dl(t){return t.x.toString()+" "+t.y.toString()+" "+t.width.toString()+" "+t.height.toString()}D.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},D.D=function(t){return t instanceof ke?this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height:!1},D.hi=function(t,e,n,i){return this.x===t&&this.y===e&&this.width===n&&this.height===i},D.Xa=function(t){return Vt.B(this.x,t.x)&&Vt.B(this.y,t.y)&&Vt.B(this.width,t.width)&&Vt.B(this.height,t.height)};function lo(t,e){return Vt.$(t.x,e.x)&&Vt.$(t.y,e.y)&&Vt.$(t.width,e.width)&&Vt.$(t.height,e.height)}D.ca=function(t){return this.x<=t.x&&this.x+this.width>=t.x&&this.y<=t.y&&this.y+this.height>=t.y},D.Re=function(t){return this.x<=t.x&&t.x+t.width<=this.x+this.width&&this.y<=t.y&&t.y+t.height<=this.y+this.height},D.contains=function(t,e,n,i){return n===void 0&&(n=0),i===void 0&&(i=0),this.x<=t&&t+n<=this.x+this.width&&this.y<=e&&e+i<=this.y+this.height},D.offset=function(t,e){return this.x+=t,this.y+=e,this},D.Bc=function(t,e){return Fo(this,e,t,e,t)},D.Co=function(t){return Fo(this,t.top,t.right,t.bottom,t.left)},D.Fv=function(t){return Fo(this,-t.top,-t.right,-t.bottom,-t.left)},D.Hz=function(t,e,n,i){return Fo(this,t,e,n,i)};function Fo(t,e,n,i,r){var o=t.width;return n+r<=-o?(t.x+=o/2,t.width=0):(t.x-=r,t.width+=n+r),n=t.height,e+i<=-n?(t.y+=n/2,t.height=0):(t.y-=e,t.height+=e+i),t}D.Ex=function(t){return ws(this,t.x,t.y,t.width,t.height)},D.Uu=function(t,e,n,i){return ws(this,t,e,n,i)};function ws(t,e,n,i,r){var o=Math.max(t.x,e),s=Math.max(t.y,n);return e=Math.min(t.x+t.width,e+i),n=Math.min(t.y+t.height,n+r),t.x=o,t.y=s,t.width=Math.max(0,e-o),t.height=Math.max(0,n-s),t}D.Yc=function(t){return this.Vu(t.x,t.y,t.width,t.height)},D.Vu=function(t,e,n,i){var r=this.width,o=this.x;return r!==1/0&&n!==1/0&&(r+=o,n+=t,isNaN(n)||isNaN(r)||o>n||t>r)?!1:(t=this.height,n=this.y,!(t!==1/0&&i!==1/0&&(t+=n,i+=e,isNaN(i)||isNaN(t)||n>i||e>t)))};function Ko(t,e){var n=t.width,i=t.x,r=e.x-10;return i>e.width+10+10+r||r>n+i?!1:(n=t.height,t=t.y,i=e.y-10,!(t>e.height+10+10+i||i>n+t))}D.Ye=function(t){return Ur(this,t.x,t.y,0,0)},D.ed=function(t){return Ur(this,t.x,t.y,t.width,t.height)},D.Kv=function(t,e,n,i){return n===void 0&&(n=0),i===void 0&&(i=0),Ur(this,t,e,n,i)};function Ur(t,e,n,i,r){var o=Math.min(t.x,e),s=Math.min(t.y,n);return e=Math.max(t.x+t.width,e+i),n=Math.max(t.y+t.height,n+r),t.x=o,t.y=s,t.width=e-o,t.height=n-s,t}D.yi=function(t,e,n){return this.x=t-n.offsetX-n.x*this.width,this.y=e-n.offsetY-n.y*this.height,this};function uo(t,e,n,i,r,o,s,l){return s===void 0&&(s=0),l===void 0&&(l=0),t<=r&&r+s<=t+n&&e<=o&&o+l<=e+i}function Pa(t,e,n,i,r,o,s,l){return t>s+r||r>n+t?!1:!(e>l+o||o>i+e)}D.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},D.Mz=function(){return this.width===0&&this.height===0},ke.alloc=function(){var t=eo.pop();return t===void 0?new ke:t},ke.allocAt=function(t,e,n,i){var r=eo.pop();return r===void 0?new ke(t,e,n,i):r.h(t,e,n,i)},ke.free=function(t){eo.push(t)},te.Object.defineProperties(ke.prototype,{left:{get:function(){return this.x},set:function(t){this.x=t}},top:{get:function(){return this.y},set:function(t){this.y=t}},right:{get:function(){return this.x+this.width},set:function(t){this.x+=t-(this.x+this.width)}},bottom:{get:function(){return this.y+this.height},set:function(t){this.y+=t-(this.y+this.height)}},position:{get:function(){return new $(this.x,this.y)},set:function(t){this.x=t.x,this.y=t.y}},size:{get:function(){return new ni(this.width,this.height)},set:function(t){this.width=t.width,this.height=t.height}},center:{get:function(){return new $(this.x+this.width/2,this.y+this.height/2)},set:function(t){this.x=t.x-this.width/2,this.y=t.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(t){this.x=t-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(t){this.y=t-this.height/2}}}),ke.prototype.isEmpty=ke.prototype.Mz,ke.prototype.isReal=ke.prototype.w,ke.intersectsLineSegment=function(t,e,n,i,r,o,s,l){return Vt.Fx(t,e,n,i,r,o,s,l)},ke.prototype.setSpot=ke.prototype.yi,ke.prototype.union=ke.prototype.Kv,ke.prototype.unionRect=ke.prototype.ed,ke.prototype.unionPoint=ke.prototype.Ye,ke.prototype.intersects=ke.prototype.Vu,ke.prototype.intersectsRect=ke.prototype.Yc,ke.prototype.intersect=ke.prototype.Uu,ke.prototype.intersectRect=ke.prototype.Ex,ke.prototype.grow=ke.prototype.Hz,ke.prototype.subtractMargin=ke.prototype.Fv,ke.prototype.addMargin=ke.prototype.Co,ke.prototype.inflate=ke.prototype.Bc,ke.prototype.offset=ke.prototype.offset,ke.prototype.contains=ke.prototype.contains,ke.prototype.containsRect=ke.prototype.Re,ke.prototype.containsPoint=ke.prototype.ca,ke.prototype.equalsApprox=ke.prototype.Xa,ke.prototype.equalTo=ke.prototype.hi,ke.prototype.equals=ke.prototype.D,ke.prototype.setSize=ke.prototype.tA,ke.prototype.setPoint=ke.prototype.dd,ke.prototype.set=ke.prototype.set,ke.prototype.setTo=ke.prototype.sg;var br=null,io=null,eo=[];ke.className="Rect",ke.parse=Su,ke.stringify=Dl,ke.contains=uo,ke.intersects=Pa,ke.ZeroRect=br=new ke(0,0,0,0).ja(),ke.NoRect=io=new ke(NaN,NaN,NaN,NaN).ja(),ke.parse=Su,ke.stringify=Dl,ke.contains=uo,ke.intersects=Pa;function ri(t,e,n,i){t===void 0?this.left=this.bottom=this.right=this.top=0:e===void 0?this.left=this.bottom=this.right=this.top=t:n===void 0?(this.top=t,this.right=e,this.bottom=t,this.left=e):i!==void 0?(this.top=t,this.right=e,this.bottom=n,this.left=i):ne("Invalid arguments to Margin constructor: "+t+", "+e+", "+n+", "+i),this._isFrozen=!1}ri.prototype.assign=function(t){return this.top=t.top,this.right=t.right,this.bottom=t.bottom,this.left=t.left,this},ri.prototype.sg=function(t,e,n,i){return this.top=t,this.right=e,this.bottom=n,this.left=i,this},ri.prototype.set=function(t){return this.top=t.top,this.right=t.right,this.bottom=t.bottom,this.left=t.left,this},ri.prototype.copy=function(){var t=new ri;return t.top=this.top,t.right=this.right,t.bottom=this.bottom,t.left=this.left,t},D=ri.prototype,D.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},D.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},D.freeze=function(){return this._isFrozen=!0,this},D.ka=function(){return Object.isFrozen(this)&&ne("cannot thaw constant: "+this),this._isFrozen=!1,this};function Cs(t){if(typeof t=="string"){t=t.split(" ");for(var e=0,n=NaN;t[e]==="";)e++;var i=t[e++];if(i&&(n=parseFloat(i)),isNaN(n))return new ri;for(var r=NaN;t[e]==="";)e++;if((i=t[e++])&&(r=parseFloat(i)),isNaN(r))return new ri(n);for(var o=NaN;t[e]==="";)e++;if((i=t[e++])&&(o=parseFloat(i)),isNaN(o))return new ri(n,r);for(var s=NaN;t[e]==="";)e++;return(i=t[e++])&&(s=parseFloat(i)),isNaN(s)?new ri(n,r):new ri(n,r,o,s)}return new ri}function Zo(t){return t.top.toString()+" "+t.right.toString()+" "+t.bottom.toString()+" "+t.left.toString()}D.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},D.D=function(t){return t instanceof ri?this.top===t.top&&this.right===t.right&&this.bottom===t.bottom&&this.left===t.left:!1},D.hi=function(t,e,n,i){return this.top===t&&this.right===e&&this.bottom===n&&this.left===i},D.Xa=function(t){return Vt.B(this.top,t.top)&&Vt.B(this.right,t.right)&&Vt.B(this.bottom,t.bottom)&&Vt.B(this.left,t.left)},D.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},ri.alloc=function(){var t=Cl.pop();return t===void 0?new ri:t},ri.free=function(t){Cl.push(t)},ri.prototype.isReal=ri.prototype.w,ri.prototype.equalsApprox=ri.prototype.Xa,ri.prototype.equalTo=ri.prototype.hi,ri.prototype.equals=ri.prototype.D,ri.prototype.set=ri.prototype.set,ri.prototype.setTo=ri.prototype.sg;var ga=null,sl=null,Cl=[];ri.className="Margin",ri.parse=Cs,ri.stringify=Zo,ri.ZeroMargin=ga=new ri(0,0,0,0).ja(),ri.TwoMargin=sl=new ri(2,2,2,2).ja(),ri.parse=Cs,ri.stringify=Zo;function Wn(t,e,n,i){t===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(e===void 0&&(e=0),n===void 0&&(n=0),i===void 0&&(i=0),this.x=t,this.y=e,this.offsetX=n,this.offsetY=i),this._isFrozen=!1}var us,Fs,qa,al,Fa,Sr,iu,Ba,Ln,Jo,za,Aa,ka,_a,Fu,Ha,Vl,vr,ll,Kl,Es,Qs,ru,ou,su,_r,Wr,sa,Os,As,os,cs,qr,is,Pl,tl;Wn.prototype.assign=function(t){return this.x=t.x,this.y=t.y,this.offsetX=t.offsetX,this.offsetY=t.offsetY,this},Wn.prototype.sg=function(t,e,n,i){return this.x=t,this.y=e,this.offsetX=n,this.offsetY=i,this},Wn.prototype.set=function(t){return this.x=t.x,this.y=t.y,this.offsetX=t.offsetX,this.offsetY=t.offsetY,this},Wn.prototype.copy=function(){var t=new Wn;return t.x=this.x,t.y=this.y,t.offsetX=this.offsetX,t.offsetY=this.offsetY,t},D=Wn.prototype,D.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},D.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},D.freeze=function(){return this._isFrozen=!0,this},D.ka=function(){return Object.isFrozen(this)&&ne("cannot thaw constant: "+this),this._isFrozen=!1,this};function Lo(t,e){return t.x=NaN,t.y=NaN,t.offsetX=e,t}function Ga(t){if(typeof t=="string"){if(t=t.trim(),t==="None")return us;if(t==="TopLeft")return Fs;if(t==="Top"||t==="TopCenter"||t==="MiddleTop")return qa;if(t==="TopRight")return al;if(t==="Left"||t==="LeftCenter"||t==="MiddleLeft")return Fa;if(t==="Center")return Sr;if(t==="Right"||t==="RightCenter"||t==="MiddleRight")return iu;if(t==="BottomLeft")return Ba;if(t==="Bottom"||t==="BottomCenter"||t==="MiddleBottom")return Ln;if(t==="BottomRight")return Jo;if(t==="TopSide")return za;if(t==="LeftSide")return Aa;if(t==="RightSide")return ka;if(t==="BottomSide")return _a;if(t==="TopBottomSides")return Fu;if(t==="LeftRightSides")return Ha;if(t==="TopLeftSides")return Vl;if(t==="TopRightSides")return vr;if(t==="BottomLeftSides")return ll;if(t==="BottomRightSides")return Kl;if(t==="NotTopSide")return Es;if(t==="NotLeftSide")return Qs;if(t==="NotRightSide")return ru;if(t==="NotBottomSide")return ou;if(t==="AllSides")return su;if(t==="Default")return _r;t=t.split(" ");for(var e=0,n=0;t[e]==="";)e++;var i=t[e++];i!==void 0&&0<i.length&&(n=parseFloat(i));for(var r=0;t[e]==="";)e++;i=t[e++],i!==void 0&&0<i.length&&(r=parseFloat(i));for(var o=0;t[e]==="";)e++;i=t[e++],i!==void 0&&0<i.length&&(o=parseFloat(i));for(var s=0;t[e]==="";)e++;return i=t[e++],i!==void 0&&0<i.length&&(s=parseFloat(i)),new Wn(n,r,o,s)}return new Wn}function Rc(t){return t.sb()?t.x.toString()+" "+t.y.toString()+" "+t.offsetX.toString()+" "+t.offsetY.toString():t.toString()}D.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(us)?"None":this.D(Fs)?"TopLeft":this.D(qa)?"Top":this.D(al)?"TopRight":this.D(Fa)?"Left":this.D(Sr)?"Center":this.D(iu)?"Right":this.D(Ba)?"BottomLeft":this.D(Ln)?"Bottom":this.D(Jo)?"BottomRight":this.D(za)?"TopSide":this.D(Aa)?"LeftSide":this.D(ka)?"RightSide":this.D(_a)?"BottomSide":this.D(Fu)?"TopBottomSides":this.D(Ha)?"LeftRightSides":this.D(Vl)?"TopLeftSides":this.D(vr)?"TopRightSides":this.D(ll)?"BottomLeftSides":this.D(Kl)?"BottomRightSides":this.D(Es)?"NotTopSide":this.D(Qs)?"NotLeftSide":this.D(ru)?"NotRightSide":this.D(ou)?"NotBottomSide":this.D(su)?"AllSides":this.D(_r)?"Default":"None"},D.D=function(t){return t instanceof Wn?(this.x===t.x||isNaN(this.x)&&isNaN(t.x))&&(this.y===t.y||isNaN(this.y)&&isNaN(t.y))&&this.offsetX===t.offsetX&&this.offsetY===t.offsetY:!1},D.gv=function(){return new Wn(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},D.Hf=function(t){if(!this.$c())return!1;if(!t.$c())if(t.D(Wr))t=Aa;else if(t.D(sa))t=ka;else if(t.D(Os))t=za;else if(t.D(As))t=_a;else return!1;return t=t.offsetY,(this.offsetY&t)===t},D.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},D.Mc=function(){return isNaN(this.x)||isNaN(this.y)},D.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},D.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},D.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},Wn.alloc=function(){var t=Ii.pop();return t===void 0?new Wn:t},Wn.free=function(t){Ii.push(t)},Wn.prototype.isDefault=Wn.prototype.Xb,Wn.prototype.isNone=Wn.prototype.ys,Wn.prototype.isSide=Wn.prototype.$c,Wn.prototype.isNoSpot=Wn.prototype.Mc,Wn.prototype.isSpot=Wn.prototype.sb,Wn.prototype.includesSide=Wn.prototype.Hf,Wn.prototype.opposite=Wn.prototype.gv,Wn.prototype.equals=Wn.prototype.D,Wn.prototype.set=Wn.prototype.set,Wn.prototype.setTo=Wn.prototype.sg;var Ii=[];Wn.className="Spot",Wn.parse=Ga,Wn.stringify=Rc,Wn.None=us=Lo(new Wn(0,0,0,0),0).ja(),Wn.Default=_r=Lo(new Wn(0,0,-1,0),-1).ja(),Wn.TopLeft=Fs=new Wn(0,0,0,0).ja(),Wn.TopCenter=qa=new Wn(.5,0,0,0).ja(),Wn.TopRight=al=new Wn(1,0,0,0).ja(),Wn.LeftCenter=Fa=new Wn(0,.5,0,0).ja(),Wn.Center=Sr=new Wn(.5,.5,0,0).ja(),Wn.RightCenter=iu=new Wn(1,.5,0,0).ja(),Wn.BottomLeft=Ba=new Wn(0,1,0,0).ja(),Wn.BottomCenter=Ln=new Wn(.5,1,0,0).ja(),Wn.BottomRight=Jo=new Wn(1,1,0,0).ja(),Wn.MiddleTop=os=qa,Wn.MiddleLeft=cs=Fa,Wn.MiddleRight=qr=iu,Wn.MiddleBottom=is=Ln,Wn.Top=Os=qa,Wn.Left=Wr=Fa,Wn.Right=sa=iu,Wn.Bottom=As=Ln,Wn.TopSide=za=Lo(new Wn(0,0,1,1),1).ja(),Wn.LeftSide=Aa=Lo(new Wn(0,0,1,2),1).ja(),Wn.RightSide=ka=Lo(new Wn(0,0,1,4),1).ja(),Wn.BottomSide=_a=Lo(new Wn(0,0,1,8),1).ja(),Wn.TopBottomSides=Fu=Lo(new Wn(0,0,1,9),1).ja(),Wn.LeftRightSides=Ha=Lo(new Wn(0,0,1,6),1).ja(),Wn.TopLeftSides=Vl=Lo(new Wn(0,0,1,3),1).ja(),Wn.TopRightSides=vr=Lo(new Wn(0,0,1,5),1).ja(),Wn.BottomLeftSides=ll=Lo(new Wn(0,0,1,10),1).ja(),Wn.BottomRightSides=Kl=Lo(new Wn(0,0,1,12),1).ja(),Wn.NotTopSide=Es=Lo(new Wn(0,0,1,14),1).ja(),Wn.NotLeftSide=Qs=Lo(new Wn(0,0,1,13),1).ja(),Wn.NotRightSide=ru=Lo(new Wn(0,0,1,11),1).ja(),Wn.NotBottomSide=ou=Lo(new Wn(0,0,1,7),1).ja(),Wn.AllSides=su=Lo(new Wn(0,0,1,15),1).ja(),Pl=new Wn(.156,.156).ja(),tl=new Wn(.844,.844).ja(),Wn.parse=Ga,Wn.stringify=Rc;function Ti(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}Ti.prototype.set=function(t){return this.m11=t.m11,this.m12=t.m12,this.m21=t.m21,this.m22=t.m22,this.dx=t.dx,this.dy=t.dy,this},Ti.prototype.setTransform=function(t,e,n,i,r,o){return this.m11=t,this.m12=e,this.m21=n,this.m22=i,this.dx=r,this.dy=o,this},Ti.prototype.copy=function(){var t=new Ti;return t.m11=this.m11,t.m12=this.m12,t.m21=this.m21,t.m22=this.m22,t.dx=this.dx,t.dy=this.dy,t},Ti.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},Ti.prototype.D=function(t){return this.m11===t.m11&&this.m12===t.m12&&this.m21===t.m21&&this.m22===t.m22&&this.dx===t.dx&&this.dy===t.dy},Ti.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},Ti.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},Ti.prototype.multiply=function(t){var e=this.m11*t.m11+this.m21*t.m12,n=this.m12*t.m11+this.m22*t.m12,i=this.m11*t.m21+this.m21*t.m22,r=this.m12*t.m21+this.m22*t.m22;return this.dx=this.m11*t.dx+this.m21*t.dy+this.dx,this.dy=this.m12*t.dx+this.m22*t.dy+this.dy,this.m11=e,this.m12=n,this.m21=i,this.m22=r,this},Ti.prototype.bv=function(t){var e=1/(t.m11*t.m22-t.m12*t.m21),n=t.m22*e,i=-t.m12*e,r=-t.m21*e,o=t.m11*e,s=e*(t.m21*t.dy-t.m22*t.dx);return t=e*(t.m12*t.dx-t.m11*t.dy),e=this.m11*n+this.m21*i,n=this.m12*n+this.m22*i,i=this.m11*r+this.m21*o,r=this.m12*r+this.m22*o,this.dx=this.m11*s+this.m21*t+this.dx,this.dy=this.m12*s+this.m22*t+this.dy,this.m11=e,this.m12=n,this.m21=i,this.m22=r,this},Ti.prototype.Vj=function(){var t=1/(this.m11*this.m22-this.m12*this.m21),e=-this.m12*t,n=-this.m21*t,i=this.m11*t,r=t*(this.m21*this.dy-this.m22*this.dx),o=t*(this.m12*this.dx-this.m11*this.dy);return this.m11=this.m22*t,this.m12=e,this.m21=n,this.m22=i,this.dx=r,this.dy=o,this},Ti.prototype.rotate=function(t,e,n){if(360<=t?t-=360:0>t&&(t+=360),t===0)return this;if(this.translate(e,n),t===90){t=0;var i=1}else t===180?(t=-1,i=0):t===270?(t=0,i=-1):(i=t*Math.PI/180,t=Math.cos(i),i=Math.sin(i));var r=this.m12*t+this.m22*i,o=this.m11*-i+this.m21*t,s=this.m12*-i+this.m22*t;return this.m11=this.m11*t+this.m21*i,this.m12=r,this.m21=o,this.m22=s,this.translate(-e,-n),this},D=Ti.prototype,D.translate=function(t,e){return this.dx+=this.m11*t+this.m21*e,this.dy+=this.m12*t+this.m22*e,this},D.scale=function(t,e){return e===void 0&&(e=t),this.m11*=t,this.m12*=t,this.m21*=e,this.m22*=e,this},D.Ga=function(t){var e=t.x,n=t.y;return t.h(e*this.m11+n*this.m21+this.dx,e*this.m12+n*this.m22+this.dy)},D.Cd=function(t){var e=1/(this.m11*this.m22-this.m12*this.m21),n=t.x,i=t.y;return t.h(n*this.m22*e+i*-this.m21*e+e*(this.m21*this.dy-this.m22*this.dx),n*-this.m12*e+i*this.m11*e+e*(this.m12*this.dx-this.m11*this.dy))},D.Eu=function(t){var e=1/(this.m11*this.m22-this.m12*this.m21),n=1.25*t.x,i=1.2*t.y;return t.h(n*this.m22*e+i*-this.m21*e+e*(this.m21*this.dy-this.m22*this.dx),n*-this.m12*e+i*this.m11*e+e*(this.m12*this.dx-this.m11*this.dy))},D.pp=function(t){var e=t.x,n=t.y,i=e+t.width,r=n+t.height,o=this.m11,s=this.m12,l=this.m21,u=this.m22,d=this.dx,p=this.dy,v=e*o+n*l+d,E=e*s+n*u+p,M=i*o+n*l+d,R=i*s+n*u+p;return n=e*o+r*l+d,e=e*s+r*u+p,o=i*o+r*l+d,i=i*s+r*u+p,r=Math.min(v,M),v=Math.max(v,M),M=Math.min(E,R),E=Math.max(E,R),r=Math.min(r,n),v=Math.max(v,n),M=Math.min(M,e),E=Math.max(E,e),r=Math.min(r,o),v=Math.max(v,o),M=Math.min(M,i),E=Math.max(E,i),t.h(r,M,v-r,E-M),t},Ti.alloc=function(){var t=Zu.pop();return t===void 0?new Ti:t},Ti.free=function(t){Zu.push(t)},Ti.prototype.transformRect=Ti.prototype.pp,Ti.prototype.transformPoint=Ti.prototype.Ga,Ti.prototype.scale=Ti.prototype.scale,Ti.prototype.translate=Ti.prototype.translate,Ti.prototype.rotate=Ti.prototype.rotate,Ti.prototype.invert=Ti.prototype.Vj,Ti.prototype.multiplyInverted=Ti.prototype.bv,Ti.prototype.multiply=Ti.prototype.multiply,Ti.prototype.reset=Ti.prototype.reset,Ti.prototype.isIdentity=Ti.prototype.ws,Ti.prototype.equals=Ti.prototype.D,Ti.prototype.setTransform=Ti.prototype.setTransform,Ti.prototype.set=Ti.prototype.set;var Zu=[];Ti.className="Transform",Ti.xF="54a702f3e53909c447824c6706603faf4c";var Vt={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(t){if(0>=t)return 0;var e=Vt.Uv;if(e===null){e=[];for(var n=0;2e3>=n;n++)e[n]=Math.sqrt(n);Vt.Uv=e}return 1>t?(n=1/t,2e3>=n?1/e[n|0]:Math.sqrt(t)):2e3>=t?e[t|0]:Math.sqrt(t)},B:function(t,e){return t-=e,.5>t&&-.5<t},$:function(t,e){return t-=e,5e-8>t&&-5e-8<t},Yb:function(t,e,n,i,r,o,s){if(0>=r&&(r=1e-6),t<n)var l=t,u=n;else l=n,u=t;if(e<i)var d=e,p=i;else d=i,p=e;if(t===n)return d<=s&&s<=p&&t-r<=o&&o<=t+r;if(e===i)return l<=o&&o<=u&&e-r<=s&&s<=e+r;if(u+=r,l-=r,l<=o&&o<=u&&(p+=r,d-=r,d<=s&&s<=p))if(u-l>p-d)if(t-n>r||n-t>r){if(o=(i-e)/(n-t)*(o-t)+e,o-r<=s&&s<=o+r)return!0}else return!0;else if(e-i>r||i-e>r){if(s=(n-t)/(i-e)*(s-e)+t,s-r<=o&&o<=s+r)return!0}else return!0;return!1},cs:function(t,e,n,i,r,o,s,l,u,d,p,v){if(Vt.Yb(t,e,s,l,v,n,i)&&Vt.Yb(t,e,s,l,v,r,o))return Vt.Yb(t,e,s,l,v,d,p);var E=(t+n)/2,M=(e+i)/2,R=(n+r)/2,j=(i+o)/2;r=(r+s)/2,o=(o+l)/2,i=(E+R)/2,n=(M+j)/2,R=(R+r)/2,j=(j+o)/2;var at=(i+R)/2,q=(n+j)/2;return Vt.cs(t,e,E,M,i,n,at,q,u,d,p,v)||Vt.cs(at,q,R,j,r,o,s,l,u,d,p,v)},ax:function(t,e,n,i,r,o,s,l,u){var d=(n+r)/2,p=(i+o)/2;return u.h((((t+n)/2+d)/2+(d+(r+s)/2)/2)/2,(((e+i)/2+p)/2+(p+(o+l)/2)/2)/2),u},My:function(t,e,n,i,r,o,s,l){var u=(n+r)/2,d=(i+o)/2;return Wo(((t+n)/2+u)/2,((e+i)/2+d)/2,(u+(r+s)/2)/2,(d+(o+l)/2)/2)},Dl:function(t,e,n,i,r,o,s,l,u,d){if(Vt.Yb(t,e,s,l,u,n,i)&&Vt.Yb(t,e,s,l,u,r,o))Ur(d,t,e,0,0),Ur(d,s,l,0,0);else{var p=(t+n)/2,v=(e+i)/2,E=(n+r)/2,M=(i+o)/2;r=(r+s)/2,o=(o+l)/2,i=(p+E)/2,n=(v+M)/2,E=(E+r)/2,M=(M+o)/2;var R=(i+E)/2,j=(n+M)/2;Vt.Dl(t,e,p,v,i,n,R,j,u,d),Vt.Dl(R,j,E,M,r,o,s,l,u,d)}return d},Qe:function(t,e,n,i,r,o,s,l,u,d){if(Vt.Yb(t,e,s,l,u,n,i)&&Vt.Yb(t,e,s,l,u,r,o))d.length===0&&(d.push(t),d.push(e)),d.push(s),d.push(l);else{var p=(t+n)/2,v=(e+i)/2,E=(n+r)/2,M=(i+o)/2;r=(r+s)/2,o=(o+l)/2,i=(p+E)/2,n=(v+M)/2,E=(E+r)/2,M=(M+o)/2;var R=(i+E)/2,j=(n+M)/2;Vt.Qe(t,e,p,v,i,n,R,j,u,d),Vt.Qe(R,j,E,M,r,o,s,l,u,d)}return d},jv:function(t,e,n,i,r,o,s,l,u,d){if(Vt.Yb(t,e,r,o,d,n,i))return Vt.Yb(t,e,r,o,d,l,u);var p=(t+n)/2,v=(e+i)/2;n=(n+r)/2,i=(i+o)/2;var E=(p+n)/2,M=(v+i)/2;return Vt.jv(t,e,p,v,E,M,s,l,u,d)||Vt.jv(E,M,n,i,r,o,s,l,u,d)},OA:function(t,e,n,i,r,o,s){return s.h(((t+n)/2+(n+r)/2)/2,((e+i)/2+(i+o)/2)/2),s},iv:function(t,e,n,i,r,o,s,l){if(Vt.Yb(t,e,r,o,s,n,i))Ur(l,t,e,0,0),Ur(l,r,o,0,0);else{var u=(t+n)/2,d=(e+i)/2;n=(n+r)/2,i=(i+o)/2;var p=(u+n)/2,v=(d+i)/2;Vt.iv(t,e,u,d,p,v,s,l),Vt.iv(p,v,n,i,r,o,s,l)}return l},ep:function(t,e,n,i,r,o,s,l){if(Vt.Yb(t,e,r,o,s,n,i))l.length===0&&(l.push(t),l.push(e)),l.push(r),l.push(o);else{var u=(t+n)/2,d=(e+i)/2;n=(n+r)/2,i=(i+o)/2;var p=(u+n)/2,v=(d+i)/2;Vt.ep(t,e,u,d,p,v,s,l),Vt.ep(p,v,n,i,r,o,s,l)}return l},Eo:function(t,e,n,i,r,o,s,l,u,d,p,v,E,M){if(Vt.Yb(t,e,s,l,E,n,i)&&Vt.Yb(t,e,s,l,E,r,o))return!Vt.Rl(t,e,s,l,u,d,p,v)||(E=(t-s)*(d-v)-(e-l)*(u-p),E===0)?!1:(M.h(((t*l-e*s)*(u-p)-(t-s)*(u*v-d*p))/E,((t*l-e*s)*(d-v)-(e-l)*(u*v-d*p))/E),!0);var R=(t+n)/2,j=(e+i)/2,at=(n+r)/2,q=(i+o)/2;r=(r+s)/2,o=(o+l)/2,i=(R+at)/2,n=(j+q)/2,at=(at+r)/2,q=(q+o)/2;var gt=(i+at)/2,wt=(n+q)/2,Ot=1/0,Gt=!1,ce=0,Mn=0;return Vt.Eo(t,e,R,j,i,n,gt,wt,u,d,p,v,E,M)&&(t=(M.x-u)*(M.x-u)+(M.y-d)*(M.y-d),t<Ot&&(Ot=t,Gt=!0,ce=M.x,Mn=M.y)),Vt.Eo(gt,wt,at,q,r,o,s,l,u,d,p,v,E,M)&&(M.x-u)*(M.x-u)+(M.y-d)*(M.y-d)<Ot&&(Gt=!0,ce=M.x,Mn=M.y),Gt&&(M.x=ce,M.y=Mn),Gt},Fo:function(t,e,n,i,r,o,s,l,u,d,p,v,E){var M=0;if(Vt.Yb(t,e,s,l,E,n,i)&&Vt.Yb(t,e,s,l,E,r,o)){if(E=(t-s)*(d-v)-(e-l)*(u-p),E===0)return M;var R=((t*l-e*s)*(u-p)-(t-s)*(u*v-d*p))/E,j=((t*l-e*s)*(d-v)-(e-l)*(u*v-d*p))/E;if(R>=p)return M;if((u>p?u-p:p-u)<(d>v?d-v:v-d)){if(e<l?(u=e,t=l):(u=l,t=e),j<u||j>t)return M}else if(t<s?(u=t,t=s):u=s,R<u||R>t)return M;0<E?M++:0>E&&M--}else{R=(t+n)/2,j=(e+i)/2;var at=(n+r)/2,q=(i+o)/2;r=(r+s)/2,o=(o+l)/2,i=(R+at)/2,n=(j+q)/2,at=(at+r)/2,q=(q+o)/2;var gt=(i+at)/2,wt=(n+q)/2;M+=Vt.Fo(t,e,R,j,i,n,gt,wt,u,d,p,v,E),M+=Vt.Fo(gt,wt,at,q,r,o,s,l,u,d,p,v,E)}return M},qh:function(t,e,n,i,r,o,s){return Vt.$(t,n)?(e<i?(n=e,e=i):n=i,o<n?(s.h(t,n),!1):o>e?(s.h(t,e),!1):(s.h(t,o),!0)):Vt.$(e,i)?(t<n?(i=t,t=n):i=n,r<i?(s.h(i,e),!1):r>t?(s.h(t,e),!1):(s.h(r,e),!0)):(r=((t-r)*(t-n)+(e-o)*(e-i))/((n-t)*(n-t)+(i-e)*(i-e)),-5e-6>r?(s.h(t,e),!1):1.000005<r?(s.h(n,i),!1):(s.h(t+r*(n-t),e+r*(i-e)),!0))},Ve:function(t,e,n,i,r,o,s,l,u){return Vt.B(t,n)&&Vt.B(e,i)?(u.h(t,e),!1):Vt.$(r,s)?Vt.$(t,n)?(Vt.qh(t,e,n,i,r,o,u),!1):Vt.qh(t,e,n,i,r,(i-e)/(n-t)*(r-t)+e,u):(l=(l-o)/(s-r),Vt.$(t,n)?(n=l*(t-r)+o,e<i?(r=e,e=i):r=i,n<r?(u.h(t,r),!1):n>e?(u.h(t,e),!1):(u.h(t,n),!0)):(s=(i-e)/(n-t),Vt.$(l,s)?(Vt.qh(t,e,n,i,r,o,u),!1):(r=(s*t-l*r+o-e)/(s-l),Vt.$(s,0)?(t<n?(i=t,t=n):i=n,r<i?(u.h(i,e),!1):r>t?(u.h(t,e),!1):(u.h(r,e),!0)):Vt.qh(t,e,n,i,r,s*(r-t)+e,u))))},MA:function(t,e,n,i,r){return Vt.Ve(n.x,n.y,i.x,i.y,t.x,t.y,e.x,e.y,r)},KA:function(t,e,n,i,r,o,s,l,u,d){function p(at,q){var gt=(at-t)*(at-t)+(q-e)*(q-e);gt<v&&(v=gt,u.h(at,q))}var v=1/0;p(u.x,u.y);var E=0,M=0,R=0,j=0;if(r<s?(E=r,M=s):(E=s,M=r),o<l?(R=r,j=s):(R=s,j=r),E=(M-E)/2+d,d=(j-R)/2+d,r=(r+s)/2,o=(o+l)/2,E===0||d===0)return u;if(.5>(n>t?n-t:t-n)){if(E=1-(n-r)*(n-r)/(E*E),0>E)return u;E=Math.sqrt(E),i=-d*E+o,p(n,d*E+o),p(n,i)}else{if(n=(i-e)/(n-t),i=1/(E*E)+n*n/(d*d),l=2*n*(e-n*t)/(d*d)-2*n*o/(d*d)-2*r/(E*E),E=l*l-4*i*(2*n*t*o/(d*d)-2*e*o/(d*d)+o*o/(d*d)+r*r/(E*E)-1+(e-n*t)*(e-n*t)/(d*d)),0>E)return u;E=Math.sqrt(E),d=(-l+E)/(2*i),p(d,n*d-n*t+e),E=(-l-E)/(2*i),p(E,n*E-n*t+e)}return u},Ff:function(t,e,n,i,r,o,s,l,u){var d=1e21,p=t,v=e;if(Vt.Ve(t,e,t,i,r,o,s,l,u)){var E=(u.x-r)*(u.x-r)+(u.y-o)*(u.y-o);E<d&&(d=E,p=u.x,v=u.y)}return Vt.Ve(n,e,n,i,r,o,s,l,u)&&(E=(u.x-r)*(u.x-r)+(u.y-o)*(u.y-o),E<d&&(d=E,p=u.x,v=u.y)),Vt.Ve(t,e,n,e,r,o,s,l,u)&&(e=(u.x-r)*(u.x-r)+(u.y-o)*(u.y-o),e<d&&(d=e,p=u.x,v=u.y)),Vt.Ve(t,i,n,i,r,o,s,l,u)&&(t=(u.x-r)*(u.x-r)+(u.y-o)*(u.y-o),t<d&&(d=t,p=u.x,v=u.y)),u.h(p,v),1e21>d},us:function(t,e,n){return Vt.Fx(t.x,t.y,t.width,t.height,e.x,e.y,n.x,n.y)},Fx:function(t,e,n,i,r,o,s,l){var u=t+n,d=e+i;return r===s?(o<l?(s=o,o=l):s=l,t<=r&&r<=u&&s<=d&&o>=e):o===l?(r<s?(l=r,r=s):l=s,e<=o&&o<=d&&l<=u&&r>=t):!!(uo(t,e,n,i,r,o)||uo(t,e,n,i,s,l)||Vt.Rl(t,e,u,e,r,o,s,l)||Vt.Rl(u,e,u,d,r,o,s,l)||Vt.Rl(u,d,t,d,r,o,s,l)||Vt.Rl(t,d,t,e,r,o,s,l))},Rl:function(t,e,n,i,r,o,s,l){return t===n&&e===i&&r===s&&o===l?t===r&&e===o:0>=Vt.Fl(t,e,n,i,r,o)*Vt.Fl(t,e,n,i,s,l)&&0>=Vt.Fl(r,o,s,l,t,e)*Vt.Fl(r,o,s,l,n,i)},Fl:function(t,e,n,i,r,o){return n-=t,i-=e,t=r-t,e=o-e,o=t*i-e*n,o===0&&(o=t*n+e*i,0<o&&(o=(t-n)*n+(e-i)*i,0>o&&(o=0))),o},bp:function(t){return 0>t&&(t+=360),360<=t&&(t-=360),t},jx:function(t,e,n,i,r,o){var s=Math.PI;o||(i*=s/180,r*=s/180);var l=i>r?-1:1;o=[];var u=s/2,d=i;if(i=Math.min(2*s,Math.abs(r-i)),1e-5>i)return u=d+l*Math.min(i,u),l=t+n*Math.cos(d),d=e+n*Math.sin(d),t+=n*Math.cos(u),e+=n*Math.sin(u),n=(l+t)/2,u=(d+e)/2,o.push([l,d,n,u,n,u,t,e]),o;for(;1e-5<i;)r=d+l*Math.min(i,u),o.push(Vt.Vy(n,d,r,t,e)),i-=Math.abs(r-d),d=r;return o},Vy:function(t,e,n,i,r){var o=(n-e)/2,s=t*Math.cos(o),l=t*Math.sin(o),u=-l,d=s*s+u*u,p=d+s*s+u*l;return d=4/3*(Math.sqrt(2*d*p)-p)/(s*l-u*s),l=s-d*u,s=u+d*s,u=-s,d=o+e,o=Math.cos(d),d=Math.sin(d),[i+t*Math.cos(e),r+t*Math.sin(e),i+l*o-s*d,r+l*d+s*o,i+l*o-u*d,r+l*d+u*o,i+t*Math.cos(n),r+t*Math.sin(n)]},No:function(t,e,n,i,r,o,s){n=Math.floor((t-n)/r)*r+n,i=Math.floor((e-i)/o)*o+i;var l=n;return n+r-t<r/2&&(l=n+r),t=i,i+o-e<o/2&&(t=i+o),s.h(l,t),s},vx:function(t,e){var n=Math.max(t,e);t=Math.min(t,e);var i;do e=n%t,n=i=t,t=e;while(0<e);return i},$y:function(t,e,n,i){var r=0>n,o=0>i;if(t<e)var s=1,l=0;else s=0,l=1;var u=s===0?t:e,d=s===0?n:i;return(s===0?r:o)&&(d=-d),s=l,n=s===0?n:i,(s===0?r:o)&&(n=-n),Vt.az(u,s===0?t:e,d,n,0,0)},az:function(t,e,n,i,r,o){if(0<i)if(0<n){r=t*t,o=e*e,t*=n;var s=e*i,l=-o+s,u=-o+Math.sqrt(t*t+s*s);e=l;for(var d=0;9999999999>d&&(e=.5*(l+u),!(e===l||e===u));++d){var p=t/(e+r),v=s/(e+o);if(p=p*p+v*v-1,0<p)l=e;else if(0>p)u=e;else break}n=r*n/(e+r)-n,i=o*i/(e+o)-i,n=Math.sqrt(n*n+i*i)}else n=Math.abs(i-e);else i=t*t-e*e,o=t*n,o<i?(i=o/i,o=e*Math.sqrt(Math.abs(1-i*i)),n=t*i-n,n=Math.sqrt(n*n+o*o)):n=Math.abs(n-t);return n},Ze:new zr,um:new zr,Mf:new zr,Nf:0,vm:100};Vt.za=Vt.AA;function mn(t){nr(this),this.l=2,t===void 0&&(t=mn.o),this.na=t,this.Ec=this.Dc=this.pd=this.od=0,t===mn.o?this.ee=new Re:(mn.V===null&&(mn.V=new Re().freeze()),this.ee=mn.V),this.aq=this.ee.Ja,this.Ip=new ke().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=Fs,this.gg=Jo,this.Rk=this.Sk=NaN,this.Uf=rn}mn.prototype.copy=function(){var t=new mn;if(t.l=this.l&-2,t.na=this.na,t.od=this.od,t.pd=this.pd,t.Dc=this.Dc,t.Ec=this.Ec,this.na===mn.o){for(var e=this.ee.s,n=t.ee,i=0;i<e.length;i++)n.add(e[i].copy());t.ee=n}else t.ee=this.ee;return t.aq=this.aq,t.Ip.assign(this.Ip),t.tk=this.tk,t.ym=this.ym,t.zm=this.zm,t.fg=this.fg.J(),t.gg=this.gg.J(),t.Sk=this.Sk,t.Rk=this.Rk,t.Uf=this.Uf,t},mn.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},mn.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==mn.o)return this;var t=this.figures;t.freeze(),t=t.s;for(var e=t.length,n=0;n<e;n++)t[n].freeze();return this},mn.prototype.ka=function(){if(Object.isFrozen(this)&&ne("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==mn.o)return this;var t=this.figures;t.ka(),t=t.s;for(var e=t.length,n=0;n<e;n++)t[n].ka();return this},mn.prototype.Xa=function(t){if(!(t instanceof mn))return!1;if(this.type!==t.type)return this.type===mn.j&&t.type===mn.o?$a(this,t):t.type===mn.j&&this.type===mn.o?$a(t,this):!1;if(this.type===mn.o){var e=this.figures.s;t=t.figures.s;var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++)if(!e[i].Xa(t[i]))return!1;return!0}return Vt.B(this.startX,t.startX)&&Vt.B(this.startY,t.startY)&&Vt.B(this.endX,t.endX)&&Vt.B(this.endY,t.endY)};function $a(t,e){return t.type!==mn.j||e.type!==mn.o?!1:!!(e.figures.count===1&&(e=e.figures.M(0),e.segments.count===1&&Vt.B(t.startX,e.startX)&&Vt.B(t.startY,e.startY)&&(e=e.segments.M(0),e.type===xo&&Vt.B(t.endX,e.endX)&&Vt.B(t.endY,e.endY))))}mn.ia=function(t){return t.toString()},mn.prototype.qb=function(t){t.classType===mn&&(this.type=t)},mn.prototype.toString=function(t){switch(t===void 0&&(t=-1),this.type){case mn.j:return 0>t?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(t)+" "+this.startY.toFixed(t)+"L"+this.endX.toFixed(t)+" "+this.endY.toFixed(t);case mn.u:var e=new ke(this.startX,this.startY,0,0);return e.Kv(this.endX,this.endY,0,0),0>t?"M"+e.x.toString()+" "+e.y.toString()+"H"+e.right.toString()+"V"+e.bottom.toString()+"H"+e.left.toString()+"z":"M"+e.x.toFixed(t)+" "+e.y.toFixed(t)+"H"+e.right.toFixed(t)+"V"+e.bottom.toFixed(t)+"H"+e.left.toFixed(t)+"z";case mn.F:if(e=new ke(this.startX,this.startY,0,0),e.Kv(this.endX,this.endY,0,0),0>t)return t=e.left.toString()+" "+(e.y+e.height/2).toString(),"M"+t+"A"+(e.width/2).toString()+" "+(e.height/2).toString()+" 0 0 1 "+(e.right.toString()+" "+(e.y+e.height/2).toString())+"A"+(e.width/2).toString()+" "+(e.height/2).toString()+" 0 0 1 "+t;var n=e.left.toFixed(t)+" "+(e.y+e.height/2).toFixed(t);return"M"+n+"A"+(e.width/2).toFixed(t)+" "+(e.height/2).toFixed(t)+" 0 0 1 "+(e.right.toFixed(t)+" "+(e.y+e.height/2).toFixed(t))+"A"+(e.width/2).toFixed(t)+" "+(e.height/2).toFixed(t)+" 0 0 1 "+n;case mn.o:e="",n=this.figures.s;for(var i=n.length,r=0;r<i;r++){var o=n[r];0<r&&(e+=" x "),o.isFilled&&(e+="F "),e+=o.toString(t)}return e;default:return this.type.toString()}},mn.nb=function(t){t=t.split(/[Xx]/);for(var e=t.length,n="",i=0;i<e;i++){var r=t[i];n=r.match(/[Ff]/)!==null?i===0?n+r:n+("X"+(r[0]===" "?"":" ")+r):n+((i===0?"":"X ")+"F"+(r[0]===" "?"":" ")+r)}return n},mn.parse=function(t,e){function n(){return j>=Ot-1?!0:d[j+1].match(Gt)!==null}function i(){return j++,d[j]}function r(Hi){var Ci=parseFloat(i()),Kr=parseFloat(i());at===at.toLowerCase()&&(Ci=wt.x+Ci,Kr=wt.y+Kr),Hi.h(Ci,Kr)}function o(){return r(wt),wt}function s(){return r(gt),gt}function l(){var Hi=q.toLowerCase();return Hi!=="c"&&Hi!=="s"&&Hi!=="q"&&Hi!=="t"?wt:new $(2*wt.x-gt.x,2*wt.y-gt.y)}e===void 0&&(e=!1);var u=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;t=t.replace(/,/gm," "),t=t.replace(u,"$1 $2"),t=t.replace(u,"$1 $2"),t=t.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),t=t.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),t=t.replace(/([0-9])([+\-])/gm,"$1 $2"),t=t.replace(/[\s\r\t\n]+/gm," "),t=t.replace(/^\s+|\s+$/g,"");var d=t.split(" ");for(t=0;t<d.length;t++){var p=d[t];if(p.match(/(\.[0-9]*)(\.)/gm)!==null){u=Le();for(var v="",E=!1,M=0;M<p.length;M++){var R=p[M];R!=="."||E?R==="."?(u.push(v),v="."):v+=R:(E=!0,v+=R)}for(u.push(v),d.splice(t,1),p=0;p<u.length;p++)d.splice(t+p,0,u[p]);t+=u.length-1,tn(u)}}var j=-1,at="",q="";u=new $(0,0);var gt=new $(0,0),wt=new $(0,0),Ot=d.length;t=zy(null),E=v=p=!1,M=!0,R=null;for(var Gt=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(j>=Ot-1);)if(q=at,at=i(),at!=="")switch(at.toUpperCase()){case"X":M=!0,v=p=!1;break;case"M":for(R=o(),t.mc===null||M===!0?(Fp(t,R.x,R.y,p,!v,E),M=!1):t.moveTo(R.x,R.y),u.assign(wt);!n();)R=o(),t.lineTo(R.x,R.y);break;case"L":for(;!n();)R=o(),t.lineTo(R.x,R.y);break;case"H":for(;!n();)wt=new $((at===at.toLowerCase()?wt.x:0)+parseFloat(i()),wt.y),t.lineTo(wt.x,wt.y);break;case"V":for(;!n();)wt=new $(wt.x,(at===at.toLowerCase()?wt.y:0)+parseFloat(i())),t.lineTo(wt.x,wt.y);break;case"C":for(;!n();){R=new $,r(R);var ce=s(),Mn=o();Nh(t,R.x,R.y,ce.x,ce.y,Mn.x,Mn.y)}break;case"S":for(;!n();)R=l(),ce=s(),Mn=o(),Nh(t,R.x,R.y,ce.x,ce.y,Mn.x,Mn.y);break;case"Q":for(;!n();)R=s(),ce=o(),Y0(t,R.x,R.y,ce.x,ce.y);break;case"T":for(;!n();)gt=R=l(),ce=o(),Y0(t,R.x,R.y,ce.x,ce.y);break;case"B":for(;!n();){R=parseFloat(i()),ce=parseFloat(i()),Mn=parseFloat(i());var Un=parseFloat(i()),zn=parseFloat(i()),cn=zn,We=!1;n()||(cn=parseFloat(i()),n()||(We=parseFloat(i())!==0)),at===at.toLowerCase()&&(Mn+=wt.x,Un+=wt.y),t.arcTo(R,ce,Mn,Un,zn,cn,We)}break;case"A":for(;!n();)R=Math.abs(parseFloat(i())),ce=Math.abs(parseFloat(i())),Mn=parseFloat(i()),zn=Un=!1,We=cn=0,cn=i(),cn.length===1?(Un=!!parseFloat(cn),zn=!!parseFloat(i()),cn=parseFloat(i())):cn.length===2?(Un=!!parseFloat(cn[0]),zn=!!parseFloat(cn[1]),cn=parseFloat(i())):(Un=!!parseFloat(cn[0]),zn=!!parseFloat(cn[1]),cn=parseFloat(cn.slice(2))),We=parseFloat(i()),at===at.toLowerCase()&&(cn=wt.x+cn,We=wt.y+We),wt.h(cn,We),Px(t,R,ce,Mn,Un,zn,cn,We);break;case"Z":Dx(t),wt.assign(u);break;case"F":for(R="",ce=1;d[j+ce];)if(d[j+ce]==="0")E=!0,ce++;else if(d[j+ce].match(/[Uu]/)!==null)ce++;else if(d[j+ce].match(Gt)===null)ce++;else{R=d[j+ce];break}R.match(/[Mm]/)?p=!0:0<t.mc.segments.length&&(t.mc.isFilled=!0);break;case"U":for(R="",ce=1;d[j+ce];)if(d[j+ce].match(/[Ff]/)!==null)ce++;else if(d[j+ce].match(Gt)===null)ce++;else{R=d[j+ce];break}R.match(/[Mm]/)?v=!0:t.mc.isShadowed=!1}if(u=t.os,X0=t,e)for(e=u.figures.iterator;e.next();)e.value.isFilled=!0;return u},mn.Ha=function(t,e){for(var n=t.length,i=$.alloc(),r=0;r<n;r++){var o=t[r];i.x=o[0],i.y=o[1],e.Ga(i),o[0]=i.x,o[1]=i.y,i.x=o[2],i.y=o[3],e.Ga(i),o[2]=i.x,o[3]=i.y,i.x=o[4],i.y=o[5],e.Ga(i),o[4]=i.x,o[5]=i.y,i.x=o[6],i.y=o[7],e.Ga(i),o[6]=i.x,o[7]=i.y}$.free(i)},mn.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===mn.o){if(this.aq!==this.figures.Ja)return!0;for(var t=this.figures.s,e=t.length,n=0;n<e;n++)if(t[n].Zu())return!0}return!1},mn.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===mn.o){this.aq=this.figures.Ja;for(var t=this.figures.s,e=t.length,n=0;n<e;n++){var i=t[n];i._isInvalidBounds=!1;var r=i.segments;i.sr=r.Ja,i=r.s,r=i.length;for(var o=0;o<r;o++){var s=i[o];s._isInvalidBounds=!1,s.ae=null}}}t=this.Ip,t.ka(),isNaN(this.Sk)||isNaN(this.Rk)?t.h(0,0,0,0):t.h(0,0,this.Sk,this.Rk),au(this,t,!1),Ur(t,0,0,0,0),t.freeze()},mn.prototype.ix=function(){var t=new ke;return au(this,t,!0),t};function au(t,e,n){switch(t.type){case mn.j:case mn.u:case mn.F:n?e.h(t.od,t.pd,0,0):Ur(e,t.od,t.pd,0,0),Ur(e,t.Dc,t.Ec,0,0);break;case mn.o:var i=t.figures;t=i.s,i=i.length;for(var r=0;r<i;r++){var o=t[r];n&&r===0?e.h(o.startX,o.startY,0,0):Ur(e,o.startX,o.startY,0,0);for(var s=o.segments.s,l=s.length,u=o.startX,d=o.startY,p=0;p<l;p++){var v=s[p];switch(v.type){case xo:case xs:u=v.endX,d=v.endY,Ur(e,u,d,0,0);break;case ia:Vt.Dl(u,d,v.point1X,v.point1Y,v.point2X,v.point2Y,v.endX,v.endY,.5,e),u=v.endX,d=v.endY;break;case aa:Vt.iv(u,d,v.point1X,v.point1Y,v.endX,v.endY,.5,e),u=v.endX,d=v.endY;break;case Tr:case Wa:var E=v.type===Tr?ja(v,o):Ma(v,o,u,d),M=E.length;if(M===0){u=v.type===Tr?v.centerX:v.endX,d=v.type===Tr?v.centerY:v.endY,Ur(e,u,d,0,0);break}v=null;for(var R=0;R<M;R++)v=E[R],Vt.Dl(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],.5,e);v!==null&&(u=v[6],d=v[7]);break;default:ne("Unknown Segment type: "+v.type)}}}break;default:ne("Unknown Geometry type: "+t.type)}}mn.prototype.normalize=function(){this._isFrozen&&dn(this);var t=this.ix();return this.offset(-t.x,-t.y),new $(-t.x,-t.y)},mn.prototype.offset=function(t,e){return this._isFrozen&&dn(this),this.transform(1,0,0,1,t,e),this},mn.prototype.scale=function(t,e){return this._isFrozen&&dn(this),this.transform(t,0,0,e,0,0),this},mn.prototype.rotate=function(t,e,n){this._isFrozen&&dn(this),e===void 0&&(e=0),n===void 0&&(n=0);var i=Ti.alloc();return i.reset(),i.rotate(t,e,n),this.transform(i.m11,i.m12,i.m21,i.m22,i.dx,i.dy),Ti.free(i),this},D=mn.prototype,D.transform=function(t,e,n,i,r,o){switch(this.type){case mn.j:case mn.u:case mn.F:var s=this.od,l=this.pd;this.od=s*t+l*n+r,this.pd=s*e+l*i+o,s=this.Dc,l=this.Ec,this.Dc=s*t+l*n+r,this.Ec=s*e+l*i+o;break;case mn.o:for(var u=this.figures.s,d=u.length,p=0;p<d;p++){var v=u[p];s=v.startX,l=v.startY,v.startX=s*t+l*n+r,v.startY=s*e+l*i+o,v=v.segments.s;for(var E=v.length,M=0;M<E;M++){var R=v[M];switch(R.type){case xo:case xs:s=R.endX,l=R.endY,R.endX=s*t+l*n+r,R.endY=s*e+l*i+o;break;case ia:s=R.point1X,l=R.point1Y,R.point1X=s*t+l*n+r,R.point1Y=s*e+l*i+o,s=R.point2X,l=R.point2Y,R.point2X=s*t+l*n+r,R.point2Y=s*e+l*i+o,s=R.endX,l=R.endY,R.endX=s*t+l*n+r,R.endY=s*e+l*i+o;break;case aa:s=R.point1X,l=R.point1Y,R.point1X=s*t+l*n+r,R.point1Y=s*e+l*i+o,s=R.endX,l=R.endY,R.endX=s*t+l*n+r,R.endY=s*e+l*i+o;break;case Tr:s=R.centerX,l=R.centerY,R.centerX=s*t+l*n+r,R.centerY=s*e+l*i+o,e!==0&&(s=180*Math.atan2(e,t)/Math.PI,0>s&&(s+=360),R.startAngle+=s),0>t&&(R.startAngle=180-R.startAngle,R.sweepAngle=-R.sweepAngle),0>i&&(R.startAngle=-R.startAngle,R.sweepAngle=-R.sweepAngle),R.radiusX*=Math.sqrt(t*t+n*n),R.radiusY!==void 0&&(R.radiusY*=Math.sqrt(e*e+i*i));break;case Wa:if(s=R.endX,l=R.endY,R.endX=s*t+l*n+r,R.endY=s*e+l*i+o,R.radiusX===0||R.radiusY===0)break;e!==0&&(s=180*Math.atan2(e,t)/Math.PI,0>s&&(s+=360),R.xAxisRotation+=s),0>t&&(R.xAxisRotation=180-R.xAxisRotation,R.isClockwiseArc=!R.isClockwiseArc),0>i&&(R.xAxisRotation=-R.xAxisRotation,R.isClockwiseArc=!R.isClockwiseArc),R.radiusX*=Math.sqrt(t*t+n*n),R.radiusY*=Math.sqrt(e*e+i*i);break;default:ne("Unknown Segment type: "+R.type)}}}}return this._isInvalidBounds=!0,this},D.ca=function(t,e){e===void 0&&(e=0);var n=this.od,i=this.pd,r=this.Dc,o=this.Ec;switch(this.type){case mn.j:return Vt.Yb(n,i,r,o,e,t.x,t.y);case mn.u:var s=ke.allocAt(Math.min(n,r)-e,Math.min(i,o)-e,Math.abs(r-n)+2*e,Math.abs(o-i)+2*e);return t=s.ca(t),ke.free(s),t;case mn.F:s=Math.min(n,r)-e;var l=Math.min(i,o)-e;return n=(Math.abs(r-n)+2*e)/2,e=(Math.abs(o-i)+2*e)/2,0>=n||0>=e?!1:(s=t.x-(s+n),l=t.y-(l+e),1>=s*s/(n*n)+l*l/(e*e));case mn.o:return ss(this,t,e,!0,!1);default:return!1}};function ss(t,e,n,i,r){var o=e.x;e=e.y;for(var s=t.bounds.x-20,l=0,u,d,p,v,E=t.figures.s,M=E.length,R=0;R<M;R++){var j=E[R],at=!j.isEvenOdd;if(j.isFilled){if(i&&j.ca(o,e,n))return!0;var q=j.segments;u=j.startX,d=j.startY;for(var gt=u,wt=d,Ot=q.s,Gt=0;Gt<=q.length;Gt++){var ce=void 0;if(Gt!==q.length){ce=Ot[Gt];var Mn=ce.type;t=ce.endX,v=ce.endY}else Mn=xo,t=gt,v=wt;switch(Mn){case xs:if(gt=Fl(o,e,s,e,u,d,gt,wt),isNaN(gt))return!0;l+=gt,gt=t,wt=v;break;case xo:if(u=Fl(o,e,s,e,u,d,t,v),isNaN(u))return!0;l+=u;break;case ia:p=Vt.Fo(u,d,ce.point1X,ce.point1Y,ce.point2X,ce.point2Y,t,v,s,e,o,e,.5),l+=p;break;case aa:p=Vt.Fo(u,d,(u+2*ce.point1X)/3,(d+2*ce.point1Y)/3,(2*ce.point1X+t)/3,(2*ce.point1Y+v)/3,t,v,s,e,o,e,.5),l+=p;break;case Tr:case Wa:Mn=ce.type===Tr?ja(ce,j):Ma(ce,j,u,d);var Un=Mn.length;if(Un===0){if(u=Fl(o,e,s,e,u,d,ce.type===Tr?ce.centerX:ce.endX,ce.type===Tr?ce.centerY:ce.endY),isNaN(u))return!0;l+=u;break}ce=null;for(var zn=0;zn<Un;zn++){if(ce=Mn[zn],zn===0){if(p=Fl(o,e,s,e,u,d,ce[0],ce[1]),isNaN(p))return!0;l+=p}p=Vt.Fo(ce[0],ce[1],ce[2],ce[3],ce[4],ce[5],ce[6],ce[7],s,e,o,e,.5),l+=p}ce!==null&&(t=ce[6],v=ce[7]);break;default:ne("Unknown Segment type: "+ce.type)}u=t,d=v}if(at){if(l!==0)return!0}else if(l%2!==0)return!0;l=0}else if(j.ca(o,e,r?n:n+2))return!0}return!1}function Fl(t,e,n,i,r,o,s,l){if(Vt.Yb(r,o,s,l,.05,t,e))return NaN;var u=(t-n)*(o-l);if(u===0)return 0;var d=((t*i-e*n)*(r-s)-(t-n)*(r*l-o*s))/u;if(e=(t*i-e*n)*(o-l)/u,d>=t)return 0;if((r>s?r-s:s-r)<(o>l?o-l:l-o)){if(o<l){if(e<o||e>l)return 0}else if(e<l||e>o)return 0}else if(r<s){if(d<r||d>s)return 0}else if(d<s||d>r)return 0;return 0<u?1:-1}function lu(t,e,n,i){t=t.figures.s;for(var r=t.length,o=0;o<r;o++)if(t[o].ca(e,n,i))return!0;return!1}D.Pu=function(t,e){if(0>t?t=0:1<t&&(t=1),e===void 0&&(e=new $),this.type===mn.j)return e.h(this.startX+t*(this.endX-this.startX),this.startY+t*(this.endY-this.startY)),e;for(var n=this.flattenedSegments,i=this.flattenedLengths,r=n.length,o=this.flattenedTotalLength*t,s=0,l=0;l<r;l++){var u=i[l],d=u.length;for(t=0;t<d;t++){var p=u[t];if(s+p>=o)return i=o-s,i=p===0?0:i/p,n=n[l],l=n[2*t],r=n[2*t+1],e.h(l+(n[2*t+2]-l)*i,r+(n[2*t+3]-r)*i),e;s+=p}}return e},D.wx=function(t){if(0>t?t=0:1<t&&(t=1),this.type===mn.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var e=this.flattenedSegments,n=this.flattenedLengths,i=e.length,r=this.flattenedTotalLength*t,o=0,s=0;s<i;s++){var l=n[s],u=l.length;for(t=0;t<u;t++){var d=l[t];if(o+d>=r)return r=e[s],e=r[2*t],n=r[2*t+1],i=r[2*t+2],t=r[2*t+3],1>Math.abs(i-e)&&1>Math.abs(t-n)?0:1>Math.abs(i-e)?0<=t-n?90:270:1>Math.abs(t-n)?0<=i-e?0:180:180*Math.atan2(t-n,i-e)/Math.PI;o+=d}}return NaN},D.Qu=function(t,e){if(0>t?t=0:1<t&&(t=1),e===void 0&&(e=[]),e.length=3,this.type===mn.j)return e[0]=this.startX+t*(this.endX-this.startX),e[1]=this.startY+t*(this.endY-this.startY),e[2]=180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI,e;for(var n=this.flattenedSegments,i=this.flattenedLengths,r=n.length,o=this.flattenedTotalLength*t,s=0,l=0;l<r;l++){var u=i[l],d=u.length;for(t=0;t<d;t++){var p=u[t];if(s+p>=o)return i=o-s,i=p===0?0:i/p,p=n[l],n=p[2*t],l=p[2*t+1],r=p[2*t+2],t=p[2*t+3],e[0]=n+(r-n)*i,e[1]=l+(t-l)*i,e[2]=1>Math.abs(r-n)&&1>Math.abs(t-l)?0:1>Math.abs(r-n)?0<=t-l?90:270:1>Math.abs(t-l)?0<=r-n?0:180:180*Math.atan2(t-l,r-n)/Math.PI,e;s+=p}}return e},D.xx=function(t){if(this.type===mn.j){var e=this.startX,n=this.startY,i=this.endX,r=this.endY;if(e!==i||n!==r){var o=t.x;if(t=t.y,e===i){if(n<r){var s=n;i=r}else s=r,i=n;return t<=s?s===n?0:1:t>=i?i===n?0:1:Math.abs(t-n)/(i-s)}if(n===r)return e<i?s=e:(s=i,i=e),o<=s?s===e?0:1:o>=i?i===e?0:1:Math.abs(o-e)/(i-s);s=(i-e)*(i-e)+(r-n)*(r-n);var l=$.alloc();return Vt.qh(e,n,i,r,o,t,l),t=l.x,o=l.y,$.free(l),Math.sqrt(((t-e)*(t-e)+(o-n)*(o-n))/s)}}else if(this.type===mn.u){s=this.startX,l=this.startY;var u=this.endX;if(r=this.endY,s!==u||l!==r){e=u-s,n=r-l,o=2*e+2*n,i=t.x,t=t.y,i=Math.min(Math.max(i,s),u),t=Math.min(Math.max(t,l),r),s=Math.abs(i-s),u=Math.abs(i-u),l=Math.abs(t-l),r=Math.abs(t-r);var d=Math.min(s,u,l,r);if(d===l)return i/o;if(d===u)return(e+t)/o;if(d===r)return(2*e+n-i)/o;if(d===s)return(2*e+2*n-t)/o}}else{e=this.flattenedSegments,n=this.flattenedLengths,o=this.flattenedTotalLength,i=$.alloc(),r=1/0,l=s=0,u=e.length;for(var p=d=0,v=0;v<u;v++)for(var E=e[v],M=n[v],R=E.length,j=0;j<R;j+=2){var at=E[j],q=E[j+1];if(j!==0){Vt.qh(d,p,at,q,t.x,t.y,i);var gt=(i.x-t.x)*(i.x-t.x)+(i.y-t.y)*(i.y-t.y);gt<r&&(r=gt,s=l,s+=Math.sqrt((i.x-d)*(i.x-d)+(i.y-p)*(i.y-p))),l+=M[(j-2)/2]}d=at,p=q}return $.free(i),t=s/o,0>t?0:1<t?1:t}return 0};function Sc(t){if(t.tk===null){var e=t.tk=[],n=t.ym=[],i=[],r=[];if(t.type===mn.j)i.push(t.startX),i.push(t.startY),i.push(t.endX),i.push(t.endY),e.push(i),r.push(Math.sqrt((t.startX-t.endX)*(t.startX-t.endX)+(t.startY-t.endY)*(t.startY-t.endY))),n.push(r);else if(t.type===mn.u)i.push(t.startX),i.push(t.startY),i.push(t.endX),i.push(t.startY),i.push(t.endX),i.push(t.endY),i.push(t.startX),i.push(t.endY),i.push(t.startX),i.push(t.startY),e.push(i),r.push(Math.abs(t.startX-t.endX)),r.push(Math.abs(t.startY-t.endY)),r.push(Math.abs(t.startX-t.endX)),r.push(Math.abs(t.startY-t.endY)),n.push(r);else if(t.type===mn.F){var o=new Ls;o.startX=t.endX,o.startY=(t.startY+t.endY)/2;var s=new Lr(Tr);if(s.startAngle=0,s.sweepAngle=360,s.centerX=(t.startX+t.endX)/2,s.centerY=(t.startY+t.endY)/2,s.radiusX=Math.abs(t.startX-t.endX)/2,s.radiusY=Math.abs(t.startY-t.endY)/2,o.add(s),t=ja(s,o),r=t.length,r===0)i.push(s.centerX),i.push(s.centerY);else{s=o.startX,o=o.startY;for(var l=0;l<r;l++){var u=t[l];Vt.Qe(s,o,u[2],u[3],u[4],u[5],u[6],u[7],.5,i),s=u[6],o=u[7]}}e.push(i),n.push(sc(i))}else for(t=t.figures.iterator;t.next();){r=t.value,i=[],i.push(r.startX),i.push(r.startY),s=r.startX,o=r.startY,l=s,u=o;for(var d=r.segments.s,p=d.length,v=0;v<p;v++){var E=d[v];switch(E.type){case xs:4<=i.length&&(e.push(i),n.push(sc(i))),i=[],i.push(E.endX),i.push(E.endY),s=E.endX,o=E.endY,l=s,u=o;break;case xo:i.push(E.endX),i.push(E.endY),s=E.endX,o=E.endY;break;case ia:Vt.Qe(s,o,E.point1X,E.point1Y,E.point2X,E.point2Y,E.endX,E.endY,.5,i),s=E.endX,o=E.endY;break;case aa:Vt.ep(s,o,E.point1X,E.point1Y,E.endX,E.endY,.5,i),s=E.endX,o=E.endY;break;case Tr:var M=ja(E,r),R=M.length;if(R===0){i.push(E.centerX),i.push(E.centerY),s=E.centerX,o=E.centerY;break}for(var j=0;j<R;j++){var at=M[j];Vt.Qe(s,o,at[2],at[3],at[4],at[5],at[6],at[7],.5,i),s=at[6],o=at[7]}break;case Wa:if(M=Ma(E,r,s,o),R=M.length,j=E.endX,at=E.endY,R===0){i.push(j),i.push(at),s=j,o=at;break}for(j=0;j<R;j++)at=M[j],Vt.Qe(s,o,at[2],at[3],at[4],at[5],at[6],at[7],.5,i),s=at[6],o=at[7];break;default:ne("Segment not of valid type: "+E.type)}E.isClosed&&(i.push(l),i.push(u))}4<=i.length&&(e.push(i),n.push(sc(i)))}}}function sc(t){for(var e=[],n=0,i=0,r=t.length,o=0;o<r;o+=2){var s=t[o],l=t[o+1];o!==0&&e.push(Math.sqrt(De(n,i,s,l))),n=s,i=l}return e}D.add=function(t){return this.ee.add(t),this},D.pm=function(t,e,n,i,r,o,s,l){return this._isFrozen&&dn(this),this.fg=new Wn(t,e,r,o).freeze(),this.gg=new Wn(n,i,s,l).freeze(),this},te.Object.defineProperties(mn.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(t){this.l=t?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(t){this.l=t?this.l|2:this.l&-3}},flattenedSegments:{get:function(){return Sc(this),this.tk}},flattenedLengths:{get:function(){return Sc(this),this.ym}},flattenedTotalLength:{get:function(){var t=this.zm;if(isNaN(t)){if(this.type===mn.j){t=Math.abs(this.endX-this.startX);var e=Math.abs(this.endY-this.startY);t=Math.sqrt(t*t+e*e)}else if(this.type===mn.u)t=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else{e=this.flattenedLengths;for(var n=e.length,i=t=0;i<n;i++)for(var r=e[i],o=r.length,s=0;s<o;s++)t+=r[s]}this.zm=t}return t}},type:{get:function(){return this.na},set:function(t){this.na!==t&&(this._isFrozen&&dn(this,t),this.na=t,t===mn.o?this.ee=new Re:(mn.V===null&&(mn.V=new Re().freeze()),this.ee=mn.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(t){this.od!==t&&(this._isFrozen&&dn(this,t),this.od=t,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(t){this.pd!==t&&(this._isFrozen&&dn(this,t),this.pd=t,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(t){this.Dc!==t&&(this._isFrozen&&dn(this,t),this.Dc=t,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(t){this.Ec!==t&&(this._isFrozen&&dn(this,t),this.Ec=t,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(t){this.ee!==t&&(this._isFrozen&&dn(this,t),this.ee=t,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(t){this._isFrozen&&dn(this,t),this.fg=t.J()}},spot2:{get:function(){return this.gg},set:function(t){this._isFrozen&&dn(this,t),this.gg=t.J()}},defaultStretch:{get:function(){return this.Uf},set:function(t){this._isFrozen&&dn(this,t),this.Uf=t}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),mn.prototype.setSpots=mn.prototype.pm,mn.prototype.add=mn.prototype.add,mn.prototype.getFractionForPoint=mn.prototype.xx,mn.prototype.getPointAndAngleAlongPath=mn.prototype.Qu,mn.prototype.getAngleAlongPath=mn.prototype.wx,mn.prototype.getPointAlongPath=mn.prototype.Pu,mn.prototype.containsPoint=mn.prototype.ca,mn.prototype.transform=mn.prototype.transform,mn.prototype.rotate=mn.prototype.rotate,mn.prototype.scale=mn.prototype.scale,mn.prototype.offset=mn.prototype.offset,mn.prototype.normalize=mn.prototype.normalize,mn.prototype.computeBoundsWithoutOrigin=mn.prototype.ix,mn.prototype.equalsApprox=mn.prototype.Xa,mn.className="Geometry",mn.j=new le(mn,"Line",0),mn.u=new le(mn,"Rectangle",1),mn.F=new le(mn,"Ellipse",2),mn.o=new le(mn,"Path",3),mn.V=null,mn.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",mn.className="Geometry",mn.stringify=mn.ia,mn.fillPath=mn.nb,mn.parse=mn.parse,mn.Line=mn.j,mn.Rectangle=mn.u,mn.Ellipse=mn.F,mn.Path=mn.o;function Ls(t,e,n,i,r){nr(this),n===void 0&&(n=!0),i===void 0&&(i=!0),r===void 0&&(r=!1),this.l=2|(n?4:0)|(i?8:0)|(r?16:0),t!==void 0?this.od=t:this.od=0,e!==void 0?this.pd=e:this.pd=0,this.pl=new Re,this.sr=this.pl.Ja,this.fw=null}Ls.prototype.copy=function(){var t=new Ls;t.l=this.l&-2,t.od=this.od,t.pd=this.pd;for(var e=this.pl.s,n=e.length,i=t.pl,r=0;r<n;r++){var o=e[r].copy();i.add(o)}return t.sr=this.sr,t.fw=this.fw,t},D=Ls.prototype,D.Xa=function(t){if(!(t instanceof Ls&&Vt.B(this.startX,t.startX)&&Vt.B(this.startY,t.startY)))return!1;var e=this.segments.s;t=t.segments.s;var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++)if(!e[i].Xa(t[i]))return!1;return!0},D.toString=function(t){t===void 0&&(t=-1);for(var e=0>t?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(t)+" "+this.startY.toFixed(t),n=this.segments.s,i=n.length,r=0;r<i;r++)e+=" "+n[r].toString(t);return e},D.freeze=function(){this._isFrozen=!0;var t=this.segments;t.freeze();var e=t.s;t=t.length;for(var n=0;n<t;n++)e[n].freeze();return this},D.ka=function(){this._isFrozen=!1;var t=this.segments;t.ka(),t=t.s;for(var e=t.length,n=0;n<e;n++)t[n].ka();return this},D.Zu=function(){if(this._isInvalidBounds)return!0;var t=this.segments;if(this.sr!==t.Ja)return!0;t=t.s;for(var e=t.length,n=0;n<e;n++)if(t[n]._isInvalidBounds)return!0;return!1},D.add=function(t){return this.pl.add(t),this},D.ca=function(t,e,n){for(var i=this.startX,r=this.startY,o=i,s=r,l=this.segments.s,u=l.length,d=0;d<u;d++){var p=l[d];switch(p.type){case xs:o=p.endX,s=p.endY,i=p.endX,r=p.endY;break;case xo:if(Vt.Yb(i,r,p.endX,p.endY,n,t,e))return!0;i=p.endX,r=p.endY;break;case ia:if(Vt.cs(i,r,p.point1X,p.point1Y,p.point2X,p.point2Y,p.endX,p.endY,.5,t,e,n))return!0;i=p.endX,r=p.endY;break;case aa:if(Vt.jv(i,r,p.point1X,p.point1Y,p.endX,p.endY,.5,t,e,n))return!0;i=p.endX,r=p.endY;break;case Tr:case Wa:var v=p.type===Tr?ja(p,this):Ma(p,this,i,r),E=v.length,M=p.type===Tr?p.centerX:p.endX,R=p.type===Tr?p.centerY:p.endY;if(E===0){if(Vt.Yb(i,r,M,R,n,t,e))return!0;i=M,r=R;break}for(M=null,R=0;R<E;R++)if(M=v[R],R===0&&Vt.Yb(i,r,M[0],M[1],n,t,e)||Vt.cs(M[0],M[1],M[2],M[3],M[4],M[5],M[6],M[7],.5,t,e,n))return!0;M!==null&&(i=M[6],r=M[7]);break;default:ne("Unknown Segment type: "+p.type)}if(p.isClosed&&(i!==o||r!==s)&&Vt.Yb(i,r,o,s,n,t,e))return!0}return!1},te.Object.defineProperties(Ls.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(t){this.l=t?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(t){this.l=t?this.l|2:this.l&-3}},isFilled:{get:function(){return(this.l&4)!==0},set:function(t){this._isFrozen&&dn(this,t),this.l=t?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(t){this._isFrozen&&dn(this,t),this.l=t?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(t){this._isFrozen&&dn(this,t),this.l=t?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(t){this._isFrozen&&dn(this,t),this.od=t,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(t){this._isFrozen&&dn(this,t),this.pd=t,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(t){this._isFrozen&&dn(this,t),this.pl=t,this._isInvalidBounds=!0}}}),Ls.prototype.add=Ls.prototype.add,Ls.prototype.equalsApprox=Ls.prototype.Xa,Ls.className="PathFigure";function Lr(t,e,n,i,r,o,s,l){nr(this),t===void 0&&(t=xo),this.na=t,this.l=2,e!==void 0?this.Dc=e:this.Dc=0,n!==void 0?this.Ec=n:this.Ec=0,i===void 0&&(i=0),r===void 0&&(r=0),o===void 0&&(o=0),s===void 0&&(s=0),t===Wa?(t=o%360,0>t&&(t+=360),this.Ne=t,this.Vh=0,this.Wh=Math.max(i,0),this.Pg=Math.max(r,0),typeof s=="boolean"?s&&(this.isLargeArc=!0):typeof s=="number"&&s&&(this.isLargeArc=!0),l&&(this.isClockwiseArc=!0)):(this.Ne=i,this.Vh=r,t===Tr&&(o=Math.max(o,0)),this.Wh=o,typeof s=="number"?(t===Tr&&(s=Math.max(s,0)),this.Pg=s):this.Pg=0),this.ae=null}Lr.prototype.copy=function(){var t=new Lr;return t.na=this.na,t.l=this.l&-2,t.Dc=this.Dc,t.Ec=this.Ec,t.Ne=this.Ne,t.Vh=this.Vh,t.Wh=this.Wh,t.Pg=this.Pg,t},D=Lr.prototype,D.Xa=function(t){if(!(t instanceof Lr)||this.type!==t.type||this.isClosed!==t.isClosed)return!1;switch(this.type){case xs:case xo:return Vt.B(this.endX,t.endX)&&Vt.B(this.endY,t.endY);case ia:return Vt.B(this.endX,t.endX)&&Vt.B(this.endY,t.endY)&&Vt.B(this.point1X,t.point1X)&&Vt.B(this.point1Y,t.point1Y)&&Vt.B(this.point2X,t.point2X)&&Vt.B(this.point2Y,t.point2Y);case aa:return Vt.B(this.endX,t.endX)&&Vt.B(this.endY,t.endY)&&Vt.B(this.point1X,t.point1X)&&Vt.B(this.point1Y,t.point1Y);case Tr:return Vt.B(this.startAngle,t.startAngle)&&Vt.B(this.sweepAngle,t.sweepAngle)&&Vt.B(this.centerX,t.centerX)&&Vt.B(this.centerY,t.centerY)&&Vt.B(this.radiusX,t.radiusX)&&Vt.B(this.radiusY,t.radiusY);case Wa:return this.isClockwiseArc===t.isClockwiseArc&&this.isLargeArc===t.isLargeArc&&Vt.B(this.xAxisRotation,t.xAxisRotation)&&Vt.B(this.endX,t.endX)&&Vt.B(this.endY,t.endY)&&Vt.B(this.radiusX,t.radiusX)&&Vt.B(this.radiusY,t.radiusY);default:return!1}},D.qb=function(t){t.classType===Lr&&(this.type=t)},D.toString=function(t){switch(t===void 0&&(t=-1),this.type){case xs:t=0>t?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(t)+" "+this.endY.toFixed(t);break;case xo:t=0>t?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(t)+" "+this.endY.toFixed(t);break;case ia:t=0>t?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(t)+" "+this.point1Y.toFixed(t)+" "+this.point2X.toFixed(t)+" "+this.point2Y.toFixed(t)+" "+this.endX.toFixed(t)+" "+this.endY.toFixed(t);break;case aa:t=0>t?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(t)+" "+this.point1Y.toFixed(t)+" "+this.endX.toFixed(t)+" "+this.endY.toFixed(t);break;case Tr:t=0>t?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(t)+" "+this.sweepAngle.toFixed(t)+" "+this.centerX.toFixed(t)+" "+this.centerY.toFixed(t)+" "+this.radiusX.toFixed(t)+" "+this.radiusY.toFixed(t);break;case Wa:t=0>t?"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(t)+" "+this.radiusY.toFixed(t)+" "+this.xAxisRotation.toFixed(t)+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toFixed(t)+" "+this.endY.toFixed(t);break;default:t=this.type.toString()}return t+(this.isClosed?"z":"")},D.freeze=function(){return this._isFrozen=!0,this},D.ka=function(){return this._isFrozen=!1,this},D.close=function(){return this.isClosed=!0,this};function ja(t,e){if(t.ae!==null&&e._isInvalidBounds===!1)return t.ae;var n=t.radiusX,i=t.radiusY;if(i===void 0&&(i=n),n===0||i===0)return t.ae=[],t.ae;e=t.Ne;var r=t.Vh,o=Vt.jx(0,0,n<i?n:i,t.startAngle,t.startAngle+t.sweepAngle,!1);if(n!==i){var s=Ti.alloc();s.reset(),n<i?s.scale(1,i/n):s.scale(n/i,1),mn.Ha(o,s),Ti.free(s)}for(n=o.length,i=0;i<n;i++)s=o[i],s[0]+=e,s[1]+=r,s[2]+=e,s[3]+=r,s[4]+=e,s[5]+=r,s[6]+=e,s[7]+=r;return t.ae=o,t.ae}function Ma(t,e,n,i){function r(j,at,q,gt){return(j*gt<at*q?-1:1)*Math.acos((j*q+at*gt)/(Math.sqrt(j*j+at*at)*Math.sqrt(q*q+gt*gt)))}if(t.ae!==null&&e._isInvalidBounds===!1)return t.ae;if(t.radiusX===0||t.radiusY===0)return t.ae=[],t.ae;e=t.Wh;var o=t.Pg;e===0&&(e=1e-4),o===0&&(o=1e-4);var s=Math.PI/180*t.Ne,l=t.isLargeArc,u=t.isClockwiseArc,d=t.Dc,p=t.Ec,v=Math.cos(s),E=Math.sin(s),M=v*(n-d)/2+E*(i-p)/2;s=-E*(n-d)/2+v*(i-p)/2;var R=M*M/(e*e)+s*s/(o*o);return 1<R&&(e*=Math.sqrt(R),o*=Math.sqrt(R)),R=(l===u?-1:1)*Math.sqrt((e*e*o*o-e*e*s*s-o*o*M*M)/(e*e*s*s+o*o*M*M)),isNaN(R)&&(R=0),l=R*e*s/o,R=R*-o*M/e,isNaN(l)&&(l=0),isNaN(R)&&(R=0),n=(n+d)/2+v*l-E*R,i=(i+p)/2+E*l+v*R,p=r(1,0,(M-l)/e,(s-R)/o),v=(M-l)/e,d=(s-R)/o,M=(-M-l)/e,l=(-s-R)/o,s=r(v,d,M,l),M=(v*M+d*l)/(Math.sqrt(v*v+d*d)*Math.sqrt(M*M+l*l)),-1>=M?s=Math.PI:1<=M&&(s=0),!u&&0<s&&(s-=2*Math.PI),u&&0>s&&(s+=2*Math.PI),u=e>o?1:e/o,M=e>o?o/e:1,e=Vt.jx(0,0,e>o?e:o,p,p+s,!0),o=Ti.alloc(),o.reset(),o.translate(n,i),o.rotate(t.Ne,0,0),o.scale(u,M),mn.Ha(e,o),Ti.free(o),t.ae=e,t.ae}te.Object.defineProperties(Lr.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(t){this.l=t?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(t){this.l=t?this.l|2:this.l&-3}},isClosed:{get:function(){return(this.l&8)!==0},set:function(t){this.isClosed!==t&&(this.l=t?this.l|8:this.l&-9,this._isInvalidBounds=!0)}},type:{get:function(){return this.na},set:function(t){this._isFrozen&&dn(this,t),this.na=t,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(t){this._isFrozen&&dn(this,t),this.Dc=t,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(t){this._isFrozen&&dn(this,t),this.Ec=t,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(t){this._isFrozen&&dn(this,t),this.Ne=t,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(t){this._isFrozen&&dn(this,t),this.Vh=t,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(t){this._isFrozen&&dn(this,t),this.Wh=t,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(t){this._isFrozen&&dn(this,t),this.Pg=t,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(t){this._isFrozen&&dn(this,t),this.Ne=t,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(t){this._isFrozen&&dn(this,t),this.Vh=t,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(t){0>t&&Fn(t,">= zero",Lr,"radiusX"),this._isFrozen&&dn(this,t),this.Wh=t,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(t){0>t&&Fn(t,">= zero",Lr,"radiusY"),this._isFrozen&&dn(this,t),this.Pg=t,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(t){this._isFrozen&&dn(this,t),t%=360,0>t&&(t+=360),this.Dc=t,this._isInvalidBounds=!0}},sweepAngle:{get:function(){return this.Ec},set:function(t){this._isFrozen&&dn(this,t),360<t&&(t=360),-360>t&&(t=-360),this.Ec=t,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return(this.l&4)!==0},set:function(t){this._isFrozen&&dn(this,t),this.l=t?this.l|4:this.l&-5,this._isInvalidBounds=!0}},isLargeArc:{get:function(){return(this.l&16)!==0},set:function(t){this._isFrozen&&dn(this,t),this.l=t?this.l|16:this.l&-17,this._isInvalidBounds=!0}},xAxisRotation:{get:function(){return this.Ne},set:function(t){this._isFrozen&&dn(this,t),t%=360,0>t&&(t+=360),this.Ne=t,this._isInvalidBounds=!0}}}),Lr.prototype.equalsApprox=Lr.prototype.Xa;var xs=new le(Lr,"Move",0),xo=new le(Lr,"Line",1),ia=new le(Lr,"Bezier",2),aa=new le(Lr,"QuadraticBezier",3),Tr=new le(Lr,"Arc",4),Wa=new le(Lr,"SvgArc",4);Lr.className="PathSegment",Lr.Move=xs,Lr.Line=xo,Lr.Bezier=ia,Lr.QuadraticBezier=aa,Lr.Arc=Tr,Lr.SvgArc=Wa;function ra(){this.H=null,this.xu=new $(0,0).freeze(),this.mt=new $(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}ra.prototype.copy=function(){var t=new ra;return this.clone(t)},ra.prototype.clone=function(t){return t.H=this.H,t.xu.assign(this.viewPoint),t.mt.assign(this.documentPoint),t.Rq=this.Rq,t.Bp=this.Bp,t.Cp=this.Cp,t.xq=this.xq,t.Tp=this.Tp,t.Wr=this.Wr,t.Ep=this.Ep,t.Rp=this.Rp,t.tq=this.tq,t.nq=this.nq,t.xg=this.xg,t.Zp=this.Zp,t.Rr=this.Rr,t.Nr=this.Nr,t.xd=this.xd,t},ra.prototype.toString=function(){var t="^";return this.modifiers!==0&&(t+="M:"+this.modifiers),this.button!==0&&(t+="B:"+this.button),this.key!==""&&(t+="K:"+this.key),this.clickCount!==0&&(t+="C:"+this.clickCount),this.delta!==0&&(t+="D:"+this.delta),this.handled&&(t+="h"),this.bubbles&&(t+="b"),this.documentPoint!==null&&(t+="@"+this.documentPoint.toString()),t},ra.prototype.So=function(t,e){var n=this.diagram;return n===null||Pr(n,t,e),e},ra.prototype.Bz=function(t,e){var n=this.diagram;return n===null||(Pr(n,t,e),e.assign(n.Ps(e))),e},te.Object.defineProperties(ra.prototype,{diagram:{get:function(){return this.H},set:function(t){this.H=t}},viewPoint:{get:function(){return this.xu},set:function(t){this.xu.assign(t)}},documentPoint:{get:function(){return this.mt},set:function(t){this.mt.assign(t)}},modifiers:{get:function(){return this.Rq},set:function(t){this.Rq=t}},button:{get:function(){return this.Bp},set:function(t){if(this.Bp=t,this.event===null)switch(t){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(t){this.Cp=t}},key:{get:function(){return this.xq},set:function(t){this.xq=t}},down:{get:function(){return this.Tp},set:function(t){this.Tp=t}},up:{get:function(){return this.Wr},set:function(t){this.Wr=t}},clickCount:{get:function(){return this.Ep},set:function(t){this.Ep=t}},delta:{get:function(){return this.Rp},set:function(t){this.Rp=t}},isMultiTouch:{get:function(){return this.tq},set:function(t){this.tq=t}},handled:{get:function(){return this.nq},set:function(t){this.nq=t}},bubbles:{get:function(){return this.xg},set:function(t){this.xg=t}},event:{get:function(){return this.Zp},set:function(t){this.Zp=t}},isTouchEvent:{get:function(){var t=this.event;return t===null?!1:t.pointerType==="touch"||t.pointerType==="pen"}},timestamp:{get:function(){return this.Rr},set:function(t){this.Rr=t}},targetDiagram:{get:function(){return this.Nr},set:function(t){this.Nr=t}},targetObject:{get:function(){return this.xd},set:function(t){this.xd=t}},control:{get:function(){return(this.modifiers&1)!==0},set:function(t){this.modifiers=t?this.modifiers|1:this.modifiers&-2}},shift:{get:function(){return(this.modifiers&4)!==0},set:function(t){this.modifiers=t?this.modifiers|4:this.modifiers&-5}},alt:{get:function(){return(this.modifiers&2)!==0},set:function(t){this.modifiers=t?this.modifiers|2:this.modifiers&-3}},meta:{get:function(){return(this.modifiers&8)!==0},set:function(t){this.modifiers=t?this.modifiers|8:this.modifiers&-9}},left:{get:function(){var t=this.event;return t===null||t.type!=="mousedown"&&t.type!=="mouseup"&&t.type!=="pointerdown"&&t.type!=="pointerup"?(this.buttons&1)!==0:this.button===0},set:function(t){this.buttons=t?this.buttons|1:this.buttons&-2}},right:{get:function(){var t=this.event;return t===null||t.type!=="mousedown"&&t.type!=="mouseup"&&t.type!=="pointerdown"&&t.type!=="pointerup"?(this.buttons&2)!==0:this.button===2},set:function(t){this.buttons=t?this.buttons|2:this.buttons&-3}},middle:{get:function(){var t=this.event;return t===null||t.type!=="mousedown"&&t.type!=="mouseup"&&t.type!=="pointerdown"&&t.type!=="pointerup"?(this.buttons&4)!==0:this.button===1},set:function(t){this.buttons=t?this.buttons|4:this.buttons&-5}}}),ra.prototype.getMultiTouchDocumentPoint=ra.prototype.Bz,ra.prototype.getMultiTouchViewPoint=ra.prototype.So,ra.className="InputEvent";function wu(){this.H=null,this.xa="",this.ar=this.Lr=null}wu.prototype.copy=function(){var t=new wu;return t.H=this.H,t.xa=this.xa,t.Lr=this.Lr,t.ar=this.ar,t},wu.prototype.toString=function(){var t="*"+this.name;return this.subject!==null&&(t+=":"+this.subject.toString()),this.parameter!==null&&(t+="("+this.parameter.toString()+")"),t},te.Object.defineProperties(wu.prototype,{diagram:{get:function(){return this.H},set:function(t){this.H=t}},name:{get:function(){return this.xa},set:function(t){this.xa=t}},subject:{get:function(){return this.Lr},set:function(t){this.Lr=t}},parameter:{get:function(){return this.ar},set:function(t){this.ar=t}}}),wu.className="DiagramEvent";function _o(){this.Fm=Ro,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}_o.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},_o.prototype.copy=function(){var t=new _o;t.Fm=this.Fm,t.Qq=this.Qq,t.rf=this.rf,t.cc=this.cc,t.H=this.H,t.Qn=this.Qn;var e=this.Sn;return t.Sn=Me(e)&&typeof e.J=="function"?e.J():e,e=this.Rn,t.Rn=Me(e)&&typeof e.J=="function"?e.J():e,e=this.Mn,t.Mn=Me(e)&&typeof e.J=="function"?e.J():e,e=this.Ln,t.Ln=Me(e)&&typeof e.J=="function"?e.J():e,t},_o.prototype.qb=function(t){t.classType===_o&&(this.change=t)},_o.prototype.toString=function(){var t="";return t=this.change===Oa?t+"* ":this.change===Ro?t+(this.model!==null?"!m":"!d"):t+((this.model!==null?"!m":"!d")+this.change),this.propertyName&&typeof this.propertyName=="string"&&(t+=" "+this.propertyName),this.modelChange&&this.modelChange!==this.propertyName&&(t+=" "+this.modelChange),t+=": ",this.change===Oa?this.oldValue!==null&&(t+=" "+this.oldValue):(this.object!==null&&(t+=yn(this.object)),this.oldValue!==null&&(t+=" old: "+yn(this.oldValue)),this.oldParam!==null&&(t+=" "+this.oldParam),this.newValue!==null&&(t+=" new: "+yn(this.newValue)),this.newParam!==null&&(t+=" "+this.newParam)),t},_o.prototype.I=function(t){return t?this.oldValue:this.newValue},_o.prototype.Dz=function(t){return t?this.oldParam:this.newParam},_o.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},_o.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},_o.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},_o.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},te.Object.defineProperties(_o.prototype,{model:{get:function(){return this.cc},set:function(t){this.cc=t}},diagram:{get:function(){return this.H},set:function(t){this.H=t}},change:{get:function(){return this.Fm},set:function(t){this.Fm=t}},modelChange:{get:function(){return this.Qq},set:function(t){this.Qq=t}},propertyName:{get:function(){return this.rf},set:function(t){this.rf=t}},isTransactionFinished:{get:function(){return this.Fm===Oa&&(this.rf==="CommittedTransaction"||this.rf==="FinishedUndo"||this.rf==="FinishedRedo")}},object:{get:function(){return this.Qn},set:function(t){this.Qn=t}},oldValue:{get:function(){return this.Sn},set:function(t){this.Sn=t}},oldParam:{get:function(){return this.Rn},set:function(t){this.Rn=t}},newValue:{get:function(){return this.Mn},set:function(t){this.Mn=t}},newParam:{get:function(){return this.Ln},set:function(t){this.Ln=t}}}),_o.prototype.redo=_o.prototype.redo,_o.prototype.canRedo=_o.prototype.canRedo,_o.prototype.undo=_o.prototype.undo,_o.prototype.canUndo=_o.prototype.canUndo,_o.prototype.getParam=_o.prototype.Dz,_o.prototype.getValue=_o.prototype.I,_o.prototype.clear=_o.prototype.clear;var Oa=new le(_o,"Transaction",-1),Ro=new le(_o,"Property",0),hs=new le(_o,"Insert",1),Ts=new le(_o,"Remove",2);_o.className="ChangedEvent",_o.Transaction=Oa,_o.Property=Ro,_o.Insert=hs,_o.Remove=Ts;function Rs(){this.o=new Re().freeze(),this.xa="",this.j=!1}Rs.prototype.toString=function(t){var e="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(t!==void 0&&0<t){t=this.changes.count;for(var n=0;n<t;n++){var i=this.changes.M(n);i!==null&&(e+=`
|
|
|
`+i.toString())}}return e},Rs.prototype.clear=function(){var t=this.changes;t.ka();for(var e=t.count-1;0<=e;e--){var n=t.M(e);n!==null&&n.clear()}t.clear(),t.freeze()},Rs.prototype.canUndo=function(){return this.isComplete},Rs.prototype.undo=function(){if(this.canUndo())for(var t=this.changes.count-1;0<=t;t--){var e=this.changes.M(t);e!==null&&e.undo()}},Rs.prototype.canRedo=function(){return this.isComplete},Rs.prototype.redo=function(){if(this.canRedo())for(var t=this.changes.count,e=0;e<t;e++){var n=this.changes.M(e);n!==null&&n.redo()}},Rs.prototype.ak=function(){if(this.isComplete){var t=this.changes;t.ka();for(var e=new pt,n=0;n<t.count;n++){var i=t.M(n);if(i!==null&&i.change===Ro&&i.object){var r=e.get(i.object);r||(r=new pt,e.set(i.object,r));var o=r.get(i.propertyName);o===null?r.set(i.propertyName,-1):(0<o&&t.cd(o,null),r.set(i.propertyName,n))}}for(n=e=0;n<t.count;n++)i=t.M(n),i!==null&&(n>e&&t.cd(e,i),e++);for(;t.length>e;)t.pop();t.freeze()}},te.Object.defineProperties(Rs.prototype,{changes:{get:function(){return this.o}},name:{get:function(){return this.xa},set:function(t){this.xa=t}},isComplete:{get:function(){return this.j},set:function(t){this.j=t}}}),Rs.prototype.optimize=Rs.prototype.ak,Rs.prototype.redo=Rs.prototype.redo,Rs.prototype.canRedo=Rs.prototype.canRedo,Rs.prototype.undo=Rs.prototype.undo,Rs.prototype.canUndo=Rs.prototype.canUndo,Rs.prototype.clear=Rs.prototype.clear,Rs.className="Transaction";function Ho(){this.Pt=new je,this.Jd=!1,this.u=new Re().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Re().freeze(),this.hl=new Re,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}Ho.prototype.toString=function(t){var e="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;e+="[";for(var n=this.nestedTransactionNames.count,i=0;i<n;i++)0<i&&(e+=" "),e+=this.nestedTransactionNames.M(i);if(e+="]",t!==void 0&&0<t)for(n=this.history.count,i=0;i<n;i++)e+=`
|
|
|
`+this.history.M(i).toString(t-1);return e},Ho.prototype.clear=function(){var t=this.history;t.ka();for(var e=t.count-1;0<=e;e--){var n=t.M(e);n!==null&&n.clear()}t.clear(),this.Ce=-1,t.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},Ho.prototype.copyProperties=function(t){this.isEnabled=t.isEnabled,this.maxHistoryLength=t.maxHistoryLength,this.checksTransactionLevel=t.checksTransactionLevel},D=Ho.prototype,D.Xw=function(t){this.Pt.add(t)},D.Rx=function(t){this.Pt.remove(t)},D.Ea=function(t){if(t===void 0&&(t=""),t===null&&(t=""),this.isUndoingRedoing)return!1;this.tt===!0&&(this.tt=!1,this.bi++,this.isInternalTransaction||this.Ob("StartingFirstTransaction",t,this.currentTransaction),0<this.bi&&this.bi--),this.isEnabled&&(this.Ie.ka(),this.Ie.add(t),this.Ie.freeze(),this.currentTransaction===null?this.hl.add(0):this.hl.add(this.currentTransaction.changes.count)),this.bi++;var e=this.transactionLevel===1;return e&&(this.isInternalTransaction||this.Ob("StartedTransaction",t,this.currentTransaction)),e},D.eb=function(t){return t===void 0&&(t=""),Yu(this,!0,t)},D.Kf=function(){return Yu(this,!1,"")};function Yu(t,e,n){if(t.isUndoingRedoing)return!1;t.checksTransactionLevel&&1>t.transactionLevel&&hi("Ending transaction without having started a transaction: "+n);var i=t.transactionLevel===1,r=t.currentTransaction;i&&e&&(t.isInternalTransaction||t.Ob("CommittingTransaction",n,r));var o=0;if(0<t.transactionLevel&&(t.bi--,t.isEnabled)){var s=t.Ie.count;0<s&&(n===""&&(n=t.Ie.M(0)),t.Ie.ka(),t.Ie.mb(s-1),t.Ie.freeze()),s=t.hl.count,0<s&&(o=t.hl.M(s-1),t.hl.mb(s-1))}if(i){if(e)t.rq=!1,r===null&&n!==""&&(r=t.currentTransaction),t.isEnabled&&r!==null&&(r.isComplete||(r.isComplete=!0,r.name=n),t.lx(),e=t.history,e.ka(),i=t.maxHistoryLength,0<=i&&(i===0?e.clear():e.count>=i&&(o=e.M(0),o!==null&&o.clear(),e.mb(0),t.Ce--)),i===0||e.count!==0&&e.get(e.count-1)===r||(e.add(r),t.Ce++),e.freeze()),t.isInternalTransaction||t.Ob("CommittedTransaction",n,r);else{t.Fe=!0;try{t.isEnabled&&r!==null&&(r.isComplete=!0,r.undo())}finally{t.isInternalTransaction||t.Ob("RolledBackTransaction",n,r),t.Fe=!1}r!==null&&r.clear()}return t.Np=null,t.isPendingClear&&t.clear(),t.isPendingClear=!1,t.isPendingUnmodified=!1,!0}if(t.isEnabled&&!e&&r!==null){for(t=o,n=r.changes,r=n.count-1;r>=t;r--)e=n.M(r),e!==null&&e.undo(),n.ka(),n.mb(r);n.freeze()}return!1}D.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var t=this.history;t.ka();for(var e=t.count-1;e>this.historyIndex;e--){var n=t.M(e);n!==null&&n.clear(),t.mb(e),this.rq=!0}t.freeze()}},Ho.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var t=this.transactionToUndo;return!!(t!==null&&t.canUndo())},Ho.prototype.undo=function(){if(this.canUndo()){var t=this.transactionToUndo;try{this.Fe=!0,this.Ob("StartingUndo","Undo",t),this.Ce--,t.undo()}catch(e){hi("undo error: "+e.toString())}finally{this.Ob("FinishedUndo","Undo",t),this.Fe=!1}}},Ho.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var t=this.transactionToRedo;return!!(t!==null&&t.canRedo())},Ho.prototype.redo=function(){if(this.canRedo()){var t=this.transactionToRedo;try{this.Fe=!0,this.Ob("StartingRedo","Redo",t),this.Ce++,t.redo()}catch(e){hi("redo error: "+e.toString())}finally{this.Ob("FinishedRedo","Redo",t),this.Fe=!1}}},Ho.prototype.Ob=function(t,e,n){n===void 0&&(n=null);var i=new _o;for(i.change=Oa,i.propertyName=t,i.object=n,i.oldValue=e,t=this.models;t.next();)e=t.value,i.model=e,e.ds(i)},Ho.prototype.Tu=function(t){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(t)){var e=this.currentTransaction;e===null&&(this.Np=e=new Rs);var n=t.copy();e=e.changes,e.ka(),e.add(n),e.freeze(),this.checksTransactionLevel&&0>=this.transactionLevel&&!this.tt&&(t=t.diagram,t!==null&&t.pi===!1||hi("Change not within a transaction: "+n.toString()))}},Ho.prototype.skipsEvent=function(t){if(t===null||0>t.change.value)return!0;if(t=t.object,t===null)return!1;if(t.layer!==void 0){if(t=t.layer,t!==null&&t.isTemporary)return!0}else if(t.isTemporary)return!0;return!1},te.Object.defineProperties(Ho.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(t){this.Jd=t}},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(t){this.o=t}},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(t){this.j=t}},nestedTransactionNames:{get:function(){return this.Ie}},isPendingClear:{get:function(){return this.Ft},set:function(t){this.Ft=t}},isPendingUnmodified:{get:function(){return this.Gt},set:function(t){this.Gt=t}},isInternalTransaction:{get:function(){return this.Dt},set:function(t){this.Dt=t}},isJustDiscarded:{get:function(){return this.rq}}}),Ho.prototype.handleChanged=Ho.prototype.Tu,Ho.prototype.redo=Ho.prototype.redo,Ho.prototype.undo=Ho.prototype.undo,Ho.prototype.canUndo=Ho.prototype.canUndo,Ho.prototype.discardHistoryAfterIndex=Ho.prototype.lx,Ho.prototype.rollbackTransaction=Ho.prototype.Kf,Ho.prototype.commitTransaction=Ho.prototype.eb,Ho.prototype.startTransaction=Ho.prototype.Ea,Ho.prototype.removeModel=Ho.prototype.Rx,Ho.prototype.addModel=Ho.prototype.Xw,Ho.prototype.clear=Ho.prototype.clear,Ho.className="UndoManager";function Nr(){nr(this),this.H=oi,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new ra,this.Zr=-1}Nr.prototype.toString=function(){return this.name!==""?this.name+" Tool":Je(this.constructor)},Nr.prototype.updateAdornments=function(){},Nr.prototype.canStart=function(){return this.isEnabled},Nr.prototype.doStart=function(){},Nr.prototype.doActivate=function(){this.isActive=!0},Nr.prototype.doDeactivate=function(){this.isActive=!1},Nr.prototype.doStop=function(){},Nr.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},Nr.prototype.stopTool=function(){var t=this.diagram;t.currentTool===this&&(t.currentTool=null,t.currentCursor="")},Nr.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},Nr.prototype.doMouseMove=function(){},Nr.prototype.doMouseUp=function(){this.stopTool()},Nr.prototype.doMouseWheel=function(){},Nr.prototype.canStartMultiTouch=function(){return!0},Nr.prototype.standardPinchZoomStart=function(){var t=this.diagram,e=t.lastInput,n=e.So(0,$.allocAt(NaN,NaN)),i=e.So(1,$.allocAt(NaN,NaN));if(n.w()&&i.w()&&(this.doCancel(),t.Ql("hasGestureZoom"))){t.Bw=t.scale;var r=i.x-n.x,o=i.y-n.y;t.Jw=Math.sqrt(r*r+o*o),e.bubbles=!1}$.free(n),$.free(i)},Nr.prototype.standardPinchZoomMove=function(){var t=this.diagram,e=t.lastInput,n=e.So(0,$.allocAt(NaN,NaN)),i=e.So(1,$.allocAt(NaN,NaN));if(n.w()&&i.w()&&(this.doCancel(),t.Ql("hasGestureZoom"))){var r=i.x-n.x,o=i.y-n.y;o=Math.sqrt(r*r+o*o)/t.Jw,r=new $((Math.min(i.x,n.x)+Math.max(i.x,n.x))/2,(Math.min(i.y,n.y)+Math.max(i.y,n.y))/2),o*=t.Bw;var s=t.commandHandler;if(o!==t.scale&&s.canResetZoom(o)){var l=t.zoomPoint;t.zoomPoint=r,s.resetZoom(o),t.zoomPoint=l}e.bubbles=!1}$.free(n),$.free(i)},Nr.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},Nr.prototype.doKeyUp=function(){},Nr.prototype.Ea=function(t){return t===void 0&&(t=this.name),this.transactionResult=null,this.diagram.Ea(t)},Nr.prototype.stopTransaction=function(){var t=this.diagram;return this.transactionResult===null?t.Kf():t.eb(this.transactionResult)},Nr.prototype.standardMouseSelect=function(){var t=this.diagram;if(t.allowSelect){var e=t.lastInput,n=t.Ol(e.documentPoint,!1);if(n!==null){if(ir?e.meta:e.control){for(t.R("ChangingSelection",t.selection),e=n;e!==null&&!e.canSelect();)e=e.containingGroup;e!==null&&(e.isSelected=!e.isSelected),t.R("ChangedSelection",t.selection)}else if(e.shift){if(!n.isSelected){for(t.R("ChangingSelection",t.selection),e=n;e!==null&&!e.canSelect();)e=e.containingGroup;e!==null&&(e.isSelected=!0),t.R("ChangedSelection",t.selection)}}else if(!n.isSelected){for(e=n;e!==null&&!e.canSelect();)e=e.containingGroup;e!==null&&t.select(e)}}else!e.left||(ir?e.meta:e.control)||e.shift||t.clearSelection()}},Nr.prototype.standardMouseClick=function(t,e){t===void 0&&(t=null),e===void 0&&(e=function(r){return!r.layer.isTemporary});var n=this.diagram,i=n.lastInput;return t=n.ic(i.documentPoint,t,e),i.targetObject=t,Dc(t,i,n),i.handled};function Dc(t,e,n){if(e.handled=!1,t===null||t.If()){var i=0;e.left?i=e.clickCount===1?1:e.clickCount===2?2:1:e.right&&e.clickCount===1&&(i=3);var r="ObjectSingleClicked";if(t!==null){switch(i){case 1:r="ObjectSingleClicked";break;case 2:r="ObjectDoubleClicked";break;case 3:r="ObjectContextClicked"}i!==0&&n.R(r,t)}else{switch(i){case 1:r="BackgroundSingleClicked";break;case 2:r="BackgroundDoubleClicked";break;case 3:r="BackgroundContextClicked"}i!==0&&n.R(r)}if(t!==null)for(;t!==null;){switch(n=null,i){case 1:n=t.click;break;case 2:n=t.doubleClick?t.doubleClick:t.click;break;case 3:n=t.contextClick}if(n!==null&&(n(e,t),e.handled))break;t=t.panel}else{switch(t=null,i){case 1:t=n.click;break;case 2:t=n.doubleClick?n.doubleClick:n.click;break;case 3:t=n.contextClick}t!==null&&t(e)}}}Nr.prototype.standardMouseOver=function(){var t=this.diagram,e=t.lastInput;if(t.animationManager.zb!==!0){var n=t.skipsUndoManager;t.skipsUndoManager=!0;var i=t.viewportBounds.ca(e.documentPoint)?t.ic(e.documentPoint,null,null):null;!e.event||e.event.type!=="pointercancel"&&e.event.type!=="pointerout"||(i=null),e.targetObject=i;var r=!1;if(i!==t.Ck){var o=t.Ck,s=o;for(t.Ck=i,this.doCurrentObjectChanged(o,i),e.handled=!1;o!==null;){var l=o.mouseLeave;if(l!==null&&(i===o||i!==null&&i.rg(o)||(l(e,o,i),r=!0,e.handled)))break;o=o.panel}for(o=s,e.handled=!1;i!==null&&(s=i.mouseEnter,!(s!==null&&(o===i||o!==null&&o.rg(i)||(s(e,i,o),r=!0,e.handled))));)i=i.panel;i=t.Ck}if(i!==null){for(o=i,s="";o!==null&&(s=o.cursor,s==="");)o=o.panel;for(t.currentCursor=s,e.handled=!1,o=i;o!==null&&(i=o.mouseOver,!(i!==null&&(i(e,o),r=!0,e.handled)));)o=o.panel}else this.doUpdateCursor(null),i=t.mouseOver,i!==null&&(i(e),r=!0);r&&t.$b(),t.skipsUndoManager=n}},Nr.prototype.doUpdateCursor=function(){var t=this.diagram;t&&(t.currentCursor="")},Nr.prototype.doCurrentObjectChanged=function(){},Nr.prototype.standardMouseWheel=function(){var t=this.diagram,e=t.lastInput,n=e.delta;if(n!==0&&t.documentBounds.w()){var i=t.commandHandler,r=t.toolManager.mouseWheelBehavior;if(i!==null&&(r===lc&&!e.shift||r===ac&&e.control))(0<n?i.canIncreaseZoom():i.canDecreaseZoom())&&(r=t.zoomPoint,t.zoomPoint=e.viewPoint,0<n?i.increaseZoom():i.decreaseZoom(),t.zoomPoint=r),e.bubbles=!1;else if(r===lc&&e.shift||r===ac&&!e.control){i=t.position.copy();var o=e.event;r=o.deltaMode;var s=o.deltaX;o=o.deltaY;var l="pixel";if(s===0&&o===0||e.shift)!e.shift&&t.allowVerticalScroll?(n=3*n*t.scrollVerticalLineChange,t.scroll(l,0<n?"up":"down",Math.abs(n))):e.shift&&t.allowHorizontalScroll&&(n=3*n*t.scrollHorizontalLineChange,t.scroll(l,0<n?"left":"right",Math.abs(n)));else{switch(r){case 0:l="pixel";break;case 1:l="line";break;case 2:l="page"}s!==0&&t.allowHorizontalScroll&&(s*=t.scrollHorizontalLineChange/16,t.scroll(l,0<s?"right":"left",Math.abs(s))),o!==0&&t.allowVerticalScroll&&(o*=t.scrollVerticalLineChange/16,t.scroll(l,0<o?"down":"up",Math.abs(o)))}this.doWheelChange(t,i,e)}}},Nr.prototype.doWheelChange=function(t,e,n){t.position.D(e)&&n.event.wheelDeltaX===0||(n.bubbles=!1)},Nr.prototype.standardWaitAfter=function(t,e){e===void 0&&(e=this.diagram.lastInput),this.cancelWaitAfter();var n=this,i=e.clone(this.yy);this.Zr=Gn(function(){n.doWaitAfter(i)},t)},Nr.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Ft.clearTimeout(this.Zr),this.Zr=-1},Nr.prototype.doWaitAfter=function(){},Nr.prototype.findToolHandleAt=function(t,e){return t=this.diagram.ic(t,function(n){for(;n!==null&&!(n.panel instanceof jr);)n=n.panel;return n}),t===null?null:t.part.category===e?t:null},Nr.prototype.isBeyondDragSize=function(t,e){var n=this.diagram;t===void 0&&(t=n.firstInput.viewPoint),e===void 0&&(e=n.lastInput.viewPoint);var i=n.toolManager.dragSize,r=i.width;return i=i.height,n.firstInput.isTouchEvent&&(r+=6,i+=6),Math.abs(e.x-t.x)>r||Math.abs(e.y-t.y)>i},te.Object.defineProperties(Nr.prototype,{diagram:{get:function(){return this.H},set:function(t){t instanceof ue&&(this.H=t)}},name:{get:function(){return this.xa},set:function(t){this.xa=t}},isEnabled:{get:function(){return this.Jd},set:function(t){this.Jd=t}},isActive:{get:function(){return this.nb},set:function(t){this.nb=t}},transactionResult:{get:function(){return this.wm},set:function(t){this.wm=t}}}),Nr.prototype.startTransaction=Nr.prototype.Ea,Nr.className="Tool";function Bo(){Nr.call(this),this.name="ToolManager",this.hb=new Re,this.ob=new Re,this.Hb=new Re,this.F=this.V=850,this.o=new ni(2,2).ja(),this.Ha=5e3,this.ia=ac,this.u=uc,this.Mp=this.j=null,this.zj=-1}Jn(Bo,Nr),Bo.prototype.initializeStandardTools=function(){},Bo.prototype.updateAdornments=function(t){var e=this.currentToolTip;if(e instanceof jr&&this.Mp===t){var n=e.adornedObject;(t!==null?n.part===t:n===null)?this.showToolTip(e,n):this.hideToolTip()}},Bo.prototype.doMouseDown=function(){var t=this.diagram,e=t.lastInput;if(e.isTouchEvent&&this.gestureBehavior===Bl&&(e.bubbles=!1),e.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Cu){e.bubbles=!0;return}if(this.gestureBehavior===Bl)return;if(t.currentTool.canStartMultiTouch()){t.currentTool.standardPinchZoomStart();return}}for(var n=this.mouseDownTools.length,i=0;i<n;i++){var r=this.mouseDownTools.M(i);if(r.diagram=this.diagram,r.canStart()){t.doFocus(),t.currentTool=r,t.currentTool===r&&(r.isActive||r.doActivate(),r.doMouseDown());return}}t.lastInput.button===1&&(this.mouseWheelBehavior===ac?this.mouseWheelBehavior=lc:this.mouseWheelBehavior===lc&&(this.mouseWheelBehavior=ac)),this.doActivate(),this.standardWaitAfter(this.holdDelay,e)},Bo.prototype.doMouseMove=function(){var t=this.diagram,e=t.lastInput;if(e.isMultiTouch){if(this.gestureBehavior===Cu){e.bubbles=!0;return}if(this.gestureBehavior===Bl)return;if(t.currentTool.canStartMultiTouch()){t.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var n=this.mouseMoveTools.length,i=0;i<n;i++){var r=this.mouseMoveTools.M(i);if(r.diagram=this.diagram,r.canStart()){t.doFocus(),t.currentTool=r,t.currentTool===r&&(r.isActive||r.doActivate(),r.doMouseMove());return}}vh(this,t),t=e.event,t===null||t.type!=="pointermove"&&t.cancelable||(e.bubbles=!0)};function vh(t,e){t.standardMouseOver(),t.isBeyondDragSize()&&t.standardWaitAfter(t.isActive?t.holdDelay:t.hoverDelay,e.lastInput)}Bo.prototype.doCurrentObjectChanged=function(t,e){t=this.currentToolTip,t===null||e!==null&&t instanceof jr&&(e===t||e.rg(t))||this.hideToolTip()},Bo.prototype.doWaitAfter=function(t){var e=this.diagram;e.ta!==null&&(this.doMouseHover(),this.isActive||this.doToolTip(),t.isTouchEvent&&!e.lastInput.handled&&(t=t.copy(),t.button=2,t.buttons=2,e.lastInput=t,e.qu=!0,e.doMouseUp()))},Bo.prototype.doMouseHover=function(){var t=this.diagram,e=t.lastInput;e.targetObject===null&&(e.targetObject=t.ic(e.documentPoint,null,null));var n=e.targetObject;if(n!==null)for(e.handled=!1;n!==null&&(t=this.isActive?n.mouseHold:n.mouseHover,!(t!==null&&(t(e,n),e.handled)));)n=n.panel;else n=this.isActive?t.mouseHold:t.mouseHover,n!==null&&n(e)},Bo.prototype.doToolTip=function(){var t=this.diagram,e=t.lastInput;if(e.targetObject===null&&(e.targetObject=t.ic(e.documentPoint,null,null)),e=e.targetObject,e!==null){if(t=this.currentToolTip,!(t instanceof jr)||e!==t&&!e.rg(t)){for(;e!==null;){if(t=e.toolTip,t!==null){this.showToolTip(t,e);return}e=e.panel}this.hideToolTip()}}else e=t.toolTip,e!==null?this.showToolTip(e,null):this.hideToolTip()},Bo.prototype.showToolTip=function(t,e){var n=this.diagram;if(t!==this.currentToolTip&&this.hideToolTip(),t instanceof jr){t.layerName="Tool",t.selectable=!1,t.scale=1/n.scale,t.category="ToolTip",t.placeholder!==null&&(t.placeholder.scale=n.scale);var i=t.diagram;i!==null&&i!==n&&i.remove(t),n.add(t),e!==null?t.adornedObject=e:t.data=n.model,t.Va(),this.positionToolTip(t,e)}else t instanceof ji&&t!==this.currentToolTip&&t.show(e,n,this);if(this.currentToolTip=t,this.zj!==-1&&(Ft.clearTimeout(this.zj),this.zj=-1),t=this.toolTipDuration,0<t&&t!==1/0){var r=this;this.zj=Gn(function(){r.hideToolTip()},t)}},Bo.prototype.positionToolTip=function(t){if(t.placeholder===null){var e=this.diagram,n=e.lastInput.documentPoint.copy(),i=t.measuredBounds,r=e.viewportBounds;e.lastInput.isTouchEvent&&(n.x-=i.width),n.x+i.width>r.right&&(n.x-=i.width+5/e.scale),n.x<r.x&&(n.x=r.x),n.y=n.y+20/e.scale+i.height>r.bottom?n.y-(i.height+5/e.scale):n.y+20/e.scale,n.y<r.y&&(n.y=r.y),t.position=n}},Bo.prototype.hideToolTip=function(){this.zj!==-1&&(Ft.clearTimeout(this.zj),this.zj=-1);var t=this.diagram,e=this.currentToolTip;e!==null&&(e instanceof jr?(t.remove(e),this.Mp!==null&&this.Mp.Jf(e.category),e.data=null,e.adornedObject=null):e instanceof ji&&e.hide!==null&&e.hide(t,this),this.currentToolTip=null)},Bo.prototype.doMouseUp=function(){this.cancelWaitAfter();var t=this.diagram;if(this.isActive)for(var e=this.mouseUpTools.length,n=0;n<e;n++){var i=this.mouseUpTools.M(n);if(i.diagram=this.diagram,i.canStart()){t.doFocus(),t.currentTool=i,t.currentTool===i&&(i.isActive||i.doActivate(),i.doMouseUp());return}}t.doFocus(),this.doDeactivate()},Bo.prototype.doMouseWheel=function(){this.standardMouseWheel()},Bo.prototype.doKeyDown=function(){var t=this.diagram;t.commandHandler!==null&&t.commandHandler.doKeyDown()},Bo.prototype.doKeyUp=function(){var t=this.diagram;t.commandHandler!==null&&t.commandHandler.doKeyUp()},Bo.prototype.findTool=function(t){for(var e=this.mouseDownTools.length,n=0;n<e;n++){var i=this.mouseDownTools.M(n);if(i.name===t)return i}for(e=this.mouseMoveTools.length,n=0;n<e;n++)if(i=this.mouseMoveTools.M(n),i.name===t)return i;for(e=this.mouseUpTools.length,n=0;n<e;n++)if(i=this.mouseUpTools.M(n),i.name===t)return i;return null},Bo.prototype.replaceTool=function(t,e){e!==null&&(e.diagram=this.diagram);for(var n=this.mouseDownTools.length,i=0;i<n;i++){var r=this.mouseDownTools.M(i);if(r.name===t)return e!==null?this.mouseDownTools.cd(i,e):this.mouseDownTools.mb(i),r}for(n=this.mouseMoveTools.length,i=0;i<n;i++)if(r=this.mouseMoveTools.M(i),r.name===t)return e!==null?this.mouseMoveTools.cd(i,e):this.mouseMoveTools.mb(i),r;for(n=this.mouseUpTools.length,i=0;i<n;i++)if(r=this.mouseUpTools.M(i),r.name===t)return e!==null?this.mouseUpTools.cd(i,e):this.mouseUpTools.mb(i),r;return null},Bo.prototype.gb=function(t,e,n){e!==null&&(e.name=t,e.diagram=this.diagram),this.findTool(t)?this.replaceTool(t,e):e!==null&&n.add(e)},te.Object.defineProperties(Bo.prototype,{mouseWheelBehavior:{get:function(){return this.ia},set:function(t){this.ia=t}},gestureBehavior:{get:function(){return this.u},set:function(t){this.u=t}},currentToolTip:{get:function(){return this.j},set:function(t){this.j=t,this.Mp=t!==null&&t instanceof jr?t.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(t){this.V=t}},holdDelay:{get:function(){return this.F},set:function(t){this.F=t}},dragSize:{get:function(){return this.o},set:function(t){this.o=t.J()}},toolTipDuration:{get:function(){return this.Ha},set:function(t){this.Ha=t}}}),Bo.prototype.replaceStandardTool=Bo.prototype.gb;var ac=new le(Bo,"WheelScroll",0),lc=new le(Bo,"WheelZoom",1),Yc=new le(Bo,"WheelNone",2),uc=new le(Bo,"GestureZoom",3),Bl=new le(Bo,"GestureCancel",4),Cu=new le(Bo,"GestureNone",5);Bo.className="ToolManager",Bo.WheelScroll=ac,Bo.WheelZoom=lc,Bo.WheelNone=Yc,Bo.GestureZoom=uc,Bo.GestureCancel=Bl,Bo.GestureNone=Cu;function Yo(){Nr.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 $(NaN,NaN),this.Fr=new $,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new je().freeze(),this.ia=new c,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var ul;Jn(Yo,Nr),Yo.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;if(t.isReadOnly&&!t.allowDragOut||!t.allowMove&&!t.allowCopy&&!t.allowDragOut||!t.allowSelect)return!1;var e=t.lastInput;return!e.left||t.currentTool!==this&&(!this.isBeyondDragSize()||e.isTouchEvent&&e.timestamp-t.firstInput.timestamp<this.Ik)?!1:this.findDraggablePart()!==null},Yo.prototype.findDraggablePart=function(){var t=this.diagram;if(t=t.Ol(t.firstInput.documentPoint,!1),t===null)return null;for(;t!==null&&!t.canSelect();)t=t.containingGroup;return t!==null&&(t.canMove()||t.canCopy())?t:null},Yo.prototype.standardMouseSelect=function(){var t=this.diagram;if(t.allowSelect){var e=t.Ol(t.firstInput.documentPoint,!1);if(e!==null){for(;e!==null&&!e.canSelect();)e=e.containingGroup;this.currentPart=e,this.currentPart===null||this.currentPart.isSelected||(t.R("ChangingSelection",t.selection),e=t.lastInput,(ir?e.meta:e.control)||e.shift||t.clearSelection(!0),this.currentPart.isSelected=!0,t.R("ChangedSelection",t.selection))}}},Yo.prototype.doActivate=function(){var t=this.diagram;this.Bn=null,this.currentPart===null&&this.standardMouseSelect();var e=this.currentPart;e!==null&&(e.canMove()||e.canCopy())&&(t.Fu(!0),re=null,this.isActive=!0,this.tl.set(t.position),wc(this,t.selection),this.Cg.length=0,t.animationManager.Cc(),this.draggedParts=this.computeEffectiveCollection(t.selection,this.dragOptions),this.Sw=this.diagram.layout.isRealtime,this.diagram.layout.isRealtime=!1,t.Ns=!0,t.Gf("temporaryPixelRatio")===!0&&30<t.$w&&Vs(t),xh(t,this.draggedParts),this.Ea("Drag"),this.startPoint=t.firstInput.documentPoint,t.isMouseCaptured=!0,t.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,re=this,Se=this.diagram,this.doSimulatedDragOut()))};function wc(t,e){if(t.dragsLink){var n=t.diagram;n.allowRelink&&(n.model.Wj()&&e.count===1&&e.first()instanceof pn?(t.draggedLink=e.first(),t.draggedLink.canRelinkFrom()&&t.draggedLink.canRelinkTo()&&t.draggedLink.Ej(),t.Oe=n.toolManager.findTool("Relinking"),t.Oe===null&&(t.Oe=new Hn,t.Oe.diagram=n),t.Oe.originalLink=t.draggedLink):(t.draggedLink=null,t.Oe=null))}}Yo.prototype.computeEffectiveCollection=function(t,e){return this.diagram.commandHandler.computeEffectiveCollection(t,e)},Yo.prototype.Pd=function(t){return t===void 0?new rh(Wi):this.isGridSnapEnabled?new rh(new $(Math.round(1e3*t.x)/1e3,Math.round(1e3*t.y)/1e3)):new rh(t.copy())},Yo.prototype.doDeactivate=function(){this.isActive=!1;var t=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,t.Fu(!1),t.ug(),Bu(this),hu(t,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<ul.count){for(var e=ul,n=e.length,i=0;i<n;i++){var r=e.M(i);Zl(r),cl(r),Bu(r),r.diagram.ug()}e.clear()}Zl(this),this.tl.h(NaN,NaN),Se!==null&&(Se.currentCursor=""),re=Se=null,cl(this),t.isMouseCaptured=!1,t.currentCursor="",t.Ns=!1,this.stopTransaction(),Nl(t,!0)},Yo.prototype.stopTransaction=function(){var t=this.diagram,e=Nr.prototype.stopTransaction.call(this);return e&&t.undoManager.transactionToUndo!==null&&t.undoManager.transactionToUndo.ak(),e};function Bu(t){var e=t.diagram,n=e.skipsUndoManager;e.skipsUndoManager=!0,Cc(t,e.lastInput,null),e.skipsUndoManager=n,t.Cg.length=0}function yh(){var t=re;cl(t),Yl(t);var e=t.diagram;t.tl.w()&&(e.position=t.tl),e.ug()}Yo.prototype.doCancel=function(){cl(this),Yl(this);var t=this.diagram;this.tl.w()&&(t.position=this.tl),this.stopTool()},Yo.prototype.doKeyDown=function(){var t=this.diagram,e=t.lastInput;this.isActive&&(e.key==="Esc"?this.doCancel():e.key!==t.previousInput.key&&this.doMouseMove())},Yo.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function uu(t,e){if(t.copiedParts===null){var n=t.diagram;if((!e||!n.isReadOnly&&!n.isModelReadOnly)&&t.draggedParts!==null){var i=n.undoManager;for(i.isEnabled&&i.isInTransaction?i.currentTransaction!==null&&0<i.currentTransaction.changes.count&&(n.undoManager.Kf(),n.Ea("Drag")):Yl(t),n.skipsUndoManager=!e,n.partManager.addsToTemporaryLayer=!e,t.startPoint=n.firstInput.documentPoint,e=t.copiesEffectiveCollection?t.draggedParts.Lf():n.selection,e=n.Kj(e,n,!0),n=new pt,i=t.draggedParts.iterator;i.next();){var r=i.key;if(r.Zc()&&r.canCopy()){var o=e.I(r);o!==null&&(o.location=r.location,o.Va(),n.add(o,t.Pd(o.location)))}}for(e=e.iterator;e.next();)i=e.value,i instanceof pn&&i.canCopy()&&n.add(i,t.Pd());t.copiedParts=n,wc(t,n.Lf()),t.draggedLink!==null&&(n=t.draggedLink,e=n.routeBounds,Mh(n,t.startPoint.x-(e.x+e.width/2),t.startPoint.y-(e.y+e.height/2))),t.doUpdateCursor(null)}}}function cl(t){var e=t.diagram;if(t.copiedParts!==null){if(e.Is(t.copiedParts.Lf(),!1),t.copiedParts=null,t.draggedParts!==null)for(var n=t.draggedParts.iterator;n.next();)n.key instanceof pn&&(n.value.point=new $(0,0));t.doUpdateCursor(null)}e.skipsUndoManager=!1,e.partManager.addsToTemporaryLayer=!1,t.startPoint=e.firstInput.documentPoint}function Zl(t){if(t.draggedLink!==null){if(t.dragsLink&&t.Oe!==null){var e=t.Oe;e.diagram.remove(e.temporaryFromNode),e.diagram.remove(e.temporaryToNode),t.Oe.originalLink=null}t.draggedLink=null,t.Oe=null}}function El(t,e,n){var i=t.diagram,r=t.startPoint,o=$.alloc();o.assign(i.lastInput.documentPoint),t.moveParts(e,o.re(r),n),$.free(o),i.Gf("temporaryPixelRatio")===!0&&i.Yh===null&&30<i.$w&&(Vs(i),i.hk())}Yo.prototype.moveParts=function(t,e,n){n===void 0&&(n=!1);var i=this.diagram;i!==null&&hl(i,t,e,this.dragOptions,n)};function Yl(t){if(t.draggedParts!==null){for(var e=t.diagram,n=t.draggedParts.iterator;n.next();){var i=n.key;i.Zc()&&(i.location=n.value.point)}for(n=t.draggedParts.iterator;n.next();)if(i=n.key,i instanceof pn&&i.suspendsRouting){var r=n.value.point;t.draggedParts.add(i,t.Pd()),Mh(i,-r.x,-r.y)}e.bd()}}function Eu(t,e){var n=t.diagram;t.dragsLink&&(t.draggedLink!==null&&(t.draggedLink.fromNode=null,t.draggedLink.toNode=null),_s(t,!1));var i=t.findDragOverObject(e),r=n.lastInput;r.targetObject=i,t.doUpdateCursor(i);var o=n.skipsUndoManager,s=!1;try{if(n.skipsUndoManager=!0,s=Cc(t,r,i),!t.isActive&&re===null)return;var l=i!==null?i.part:null;if(l===null||n.handlesDragDropForTopLevelParts&&l.isTopLevel&&!(l instanceof Ki)){var u=n.mouseDragOver;u!==null&&(u(r),s=!0)}if(!t.isActive&&re===null||(t.doDragOver(e,i),!t.isActive&&re===null))return}finally{n.skipsUndoManager=o,s&&n.bd()}t.Bn=i,n.isReadOnly||!n.allowMove&&!n.allowCopy||!n.allowHorizontalScroll&&!n.allowVerticalScroll||n.gs(r.viewPoint)}Yo.prototype.findDragOverObject=function(t){var e=this;return Xt(this.diagram,t,null,function(n){return n===null?n=!0:(n=n.part,n=!!(n===null||n instanceof jr||n.layer.isTemporary||e.draggedParts&&e.draggedParts.contains(n)||e.copiedParts&&e.copiedParts.contains(n))),!n})},Yo.prototype.doUpdateCursor=function(t){var e=this.diagram;(t===null||this.Bn!==t)&&(!this.diagram.currentTool.isActive||this.mayCopy()?e.currentCursor=this.copyCursor:this.mayMove()?e.currentCursor=this.moveCursor:this.mayDragOut()&&(e.currentCursor=this.nodropCursor))};function Cc(t,e,n){var i=!1,r=t.Cg.length,o=0<r?t.Cg[0]:null;if(n===o)return!1;e.handled=!1;for(var s=0;s<r;s++){var l=t.Cg[s],u=l.mouseDragLeave;if(u!==null&&(u(e,l,n),i=!0,e.handled))break}if(t.Cg.length=0,!t.isActive&&re===null||n===null)return i;for(e.handled=!1,r=n;r!==null;)t.Cg.push(r),r=Xc(r);for(r=t.Cg.length,n=0;n<r&&(s=t.Cg[n],l=s.mouseDragEnter,l===null||(l(e,s,o),i=!0,!e.handled));n++);return i}function Xc(t){var e=t.panel;return e!==null?e:t instanceof li&&!(t instanceof Ki)&&(t=t.containingGroup,t!==null&&t.handlesDragDropForMembers)?t:null}function Jc(t,e,n){var i=t.Oe;if(i===null)return null;var r=t.diagram.og(e,i.portGravity,function(d){return i.findValidLinkablePort(d,n)});t=$.alloc();var o=1/0,s=null;for(r=r.iterator;r.next();){var l=r.value;if(l.part!==null){var u=l.ga(Sr,t);u=e.Bf(u),u<o&&(s=l,o=u)}}return $.free(t),s}function _s(t,e){var n=t.draggedLink;if(n!==null&&!(2>n.pointsCount)){var i=t.diagram;if(!i.isReadOnly){var r=t.Oe;if(r!==null){var o=null,s=null;n.fromNode===null&&(o=Jc(t,n.i(0),!1),o!==null&&(s=o.part));var l=null,u=null;n.toNode===null&&(l=Jc(t,n.i(n.pointsCount-1),!0),l!==null&&(u=l.part)),r.isValidLink(s,o,u,l)?e?(n.defaultFromPoint=n.i(0),n.defaultToPoint=n.i(n.pointsCount-1),n.suspendsRouting=!1,n.fromNode=s,o!==null&&(n.fromPortId=o.portId),n.toNode=u,l!==null&&(n.toPortId=l.portId),n.fromPort!==i.Mx&&i.R("LinkRelinked",n,i.Mx),n.toPort!==i.Nx&&i.R("LinkRelinked",n,i.Nx)):Fi(r,s,o,u,l):Fi(r,null,null,null,null)}}}}Yo.prototype.doDragOver=function(){};function cu(t,e){var n=t.diagram;t.dragsLink&&_s(t,!0),Bu(t);var i=t.findDragOverObject(e),r=n.lastInput;if(r.targetObject=i,i!==null){r.handled=!1;for(var o=i;o!==null;){var s=o.mouseDrop;if(s!==null&&(s(r,o),r.handled))break;Qc(t,r,o),o=Xc(o)}}else o=n.mouseDrop,o!==null&&o(r);if(t.isActive||re!==null){for(r=(t.copiedParts||t.draggedParts).iterator;r.next();)o=r.key,o instanceof Rn&&o.linksConnected.each(function(l){l.suspendsRouting=!1});if(t.doDropOnto(e,i),t.isActive||re!==null){for(t=ke.alloc(),e=n.selection.iterator;e.next();)i=e.value,i instanceof Rn&&ht(n,i,t);ke.free(t)}}}function Qc(t,e,n){t=t.diagram,n=n.part,!t.handlesDragDropForTopLevelParts||!n.isTopLevel||n instanceof Ki||(n=t.mouseDrop,n!==null&&n(e))}function ht(t,e,n){var i=!1;if(n=e.getAvoidableRect(n),t.viewportBounds.Re(n)&&(i=!0),t=t.Nu(n,function(r){return r.part},function(r){return r instanceof pn},!0,function(r){return r instanceof pn},i),t.count!==0)for(t=t.iterator;t.next();)n=t.value,!n.Td(e)&&n.isAvoiding&&n.bb()}Yo.prototype.doDropOnto=function(){},Yo.prototype.doMouseMove=function(){if(this.isActive){var t=this.diagram,e=t.lastInput;this.simulatedMouseMove(e.event,e.documentPoint,e.targetDiagram)||this.currentPart===null||this.draggedParts===null||(this.mayCopy()?(uu(this,!1),xh(t,this.copiedParts),El(this,this.copiedParts,!1),hu(t,this.copiedParts)):this.mayMove()?(cl(this),El(this,this.draggedParts,!0)):this.mayDragOut()?(uu(this,!1),El(this,this.copiedParts,!1)):cl(this),Eu(this,t.lastInput.documentPoint))}},Yo.prototype.doMouseUp=function(){if(this.isActive){var t=this.diagram,e=t.lastInput;if(!this.simulatedMouseUp(e.event,e.documentPoint,e.targetDiagram)){e=!1;var n=this.mayCopy();if(n&&this.copiedParts!==null?(cl(this),uu(this,!0),xh(t,this.copiedParts),El(this,this.copiedParts,!1),hu(t,this.copiedParts),this.copiedParts!==null&&(t.R("ChangingSelection",t.selection),t.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(r){r.isSelected=!0}))):(e=!0,cl(this),this.mayMove()&&(El(this,this.draggedParts,!0),Eu(this,t.lastInput.documentPoint))),this.Ym=!0,cu(this,t.lastInput.documentPoint),this.isActive){var i=n?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,e&&mt(this),t.Ya(),hu(t,this.draggedParts),this.transactionResult=n?"Copy":"Move",t.R(n?"SelectionCopied":"SelectionMoved",i)}this.stopTool(),n&&t.R("ChangedSelection",t.selection)}}},Yo.prototype.simulatedMouseMove=function(t,e,n){if(re===null)return!1;var i=re.diagram;n instanceof ue||(n=null);var r=Se;return n!==r&&(r!==null&&r!==i&&(r.ug(),re.isDragOutStarted=!1,r=r.toolManager.findTool("Dragging"),r!==null&&r.doSimulatedDragLeave()),Se=n,n!==null&&n!==i&&(yh(),r=n.toolManager.findTool("Dragging"),r!==null&&(ul.contains(r)||ul.add(r),r.doSimulatedDragEnter())),this.doUpdateCursor(null)),n===null||n===i||!n.allowDrop||n.isReadOnly||!n.allowInsert?!1:(i=n.toolManager.findTool("Dragging"),i!==null&&(t!==null&&(t.targetTouches!==void 0&&(0<t.targetTouches.length?t=t.targetTouches[0]:0<t.changedTouches.length&&(t=t.changedTouches[0])),e=n.getMouse(t)),n.lastInput.documentPoint=e,n.lastInput.viewPoint=n.op(e),n.lastInput.down=!1,n.lastInput.up=!1,i.doSimulatedDragOver()),!0)},Yo.prototype.simulatedMouseUp=function(t,e,n){if(re===null)return!1;var i=Se,r=re.diagram;if(n===null)return re.doCancel(),!0;if(n!==i){var o=i.toolManager.findTool("Dragging");if(i!==null&&i!==r&&o!==null)return i.ug(),re.isDragOutStarted=!1,o.doSimulatedDragLeave(),!1;Se=n,i=n.toolManager.findTool("Dragging"),i!==null&&(yh(),ul.contains(i)||ul.add(i),i.doSimulatedDragEnter())}return n!==this.diagram?(t!==null?(t.targetTouches!==void 0&&(0<t.targetTouches.length?t=t.targetTouches[0]:0<t.changedTouches.length&&(t=t.changedTouches[0])),e=n.getMouse(t)):e===null&&(e=new $),n.lastInput.documentPoint=e,n.lastInput.viewPoint=n.op(e),n.lastInput.down=!1,n.lastInput.up=!0,t=n.toolManager.findTool("Dragging"),t!==null&&t.doSimulatedDrop(),t=re,t!==null&&(n=t.mayCopy(),t.transactionResult=n?"Copy":"Move",t.stopTool()),!0):!1};function mt(t){if(t.draggedParts!==null)for(var e=t.draggedParts.iterator;e.next();){var n=e.key;n instanceof Rn&&(n=n.containingGroup,n===null||n.placeholder===null||t.draggedParts.contains(n)||n.placeholder.v())}}Yo.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var t=this.diagram;if(t.isReadOnly||t.isModelReadOnly||!t.allowInsert||!t.allowCopy||(ir?!t.lastInput.alt:!t.lastInput.control))return!1;for(t=t.selection.iterator;t.next();)if(t.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},Yo.prototype.mayDragOut=function(){if(!this.isCopyEnabled)return!1;var t=this.diagram;if(!t.allowDragOut||!t.allowCopy||t.allowMove)return!1;for(t=t.selection.iterator;t.next();)if(t.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},Yo.prototype.mayMove=function(){var t=this.diagram;if(t.isReadOnly||!t.allowMove)return!1;for(t=t.selection.iterator;t.next();)if(t.value.canMove())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canMove())},Yo.prototype.computeBorder=function(t,e,n){return this.Ym||this.draggedParts===null||this.draggedParts.contains(t)?null:n.assign(e)},Yo.prototype.Az=function(){return re},Yo.prototype.mayDragIn=function(){var t=this.diagram;if(!t.allowDrop||t.isReadOnly||t.isModelReadOnly||!t.allowInsert)return!1;var e=re;return!(e===null||e.diagram.model.dataFormat!==t.model.dataFormat)},Yo.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var t=this.diagram;t.animationManager.Cc(),jo(t),t.animationManager.Cc(),t=re,t!==null&&(t.diagram.Ns=!1),this.doUpdateCursor(null)}},Yo.prototype.doSimulatedDragLeave=function(){var t=re;t!==null&&t.doSimulatedDragOut(),this.doCancel()},Yo.prototype.doSimulatedDragOver=function(){var t=this.diagram;t.animationManager.Dm=!0;var e=re;if(e!==null&&e.draggedParts!==null){if(!this.mayDragIn())return;ee(this,e.draggedParts.Lf(),!1,t.firstInput),El(this,this.copiedParts,!1),Eu(this,t.lastInput.documentPoint)}t.animationManager.Dm=!1},Yo.prototype.doSimulatedDrop=function(){var t=this.diagram,e=re;if(e!==null){var n=e.diagram;if(e.Ym=!0,cl(this),!this.mayDragIn())return;t.animationManager.Dm=!0,t.R("ChangingSelection",t.selection),this.Ea("Drop"),ee(this,e.draggedParts.Lf(),!0,t.lastInput),El(this,this.copiedParts,!1);var i=new je;this.copiedParts!==null&&(t.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(r){r.isSelected=!0,i.add(r)})),cu(this,t.lastInput.documentPoint),t.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,t.doFocus(),t.R("ExternalObjectsDropped",i,n),this.stopTransaction(),t.R("ChangedSelection",t.selection)}t.animationManager.Dm=!1};function ee(t,e,n,i){if(t.copiedParts===null){var r=t.diagram;if(!r.isReadOnly&&!r.isModelReadOnly){r.skipsUndoManager=!n,r.partManager.addsToTemporaryLayer=!n,t.startPoint=i.documentPoint,n=r.Kj(e,r,!0);var o=ke.alloc();r=i=1/0;for(var s=-1/0,l=-1/0,u=e.iterator;u.next();){var d=u.value;if(d.isVisible()){var p=d.location;d=p.x,p=p.y,isNaN(d)||isNaN(p)||(d<i&&(i=d),p<r&&(r=p),d>s&&(s=d),p>l&&(l=p))}}for(i===1/0?o.h(0,0,0,0):o.h(i,r,s-i,l-r),i=o.x+o.width/2,r=o.y+o.height/2,ke.free(o),o=t.Fr,s=new pt,l=$.alloc(),u=e.iterator;u.next();)d=u.value,d instanceof pn&&d.canCopy()&&(p=n.I(d),p!==null&&(p.points=d.points,Mh(p,o.x-i,o.y-r),p.suspendsRouting=!0,s.add(p,t.Pd())));for(e=e.iterator;e.next();)d=e.value,d.Zc()&&d.canCopy()&&(u=n.I(d),u!==null&&(d=d.location,l.h(o.x-(i-d.x),o.y-(r-d.y)),u.location=l,u.Va(),s.add(u,t.Pd(l))));$.free(l),t.copiedParts=s,wc(t,s.Lf()),t.draggedLink!==null&&(n=t.draggedLink,e=n.routeBounds,Mh(n,t.startPoint.x-(e.x+e.width/2),t.startPoint.y-(e.y+e.height/2))),t.doUpdateCursor(null)}}}Yo.prototype.doSimulatedDragOut=function(){var t=this.diagram;t.Ns=!1,this.mayCopy()||this.mayMove()?t.currentCursor="":t.currentCursor=this.nodropCursor,this.Bn=null},Yo.prototype.computeMove=function(t,e,n,i){return n=this.diagram,n!==null?n.computeMove(t,e,this.dragOptions,i):new $},te.Object.defineProperties(Yo.prototype,{isCopyEnabled:{get:function(){return this.ob},set:function(t){this.ob=t}},copiesEffectiveCollection:{get:function(){return this.u},set:function(t){this.u=t}},dragOptions:{get:function(){return this.ia},set:function(t){this.ia=t}},isGridSnapEnabled:{get:function(){return this.dragOptions.isGridSnapEnabled},set:function(t){this.dragOptions.isGridSnapEnabled=t}},isComplexRoutingRealtime:{get:function(){return this.hb},set:function(t){this.hb=t}},isGridSnapRealtime:{get:function(){return this.dragOptions.isGridSnapRealtime},set:function(t){this.dragOptions.isGridSnapRealtime=t}},gridSnapCellSize:{get:function(){return this.dragOptions.gridSnapCellSize},set:function(t){this.dragOptions.gridSnapCellSize.D(t)||(t=t.J(),this.dragOptions.gridSnapCellSize=t)}},gridSnapCellSpot:{get:function(){return this.dragOptions.gridSnapCellSpot},set:function(t){this.dragOptions.gridSnapCellSpot.D(t)||(t=t.J(),this.dragOptions.gridSnapCellSpot=t)}},gridSnapOrigin:{get:function(){return this.dragOptions.gridSnapOrigin},set:function(t){this.dragOptions.gridSnapOrigin.D(t)||(t=t.J(),this.dragOptions.gridSnapOrigin=t)}},dragsLink:{get:function(){return this.dragOptions.dragsLink},set:function(t){this.dragOptions.dragsLink=t}},dragsTree:{get:function(){return this.dragOptions.dragsTree},set:function(t){this.dragOptions.dragsTree=t}},copyCursor:{get:function(){return this.F},set:function(t){this.F=t}},moveCursor:{get:function(){return this.Oc},set:function(t){this.Oc=t}},nodropCursor:{get:function(){return this.Pc},set:function(t){this.Pc=t}},currentPart:{get:function(){return this.V},set:function(t){this.V=t}},copiedParts:{get:function(){return this.o},set:function(t){this.o=t}},draggedParts:{get:function(){return this.Ha},set:function(t){this.Ha=t}},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(t){this.diagram.draggedLink=t}},isDragOutStarted:{get:function(){return this.Hb},set:function(t){this.Hb=t}},startPoint:{get:function(){return this.Fr},set:function(t){this.Fr.D(t)||this.Fr.assign(t)}},delay:{get:function(){return this.Ik},set:function(t){this.Ik=t}}}),Yo.prototype.getDraggingSource=Yo.prototype.Az;var re=null,Se=null;Yo.className="DraggingTool",ul=new Re,di("draggingTool",function(){return this.findTool("Dragging")},function(t){this.gb("Dragging",t,this.mouseMoveTools)}),Bo.prototype.doCancel=function(){re!==null&&re.doCancel(),Nr.prototype.doCancel.call(this)};function me(){Nr.call(this),this.te=100,this.Ha=!1,this.u="pointer";var t=new pn,e=new Qi;e.isPanelMain=!0,e.stroke="blue",t.add(e),e=new Qi,e.toArrow="Standard",e.fill="blue",e.stroke="blue",t.add(e),t.layerName="Tool",this.Ci=t,t=new Rn,e=new Qi,e.portId="",e.figure="Rectangle",e.fill=null,e.stroke="magenta",e.strokeWidth=2,e.desiredSize=Is,t.add(e),t.selectable=!1,t.layerName="Tool",this.Bi=t,this.j=e,t=new Rn,e=new Qi,e.portId="",e.figure="Rectangle",e.fill=null,e.stroke="magenta",e.strokeWidth=2,e.desiredSize=Is,t.add(e),t.selectable=!1,t.layerName="Tool",this.Di=t,this.o=e,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new pt,this.Of=this.gj=this.Pf=null}Jn(me,Nr),me.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},me.prototype.copyPortProperties=function(t,e,n,i,r){if(t!==null&&e!==null&&n!==null&&i!==null){var o=e.Df(),s=ni.alloc();s.width=e.naturalBounds.width*o,s.height=e.naturalBounds.height*o,i.desiredSize=s,ni.free(s),r?(i.toSpot=e.toSpot,i.toEndSegmentLength=e.toEndSegmentLength):(i.fromSpot=e.fromSpot,i.fromEndSegmentLength=e.fromEndSegmentLength),n.locationSpot=Sr,o=$.alloc(),n.location=e.ga(Sr,o),$.free(o),i.angle=e.li(),this.portTargeted!==null&&this.portTargeted(t,e,n,i,r)}},me.prototype.setNoTargetPortProperties=function(t,e,n){e!==null&&(e.desiredSize=Is,e.fromSpot=us,e.toSpot=us),t!==null&&(t.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,t,e,n)},me.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},me.prototype.doMouseMove=function(){if(this.isActive){var t=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof Rn){var e=this.targetPort.part;this.isForwards?this.copyPortProperties(e,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(e,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(t.allowHorizontalScroll||t.allowVerticalScroll)&&t.gs(t.lastInput.viewPoint)}},me.prototype.findValidLinkablePort=function(t,e){if(t===null)return null;var n=t.part;if(!(n instanceof Rn))return null;for(;t!==null;){var i=e?t.toLinkable:t.fromLinkable;if(i===!0&&(t.portId!==null||t instanceof Rn)&&(e?this.isValidTo(n,t):this.isValidFrom(n,t)))return t;if(i===!1)break;t=t.panel}return null},me.prototype.findTargetPort=function(t){var e=this.diagram,n=e.lastInput.documentPoint,i=this.portGravity;0>=i&&(i=.1);var r=this,o=e.og(n,i,function(v){return r.findValidLinkablePort(v,t)},null,!0);for(i=1/0,e=null,o=o.iterator;o.next();){var s=o.value,l=s.part;if(l instanceof Rn){var u=s.ga(Sr,$.alloc()),d=n.x-u.x,p=n.y-u.y;$.free(u),u=d*d+p*p,u<i&&(d=this.validPortsCache.I(s),d!==null?d&&(e=s,i=u):t&&this.isValidLink(this.originalFromNode,this.originalFromPort,l,s)||!t&&this.isValidLink(l,s,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(s,!0),e=s,i=u):this.validPortsCache.add(s,!1))}}return e!==null&&(n=e.part,n instanceof Rn&&(n.layer===null||n.layer.allowLink))?e:null},me.prototype.isValidFrom=function(t,e){if(t===null||e===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(t.layer!==null&&!t.layer.allowLink||e.fromLinkable!==!0))return!1;var n=e.fromMaxLinks;if(1/0>n){if(this.originalLink!==null&&t===this.originalFromNode&&e===this.originalFromPort)return!0;if(e=e.portId,e===null&&(e=""),t.Mo(e).count>=n)return!1}return!0},me.prototype.isValidTo=function(t,e){if(t===null||e===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(t.layer!==null&&!t.layer.allowLink||e.toLinkable!==!0))return!1;var n=e.toMaxLinks;if(1/0>n){if(this.originalLink!==null&&t===this.originalToNode&&e===this.originalToPort)return!0;if(e=e.portId,e===null&&(e=""),t.Sd(e).count>=n)return!1}return!0},me.prototype.isInSameNode=function(t,e){return t===null||e===null?!1:t===e?!0:(t=t.part,e=e.part,t!==null&&t===e)},me.prototype.isLinked=function(t,e){if(t===null||e===null)return!1;var n=t.part;if(!(n instanceof Rn))return!1;t=t.portId,t===null&&(t="");var i=e.part;if(!(i instanceof Rn))return!1;for(e=e.portId,e===null&&(e=""),e=i.Sd(e);e.next();)if(i=e.value,i.fromNode===n&&i.fromPortId===t)return!0;return!1},me.prototype.isValidLink=function(t,e,n,i){if(!this.isValidFrom(t,e)||!this.isValidTo(n,i)||!(e===null||i===null||(e.fromLinkableSelfNode&&i.toLinkableSelfNode||!this.isInSameNode(e,i))&&(e.fromLinkableDuplicates&&i.toLinkableDuplicates||!this.isLinked(e,i)))||this.originalLink!==null&&(t!==null&&this.isLabelDependentOnLink(t,this.originalLink)||n!==null&&this.isLabelDependentOnLink(n,this.originalLink))||t!==null&&n!==null&&(t.data===null&&n.data!==null||t.data!==null&&n.data===null)||!this.isValidCycle(t,n,this.originalLink))return!1;if(t!==null){var r=t.linkValidation;if(r!==null&&!r(t,e,n,i,this.originalLink))return!1}return n!==null&&(r=n.linkValidation,r!==null&&!r(t,e,n,i,this.originalLink))?!1:(r=this.linkValidation,r!==null?r(t,e,n,i,this.originalLink):!0)},me.prototype.isLabelDependentOnLink=function(t,e){if(t===null)return!1;var n=t.labeledLink;if(n===null)return!1;if(n===e)return!0;var i=new je;return i.add(t),Ye(this,n,e,i)};function Ye(t,e,n,i){if(e===n)return!0;var r=e.fromNode;return r!==null&&r.isLinkLabel&&(i.add(r),Ye(t,r.labeledLink,n,i))?!0:(e=e.toNode,!!(e!==null&&e.isLinkLabel&&(i.add(e),Ye(t,e.labeledLink,n,i))))}me.prototype.isValidCycle=function(t,e,n){if(n===void 0&&(n=null),t===null||e===null)return this.isUnconnectedLinkValid;var i=this.diagram.validCycle;if(i!==Gd){if(i===ff){if(i=n||this.temporaryLink,i!==null&&!i.isTreeLink)return!0;for(i=e.linksConnected;i.next();){var r=i.value;if(r!==n&&r.isTreeLink&&r.toNode===e)return!1}return!Ze(this,t,e,n,!0)}if(i===mf){if(i=n||this.temporaryLink,i!==null&&!i.isTreeLink)return!0;for(i=t.linksConnected;i.next();)if(r=i.value,r!==n&&r.isTreeLink&&r.fromNode===t)return!1;return!Ze(this,t,e,n,!0)}if(i===hf)return t===e?t=!0:(i=new je,i.add(e),t=_e(this,i,t,e,n)),!t;if(i===df)return!Ze(this,t,e,n,!1);if(i===pf)return t===e?t=!0:(i=new je,i.add(e),t=wn(this,i,t,e,n)),!t}return!0};function Ze(t,e,n,i,r){if(e===n)return!0;if(e===null||n===null)return!1;for(var o=e.linksConnected;o.next();){var s=o.value;if(s!==i&&(!r||s.isTreeLink)&&s.toNode===e&&(s=s.fromNode,s!==e&&Ze(t,s,n,i,r)))return!0}return!1}function _e(t,e,n,i,r){if(n===i)return!0;if(n===null||i===null||e.contains(n))return!1;e.add(n);for(var o=n.linksConnected;o.next();){var s=o.value;if(s!==r&&s.toNode===n&&(s=s.fromNode,s!==n&&_e(t,e,s,i,r)))return!0}return!1}function wn(t,e,n,i,r){if(n===i)return!0;if(n===null||i===null||e.contains(n))return!1;e.add(n);for(var o=n.linksConnected;o.next();){var s=o.value;if(s!==r){var l=s.fromNode;if(s=s.toNode,l=l===n?s:l,l!==n&&wn(t,e,l,i,r))return!0}}return!1}te.Object.defineProperties(me.prototype,{portGravity:{get:function(){return this.te},set:function(t){0<=t&&(this.te=t)}},isUnconnectedLinkValid:{get:function(){return this.Ha},set:function(t){this.Ha=t}},linkingCursor:{get:function(){return this.u},set:function(t){this.u=t}},temporaryLink:{get:function(){return this.Ci},set:function(t){this.Ci=t}},temporaryFromNode:{get:function(){return this.Bi},set:function(t){(this.Bi=t)&&(this.j=t.port)}},temporaryFromPort:{get:function(){return this.j},set:function(t){if(this.j!==null){var e=this.j.panel;if(e!==null){var n=e.O.indexOf(this.j);e.mb(n),e.Gb(n,t)}}this.j=t}},temporaryToNode:{get:function(){return this.Di},set:function(t){(this.Di=t)&&(this.o=t.port)}},temporaryToPort:{get:function(){return this.o},set:function(t){if(this.o!==null){var e=this.o.panel;if(e!==null){var n=e.O.indexOf(this.o);e.mb(n),e.Gb(n,t)}}this.o=t}},originalLink:{get:function(){return this.Hb},set:function(t){this.Hb=t}},originalFromNode:{get:function(){return this.hb},set:function(t){this.hb=t}},originalFromPort:{get:function(){return this.ob},set:function(t){this.ob=t}},originalToNode:{get:function(){return this.Oc},set:function(t){this.Oc=t}},originalToPort:{get:function(){return this.Pc},set:function(t){this.Pc=t}},isForwards:{get:function(){return this.ia},set:function(t){this.ia=t}},validPortsCache:{get:function(){return this.hy}},targetPort:{get:function(){return this.Pf},set:function(t){this.Pf=t}},linkValidation:{get:function(){return this.gj},set:function(t){this.gj=t}},portTargeted:{get:function(){return this.Of},set:function(t){this.Of=t}}}),me.className="LinkingBaseTool";function An(){me.call(this),this.name="Linking",this.V={},this.F=null,this.K=Tn,this.Xd=null}Jn(An,me),An.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;return t.isReadOnly||t.isModelReadOnly||!t.allowLink||!t.model.xs()||!t.lastInput.left||t.currentTool!==this&&!this.isBeyondDragSize()?!1:this.findLinkablePort()!==null},An.prototype.findLinkablePort=function(){var t=this.diagram,e=this.startObject;if(e===null&&(e=t.ic(t.firstInput.documentPoint,null,null)),e===null||(t=e.part,!(t instanceof Rn)))return null;var n=this.direction;if(n===Tn||n===ii){var i=this.findValidLinkablePort(e,!1);if(i!==null||this.startObject===t&&(i=t.port,this.findValidLinkablePort(i,!1)))return this.isForwards=!0,i}return(n===Tn||n===Vn)&&(e=this.findValidLinkablePort(e,!0),e!==null||this.startObject===t&&(e=t.port,this.findValidLinkablePort(e,!0)))?(this.isForwards=!1,e):null},An.prototype.doActivate=function(){var t=this.diagram,e=this.findLinkablePort();e===null?this.stopTool():(this.Ea(this.name),t.isMouseCaptured=!0,t.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=t.lastInput.documentPoint),this.originalFromPort=e,e=this.originalFromPort.part,e instanceof Rn&&(this.originalFromNode=e),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(this.temporaryFromNode!==null&&(this.temporaryFromNode.location=t.lastInput.documentPoint),this.originalToPort=e,e=this.originalToPort.part,e instanceof Rn&&(this.originalToNode=e),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),t.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),t.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(),t.add(this.temporaryLink)),this.isActive=!0)},An.prototype.doDeactivate=function(){this.isActive=!1;var t=this.diagram;t.remove(this.temporaryLink),t.remove(this.temporaryFromNode),t.remove(this.temporaryToNode),t.isMouseCaptured=!1,t.currentCursor="",this.stopTransaction()},An.prototype.doStop=function(){me.prototype.doStop.call(this),this.startObject=null},An.prototype.doMouseUp=function(){if(this.isActive){var t=this.diagram,e=this.transactionResult=null,n=null,i=null,r=null,o=null;try{var s=this.targetPort=this.findTargetPort(this.isForwards);if(s!==null){var l=s.part;l instanceof Rn&&(this.isForwards?(this.originalFromNode!==null&&(e=this.originalFromNode,n=this.originalFromPort),i=l,r=s):(e=l,n=s,this.originalToNode!==null&&(i=this.originalToNode,r=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(e=this.originalFromNode,n=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(i=this.originalToNode,r=this.originalToPort);e!==null||i!==null?(o=this.insertLink(e,n,i,r),o!==null?(s===null&&(this.isForwards?o.defaultToPoint=t.lastInput.documentPoint:o.defaultFromPoint=t.lastInput.documentPoint),t.allowSelect&&(t.R("ChangingSelection",t.selection),t.clearSelection(!0),o.isSelected=!0),this.transactionResult=this.name,t.R("LinkDrawn",o)):this.doNoLink(e,n,i,r)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),o&&t.allowSelect&&t.R("ChangedSelection",t.selection)}}},An.prototype.isNewTreeLink=function(){var t=this.archetypeLinkData;if(t===null)return!0;if(t instanceof pn)return t.isTreeLink;var e=this.diagram;return e===null?!0:(t=e.partManager.getLinkCategoryForData(t),e=e.partManager.findLinkTemplateForCategory(t),e!==null?e.isTreeLink:!0)},An.prototype.insertLink=function(t,e,n,i){return this.diagram.partManager.insertLink(t,e,n,i)},An.prototype.doNoLink=function(){},te.Object.defineProperties(An.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(t){this.V=t}},archetypeLabelNodeData:{get:function(){return this.F},set:function(t){this.F=t}},direction:{get:function(){return this.K},set:function(t){this.K=t}},startObject:{get:function(){return this.Xd},set:function(t){this.Xd=t}}});var Tn=new le(An,"Either",0),ii=new le(An,"ForwardsOnly",0),Vn=new le(An,"BackwardsOnly",0);An.className="LinkingTool",An.Either=Tn,An.ForwardsOnly=ii,An.BackwardsOnly=Vn;function Hn(){me.call(this),this.name="Relinking";var t=new Qi;t.figure="Diamond",t.desiredSize=Us,t.fill="lightblue",t.stroke="dodgerblue",t.cursor=this.linkingCursor,t.segmentIndex=0,this.V=t,t=new Qi,t.figure="Diamond",t.desiredSize=Us,t.fill="lightblue",t.stroke="dodgerblue",t.cursor=this.linkingCursor,t.segmentIndex=-1,this.Xd=t,this.F=null,this.Ew=new ke}Jn(Hn,me),Hn.prototype.updateAdornments=function(t){if(t!==null&&t instanceof pn){var e="RelinkFrom",n=null;if(t.isSelected&&!this.diagram.isReadOnly){var i=t.selectionObject;i!==null&&t.canRelinkFrom()&&t.actualBounds.w()&&t.isVisible()&&i.actualBounds.w()&&i.Ed()&&(n=t.Pj(e),n===null&&(n=this.makeAdornment(i,!1),t.bh(e,n)))}n===null&&t.Jf(e),e="RelinkTo",n=null,t.isSelected&&!this.diagram.isReadOnly&&(i=t.selectionObject,i!==null&&t.canRelinkTo()&&t.actualBounds.w()&&t.isVisible()&&i.actualBounds.w()&&i.Ed()&&(n=t.Pj(e),n===null?(n=this.makeAdornment(i,!0),t.bh(e,n)):n.v())),n===null&&t.Jf(e)}},Hn.prototype.makeAdornment=function(t,e){var n=new jr;return n.type=sn.Link,e=e?this.toHandleArchetype:this.fromHandleArchetype,e!==null&&n.add(e.copy()),n.adornedObject=t,n},Hn.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;if(t.isReadOnly||t.isModelReadOnly||!t.allowRelink||!t.model.xs()||!t.lastInput.left)return!1;var e=this.findToolHandleAt(t.firstInput.documentPoint,"RelinkFrom");return e===null&&(e=this.findToolHandleAt(t.firstInput.documentPoint,"RelinkTo")),e!==null},Hn.prototype.doActivate=function(){var t=this.diagram;if(this.originalLink===null){var e=this.handle;if(e===null&&(e=this.findToolHandleAt(t.firstInput.documentPoint,"RelinkFrom"),e===null&&(e=this.findToolHandleAt(t.firstInput.documentPoint,"RelinkTo"))),e===null)return;var n=e.part;if(!(n instanceof jr&&n.adornedPart instanceof pn))return;this.handle=e,this.isForwards=n===null||n.category==="RelinkTo",this.originalLink=n.adornedPart}this.Ea(this.name),t.isMouseCaptured=!0,t.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=Ps),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=Ps),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),t.add(this.temporaryFromNode),t.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(),t.add(this.temporaryLink)),this.isActive=!0},Hn.prototype.copyLinkProperties=function(t,e){if(t!==null&&e!==null){e.adjusting=t.adjusting,e.corner=t.corner;var n=t.curve;(n===$p||n===Oh)&&(n=gl),e.curve=n,e.curviness=t.curviness,e.isTreeLink=t.isTreeLink,e.points=t.points,e.routing=t.routing,e.smoothness=t.smoothness,e.fromSpot=t.fromSpot,e.fromEndSegmentLength=t.fromEndSegmentLength,e.fromShortLength=t.fromShortLength,e.toSpot=t.toSpot,e.toEndSegmentLength=t.toEndSegmentLength,e.toShortLength=t.toShortLength}},Hn.prototype.doDeactivate=function(){this.isActive=!1;var t=this.diagram;t.remove(this.temporaryLink),t.remove(this.temporaryFromNode),t.remove(this.temporaryToNode),t.isMouseCaptured=!1,t.currentCursor="",this.stopTransaction()},Hn.prototype.doStop=function(){me.prototype.doStop.call(this),this.handle=null},Hn.prototype.doMouseUp=function(){if(this.isActive){var t=this.diagram;this.transactionResult=null;var e=this.originalFromNode,n=this.originalFromPort,i=this.originalToNode,r=this.originalToPort,o=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var s=this.targetPort.part;s instanceof Rn&&(this.isForwards?(i=s,r=this.targetPort):(e=s,n=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?r=i=null:n=e=null:o=null;o!==null?(this.reconnectLink(o,this.isForwards?i:e,this.isForwards?r:n,this.isForwards),this.targetPort===null&&(this.isForwards?o.defaultToPoint=t.lastInput.documentPoint:o.defaultFromPoint=t.lastInput.documentPoint,o.bb()),this.transactionResult=this.name,t.R("LinkRelinked",o,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.Xo(this.Ew)}finally{this.stopTool()}}},Hn.prototype.reconnectLink=function(t,e,n,i){return n=n!==null&&n.portId!==null?n.portId:"",i?(t.toNode=e,t.toPortId=n):(t.fromNode=e,t.fromPortId=n),!0},Hn.prototype.doNoRelink=function(){};function Fi(t,e,n,i,r){e!==null?(t.copyPortProperties(e,n,t.temporaryFromNode,t.temporaryFromPort,!1),t.diagram.add(t.temporaryFromNode)):t.diagram.remove(t.temporaryFromNode),i!==null?(t.copyPortProperties(i,r,t.temporaryToNode,t.temporaryToPort,!0),t.diagram.add(t.temporaryToNode)):t.diagram.remove(t.temporaryToNode)}te.Object.defineProperties(Hn.prototype,{fromHandleArchetype:{get:function(){return this.V},set:function(t){this.V=t}},toHandleArchetype:{get:function(){return this.Xd},set:function(t){this.Xd=t}},handle:{get:function(){return this.F},set:function(t){if(t!==null&&!(t.part instanceof jr))throw Error("new handle is not in an Adornment: "+t);this.F=t}}}),Hn.className="RelinkingTool",di("linkingTool",function(){return this.findTool("Linking")},function(t){this.gb("Linking",t,this.mouseMoveTools)}),di("relinkingTool",function(){return this.findTool("Relinking")},function(t){this.gb("Relinking",t,this.mouseDownTools)});function Zn(){Nr.call(this),this.name="LinkReshaping";var t=new Qi;t.figure="Rectangle",t.desiredSize=Js,t.fill="lightblue",t.stroke="dodgerblue",this.o=t,t=new Qi,t.figure="Diamond",t.desiredSize=Us,t.fill="lightblue",t.stroke="dodgerblue",t.cursor="move",this.u=t,this.F=3,this.Ts=this.j=null,this.Fw=new $,this.Yq=new Re}Jn(Zn,Nr),Zn.prototype.Ru=function(t){return t&&t.reshapingBehavior.value!==0?t.reshapingBehavior:wi},Zn.prototype.om=function(t,e){t.reshapingBehavior=e},Zn.prototype.updateAdornments=function(t){if(t!==null&&t instanceof pn){var e=null;if(t.isSelected&&!this.diagram.isReadOnly){var n=t.path;n!==null&&t.canReshape()&&t.actualBounds.w()&&t.isVisible()&&n.actualBounds.w()&&n.Ed()&&(e=t.Pj(this.name),e===null||e.Aw!==t.pointsCount||e.Uw!==t.resegmentable)&&(e=this.makeAdornment(n),e!==null&&(e.Aw=t.pointsCount,e.Uw=t.resegmentable,t.bh(this.name,e)))}e===null&&t.Jf(this.name)}},Zn.prototype.makeAdornment=function(t){var e=t.part,n=e.pointsCount,i=e.isOrthogonal,r=null;if(e.points!==null&&1<n){r=new jr,r.type=sn.Link,n=e.firstPickIndex;var o=e.lastPickIndex,s=i?1:0;if(e.resegmentable&&e.computeCurve()!==yu)for(var l=n+s;l<o-s;l++){var u=this.makeResegmentHandle(t,l);u!==null&&(u.segmentIndex=l,u.segmentFraction=.5,u.fromMaxLinks=999,r.add(u))}for(s=n+1;s<o;s++)if(l=this.makeHandle(t,s),l!==null){if(l.segmentIndex=s,s!==n)if(s===n+1&&i){u=e.i(n);var d=e.i(n+1);Vt.B(u.x,d.x)&&Vt.B(u.y,d.y)&&(d=e.i(n-1)),Vt.B(u.x,d.x)?(this.om(l,pr),l.cursor="n-resize"):Vt.B(u.y,d.y)&&(this.om(l,_i),l.cursor="w-resize")}else s===o-1&&i?(u=e.i(o-1),d=e.i(o),Vt.B(u.x,d.x)&&Vt.B(u.y,d.y)&&(u=e.i(o+1)),Vt.B(u.x,d.x)?(this.om(l,pr),l.cursor="n-resize"):Vt.B(u.y,d.y)&&(this.om(l,_i),l.cursor="w-resize")):s!==o&&(this.om(l,cr),l.cursor="move");r.add(l)}r.adornedObject=t}return r},Zn.prototype.makeHandle=function(){var t=this.handleArchetype;return t===null?null:t.copy()},Zn.prototype.makeResegmentHandle=function(){var t=this.midHandleArchetype;return t===null?null:t.copy()},Zn.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;return!t.isReadOnly&&t.allowReshape&&t.lastInput.left?this.findToolHandleAt(t.firstInput.documentPoint,this.name)!==null:!1},Zn.prototype.doActivate=function(){var t=this.diagram;if(this.handle===null&&(this.handle=this.findToolHandleAt(t.firstInput.documentPoint,this.name)),this.handle!==null){var e=this.handle.part.adornedPart;if(e instanceof pn){if(this.Ts=e,t.isMouseCaptured=!0,this.Ea(this.name),e.resegmentable&&this.handle.fromMaxLinks===999){var n=e.points.copy(),i=this.getResegmentingPoint();if(n.Gb(this.handle.segmentIndex+1,i),e.isOrthogonal&&n.Gb(this.handle.segmentIndex+1,i),e.points=n,e.Wb(),e.updateAdornments(),this.handle=this.findToolHandleAt(t.firstInput.documentPoint,this.name),this.handle===null){this.doDeactivate();return}}this.Fw=e.i(this.handle.segmentIndex),this.Yq=e.points.copy(),this.isActive=!0}}},Zn.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},Zn.prototype.stopTransaction=function(){var t=this.diagram,e=Nr.prototype.stopTransaction.call(this);return e&&t.undoManager.transactionToUndo!==null&&t.undoManager.transactionToUndo.ak(),e},Zn.prototype.doCancel=function(){var t=this.adornedLink;t!==null&&(t.points=this.Yq),this.stopTool()},Zn.prototype.getResegmentingPoint=function(){return this.handle.ga(Sr)},Zn.prototype.doMouseMove=function(){var t=this.diagram;this.isActive&&(t=this.computeReshape(t.lastInput.documentPoint),this.reshape(t))},Zn.prototype.doMouseUp=function(){var t=this.diagram;if(this.isActive){var e=this.computeReshape(t.lastInput.documentPoint);if(this.reshape(e),e=this.adornedLink,e!==null&&e.resegmentable){var n=this.handle.segmentIndex,i=e.i(n-1),r=e.i(n),o=e.i(n+1);if(e.isOrthogonal){if(n>e.firstPickIndex+1&&n<e.lastPickIndex-1){var s=e.i(n-2);if(Math.abs(i.x-r.x)<this.resegmentingDistance&&Math.abs(i.y-r.y)<this.resegmentingDistance&&(ki(this,s,i,r,o,!0)||ki(this,s,i,r,o,!1))){var l=e.points.copy();ki(this,s,i,r,o,!0)?(l.cd(n-2,new $(s.x,(o.y+s.y)/2)),l.cd(n+1,new $(o.x,(o.y+s.y)/2))):(l.cd(n-2,new $((o.x+s.x)/2,s.y)),l.cd(n+1,new $((o.x+s.x)/2,o.y))),l.mb(n),l.mb(n-1),e.points=l,e.Wb()}else s=e.i(n+2),Math.abs(r.x-o.x)<this.resegmentingDistance&&Math.abs(r.y-o.y)<this.resegmentingDistance&&(ki(this,i,r,o,s,!0)||ki(this,i,r,o,s,!1))&&(l=e.points.copy(),ki(this,i,r,o,s,!0)?(l.cd(n-1,new $(i.x,(i.y+s.y)/2)),l.cd(n+2,new $(s.x,(i.y+s.y)/2))):(l.cd(n-1,new $((i.x+s.x)/2,i.y)),l.cd(n+2,new $((i.x+s.x)/2,s.y))),l.mb(n+1),l.mb(n),e.points=l,e.Wb())}}else s=$.alloc(),Vt.qh(i.x,i.y,o.x,o.y,r.x,r.y,s)&&s.Bf(r)<this.resegmentingDistance*this.resegmentingDistance&&(i=e.points.copy(),i.mb(n),e.points=i,e.Wb()),$.free(s)}t.Ya(),this.transactionResult=this.name,t.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function ki(t,e,n,i,r,o){return o?Math.abs(e.y-n.y)<t.resegmentingDistance&&Math.abs(n.y-i.y)<t.resegmentingDistance&&Math.abs(i.y-r.y)<t.resegmentingDistance:Math.abs(e.x-n.x)<t.resegmentingDistance&&Math.abs(n.x-i.x)<t.resegmentingDistance&&Math.abs(i.x-r.x)<t.resegmentingDistance}Zn.prototype.reshape=function(t){var e=this.adornedLink;e.uh();var n=this.handle.segmentIndex,i=this.Ru(this.handle);if(e.isOrthogonal)if(n===e.firstPickIndex+1)n=e.firstPickIndex+1,i===pr?(e.L(n,e.i(n-1).x,t.y),e.L(n+1,e.i(n+2).x,t.y)):i===_i&&(e.L(n,t.x,e.i(n-1).y),e.L(n+1,t.x,e.i(n+2).y));else if(n===e.lastPickIndex-1)n=e.lastPickIndex-1,i===pr?(e.L(n-1,e.i(n-2).x,t.y),e.L(n,e.i(n+1).x,t.y)):i===_i&&(e.L(n-1,t.x,e.i(n-2).y),e.L(n,t.x,e.i(n+1).y));else{i=n;var r=e.i(i),o=e.i(i-1),s=e.i(i+1);Vt.B(o.x,r.x)&&Vt.B(r.y,s.y)?(Vt.B(o.x,e.i(i-2).x)&&!Vt.B(o.y,e.i(i-2).y)?(e.m(i,t.x,o.y),n++,i++):e.L(i-1,t.x,o.y),Vt.B(s.y,e.i(i+2).y)&&!Vt.B(s.x,e.i(i+2).x)?e.m(i+1,s.x,t.y):e.L(i+1,s.x,t.y)):Vt.B(o.y,r.y)&&Vt.B(r.x,s.x)?(Vt.B(o.y,e.i(i-2).y)&&!Vt.B(o.x,e.i(i-2).x)?(e.m(i,o.x,t.y),n++,i++):e.L(i-1,o.x,t.y),Vt.B(s.x,e.i(i+2).x)&&!Vt.B(s.y,e.i(i+2).y)?e.m(i+1,t.x,s.y):e.L(i+1,t.x,s.y)):Vt.B(o.x,r.x)&&Vt.B(r.x,s.x)?(Vt.B(o.x,e.i(i-2).x)&&!Vt.B(o.y,e.i(i-2).y)?(e.m(i,t.x,o.y),n++,i++):e.L(i-1,t.x,o.y),Vt.B(s.x,e.i(i+2).x)&&!Vt.B(s.y,e.i(i+2).y)?e.m(i+1,t.x,s.y):e.L(i+1,t.x,s.y)):Vt.B(o.y,r.y)&&Vt.B(r.y,s.y)&&(Vt.B(o.y,e.i(i-2).y)&&!Vt.B(o.x,e.i(i-2).x)?(e.m(i,o.x,t.y),n++,i++):e.L(i-1,o.x,t.y),Vt.B(s.y,e.i(i+2).y)&&!Vt.B(s.x,e.i(i+2).x)?e.m(i+1,s.x,t.y):e.L(i+1,s.x,t.y)),e.L(n,t.x,t.y)}else e.L(n,t.x,t.y),i=e.fromNode,r=e.fromPort,i!==null&&(o=i.findVisibleNode(),o!==null&&o!==i&&(i=o,r=i.port)),n===1&&e.computeSpot(!0,r).Mc()&&(o=r.ga(Sr,$.alloc()),i=e.getLinkPointFromPoint(i,r,o,t,!0,$.alloc()),e.L(0,i.x,i.y),$.free(o),$.free(i)),i=e.toNode,r=e.toPort,i!==null&&(o=i.findVisibleNode(),o!==null&&o!==i&&(i=o,r=i.port)),n===e.pointsCount-2&&e.computeSpot(!1,r).Mc()&&(n=r.ga(Sr,$.alloc()),t=e.getLinkPointFromPoint(i,r,n,t,!1,$.alloc()),e.L(e.pointsCount-1,t.x,t.y),$.free(n),$.free(t));e.zf()},Zn.prototype.computeReshape=function(t){var e=this.adornedLink,n=this.handle.segmentIndex;switch(this.Ru(this.handle)){case cr:return t;case pr:return new $(e.i(n).x,t.y);case _i:return new $(t.x,e.i(n).y);default:case wi:return e.i(n)}},te.Object.defineProperties(Zn.prototype,{handleArchetype:{get:function(){return this.o},set:function(t){this.o=t}},midHandleArchetype:{get:function(){return this.u},set:function(t){this.u=t}},handle:{get:function(){return this.j},set:function(t){if(t!==null&&!(t.part instanceof jr))throw Error("new handle is not in an Adornment: "+t);this.j=t}},adornedLink:{get:function(){return this.Ts}},resegmentingDistance:{get:function(){return this.F},set:function(t){this.F=t}},originalPoint:{get:function(){return this.Fw}},originalPoints:{get:function(){return this.Yq}}}),Zn.prototype.setReshapingBehavior=Zn.prototype.om,Zn.prototype.getReshapingBehavior=Zn.prototype.Ru;var wi=new le(Zn,"None",0),_i=new le(Zn,"Horizontal",1),pr=new le(Zn,"Vertical",2),cr=new le(Zn,"All",3);Zn.className="LinkReshapingTool",Zn.None=wi,Zn.Horizontal=_i,Zn.Vertical=pr,Zn.All=cr,di("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(t){this.gb("LinkReshaping",t,this.mouseDownTools)});function Oi(){Nr.call(this),this.name="Resizing",this.o=new ni(1,1).freeze(),this.j=new ni(9999,9999).freeze(),this.yg=new ni(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var t=new Qi;t.alignmentFocus=Sr,t.figure="Rectangle",t.desiredSize=Js,t.fill="lightblue",t.stroke="dodgerblue",t.strokeWidth=1,t.cursor="pointer",this.F=t,this.u=null,this.Xq=new $,this.Dw=new ni,this.Tn=new $,this.rt=new ni(0,0),this.qt=new ni(1/0,1/0),this.pt=new ni(1,1)}Jn(Oi,Nr),Oi.prototype.updateAdornments=function(t){if(!(t===null||t instanceof pn)){if(t.isSelected&&!this.diagram.isReadOnly){var e=t.resizeObject,n=t.Pj(this.name);if(e!==null&&t.canResize()&&t.actualBounds.w()&&t.isVisible()&&e.actualBounds.w()&&e.Ed()&&((n===null||n.adornedObject!==e)&&(n=this.makeAdornment(e)),n!==null)){e=e.li(),Xh(t)&&this.updateResizeHandles(n,e),t.bh(this.name,n);return}}t.Jf(this.name)}},Oi.prototype.makeAdornment=function(t){var e=t.part.resizeAdornmentTemplate;if(e===null){e=new jr,e.type=sn.Spot,e.locationSpot=Sr;var n=new ml;n.isPanelMain=!0,e.add(n),e.add(this.makeHandle(t,Fs)),e.add(this.makeHandle(t,al)),e.add(this.makeHandle(t,Jo)),e.add(this.makeHandle(t,Ba)),e.add(this.makeHandle(t,os)),e.add(this.makeHandle(t,qr)),e.add(this.makeHandle(t,is)),e.add(this.makeHandle(t,cs))}else if(_u(e),e=e.copy(),e===null)return null;return e.adornedObject=t,e},Oi.prototype.makeHandle=function(t,e){return t=this.handleArchetype,t===null?null:(t=t.copy(),t.alignment=e,t)},Oi.prototype.updateResizeHandles=function(t,e){if(t!==null){if(!t.alignment.Xb()&&(t.cursor==="pointer"||0<t.cursor.indexOf("resize")))t:{var n=t.alignment;if(n.Mc()&&(n=Sr),0>=n.x)e=0>=n.y?e+225:1<=n.y?e+135:e+180;else if(1<=n.x)0>=n.y?e+=315:1<=n.y&&(e+=45);else if(0>=n.y)e+=270;else if(1<=n.y)e+=90;else break t;0>e?e+=360:360<=e&&(e-=360),t.cursor=22.5>e?"e-resize":67.5>e?"se-resize":112.5>e?"s-resize":157.5>e?"sw-resize":202.5>e?"w-resize":247.5>e?"nw-resize":292.5>e?"n-resize":337.5>e?"ne-resize":"e-resize"}else if(t instanceof sn)for(t=t.elements;t.next();)this.updateResizeHandles(t.value,e)}},Oi.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;return!t.isReadOnly&&t.allowResize&&t.lastInput.left?this.findToolHandleAt(t.firstInput.documentPoint,this.name)!==null:!1},Oi.prototype.doActivate=function(){var t=this.diagram;this.handle===null&&(this.handle=this.findToolHandleAt(t.firstInput.documentPoint,this.name)),this.handle!==null&&(this.adornedObject=this.handle.part.adornedObject,this.adornedObject!==null&&(t.isMouseCaptured=!0,t.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))},Oi.prototype.doDeactivate=function(){var t=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=t.isMouseCaptured=!1},Oi.prototype.stopTransaction=function(){var t=this.diagram,e=Nr.prototype.stopTransaction.call(this);return e&&t.undoManager.transactionToUndo!==null&&t.undoManager.transactionToUndo.ak(),e},Oi.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},Oi.prototype.doMouseMove=function(){var t=this.diagram;if(this.isActive){var e=this.rt,n=this.qt,i=this.pt,r=this.adornedObject.qs(t.lastInput.documentPoint,$.alloc()),o=this.computeReshape();e=this.computeResize(r,this.handle.alignment,e,n,i,o),this.resize(e),t.bd(),$.free(r)}},Oi.prototype.doMouseUp=function(){var t=this.diagram;if(this.isActive){var e=this.rt,n=this.qt,i=this.pt,r=this.adornedObject.qs(t.lastInput.documentPoint,$.alloc()),o=this.computeReshape();e=this.computeResize(r,this.handle.alignment,e,n,i,o),this.resize(e),$.free(r),t.Ya(),this.transactionResult=this.name,t.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},Oi.prototype.resize=function(t){var e=this.diagram,n=this.adornedObject;if(n!==null){if(n.desiredSize=t.size,t=n.part,t.Va(),n=n.ga(this.handle.alignment.gv()),t instanceof Ki){var i=new Re;if(i.add(t),!this.dragsMembers&&t.placeholder===null){var r=new c;r.dragsMembers=!1}e.moveParts(i,this.oppositePoint.copy().re(n),!0,r)}else t.location=t.location.copy().re(n).add(this.oppositePoint);e.bd()}},Oi.prototype.computeResize=function(t,e,n,i,r,o){e.Mc()&&(e=Sr);var s=this.adornedObject.naturalBounds,l=s.x,u=s.y,d=s.x+s.width,p=s.y+s.height,v=1;if(!o){v=s.width;var E=s.height;0>=v&&(v=1),0>=E&&(E=1),v=E/v}return E=$.alloc(),Vt.No(t.x,t.y,l,u,r.width,r.height,E),t=s.copy(),0>=e.x?0>=e.y?(t.x=Math.max(E.x,d-i.width),t.x=Math.min(t.x,d-n.width),t.width=Math.max(d-t.x,n.width),t.y=Math.max(E.y,p-i.height),t.y=Math.min(t.y,p-n.height),t.height=Math.max(p-t.y,n.height),o||(1<=t.height/t.width?(t.height=Math.max(Math.min(v*t.width,i.height),n.height),t.width=t.height/v):(t.width=Math.max(Math.min(t.height/v,i.width),n.width),t.height=v*t.width),t.x=d-t.width,t.y=p-t.height)):1<=e.y?(t.x=Math.max(E.x,d-i.width),t.x=Math.min(t.x,d-n.width),t.width=Math.max(d-t.x,n.width),t.height=Math.max(Math.min(E.y-u,i.height),n.height),o||(1<=t.height/t.width?(t.height=Math.max(Math.min(v*t.width,i.height),n.height),t.width=t.height/v):(t.width=Math.max(Math.min(t.height/v,i.width),n.width),t.height=v*t.width),t.x=d-t.width)):(t.x=Math.max(E.x,d-i.width),t.x=Math.min(t.x,d-n.width),t.width=d-t.x,o||(t.height=Math.max(Math.min(v*t.width,i.height),n.height),t.width=t.height/v,t.y=u+.5*(p-u-t.height))):1<=e.x?0>=e.y?(t.width=Math.max(Math.min(E.x-l,i.width),n.width),t.y=Math.max(E.y,p-i.height),t.y=Math.min(t.y,p-n.height),t.height=Math.max(p-t.y,n.height),o||(1<=t.height/t.width?(t.height=Math.max(Math.min(v*t.width,i.height),n.height),t.width=t.height/v):(t.width=Math.max(Math.min(t.height/v,i.width),n.width),t.height=v*t.width),t.y=p-t.height)):1<=e.y?(t.width=Math.max(Math.min(E.x-l,i.width),n.width),t.height=Math.max(Math.min(E.y-u,i.height),n.height),o||(1<=t.height/t.width?(t.height=Math.max(Math.min(v*t.width,i.height),n.height),t.width=t.height/v):(t.width=Math.max(Math.min(t.height/v,i.width),n.width),t.height=v*t.width))):(t.width=Math.max(Math.min(E.x-l,i.width),n.width),o||(t.height=Math.max(Math.min(v*t.width,i.height),n.height),t.width=t.height/v,t.y=u+.5*(p-u-t.height))):0>=e.y?(t.y=Math.max(E.y,p-i.height),t.y=Math.min(t.y,p-n.height),t.height=p-t.y,o||(t.width=Math.max(Math.min(t.height/v,i.width),n.width),t.height=v*t.width,t.x=l+.5*(d-l-t.width))):1<=e.y&&(t.height=Math.max(Math.min(E.y-u,i.height),n.height),o||(t.width=Math.max(Math.min(t.height/v,i.width),n.width),t.height=v*t.width,t.x=l+.5*(d-l-t.width))),$.free(E),t},Oi.prototype.computeReshape=function(){var t=Xe;return this.adornedObject instanceof Qi&&(t=Lg(this.adornedObject)),!(t===Kn||this.diagram.lastInput.shift)},Oi.prototype.computeMinSize=function(){var t=this.adornedObject.minSize.copy(),e=this.minSize;return!isNaN(e.width)&&e.width>t.width&&(t.width=e.width),!isNaN(e.height)&&e.height>t.height&&(t.height=e.height),t},Oi.prototype.computeMaxSize=function(){var t=this.adornedObject.maxSize.copy(),e=this.maxSize;return!isNaN(e.width)&&e.width<t.width&&(t.width=e.width),!isNaN(e.height)&&e.height<t.height&&(t.height=e.height),t},Oi.prototype.computeCellSize=function(){var t=new ni(NaN,NaN),e=this.adornedObject.part;return e!==null&&(e=e.resizeCellSize,!isNaN(e.width)&&0<e.width&&(t.width=e.width),!isNaN(e.height)&&0<e.height&&(t.height=e.height)),e=this.cellSize,isNaN(t.width)&&!isNaN(e.width)&&0<e.width&&(t.width=e.width),isNaN(t.height)&&!isNaN(e.height)&&0<e.height&&(t.height=e.height),e=this.diagram,(isNaN(t.width)||isNaN(t.height))&&e&&(e=e.grid,e!==null&&e.visible&&this.isGridSnapEnabled&&(e=e.gridCellSize,isNaN(t.width)&&!isNaN(e.width)&&0<e.width&&(t.width=e.width),isNaN(t.height)&&!isNaN(e.height)&&0<e.height&&(t.height=e.height))),(isNaN(t.width)||t.width===0||t.width===1/0)&&(t.width=1),(isNaN(t.height)||t.height===0||t.height===1/0)&&(t.height=1),t},te.Object.defineProperties(Oi.prototype,{handleArchetype:{get:function(){return this.F},set:function(t){this.F=t}},handle:{get:function(){return this.u},set:function(t){if(t!==null&&!(t.part instanceof jr))throw Error("new handle is not in an Adornment: "+t);this.u=t}},adornedObject:{get:function(){return this.ue},set:function(t){if(t!==null&&t.part instanceof jr)throw Error("new handle must not be in an Adornment: "+t);this.ue=t}},minSize:{get:function(){return this.o},set:function(t){if(!this.o.D(t)){var e=t.width;isNaN(e)&&(e=0),t=t.height,isNaN(t)&&(t=0),this.o.h(e,t)}}},maxSize:{get:function(){return this.j},set:function(t){if(!this.j.D(t)){var e=t.width;isNaN(e)&&(e=1/0),t=t.height,isNaN(t)&&(t=1/0),this.j.h(e,t)}}},cellSize:{get:function(){return this.yg},set:function(t){this.yg.D(t)||this.yg.assign(t)}},isGridSnapEnabled:{get:function(){return this.V},set:function(t){this.V=t}},dragsMembers:{get:function(){return this.ia},set:function(t){this.ia=t}},oppositePoint:{get:function(){return this.Xq},set:function(t){this.Xq.D(t)||this.Xq.assign(t)}},originalDesiredSize:{get:function(){return this.Dw}},originalLocation:{get:function(){return this.Tn}}}),Oi.className="ResizingTool",di("resizingTool",function(){return this.findTool("Resizing")},function(t){this.gb("Resizing",t,this.mouseDownTools)});function jt(){Nr.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new $,this.ue=null;var t=new Qi;t.figure="Ellipse",t.desiredSize=Us,t.fill="lightblue",t.stroke="dodgerblue",t.strokeWidth=1,t.cursor="pointer",this.o=t,this.j=null,this.Cw=0,this.kr=new $(NaN,NaN),this.u=0,this.F=50}Jn(jt,Nr),jt.prototype.updateAdornments=function(t){if(t!==null){if(t.ph()){var e=t.rotateObject;if(e===t||e===t.path||e.isPanelMain)return}if(t.isSelected&&!this.diagram.isReadOnly&&(e=t.rotateObject,e!==null&&t.canRotate()&&t.actualBounds.w()&&t.isVisible()&&e.actualBounds.w()&&e.Ed())){var n=t.Pj(this.name);if((n===null||n.adornedObject!==e)&&(n=this.makeAdornment(e)),n!==null){n.angle=e.li(),n.placeholder===null&&(n.location=this.computeAdornmentLocation(e)),t.bh(this.name,n);return}}t.Jf(this.name)}},jt.prototype.makeAdornment=function(t){var e=t.part.rotateAdornmentTemplate;if(e===null){e=new jr,e.type=sn.Position,e.locationSpot=Sr;var n=this.handleArchetype;n!==null&&e.add(n.copy())}else if(_u(e),e=e.copy(),e===null)return null;return e.adornedObject=t,e},jt.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;return!t.isReadOnly&&t.allowRotate&&t.lastInput.left?this.findToolHandleAt(t.firstInput.documentPoint,this.name)!==null:!1},jt.prototype.doActivate=function(){var t=this.diagram;if(this.adornedObject===null){if(this.handle===null&&(this.handle=this.findToolHandleAt(t.firstInput.documentPoint,this.name)),this.handle===null)return;this.adornedObject=this.handle.part.adornedObject}this.adornedObject!==null&&(t.isMouseCaptured=!0,t.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)},jt.prototype.computeRotationPoint=function(t){var e=t.part,n=e.locationObject;return e.rotationSpot.sb()?t.ga(e.rotationSpot):t===e||t===n?n.ga(e.locationSpot):t.ga(Sr)},jt.prototype.computeAdornmentLocation=function(t){var e=this.rotationPoint;e.w()||(e=this.computeRotationPoint(t)),e=t.qs(e);var n=this.handleAngle;0>n?n+=360:360<=n&&(n-=360),n=Math.round(45*Math.round(n/45));var i=this.handleDistance;return n===0?e.x=t.naturalBounds.width+i:n===45?(e.x=t.naturalBounds.width+i,e.y=t.naturalBounds.height+i):n===90?e.y=t.naturalBounds.height+i:n===135?(e.x=-i,e.y=t.naturalBounds.height+i):n===180?e.x=-i:n===225?(e.x=-i,e.y=-i):n===270?e.y=-i:n===315&&(e.x=t.naturalBounds.width+i,e.y=-i),t.ga(e)},jt.prototype.doDeactivate=function(){var t=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new $(NaN,NaN),this.isActive=t.isMouseCaptured=!1},jt.prototype.stopTransaction=function(){var t=this.diagram,e=Nr.prototype.stopTransaction.call(this);return e&&t.undoManager.transactionToUndo!==null&&t.undoManager.transactionToUndo.ak(),e},jt.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},jt.prototype.doMouseMove=function(){var t=this.diagram;this.isActive&&(t=this.computeRotate(t.lastInput.documentPoint),this.rotate(t))},jt.prototype.doMouseUp=function(){var t=this.diagram;if(this.isActive){t.delaysLayout=!1;var e=this.computeRotate(t.lastInput.documentPoint);this.rotate(e),t.Ya(),this.transactionResult=this.name,t.R("PartRotated",this.adornedObject,this.originalAngle)}this.stopTool()},jt.prototype.rotate=function(t){var e=this.adornedObject;if(e!==null){e.angle=t,e=e.part,e.Va();var n=e.locationObject,i=e.rotateObject;(n===i||n.rg(i))&&(n=this.Tn.copy(),e.location=n.re(this.rotationPoint).rotate(t-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},jt.prototype.computeRotate=function(t){t=this.rotationPoint.ab(t)-this.handleAngle;var e=this.adornedObject.panel;e!==null&&(t-=e.li()),360<=t?t-=360:0>t&&(t+=360),e=Math.min(Math.abs(this.snapAngleMultiple),180);var n=Math.min(Math.abs(this.snapAngleEpsilon),e/2);return!this.diagram.lastInput.shift&&0<e&&0<n&&(t%e<n?t=Math.floor(t/e)*e:t%e>e-n&&(t=(Math.floor(t/e)+1)*e)),360<=t?t-=360:0>t&&(t+=360),t},te.Object.defineProperties(jt.prototype,{handleArchetype:{get:function(){return this.o},set:function(t){this.o=t}},handle:{get:function(){return this.j},set:function(t){if(t!==null&&!(t.part instanceof jr))throw Error("new handle is not in an Adornment: "+t);this.j=t}},adornedObject:{get:function(){return this.ue},set:function(t){if(t!==null&&t.part instanceof jr)throw Error("new handle must not be in an Adornment: "+t);this.ue=t}},snapAngleMultiple:{get:function(){return this.ia},set:function(t){this.ia=t}},snapAngleEpsilon:{get:function(){return this.V},set:function(t){this.V=t}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(t){this.kr=t.copy()}},handleAngle:{get:function(){return this.u},set:function(t){this.u=t}},handleDistance:{get:function(){return this.F},set:function(t){this.F=t}}}),jt.className="RotatingTool",di("rotatingTool",function(){return this.findTool("Rotating")},function(t){this.gb("Rotating",t,this.mouseDownTools)});function to(){Nr.call(this),this.name="ClickSelecting"}Jn(to,Nr),to.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},to.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},to.className="ClickSelectingTool";function Li(){Nr.call(this),this.name="Action",this.pk=null}Jn(Li,Nr),Li.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram,e=t.lastInput,n=t.ic(e.documentPoint,function(i){for(;i.panel!==null&&!i.isActionable;)i=i.panel;return i});return n!==null&&n.isActionable?(this.pk=n,t.Ck=t.ic(e.documentPoint,null,null),!0):!1},Li.prototype.doMouseDown=function(){if(this.isActive){var t=this.diagram.lastInput,e=this.pk;e!==null&&(t.targetObject=e,e.actionDown!==null&&e.actionDown(t,e))}else this.canStart()&&this.doActivate()},Li.prototype.doMouseMove=function(){if(this.isActive){var t=this.diagram.lastInput,e=this.pk;e!==null&&(t.targetObject=e,e.actionMove!==null&&e.actionMove(t,e))}},Li.prototype.doMouseUp=function(){if(this.isActive){var t=this.diagram.lastInput,e=this.pk;if(e===null)return;t.targetObject=e,e.actionUp!==null&&e.actionUp(t,e),this.standardMouseClick(function(n){for(;n.panel!==null&&(!n.isActionable||n!==e);)n=n.panel;return n},function(n){return n===e})}this.stopTool()},Li.prototype.doCancel=function(){var t=this.diagram.lastInput,e=this.pk;e!==null&&(t.targetObject=e,e.actionCancel!==null&&e.actionCancel(t,e),this.stopTool())},Li.prototype.doStop=function(){this.pk=null},Li.className="ActionTool";function sr(){Nr.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new $(0,0)}Jn(sr,Nr),sr.prototype.canStart=function(){if(!this.isEnabled||this.archetypeNodeData===null)return!1;var t=this.diagram;if(t.isReadOnly||t.isModelReadOnly||!t.allowInsert||!t.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(t.lastInput.clickCount===1&&(this.mw=t.lastInput.viewPoint.copy()),t.lastInput.clickCount!==2||this.isBeyondDragSize(this.mw))return!1}else if(t.lastInput.clickCount!==1)return!1;return!(t.currentTool!==this&&t.Ol(t.lastInput.documentPoint,!0)!==null)},sr.prototype.doMouseUp=function(){var t=this.diagram;this.isActive&&this.insertPart(t.lastInput.documentPoint),this.stopTool()},sr.prototype.insertPart=function(t){var e=this.diagram,n=this.archetypeNodeData;if(n===null)return null;var i=null;try{if(e.R("ChangingSelection",e.selection),this.Ea(this.name),n instanceof li)n.Zc()&&(_u(n),i=n.copy(),i!==null&&e.add(i));else if(n!==null){var r=e.model.copyNodeData(n);Me(r)&&(e.model.xf(r),i=e.Lc(r))}if(i!==null){var o=$.allocAt(t.x,t.y);this.isGridSnapEnabled&&Tc(this.diagram,i,t,o),i.location=o,e.allowSelect&&(e.clearSelection(!0),i.isSelected=!0),$.free(o)}e.Ya(),this.transactionResult=this.name,e.R("PartCreated",i)}finally{this.stopTransaction(),e.R("ChangedSelection",e.selection)}return i},te.Object.defineProperties(sr.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(t){this.Ri=t}},isDoubleClick:{get:function(){return this.o},set:function(t){this.o=t}},isGridSnapEnabled:{get:function(){return this.j},set:function(t){this.j=t}}}),sr.className="ClickCreatingTool";function Ai(){Nr.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var t=new li;t.layerName="Tool",t.selectable=!1;var e=new Qi;e.name="SHAPE",e.figure="Rectangle",e.fill=null,e.stroke="magenta",t.add(e),this.j=t}Jn(Ai,Nr),Ai.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;if(!t.allowSelect)return!1;var e=t.lastInput;return!(!e.left||t.currentTool!==this&&(!this.isBeyondDragSize()||e.timestamp-t.firstInput.timestamp<this.delay||t.Ol(e.documentPoint,!0)!==null))},Ai.prototype.doActivate=function(){var t=this.diagram;this.isActive=!0,t.isMouseCaptured=!0,t.skipsUndoManager=!0,t.add(this.box),this.doMouseMove()},Ai.prototype.doDeactivate=function(){var t=this.diagram;t.ug(),t.remove(this.box),t.skipsUndoManager=!1,this.isActive=t.isMouseCaptured=!1},Ai.prototype.doMouseMove=function(){var t=this.diagram;if(this.isActive&&this.box!==null){var e=this.computeBoxBounds(),n=this.box.fb("SHAPE");n===null&&(n=this.box.Pb());var i=ni.alloc().h(e.width,e.height);n.desiredSize=i,this.box.mm(e.x,e.y,!1),ni.free(i),(t.allowHorizontalScroll||t.allowVerticalScroll)&&t.gs(t.lastInput.viewPoint)}},Ai.prototype.doMouseUp=function(){if(this.isActive){var t=this.diagram;t.remove(this.box);try{t.currentCursor="wait",t.R("ChangingSelection",t.selection),this.selectInRect(this.computeBoxBounds()),t.R("ChangedSelection",t.selection)}finally{t.currentCursor=""}}this.stopTool()},Ai.prototype.computeBoxBounds=function(){var t=this.diagram;return new ke(t.firstInput.documentPoint,t.lastInput.documentPoint)},Ai.prototype.selectInRect=function(t){var e=this.diagram,n=e.lastInput;if(t=e.ux(t,this.isPartialInclusion),ir?n.meta:n.control)if(n.shift)for(t=t.iterator;t.next();)e=t.value,e.isSelected&&(e.isSelected=!1);else for(t=t.iterator;t.next();)e=t.value,e.isSelected=!e.isSelected;else if(n.shift)for(t=t.iterator;t.next();)e=t.value,e.isSelected||(e.isSelected=!0);else{for(n=new Re,e=e.selection.iterator;e.next();){var i=e.value;t.contains(i)||n.add(i)}for(e=n.iterator;e.next();)e.value.isSelected=!1;for(t=t.iterator;t.next();)e=t.value,e.isSelected||(e.isSelected=!0)}},te.Object.defineProperties(Ai.prototype,{delay:{get:function(){return this.Ik},set:function(t){this.Ik=t}},isPartialInclusion:{get:function(){return this.o},set:function(t){this.o=t}},box:{get:function(){return this.j},set:function(t){this.j=t}}}),Ai.className="DragSelectingTool";function gi(){Nr.call(this),this.name="Panning",this.Xt=new $,this.xy=new $,this.xg=!1;var t=this;this.Kw=function(){var e=t.diagram;e!==null&&e.removeEventListener(Ft.document,"scroll",t.Kw,!1),t.stopTool()}}Jn(gi,Nr),gi.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;return!(!t.allowHorizontalScroll&&!t.allowVerticalScroll||!t.lastInput.left||t.currentTool!==this&&!this.isBeyondDragSize())},gi.prototype.doActivate=function(){var t=this.diagram;this.xg?(t.lastInput.bubbles=!0,t.addEventListener(Ft.document,"scroll",this.Kw,!1)):(t.currentCursor="move",t.isMouseCaptured=!0,this.Xt.assign(t.position)),this.isActive=!0},gi.prototype.doDeactivate=function(){var t=this.diagram;t.currentCursor="",this.isActive=t.isMouseCaptured=!1},gi.prototype.doCancel=function(){var t=this.diagram;t.position=this.Xt,t.isMouseCaptured=!1,this.stopTool()},gi.prototype.doMouseMove=function(){this.move()},gi.prototype.doMouseUp=function(){this.move(),this.stopTool()},gi.prototype.move=function(){var t=this.diagram;if(this.isActive&&t)if(this.xg)t.lastInput.bubbles=!0;else{var e=t.position,n=t.firstInput.documentPoint,i=t.lastInput.documentPoint,r=e.x+n.x-i.x;n=e.y+n.y-i.y,t.allowHorizontalScroll||(r=e.x),t.allowVerticalScroll||(n=e.y),t.position=this.xy.h(r,n)}},te.Object.defineProperties(gi.prototype,{bubbles:{get:function(){return this.xg},set:function(t){this.xg=t}},originalPosition:{get:function(){return this.Xt}}}),gi.className="PanningTool",di("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(t){this.gb("ClickCreating",t,this.mouseUpTools)}),di("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(t){this.gb("ClickSelecting",t,this.mouseUpTools)}),di("panningTool",function(){return this.findTool("Panning")},function(t){this.gb("Panning",t,this.mouseMoveTools)}),di("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(t){this.gb("DragSelecting",t,this.mouseMoveTools)}),di("actionTool",function(){return this.findTool("Action")},function(t){this.gb("Action",t,this.mouseDownTools)});function ji(){this.F=this.u=this.j=this.o=null}te.Object.defineProperties(ji.prototype,{mainElement:{get:function(){return this.u},set:function(t){this.u=t}},show:{get:function(){return this.o},set:function(t){this.o!==t&&(this.o=t)}},hide:{get:function(){return this.j},set:function(t){this.j!==t&&(this.j=t)}},valueFunction:{get:function(){return this.F},set:function(t){this.F=t}}}),ji.className="HTMLInfo";function wr(t,e,n){this.text=t,this.hx=e,this.visible=n}wr.className="ContextMenuButtonInfo";function yr(){Nr.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new $,this.jt=null,this.Et=!1;var t=this;this.tu=function(){t.stopTool()}}Jn(yr,Nr);function $r(t){var e=new ji;e.show=function(r,o,s){s.showDefaultContextMenu()},e.hide=function(r,o){o.hideDefaultContextMenu()},P=e,t.tu=function(){t.stopTool()},e=kn("div");var n=kn("div");e.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",n.style.cssText="z-index:10001;position: fixed;display: none;top: 0;left: 0;width: 100%;height: 100%;background-color: black;opacity: 0.8;";var i=kn("style");Ft.document.getElementsByTagName("head")[0].appendChild(i),i.sheet.insertRule(".goCXul { list-style: none; }",0),i.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),i.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),i=t.diagram,i!==null&&(i.addEventListener(e,"contextmenu",Bi,!1),i.addEventListener(e,"selectstart",Bi,!1),i.addEventListener(n,"contextmenu",Bi,!1)),e.className="goCXforeground",n.className="goCXbackground",Ft.document.body&&(Ft.document.body.appendChild(e),Ft.document.body.appendChild(n)),ot=e,Z=n,U=!0}function Bi(t){return t.preventDefault(),!1}yr.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;return this.isBeyondDragSize()||!t.lastInput.right||1<t.lastInput.clickCount?!1:!!(t.lastInput.isTouchEvent&&this.defaultTouchContextMenu!==null||this.findObjectWithContextMenu()!==null)},yr.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},yr.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},yr.prototype.findObjectWithContextMenu=function(t){t===void 0&&(t=null);var e=this.diagram,n=e.lastInput,i=null;if(t instanceof ue||(t instanceof Wt?i=t:i=e.ic(n.documentPoint,null,function(r){return!r.layer.isTemporary})),i!==null){for(t=i;t!==null;){if(t.contextMenu!==null)return t;t=t.panel}if(e.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return i.part}else if(e.contextMenu!==null)return e;return null},yr.prototype.doActivate=function(){},yr.prototype.doMouseDown=function(){if(Nr.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof jr){var t=this.diagram.toolManager.findTool("Action");t!==null&&t.canStart()&&(t.doActivate(),t.doMouseDown(),t.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&no(this)},yr.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof jr){var t=this.diagram.toolManager.findTool("Action");t!==null&&t.canStart()&&(t.doActivate(),t.doCancel(),t.doDeactivate())}no(this)};function no(t){var e=t.diagram;if(t.isActive){var n=t.currentContextMenu;if(n!==null){var i=null;n instanceof ji||(i=e.ic(e.lastInput.documentPoint,null,null),i!==null&&i.rg(n)&&t.standardMouseClick(null,null)),t.maybeStopTool(i)}}else t.canStart()&&(co(t,!0),t.isActive||t.stopTool())}yr.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function co(t,e,n){if(n===void 0&&(n=null),!t.Et&&(t.Et=!0,e&&t.standardMouseSelect(),e=t.standardMouseClick(),t.Et=!1,!e)){if(t.isActive=!0,e=P,n===null&&(n=t.findObjectWithContextMenu()),n!==null){var i=n.contextMenu;i!==null?(t.currentObject=n instanceof Wt?n:null,t.showContextMenu(i,t.currentObject)):e!==null&&t.showContextMenu(e,t.currentObject)}else e!==null&&t.showContextMenu(e,null);t.currentContextMenu instanceof jr&&!t.currentContextMenu.visible&&t.stopTool()}}yr.prototype.doMouseMove=function(){var t=this.diagram.toolManager.findTool("Action");t!==null&&t.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},yr.prototype.showContextMenu=function(t,e){var n=this.diagram;if(t!==this.currentContextMenu&&this.hideContextMenu(),t instanceof jr){t.layerName="Tool",t.selectable=!1,t.scale=1/n.scale,t.category=this.name,t.placeholder!==null&&(t.placeholder.scale=n.scale);var i=t.diagram;i!==null&&i!==n&&i.remove(t),n.add(t),e!==null?t.adornedObject=e:t.data=n.model,t.Va(),this.positionContextMenu(t,e)}else t instanceof ji&&t.show(e,n,this);this.currentContextMenu=t},yr.prototype.positionContextMenu=function(t){if(t.placeholder===null){var e=this.diagram,n=e.lastInput.documentPoint.copy(),i=t.measuredBounds,r=e.viewportBounds;e.lastInput.isTouchEvent&&(n.x-=i.width),n.x+i.width>r.right&&(n.x-=i.width+5/e.scale),n.x<r.x&&(n.x=r.x),n.y+i.height>r.bottom&&(n.y-=i.height+5/e.scale),n.y<r.y&&(n.y=r.y),t.position=n}},yr.prototype.hideContextMenu=function(){var t=this.diagram,e=this.currentContextMenu;e!==null&&(e instanceof jr?(t.remove(e),this.ht!==null&&this.ht.Jf(e.category),e.data=null,e.adornedObject=null):e instanceof ji&&(e.hide!==null?e.hide(t,this):e.mainElement!==null&&(e.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function S(t){var e=new Re;return e.add(new wr("Copy",function(n){n.commandHandler.copySelection()},function(n){return n.commandHandler.canCopySelection()})),e.add(new wr("Cut",function(n){n.commandHandler.cutSelection()},function(n){return n.commandHandler.canCutSelection()})),e.add(new wr("Delete",function(n){n.commandHandler.deleteSelection()},function(n){return n.commandHandler.canDeleteSelection()})),e.add(new wr("Paste",function(n){n.commandHandler.pasteSelection(t.mouseDownPoint)},function(n){return n.commandHandler.canPasteSelection(t.mouseDownPoint)})),e.add(new wr("Select All",function(n){n.commandHandler.selectAll()},function(n){return n.commandHandler.canSelectAll()})),e.add(new wr("Undo",function(n){n.commandHandler.undo()},function(n){return n.commandHandler.canUndo()})),e.add(new wr("Redo",function(n){n.commandHandler.redo()},function(n){return n.commandHandler.canRedo()})),e.add(new wr("Scroll To Part",function(n){n.commandHandler.scrollToPart()},function(n){return n.commandHandler.canScrollToPart()})),e.add(new wr("Zoom To Fit",function(n){n.commandHandler.zoomToFit()},function(n){return n.commandHandler.canZoomToFit()})),e.add(new wr("Reset Zoom",function(n){n.commandHandler.resetZoom()},function(n){return n.commandHandler.canResetZoom()})),e.add(new wr("Group Selection",function(n){n.commandHandler.groupSelection()},function(n){return n.commandHandler.canGroupSelection()})),e.add(new wr("Ungroup Selection",function(n){n.commandHandler.ungroupSelection()},function(n){return n.commandHandler.canUngroupSelection()})),e.add(new wr("Edit Text",function(n){n.commandHandler.editTextBlock()},function(n){return n.commandHandler.canEditTextBlock()})),e}yr.prototype.showDefaultContextMenu=function(){var t=this.diagram;this.jt===null&&(this.jt=S(this)),ot.innerHTML="",Z.addEventListener("pointerdown",this.tu,!1);var e=this,n=kn("ul");n.className="goCXul",ot.appendChild(n),n.innerHTML="";for(var i=this.jt.iterator;i.next();){var r=i.value,o=r.visible;if(typeof r.hx=="function"&&(typeof o!="function"||o(t))){o=kn("li"),o.className="goCXli";var s=kn("a");s.className="goCXa",s.href="#",s.ky=r.hx,s.addEventListener("pointerdown",function(l){return this.ky(t),e.stopTool(),l.preventDefault(),!1},!1),s.textContent=r.text,o.appendChild(s),n.appendChild(o)}}ot.style.display="block",Z.style.display="block"},yr.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===P){ot.style.display="none",Z.style.display="none";var t=this.diagram;t!==null&&t.removeEventListener(Z,"pointerdown",this.tu,!1),this.currentContextMenu=null}},te.Object.defineProperties(yr.prototype,{currentContextMenu:{get:function(){return this.j},set:function(t){this.j=t,this.ht=t instanceof jr?t.adornedPart:null}},defaultTouchContextMenu:{get:function(){return U===!1&&P===null&&gs&&$r(this),P},set:function(t){t===null&&(U=!0),P=t}},currentObject:{get:function(){return this.o},set:function(t){this.o=t}},mouseDownPoint:{get:function(){return this.yw}}});var P=null,U=!1,Z=null,ot=null;yr.className="ContextMenuTool",di("contextMenuTool",function(){return this.findTool("ContextMenu")},function(t){this.gb("ContextMenu",t,this.mouseUpTools)});function ut(){Nr.call(this),this.name="TextEditing",this.Zh=new Do,this.ia=null,this.V=ye,this.vj=null,this.qa=fi,this.u=1,this.F=!0,this.o=null,this.j=new ji,this.kt=null,bt(this,this.j)}Jn(ut,Nr);function bt(t,e){if(gs){var n=kn("textarea");t.kt=n,n.addEventListener("input",function(){if(t.textBlock!==null){var i=t.Lx(this.value);this.style.width=20+i.measuredBounds.width*this.wA+"px",this.rows=i.lineCount}},!1),n.addEventListener("keydown",function(i){if(!i.isComposing&&t.textBlock!==null){var r=i.key;r==="Enter"?(t.textBlock.isMultiline===!1&&i.preventDefault(),t.acceptText(Fe)):r==="Tab"?(t.acceptText(he),i.preventDefault()):r==="Escape"&&(t.doCancel(),t.diagram!==null&&t.diagram.doFocus())}},!1),n.addEventListener("focus",function(){if(t.currentTextEditor!==null&&t.state!==fi){var i=t.kt;t.qa===zi&&(t.qa=mi),typeof i.select=="function"&&t.selectsTextOnActivate&&(i.select(),i.setSelectionRange(0,9999))}},!1),n.addEventListener("blur",function(){if(t.currentTextEditor!==null&&t.state!==fi){var i=t.kt;typeof i.focus=="function"&&i.focus(),typeof i.select=="function"&&t.selectsTextOnActivate&&(i.select(),i.setSelectionRange(0,9999))}},!1),e.valueFunction=function(){return n.value},e.mainElement=n,e.show=function(i,r,o){if(i instanceof Do&&o instanceof ut)if(o.state===tr)n.style.border="3px solid red",n.focus();else{var s=i.ga(Sr),l=r.position,u=r.scale,d=i.Df()*u;d<o.minimumEditorScale&&(d=o.minimumEditorScale);var p=i.naturalBounds.width*d+6,v=i.naturalBounds.height*d+2,E=(s.x-l.x)*u;s=(s.y-l.y)*u,l=i.verticalAlignment,u=(i.lineHeight+i.spacingAbove+i.spacingBelow)*i.lineCount*d,v=l.y*v-l.y*u+l.offsetY-(.5*v-.5*u)-u/2,n.value=i.text,r.div.style.font=i.font,n.style.position="absolute",n.style.zIndex="100",n.style.font="inherit",n.style.fontSize=100*d+"%",n.style.lineHeight="normal",n.style.width=p+"px",n.style.left=(E-p/2|0)-1+"px",n.style.top=(s+v|0)-1+"px",n.style.textAlign=i.textAlign,n.style.margin="0",n.style.padding="1px",n.style.border="0",n.style.outline="none",n.style.whiteSpace="pre-wrap",n.style.overflow="hidden",n.rows=i.lineCount,n.wA=d,n.className="goTXarea",r.div.appendChild(n),n.focus(),o.selectsTextOnActivate&&(n.select(),n.setSelectionRange(0,9999))}},e.hide=function(i){i.div.removeChild(n)}}}ut.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;if(t===null||t.isReadOnly||ho&&ho!==this&&(ho.acceptText(Ue),ho&&ho!==this)||!t.lastInput.left||this.isBeyondDragSize())return!1;var e=t.ic(t.lastInput.documentPoint);return e!==null&&e instanceof Do&&e.editable&&e.part.canEdit()?(e=e.part,!(e===null||this.starting===ye&&!e.isSelected||this.starting===Ni&&2>t.lastInput.clickCount)):!1},ut.prototype.doStart=function(){ho=this,this.textBlock!==null&&this.doActivate()},ut.prototype.doActivate=function(){if(!this.isActive){var t=this.diagram;if(t!==null){var e=this.textBlock;if(e===null&&(e=t.ic(t.lastInput.documentPoint)),e!==null&&e instanceof Do&&(this.textBlock=e,e.part!==null)){t.animationManager.Cc(),this.isActive=!0,this.qa=zi;var n=this.defaultTextEditor;e.textEditor!==null&&(n=e.textEditor),this.Zh=this.textBlock.copy();var i=new ke(this.textBlock.ga(Fs),this.textBlock.ga(Jo));t.tv(i),n.show(e,t,this),this.currentTextEditor=n}}}},ut.prototype.doCancel=function(){this.stopTool()},ut.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},ut.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Ue)},ut.prototype.acceptText=function(t){switch(t){case Ue:this.qa===oo?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===zi||this.qa===tr||this.qa===mi)&&(this.qa=Ri,Jt(this));break;case Ie:case Fe:case he:(Fe!==t||this.textBlock.isMultiline!==!0)&&(this.qa===zi||this.qa===tr||this.qa===mi)&&(this.qa=Ri,Jt(this))}};function Jt(t){var e=t.textBlock,n=t.diagram,i=t.currentTextEditor;if(e!==null&&i!==null){var r=e.text,o="";i.valueFunction!==null&&(o=i.valueFunction()),t.isValidText(e,r,o)?(t.Ea(t.name),t.qa=oo,t.transactionResult=t.name,e.text=o,t.doSuccess(r,o),n!==null&&n.R("TextEdited",e,r),t.stopTransaction(),t.stopTool(),n!==null&&n.doFocus()):(t.qa=tr,t.doError(r,o))}}ut.prototype.doError=function(t,e){var n=this.textBlock;n.errorFunction!==null&&n.errorFunction(this,t,e),(t=this.currentTextEditor)&&t.show(n,this.diagram,this)},ut.prototype.doSuccess=function(t,e){var n=this.textBlock;n.textEdited!==null&&n.textEdited(n,t,e)},ut.prototype.doDeactivate=function(){var t=this.diagram;t!==null&&(this.qa=fi,this.currentTextEditor!==null&&this.currentTextEditor.hide(t,this),this.textBlock=null,this.isActive=!1)},ut.prototype.doStop=function(){ho=null},ut.prototype.isValidText=function(t,e,n){var i=this.textValidation;return i!==null&&!i(t,e,n)?!1:(i=t.textValidation,!!(i===null||i(t,e,n)))},ut.prototype.Lx=function(t){var e=this.Zh;return e.text=t,e.measure(this.textBlock.Ih,1/0),e},te.Object.defineProperties(ut.prototype,{textBlock:{get:function(){return this.ia},set:function(t){this.ia=t}},currentTextEditor:{get:function(){return this.o},set:function(t){this.o=t}},defaultTextEditor:{get:function(){return this.j},set:function(t){this.j=t}},starting:{get:function(){return this.V},set:function(t){this.V=t}},textValidation:{get:function(){return this.vj},set:function(t){this.vj=t}},minimumEditorScale:{get:function(){return this.u},set:function(t){this.u=t}},selectsTextOnActivate:{get:function(){return this.F},set:function(t){this.F=t}},state:{get:function(){return this.qa},set:function(t){this.qa!==t&&(this.qa=t)}}}),ut.prototype.measureTemporaryTextBlock=ut.prototype.Lx;var Ie=new le(ut,"LostFocus",0),Ue=new le(ut,"MouseDown",1),he=new le(ut,"Tab",2),Fe=new le(ut,"Enter",3),Oe=new le(ut,"SingleClick",0),ye=new le(ut,"SingleClickSelected",1),Ni=new le(ut,"DoubleClick",2),fi=new le(ut,"StateNone",0),zi=new le(ut,"StateActive",1),mi=new le(ut,"StateEditing",2),Ri=new le(ut,"StateValidating",3),tr=new le(ut,"StateInvalid",4),oo=new le(ut,"StateValidated",5),ho=null;ut.className="TextEditingTool",ut.LostFocus=Ie,ut.MouseDown=Ue,ut.Tab=he,ut.Enter=Fe,ut.SingleClick=Oe,ut.SingleClickSelected=ye,ut.DoubleClick=Ni,ut.StateNone=fi,ut.StateActive=zi,ut.StateEditing=mi,ut.StateValidating=Ri,ut.StateInvalid=tr,ut.StateValidated=oo,di("textEditingTool",function(){return this.findTool("TextEditing")},function(t){this.gb("TextEditing",t,this.mouseUpTools)});function ti(t){Gs||(qs(),Gs=!0),this.H=oi,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=la,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new je,this.ce=new zo,this.ce.Yd=this,this.Ei=new je,this.pu=new je,this.Sr=new je,this.pr=new je,t&&Object.assign(this,t)}ti.prototype.Xe=function(t){this.H=t},ti.prototype.canStart=function(){return!0};function Eo(t,e){t.Jd&&t.canStart(e)&&(t.Zd.add(e),t.defaultAnimation.isAnimating&&t.Cc(),So(t.H),t.zb=!0)}function Mo(t){if(t.Jd&&t.zb){var e=t.ce,n=t.H,i=t.Zd.contains("Model");i&&(t.Ok=!0,t.Pk===la?(e.isViewportUnconstrained=!0,e.vc.clear(),e.add(n,"position",n.position.copy().offset(0,-200),n.position),e.add(n,"opacity",0,1)):t.Pk===Ws&&e.vc.clear(),t.Qw=!!(t.Pk===on&&n.du.D(n.pa)),n.R("InitialAnimationStarting",t)),i&&!t.Gh||e.vc.count===0?(t.Zd.clear(),t.zb=!1,e.vc.clear(),pa(e,n),t.Ok=!1,n.N()):(t.Zd.clear(),n.kg=!1,i=e.vc.get(n),n.autoScale!==el&&i!==null&&(delete i.start.scale,delete i.end.scale),Ft.requestAnimationFrame(function(){t.zb===!1||e.bc||(n.Gf("temporaryPixelRatio")&&Vs(n),zu(n),t.zb=!1,e.start(),e.bc&&(rr(t),n.Ya(),La(e,0),jo(n,!0),Hr(t),n.R("AnimationStarting",t)))}))}}function po(t){return t.Zd.contains("Trigger")&&t.Zd.count===1}function ds(t,e,n,i){t.isTicking||po(t)||e instanceof pn&&(e.fromNode!==null||e.toNode!==null)||t.ce.add(e,"position",n,i,!1)}D=ti.prototype,D.fv=function(t){return this.ce.fv(t)},D.Xu=function(t){return this.ce.Xu(t)};function bo(t,e){function n(){if(0<r.Sr.count&&(i.addAll(r.Sr),r.Sr.clear(),r.bc=!0),r.bc!==!1&&i.count!==0){r.pu.addAll(i);for(var o=r.pu.iterator;o.next();){var s=o.value;if(s.bc!==!1){t:if(0<s.yl.count)var l=!0;else{for(l=s.vc.iterator;l.next();){var u=l.key;if(u instanceof Wt&&u.diagram!==null||u instanceof ue){l=!0;break t}}l=!1}l?ba(s,!1):s.Xk=!0}}r.pu.clear(),r.bc!==!1&&(rr(r),jo(r.H),Hr(r)),Ft.requestAnimationFrame(n)}}var i=t.Ei,r=t;t.bc?t.Sr.add(e):(t.bc=!0,i.add(e),Ft.requestAnimationFrame(function(){n()}))}function Vr(t){for(t=t.Ei.iterator;t.next();)t.value.Xk=!1}function rr(t){if(!t.vq){var e=t.H;t.Ow=e.skipsUndoManager,t.cw=e.skipsModelSourceBindings,e.skipsUndoManager=!0,e.skipsModelSourceBindings=!0,t.vq=!0}}function Hr(t){var e=t.H;e.skipsUndoManager=t.Ow,e.skipsModelSourceBindings=t.cw,t.vq=!1}D.Cc=function(t){var e=this.ce;if(this.zb===!0&&(this.Ok=this.zb=!1,this.Zd.clear(),0<e.vc.count&&this.H.$b()),this.bc){if(e.Ml(!0),e.vc.clear(),pa(e,null),t===!0)for(t=this.Ei.Fa(),e=0;e<t.length;e++)t[e].Ml(!0)}else e.vc.clear(),pa(e,this.H)},D.Ml=function(t){t===this.defaultAnimation&&this.defaultAnimation.vc.clear(),this.Ei.remove(t),this.Ei.count===0&&(this.bc=!1,this.H.$b()),t===this.defaultAnimation&&(this.defaultAnimation.vc.clear(),this.H.R("AnimationFinished",this))},D.Cj=function(t,e){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(t,e),vo(this,t))},D.Aj=function(t,e){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(t,e),bs(this.ce,e,"position",e.position,e.position),vo(this,t))};function Qr(t,e,n){!t.zb||e.D(n)||po(t)||(t.H.pi||(e=n.copy()),bs(t.ce,t.H,"position",e,n))}function xr(t,e,n){e.fd&&(e.Tg=n,t.pr.add(e))}function vo(t,e){for(e=e.findLinksConnected();e.next();){var n=e.value;n.fd&&(n.Tg=n.points.copy(),t.pr.add(n))}}function ms(t,e,n,i,r){t===null&&(t=[0,0,0,0]),e===null&&(e=[0,0,0,0]);var o=t[0],s=t[1],l=t[2];t=t[3];var u=e[0],d=e[1],p=e[2];return e=e[3],l===0||l===100?(o=u,s=d):(p===0||p===100)&&(u=o,d=s),180<Math.abs(u-o)&&(u>o?o+=360:u+=360),o=r(n,o,u-o,i)%360,s=r(n,s,d-s,i),l=r(n,l,p-l,i),n=r(n,t,e-t,i),"hsla("+o+", "+s+"%, "+l+"%, "+n+")"}function qs(){function t(n,i,r,o,s,l){n.position=new $(o(s,i.x,r.x-i.x,l),o(s,i.y,r.y-i.y,l))}var e=new pt;e.add("position:diagram",t),e.add("position",t),e.add("position:part",function(n,i,r,o,s,l){s<l?n.mm(o(s,i.x,r.x-i.x,l),o(s,i.y,r.y-i.y,l),!1):n.position=new $(o(s,i.x,r.x-i.x,l),o(s,i.y,r.y-i.y,l))}),e.add("location",function(n,i,r,o,s,l){s<l?n.mm(o(s,i.x,r.x-i.x,l),o(s,i.y,r.y-i.y,l),!0):n.location=new $(o(s,i.x,r.x-i.x,l),o(s,i.y,r.y-i.y,l))}),e.add("position:placeholder",function(n,i,r,o,s,l){s<l?n.mm(o(s,i.x,r.x-i.x,l),o(s,i.y,r.y-i.y,l),!1):n.position=new $(o(s,i.x,r.x-i.x,l),o(s,i.y,r.y-i.y,l))}),e.add("position:nodeCollapse",function(n,i,r,o,s,l){var u=n.actualBounds,d=r.actualBounds;r=d.x+d.width/2-u.width/2,u=d.y+d.height/2-u.height/2,s<l?n.mm(o(s,i.x,r-i.x,l),o(s,i.y,u-i.y,l),!1):n.position=new $(o(s,i.x,r-i.x,l),o(s,i.y,u-i.y,l))}),e.add("desiredSize",function(n,i,r,o,s,l){n.desiredSize=new ke(o(s,i.width,r.width-i.width,l),o(s,i.height,r.height-i.height,l))}),e.add("width",function(n,i,r,o,s,l){n.width=o(s,i,r-i,l)}),e.add("height",function(n,i,r,o,s,l){n.height=o(s,i,r-i,l)}),e.add("fill",function(n,i,r,o,s,l){n.fill=ms(i,r,s,l,o)}),e.add("stroke",function(n,i,r,o,s,l){n.stroke=ms(i,r,s,l,o)}),e.add("strokeWidth",function(n,i,r,o,s,l){n.strokeWidth=o(s,i,r-i,l)}),e.add("strokeDashOffset",function(n,i,r,o,s,l){n.strokeDashOffset=o(s,i,r-i,l)}),e.add("background",function(n,i,r,o,s,l){n.background=ms(i,r,s,l,o)}),e.add("areaBackground",function(n,i,r,o,s,l){n.areaBackground=ms(i,r,s,l,o)}),e.add("opacity",function(n,i,r,o,s,l){n.opacity=o(s,i,r-i,l)}),e.add("scale",function(n,i,r,o,s,l){n.scale=o(s,i,r-i,l)}),e.add("angle",function(n,i,r,o,s,l){n.angle=o(s,i,r-i,l)}),nn=e}te.Object.defineProperties(ti.prototype,{animationReasons:{get:function(){return this.Zd}},isEnabled:{get:function(){return this.Jd},set:function(t){(this.Jd=t)&&this.Ei.each(function(e){e.isAnimating||e.runCount!==1/0||e.start()})}},duration:{get:function(){return this.Dg},set:function(t){1>t&&Fn(t,">= 1",ti,"duration"),this.Dg=t}},isAnimating:{get:function(){return this.bc}},isTicking:{get:function(){return this.vq}},isInitial:{get:function(){return this.Gh},set:function(t){this.Gh=t}},defaultAnimation:{get:function(){return this.ce}},activeAnimations:{get:function(){return this.Ei}},initialAnimationStyle:{get:function(){return this.Pk},set:function(t){this.Pk=t}}}),ti.prototype.stopAnimation=ti.prototype.Cc;var nn=null,Gs=!1,la=new le(ti,"Default",1),on=new le(ti,"AnimateLocations",2),Ws=new le(ti,"None",3);ti.className="AnimationManager",ti.defineAnimationEffect=function(t,e){Gs||(qs(),Gs=!0),nn.add(t,e)},ti.Default=la,ti.AnimateLocations=on,ti.None=Ws;function zo(t){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=va,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=Wi,this.vc=new pt,this.Tt=new pt,this.yl=new je,this.Ut=new je,this.dw=wh,t&&Object.assign(this,t)}zo.prototype.suspend=function(){this.Xk=!0},zo.prototype.advanceTo=function(t,e){e&&(this.Xk=!1),this.ho&&t>=this.Gd&&(this.Wk=!0,t-=this.Gd),this.gw=t,ba(this,!0),rr(this.Yd),jo(this.H),Hr(this.Yd),this.H.redraw()};function pa(t,e){if(t.Tt.clear(),t.Wk=!1,t.au=0,t.Gd=NaN,0<t.yl.count&&t.yl.clear(),0<t.Ut.count&&t.Ut.clear(),e!==null)for(t=e.links;t.next();)t.value.Tg=null}D=zo.prototype,D.start=function(){if(this.vc.count===0||this.bc)return this;for(var t=this.H,e=this.vc.iterator;e.next();){var n=e.key;t===null&&(n instanceof ue?t=n:n instanceof Wt&&(t=n.diagram))}if(t!==null)this.H=t,this.Yd=t.animationManager;else return this;return e=this.Yd,e.isEnabled===!1?this:(this.Gd=isNaN(this.Dg)?e.duration:this.Dg,this.Lp=this.ot,e.Ok&&e.Pk===la&&this===e.defaultAnimation&&(this.Lp=Ua,this.Gd=isNaN(this.Dg)?e.duration===600?900:e.duration:this.Dg),this.dw=t.scrollMode,this.isViewportUnconstrained&&(t.sj=Wd),rr(e),this.yl.each(function(i){i.data=null,t.add(i)}),Hr(e),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,bo(e,this),this)},D.Iy=function(t,e){return t.Zc()?(this.yl.add(t),this.H=e,this):this},D.add=function(t,e,n,i,r){if(e==="position"&&n.Xa(i))return this;if(this.H===null&&(t instanceof ue?this.H=t:t instanceof Wt&&t.diagram!==null&&(this.H=t.diagram)),t instanceof li){if(!t.isAnimated)return this;e==="position"&&(e="position:part")}return bs(this,t,e,n,i,r),this};function bs(t,e,n,i,r,o){var s=t.vc;if(e instanceof ue&&n==="position"&&(n="position:diagram"),(n==="fill"||n==="stroke"||n==="background"||n==="areaBackground")&&(sh(i),fg(),i=[vu.j,vu.u,vu.o,vu.F],sh(r),fg(),r=[vu.j,vu.u,vu.o,vu.F]),s.contains(e)){var l=s.I(e),u=l.start,d=l.end;u[n]===void 0&&(u[n]=To(i)),d[n]=To(r)}else u={},d={},u[n]=To(i),d[n]=To(r),l=u.position,e instanceof Wt&&l instanceof $&&!l.w()&&e.diagram.animationManager.Zd.contains("Expand SubGraph")&&l.assign(d.position),l=new Tl(u,d,o),s.add(e,l);s=u[n],s instanceof $&&!s.w()&&s.assign(t.o),o&&n.indexOf("position:")===0&&e instanceof li?l.Ku.location=To(e.location):o&&(l.Ku[n]=To(i))}function To(t){return t instanceof $||t instanceof ni?t.copy():t}D.fv=function(t){return this.bc?(t=this.vc.I(t),t!==null&&t.nv):!1},D.Xu=function(t){return this.bc?(t=this.vc.I(t),t!==null&&(t.start.position||t.start.location)):!1};function ba(t,e){if(!t.Xk||e){var n=t.Yd;if(t.bc!==!1){var i=+new Date,r=i>t.cn?t.Gd:i-t.Qd;e&&(r=t.gw,r<t.Gd?(t.Qd=+new Date-r,t.cn=t.Qd+t.Gd):r=t.Gd),rr(n),La(t,r),jo(t.H,!0),Hr(n),i>t.cn&&(t.ho&&!t.Wk?(t.Qd=+new Date,t.cn=t.Qd+t.Gd,t.Wk=!0):t.Ml(!1))}}}function La(t,e){for(var n=t.Gd,i=t.vc.iterator,r=t.Wk;i.next();){var o=i.key;if(!(o instanceof Wt&&o.diagram===null)){var s=i.value,l=r?s.end:s.start;s=r?s.start:s.end;var u=nn,d;for(d in s)d==="position"&&(s["position:placeholder"]||s["position:nodeCollapse"])||u.get(d)===null||u.get(d)(o,l[d],s[d],t.Lp,e,n,t)}}}D.stop=function(){return this.bc?(this.Ml(!0),this):this},D.Ml=function(t){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var e=this.H,n=this.Yd;this.Xk=this.bc=n.Ok=!1,rr(n);for(var i=this.vc,r=this.yl.iterator;r.next();)e.remove(r.value);for(r=this.Ut.iterator;r.next();)r.value.v();r=this.ho,i=i.iterator;for(var o=nn;i.next();){var s=i.key,l=i.value,u=r?l.end:l.start,d=r?l.start:l.end,p=l.Ku,v;for(v in d)if(o.get(v)!==null){var E=v;!l.Hu||E!=="position:nodeCollapse"&&E!=="position:placeholder"||(E="position"),o.get(E)(s,u[v],p[v]!==void 0?p[v]:l.Hu?u[v]:d[v],this.Lp,this.Gd,this.Gd,this)}l.Hu&&p.location!==void 0&&s instanceof li&&(s.location=p.location),l.nv&&s instanceof li&&s.Zb(!1)}if(e.As.clear(),Nl(e,!1),e.Ya(),e.N(),jo(e,!0),n.defaultAnimation===this){for(v=n.pr.iterator;v.next();)r=v.value,r.Tg!==null&&(r.points=r.Tg,r.Tg=null);n.pr.clear()}jo(e,!0),this.isViewportUnconstrained&&(e.scrollMode=this.dw),Hr(n),this.au++,!t&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),pa(this,null),n.Ml(this),e.$b())}},D.Cj=function(t,e){var n=e.actualBounds,i=null;if(e instanceof Ki&&(i=e.placeholder),i!==null?(n=i.ga(Fs),i=i.padding,n.x+=i.left,n.y+=i.top,this.add(t,"position",n,t.position,!1)):this.add(t,"position",new $(n.x+n.width/2,n.y+n.height/2),t.position,!1),this.add(t,"scale",.01,t.scale,!1),t instanceof Ki)for(t=t.memberParts;t.next();)i=t.value,i instanceof Rn&&this.Cj(i,e)},D.Aj=function(t,e){if(t.isVisible()){var n=null;if(e instanceof Ki&&(n=e.placeholder),n!==null){var i=n.ga(Fs);n=n.padding,i.x+=n.left,i.y+=n.top,this.add(t,"position:placeholder",t.position,i,!0)}else this.add(t,"position:nodeCollapse",t.position,e,!0);if(this.add(t,"scale",t.scale,.01,!0),i=this.vc,i.contains(t)&&(i.I(t).nv=!0),t instanceof Ki)for(t=t.memberParts;t.next();)i=t.value,i instanceof Rn&&this.Aj(i,e)}},D.Ez=function(t){var e=this.Tt.get(t);return e===null&&(e={},this.Tt.add(t,e)),e},te.Object.defineProperties(zo.prototype,{duration:{get:function(){return this.Dg},set:function(t){1>t&&Fn(t,">= 1",zo,"duration"),this.Dg=t}},reversible:{get:function(){return this.ho},set:function(t){this.ho=t}},runCount:{get:function(){return this.cu},set:function(t){0<t?this.cu=t:ne("Animation.runCount value must be a positive integer.")}},finished:{get:function(){return this.dn},set:function(t){this.dn!==t&&(this.dn=t)}},easing:{get:function(){return this.ot},set:function(t){this.ot=t}},isViewportUnconstrained:{get:function(){return this.j},set:function(t){this.j=t}},isAnimating:{get:function(){return this.bc}}}),zo.prototype.getTemporaryState=zo.prototype.Ez,zo.prototype.stop=zo.prototype.stop,zo.prototype.add=zo.prototype.add,zo.prototype.addTemporaryPart=zo.prototype.Iy;function va(t,e,n,i){return t/=i/2,1>t?n/2*t*t+e:-n/2*(--t*(t-2)-1)+e}function Ua(t,e,n,i){return t===i?e+n:n*(-Math.pow(2,-10*t/i)+1)+e}zo.className="Animation",zo.EaseLinear=function(t,e,n,i){return n*t/i+e},zo.EaseInOutQuad=va,zo.EaseInQuad=function(t,e,n,i){return n*(t/=i)*t+e},zo.EaseOutQuad=function(t,e,n,i){return-n*(t/=i)*(t-2)+e},zo.EaseInExpo=function(t,e,n,i){return t===0?e:n*Math.pow(2,10*(t/i-1))+e},zo.EaseOutExpo=Ua;function Tl(t,e,n){this.start=t,this.end=e,this.Ku={},this.Hu=n,this.nv=!1}Tl.className="AnimationState";function Va(t,e,n){this.xd=null,this.rf=t,this.so=n||ps,this.uk=null,e!==void 0&&(this.uk=e,n===void 0&&(this.so=Bs))}Va.prototype.copy=function(){var t=new Va(this.rf);t.so=this.so;var e=this.uk;if(e!==null){var n={};e.duration!==void 0&&(n.duration=e.duration),e.finished!==void 0&&(n.finished=e.finished),e.easing!==void 0&&(n.easing=e.easing),t.uk=n}return t};function Xo(t,e){t=t.uk,t!==null&&(t.duration&&(e.duration=t.duration),t.finished&&(e.finished=t.finished),t.easing&&(e.easing=t.easing))}te.Object.defineProperties(Va.prototype,{propertyName:{get:function(){return this.rf},set:function(t){this.rf=t}},animationSettings:{get:function(){return this.uk},set:function(t){this.uk=t}},startCondition:{get:function(){return this.so},set:function(t){this.so=t}}});var ps=new le(Va,"Default",1),Bs=new le(Va,"Immediate",2),fs=new le(Va,"Bundled",3);Va.className="AnimationTrigger",Va.Default=ps,Va.Immediate=Bs,Va.Bundled=fs;function $o(t){nr(this),this.H=null,this.Pa=new Re,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=[],t&&Object.assign(this,t)}D=$o.prototype,D.clear=function(){for(var t=this.Pa,e=0;e<t.length;e++){var n=t.s[e];n.Ig=null,Xa(n)}t.clear(),this.Zq.length=0},D.Xe=function(t){this.H=t},D.toString=function(t){t===void 0&&(t=0);var e='Layer "'+this.name+'"';if(0>=t)return e;for(var n=0,i=0,r=0,o=0,s=0,l=this.Pa.iterator;l.next();){var u=l.value;u instanceof Ki?r++:u instanceof Rn?i++:u instanceof pn?o++:u instanceof jr?s++:n++}if(l="",0<n&&(l+=n+" Parts "),0<i&&(l+=i+" Nodes "),0<r&&(l+=r+" Groups "),0<o&&(l+=o+" Links "),0<s&&(l+=s+" Adornments "),1<t)for(t=this.Pa.iterator;t.next();)n=t.value,l+=`
|
|
|
`+n.toString(),i=n.data,i!==null&&Br(i)&&(l+=" #"+Br(i)),n instanceof Rn?l+=" "+yn(i):n instanceof pn&&(l+=" "+yn(n.fromNode)+" "+yn(n.toNode));return e+" "+this.Pa.count+": "+l},D.ic=function(t,e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),this.Uh===!1)return null;var i=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(t)&&(i=!0);for(var r=$.alloc(),o=this.Pa.s,s=o.length;s--;){var l=o[s];if((i!==!0||Xh(l)!==!1)&&l.isVisible()&&(r.assign(t),se(r,l.oe),l=l.ic(r,e,n),l!==null&&(e!==null&&(l=e(l)),l!==null&&(n===null||n(l)))))return $.free(r),l}return $.free(r),null},D.ji=function(t,e,n,i){if(e===void 0&&(e=null),n===void 0&&(n=null),i instanceof Re||i instanceof je||(i=new je),this.Uh===!1)return i;var r=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(t)&&(r=!0);for(var o=$.alloc(),s=this.Pa.s,l=s.length;l--;){var u=s[l];if((r!==!0||Xh(u)!==!1)&&u.isVisible()){o.assign(t),se(o,u.oe);var d=u;u.ji(o,e,n,i)&&(e!==null&&(d=e(d)),d===null||n!==null&&!n(d)||i.add(d))}}return $.free(o),i},D.Cf=function(t,e,n,i,r){if(e===void 0&&(e=null),n===void 0&&(n=null),i===void 0&&(i=!1),r instanceof Re||r instanceof je||(r=new je),this.Uh===!1)return r;var o=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(t)&&(o=!0);for(var s=this.Pa.s,l=s.length;l--;){var u=s[l];if((o!==!0||Xh(u)!==!1)&&u.isVisible()){var d=u;u.Cf(t,e,n,i,r)&&(e!==null&&(d=e(d)),d===null||n!==null&&!n(d)||r.add(d))}}return r},D.Nu=function(t,e,n,i,r,o,s){if(this.Uh===!1)return r;for(var l=this.Pa.s,u=l.length;u--;){var d=l[u];if((s!==!0||Xh(d)!==!1)&&o(d)&&d.isVisible()){var p=d;d.Cf(t,e,n,i,r)&&(e!==null&&(p=e(p)),p===null||n!==null&&!n(p)||r.add(p))}}return r},D.og=function(t,e,n,i,r,o){if(n===void 0&&(n=null),i===void 0&&(i=null),r===void 0&&(r=!0),r!==!1&&r!==!0&&((r instanceof Re||r instanceof je)&&(o=r),r=!0),o instanceof Re||o instanceof je||(o=new je),this.Uh===!1)return o;var s=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(t)&&(s=!0);for(var l=$.alloc(),u=$.alloc(),d=this.Pa.s,p=d.length;p--;){var v=d[p];if((s!==!0||Xh(v)!==!1)&&v.isVisible()){l.assign(t),se(l,v.oe),u.h(t.x+e,t.y),se(u,v.oe);var E=v;v.og(l,u,n,i,r,o)&&(n!==null&&(E=n(E)),E===null||i!==null&&!i(E)||o.add(E))}}return $.free(l),$.free(u),o},D.Fd=function(t,e){if(this.visible){var n=this.Pa.s,i=n.length;if(i!==0){t=Le();for(var r=Le(),o=0;o<i;o++){var s=n[o];if(s.vw=o,s instanceof pn){if(s.fd===!1)continue}else if(s instanceof jr&&s.adornedPart!==null)continue;var l=s.actualBounds;s.isVisible()&&Ko(l,e)?(s.Fd(!0),t.push(s)):(s.Fd(!1),s.adornments!==null&&0<s.adornments.count&&r.push(s))}for(e=0;e<t.length;e++)for(n=t[e],Hg(n),n=n.adornments;n.next();)i=n.value,i.measure(1/0,1/0),i.arrange(),i.Fd(!0);for(e=0;e<r.length;e++)Hg(r[e]);tn(t),tn(r)}}};function Hs(t,e){var n=1;return t.pb!==1&&(n=e.globalAlpha,e.globalAlpha=n*t.pb),n}D.gc=function(t,e,n){if(this.visible&&this.pb!==0&&(n===void 0&&(n=!0),n||!this.isTemporary)){n=this.Pa.s;var i=n.length;if(i!==0){if(t.isTemporary)for(var r=0;r<i;r++)n[r].Gj();r=Hs(this,t);var o=this.Zq;o.length=0;for(var s=e.scale,l=ke.alloc(),u=0;u<i;u++)this.Oj(t,n[u],e,o,s,l,!0);if(ke.free(l),t.isTemporary)for(e=0;e<i;e++)n[e].Gj();t.globalAlpha=r}}};function Ra(t,e,n,i,r){if(t.visible&&t.pb!==0&&(r||!t.isTemporary)){r=t.Pa.s;var o=r.length;if(o!==0){var s=Hs(t,e),l=t.Zq;l.length=0;for(var u=n.scale,d=ke.alloc(),p=0;p<o;p++){var v=r[p];i.contains(v)&&t.Oj(e,v,n,l,u,d,!1)}ke.free(d),e.globalAlpha=s}}}D.Oj=function(t,e,n,i,r,o,s){if(s&&!Xh(e))t.Hs(e);else{if(i!==null&&e instanceof pn&&(e.isOrthogonal&&i.push(e),e.fd===!1)){t.Hs(e);return}for(s=!1,i=e.containingGroup;i!==null;)s?i.tb!==null&&o.Ex(i.tb):i.tb!==null&&(s=!0,o.assign(i.tb)),i=i.containingGroup;var l=e.actualBounds;if(i=!1,s&&e.isVisible()){if(!o.Yc(l)){t.Hs(e);return}i=!o.Re(l)}i&&(t.save(),t instanceof Xl?t.bk=o.copy():(t.beginPath(),t.rect(o.x,o.y,o.width,o.height),t.clip())),l.width*r>n.Oq||l.height*r>n.Oq?e.gc(t,n):(r=e.actualBounds,o=e.naturalBounds,r.width===0||r.height===0||isNaN(r.x)||isNaN(r.y)||!e.isVisible()||(n=e.transform,e.areaBackground!==null&&(Ss(e,t,e.areaBackground,!0,!0,o,r),t.fillRect(r.x,r.y,r.width,r.height)),e.areaBackground===null&&e.background===null&&(Ss(e,t,"rgba(0,0,0,0.3)",!0,!1,o,r),t.fillRect(r.x,r.y,r.width,r.height)),e.background!==null&&(t.transform(n.m11,n.m12,n.m21,n.m22,n.dx,n.dy),Ss(e,t,e.background,!0,!1,o,r),t.fillRect(0,0,o.width/2,o.height/2),n.ws()||(e=1/(n.m11*n.m22-n.m12*n.m21),t.transform(n.m22*e,-n.m12*e,-n.m21*e,n.m11*e,e*(n.m21*n.dy-n.m22*n.dx),e*(n.m12*n.dx-n.m11*n.dy)))))),i&&(t.restore(),t.Vc(!0))}},D.g=function(t,e,n,i,r){var o=this.diagram;o!==null&&o.cb(Ro,t,this,e,n,i,r)},D.oi=function(t,e,n){var i=this.Pa;if(e.Ig=this,this===null&&Xa(e),t>=i.count)t=i.count;else if(i.M(t)===e)return-1;return i.Gb(t,e),e.Vo(n),i=this.diagram,i!==null&&(n?i.N():i.oi(e)),kl(this,t,e),t},D.pc=function(t,e,n){if(!n&&e.layer!==this&&e.layer!==null)return e.layer.pc(t,e,n);var i=this.Pa;if(0>t||t>=i.length){if(t=i.indexOf(e),0>t)return-1}else if(i.M(t)!==e&&(t=i.indexOf(e),0>t))return-1;return e.Wo(n),i.mb(t),i=this.diagram,i!==null&&(n?i.N():i.pc(e)),e.Ig=null,Xa(e),t};function kl(t,e,n){if(e=qc(t,e,n),n instanceof Ki&&n!==null&&isNaN(n.zOrder)){if(n.memberParts.count!==0){for(var i=-1,r=t.Pa.s,o=r.length,s=0;s<o;s++){var l=r[s];if(l===n&&(e=s,0<=i)||0>i&&l.containingGroup===n&&(i=s,0<=e))break}!(0>i)&&i<e&&(r=t.Pa,r.mb(e),r.Gb(i,n))}e=n.containingGroup,e!==null&&kl(t,-1,e)}n.svg!==null&&n.svg.remove()}function qc(t,e,n){var i=n.zOrder;if(isNaN(i))return e;t=t.Pa;var r=t.count;if(1>=r)return e;if(0>e&&(e=t.indexOf(n)),0>e)return-1;for(var o=e-1,s=NaN;0<=o&&(s=t.M(o).zOrder,!!isNaN(s));)o--;for(var l=e+1,u=NaN;l<r&&(u=t.M(l).zOrder,!!isNaN(u));)l++;if(!isNaN(s)&&s>i)for(;;){if(o===-1||s<=i){if(o++,o===e)break;return t.mb(e),t.Gb(o,n),o}for(s=NaN;0<=--o&&(s=t.M(o).zOrder,isNaN(s)););}else if(!isNaN(u)&&u<i)for(;;){if(l===r||u>=i){if(l--,l===e)break;return t.mb(e),t.Gb(l,n),l}for(u=NaN;++l<r&&(u=t.M(l).zOrder,isNaN(u)););}return e}te.Object.defineProperties($o.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(t){var e=this.xa;if(e!==t){var n=this.diagram;if(n!==null)for(e===""&&ne("Cannot rename default Layer to: "+t),n=n.layers;n.next();)n.value.name===t&&ne("Layer.name is already present in this diagram: "+t);for(this.xa=t,this.g("name",e,t),t=this.Pa.iterator;t.next();)t.value.layerName=this.xa}}},opacity:{get:function(){return this.pb},set:function(t){var e=this.pb;e!==t&&((0>t||1<t)&&Fn(t,"0 <= value <= 1",$o,"opacity"),this.pb=t,this.g("opacity",e,t),t=this.diagram,t!==null&&t.N())}},isTemporary:{get:function(){return this.o},set:function(t){var e=this.o;e!==t&&((this.o=t)&&(this.isInDocumentBounds=!1),this.g("isTemporary",e,t))}},visible:{get:function(){return this.u},set:function(t){var e=this.u;if(e!==t){for(this.u=t,this.g("visible",e,t),e=this.Pa.iterator;e.next();)e.value.Zb(t);t=this.diagram,t!==null&&t.N()}}},pickable:{get:function(){return this.Uh},set:function(t){var e=this.Uh;e!==t&&(this.Uh=t,this.g("pickable",e,t))}},isInDocumentBounds:{get:function(){return this.j},set:function(t){this.j!==t&&(this.j=t,this.diagram!==null&&this.diagram.Ya())}},allowCopy:{get:function(){return this.Fi},set:function(t){var e=this.Fi;e!==t&&(this.Fi=t,this.g("allowCopy",e,t))}},allowDelete:{get:function(){return this.Gi},set:function(t){var e=this.Gi;e!==t&&(this.Gi=t,this.g("allowDelete",e,t))}},allowTextEdit:{get:function(){return this.Pi},set:function(t){var e=this.Pi;e!==t&&(this.Pi=t,this.g("allowTextEdit",e,t))}},allowGroup:{get:function(){return this.Hi},set:function(t){var e=this.Hi;e!==t&&(this.Hi=t,this.g("allowGroup",e,t))}},allowUngroup:{get:function(){return this.Qi},set:function(t){var e=this.Qi;e!==t&&(this.Qi=t,this.g("allowUngroup",e,t))}},allowLink:{get:function(){return this.Ii},set:function(t){var e=this.Ii;e!==t&&(this.Ii=t,this.g("allowLink",e,t))}},allowRelink:{get:function(){return this.Ki},set:function(t){var e=this.Ki;e!==t&&(this.Ki=t,this.g("allowRelink",e,t))}},allowMove:{get:function(){return this.Ji},set:function(t){var e=this.Ji;e!==t&&(this.Ji=t,this.g("allowMove",e,t))}},allowReshape:{get:function(){return this.Li},set:function(t){var e=this.Li;e!==t&&(this.Li=t,this.g("allowReshape",e,t))}},allowResize:{get:function(){return this.Mi},set:function(t){var e=this.Mi;e!==t&&(this.Mi=t,this.g("allowResize",e,t))}},allowRotate:{get:function(){return this.Ni},set:function(t){var e=this.Ni;e!==t&&(this.Ni=t,this.g("allowRotate",e,t))}},allowSelect:{get:function(){return this.Oi},set:function(t){var e=this.Oi;e!==t&&(this.Oi=t,this.g("allowSelect",e,t))}}}),$o.prototype.findObjectsNear=$o.prototype.og,$o.prototype.findObjectsIn=$o.prototype.Cf,$o.prototype.findObjectsAt=$o.prototype.ji,$o.prototype.findObjectAt=$o.prototype.ic,$o.className="Layer";function ue(t,e){if(y0||(Za(),y0=!0),nr(this),oi=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,gs){var n=this,i=function(){n.removeEventListener(Ft.document,"DOMContentLoaded",i,!1),n.setRTL()};Ft.document.body!==null?this.setRTL():n.addEventListener(Ft.document,"DOMContentLoaded",i,!1)}this.ol=null,Sp.add("Model",so);var r=this;return this.Hb=function(o){var s=r.partManager;if(o.model===s.diagram.model&&s.diagram.aa){s.diagram.aa=!1;try{var l=o.change;o.modelChange===""&&l===Ro&&s.updateDataBindings(o.object,o.propertyName)}finally{s.diagram.aa=!0}}},this.Oc=function(o){r.partManager.doModelChanged(o)},this.hu=this.ku=null,hr(this),this.model=yv(),this.Wg=!0,C(this),this.layout=new ts,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 x0,t!==void 0&&(typeof t=="string"||Ft.Element&&t instanceof Element?ks(this,t):e=t),this.vb=!1,e&&this.nm(e),this}var Tu,oi;function hr(t){t.Yd=new ti,t.Yd.Xe(t),t.Db=17,t.Gw=!1,t.tn=!1,t.bu="default",t.Wa=new Re,t.pj=new pt,t.nl="default",t.Tx(),t.Sx(),t.pb=1,t.pa=new $(NaN,NaN).freeze(),t.du=new $(NaN,NaN),t.Ca=1,t.Pp=1,t.zt=new $(NaN,NaN).freeze(),t.At=NaN,t.Ot=1e-4,t.Mt=100,t.Ab=new Ti,t.zu=new $(NaN,NaN).freeze(),t.ut=new ke(NaN,NaN,NaN,NaN).freeze(),t.rj=new ri(0,0,0,0).freeze(),t.sj=wh,t.nu=!1,t.Zt=null,t.fu=null,t.yh=el,t.zk=_r,t.Fg=el,t.pq=_r,t.yt=Fs,t.Bt=Fs,t.Fc=!0,t.pn=!1,t.De=new je,t.Eh=new pt,t.Xm=!0,t.vp=250,t.vk=-1,t.xp=new ri(16,16,16,16).freeze(),t.kg=!1,t.Jk=!1,t.fn=!0,t.bq=new ra,t.bq.diagram=t,t.Qg=new ra,t.Qg.diagram=t,t.cj=new ra,t.cj.diagram=t,t.zg=null,t.pf=null,t.qu=!1,yp(t),t.ai=new je,t.Ht=!0,t.uu=Ch,t.pw=!1,t.wu=Gd,t.it="auto",t.Op="auto",t.zh=null,t.Fh=null,t.Bh=null,t.Qh=null,t.Oh=null,t.Nh=null,t.Qt=null,t.Lh=null,t.xt=!1,t.Mh=null,t.Ph=null,t.$h=null,t.Ch=null,t.Rt=!1,t.Yt={},t.oj=[null,null],t.Wg=!1,t.Iw=!1,t.ou=!1,t.lt=!1,t.rw=!0,t.ld=!1,t.$i=!1,t.Tw=!0,t.Ce=-2,t.Og=new pt,t.Xn=new Re,t.Gg=!1,t.Jd=!0,t.Us=!0,t.Fi=!0,t.Gi=!0,t.Vs=!1,t.Ws=!0,t.Pi=!0,t.Hi=!0,t.Qi=!0,t.Ys=!0,t.Ii=!0,t.Ki=!0,t.Ji=!0,t.Li=!0,t.Mi=!0,t.Ni=!0,t.Oi=!0,t.Zs=!0,t.at=!0,t.qw=!1,t.Vk=!1,t.mn=!0,t.nn=!0,t.Xs=!0,t.$s=!0,t.iu=16,t.mu=16,t.qr=!1,t.gu=!1,t.lu=0,t.ju=0,t.yb=new ri(5).freeze(),t.Hw=new je().freeze(),t.Nt=999999999,t.nw=new je().freeze(),t.Zi=!0,t.Ee=!0,t.vd=!0,t.Be=!1,t.gf=!1,t.xh=!0,t.hf=!1,t.sy=new je,t.ow=new je,t.Xh=null,t.aw=new ni(8,8),t.bw=999,t.Bw=1,t.Jw=0,t.fc={scale:1,position:new $,bounds:new ke,Py:new ni,bA:new ni,Oz:!1},t.fc.canvasSize=t.fc.Py,t.fc.newCanvasSize=t.fc.bA,t.fc.isScroll=!1,t.Rw=new ke(NaN,NaN,NaN,NaN).freeze(),t.wo=new ni(NaN,NaN).freeze(),t.Sp=new ke(NaN,NaN,NaN,NaN).freeze(),t.It=!1,t.Lg=new pt;var e=new Rn,n=new Do;n.bind(new zs("text","",yn)),e.add(n),t.ny=e,t.Lg.add("",e),e=new Rn,n=new Do,n.stroke="brown",n.bind(new zs("text","",yn)),e.add(n),t.Lg.add("Comment",e),e=new Rn,e.selectable=!1,e.avoidable=!1,n=new Qi,n.figure="Ellipse",n.fill="black",n.stroke=null,n.desiredSize=new ni(3,3).ja(),e.add(n),t.Lg.add("LinkLabel",e),t.Yi=new pt,e=new Ki,e.selectionObjectName="GROUPPANEL",e.type=sn.Vertical,n=new Do,n.font="bold 12pt sans-serif",n.bind(new zs("text","",yn)),e.add(n),n=new sn(sn.Auto),n.name="GROUPPANEL";var i=new Qi;i.figure="Rectangle",i.fill="rgba(128,128,128,0.2)",i.stroke="black",n.add(i),i=new ml,i.padding=new ri(5,5,5,5).ja(),n.add(i),e.add(n),t.ly=e,t.Yi.add("",e),t.Kh=new pt,e=new pn,n=new Qi,n.isPanelMain=!0,e.add(n),n=new Qi,n.toArrow="Standard",n.fill="black",n.stroke=null,n.strokeWidth=0,e.add(n),t.my=e,t.Kh.add("",e),e=new pn,n=new Qi,n.isPanelMain=!0,n.stroke="brown",e.add(n),t.Kh.add("Comment",e),e=new jr,e.type=sn.Auto,n=new Qi,n.fill=null,n.stroke="dodgerblue",n.strokeWidth=3,e.add(n),n=new ml,n.margin=new ri(1.5,1.5,1.5,1.5).ja(),e.add(n),t.St=e,t.wt=e,e=new jr,e.type=sn.Link,n=new Qi,n.isPanelMain=!0,n.fill=null,n.stroke="dodgerblue",n.strokeWidth=3,e.add(n),t.Kt=e,t.fe=null,t.mq=!1,t.Ck=null,t.partManager=new so,t.toolManager=new Bo,t.toolManager.initializeStandardTools(),t.defaultTool=t.toolManager,t.currentTool=t.defaultTool,t.nt=null,t.Wm=new c,t.Vt=null,t.Wt=null,t.Mr=!1,t.commandHandler=Qo(),t.eq=null,t.fq=Ui,t.Pw=!1,t.Mb=1,t.Yh=null,t.Oq=1,t.Sq=0,t.zw=[0,0,0,0,0],t.Tq=0,t.yq=1,t.tw=0,t.uw=new $,t.zy=500,t.wp=new $,t.wq=!1}ue.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),bd=null,Vh="",Io(this,!1),this.Xn.clear(),Dp(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function Io(t,e){t.animationManager.Cc(!0),t.Hw=new je().freeze(),t.nw=new je().freeze();var n=t.skipsUndoManager,i=t.cc!==null&&t.cc!==void 0;i&&(t.skipsUndoManager=!0);var r=null;t.fe!==null&&(r=t.fe.part,r!==null&&t.remove(r));var o=[],s=t.Wa.length;if(e){for(e=0;e<s;e++)for(var l=t.Wa.s[e].parts;l.next();){var u=l.value;u!==r&&u.data===null&&o.push(u)}for(e=0;e<o.length;e++)t.remove(o[e])}for(e=0;e<s;e++)t.Wa.s[e].clear();return t.partManager.clear(),t.De.clear(),t.Eh.clear(),t.ai.clear(),t.Ck=null,t.Xn.clear(),Dp(),t.Og.clear(),Mi=[],r!==null&&(t.add(r),t.partManager.parts.remove(r)),i&&(t.skipsUndoManager=n),o}function Qo(){return null}ue.prototype.reset=function(){this.clear(),this.vb=!0,hr(this),pu(this),this.Wg=!0,C(this),this.layout=new ts,this.Wg=!1,this.model=yv(),this.model.undoManager=new Ho,this.vb=this.rn=!1,this.N()},ue.prototype.setRTL=function(t){t=t===void 0?this.div:t,t===null&&(t=Ft.document.body);var e=kn("div");e.dir="rtl",e.style.cssText="font-size: 14px; width: 1px; height: 1px; position: absolute; top: -1000px; overflow: scroll;",e.textContent="A",t.appendChild(e);var n="reverse";0<e.scrollLeft?n="default":(e.scrollLeft=1,e.scrollLeft===0&&(n="negative")),t.removeChild(e),this.bu=n},ue.prototype.setScrollWidth=function(t){t=t===void 0?this.div:t,t===null&&(t=Ft.document.body);var e=0;if(gs){var n=v0;e=Tu,n===null&&(n=v0=kn("p"),n.style.width="100%",n.style.height="200px",n.style.boxSizing="content-box",e=Tu=kn("div"),e.style.position="absolute",e.style.visibility="hidden",e.style.width="200px",e.style.height="150px",e.style.boxSizing="content-box",e.appendChild(n)),e.style.overflow="hidden",t.appendChild(e);var i=n.offsetWidth;e.style.overflow="scroll",n=n.offsetWidth,i===n&&(n=e.clientWidth),t.removeChild(e),e=i-n,e!==0||ir||(e=11)}this.Db=e,this.Gw=!0},ue.prototype.qb=function(t){t.classType===ue&&(this.autoScale=t)},ue.prototype.toString=function(t){t===void 0&&(t=0);var e="";if(this.div&&this.div.id&&(e=this.div.id),e='Diagram "'+e+'"',0>=t)return e;for(var n=this.Wa.iterator;n.next();)e+=`
|
|
|
`+n.value.toString(t-1);return e};function ks(t,e){if(gs){if(e!=null||ne("Diagram setup requires an argument DIV."),t.Ka!==null&&ne("Diagram has already completed setup."),typeof e=="string"?t.Ka=Ft.document.getElementById(e):e instanceof HTMLDivElement?t.Ka=e:ne("No DIV or DIV id supplied: "+e),t.Ka===null&&ne("Invalid DIV id; could not get element with id: "+e),t.Ka.H!==void 0&&ne("Invalid div id; div already has a Diagram associated with it."),!t.ol&&Ft.ResizeObserver){var n=xn(function(){t.$b()},250);t.ol=new Ft.ResizeObserver(function(){n()}),t.ol.observe(t.Ka)}Ft.getComputedStyle(t.Ka,null).position==="static"&&(t.Ka.style.position="relative"),e=5;var i="rgba(2"+e+"5, 255, 255, 0)";e--,t.Ka.style["-webkit-tap-highlight-color"]=i,t.Ka.innerHTML="",t.Ka.H=t,t.Ka.goDiagram=t,t.Ka.go=Ft.go;var r=new Uu(t);if(r.style!==void 0&&(r.style.position="absolute",r.style.top="0px",r.style.left="0px",Ft.getComputedStyle(t.Ka,null).getPropertyValue("direction")==="rtl"&&(t.tn=!0),r.style.zIndex="2",r.style.userSelect="none",r.style.MozUserSelect="none",r.style.touchAction="none",r.style.letterSpacing="normal !important",r.style.wordSpacing="normal !important"),t.ta=r,t.ib=r.context,i=t.ib,t.Mb=t.computePixelRatio(),t.viewSize.w()||(t.Aa=t.Ka.clientWidth||1,t.ya=t.Ka.clientHeight||1),Sa(t,t.Aa,t.ya),t.Ka.insertBefore(r.Oa,t.Ka.firstChild),r=new Uu(null),r.width=1,r.height=1,t.jw=r,t.oy=r.context,gs){r=kn("div");var o=kn("div");r.style.position="absolute",r.style.overflow="auto",r.style.width=t.Aa+"px",r.style.height=t.ya+"px",r.style.zIndex="1",o.style.position="absolute",o.style.width="1px",o.style.height="1px",t.Ka.appendChild(r),r.appendChild(o),r.onscroll=x,r.addEventListener("pointerdown",A),r.H=t,r.uy=!0,r.vy=!0,t.ku=r,t.hu=o}t.hk=xn(function(){t.Yh=null,t.N()},300),t.Ov=xn(function(){zu(t)},250),t.preventDefault=function(s){return s.preventDefault(),!1},t.$j=function(s){if(t.isEnabled){var l=Qn(t,s,!0);l.bubbles=!0;var u=0,d=0;l.delta=0,s.deltaX!==void 0?(s.deltaX!==0&&(u=0<s.deltaX?1:-1),s.deltaY!==0&&(d=0<s.deltaY?1:-1),l.delta=Math.abs(s.deltaX)>Math.abs(s.deltaY)?-u:-d):s.wheelDeltaX!==void 0?(s.wheelDeltaX!==0&&(u=0<s.wheelDeltaX?-1:1),s.wheelDeltaY!==0&&(d=0<s.wheelDeltaY?-1:1),l.delta=Math.abs(s.wheelDeltaX)>Math.abs(s.wheelDeltaY)?-u:-d):s.wheelDelta!==void 0&&s.wheelDelta!==0&&(l.delta=0<s.wheelDelta?1:-1),t.doMouseWheel(),Xi(l,s)}},t.aA=function(s){t.isEnabled&&(t.Vk=!1,Qn(t,s,!0),s=t.currentTool,s.cancelWaitAfter(),s.standardMouseOver())},t.ui=function(s){if(t.isEnabled){t.Vk=!0;var l=t.Yt;l[s.pointerId]===void 0&&(l[s.pointerId]=s),l=t.oj;var u=!1;if(l[0]===null||l[0].pointerId!==s.pointerId&&l[0].pointerType===s.pointerType)if(l[1]!==null&&l[1].pointerId===s.pointerId)l[1]=s,u=!0;else if(l[0]===null)l[0]=s;else if(l[1]===null)l[1]=s,u=!0;else{s.preventDefault();return}else l[0]=s;(l=s.pointerType==="touch"||s.pointerType==="pen")&&(t.qu=!1,t.wq=!0);var d=u;u=Yi(t,s,!0,!1,!0,d),Ar(t,s,u),u.targetDiagram=si(s,s.target),u.targetObject=null,d||u.clone(t.bq),d=t.uw,l=l?25:10,s.timeStamp-t.tw<t.zy&&!(Math.abs(d.x-s.screenX)>l||Math.abs(d.y-s.screenY)>l)?t.yq++:t.yq=1,u.clickCount=t.yq,t.tw=s.timeStamp,t.uw.sg(s.screenX,s.screenY),t.doMouseDown(),s.button===1?s.preventDefault():Xi(u,s)}},t.dk=function(s){if(t.isEnabled){t.Vk=!0;var l=t.oj;if(l[0]===null||l[0].pointerId!==s.pointerId&&l[0].pointerType===s.pointerType){if(l[1]!==null&&l[1].pointerId===s.pointerId){l[1]=s;return}if(l[0]===null)l[0]=s;else return}else l[0]=s;if(l[0].pointerId===s.pointerId){l=Yi(t,s,!1,!1,!1,l[1]!==null);var u=Ft.document.elementFromPoint(s.clientX,s.clientY)||null;u!==null&&u.shadowRoot!==void 0&&u.shadowRoot!==null&&(u=u.shadowRoot.elementFromPoint(s.clientX,s.clientY));var d=t,p=s;u&&u.H&&(p=s,d=u.H),l.targetDiagram=d,Ar(t,p,l),l.targetObject=null,t.doMouseMove(),Xi(l,s)}}},t.fk=function(s){if(t.isEnabled){t.Vk=!0;var l=s.pointerType==="touch"||s.pointerType==="pen",u=t.Yt;if(l&&t.qu)delete u[s.pointerId],s.preventDefault();else if(u=t.oj,u[0]===null||u[0].pointerId!==s.pointerId&&u[0].pointerType===s.pointerType)u[1]!==null&&u[1].pointerId===s.pointerId&&(u[1]=null);else{u[0]=null,u=Yi(t,s,!1,!0,!0,!1);var d=Ft.document.elementFromPoint(s.clientX,s.clientY)||null;d!==null&&d.shadowRoot!==void 0&&d.shadowRoot!==null&&(d=d.shadowRoot.elementFromPoint(s.clientX,s.clientY)),d!==null&&d.H instanceof ue&&d.H!==t&&Ar(d.H,s,u),d===null&&(d=s.target),Ar(t,s,u),u.clickCount=t.yq,u.targetDiagram=si(s,d),u.targetObject=null,t.doMouseUp(),Xi(u,s),l&&(t.wq=!1)}}},t.ek=function(s){if(t.isEnabled){t.Vk=!1;var l=t.Yt;l[s.pointerId]&&delete l[s.pointerId],l=t.oj,l[0]!==null&&l[0].pointerId===s.pointerId&&(l[0]=null),l[1]!==null&&l[1].pointerId===s.pointerId&&(l[1]=null),s.pointerType!=="touch"&&s.pointerType!=="pen"&&(s=t.currentTool,s.cancelWaitAfter(),s.standardMouseOver())}},t.ck=function(s){var l=t.oj;l[0]!==null&&l[0].pointerId===s.pointerId?(l[0]=null,t.wq=!1):l[1]!==null&&l[1].pointerId===s.pointerId&&(l[1]=null)},t.Vp=i.Z["d"+Kd[1]+Kd[2]+"wI"+wd.slice(1,5)]["b"+Wx.slice(1,e)](i.Z,Vd,e,e),i.Vc(!0),zl(t),t.nl==="svg"&&(e=t.pj.get("svg"),t.Ka.appendChild(e.Oa),t.ib=e.context)}}ue.prototype.addEventListener=function(t,e,n,i){t.addEventListener(e,n,{capture:i,passive:!1})},ue.prototype.removeEventListener=function(t,e,n,i){t.removeEventListener(e,n,{capture:i})};function zl(t){var e=t.ta.Oa;e instanceof HTMLCanvasElement||(e=t.div),t.addEventListener(e,"pointerdown",t.ui,!1),t.addEventListener(e,"pointermove",t.dk,!1),t.addEventListener(e,"pointerup",t.fk,!1),t.addEventListener(e,"pointerout",t.ek,!1),t.addEventListener(e,"pointercancel",t.ck,!1),t.addEventListener(e,"pointerenter",t.bz,!1),t.addEventListener(e,"pointerleave",t.cz,!1),t.addEventListener(e,"wheel",t.$j,!1),t.addEventListener(e,"keydown",t.Qz,!1),t.addEventListener(e,"keyup",t.Rz,!1),t.addEventListener(e,"blur",t.Ny,!1),t.addEventListener(e,"focus",t.Oy,!1),t.addEventListener(e,"selectstart",function(n){return n.preventDefault(),!1},!1),t.addEventListener(e,"contextmenu",function(n){return n.preventDefault(),!1},!1),t.addEventListener(Ft,"resize",t.Ov,!1)}function Vs(t){30<t.Sq&&(t.Yh=1)}function Nl(t,e){t.Yh!==null&&(t.Yh=null,e&&t.hk(),Yr&&Yr.nx||(t.Sq=0,t.zw=[0,0,0,0,0],t.Tq=0))}ue.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Ft.devicePixelRatio||1},ue.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},ue.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},ue.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},ue.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},ue.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},ue.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},ue.prototype.doFocus=function(){this.focus()},ue.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var t=Ft.scrollX||Ft.pageXOffset,e=Ft.scrollY||Ft.pageYOffset;this.ta.focus(),Ft.scrollTo(t,e)}},ue.prototype.Oy=function(){this.H.R("GainedFocus")},ue.prototype.Ny=function(){this.H.R("LostFocus")};function zu(t){if(t.ta!==null){var e=t.Ka;if(e!==null&&e.clientWidth!==0&&e.clientHeight!==0){t.Gw||t.setScrollWidth();var n=t.gf?t.Db:0,i=t.Be?t.Db:0,r=t.Mb;t.Mb=t.computePixelRatio(),t.Mb!==r&&(t.pn=!0,t.$b()),(e.clientWidth!==t.Aa+n||e.clientHeight!==t.ya+i)&&(t.Ee=!0,t.Fc=!0,e=t.layout,e!==null&&e.isViewportSized&&t.autoScale===el&&(t.Jk=!0,e.C()),t.ld||t.$b())}}}function C(t){var e=new $o;e.name="Background",t.Al(e),e=new $o,e.name="",t.Al(e),e=new $o,e.name="Foreground",t.Al(e),e=new $o,e.name="Adornment",e.isTemporary=!0,e.isInDocumentBounds=!1,t.Al(e),e=new $o,e.name="Tool",e.isTemporary=!0,e.isInDocumentBounds=!0,t.Al(e),e=new $o,e.name="Grid",e.allowSelect=!1,e.pickable=!1,e.isTemporary=!0,e.isInDocumentBounds=!1,t.Ww(e,t.Qj("Background"))}function f(t){var e=new sn(sn.Grid);e.name="GRID";var n=new Qi;return n.figure="LineH",n.stroke="lightgray",n.strokeWidth=.5,n.interval=1,e.add(n),n=new Qi,n.figure="LineH",n.stroke="gray",n.strokeWidth=.5,n.interval=5,e.add(n),n=new Qi,n.figure="LineH",n.stroke="gray",n.strokeWidth=1,n.interval=10,e.add(n),n=new Qi,n.figure="LineV",n.stroke="lightgray",n.strokeWidth=.5,n.interval=1,e.add(n),n=new Qi,n.figure="LineV",n.stroke="gray",n.strokeWidth=.5,n.interval=5,e.add(n),n=new Qi,n.figure="LineV",n.stroke="gray",n.strokeWidth=1,n.interval=10,e.add(n),n=new li,n.add(e),n.layerName="Grid",n.zOrder=0,n.isInDocumentBounds=!1,n.isAnimated=!1,n.pickable=!1,n.locationObjectName="GRID",t.add(n),t.partManager.parts.remove(n),e.visible=!1,e}function x(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):$l(this.H)}function A(t){this.H.isEnabled?(this.H.lu=t.target.scrollTop,this.H.ju=t.target.scrollLeft):$l(this.H)}ue.prototype.kx=function(t){if(this.ta!==null){var e=this.ku,n=this.hu;this.qr=!0;var i=this.documentBounds,r=this.viewportBounds,o=this.rj,s=i.x-o.left,l=i.y-o.top,u=i.width+o.left+o.right,d=i.height+o.top+o.bottom,p=i.right+o.right;o=i.bottom+o.bottom;var v=r.x;i=r.y;var E=r.width,M=r.height,R=r.right,j=r.bottom;r=this.scale;var at=t.scrollLeft;if(this.tn)switch(this.bu){case"negative":at=at+t.scrollWidth-t.clientWidth;break;case"reverse":at=t.scrollWidth-at-t.clientWidth}var q=at;E<u||M<d?(at=$.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==q&&(at.x=q/r+s,this.ju=q),this.allowVerticalScroll&&this.lu!==t.scrollTop&&(at.y=t.scrollTop/r+l,this.lu=t.scrollTop),this.position=at,$.free(at),this.Ee=this.qr=!1):(at=$.alloc(),t.uy&&this.allowHorizontalScroll&&(s<v&&(this.position=at.h(q+s,this.position.y)),p>R&&(this.position=at.h(-(e.scrollWidth-this.Aa)+q-this.Aa/r+p,this.position.y))),t.vy&&this.allowVerticalScroll&&(l<i&&(this.position=at.h(this.position.x,t.scrollTop+l)),o>j&&(this.position=at.h(this.position.x,-(e.scrollHeight-this.ya)+t.scrollTop-this.ya/r+o))),$.free(at),this.vd=!0,this.Ee=this.qr=!1,i=this.documentBounds,r=this.viewportBounds,p=i.right,R=r.right,o=i.bottom,j=r.bottom,s=i.x,v=r.x,l=i.y,i=r.y,E>=u&&s>=v&&p<=R&&(n.style.width="1px"),M>=d&&l>=i&&o<=j&&(n.style.height="1px"))}},ue.prototype.computeBounds=function(t){return t===void 0&&(t=new ke),So(this),H(this,t)};function H(t,e){if(t.fixedBounds.w())return e.assign(t.fixedBounds),e.Co(t.yb),e;for(var n=!0,i=t.Wa.s,r=i.length,o=0;o<r;o++){var s=i[o];if(s.visible&&s.isInDocumentBounds){s=s.Pa.s;for(var l=s.length,u=0;u<l;u++){var d=s[u];d.isInDocumentBounds&&d.isVisible()&&(d=d.actualBounds,d.w()&&(n?(n=!1,e.assign(d)):e.ed(d)))}}}return n&&e.h(0,0,0,0),e.Co(t.yb),e}ue.prototype.computePartsBounds=function(t,e){e===void 0&&(e=!1);var n=null;if(In(t))for(var i=0;i<t.length;i++){var r=t[i];!e&&r instanceof pn||(r.Va(),n===null?n=r.actualBounds.copy():n.ed(r.actualBounds))}else for(t=t.iterator;t.next();)i=t.value,!e&&i instanceof pn||(i.Va(),n===null?n=i.actualBounds.copy():n.ed(i.actualBounds));return n===null?new ke(NaN,NaN,0,0):n};function J(t,e){if((e||t.hf)&&!t.vb&&t.ta!==null&&t.documentBounds.w()){if(t.vb=!0,e){var n=t.initialPosition;if(n.w()){t.vb=!1,t.position=n;return}n=$.alloc(),n.xi(t.documentBounds,t.initialDocumentSpot);var i=t.viewportBounds;i=ke.allocAt(0,0,i.width,i.height);var r=$.alloc();r.xi(i,t.initialViewportSpot),r.h(n.x-r.x,n.y-r.y),t.position=r,ke.free(i),$.free(r),$.free(n)}n=t.yh,e&&t.Fg!==el&&(n=t.Fg);var o=n!==el?Et(t,n):t.scale;n=t.pa.x,i=t.pa.y,r=t.Aa/o;var s=t.ya/o,l=t.zk,u=t.pq;e&&!l.sb()&&(u.sb()||u.Xb())&&(l=u.Xb()?Sr:u),Zt(t,t.documentBounds,r,s,l,e),e=t.scale,t.scale=o,t.vb=!1,o=t.viewportBounds,Vt.B(o.x,n)&&Vt.B(o.y,i)&&Vt.B(o.width,r)&&Vt.B(o.height,s)||t.onViewportBoundsChanged(new ke(n,i,r,s),o,e,!1)}}function Et(t,e){var n=t.Pp;if(t.ta===null)return n;t.Va();var i=t.documentBounds;if(!i.w())return n;var r=i.width;i=i.height;var o=t.Aa+(t.gf?t.Db:0),s=t.ya+(t.Be?t.Db:0),l=o/r,u=s/i;return e===fu?(e=Math.min(u,l),e>n&&(e=n),e<t.minScale&&(e=t.minScale),e>t.maxScale&&(e=t.maxScale),e):e===Kh?(e=u>l?(s-t.Db)/i:(o-t.Db)/r,e>n&&(e=n),e<t.minScale&&(e=t.minScale),e>t.maxScale&&(e=t.maxScale),e):t.scale}ue.prototype.zoomToFit=function(){var t=this.sj;this.sj=wh,this.scale=Et(this,fu),t!==wh&&(J(this,!1),Zt(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=t},D=ue.prototype,D.BA=function(t,e){e===void 0&&(e=fu);var n=t.width,i=t.height;if(!(n===0||i===0||isNaN(n)&&isNaN(i))){var r=1;if(e===fu||e===Kh)if(isNaN(n))r=this.viewportBounds.height*this.scale/i;else if(isNaN(i))r=this.viewportBounds.width*this.scale/n;else{r=this.Aa;var o=this.ya;r=e===Kh?o/i>r/n?(o-(this.Be?this.Db:0))/i:(r-(this.gf?this.Db:0))/n:Math.min(o/i,r/n)}this.scale=r,this.position=new $(t.x,t.y)}},D.Jy=function(t,e){this.Va();var n=this.documentBounds,i=this.viewportBounds;this.position=new $(n.x+(t.x*n.width+t.offsetX)-(e.x*i.width-e.offsetX),n.y+(t.y*n.height+t.offsetY)-(e.y*i.height-e.offsetY))},D.zz=function(t){if(t instanceof Wt){this.eq=t;var e=$.alloc();this.fq=this.op(t.ga(Fs,e)),$.free(e)}else this.eq=null,this.fq=Ui};function Zt(t,e,n,i,r,o){var s=$.allocAt(t.pa.x,t.pa.y),l=s.x,u=s.y;if(t.eq!==null){var d=$.alloc();d=t.eq.ga(Fs,d),l=d.x-t.fq.x/t.scale,u=d.y-t.fq.y/t.scale,r=us,$.free(d)}(o||t.scrollMode===wh)&&(r.sb()&&(n>e.width&&(l=e.x+(r.x*e.width+r.offsetX)-(r.x*n-r.offsetX)),i>e.height&&(u=e.y+(r.y*e.height+r.offsetY)-(r.y*i-r.offsetY))),r=t.rj,o=n-e.width,n<e.width+r.left+r.right?(l=Math.min(l+n/2,e.right+Math.max(o,r.right)-n/2),l=Math.max(l,e.left-Math.max(o,r.left)+n/2),l-=n/2):l>e.left?l=e.left:l<e.right-n&&(l=e.right-n),n=i-e.height,i<e.height+r.top+r.bottom?(u=Math.min(u+i/2,e.bottom+Math.max(n,r.bottom)-i/2),u=Math.max(u,e.top-Math.max(n,r.top)+i/2),u-=i/2):u>e.top?u=e.top:u<e.bottom-i&&(u=e.bottom-i)),s.x=isFinite(l)?l:-t.yb.left,s.y=isFinite(u)?u:-t.yb.top,t.positionComputation!==null&&(e=t.positionComputation(t,s),s.x=e.x,s.y=e.y),Qr(t.Yd,t.pa,s),t.pa.h(s.x,s.y),pu(t),$.free(s)}D.Ol=function(t,e){if(e===void 0&&(e=!0),e){if(t=Xt(this,t,function(n){return n.part},function(n){return n.canSelect()}),t instanceof li)return t}else if(t=Xt(this,t,function(n){return n.part}),t instanceof li)return t;return null},D.ic=function(t,e,n){e===void 0&&(e=null),n===void 0&&(n=null),So(this);for(var i=this.Wa.iteratorBackwards;i.next();){var r=i.value;if(r.visible&&(r=r.ic(t,e,n),r!==null))return r}return null};function Xt(t,e,n,i){for(n===void 0&&(n=null),i===void 0&&(i=null),So(t),t=t.Wa.iteratorBackwards;t.next();){var r=t.value;if(r.visible&&!r.isTemporary&&(r=r.ic(e,n,i),r!==null))return r}return null}D.lz=function(t,e,n){return e===void 0&&(e=!0),Be(this,t,function(i){return i.part},e?function(i){return i instanceof li&&i.canSelect()}:null,n)};function Be(t,e,n,i,r){for(n===void 0&&(n=null),i===void 0&&(i=null),r instanceof Re||r instanceof je||(r=new je),So(t),t=t.Wa.iteratorBackwards;t.next();){var o=t.value;o.visible&&!o.isTemporary&&o.ji(e,n,i,r)}return r}D.ji=function(t,e,n,i){e===void 0&&(e=null),n===void 0&&(n=null),i instanceof Re||i instanceof je||(i=new je),So(this);for(var r=this.Wa.iteratorBackwards;r.next();){var o=r.value;o.visible&&o.ji(t,e,n,i)}return i},D.ux=function(t,e,n,i){return e===void 0&&(e=!1),n===void 0&&(n=!0),un(this,t,function(r){return r instanceof li&&(!n||r.canSelect())},e,i)},D.Cf=function(t,e,n,i,r){e===void 0&&(e=null),n===void 0&&(n=null),i===void 0&&(i=!1),r instanceof Re||r instanceof je||(r=new je),So(this);for(var o=this.Wa.iteratorBackwards;o.next();){var s=o.value;s.visible&&s.Cf(t,e,n,i,r)}return r},D.Nu=function(t,e,n,i,r,o){var s=new je;So(this);for(var l=this.Wa.iteratorBackwards;l.next();){var u=l.value;u.visible&&u.Nu(t,e,n,i,s,r,o)}return s};function un(t,e,n,i,r){var o=null;for(o===void 0&&(o=null),n===void 0&&(n=null),i===void 0&&(i=!1),r instanceof Re||r instanceof je||(r=new je),So(t),t=t.Wa.iteratorBackwards;t.next();){var s=t.value;s.visible&&!s.isTemporary&&s.Cf(e,o,n,i,r)}return r}D.mz=function(t,e,n,i,r){return n===void 0&&(n=!0),i===void 0&&(i=!0),Dn(this,t,e,function(o){return o instanceof li&&(!i||o.canSelect())},n,r)},D.og=function(t,e,n,i,r,o){n===void 0&&(n=null),i===void 0&&(i=null),r===void 0&&(r=!0),r!==!1&&r!==!0&&((r instanceof Re||r instanceof je)&&(o=r),r=!0),o instanceof Re||o instanceof je||(o=new je),So(this);for(var s=this.Wa.iteratorBackwards;s.next();){var l=s.value;l.visible&&l.og(t,e,n,i,r,o)}return o};function Dn(t,e,n,i,r,o){var s=null;for(s===void 0&&(s=null),i===void 0&&(i=null),r===void 0&&(r=!0),r!==!1&&r!==!0&&((r instanceof Re||r instanceof je)&&(o=r),r=!0),o instanceof Re||o instanceof je||(o=new je),So(t),t=t.Wa.iteratorBackwards;t.next();){var l=t.value;l.visible&&!l.isTemporary&&l.og(e,n,s,i,r,o)}return o}ue.prototype.acceptEvent=function(t){return Qn(this,t,t instanceof MouseEvent)};function Qn(t,e,n){var i=t.Qg;return t.Qg=t.cj,t.cj=i,i.diagram=t,i.event=e,n?Ar(t,e,i):(i.viewPoint=t.Qg.viewPoint,i.documentPoint=t.Qg.documentPoint),t=0,e.ctrlKey&&(t+=1),e.altKey&&(t+=2),e.shiftKey&&(t+=4),e.metaKey&&(t+=8),i.modifiers=t,i.button=e.button,e.buttons!==void 0&&(i.buttons=e.buttons),ir&&e.button===0&&e.ctrlKey&&(i.button=2),i.down=!1,i.up=!1,i.clickCount=1,i.delta=0,i.handled=!1,i.bubbles=!1,i.timestamp=e.timeStamp,i.isMultiTouch=!1,i.targetDiagram=si(e,e.target),i.targetObject=null,i}function si(t,e){return e===null?null:(e=e.H)?e:((e=t.path)||typeof t.composedPath!="function"||(e=t.composedPath()),e&&e[0]&&e[0].H?e[0].H:null)}function Yi(t,e,n,i,r,o){var s=t.Qg;return t.Qg=t.cj,t.cj=s,s.diagram=t,s.clickCount=1,t=s.delta=0,e.ctrlKey&&(t+=1),e.altKey&&(t+=2),e.shiftKey&&(t+=4),e.metaKey&&(t+=8),s.modifiers=t,s.event=e,s.timestamp=e.timeStamp,s.button=e.button,s.buttons=e.buttons,ir&&e.button===0&&e.ctrlKey&&(s.button=2),s.down=n,s.up=i,s.handled=!1,s.bubbles=r,s.isMultiTouch=o,s}function Xi(t,e){return t.bubbles?!0:(e.stopPropagation!==void 0&&e.stopPropagation(),e.cancelable!==!1&&e.preventDefault(),e.cancelBubble=!0,!1)}ue.prototype.Qz=function(t){var e=this.H;if(!this.H.isEnabled)return!1;var n=Qn(e,t,!1);switch(n.key=String.fromCharCode(t.which),n.down=!0,t.which){case 8:n.key="Backspace";break;case 33:n.key="PageUp";break;case 34:n.key="PageDown";break;case 35:n.key="End";break;case 36:n.key="Home";break;case 37:n.key="Left";break;case 38:n.key="Up";break;case 39:n.key="Right";break;case 40:n.key="Down";break;case 45:n.key="Insert";break;case 46:n.key="Del";break;case 48:n.key="0";break;case 187:case 61:case 107:n.key="Add";break;case 189:case 173:case 109:n.key="Subtract";break;case 27:n.key="Esc"}return e.doKeyDown(),Xi(n,t)},ue.prototype.Rz=function(t){var e=this.H;if(!e.isEnabled)return!1;var n=Qn(e,t,!1);switch(n.key=String.fromCharCode(t.which),n.up=!0,t.which){case 8:n.key="Backspace";break;case 33:n.key="PageUp";break;case 34:n.key="PageDown";break;case 35:n.key="End";break;case 36:n.key="Home";break;case 37:n.key="Left";break;case 38:n.key="Up";break;case 39:n.key="Right";break;case 40:n.key="Down";break;case 45:n.key="Insert";break;case 46:n.key="Del"}return e.doKeyUp(),Xi(n,t)},ue.prototype.bz=function(t){var e=this.H;if(!e.isEnabled)return!1;var n=Qn(e,t,!0);return e.mouseEnter!==null&&e.mouseEnter(n),e.currentTool.standardMouseOver(),Xi(n,t)},ue.prototype.cz=function(t){var e=this.H;if(!e.isEnabled)return!1;var n=Qn(e,t,!0);return e.mouseLeave!==null&&e.mouseLeave(n),Xi(n,t)},ue.prototype.getMouse=function(t){var e=this.ta;if(e===null)return new $(0,0);var n=e.getBoundingClientRect();return e=t.clientX-this.Aa/n.width*n.left,t=t.clientY-this.ya/n.height*n.top,this.Ab!==null?se(new $(e,t),this.Ab):new $(e,t)};function Ar(t,e,n){var i=t.ta,r=t.Aa,o=t.ya,s=0,l=0;i!==null&&(i=i.getBoundingClientRect(),s=e.clientX-r/i.width*i.left,l=e.clientY-o/i.height*i.top),n.viewPoint.h(s,l),t.Ab!==null?(e=$.allocAt(s,l),t.Ab.Cd(e),n.documentPoint.assign(e),$.free(e)):n.documentPoint.h(s,l)}function Pr(t,e,n){if(t.oj[0]!==null){e=t.oj[e];var i=t.ta;i!==null&&(i=i.getBoundingClientRect(),n.h(e.clientX-t.Aa/i.width*i.left,e.clientY-t.ya/i.height*i.top))}}ue.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function ko(t){t.ld||So(t),t.Va()}ue.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},D=ue.prototype,D.Pz=function(){return this.kg},D.Xy=function(t){t===void 0&&(t=null);var e=this.animationManager,n=e.isEnabled;e.Cc(),e.isEnabled=!1,jo(this),this.hf=!1,this.du=new $(NaN,NaN),e.isEnabled=n,this.ld=!0;var i=this;t!==null&&Gn(function(){i.ld=!1,Eo(e,"Model"),t(i)},1)},D.$b=function(t){if(t===void 0&&(t=!1),this.kg!==!0&&!(this.vb||t===!1&&this.ld)){this.kg=!0;var e=this;Ft.requestAnimationFrame(function(){e.kg&&e.bd()})}},D.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),jo(this))};function Ao(t,e,n){!t.Ee||t.vb||t.animationManager.defaultAnimation.isAnimating||$l(t)||(e&&So(t),n&&J(t,!1))}function jo(t,e){if(!t.ld&&(t.kg=!1,t.Ka!==null||t.wo.w())){t.ld=!0;var n=t.animationManager,i=t.Xn;if(!n.isAnimating&&i.length!==0){for(var r=i.s,o=r.length,s=0;s<o;s++){var l=r[s];Zs(l,!1),l.v()}i.clear()}i=t.ow,0<i.count&&(i.each(function(u){u.Nv()}),i.clear()),r=i=!1,n.defaultAnimation.isAnimating&&(r=!0,i=t.skipsUndoManager,t.skipsUndoManager=!0),n.zb||zu(t),Ao(t,!1,!0),t.fe!==null&&(t.fe.visible&&!t.mq&&(ku(t),t.mq=!0),!t.fe.visible&&t.mq&&(t.mq=!1)),So(t),o=!1,(!t.hf||t.xh)&&(t.hf?Wh(t,!t.Jk):(t.Ea("Initial Layout"),n.isEnabled===!1&&n.Cc(),Wh(t,!1)),o=!0),t.Jk=!1,So(t),t.ou||ko(t),Ao(t,!0,!1),s=!1,o?(n=ke.alloc(),n.assign(t.viewportBounds),t.hf||(s=t.hf=!0,t.skipsUndoManager||(t.undoManager.isPendingClear=!0),t.undoManager.isPendingUnmodified=!0,ns(t)),t.R("LayoutCompleted"),Ao(t,!0,!1),ke.free(n)):n.Ok&&n.Qw&&(t.Fg!==el?t.scale=Et(t,t.Fg):t.yh!==el?t.scale=Et(t,t.yh):(n=t.initialScale,isFinite(n)&&0<n&&(t.scale=n)),J(t,!0)),o&&s&&t.eb("Initial Layout"),So(t),e||t.gc(t.ib),r&&(t.skipsUndoManager=i),t.ld=!1}}function ns(t){if(t.Fg!==el)t.scale=Et(t,t.Fg);else if(t.yh!==el)t.scale=Et(t,t.yh);else{var e=t.initialScale;isFinite(e)&&0<e&&(t.scale=e)}J(t,!0),e=t.Wa.s,t.Fd(e,e.length,t,t.viewportBounds),t.R("InitialLayoutCompleted"),t.du.assign(t.pa),ku(t)}function So(t){if(t.De.count!==0&&(t.ld||!t.animationManager.isTicking)){for(var e=0;23>e;e++){var n=t.De.iterator;if(n===null||t.De.count===0)break;t.De=new je,t.Nv(n,t.De)}t.nodes.each(function(i){i instanceof Ki&&i.U&65536&&(i.U=i.U^65536)})}}D.Nv=function(t,e){for(t.reset();t.next();){var n=t.value;!n.Zc()||n instanceof Ki||(n.si()?(n.measure(1/0,1/0),n.arrange()):e.add(n))}for(t.reset();t.next();)n=t.value,n instanceof Ki&&n.isVisible()&&Fr(this,n);for(t.reset();t.next();)n=t.value,n instanceof pn&&n.isVisible()&&(n.si()?(n.measure(1/0,1/0),n.arrange()):e.add(n));for(t.reset();t.next();)n=t.value,n instanceof jr&&n.isVisible()&&(n.si()?(n.measure(1/0,1/0),n.arrange()):e.add(n))};function Fr(t,e){for(var n=Le(),i=Le(),r=e.memberParts;r.next();){var o=r.value;o.isVisible()&&(o instanceof Ki?(gu(o)||pl(o)||Yh(o))&&Fr(t,o):o instanceof pn?o.fromNode===e||o.toNode===e?i.push(o):n.push(o):(o.measure(1/0,1/0),o.arrange()))}for(t=n.length,r=0;r<t;r++)o=n[r],o.measure(1/0,1/0),o.arrange();for(tn(n),e.measure(1/0,1/0),e.arrange(),t=i.length,e=0;e<t;e++)n=i[e],n.measure(1/0,1/0),n.arrange();tn(i)}D.Fd=function(t,e,n,i){if(this.vd||this.animationManager.isAnimating)for(var r=0;r<e;r++)t[r].Fd(n,i)},D.gc=function(t){if(this.Ka!==null){if(this.ta===null&&ne("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var e=this.animationManager;if(!e.zb&&(!e.isAnimating||e.isTicking)){ta(this);var n=this.Aa,i=this.ya;if(t.Gv.resize(n,i,n,i),n=this.Wa.s,i=n.length,this.Fd(n,i,this,this.viewportBounds),this.Fc||e.isAnimating){e=this.pa;var r=this.Ca,o=Math.round(e.x*r)/r,s=Math.round(e.y*r)/r,l=this.Ab;for(l.reset(),r!==1&&l.scale(r),e.x===0&&e.y===0||l.translate(-o,-s),t.ti=null,ny(t,l.m11,l.m12,l.m21,l.m22,l.dx,l.dy),this.pb!==1&&(t.globalAlpha=this.pb),Go(this,t),e=this.Mb,this.ta.context.setTransform(e,0,0,e,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya),e=0;e<i;e++)n[e].gc(t,this);t=!1,this.Yf?Cd(this.Yf,this)&&(t=this.Vp()):t=!0,t&&(Ti.prototype.Cd=Ti.prototype.Eu),this.Fc=this.vd=!1}}}}else t:if(o=this.animationManager,!o.zb&&(!o.isAnimating||o.isTicking)&&(n=new Date,ta(this),this.Ka.style.opacity!=="0")){if(i=t!==this.ib,e=this.Wa.s,r=e.length,this.Fd(e,r,this,this.viewportBounds),i)t.Vc(!0),this.vd=!0;else if(!this.Fc&&!o.isAnimating)break t;o=this.Ab,o.reset(),s=this.Mb,l=this.pa;var u=this.Ca,d=Math.round(l.x*u)/u,p=Math.round(l.y*u)/u;for(u!==1&&o.scale(u),l.x===0&&l.y===0||o.translate(-d,-p),t.setTransform(s,0,0,s,0,0),t.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(t.globalAlpha=this.pb),Go(this,t),l=0;l<r;l++)t.setTransform(s,0,0,s,0,0),t.transform(o.m11,o.m12,o.m21,o.m22,o.dx,o.dy),t.yc(),e[l].gc(t,this);if(e=!1,this.Yf?Cd(this.Yf,this)&&(e=this.Vp()):e=!0,e&&(Ti.prototype.Cd=Ti.prototype.Eu),i?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,e=+new Date-+n,i=Yr&&Yr.nx,n=this.zw,i||this.Yh===null){for(n[this.Tq]=e,this.Tq=(this.Tq+1)%n.length,r=e=0;r<n.length;r++)e+=n[r];this.Sq=e/n.length}if(this.pb!==1&&(t.globalAlpha=1),i)for(t.setTransform(1,0,0,1,0,0),i=0;i<n.length;i++)t.fillText(n[i].toString(),20,150+ +(20*i))}}};function wo(t,e,n,i,r,o,s,l,u,d){if(t.Ka!==null){t.ta===null&&ne("No canvas specified"),s===void 0&&(s=null),l===void 0&&(l=null),u===void 0&&(u=!1),d===void 0&&(d=!1),ta(t),t.ib.Vc(!0),t.vd=!0,t.$i=!0;var p=t.Ca;t.Ca=r;var v=t.Wa.s,E=v.length;try{var M=new ke(o.x,o.y,i.width/r,i.height/r),R=M.copy();R.Co(n),ku(t,R),So(t),t.Fd(v,E,t,M),e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,i.width,i.height),l!==null&&l!==""&&(e.fillStyle=l,e.ox(0,0,i.width,i.height));var j=t.Mb;e.scale(j,j);var at=Ti.alloc();at.reset(),at.translate(n.left,n.top),at.scale(r),o.x===0&&o.y===0||at.translate(-o.x,-o.y),e.setTransform(at.m11,at.m12,at.m21,at.m22,at.dx,at.dy),e.yc(),e instanceof Xl&&ny(e,at.m11,at.m12,at.m21,at.m22,at.dx,at.dy),Ti.free(at),Go(t,e),e.globalAlpha=t.pb;var q=t.Qj("Grid");if(s){var gt=new je,wt=s.iterator;for(wt.reset();wt.next();){var Ot=wt.value;Ot instanceof li&&(d||Ot.layer!==q)&&(Ot.Gj(),gt.add(Ot))}for(d=0;d<E;d++)Ra(v[d],e,t,gt,u);gt.each(function(ce){return ce.Gj()})}else for(gt=0;gt<E;gt++){var Gt=v[gt];Gt===q?d&&Gt.gc(e,t,!0):Gt.gc(e,t,u)}t.$i=!1,t.Yf&&Cd(t.Yf,t)&&t.Vp()}finally{t.Ca=p,t.ib.Vc(!0),t.vd=!0,t.Fd(v,E,t,t.viewportBounds),ku(t),t.ib instanceof Xl&&(t.ib.Nj.PA(),t.redraw())}}}D.Gf=function(t){return this.Rg[t]},D.Xx=function(t,e){t==="minDrawingLength"&&(this.Oq=e),this.Rg[t]=e,this.redraw()},D.Tx=function(){this.Rg=new zr,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(ir||xi),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function Go(t,e){t=t.Rg,t!==null&&(t.imageSmoothingEnabled!==void 0&&e.Wx(!!t.imageSmoothingEnabled),t=t.defaultFont,t!=null&&(e.font=t))}D.Ql=function(t){return this.on[t]},D.sA=function(t,e){this.on[t]=e},D.Sx=function(){this.on=new zr,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},D.set=function(t){return Object.assign(this,t),this},D.Du=function(t){return this.nm(t)},D.nm=function(t){return Na(this,t),this};function Na(t,e){var n=t instanceof sn,i=t instanceof ue,r;for(r in e){r===""&&ne("Setting properties requires non-empty property names");var o=t,s=r;if(n||i){var l=r.indexOf(".");if(0<l){var u=r.substring(0,l);n?o=t.fb(u):(o=t[u],o==null&&(o=t.toolManager[u])),Me(o)?s=r.substr(l+1):ne("Unable to find object named: "+u+" in "+t.toString()+" when trying to set property: "+r)}}if(s[0]!=="_"&&!bn(o,s))if(i&&s==="ModelChanged"){t.Yw(e[s]);continue}else if(i&&s==="Changed"){t.Pe(e[s]);continue}else if(i&&bn(t.toolManager,s))o=t.toolManager;else if(i&&xd(t,s)){t.Bj(s,e[s]);continue}else if(t instanceof Yn&&s==="Changed"){t.Pe(e[s]);continue}else ne('Trying to set undefined property "'+s+'" on object: '+o.toString());o[s]=e[r],s[0]==="_"&&o instanceof Wt&&o.Vw(s)}}D.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var t=this.Eh;for(this.Eh=new pt,t=t.iterator;t.next();){var e=t.key;e.Xo(t.value),e.qc()}}this.N()}},D.N=function(t){if(t===void 0)this.Fc=!0,this.$b();else{var e=this.viewportBounds;t.w()&&e.Yc(t)&&(this.Fc=!0,this.$b())}this.R("InvalidateDraw")},ue.prototype.invalidateViewport=function(t,e){if(this.Fc!==!0)if(this.Fc=!0,this.nl==="svg")this.bd();else{var n=this.Gf("temporaryPixelRatio")===!0;if(this.Gf("viewportOptimizations")===!0&&this.scrollMode!==Wd&&this.rj.hi(0,0,0,0)&&e.width===t.width&&e.height===t.height){var i=this.scale,r=Math.max(t.y,e.y),o=Math.min(t.y+t.height,e.y+e.height);if(0<Math.max(0,Math.min(t.x+t.width,e.x+e.width)-Math.max(t.x,e.x))*i&&0<Math.max(0,o-r)*i){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(i=ke.alloc(),_d(this,this.computeBounds(i)),ke.free(i)),i=this.ta,i===null||i instanceof kc)))){var s=this.Mb;r=this.Aa*s;var l=this.ya*s,u=this.scale*s;o=Math.round(Math.round(e.x*u)-Math.round(t.x*u)),e=Math.round(Math.round(e.y*u)-Math.round(t.y*u)),u=this.jw,t=this.oy,u.width!==r&&(u.width=r),u.height!==l&&(u.height=l),t.clearRect(0,0,r,l),u=190*s;var d=70*s,p=Math.max(o,0),v=Math.max(e,0),E=Math.floor(r-p),M=Math.floor(l-v);t.drawImage(i.Oa,p,v,E,M,0,0,E,M),Cd(this.Yf,this)&&t.clearRect(0,0,u,d),i=Le(),t=Le(),M=Math.abs(o),E=Math.abs(e);var R=p===0?0:r-M;p=$.allocAt(R,0),M=$.allocAt(M+R,l),t.push(new ke(Math.min(p.x,M.x),Math.min(p.y,M.y),Math.abs(p.x-M.x),Math.abs(p.y-M.y)));var j=this.Ab;if(j.reset(),j.scale(s,s),this.Ca!==1&&j.scale(this.Ca),s=this.pa,(s.x!==0||s.y!==0)&&isFinite(s.x)&&isFinite(s.y)&&j.translate(-s.x,-s.y),se(p,j),se(M,j),i.push(new ke(Math.min(p.x,M.x),Math.min(p.y,M.y),Math.abs(p.x-M.x),Math.abs(p.y-M.y))),R=v===0?0:l-E,p.h(0,R),M.h(r,E+R),t.push(new ke(Math.min(p.x,M.x),Math.min(p.y,M.y),Math.abs(p.x-M.x),Math.abs(p.y-M.y))),se(p,j),se(M,j),i.push(new ke(Math.min(p.x,M.x),Math.min(p.y,M.y),Math.abs(p.x-M.x),Math.abs(p.y-M.y))),Cd(this.Yf,this)&&(r=0<o?0:-o,l=0<e?0:-e,p.h(r,l),M.h(u+r,d+l),t.push(new ke(Math.min(p.x,M.x),Math.min(p.y,M.y),Math.abs(p.x-M.x),Math.abs(p.y-M.y))),se(p,j),se(M,j),i.push(new ke(Math.min(p.x,M.x),Math.min(p.y,M.y),Math.abs(p.x-M.x),Math.abs(p.y-M.y)))),$.free(p),$.free(M),Ao(this,!1,!0),this.Ka===null&&ne("No div specified"),this.ta===null&&ne("No canvas specified"),!this.animationManager.zb&&(r=this.ib,this.Fc)){for(ta(this),l=this.Mb,r.setTransform(1,0,0,1,0,0),r.clearRect(0,0,this.Aa*l,this.ya*l),r.drawImage(this.jw.Oa,0<o?0:Math.round(-o),0<e?0:Math.round(-e)),o=this.pa,s=this.Ca,u=Math.round(o.x*s)/s,d=Math.round(o.y*s)/s,e=this.Ab,e.reset(),s!==1&&e.scale(s),o.x===0&&o.y===0||e.translate(-u,-d),r.save(),r.beginPath(),o=t.length,s=0;s<o;s++)u=t[s],u.width!==0&&u.height!==0&&r.rect(Math.floor(u.x),Math.floor(u.y),Math.ceil(u.width),Math.ceil(u.height));for(r.clip(),r.setTransform(l,0,0,l,0,0),r.transform(e.m11,e.m12,e.m21,e.m22,e.dx,e.dy),r.yc(),e=this.Wa.s,o=e.length,this.Fd(e,o,this,this.viewportBounds),Go(this,r),r.globalAlpha=this.pb,l=0;l<o;l++)if(s=e[l],u=i,s.visible&&s.pb!==0){d=Hs(s,r),v=s.Zq,v.length=0,p=this.scale,E=ke.alloc(),M=s.Pa.s,j=M.length,R=u.length;for(var at=0;at<j;at++){var q=M[at],gt=Md(q,q.actualBounds);t:{for(var wt=2/p,Ot=4/p,Gt=0;Gt<R;Gt++){var ce=u[Gt];if(ce.width!==0&&ce.height!==0&>.Vu(ce.x-wt,ce.y-wt,ce.width+Ot,ce.height+Ot)){gt=!0;break t}}gt=!1}gt&&s.Oj(r,q,this,v,p,E,!0)}ke.free(E),r.globalAlpha=d}r.restore(),r.Vc(!0),this.Yf&&Cd(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}tn(i),tn(t),this.ld=!1}}else this.bd();n&&(Vs(this),this.bd(),Nl(this,!0))}else n?(Vs(this),this.bd(),Nl(this,!0)):this.bd()}};function ta(t){t.pn!==!1&&(t.pn=!1,Sa(t,t.Aa,t.ya))}function Sa(t,e,n){pu(t);var i=t.Mb;t.ta.resize(e*i,n*i,e,n)&&(t.Fc=!0,t.ib.Vc(!0))}function $l(t){var e=t.ta;if(e===null||t.wo.w())return!0;var n=t.Aa,i=t.ya,r=t.Ka,o=!1,s=t.gf?t.Db:0,l=t.Be?t.Db:0,u=r.clientWidth||n+s,d=r.clientHeight||i+l,p=t.viewportBounds;r=p.x;var v=p.y,E=p.width,M=p.height;if((u!==n+s||d!==i+l)&&(t.gf=!1,t.Be=!1,l=s=0,t.Aa=u,t.ya=d,o=t.pn=!0,pu(t)),!t.hf||!t.viewportBounds.w())return!0;var R=t.ku,j=t.hu;if(t.Ee=!1,!(o||t.gf||t.Be||t.mn||t.nn))return!0;var at=t.documentBounds,q=0,gt=0,wt=0,Ot=0,Gt=p.width,ce=p.height,Mn=t.rj;t.contentAlignment.sb()?(at.width>Gt&&(q=Mn.left,gt=Mn.right),at.height>ce&&(wt=Mn.top,Ot=Mn.bottom)):(q=Mn.left,gt=Mn.right,wt=Mn.top,Ot=Mn.bottom);var Un=at.width+q+gt,zn=at.height+wt+Ot;Mn=t.scale;var cn=Un>u/Mn,We=zn>d/Mn;if(!(o||t.gf||t.Be||cn||We))return!0;q=at.x-q,u=p.x,gt=at.right+gt,d=p.right+s,wt=at.y-wt;var Hi=p.y;at=at.bottom+Ot,p=p.bottom+l;var Ci="1px";if(Ot="1px",t.scrollMode===wh&&(cn||We)&&(cn&&t.hasHorizontalScrollbar&&t.allowHorizontalScroll&&(cn=1,q+1<u&&(cn=Math.max((u-q)*Mn+t.Aa,cn)),gt>d+1&&(cn=Math.max((gt-d)*Mn+t.Aa,cn)),Gt+s+1<Un&&(cn=Math.max((Un-Gt)*Mn+t.Aa,cn)),Ci=cn.toString()+"px"),We&&t.hasVerticalScrollbar&&t.allowVerticalScroll&&(cn=1,wt+1<Hi&&(cn=Math.max((Hi-wt)*Mn+t.ya,cn)),at>p+1&&(cn=Math.max((at-p)*Mn+t.ya,cn)),ce+l+1<zn&&(cn=Math.max((zn-ce)*Mn+t.ya,cn)),Ot=cn.toString()+"px")),cn=Ci!=="1px",We=Ot!=="1px",cn&&We||!cn&&!We||(We&&(d-=t.Db),cn&&(p-=t.Db),Un<Gt+s||!t.hasHorizontalScrollbar||!t.allowHorizontalScroll||(s=1,q+1<u&&(s=Math.max((u-q)*Mn+t.Aa,s)),gt>d+1&&(s=Math.max((gt-d)*Mn+t.Aa,s)),Gt+1<Un&&(s=Math.max((Un-Gt)*Mn+t.Aa,s)),Ci=s.toString()+"px"),cn=Ci!=="1px",s=t.ya,cn!==t.Be&&(s=cn?t.ya-t.Db:t.ya+t.Db),zn<ce+l||!t.hasVerticalScrollbar||!t.allowVerticalScroll||(l=1,wt+1<Hi&&(l=Math.max((Hi-wt)*Mn+s,l)),at>p+1&&(l=Math.max((at-p)*Mn+s,l)),ce+1<zn&&(l=Math.max((zn-ce)*Mn+s,l)),Ot=l.toString()+"px"),We=Ot!=="1px"),t.qr&&cn===t.Be&&We===t.gf)return n===t.Aa&&i===t.ya||t.bd(),!1;if(cn!==t.Be&&(Ci==="1px"?t.ya=t.ya+t.Db:t.ya=Math.max(t.ya-t.Db,1),o=!0),t.Be=cn,j.style.width=Ci,We!==t.gf&&(Ot==="1px"?t.Aa=t.Aa+t.Db:t.Aa=Math.max(t.Aa-t.Db,1),o=!0,t.tn&&(l=$.alloc(),We?(e.style.left=t.Db+"px",t.position=l.h(t.pa.x+t.Db/t.scale,t.pa.y)):(e.style.left="0px",t.position=l.h(t.pa.x-t.Db/t.scale,t.pa.y)),$.free(l))),o&&pu(t),t.gf=We,j.style.height=Ot,t.gu=!0,o&&(t.pn=!0),e=R.scrollLeft,t.hasHorizontalScrollbar&&t.allowHorizontalScroll&&(Gt+1<Un?e=(t.position.x-q)*Mn:q+1<u?e=R.scrollWidth-R.clientWidth:gt>d+1&&(e=t.position.x*Mn)),t.tn)switch(t.bu){case"negative":e=-(R.scrollWidth-e-R.clientWidth);break;case"reverse":e=R.scrollWidth-e-R.clientWidth}return R.scrollLeft=e,t.hasVerticalScrollbar&&t.allowVerticalScroll&&(ce+1<zn?R.scrollTop=(t.position.y-wt)*Mn:wt+1<Hi?R.scrollTop=R.scrollHeight-R.clientHeight:at>p+1&&(R.scrollTop=t.position.y*Mn)),u=t.Aa,d=t.ya,R.style.width=u+(t.gf?t.Db:0)+"px",R.style.height=d+(t.Be?t.Db:0)+"px",n!==u||i!==d||t.animationManager.zb?(n=ke.allocAt(r,v,E,M),t.onViewportBoundsChanged(n,t.viewportBounds,Mn,o),ke.free(n),!1):!0}D=ue.prototype,D.add=function(t){var e=t.diagram;if(e!==this&&(e!==null&&ne("Cannot add part "+t.toString()+" to "+this.toString()+". It is already a part of "+e.toString()),e=this.Qj(t.layerName),e===null&&(e=this.Qj("")),e===null&&ne('Cannot add a Part when unable find a Layer named "'+t.layerName+'" and there is no default Layer'),t.layer!==e)){var n=e.oi(99999999,t,t.diagram===this);0<=n&&this.cb(hs,"parts",e,null,t,null,n),e.isTemporary||this.Ya(),t.C(1),n=t.layerChanged,n!==null&&n(t,null,e)}},D.oi=function(t){this.partManager.oi(t);var e=this;Nd(t,function(n){Xu(e,n)}),(t instanceof jr||t instanceof Ki&&t.placeholder!==null)&&t.v(),t.data!==null&&Nd(t,function(n){mv(e.partManager,n)}),pl(t)!==!0&&Yh(t)!==!0||this.De.add(t),Wy(t,!0,this),Ky(t)?(t.actualBounds.w()&&this.N(Md(t,t.actualBounds)),this.Ya()):t.isVisible()&&t.actualBounds.w()&&this.N(Md(t,t.actualBounds)),this.$b()},D.pc=function(t){t.Ej(),this.partManager.pc(t);var e=this;t.data!==null&&Nd(t,function(n){gv(e.partManager,n,e)}),this.De.remove(t),Ky(t)?(t.actualBounds.w()&&this.N(Md(t,t.actualBounds)),this.Ya()):t.isVisible()&&t.actualBounds.w()&&this.N(Md(t,t.actualBounds)),this.$b()},D.remove=function(t){Ka(this,t,!0)};function Ka(t,e,n){var i=e.layer;i!==null&&i.diagram===t&&(e.isSelected=!1,e.isHighlighted=!1,e.C(2),n&&e.Lj(),n=i.pc(-1,e,!1),0<=n&&t.cb(Ts,"parts",i,e,null,n,null),t=e.layerChanged,t!==null&&t(e,i,null))}D.Is=function(t,e){if(e===void 0&&(e=!1),In(t))for(var n=t.length,i=0;i<n;i++){var r=t[i];e&&!r.canDelete()||this.remove(r)}else for(n=new je,n.addAll(t),t=n.iterator;t.next();)n=t.value,e&&!n.canDelete()||this.remove(n)},D.Kj=function(t,e,n){return n===void 0&&(n=!1),this.partManager.Kj(t,e,n)},ue.prototype.moveParts=function(t,e,n,i){if(n===void 0&&(n=!1),i===void 0&&(i=Ec(this)),this.toolManager!==null){var r=new pt;if(t!==null)if(In(t))for(var o=0;o<t.length;o++)wa(this,r,t[o],n,i);else for(t=t.iterator;t.next();)wa(this,r,t.value,n,i);else{for(t=this.parts;t.next();)wa(this,r,t.value,n,i);for(t=this.nodes;t.next();)wa(this,r,t.value,n,i);for(t=this.links;t.next();)wa(this,r,t.value,n,i)}hl(this,r,e,i,n)}};function wa(t,e,n,i,r,o){if(!e.contains(n)&&(o===void 0&&(o=!1),!i||o||n.canMove()||n.canCopy()))if(r===void 0&&(r=Ec(t)),n instanceof Rn){if(e.add(n,t.Pd(r,n,n.location)),n instanceof Ki&&(n.placeholder!==null||r.dragsMembers))for(o=n.memberParts;o.next();)wa(t,e,o.value,i,r,r.groupsAlwaysMove);for(o=n.linksConnected;o.next();){var s=o.value;if(!e.contains(s)){var l=s.fromNode,u=s.toNode;l!==null&&e.contains(l)&&u!==null&&e.contains(u)&&wa(t,e,s,i,r)}}if(r.dragsTree)for(n=n.Ou();n.next();)wa(t,e,n.value,i,r)}else if(n instanceof pn)for(e.add(n,t.Pd(r,n)),n=n.labelNodes;n.next();)wa(t,e,n.value,i,r);else n instanceof jr||e.add(n,t.Pd(r,n,n.location))}function hl(t,e,n,i,r){if(e!==null&&e.count!==0){var o=$.alloc(),s=$.alloc();s.assign(n),isNaN(s.x)&&(s.x=0),isNaN(s.y)&&(s.y=0),(n=t.Mr)||xh(t,e);for(var l=Le(),u=Le(),d=e.iterator,p=$.alloc();d.next();){var v=d.key,E=d.value;if(v.Zc()){var M=cc(t,v,e);M!==null?l.push(new a(v,E,M)):(!r||v.canMove())&&(M=E.point,o.assign(M),t.computeMove(v,o.add(s),i,p),v.location=p,E.shifted===void 0&&(E.shifted=new $),E.shifted.assign(p.re(M)))}else d.key instanceof pn&&u.push(d.sa)}for($.free(p),r=l.length,d=0;d<r;d++)v=l[d],o.assign(v.info.point),v.Su.shifted===void 0&&(v.Su.shifted=new $),v.node.location=o.add(v.Su.shifted);for(r=$.alloc(),d=$.alloc(),v=u.length,E=0;E<v;E++){var R=u[E];if(M=R.key,M instanceof pn)if(M.suspendsRouting){M.Tg=null,p=M.fromNode;var j=M.toNode;if(t.draggedLink!==null&&i.dragsLink)if(j=R.value.point,M.dragComputation===null)e.add(M,t.Pd(i,M,s)),Mh(M,s.x-j.x,s.y-j.y);else{R=$.allocAt(0,0),(p=M.i(0))&&p.w()&&R.assign(p);var at=p=$.alloc().assign(R).add(s);i.isGridSnapEnabled&&(i.isGridSnapRealtime||t.lastInput.up)&&(at=$.alloc(),Tc(t,M,p,at,i)),p.assign(M.dragComputation(M,p,at)).re(R),e.add(M,t.Pd(i,M,p)),Mh(M,p.x-j.x,p.y-j.y),$.free(R),$.free(p),at!==p&&$.free(at)}else p!==null&&(r.assign(p.location),at=e.I(p),at!==null&&r.re(at.point)),j!==null&&(d.assign(j.location),at=e.I(j),at!==null&&d.re(at.point)),p!==null&&j!==null?r.Xa(d)?(p=R.value.point,j=o,j.assign(r),j.re(p),e.add(M,t.Pd(i,M,r)),Mh(M,j.x,j.y)):(M.suspendsRouting=!1,M.bb()):(R=R.value.point,p=p!==null?r:j!==null?d:s,e.add(M,t.Pd(i,M,p)),Mh(M,p.x-R.x,p.y-R.y))}else(M.fromNode===null||M.toNode===null)&&(p=R.value.point,e.add(M,t.Pd(i,M,s)),Mh(M,s.x-p.x,s.y-p.y))}$.free(o),$.free(s),$.free(r),$.free(d),tn(l),tn(u),n||(So(t),hu(t,e))}}ue.prototype.computeMove=function(t,e,n,i){if(i===void 0&&(i=new $),i.assign(e),t===null)return i;var r=e,o=n.isGridSnapEnabled;o&&(n.isGridSnapRealtime||this.lastInput.up)&&(r=$.alloc(),Tc(this,t,e,r,n)),n=t.dragComputation!==null?t.dragComputation(t,e,r):r;var s=t.minLocation,l=s.x;isNaN(l)&&(l=o?Math.round(1e3*t.location.x)/1e3:t.location.x),s=s.y,isNaN(s)&&(s=o?Math.round(1e3*t.location.y)/1e3:t.location.y);var u=t.maxLocation,d=u.x;return isNaN(d)&&(d=o?Math.round(1e3*t.location.x)/1e3:t.location.x),u=u.y,isNaN(u)&&(u=o?Math.round(1e3*t.location.y)/1e3:t.location.y),i.h(Math.max(l,Math.min(n.x,d)),Math.max(s,Math.min(n.y,u))),r!==e&&$.free(r),i};function Ec(t){var e=t.toolManager.findTool("Dragging");return e!==null?e.dragOptions:t.Wm}function Tc(t,e,n,i,r){if(r===void 0&&(r=Ec(t)),i.assign(n),e!==null){var o=t.grid;e=r.gridSnapCellSize,t=e.width,e=e.height;var s=r.gridSnapOrigin,l=s.x;if(s=s.y,r=r.gridSnapCellSpot,o!==null){var u=o.gridCellSize;isNaN(t)&&(t=u.width),isNaN(e)&&(e=u.height),o=o.gridOrigin,isNaN(l)&&(l=o.x),isNaN(s)&&(s=o.y)}o=$.allocAt(0,0),o.yi(0,0,t,e,r),Vt.No(n.x,n.y,l+o.x,s+o.y,t,e,i),$.free(o)}}function xh(t,e){if(e!==null)for(t.Mr=!0,t=e.iterator;t.next();)e=t.key,e instanceof pn&&(e.suspendsRouting=!0)}function hu(t,e){if(e!==null){for(e=e.iterator;e.next();){var n=e.key;n instanceof pn&&(n.suspendsRouting=!1,ev(n)&&n.bb())}t.Mr=!1}}function cc(t,e,n){return e=e.containingGroup,e!==null&&(t=cc(t,e,n),t!==null||(t=n.I(e),t!==null))?t:null}D=ue.prototype,D.Pd=function(t,e,n){if(n===void 0)return new rh(Wi);var i=t.isGridSnapEnabled;return t.groupsSnapMembers||e.containingGroup===null||(i=!1),i?new rh(new $(Math.round(1e3*n.x)/1e3,Math.round(1e3*n.y)/1e3)):new rh(n.copy())};function du(t,e,n){if(e.diagram!==null&&e.diagram!==t&&ne("Cannot share a Layer with another Diagram: "+e+" of "+e.diagram),n===null?e.diagram!==null&&ne("Cannot add an existing Layer to this Diagram again: "+e):(n.diagram!==t&&ne("Existing Layer must be in this Diagram: "+n+" not in "+n.diagram),e===n&&ne("Cannot move a Layer before or after itself: "+e)),e.diagram!==t){e=e.name,t=t.Wa,n=t.count;for(var i=0;i<n;i++)t.M(i).name===e&&ne("Cannot add Layer with the name '"+e+"'; a Layer with the same name is already present in this Diagram.")}}D.Al=function(t){du(this,t,null),t.Xe(this);var e=this.Wa,n=e.count-1;if(!t.isTemporary)for(;0<=n&&e.M(n).isTemporary;)n--;return e.Gb(n+1,t),this.cc!==null&&this.cb(hs,"layers",this,null,t,null,n+1),this.N(),this.Ya(),this},D.Ww=function(t,e){du(this,t,e),t.Xe(this);var n=this.Wa,i=n.indexOf(t);0<=i&&(n.remove(t),this.cc!==null&&this.cb(Ts,"layers",this,t,null,i,null));var r=n.count,o;for(o=0;o<r;o++)if(n.M(o)===e){n.Gb(o,t);break}return this.cc!==null&&this.cb(hs,"layers",this,null,t,null,o),this.N(),0>i&&this.Ya(),this},D.Cy=function(t,e){du(this,t,e),t.Xe(this);var n=this.Wa,i=n.indexOf(t);0<=i&&(n.remove(t),this.cc!==null&&this.cb(Ts,"layers",this,t,null,i,null));var r=n.count,o;for(o=0;o<r;o++)if(n.M(o)===e){n.Gb(o+1,t);break}return this.cc!==null&&this.cb(hs,"layers",this,null,t,null,o+1),this.N(),0>i&&this.Ya(),this},D.kA=function(t){if(t.diagram!==this&&ne("Cannot remove a Layer from another Diagram: "+t+" of "+t.diagram),t.name!==""){var e=this.Wa,n=e.indexOf(t);if(e.remove(t)){for(e=t.Pa.copy().iterator;e.next();){var i=e.value,r=i.layerName;r!==t.name?i.layerName=r:i.layerName=""}this.cc!==null&&this.cb(Ts,"layers",this,t,null,n,null),this.N(),this.Ya()}}},D.Qj=function(t){for(var e=this.layers;e.next();){var n=e.value;if(n.name===t)return n}return null},D.Yw=function(t){return this.pf===null&&(this.pf=new Re),this.pf.add(t),this.model.Pe(t),this},D.mA=function(t){this.pf!==null&&(this.pf.remove(t),this.pf.count===0&&(this.pf=null)),this.model.ik(t)},D.Pe=function(t){return this.zg===null&&(this.zg=new Re),this.zg.add(t),this},D.ik=function(t){this.zg!==null&&(this.zg.remove(t),this.zg.count===0&&(this.zg=null))},D.ds=function(t){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(t),t.change!==Oa&&(this.isModified=!0),this.zg!==null)for(var e=this.zg,n=e.length,i=0;i<n;i++)e.M(i)(t)},D.cb=function(t,e,n,i,r,o,s){o===void 0&&(o=null),s===void 0&&(s=null);var l=new _o;l.diagram=this,l.change=t,l.propertyName=e,l.object=n,l.oldValue=i,l.oldParam=o,l.newValue=r,l.newParam=s,this.ds(l)},D.g=function(t,e,n,i,r){this.cb(Ro,t,this,e,n,i,r)},ue.prototype.changeState=function(t,e){if(t!==null&&t.diagram===this){var n=this.skipsModelSourceBindings;try{this.skipsModelSourceBindings=!0;var i=t.change;if(i===Ro){var r=t.object;if(qo(r,t.propertyName,t.I(e)),r instanceof Wt){var o=r.part;o!==null&&o.Wb()}this.isModified=!0}else if(i===hs){var s=t.object,l=t.newParam,u=t.newValue;if(s instanceof sn)if(typeof l=="number"&&u instanceof Wt){e?s.pc(l):s.Gb(l,u);var d=s.part;d!==null&&d.Wb()}else typeof l=="number"&&u instanceof Ys&&(u.isRow?yy(s,l,e?void 0:u):xy(s,l,e?void 0:u));else if(s instanceof $o){var p=t.oldParam===!0;typeof l=="number"&&u instanceof li&&(e?(u.isSelected=!1,u.isHighlighted=!1,u.Wb(),s.pc(p?l:-1,u,p)):s.oi(l,u,p))}else s instanceof ue?typeof l=="number"&&u instanceof $o&&(e?this.Wa.mb(l):(u.Xe(this),this.Wa.Gb(l,u))):ne("unknown ChangedEvent.Insert object: "+t.toString());this.isModified=!0}else if(i===Ts){var v=t.object,E=t.oldParam,M=t.oldValue;if(v instanceof sn)typeof E=="number"&&M instanceof Wt?e?v.Gb(E,M):v.pc(E):typeof E=="number"&&M instanceof Ys&&(M.isRow?yy(v,E,e?M:void 0):xy(v,E,e?M:void 0));else if(v instanceof $o){var R=t.newParam===!0;typeof E=="number"&&M instanceof li&&(e?0>v.Pa.indexOf(M)&&v.oi(E,M,R):(M.isSelected=!1,M.isHighlighted=!1,M.Wb(),v.pc(R?E:-1,M,R)))}else v instanceof ue?typeof E=="number"&&M instanceof $o&&(e?(M.Xe(this),this.Wa.Gb(E,M)):this.Wa.mb(E)):ne("unknown ChangedEvent.Remove object: "+t.toString());this.isModified=!0}else i!==Oa&&ne("unknown ChangedEvent: "+t.toString())}finally{this.skipsModelSourceBindings=n}}},ue.prototype.Ea=function(t){return this.undoManager.Ea(t)},ue.prototype.eb=function(t){return this.undoManager.eb(t)},ue.prototype.Kf=function(){return this.undoManager.Kf()},ue.prototype.commit=function(t,e){e===void 0&&(e="");var n=this.skipsUndoManager;e===null&&(this.skipsUndoManager=!0,e=""),this.undoManager.Ea(e);var i=!1;try{t(this),i=!0}finally{i?this.undoManager.eb(e):this.undoManager.Kf(),this.skipsUndoManager=n}},ue.prototype.updateAllTargetBindings=function(t){this.partManager.updateAllTargetBindings(t)},ue.prototype.rp=function(){this.partManager.rp()};function th(t,e,n){var i=t.animationManager;if(t.vb||t.ld)t.Ca=n,pu(t),t.N(),t.Ee=!0,i.zb&&(po(i)||i.ce.add(i.H,"scale",e,t.Ca));else if(t.ta===null)t.Ca=n,pu(t);else{t.vb=!0;var r=t.viewportBounds.copy(),o=t.Aa,s=t.ya,l=t.zoomPoint.x,u=t.zoomPoint.y,d=t.contentAlignment;isNaN(l)&&(d.$c()?d.Hf(Aa)?l=0:d.Hf(ka)&&(l=o-1):l=d.sb()?d.x*(o-1):o/2),isNaN(u)&&(d.$c()?d.Hf(za)?u=0:d.Hf(_a)&&(u=s-1):u=d.sb()?d.y*(s-1):s/2),t.scaleComputation===null||t.animationManager.defaultAnimation.isAnimating||(n=t.scaleComputation(t,n)),n<t.minScale&&(n=t.minScale),n>t.maxScale&&(n=t.maxScale),o=$.allocAt(t.pa.x+l/e-l/n,t.pa.y+u/e-u/n),t.position=o,$.free(o),t.Ca=n,pu(t),t.vb=!1,t.onViewportBoundsChanged(r,t.viewportBounds,e,!1),J(t,!1),i.zb&&(po(i)||i.ce.add(i.H,"scale",e,t.Ca))}}ue.prototype.onViewportBoundsChanged=function(t,e,n,i){if(!t.D(e)){i===void 0&&(i=!1),i||(this.Ee=!0),this.vd=!0;var r=this.layout;r===null||!r.isViewportSized||this.autoScale!==el||t.width===e.width&&t.height===e.height||r.C(),r=this.currentTool,this.Vk===!0&&r instanceof Bo&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),vh(r,this)),this.vb||this.invalidateViewport(t,e),ku(this),this.fc.scale=n,this.fc.position.x=t.x,this.fc.position.y=t.y,this.fc.bounds.assign(t),this.fc.canvasSize.width=Math.round(t.width*n),this.fc.canvasSize.height=Math.round(t.height*n),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=i,this.R("ViewportBoundsChanged",this.fc,t),this.isVirtualized&&this.links.each(function(o){o.isAvoiding&&o.actualBounds.Yc(e)&&o.bb()})}};function ku(t,e){var n=t.fe;if(n!==null&&n.visible){for(var i=ni.alloc(),r=1,o=1,s=n.O.s,l=s.length,u=0;u<l;u++){var d=s[u],p=Math.abs(d.interval);2>p||(Cg(d.figure)?o=o*p/Vt.vx(o,p):r=r*p/Vt.vx(r,p))}if(s=n.gridCellSize,i.h(o*s.width,r*s.height),e!==void 0)r=e.width,o=e.height,t=e.x,s=e.y;else{if(e=ke.alloc(),t=t.viewportBounds,e.h(t.x,t.y,t.width,t.height),!e.w()){ke.free(e);return}r=e.width,o=e.height,t=e.x,s=e.y,ke.free(e)}n.width=r+2*i.width,n.height=o+2*i.height,e=$.alloc(),Vt.No(t,s,0,0,i.width,i.height,e),e.offset(-i.width,-i.height),ni.free(i),n.part.location=e,$.free(e)}}ue.prototype.clearSelection=function(t){t===void 0&&(t=!1);var e=this.selection;if(e.count!==0){t||this.R("ChangingSelection",e);for(var n=e.Fa(),i=n.length,r=0;r<i;r++)n[r].isSelected=!1;e.ka(),e.clear(),e.freeze(),t||this.R("ChangedSelection",e)}},ue.prototype.select=function(t){t!==null&&t.diagram===this&&(!t.isSelected||1<this.selection.count)&&(this.R("ChangingSelection",this.selection),this.clearSelection(!0),t.isSelected=!0,this.R("ChangedSelection",this.selection))},ue.prototype.rA=function(t){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),In(t))for(var e=t.length,n=0;n<e;n++){var i=t[n];i instanceof li||ne("Diagram.selectCollection given something that is not a Part: "+i),i.isSelected=!0}else for(t=t.iterator;t.next();)e=t.value,e instanceof li||ne("Diagram.selectCollection given something that is not a Part: "+e),e.isSelected=!0;this.R("ChangedSelection",this.selection)},ue.prototype.clearHighlighteds=function(){var t=this.highlighteds;if(0<t.count){for(var e=t.Fa(),n=e.length,i=0;i<n;i++)e[i].isHighlighted=!1;t.ka(),t.clear(),t.freeze()}},D=ue.prototype,D.Iz=function(t){t!==null&&t.diagram===this&&(!t.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),t.isHighlighted=!0)},D.Jz=function(t){t=new je().addAll(t);for(var e=this.highlighteds.copy().hp(t).iterator;e.next();)e.value.isHighlighted=!1;for(t=t.iterator;t.next();)e=t.value,e instanceof li||ne("Diagram.highlightCollection given something that is not a Part: "+e),e.isHighlighted=!0},D.scroll=function(t,e,n){n===void 0&&(n=1);var i=e==="up"||e==="down",r=0,o=$.alloc();if(t==="pixel")r=n;else if(t==="line")r=n*(i?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(t==="page")t=i?this.viewportBounds.height:this.viewportBounds.width,t*=this.scale,t!==0&&(r=n*Math.max(t-(i?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(t==="document"){r=this.documentBounds,n=this.viewportBounds,e==="up"?this.position=o.h(n.x,r.y):e==="left"?this.position=o.h(r.x,n.y):e==="down"?this.position=o.h(n.x,r.bottom-n.height):e==="right"&&(this.position=o.h(r.right-n.width,n.y)),$.free(o);return}ne("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+t)}r/=this.scale,n=this.position,e==="up"?this.position=o.h(n.x,n.y-r):e==="down"?this.position=o.h(n.x,n.y+r):e==="left"?this.position=o.h(n.x-r,n.y):e==="right"?this.position=o.h(n.x+r,n.y):ne("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+e),$.free(o)},D.tv=function(t){var e=this.viewportBounds;e.Re(t)||(t=t.center,t.x-=e.width/2,t.y-=e.height/2,this.position=t)},D.es=function(t){var e=this.viewportBounds;t=t.center,t.x-=e.width/2,t.y-=e.height/2,this.position=t},D.op=function(t){var e=this.Ab;e.reset(),this.Ca!==1&&e.scale(this.Ca);var n=this.pa;return(n.x!==0||n.y!==0)&&isFinite(n.x)&&isFinite(n.y)&&e.translate(-n.x,-n.y),t.copy().transform(this.Ab)},D.zA=function(t){var e=this.Ab,n=t.x,i=t.y,r=n+t.width,o=i+t.height,s=e.m11,l=e.m12,u=e.m21,d=e.m22,p=e.dx,v=e.dy,E=n*s+i*u+p;e=n*l+i*d+v;var M=r*s+i*u+p;return t=r*l+i*d+v,i=n*s+o*u+p,n=n*l+o*d+v,s=r*s+o*u+p,r=r*l+o*d+v,o=Math.min(E,M),E=Math.max(E,M),M=Math.min(e,t),e=Math.max(e,t),o=Math.min(o,i),E=Math.max(E,i),M=Math.min(M,n),e=Math.max(e,n),o=Math.min(o,s),E=Math.max(E,s),M=Math.min(M,r),e=Math.max(e,r),new ke(o,M,E-o,e-M)},D.Ps=function(t){var e=this.Ab;e.reset(),this.Ca!==1&&e.scale(this.Ca);var n=this.pa;return(n.x!==0||n.y!==0)&&isFinite(n.x)&&isFinite(n.y)&&e.translate(-n.x,-n.y),se(t.copy(),this.Ab)};function eh(t){var e=t.isModified;t.Tw!==e&&(t.Tw=e,t.R("Modified"))}function gd(t){return t=Sp.get(t),t!==null?new t:new so}ue.prototype.doModelChanged=function(t){var e=this;if(t.model===this.model){var n=t.change,i=t.propertyName;if(n===Oa&&i[0]==="S")if(i==="StartingFirstTransaction"){var r=this;t=this.toolManager,t.mouseDownTools.each(function(u){return u.diagram=r}),t.mouseMoveTools.each(function(u){return u.diagram=r}),t.mouseUpTools.each(function(u){return u.diagram=r}),this.ld||this.hf||(this.Jk=!0,this.fn&&(this.kg=!0))}else i==="StartingUndo"||i==="StartingRedo"?(t=this.animationManager,t.defaultAnimation.isAnimating&&!this.skipsUndoManager&&t.Cc(),this.R("ChangingSelection",this.selection)):i==="StartedTransaction"&&(t=this.animationManager,t.defaultAnimation.isAnimating&&!this.skipsUndoManager&&t.Cc());else if(this.aa){this.aa=!1;try{if(t.modelChange===""&&n===Oa){(i==="FinishedUndo"||i==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),So(this));var o=this.animationManager;i==="RolledBackTransaction"&&o.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||Mo(o),i==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),i!=="CommittedTransaction"&&i!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){e.isModified=!1},1);var s=t.isTransactionFinished;if(s&&(eh(this),this.As.clear(),Vr(this.animationManager)),!this.Rt&&s&&this.lastInput.targetDiagram){this.Rt=!0;var l=this;Gn(function(){l.currentTool.standardMouseOver(),l.Rt=!1},10)}}}finally{this.aa=!0}}}};function Xu(t,e){e=e.O.s;for(var n=e.length,i=0;i<n;i++)$u(t,e[i])}function $u(t,e){if(e instanceof Ol){var n=e.element;if(n!==null&&n instanceof HTMLImageElement){n.Bg instanceof je&&n.Bg.add(t);var i=e.Eg;if(i!==null&&i.sq===!0&&e.diagram!==null&&e.diagram.Xn.add(e),n.hn)if(n=n.getAttribute("src")||"",i=t.Og.I(n),i===null)i=[],i.push(e),t.Og.add(n,i);else{for(t=0;t<i.length;t++)if(i[t]===e)return;i.push(e)}}}}function bh(t,e){if(e instanceof Ol){var n=e.element;if(n!==null&&n instanceof HTMLImageElement&&n.hn){var i=n.getAttribute("src")||"",r=t.Og.I(i);if(r!==null){for(var o=0;o<r.length;o++)if(r[o]===e){r.splice(o,1),r.length===0&&(t.Og.remove(i),n.Fq&&n.removeEventListener("load",n.Fq),n.Yp&&n.removeEventListener("error",n.Yp),delete n.Fq,delete n.Yp,n.Bg instanceof je&&n.Bg.remove(t),Dp(i));break}}}}}ue.prototype.Wd=function(){this.partManager.Wd()},ue.prototype.Aj=function(t,e){this.Yd.Aj(t,e)},ue.prototype.Cj=function(t,e){this.Yd.Cj(t,e)},ue.prototype.findPartForKey=function(t){return this.partManager.findPartForKey(t)},ue.prototype.Vb=function(t){return this.partManager.Vb(t)},ue.prototype.findLinkForKey=function(t){return this.partManager.findLinkForKey(t)},D=ue.prototype,D.Lc=function(t){return this.partManager.Lc(t)},D.ii=function(t){return this.partManager.ii(t)},D.Kc=function(t){return this.partManager.Kc(t)},D.ms=function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];return this.partManager.ms.apply(this.partManager,e instanceof Array?e:Gr(er(e)))},D.ls=function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];return this.partManager.ls.apply(this.partManager,e instanceof Array?e:Gr(er(e)))};function pu(t){var e=t.pa,n=t.Ca;t.Rw.h(e.x,e.y,Math.max(t.Aa,0)/n,Math.max(t.ya,0)/n),t.vd=!0}function _d(t,e){t.Zi=!1;var n=t.Sp;n.D(e)||(n=n.copy(),t.Sp.assign(e),J(t,!1),t.R("DocumentBoundsChanged",void 0,n),t.Ee=!0,t.N())}D.Va=function(){if(this.Zi){var t=ke.alloc();_d(this,this.computeBounds(t)),ke.free(t)}},D.rz=function(){for(var t=new je,e=this.nodes;e.next();){var n=e.value;n.isTopLevel&&t.add(n)}for(e=this.links;e.next();)n=e.value,n.isTopLevel&&t.add(n);return t.iterator},D.qz=function(){return this.ai.iterator},D.Uz=function(t){So(this),t&&vd(this,!0),this.ld?Wh(this,!1):(this.Jk=!0,jo(this))};function vd(t,e){for(var n=t.ai.iterator;n.next();)vp(t,n.value,e);t.layout&&(e?t.layout.isValidLayout=!1:t.layout.C())}function vp(t,e,n){if(e!==null){for(var i=e.gl.iterator;i.next();)vp(t,i.value,n);e.layout!==null&&(n?e.layout.isValidLayout=!1:e.layout.C())}}function Wh(t,e){if(t.xh&&!t.lt){var n=t.aa;t.aa=!0;var i=t.undoManager.transactionLevel,r=t.layout,o=t.animationManager;try{i===0&&(t.undoManager.isInternalTransaction=!0,t.Ea("Layout")),1>=i&&!o.defaultAnimation.isAnimating&&!o.zb&&(e||Eo(o,"Layout")),t.xh=!1;for(var s=t.ai.iterator;s.next();)yd(t,s.value,e,i);r.isValidLayout||(!e||r.isRealtime||r.isRealtime===null||i===0?(r.doLayout(t),So(t),r.isValidLayout=!0):t.xh=!0)}finally{e=t.undoManager.isInternalTransaction,i===0&&(t.eb("Layout"),t.undoManager.isInternalTransaction=!1),!e||i!==0&&i!==1||Mo(o),t.aa=n}}}function yd(t,e,n,i){if(e!==null){for(var r=e.gl.iterator;r.next();)yd(t,r.value,n,i);r=e.layout,r===null||r.isValidLayout||(!n||r.isRealtime||i===0?(e.rh=!e.location.w(),r.doLayout(e),e.C(32),Fr(t,e),r.isValidLayout=!0):t.xh=!0)}}D.yz=function(){for(var t=new Re,e=this.nodes;e.next();){var n=e.value;n.isTopLevel&&n.kh()===null&&t.add(n)}return t.iterator};function yp(t){function e(r){var o=r.toLowerCase(),s=new Re;n.add(r,s),n.add(o,s),i.add(r,r),i.add(o,r)}var n=new pt,i=new pt;e("InitialAnimationStarting"),e("AnimationStarting"),e("AnimationFinished"),e("BackgroundSingleClicked"),e("BackgroundDoubleClicked"),e("BackgroundContextClicked"),e("ClipboardChanged"),e("ClipboardPasted"),e("DocumentBoundsChanged"),e("ExternalObjectsDropped"),e("GainedFocus"),e("InitialLayoutCompleted"),e("LayoutCompleted"),e("LinkDrawn"),e("LinkRelinked"),e("LinkReshaped"),e("LostFocus"),e("Modified"),e("ObjectSingleClicked"),e("ObjectDoubleClicked"),e("ObjectContextClicked"),e("PartCreated"),e("PartResized"),e("PartRotated"),e("SelectionMoved"),e("SelectionCopied"),e("SelectionDeleting"),e("SelectionDeleted"),e("SelectionGrouped"),e("SelectionUngrouped"),e("ChangingSelection"),e("ChangedSelection"),e("SubGraphCollapsed"),e("SubGraphExpanded"),e("TextEdited"),e("TreeCollapsed"),e("TreeExpanded"),e("ViewportBoundsChanged"),e("InvalidateDraw"),t.iw=n,t.hw=i}function xd(t,e){var n=t.hw.I(e);return n!==null?n:t.hw.I(e.toLowerCase())}function nh(t,e){var n=t.iw.I(e);if(n!==null||(n=t.iw.I(e.toLowerCase()),n!==null))return n;ne("Unknown DiagramEvent name: "+e)}D.Bj=function(t,e){return t=nh(this,t),t!==null&&t.add(e),this},D.am=function(t,e){t=nh(this,t),t!==null&&t.remove(e)},D.R=function(t,e,n){var i=nh(this,t),r=new wu;if(r.diagram=this,t=xd(this,t),t!==null&&(r.name=t),e!==void 0&&(r.subject=e),n!==void 0&&(r.parameter=n),e=i.length,e===1)i.M(0)(r);else if(e!==0)for(i=i.Fa(),n=0;n<e;n++)(0,i[n])(r)};function ih(t){if(t.animationManager.isTicking)return!1;var e=t.currentTool;return e===t.toolManager.findTool("Dragging")?!t.Mr||e.isComplexRoutingRealtime:!0}D.Yj=function(t,e){return xp(this,!1,null,e||null).Yj(t.x,t.y,t.width,t.height)},ue.prototype.computeOccupiedArea=function(t){return this.isVirtualized?this.viewportBounds.copy():this.Zi?H(this,t):t.assign(this.documentBounds)};function xp(t,e,n,i){var r=t.Xh;if(r===null&&(t.Xh=r=new zf(t.avoidanceCellSize)),r.vs||r.group!==n||r.Yx!==i){if(r.Hx=Math.max(r.Os+1,Math.floor(t.avoidanceLimit/t.avoidanceCellSize.width)),r.Ix=Math.max(r.Os+1,Math.floor(t.avoidanceLimit/t.avoidanceCellSize.height)),n!==null&&(n=m0(t,n)),n===null){e=ke.alloc(),t.computeOccupiedArea(e),e.Bc(100,100),r.initialize(e);for(var o=t.nodes;o.next();){var s=o.value,l=s.layer;l!==null&&l.visible&&!l.isTemporary&&bp(t,s,i,e)}ke.free(e)}else{for(0<n.memberParts.count&&(e=t.computePartsBounds(n.memberParts,!1),e.Bc(20,20),r.initialize(e)),e=ke.alloc(),o=n.memberParts;o.next();)s=o.value,s instanceof Rn&&bp(t,s,i,e);ke.free(e)}r.group=n,r.Yx=i,r.vs=!1}else e&&d1(r);return r}function m0(t,e){return e.avoidable&&!e.isLinkLabel?e:e.containingGroup!==null?m0(t,e.containingGroup):null}function bp(t,e,n,i){if(e!==n&&e.isVisible()){if(e.avoidable&&!e.isLinkLabel){e=e.getAvoidableRect(i),t=t.Xh;var r=e.x,o=e.y;if(jp(t,r,o))for(n=(o-t.Od)/t.sc|0,i=Math.min((r+e.width-t.Nd)/t.rc|0,t.di),e=Math.min((o+e.height-t.Od)/t.sc|0,t.ei),r=(r-t.Nd)/t.rc|0;r<=i;r++)if(o=t.ac[r],o.fill)o.fill(Lh,n,e+1);else for(var s=n;s<=e;s++)o[s]=Lh}else if(e instanceof Ki)for(e=e.memberParts;e.next();)r=e.value,r instanceof Rn&&bp(t,r,n,i)}}function Sh(t,e){t.Xh===null||t.Xh.vs||e!==void 0&&(!e.avoidable||e.isLinkLabel)||(t.Xh.vs=!0)}ue.prototype.gs=function(t){this.wp.assign(t),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():cf(this)};function cf(t){t.vk===-1&&(t.vk=Gn(function(){if(t.vk!==-1&&(t.ug(),t.lastInput.event!==null)){var e=t.computeAutoScrollPosition(t.wp);e.Xa(t.position)||(t.position=e,t.lastInput.documentPoint=t.Ps(t.wp),t.doMouseMove(),t.Zi=!0,e=ke.alloc(),t.computeBounds(e),e.ed(t.documentBounds),_d(t,e),ke.free(e),t.Fc=!0,t.bd(),cf(t))}},t.vp))}ue.prototype.ug=function(){this.vk!==-1&&(Ft.clearTimeout(this.vk),this.vk=-1)},ue.prototype.computeAutoScrollPosition=function(t){var e=this.position,n=this.xp;if(0>=n.top&&0>=n.left&&0>=n.right&&0>=n.bottom)return e;var i=this.viewportBounds,r=this.scale;i=ke.allocAt(0,0,i.width*r,i.height*r);var o=$.allocAt(0,0);if(t.x>=i.x&&t.x<i.x+n.left&&this.allowHorizontalScroll){var s=Math.max(this.scrollHorizontalLineChange,1);s|=0,o.x-=s,t.x<i.x+n.left/2&&(o.x-=s),t.x<i.x+n.left/4&&(o.x-=4*s)}else t.x<=i.x+i.width&&t.x>i.x+i.width-n.right&&this.allowHorizontalScroll&&(s=Math.max(this.scrollHorizontalLineChange,1),s|=0,o.x+=s,t.x>i.x+i.width-n.right/2&&(o.x+=s),t.x>i.x+i.width-n.right/4&&(o.x+=4*s));return t.y>=i.y&&t.y<i.y+n.top&&this.allowVerticalScroll?(s=Math.max(this.scrollVerticalLineChange,1),s|=0,o.y-=s,t.y<i.y+n.top/2&&(o.y-=s),t.y<i.y+n.top/4&&(o.y-=4*s)):t.y<=i.y+i.height&&t.y>i.y+i.height-n.bottom&&this.allowVerticalScroll&&(s=Math.max(this.scrollVerticalLineChange,1),s|=0,o.y+=s,t.y>i.y+i.height-n.bottom/2&&(o.y+=s),t.y>i.y+i.height-n.bottom/4&&(o.y+=4*s)),o.Xa(Wi)||(e=new $(e.x+o.x/r,e.y+o.y/r)),ke.free(i),$.free(o),e},D=ue.prototype,D.Cs=function(){return null},D.av=function(){return null},D.bs=function(t,e){this.pj.add(t,e)},D.Fu=function(t){(this.Pw=t)||this.nodes.each(function(e){e instanceof Ki&&(e.$p=null)})};function Hd(t,e,n){function i(){var p=+new Date;for(o=!0,s.reset();s.next();)if(!s.value[0].al){o=!1;break}o||p-d>u?e(n,r,l):Ft.requestAnimationFrame(i)}for(var r=n.callback,o=!0,s=t.Og.iterator;s.next();)if(!s.value[0].al){o=!1;break}if(typeof r!="function"||o)return e(n,r,t);var l=t,u=n.callbackTimeout||300,d=+new Date;return Ft.requestAnimationFrame(function(){i()}),null}D.Wz=function(t){return gs?(t===void 0&&(t={}),t.returnType="Image",this.Jx(t)):null},D.Jx=function(t){return t===void 0&&(t={}),Hd(this,this.Xz,t)},D.Xz=function(t,e,n){var i=g0(n,t,"canvas",null);if(i===null)return null;n=i.Z.canvas;var r=null;if(n!==null)switch(r=t.returnType,r===void 0?r="string":r=r.toLowerCase(),r){case wd+"data":r=i.getImageData(0,0,n.width,n.height);break;case wd:i=(t.document||document).createElement("img"),i.src=n.toDataURL(t.type,t.details),r=i;break;case"blob":return typeof e!="function"&&ne('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof n.toBlob=="function"?(n.toBlob(e,t.type,t.details),"toBlob"):(e(null),null);default:r=n.toDataURL(t.type,t.details)}return typeof e=="function"?(e(r),null):r};function g0(t,e,n,i){if(t.animationManager.Cc(),t.bd(),t.ta===null)return null;typeof e!="object"&&ne("properties argument must be an Object.");var r=e.size||null,o=e.scale||null;e.scale!==void 0&&isNaN(e.scale)&&(o="NaN");var s=e.maxSize;e.maxSize===void 0&&(s=n==="SVG"?new ni(1/0,1/0):new ni(2e3,2e3));var l=e.position||null,u=e.parts||null,d=e.padding===void 0?1:e.padding,p=e.background||null,v=e.omitTemporary;v===void 0&&(v=!0);var E=e.document||document,M=e.elementFinished||null,R=e.showTemporary;R===void 0&&(R=!v),e=e.showGrid,e===void 0&&(e=R),r!==null&&isNaN(r.width)&&isNaN(r.height)&&(r=null),typeof d=="number"?d=new ri(d):d instanceof ri||ne("MakeImage padding must be a Margin or a number."),d.left=Math.max(d.left,0),d.right=Math.max(d.right,0),d.top=Math.max(d.top,0),d.bottom=Math.max(d.bottom,0),t.ib.Vc(!0),v=new Uu(null,E,void 0,!0);var j=v.context;if(!(r||o||u||l))return v.width=t.Aa+Math.ceil(d.left+d.right),v.height=t.ya+Math.ceil(d.top+d.bottom),n==="SVG"?i===null?null:(i.resize(v.width,v.height,v.width,v.height),i.ownerDocument=E,i.hs=M,wo(t,i.context,d,new ni(v.width,v.height),t.Ca,t.pa,u,p,R,e),i.context):(t.Xm=!1,wo(t,j,d,new ni(v.width,v.height),t.Ca,t.pa,u,p,R,e),t.Xm=!0,v.context);var at=t.Pp,q=t.documentBounds.copy();if(q.Fv(t.yb),R)for(var gt=t.Wa.s,wt=gt.length,Ot=0;Ot<wt;Ot++){var Gt=gt[Ot];if(Gt.visible&&Gt.isTemporary){Gt=Gt.Pa.s;for(var ce=Gt.length,Mn=0;Mn<ce;Mn++){var Un=Gt[Mn];Un.isInDocumentBounds&&Un.isVisible()&&(Un=Un.actualBounds,Un.w()&&q.ed(Un))}}}if(gt=new $(q.x,q.y),u!==null){for(wt=new ke(0,0,0,0),Ot=!0,Gt=u.iterator,Gt.reset();Gt.next();)ce=Gt.value,ce instanceof li&&(Mn=ce.layer,Mn!==null&&!Mn.visible||Mn!==null&&!R&&Mn.isTemporary||!ce.isVisible()||(ce=ce.actualBounds,ce.w()&&(Ot?(Ot=!1,wt.assign(ce)):wt.ed(ce))));q.width=wt.width,q.height=wt.height,gt.x=wt.x,gt.y=wt.y}return l!==null&&l.w()&&(gt=l,o||(o=at)),wt=l=0,d!==null&&(l=d.left+d.right,wt=d.top+d.bottom),Ot=Gt=0,r!==null&&(Gt=r.width,Ot=r.height,isFinite(Gt)&&(Gt=Math.max(0,Gt-l)),isFinite(Ot)&&(Ot=Math.max(0,Ot-wt))),r!==null&&o!==null?(o==="NaN"&&(o=at),r.w()?(r=Gt,q=Ot):isNaN(Ot)?(r=Gt,q=q.height*o):(r=q.width*o,q=Ot)):r!==null?r.w()?(o=Math.min(Gt/q.width,Ot/q.height),r=Gt,q=Ot):isNaN(Ot)?(o=Gt/q.width,r=Gt,q=q.height*o):(o=Ot/q.height,r=q.width*o,q=Ot):o!==null?o==="NaN"&&s.w()?(o=Math.min((s.width-l)/q.width,(s.height-wt)/q.height),o>at?(o=at,r=q.width,q=q.height):(r=s.width,q=s.height)):(r=q.width*o,q=q.height*o):(o=at,r=q.width,q=q.height),d!==null?(r+=l,q+=wt):d=new ri(0),s!==null&&(at=s.width,s=s.height,isNaN(at)&&(at=2e3),isNaN(s)&&(s=2e3),isFinite(at)&&(r=Math.min(r,at)),isFinite(s)&&(q=Math.min(q,s))),v.width=Math.ceil(r),v.height=Math.ceil(q),n==="SVG"?i===null?null:(i.resize(v.width,v.height,v.width,v.height),i.ownerDocument=E,i.hs=M,wo(t,i.context,d,new ni(Math.ceil(r),Math.ceil(q)),o,gt,u,p,R,e),i.context):(t.Xm=!1,wo(t,j,d,new ni(Math.ceil(r),Math.ceil(q)),o,gt,u,p,R,e),t.Xm=!0,v.context)}te.Object.defineProperties(ue.prototype,{renderer:{get:function(){return this.nl},set:function(t){this instanceof b||(t===""&&(t="default"),t=t.toLowerCase(),t!==this.nl&&(this.nl=t,t==="default"||t==="canvas"?(t=this.pj.get("svg"),t!==null&&t.Oa.remove(),this.ta&&(this.ib=this.ta.context)):t==="svg"?(this.pj.contains("svg")?t=this.pj.get("svg"):(t=new kc(this,Ft.document),this.bs("svg",t)),this.div!==null&&this.div.appendChild(t.Oa),this.ib=t.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))):t!=="debug"||this.pj.contains("SVG")||(t=new kc(this,Ft.document),this.bs("SVG",t),t.Oa.style.backgroundColor="whitesmoke",this.div!==null&&this.div.after(t.Oa)),this.hk()))}},div:{get:function(){return this.Ka},set:function(t){if(this.Ka!==t){var e=this.Ka;e!==null?(e.H=void 0,e.goDiagram=void 0,e.go=void 0,e.innerHTML="",this.ta!==null&&(e=this.ta.Oa,this.removeEventListener(e,"pointermove",this.dk,!1),this.removeEventListener(e,"pointerdown",this.ui,!1),this.removeEventListener(e,"pointerup",this.fk,!1),this.removeEventListener(e,"pointerout",this.ek,!1),this.removeEventListener(e,"pointercancel",this.ck,!1),this.ta.mx()),this.ol&&(this.ol.disconnect(),this.ol=null),e=this.toolManager,e!==null&&(e.mouseDownTools.each(function(n){n.cancelWaitAfter()}),e.mouseMoveTools.each(function(n){n.cancelWaitAfter()}),e.mouseUpTools.each(function(n){n.cancelWaitAfter()})),e.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(Ft,"resize",this.Ov,!1),this.removeEventListener(Ft,"wheel",this.$j,!0),oi===this&&(oi=null)):this.ui===null&&(this.hf=!1),this.Ka=null,t!==null&&((e=t.H)&&(e.div=null),ks(this,t),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(t){this.nt!==t&&(this.nt=t,t!==null&&(this.Vt=t.fromPort,this.Wt=t.toPort))}},Mx:{get:function(){return this.Vt},set:function(t){this.Vt=t}},Nx:{get:function(){return this.Wt},set:function(t){this.Wt=t}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(t){this.Wg=t,this.cc.skipsUndoManager=t}},delaysLayout:{get:function(){return this.lt},set:function(t){this.lt=t}},opacity:{get:function(){return this.pb},set:function(t){var e=this.pb;e!==t&&((0>t||1<t)&&Fn(t,"0 <= value <= 1",ue,"opacity"),this.pb=t,this.g("opacity",e,t),this.N())}},validCycle:{get:function(){return this.wu},set:function(t){var e=this.wu;e!==t&&(this.wu=t,this.g("validCycle",e,t))}},layers:{get:function(){return this.Wa.iterator}},isModelReadOnly:{get:function(){var t=this.cc;return t===null?!1:t.isReadOnly},set:function(t){var e=this.cc;e!==null&&(e.isReadOnly=t)}},isReadOnly:{get:function(){return this.Gg},set:function(t){var e=this.Gg;e!==t&&(this.Gg=t,this.g("isReadOnly",e,t))}},isEnabled:{get:function(){return this.Jd},set:function(t){var e=this.Jd;e!==t&&(this.Jd=t,this.g("isEnabled",e,t))}},allowClipboard:{get:function(){return this.Us},set:function(t){var e=this.Us;e!==t&&(this.Us=t,this.g("allowClipboard",e,t))}},allowCopy:{get:function(){return this.Fi},set:function(t){var e=this.Fi;e!==t&&(this.Fi=t,this.g("allowCopy",e,t))}},allowDelete:{get:function(){return this.Gi},set:function(t){var e=this.Gi;e!==t&&(this.Gi=t,this.g("allowDelete",e,t))}},allowDragOut:{get:function(){return this.Vs},set:function(t){var e=this.Vs;e!==t&&(this.Vs=t,this.g("allowDragOut",e,t))}},allowDrop:{get:function(){return this.Ws},set:function(t){var e=this.Ws;e!==t&&(this.Ws=t,this.g("allowDrop",e,t))}},allowTextEdit:{get:function(){return this.Pi},set:function(t){var e=this.Pi;e!==t&&(this.Pi=t,this.g("allowTextEdit",e,t))}},allowGroup:{get:function(){return this.Hi},set:function(t){var e=this.Hi;e!==t&&(this.Hi=t,this.g("allowGroup",e,t))}},allowUngroup:{get:function(){return this.Qi},set:function(t){var e=this.Qi;e!==t&&(this.Qi=t,this.g("allowUngroup",e,t))}},allowInsert:{get:function(){return this.Ys},set:function(t){var e=this.Ys;e!==t&&(this.Ys=t,this.g("allowInsert",e,t))}},allowLink:{get:function(){return this.Ii},set:function(t){var e=this.Ii;e!==t&&(this.Ii=t,this.g("allowLink",e,t))}},allowRelink:{get:function(){return this.Ki},set:function(t){var e=this.Ki;e!==t&&(this.Ki=t,this.g("allowRelink",e,t))}},allowMove:{get:function(){return this.Ji},set:function(t){var e=this.Ji;e!==t&&(this.Ji=t,this.g("allowMove",e,t))}},allowReshape:{get:function(){return this.Li},set:function(t){var e=this.Li;e!==t&&(this.Li=t,this.g("allowReshape",e,t))}},allowResize:{get:function(){return this.Mi},set:function(t){var e=this.Mi;e!==t&&(this.Mi=t,this.g("allowResize",e,t))}},allowRotate:{get:function(){return this.Ni},set:function(t){var e=this.Ni;e!==t&&(this.Ni=t,this.g("allowRotate",e,t))}},allowSelect:{get:function(){return this.Oi},set:function(t){var e=this.Oi;e!==t&&(this.Oi=t,this.g("allowSelect",e,t))}},allowUndo:{get:function(){return this.Zs},set:function(t){var e=this.Zs;e!==t&&(this.Zs=t,this.g("allowUndo",e,t))}},allowZoom:{get:function(){return this.at},set:function(t){var e=this.at;e!==t&&(this.at=t,this.g("allowZoom",e,t))}},hasVerticalScrollbar:{get:function(){return this.nn},set:function(t){var e=this.nn;e!==t&&(this.nn=t,this.Ee=!0,this.N(),this.g("hasVerticalScrollbar",e,t),J(this,!1))}},hasHorizontalScrollbar:{get:function(){return this.mn},set:function(t){var e=this.mn;e!==t&&(this.mn=t,this.Ee=!0,this.N(),this.g("hasHorizontalScrollbar",e,t),J(this,!1))}},allowHorizontalScroll:{get:function(){return this.Xs},set:function(t){var e=this.Xs;e!==t&&(this.Xs=t,this.g("allowHorizontalScroll",e,t),J(this,!1))}},allowVerticalScroll:{get:function(){return this.$s},set:function(t){var e=this.$s;e!==t&&(this.$s=t,this.g("allowVerticalScroll",e,t),J(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(t){var e=this.iu;e!==t&&(0>t&&Fn(t,">= 0",ue,"scrollHorizontalLineChange"),this.iu=t,this.g("scrollHorizontalLineChange",e,t))}},scrollVerticalLineChange:{get:function(){return this.mu},set:function(t){var e=this.mu;e!==t&&(0>t&&Fn(t,">= 0",ue,"scrollVerticalLineChange"),this.mu=t,this.g("scrollVerticalLineChange",e,t))}},lastInput:{get:function(){return this.cj},set:function(t){this.cj=t}},previousInput:{get:function(){return this.Qg},set:function(t){this.Qg=t}},firstInput:{get:function(){return this.bq},set:function(t){this.bq=t}},currentCursor:{get:function(){return this.it},set:function(t){if(t===""&&(t=this.Op),this.it!==t){var e=this.ta,n=this.Ka;if(e!==null&&n!==null){this.it=t;var i=e.style.cursor;e.style.cursor=t,n.style.cursor=t,e.style.cursor===i&&(e.style.cursor="-webkit-"+t,n.style.cursor="-webkit-"+t,e.style.cursor===i&&(e.style.cursor="-moz-"+t,n.style.cursor="-moz-"+t,e.style.cursor===i&&(e.style.cursor=t,n.style.cursor=t)))}}}},defaultCursor:{get:function(){return this.Op},set:function(t){t===""&&(t="auto");var e=this.Op;e!==t&&(this.Op=t,this.g("defaultCursor",e,t))}},click:{get:function(){return this.zh},set:function(t){var e=this.zh;e!==t&&(this.zh=t,this.g("click",e,t))}},doubleClick:{get:function(){return this.Fh},set:function(t){var e=this.Fh;e!==t&&(this.Fh=t,this.g("doubleClick",e,t))}},contextClick:{get:function(){return this.Bh},set:function(t){var e=this.Bh;e!==t&&(this.Bh=t,this.g("contextClick",e,t))}},mouseOver:{get:function(){return this.Qh},set:function(t){var e=this.Qh;e!==t&&(this.Qh=t,this.g("mouseOver",e,t))}},mouseHover:{get:function(){return this.Oh},set:function(t){var e=this.Oh;e!==t&&(this.Oh=t,this.g("mouseHover",e,t))}},mouseHold:{get:function(){return this.Nh},set:function(t){var e=this.Nh;e!==t&&(this.Nh=t,this.g("mouseHold",e,t))}},mouseDragOver:{get:function(){return this.Qt},set:function(t){var e=this.Qt;e!==t&&(this.Qt=t,this.g("mouseDragOver",e,t))}},mouseDrop:{get:function(){return this.Lh},set:function(t){var e=this.Lh;e!==t&&(this.Lh=t,this.g("mouseDrop",e,t))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(t){var e=this.xt;e!==t&&(this.xt=t,this.g("handlesDragDropForTopLevelParts",e,t))}},mouseEnter:{get:function(){return this.Mh},set:function(t){var e=this.Mh;e!==t&&(this.Mh=t,this.g("mouseEnter",e,t))}},mouseLeave:{get:function(){return this.Ph},set:function(t){var e=this.Ph;e!==t&&(this.Ph=t,this.g("mouseLeave",e,t))}},toolTip:{get:function(){return this.$h},set:function(t){var e=this.$h;e!==t&&(this.$h=t,this.g("toolTip",e,t))}},contextMenu:{get:function(){return this.Ch},set:function(t){var e=this.Ch;e!==t&&(this.Ch=t,this.g("contextMenu",e,t))}},commandHandler:{get:function(){return this.nb},set:function(t){this.nb!==t&&(this.nb=t,t.Xe(this))}},toolManager:{get:function(){return this.te},set:function(t){this.te!==t&&(this.te=t,t.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(t){var e=this.ob;e!==t&&(this.ob=t,t.diagram=this,this.currentTool===e&&(this.currentTool=t))}},currentTool:{get:function(){return this.hb},set:function(t){var e=this.hb;e&&(e.isActive&&e.doDeactivate(),e.cancelWaitAfter(),e.doStop()),t===null&&(t=this.defaultTool),t!==null&&(this.hb=t,t.diagram=this,t.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(t){var e=this.Nt;if(e!==t)if(0<=t&&!isNaN(t)){if(this.Nt=t,this.g("maxSelectionCount",e,t),!this.undoManager.isUndoingRedoing&&(t=this.selection.count-t,0<t)){this.R("ChangingSelection",this.selection),e=this.selection.Fa();for(var n=0;n<t;n++)e[n].isSelected=!1;this.R("ChangedSelection",this.selection)}}else Fn(t,">= 0",ue,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(t){var e=this.St;e!==t&&(this.St=t,this.g("nodeSelectionAdornmentTemplate",e,t))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(t){var e=this.wt;e!==t&&(this.wt=t,this.g("groupSelectionAdornmentTemplate",e,t))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(t){var e=this.Kt;e!==t&&(this.Kt=t,this.g("linkSelectionAdornmentTemplate",e,t))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var t=this.undoManager;return t.isEnabled?t.currentTransaction!==null?!0:this.rn&&this.Ce!==t.historyIndex:this.rn},set:function(t){if(this.rn!==t){this.rn=t;var e=this.undoManager;!t&&e.isEnabled&&(this.Ce=e.historyIndex),t||eh(this)}}},model:{get:function(){return this.cc},set:function(t){var e=this.cc;if(e!==t){this.currentTool.doCancel(),e&&e.undoManager!==t.undoManager&&e.undoManager.isInTransaction&&ne("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var n=Io(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var i=this.vb;this.vb=!0,Eo(this.animationManager,"Model"),e&&(this.pf!==null&&this.pf.each(function(o){return e.ik(o)}),e.ik(this.Oc)),this.cc=t,this.partManager=gd(this.cc.type);for(var r=0;r<n.length;r++)this.add(n[r]);t.Pe(this.Hb),this.partManager.addAllModeledParts(),t.ik(this.Hb),t.Pe(this.Oc),this.pf!==null&&this.pf.each(function(o){return t.Pe(o)}),this.vb=i,this.Ya(),this.vb||this.N(),e&&t.undoManager.copyProperties(e.undoManager)}}},aa:{get:function(){return this.rw},set:function(t){this.rw=t}},As:{get:function(){return this.sy}},skipsModelSourceBindings:{get:function(){return this.Iw},set:function(t){this.Iw=t}},Ns:{get:function(){return this.ou},set:function(t){this.ou=t}},nodeTemplate:{get:function(){return this.Lg.I("")},set:function(t){var e=this.Lg.I("");e!==t&&(this.Lg.add("",t),this.g("nodeTemplate",e,t),this.undoManager.isUndoingRedoing||this.Wd())}},nodeTemplateMap:{get:function(){return this.Lg},set:function(t){var e=this.Lg;e!==t&&(this.Lg=t,this.g("nodeTemplateMap",e,t),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplate:{get:function(){return this.Yi.I("")},set:function(t){var e=this.Yi.I("");e!==t&&(this.Yi.add("",t),this.g("groupTemplate",e,t),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplateMap:{get:function(){return this.Yi},set:function(t){var e=this.Yi;e!==t&&(this.Yi=t,this.g("groupTemplateMap",e,t),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplate:{get:function(){return this.Kh.I("")},set:function(t){var e=this.Kh.I("");e!==t&&(this.Kh.add("",t),this.g("linkTemplate",e,t),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplateMap:{get:function(){return this.Kh},set:function(t){var e=this.Kh;e!==t&&(this.Kh=t,this.g("linkTemplateMap",e,t),this.undoManager.isUndoingRedoing||this.Wd())}},isMouseCaptured:{get:function(){return this.qw},set:function(t){var e=this.ta;e!==null&&(e=e.Oa,e instanceof SVGElement||(t?(this.lastInput.bubbles=!1,this.removeEventListener(e,"pointermove",this.dk,!1),this.removeEventListener(e,"pointerdown",this.ui,!1),this.removeEventListener(e,"pointerup",this.fk,!1),this.removeEventListener(e,"pointerout",this.ek,!1),this.removeEventListener(e,"pointercancel",this.ck,!1),this.addEventListener(Ft,"pointermove",this.dk,!0),this.addEventListener(Ft,"pointerdown",this.ui,!0),this.addEventListener(Ft,"pointerup",this.fk,!0),this.addEventListener(Ft,"pointerout",this.ek,!0),this.addEventListener(Ft,"pointercancel",this.ck,!0),this.removeEventListener(e,"wheel",this.$j,!1),this.addEventListener(Ft,"wheel",this.$j,!0),this.addEventListener(Ft,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Ft,"pointermove",this.dk,!0),this.removeEventListener(Ft,"pointerdown",this.ui,!0),this.removeEventListener(Ft,"pointerup",this.fk,!0),this.removeEventListener(Ft,"pointerout",this.ek,!0),this.removeEventListener(Ft,"pointercancel",this.ck,!0),this.addEventListener(e,"pointermove",this.dk,!1),this.addEventListener(e,"pointerdown",this.ui,!1),this.addEventListener(e,"pointerup",this.fk,!1),this.addEventListener(e,"pointerout",this.ek,!1),this.addEventListener(e,"pointercancel",this.ck,!1),this.removeEventListener(Ft,"wheel",this.$j,!0),this.removeEventListener(Ft,"selectstart",this.preventDefault,!1),this.addEventListener(e,"wheel",this.$j,!1)),this.qw=t))}},position:{get:function(){return this.pa},set:function(t){var e=$.alloc().assign(this.pa);if(!e.D(t)){var n=this.viewportBounds.copy();this.pa.assign(t),Qr(this.animationManager,e,this.pa),this.vb||this.ta===null&&!this.wo.w()?pu(this):(this.vb=!0,t=this.scale,Zt(this,this.Sp,this.Aa/t,this.ya/t,this.zk,!1),this.vb=!1),this.vb||this.onViewportBoundsChanged(n,this.viewportBounds,this.Ca,!1)}$.free(e)}},initialPosition:{get:function(){return this.zt},set:function(t){this.zt.D(t)||(this.zt=t.J())}},initialScale:{get:function(){return this.At},set:function(t){this.At!==t&&(this.At=t)}},grid:{get:function(){return this.fe===null&&(this.fe=f(this)),this.fe},set:function(t){var e=this.fe;if(e!==t){e===null&&(e=this.fe=f(this)),t.type!==sn.Grid&&ne("Diagram.grid must be a Panel of type Panel.Grid");var n=e.panel;n!==null&&n.remove(e),this.fe=t,t.name="GRID",n!==null&&n.add(t),ku(this),this.N(),this.g("grid",e,t)}}},viewportBounds:{get:function(){return this.Rw}},viewSize:{get:function(){return this.wo},set:function(t){var e=this.viewSize;e.D(t)||(this.wo=t=t.J(),this.ya=this.Aa=0,t.w()?(this.Aa=t.width,this.ya=t.height):this.Ka!==null&&(this.Aa=this.Ka.clientWidth||1,this.ya=this.Ka.clientHeight||1),pu(this),this.Ya(),this.g("viewSize",e,t),this.redraw())}},fixedBounds:{get:function(){return this.ut},set:function(t){var e=this.ut;e.D(t)||(t.width!==-1/0&&t.height!==1/0&&t.height!==-1/0||ne("fixedBounds width/height must not be Infinity"),this.ut=t=t.J(),this.Ya(),this.g("fixedBounds",e,t))}},scrollMargin:{get:function(){return this.rj},set:function(t){typeof t=="number"&&(t=new ri(t));var e=this.rj;e.D(t)||(this.rj=t=t.J(),this.g("scrollMargin",e,t),this.hk())}},scrollMode:{get:function(){return this.sj},set:function(t){var e=this.sj;e!==t&&(this.sj=t,t===wh&&J(this,!1),this.g("scrollMode",e,t),this.Ee=!0,this.N())}},scrollsPageOnFocus:{get:function(){return this.nu},set:function(t){var e=this.nu;e!==t&&(this.nu=t,this.g("scrollsPageOnFocus",e,t))}},positionComputation:{get:function(){return this.Zt},set:function(t){var e=this.Zt;e!==t&&(this.Zt=t,J(this,!1),this.g("positionComputation",e,t))}},scaleComputation:{get:function(){return this.fu},set:function(t){var e=this.fu;e!==t&&(this.fu=t,th(this,this.scale,this.scale),this.g("scaleComputation",e,t))}},documentBounds:{get:function(){return this.Sp}},isVirtualized:{get:function(){return this.It},set:function(t){var e=this.It;e!==t&&(this.It=t,this.g("isVirtualized",e,t))}},scale:{get:function(){return this.Ca},set:function(t){var e=this.Ca;e!==t&&th(this,e,t)}},defaultScale:{get:function(){return this.Pp},set:function(t){this.Pp=t}},autoScale:{get:function(){return this.yh},set:function(t){var e=this.yh;e!==t&&(this.yh=t,this.g("autoScale",e,t),t!==el&&J(this,!1))}},initialAutoScale:{get:function(){return this.Fg},set:function(t){var e=this.Fg;e!==t&&(this.Fg=t,this.g("initialAutoScale",e,t))}},initialViewportSpot:{get:function(){return this.Bt},set:function(t){var e=this.Bt;e!==t&&(t.sb()||ne("initialViewportSpot must be a specific Spot: "+t),this.Bt=t,this.g("initialViewportSpot",e,t))}},initialDocumentSpot:{get:function(){return this.yt},set:function(t){var e=this.yt;e!==t&&(t.sb()||ne("initialViewportSpot must be a specific Spot: "+t),this.yt=t,this.g("initialDocumentSpot",e,t))}},minScale:{get:function(){return this.Ot},set:function(t){var e=this.Ot;e!==t&&(0<t?(this.Ot=t,this.g("minScale",e,t),t>this.scale&&(this.scale=t)):Fn(t,"> 0",ue,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(t){var e=this.Mt;e!==t&&(0<t?(this.Mt=t,this.g("maxScale",e,t),t<this.scale&&(this.scale=t)):Fn(t,"> 0",ue,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(t){this.zu.D(t)||(this.zu=t=t.J())}},contentAlignment:{get:function(){return this.zk},set:function(t){var e=this.zk;e.D(t)||(this.zk=t=t.J(),this.g("contentAlignment",e,t),J(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(t){var e=this.pq;e.D(t)||(this.pq=t=t.J(),this.g("initialContentAlignment",e,t))}},padding:{get:function(){return this.yb},set:function(t){typeof t=="number"&&(t=new ri(t));var e=this.yb;e.D(t)||(this.yb=t=t.J(),this.Ya(),this.g("padding",e,t))}},partManager:{get:function(){return this.Pc},set:function(t){var e=this.Pc;e!==t&&(t.diagram!==null&&ne("Cannot share PartManagers between Diagrams: "+t.toString()),e&&e.Xe(null),this.Pc=t,t.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(t){var e=this.Sc;e!==t&&(this.Sc=t,t.diagram=this,t.group=null,this.xh=!0,this.g("layout",e,t),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(t){var e=this.Ht;if(e!==t&&(this.Ht=t,this.g("isTreePathToChildren",e,t),!this.undoManager.isUndoingRedoing))for(t=this.nodes;t.next();)If(t.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(t){var e=this.uu;e!==t&&(t!==Ch&&t!==Ks&&t!==wp&&ne("Unknown Diagram.treeCollapsePolicy: "+t),this.uu=t,this.g("treeCollapsePolicy",e,t))}},Ue:{get:function(){return this.pw},set:function(t){this.pw=t}},avoidanceCellSize:{get:function(){return this.aw},set:function(t){this.Xh=null,this.aw=new ni(Math.max(1,t.width),Math.max(1,t.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(t){this.bw=Math.max(1,t)}},autoScrollInterval:{get:function(){return this.vp},set:function(t){var e=this.vp;e!==t&&(this.vp=t,this.g("autoScrollInterval",e,t))}},autoScrollRegion:{get:function(){return this.xp},set:function(t){typeof t=="number"&&(t=new ri(t));var e=this.xp;e.D(t)||(this.xp=t=t.J(),this.Ya(),this.g("autoScrollRegion",e,t))}}}),te.Object.defineProperties(ue,{licenseKey:{get:function(){return gf.jc()},set:function(t){gf.add(t.replace(/\s/g,""))}},version:{get:function(){return Sd}}}),ue.prototype.makeImageData=ue.prototype.Jx,ue.prototype.makeImage=ue.prototype.Wz,ue.prototype.cacheGroupExternalLinks=ue.prototype.Fu,ue.prototype.addRenderer=ue.prototype.bs,ue.prototype.makeSVG=ue.prototype.av,ue.prototype.makeSvg=ue.prototype.Cs,ue.prototype.stopAutoScroll=ue.prototype.ug,ue.prototype.doAutoScroll=ue.prototype.gs,ue.prototype.isUnoccupied=ue.prototype.Yj,ue.prototype.raiseDiagramEvent=ue.prototype.R,ue.prototype.removeDiagramListener=ue.prototype.am,ue.prototype.addDiagramListener=ue.prototype.Bj,ue.prototype.findTreeRoots=ue.prototype.yz,ue.prototype.layoutDiagram=ue.prototype.Uz,ue.prototype.findTopLevelGroups=ue.prototype.qz,ue.prototype.findTopLevelNodesAndLinks=ue.prototype.rz,ue.prototype.ensureBounds=ue.prototype.Va,ue.prototype.findLinksByExample=ue.prototype.ls,ue.prototype.findNodesByExample=ue.prototype.ms,ue.prototype.findLinkForData=ue.prototype.Kc,ue.prototype.findNodeForData=ue.prototype.ii,ue.prototype.findPartForData=ue.prototype.Lc,ue.prototype.findLinkForKey=ue.prototype.findLinkForKey,ue.prototype.findNodeForKey=ue.prototype.Vb,ue.prototype.findPartForKey=ue.prototype.findPartForKey,ue.prototype.rebuildParts=ue.prototype.Wd,ue.prototype.transformViewToDoc=ue.prototype.Ps,ue.prototype.transformRectDocToView=ue.prototype.zA,ue.prototype.transformDocToView=ue.prototype.op,ue.prototype.centerRect=ue.prototype.es,ue.prototype.scrollToRect=ue.prototype.tv,ue.prototype.scroll=ue.prototype.scroll,ue.prototype.highlightCollection=ue.prototype.Jz,ue.prototype.highlight=ue.prototype.Iz,ue.prototype.selectCollection=ue.prototype.rA,ue.prototype.select=ue.prototype.select,ue.prototype.updateAllRelationshipsFromData=ue.prototype.rp,ue.prototype.updateAllTargetBindings=ue.prototype.updateAllTargetBindings,ue.prototype.commit=ue.prototype.commit,ue.prototype.rollbackTransaction=ue.prototype.Kf,ue.prototype.commitTransaction=ue.prototype.eb,ue.prototype.startTransaction=ue.prototype.Ea,ue.prototype.raiseChanged=ue.prototype.g,ue.prototype.raiseChangedEvent=ue.prototype.cb,ue.prototype.removeChangedListener=ue.prototype.ik,ue.prototype.addChangedListener=ue.prototype.Pe,ue.prototype.removeModelChangedListener=ue.prototype.mA,ue.prototype.addModelChangedListener=ue.prototype.Yw,ue.prototype.findLayer=ue.prototype.Qj,ue.prototype.removeLayer=ue.prototype.kA,ue.prototype.addLayerAfter=ue.prototype.Cy,ue.prototype.addLayerBefore=ue.prototype.Ww,ue.prototype.addLayer=ue.prototype.Al,ue.prototype.moveParts=ue.prototype.moveParts,ue.prototype.copyParts=ue.prototype.Kj,ue.prototype.removeParts=ue.prototype.Is,ue.prototype.remove=ue.prototype.remove,ue.prototype.add=ue.prototype.add,ue.prototype.clearDelayedGeometries=ue.prototype.bx,ue.prototype.setProperties=ue.prototype.nm,ue.prototype.attach=ue.prototype.Du,ue.prototype.set=ue.prototype.set,ue.prototype.resetInputOptions=ue.prototype.Sx,ue.prototype.setInputOption=ue.prototype.sA,ue.prototype.getInputOption=ue.prototype.Ql,ue.prototype.resetRenderingHints=ue.prototype.Tx,ue.prototype.setRenderingHint=ue.prototype.Xx,ue.prototype.getRenderingHint=ue.prototype.Gf,ue.prototype.maybeUpdate=ue.prototype.bd,ue.prototype.requestUpdate=ue.prototype.$b,ue.prototype.delayInitialization=ue.prototype.Xy,ue.prototype.isUpdateRequested=ue.prototype.Pz,ue.prototype.invalidateDocumentBounds=ue.prototype.Ya,ue.prototype.findObjectsNear=ue.prototype.og,ue.prototype.findPartsNear=ue.prototype.mz,ue.prototype.findObjectsIn=ue.prototype.Cf,ue.prototype.findPartsIn=ue.prototype.ux,ue.prototype.findObjectsAt=ue.prototype.ji,ue.prototype.findPartsAt=ue.prototype.lz,ue.prototype.findObjectAt=ue.prototype.ic,ue.prototype.findPartAt=ue.prototype.Ol,ue.prototype.focusObject=ue.prototype.zz,ue.prototype.alignDocument=ue.prototype.Jy,ue.prototype.zoomToRect=ue.prototype.BA,ue.prototype.zoomToFit=ue.prototype.zoomToFit,ue.prototype.diagramScroll=ue.prototype.kx,ue.prototype.focus=ue.prototype.focus;var Sp=new pt,v0=null,gs=Ft.document!==void 0,bd=null,Vh="",el=new le(ue,"None",0),fu=new le(ue,"Uniform",1),Kh=new le(ue,"UniformToFill",2),Gd=new le(ue,"CycleAll",10),hf=new le(ue,"CycleNotDirected",11),df=new le(ue,"CycleNotDirectedFast",12),pf=new le(ue,"CycleNotUndirected",13),ff=new le(ue,"CycleDestinationTree",14),mf=new le(ue,"CycleSourceTree",15),wh=new le(ue,"DocumentScroll",1),Wd=new le(ue,"InfiniteScroll",2),Ch=new le(ue,"TreeParentCollapsed",21),Ks=new le(ue,"AllParentsCollapsed",22),wp=new le(ue,"AnyParentsCollapsed",23),gf=new Re,Sd="2.3.10",wd="image",Vd=null,y0=!1;function Za(){if(gs){var t=Ft.document.createElement("canvas"),e=t.getContext("2d"),n=Sn("7ca11abfd022028846");e[n]=Sn("398c3597c01238");for(var i=["5da73c80a36455d7038e4972187c3cae51fd22",qe.Dx+"4ae6247590da4bb21c324ba3a84e385776",Ti.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Vt.za],r=1;5>r;r++)e[Sn("7ca11abfd7330390")](Sn(i[r-1]),10,15*r);for(e[n]=Sn("39f046ebb36e4b"),n=1;5>n;n++)e[Sn("7ca11abfd7330390")](Sn(i[n-1]),10,15*n);(i.length!==4||i[0][0]!=="5"||i[3][0]!=="7")&&(Ti.prototype.Cd=Ti.prototype.Eu),Vd=t}}ue.className="Diagram",ue.fromDiv=function(t){var e=t;return typeof t=="string"&&(e=Ft.document.getElementById(t)),e instanceof HTMLDivElement&&e.H instanceof ue?e.H:null},ue.inherit=function(t,e){function n(){}if(Object.getPrototypeOf(t).prototype)throw Error(`Used go.Diagram.inherit defining already defined class
|
|
|
`+t);n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t},ue.useDOM=function(t){gs=t?Ft.document!==void 0:!1},ue.isUsingDOM=function(){return gs},ue.None=el,ue.Uniform=fu,ue.UniformToFill=Kh,ue.CycleAll=Gd,ue.CycleNotDirected=hf,ue.CycleNotDirectedFast=df,ue.CycleNotUndirected=pf,ue.CycleDestinationTree=ff,ue.CycleSourceTree=mf,ue.DocumentScroll=wh,ue.InfiniteScroll=Wd,ue.TreeParentCollapsed=Ch,ue.AllParentsCollapsed=Ks,ue.AnyParentsCollapsed=wp;function x0(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Cd(t,e){if(e.ib.setTransform(e.Mb,0,0,e.Mb,0,0),e.ib.yc(),t.Rc===null)t:{e="f";var n=Ft[Sn("76a715b2f73f148a")][Sn("72ba13b5")]||"";if(t.Rc=!0,gs){var i=ue[Sn("76a115b6ed251eaf4692")];if(i)for(var r=gf.iterator;r.next()&&(i=r.value,i=Sn(i).split(Sn("39e9")),!(6>i.length));){var o=Sn(i[1]).split(".");if(i[4]!=="7da71ca0")break;var s=Sn(qe[Sn("6cae19")]).split(".");if(o[0]>s[0]||o[0]===s[0]&&o[1]>=s[1]){var l=Ft[Sn("74a900bae4370f8b51")][Sn("6fbb13a1c2311e8a57")].toLowerCase();if(s=l[Sn("73a612b6fb191d")](Sn("3aad1ab6e022098b4dc4")),o=Sn(i[2]),-1<s&&(l=l[Sn("73a612b6fb191d")](o.toLowerCase()+"/"),t.Rc=!(-1<l&&l<s),!t.Rc))break;for(s=n[Sn("76ad18b4f73e")],l=n[Sn("73a612b6fb191d")](Sn("35e7"))+2;l<s;l++)e+=n[l];if(s=e[Sn("73a612b6fb191d")](o),0>s&&o!==Sn("7da71ca0ad381e90")&&(s=e[Sn("73a612b6fb191d")](Sn("76a715b2ef3e149757"))),0>s&&(s=e[Sn("73a612b6fb191d")](Sn("76a715b2ef3e149757"))),0>s&&(s=e[Sn("73a612b6fb191d")](Sn("2bfa41fdb3784bca12"))),0>s&&(s=n[Sn("73a612b6fb191d")](Sn("7baa19a6f76c1988428554"))),t.Rc=!(0<=s&&s<e[Sn("73a612b6fb191d")](Sn("35"))||e[Sn("73a612b6fb191d")](Sn("35"))===-1),!t.Rc||n[Sn("73a612b6fb191d")](Sn("7fb002b6ed25128b4da25b2e"))&&(t.Rc=!(-1<n[Sn("73a612b6fb191d")](o)),!t.Rc)||(s=Ft[Sn("76a715b2f73f148a")][Sn("69ad17a1e03e")],l=s[Sn("73a612b6fb191d")](Sn("7fb002b6ed25128b4da25b2e")),-1<l&&(t.Rc=!(s[Sn("73a612b6fb191d")](o)>l),!t.Rc)))break;if(o[0]==="#"){s=Ft.document.createElement("div");for(var u=i[0].replace(/[A-Za-z]/g,"");4>u.length;)u+="9";if(l=u,u=u.substr(u.length-4),i="",i+=["gsh","gsf"][parseInt(u.substr(0,1),10)%2],i+=["Header","Background","Display","Feedback"][parseInt(u.substr(0,1),10)%4],s[Sn("79a417a0f0181a8946")]=i,Ft.document[Sn("78a712aa")]){Ft.document[Sn("78a712aa")][Sn("7bb806b6ed32388c4a875b")](s),u=Ft.getComputedStyle(s).getPropertyValue(Sn("78a704b7e62456904c9b12701b6532a8"));var d=Ft.getComputedStyle(s).getPropertyValue(Sn("75b817b0ea2202"));if(Ft.document[Sn("78a712aa")][Sn("68ad1bbcf533388c4a875b")](s),u){if(s=Ft[Sn("77a902b0eb1b1e804a8a")],d==="0."+parseInt(l,10)%100||u.indexOf(parseInt(o[1]+o[2],16))!==-1&&u.indexOf(parseInt(o[3]+o[4],16))!==-1){t.Rc=!1;break}else if(s&&s(Sn("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(i="."+i,o=0;o<document.styleSheets.length;o++){s=document.styleSheets[o].rules||document.styleSheets[o].cssRules;for(var p in s)if(i===s[p].selectorText){t.Rc=!1;break t}}}}else t.Rc=null,t.Rc=!1}}}else{for(p=n[Sn("76ad18b4f73e")],r=n[Sn("73a612b6fb191d")](Sn("35e7"))+2;r<p;r++)e+=n[r];n=e[Sn("73a612b6fb191d")](Sn("7da71ca0ad381e90")),t.Rc=!(0<=n&&n<e[Sn("73a612b6fb191d")](Sn("35")))}}}return 0<t.Rc&&t!==t.wy}x0.className="DiagramHelper";function rh(t){this.j=t===void 0?new $:t,this.o=new $}te.Object.defineProperties(rh.prototype,{point:{get:function(){return this.j},set:function(t){this.j=t}},shifted:{get:function(){return this.o},set:function(t){this.o=t}}});var Kd="DraggingInfo";rh.className="DraggingInfo";function a(t,e,n){this.node=t,this.info=e,this.Su=n}a.className="DraggingNodeInfoPair";function c(){this.reset()}c.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new ni(NaN,NaN).freeze(),this.gridSnapCellSpot=Fs,this.gridSnapOrigin=new $(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},c.className="DraggingOptions";function g(t,e){if(typeof t=="string"||Ft.Element&&t instanceof Element)var n=ue.call(this,t)||this;else n=ue.call(this)||this,e=t;return m(n),e&&n.nm(e),n}Jn(g,ue);function m(t){t.allowDragOut=!0,t.allowMove=!1,t.isReadOnly=!0,t.contentAlignment=qa,t.layout=new Ea}g.prototype.reset=function(){ue.prototype.reset.call(this),m(this)},g.className="Palette";function b(t,e){if(typeof t=="string"||Ft.Element&&t instanceof Element)var n=ue.call(this,t)||this;else n=ue.call(this)||this,e=t;var i=n;n.animationManager.isEnabled=!1,n.vb=!0,n.V=null,n.mn=!1,n.nn=!1,n.F=!0,n.u=!0,n.ia=0,n.o=!1,n.ql=null,n.Xx("drawShadows",!1),t=new li;var r=new Qi;return r.stroke="magenta",r.strokeWidth=2,r.fill="transparent",r.name="BOXSHAPE",t.selectable=!0,t.selectionAdorned=!1,t.selectionObjectName="BOXSHAPE",t.locationObjectName="BOXSHAPE",t.resizeObjectName="BOXSHAPE",t.cursor="move",t.add(r),n.j=t,n.allowCopy=!1,n.allowDelete=!1,n.allowSelect=!0,n.autoScrollRegion=new ri(0,0,0,0),n.pa.h(0,0),n.toolManager.gb("Dragging",new lt,n.toolManager.mouseMoveTools),n.click=function(){var o=i.observed;if(o!==null){var s=o.viewportBounds,l=i.lastInput.documentPoint;o.position=new $(l.x-s.width/2,l.y-s.height/2)}},n.Pf=function(){i.Ya(),X(i)},n.Xd=function(){i.observed!==null&&(i.Ya(),i.N())},n.Ha=function(){1>i.updateDelay?i.N():i.o||(i.o=!0,setTimeout(function(){return i.redraw()},i.updateDelay))},n.Of=function(){i.observed!==null&&X(i)},n.autoScale=fu,n.vb=!1,e&&Object.assign(n,e),n}Jn(b,ue),b.prototype.computePixelRatio=function(){return 1},b.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var t=this.ta,e=this.ib;if(t!==null&&e!==null){if(ta(this),this.ql===null){var n=new Uu(null);n.width=t.width,n.height=t.height,this.ql=n}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),F(this)}finally{this.ta=t,this.ib=e}}}ue.prototype.redraw.call(this)},b.prototype.gc=function(){if(this.Ka===null&&ne("No div specified"),this.ta===null&&ne("No canvas specified"),!(this.ta instanceof kc)&&(Hg(this.box),this.Fc)){var t=this.observed;if(t!==null&&!t.animationManager.defaultAnimation.isAnimating&&t.pi){ta(this);var e=this.ta;t=this.ib,t.Vc(!0),t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,e.width,e.height),1>this.updateDelay?F(this):this.ql!==null&&(t.drawImage(this.ql.Oa,0,0),e=this.Ab,e.reset(),this.scale!==1&&e.scale(this.scale),this.position.x===0&&this.position.y===0||e.translate(-this.position.x,-this.position.y),t.scale(this.Mb,this.Mb),t.transform(e.m11,e.m12,e.m21,e.m22,e.dx,e.dy),t.yc()),e=this.Wa.s;for(var n=e.length,i=0;i<n;i++)e[i].gc(t,this);this.Fc=this.vd=!1}}};function F(t){var e=t.observed;if(e!==null){var n=t.drawsTemporaryLayers,i=t.drawsGrid&&n,r=e.grid;i&&r!==null&&r.visible&&!isNaN(r.width)&&!isNaN(r.height)&&(r=ke.alloc().assign(t.viewportBounds).ed(e.viewportBounds),ku(e,r),ke.free(r),So(e));var o=t.Ab;o.reset(),t.scale!==1&&o.scale(t.scale),t.position.x===0&&t.position.y===0||o.translate(-t.position.x,-t.position.y),r=t.ib,r.scale(t.Mb,t.Mb),r.transform(o.m11,o.m12,o.m21,o.m22,o.dx,o.dy),r.yc(),e=e.Wa.s,o=e.length;for(var s=0;s<o;s++){var l=e[s],u=t;if(l.visible&&l.opacity!==0){var d=l.diagram.grid.part;if(!n&&l.isTemporary)i&&d.layer===l&&(l=Hs(l,r),d.gc(r,u),r.globalAlpha=l);else{for(var p=Hs(l,r),v=u.scale,E=ke.alloc(),M=l.Pa.s,R=M.length,j=0;j<R;j++){var at=M[j];(i||at!==d)&&l.Oj(r,at,u,null,v,E,!1)}ke.free(E),r.globalAlpha=p}}}}}function X(t){var e=t.box;if(e!==null){var n=t.observed;if(n!==null){t.Fc=!0,n=n.viewportBounds;var i=e.selectionObject,r=ni.alloc();r.h(n.width,n.height),i.desiredSize=r,ni.free(r),t=2/t.scale,i instanceof Qi&&(i.strokeWidth=t),e.location=new $(n.x-t/2,n.y-t/2),e.isSelected=!0}}}b.prototype.computeBounds=function(){var t=this.observed;if(t===null)return br;var e=t.documentBounds.copy();return e.ed(t.viewportBounds),e},b.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},b.prototype.onViewportBoundsChanged=function(t,e,n,i){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),X(this),this.fc.scale=n,this.fc.position.x=t.x,this.fc.position.y=t.y,this.fc.bounds.assign(t),this.fc.Oz=i,this.R("ViewportBoundsChanged",this.fc,t))},te.Object.defineProperties(b.prototype,{observed:{get:function(){return this.V},set:function(t){var e=this.V;if(t instanceof b&&ne("Overview.observed Diagram may not be an Overview itself: "+t),e!==t){if(e!==null&&(this.remove(this.box),e.am("ViewportBoundsChanged",this.Pf),e.am("DocumentBoundsChanged",this.Xd),e.am("InvalidateDraw",this.Ha),e.am("AnimationFinished",this.Of)),this.V=t,t!==null&&(t.Bj("ViewportBoundsChanged",this.Pf),t.Bj("DocumentBoundsChanged",this.Xd),t.Bj("InvalidateDraw",this.Ha),t.Bj("AnimationFinished",this.Of),this.add(this.box)),this.Ya(),t===null){this.ql=null;var n=this.ta,i=this.ib;n&&i&&(i.setTransform(1,0,0,1,0,0),i.clearRect(0,0,n.width,n.height))}else this.Ha(null),X(this),this.N();this.g("observed",e,t)}}},box:{get:function(){return this.j},set:function(t){var e=this.j;e!==t&&(this.j=t,this.remove(e),this.add(this.j),X(this),this.g("box",e,t))}},drawsTemporaryLayers:{get:function(){return this.F},set:function(t){this.F!==t&&(this.F=t,this.redraw())}},drawsGrid:{get:function(){return this.u},set:function(t){this.u!==t&&(this.u=t,this.redraw())}},updateDelay:{get:function(){return this.ia},set:function(t){0>t&&(t=0),this.ia!==t&&(this.ia=t)}}}),b.className="Overview";function lt(){Yo.call(this),this.j=null}Jn(lt,Yo),lt.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;if(t===null||!t.allowMove||!t.allowSelect)return!1;var e=t.observed;if(e===null)return!1;var n=t.lastInput;return!n.left||t.currentTool!==this&&(!this.isBeyondDragSize()||n.isTouchEvent&&n.timestamp-t.firstInput.timestamp<this.delay)?!1:(this.findDraggablePart()===null&&(n=e.viewportBounds,this.j=new $(n.width/2,n.height/2),t=t.firstInput.documentPoint,e.position=new $(t.x-this.j.x,t.y-this.j.y)),!0)},lt.prototype.doActivate=function(){this.j=null,Yo.prototype.doActivate.call(this)},lt.prototype.doUpdateCursor=function(){var t=this.diagram,e=t.box;e!==null&&e.cursor&&(t.currentCursor=e.cursor)},lt.prototype.moveParts=function(){var t=this.diagram,e=t.observed;if(e!==null){var n=t.box;if(n!==null){if(this.j===null){var i=t.firstInput.documentPoint;n=n.location,this.j=new $(i.x-n.x,i.y-n.y)}t=t.lastInput.documentPoint,e.position=new $(t.x-this.j.x,t.y-this.j.y)}}},lt.className="OverviewDraggingTool";function st(){nr(this),this.H=oi,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=br,this.hb=!0,this.cg=null,this.ob=200}st.prototype.toString=function(){return"CommandHandler"},st.prototype.Xe=function(t){this.H=t},st.prototype.doKeyDown=function(){var t=this.diagram,e=t.lastInput,n=ir?e.meta:e.control,i=e.shift,r=e.alt,o=e.key;!n||o!=="C"&&o!=="Insert"?n&&o==="X"||i&&o==="Del"?this.canCutSelection()&&this.cutSelection():n&&o==="V"||i&&o==="Insert"?this.canPasteSelection()&&this.pasteSelection():n&&o==="Y"||r&&i&&o==="Backspace"?this.canRedo()&&this.redo():n&&o==="Z"||r&&o==="Backspace"?this.canUndo()&&this.undo():o==="Del"||o==="Backspace"?this.canDeleteSelection()&&this.deleteSelection():n&&o==="A"?this.canSelectAll()&&this.selectAll():o==="Esc"?this.canStopCommand()&&this.stopCommand():o==="Up"?t.allowVerticalScroll&&(n?t.scroll("pixel","up"):t.scroll("line","up")):o==="Down"?t.allowVerticalScroll&&(n?t.scroll("pixel","down"):t.scroll("line","down")):o==="Left"?t.allowHorizontalScroll&&(n?t.scroll("pixel","left"):t.scroll("line","left")):o==="Right"?t.allowHorizontalScroll&&(n?t.scroll("pixel","right"):t.scroll("line","right")):o==="PageUp"?i&&t.allowHorizontalScroll?t.scroll("page","left"):t.allowVerticalScroll&&t.scroll("page","up"):o==="PageDown"?i&&t.allowHorizontalScroll?t.scroll("page","right"):t.allowVerticalScroll&&t.scroll("page","down"):o==="Home"?n&&t.allowVerticalScroll?t.scroll("document","up"):!n&&t.allowHorizontalScroll&&t.scroll("document","left"):o==="End"?n&&t.allowVerticalScroll?t.scroll("document","down"):!n&&t.allowHorizontalScroll&&t.scroll("document","right"):o===" "?this.canScrollToPart()&&this.scrollToPart():o==="Subtract"?this.canDecreaseZoom()&&this.decreaseZoom():o==="Add"?this.canIncreaseZoom()&&this.increaseZoom():n&&o==="0"?this.canResetZoom()&&this.resetZoom():i&&o==="Z"?this.canZoomToFit()&&this.zoomToFit():n&&!i&&o==="G"?this.canGroupSelection()&&this.groupSelection():n&&i&&o==="G"?this.canUngroupSelection()&&this.ungroupSelection():o==="F2"||e.event&&e.event.key==="F2"?this.canEditTextBlock()&&this.editTextBlock():o==="ContextMenu"||e.event&&e.event.key==="ContextMenu"?this.canShowContextMenu()&&this.showContextMenu():e.bubbles=!0:this.canCopySelection()&&this.copySelection()},st.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},st.prototype.stopCommand=function(){var t=this.diagram,e=t.currentTool;e instanceof Bo&&t.allowSelect&&t.clearSelection(),e!==null&&e.doCancel()},st.prototype.canStopCommand=function(){return!0},st.prototype.selectAll=function(){var t=this.diagram;t.N();try{t.currentCursor="wait",t.R("ChangingSelection",t.selection);for(var e=t.parts;e.next();)e.value.isSelected=!0;for(var n=t.nodes;n.next();)n.value.isSelected=!0;for(var i=t.links;i.next();)i.value.isSelected=!0}finally{t.R("ChangedSelection",t.selection),t.currentCursor=""}},st.prototype.canSelectAll=function(){return this.diagram.allowSelect},st.prototype.deleteSelection=function(){var t=this.diagram;try{t.currentCursor="wait",t.R("ChangingSelection",t.selection),t.Ea("Delete"),t.R("SelectionDeleting",t.selection);for(var e=new je,n=t.selection.iterator;n.next();)Jh(e,n.value,!0,this.deletesTree?1/0:0,this.deletesConnectedLinks?null:!1,function(i){return i.canDelete()});t.Is(e,!0),t.R("SelectionDeleted",e)}finally{t.eb("Delete"),t.R("ChangedSelection",t.selection),t.currentCursor=""}},st.prototype.canDeleteSelection=function(){var t=this.diagram;return!(t.isReadOnly||t.isModelReadOnly||!t.allowDelete||t.selection.count===0)},st.prototype.copySelection=function(){var t=this.diagram,e=new je;for(t=t.selection.iterator;t.next();)Jh(e,t.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(n){return n.canCopy()});this.copyToClipboard(e)},st.prototype.canCopySelection=function(){var t=this.diagram;return!!(t.allowCopy&&t.allowClipboard&&t.selection.count!==0)},st.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},st.prototype.canCutSelection=function(){var t=this.diagram;return!!(!t.isReadOnly&&!t.isModelReadOnly&&t.allowCopy&&t.allowDelete&&t.allowClipboard&&t.selection.count!==0)},st.prototype.copyToClipboard=function(t){var e=this.diagram,n=null;if(t===null)bd=null,Vh="";else{n=e.model;var i=!1,r=!1,o=null;try{n.Tl()&&(i=n.Jj,n.Jj=this.copiesParentKey),n.Wj()&&(r=n.Ij,n.Ij=this.copiesGroupKey),o=e.Kj(t,null,!0)}finally{n.Tl()&&(n.Jj=i),n.Wj()&&(n.Ij=r),n=new Re,n.addAll(o),bd=n,Vh=e.model.dataFormat}}e.R("ClipboardChanged",n)},st.prototype.pasteFromClipboard=function(){var t=new je,e=bd;if(e===null)return t;var n=this.diagram;if(Vh!==n.model.dataFormat)return t;var i=n.model,r=!1,o=!1,s=null;try{i.Tl()&&(r=i.Jj,i.Jj=this.copiesParentKey),i.Wj()&&(o=i.Ij,i.Ij=this.copiesGroupKey),s=n.Kj(e,n,!1)}finally{for(i.Tl()&&(i.Jj=r),i.Wj()&&(i.Ij=o),e=s.iterator;e.next();)n=e.value,i=e.key,n.location.w()||(i.location.w()?n.location=i.location:!n.position.w()&&i.position.w()&&(n.position=i.position)),t.add(n)}return t},st.prototype.pasteSelection=function(t){t===void 0&&(t=null);var e=this.diagram;try{e.currentCursor="wait",e.R("ChangingSelection",e.selection),e.Ea("Paste");var n=this.pasteFromClipboard();0<n.count&&e.clearSelection(!0);for(var i=n.iterator;i.next();)i.value.isSelected=!0;if(t!==null){var r=e.computePartsBounds(e.selection);if(r.w()){var o=this.computeEffectiveCollection(e.selection,e.Wm);hl(e,o,new $(t.x-r.centerX,t.y-r.centerY),e.Wm,!1)}}e.R("ClipboardPasted",n)}finally{e.eb("Paste"),e.R("ChangedSelection",e.selection),e.currentCursor=""}},st.prototype.canPasteSelection=function(){var t=this.diagram;return!(t.isReadOnly||t.isModelReadOnly||!t.allowInsert||!t.allowClipboard||bd===null||bd.count===0||Vh!==t.model.dataFormat)},st.prototype.undo=function(){this.diagram.undoManager.undo()},st.prototype.canUndo=function(){var t=this.diagram;return t.isReadOnly||t.isModelReadOnly?!1:t.allowUndo&&t.undoManager.canUndo()},st.prototype.redo=function(){this.diagram.undoManager.redo()},st.prototype.canRedo=function(){var t=this.diagram;return t.isReadOnly||t.isModelReadOnly?!1:t.allowUndo&&t.undoManager.canRedo()},st.prototype.decreaseZoom=function(t){t===void 0&&(t=1/this.zoomFactor);var e=this.diagram;e.autoScale===el&&(t=e.scale*t,t<e.minScale||t>e.maxScale||(e.scale=t))},st.prototype.canDecreaseZoom=function(t){t===void 0&&(t=1/this.zoomFactor);var e=this.diagram;return e.autoScale!==el?!1:(t=e.scale*t,t<e.minScale||t>e.maxScale?!1:e.allowZoom)},st.prototype.increaseZoom=function(t){t===void 0&&(t=this.zoomFactor);var e=this.diagram;e.autoScale===el&&(t=e.scale*t,t<e.minScale||t>e.maxScale||(e.scale=t))},st.prototype.canIncreaseZoom=function(t){t===void 0&&(t=this.zoomFactor);var e=this.diagram;return e.autoScale!==el?!1:(t=e.scale*t,t<e.minScale||t>e.maxScale?!1:e.allowZoom)},st.prototype.resetZoom=function(t){t===void 0&&(t=this.defaultScale);var e=this.diagram;t<e.minScale||t>e.maxScale||(e.scale=t)},st.prototype.canResetZoom=function(t){t===void 0&&(t=this.defaultScale);var e=this.diagram;return t<e.minScale||t>e.maxScale?!1:e.allowZoom},st.prototype.zoomToFit=function(){var t=this.diagram,e=t.animationManager;e.Cc(),t.redraw();var n=t.position,i=t.scale;Eo(e,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&i===this.Au&&!isNaN(this.Jt)&&t.documentBounds.D(this.yu)?(t.scale=this.Jt,t.position=this.sw,this.Au=NaN,this.yu=br):(this.Jt=i,this.sw=n.copy(),t.zoomToFit(),this.Au=t.scale,this.yu=t.documentBounds.copy()),Mo(e)},st.prototype.canZoomToFit=function(){return this.diagram.allowZoom},st.prototype.scrollToPart=function(t){t===void 0&&(t=null);var e=this.diagram;if(e.Va(),t===null){try{this.cg!==null&&(this.cg.next()?t=this.cg.value:this.cg=null)}catch(u){this.cg=null}t===null&&(0<e.highlighteds.count?this.cg=e.highlighteds.iterator:0<e.selection.count&&(this.cg=e.selection.iterator),this.cg!==null&&this.cg.next()&&(t=this.cg.value))}if(t!==null){var n=e.animationManager;Eo(n,"Scroll To Part");var i=this.scrollToPartPause;if(0<i){var r=Pt(this,t,[t]);if(r.length===1)e.Ea(),e.es(t.actualBounds),e.eb("Scroll To Part");else{var o=function(){e.Ea();for(var u=r.pop();0<r.length&&u instanceof Rn&&u.isTreeExpanded&&(!(u instanceof Ki)||u.isSubGraphExpanded);)u=r.pop();0<r.length?(u instanceof li&&e.tv(u.actualBounds),u instanceof Rn&&!u.isTreeExpanded&&(u.isTreeExpanded=!0),u instanceof Ki&&!u.isSubGraphExpanded&&(u.isSubGraphExpanded=!0)):(u instanceof li&&e.es(u.actualBounds),e.am("LayoutCompleted",s)),e.eb("Scroll To Part")},s=function(){Gn(o,(n.isEnabled?n.duration:0)+i)};e.Bj("LayoutCompleted",s),o()}}else{var l=e.position.copy();e.es(t.actualBounds),l.Xa(e.position)&&n.Cc()}}};function Pt(t,e,n){if(e.isVisible())return n;if(e instanceof jr)Pt(t,e.adornedPart,n);else if(e instanceof pn){var i=e.fromNode;i!==null&&Pt(t,i,n),e=e.toNode,e!==null&&Pt(t,e,n)}else e instanceof Rn&&(i=e.labeledLink,i!==null&&Pt(t,i,n),i=e.pg(),i!==null&&(i.isTreeExpanded||i.wasTreeExpanded||n.push(i),Pt(t,i,n))),e=e.containingGroup,e!==null&&(e.isSubGraphExpanded||e.wasSubGraphExpanded||n.push(e),Pt(t,e,n));return n}st.prototype.canScrollToPart=function(t){return t===void 0&&(t=null),t!==null&&!(t instanceof li)?!1:(t=this.diagram,t.selection.count===0&&t.highlighteds.count===0?!1:t.allowHorizontalScroll&&t.allowVerticalScroll)},st.prototype.collapseTree=function(t){t===void 0&&(t=null);var e=this.diagram;try{e.Ea("Collapse Tree"),Eo(e.animationManager,"Collapse Tree");var n=new Re;if(t!==null&&t.isTreeExpanded)t.collapseTree(),n.add(t);else if(t===null)for(var i=e.selection.iterator;i.next();){var r=i.value;r instanceof Rn&&r.isTreeExpanded&&(r.collapseTree(),n.add(r))}e.R("TreeCollapsed",n)}finally{e.eb("Collapse Tree")}},st.prototype.canCollapseTree=function(t){t===void 0&&(t=null);var e=this.diagram;if(e.isReadOnly)return!1;if(t!==null){if(!(t instanceof Rn&&t.isTreeExpanded))return!1;if(0<t.Qo().count)return!0}else for(t=e.selection.iterator;t.next();)if(e=t.value,e instanceof Rn&&e.isTreeExpanded&&0<e.Qo().count)return!0;return!1},st.prototype.expandTree=function(t){t===void 0&&(t=null);var e=this.diagram;try{e.Ea("Expand Tree"),Eo(e.animationManager,"Expand Tree");var n=new Re;if(t!==null&&!t.isTreeExpanded)t.expandTree(),n.add(t);else if(t===null)for(var i=e.selection.iterator;i.next();){var r=i.value;r instanceof Rn&&!r.isTreeExpanded&&(r.expandTree(),n.add(r))}e.R("TreeExpanded",n)}finally{e.eb("Expand Tree")}},st.prototype.canExpandTree=function(t){t===void 0&&(t=null);var e=this.diagram;if(e.isReadOnly)return!1;if(t!==null){if(!(t instanceof Rn)||t.isTreeExpanded)return!1;if(0<t.Qo().count)return!0}else for(t=e.selection.iterator;t.next();)if(e=t.value,e instanceof Rn&&!e.isTreeExpanded&&0<e.Qo().count)return!0;return!1},st.prototype.groupSelection=function(){var t=this.diagram,e=t.model;if(e.Xj()){var n=this.archetypeGroupData;if(n!==null){var i=null;try{t.currentCursor="wait",t.R("ChangingSelection",t.selection),t.Ea("Group");for(var r=new Re,o=t.selection.iterator;o.next();){var s=o.value;s.Zc()&&s.canGroup()&&r.add(s)}for(var l=new Re,u=r.iterator;u.next();){var d=u.value;o=!1;for(var p=r.iterator;p.next();)if(d.Td(p.value)){o=!0;break}o||l.add(d)}if(0<l.count){var v=l.first().containingGroup;if(v!==null)for(;v!==null;){r=!1;for(var E=l.iterator;E.next();)if(!E.value.Td(v)){r=!0;break}if(r)v=v.containingGroup;else break}if(n instanceof Ki)_u(n),i=n.copy(),i!==null&&t.add(i);else if(e.Yu(n)){var M=e.copyNodeData(n);Me(M)&&(e.xf(M),i=t.ii(M))}if(i!==null){v!==null&&this.isValidMember(v,i)&&(i.containingGroup=v);for(var R=l.iterator;R.next();){var j=R.value;this.isValidMember(i,j)&&(j.containingGroup=i)}t.clearSelection(!0),i.isSelected=!0}}t.R("SelectionGrouped",i)}finally{t.eb("Group"),t.R("ChangedSelection",t.selection),t.currentCursor=""}}}},st.prototype.canGroupSelection=function(){var t=this.diagram;if(t.isReadOnly||t.isModelReadOnly||!t.allowInsert||!t.allowGroup||!t.model.Xj()||this.archetypeGroupData===null)return!1;for(t=t.selection.iterator;t.next();){var e=t.value;if(e.Zc()&&e.canGroup())return!0}return!1};function Ee(t){var e=Le();for(t=t.iterator;t.next();){var n=t.value;n instanceof pn||e.push(n)}t=new je,n=e.length;for(var i=0;i<n;i++){for(var r=e[i],o=!0,s=0;s<n;s++)if(r.Td(e[s])){o=!1;break}o&&t.add(r)}return tn(e),t}st.prototype.isValidMember=function(t,e){if(e===null||t===e||e instanceof pn)return!1;if(t!==null){if(t===e||t.Td(e))return!1;var n=t.memberValidation;if(n!==null&&!n(t,e)||t.data===null&&e.data!==null||t.data!==null&&e.data===null)return!1}return n=this.memberValidation,n!==null?n(t,e):!0},st.prototype.ungroupSelection=function(t){t===void 0&&(t=null);var e=this.diagram,n=e.model;if(n.Xj())try{e.currentCursor="wait",e.R("ChangingSelection",e.selection),e.Ea("Ungroup");var i=new Re;if(t!==null)i.add(t);else for(var r=e.selection.iterator;r.next();){var o=r.value;o instanceof Ki&&o.canUngroup()&&i.add(o)}var s=new Re;if(0<i.count){e.clearSelection(!0);for(var l=i.iterator;l.next();){var u=l.value;u.expandSubGraph();var d=u.containingGroup,p=d!==null&&d.data!==null?n.wa(d.data):void 0;s.addAll(u.memberParts);for(var v=s.iterator;v.next();){var E=v.value;if(E.isSelected=!0,!(E instanceof pn)){var M=E.data;M!==null?n.mp(M,p):E.containingGroup=d}}e.remove(u)}}e.R("SelectionUngrouped",i,s)}finally{e.eb("Ungroup"),e.R("ChangedSelection",e.selection),e.currentCursor=""}},st.prototype.canUngroupSelection=function(t){t===void 0&&(t=null);var e=this.diagram;if(e.isReadOnly||e.isModelReadOnly||!e.allowDelete||!e.allowUngroup||!e.model.Xj())return!1;if(t!==null){if(!(t instanceof Ki))return!1;if(t.canUngroup())return!0}else for(t=e.selection.iterator;t.next();)if(e=t.value,e instanceof Ki&&e.canUngroup())return!0;return!1},st.prototype.addTopLevelParts=function(t,e){var n=!0;for(t=Ee(t).iterator;t.next();){var i=t.value;i.containingGroup!==null&&(!e||this.isValidMember(null,i)?i.containingGroup=null:n=!1)}return n},st.prototype.collapseSubGraph=function(t){t===void 0&&(t=null);var e=this.diagram;try{e.Ea("Collapse SubGraph"),Eo(e.animationManager,"Collapse SubGraph");var n=new Re;if(t!==null&&t.isSubGraphExpanded)t.collapseSubGraph(),n.add(t);else if(t===null)for(var i=e.selection.iterator;i.next();){var r=i.value;r instanceof Ki&&r.isSubGraphExpanded&&(r.collapseSubGraph(),n.add(r))}e.R("SubGraphCollapsed",n)}finally{e.eb("Collapse SubGraph")}},st.prototype.canCollapseSubGraph=function(t){t===void 0&&(t=null);var e=this.diagram;if(e.isReadOnly)return!1;if(t!==null)return!!(t instanceof Ki&&t.isSubGraphExpanded);for(t=e.selection.iterator;t.next();)if(e=t.value,e instanceof Ki&&e.isSubGraphExpanded)return!0;return!1},st.prototype.expandSubGraph=function(t){t===void 0&&(t=null);var e=this.diagram;try{e.Ea("Expand SubGraph"),Eo(e.animationManager,"Expand SubGraph");var n=new Re;if(t!==null&&!t.isSubGraphExpanded)t.expandSubGraph(),n.add(t);else if(t===null)for(var i=e.selection.iterator;i.next();){var r=i.value;r instanceof Ki&&!r.isSubGraphExpanded&&(r.expandSubGraph(),n.add(r))}e.R("SubGraphExpanded",n)}finally{e.eb("Expand SubGraph")}},st.prototype.canExpandSubGraph=function(t){t===void 0&&(t=null);var e=this.diagram;if(e.isReadOnly)return!1;if(t!==null)return t instanceof Ki&&!t.isSubGraphExpanded;for(t=e.selection.iterator;t.next();)if(e=t.value,e instanceof Ki&&!e.isSubGraphExpanded)return!0;return!1},st.prototype.editTextBlock=function(t){t===void 0&&(t=null);var e=this.diagram,n=e.toolManager.findTool("TextEditing");if(n!==null){if(t===null){t=null;for(var i=e.selection.iterator;i.next();){var r=i.value;if(r.canEdit()){t=r;break}}if(t===null)return;t=t.Nl(function(o){return o instanceof Do&&o.editable})}t!==null&&(e.currentTool=null,n.textBlock=t,e.currentTool=n)}},st.prototype.canEditTextBlock=function(t){t===void 0&&(t=null);var e=this.diagram;if(e.isReadOnly||e.isModelReadOnly||!e.allowTextEdit||e.toolManager.findTool("TextEditing")===null)return!1;if(t!==null){if(!(t instanceof Do))return!1;if(t=t.part,t!==null&&t.canEdit())return!0}else for(e=e.selection.iterator;e.next();)if(t=e.value,t.canEdit()&&(t=t.Nl(function(n){return n instanceof Do&&n.editable}),t!==null))return!0;return!1},st.prototype.showContextMenu=function(t){var e=this.diagram,n=e.toolManager.findTool("ContextMenu");if(n!==null&&(t===void 0&&(t=0<e.selection.count?e.selection.first():e),t=n.findObjectWithContextMenu(t),t!==null)){var i=e.lastInput,r=null;t instanceof Wt?r=t.ga(Sr):e.viewportBounds.ca(i.documentPoint)||(r=e.viewportBounds,r=new $(r.x+r.width/2,r.y+r.height/2)),r!==null&&(i.viewPoint=e.op(r),i.documentPoint=r,i.left=!1,i.right=!0,i.up=!0),e.currentTool=n,co(n,!1,t)}},st.prototype.canShowContextMenu=function(t){var e=this.diagram,n=e.toolManager.findTool("ContextMenu");return n===null?!1:(t===void 0&&(t=0<e.selection.count?e.selection.first():e),n.findObjectWithContextMenu(t)!==null)},st.prototype.computeEffectiveCollection=function(t,e){var n=this.diagram,i=n.toolManager.findTool("Dragging"),r=n.currentTool===i;if(e===void 0&&(e=r?i.dragOptions:n.Wm),i=new pt,t===null)return i;for(var o=t.iterator;o.next();)wa(n,i,o.value,r,e);if(n.draggedLink!==null&&e.dragsLink)return i;for(o=t.iterator;o.next();)t=o.value,t instanceof pn&&(e=t.fromNode,e===null||i.contains(e)?(e=t.toNode,e===null||i.contains(e)||i.remove(t)):i.remove(t));return i},te.Object.defineProperties(st.prototype,{diagram:{get:function(){return this.H}},copiesClipboardData:{get:function(){return this.o},set:function(t){this.o=t}},copiesConnectedLinks:{get:function(){return this.u},set:function(t){this.u=t}},deletesConnectedLinks:{get:function(){return this.Ha},set:function(t){this.Ha=t}},copiesTree:{get:function(){return this.ia},set:function(t){this.ia=t}},deletesTree:{get:function(){return this.nb},set:function(t){this.nb=t}},copiesParentKey:{get:function(){return this.V},set:function(t){this.V=t}},copiesGroupKey:{get:function(){return this.F},set:function(t){this.F=t}},archetypeGroupData:{get:function(){return this.j},set:function(t){this.j=t}},memberValidation:{get:function(){return this.ij},set:function(t){this.ij=t}},defaultScale:{get:function(){return this.diagram.defaultScale},set:function(t){this.diagram.defaultScale=t}},zoomFactor:{get:function(){return this.Hb},set:function(t){1<t||ne("zoomFactor must be larger than 1.0, not: "+t),this.Hb=t}},isZoomToFitRestoreEnabled:{get:function(){return this.hb},set:function(t){this.hb=t}},scrollToPartPause:{get:function(){return this.ob},set:function(t){this.ob=t}}}),st.className="CommandHandler",Qo=function(){return new st};function Wt(){nr(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new $(NaN,NaN).freeze(),this.jd=da,this.Ab=new Ti,this.wh=new Ti,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=ga,this.uc=new ke(NaN,NaN,NaN,NaN).freeze(),this.Ib=new ke(NaN,NaN,NaN,NaN).freeze(),this.dc=new ke(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=_r,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 rn,Xe,Kn,ei,yi,Zi,Cr,ar,Dr,fo;Wt.prototype.cloneProtected=function(t){t.l=this.l|6144,t.pb=this.pb,t.bn=this.bn,t.Ma=this.Ma,t.pa.assign(this.pa),t.jd=this.jd.J(),this.Lb!==null?t.Lb=this.Lb.copy():t.Lb=null,t.Ca=this.Ca,t.Kb=this.Kb,t.Kg=this.Kg.J(),t.uc.assign(this.uc),t.Ib.assign(this.Ib),t.dc.assign(this.dc),t.Yn=this.Yn,this.ba!==null&&(t.ba=this.ba.copy()),t.Jb=this.Jb.J(),t.sk=this.sk.J(),t.io=this.io,t.Ag=this.Ag,this.Ua!==null&&(t.Ua=this.Ua.copy()),this.A!==null&&(t.A=this.A.nc?this.A:this.A.copy()),this.Dh!==null&&(t.Dh=be(this.Dh)),this.tb!==null&&(t.tb=this.tb.copy())},Wt.prototype.Vw=function(t){var e=this.Dh;if(In(e)){for(var n=0;n<e.length;n++)if(e[n]===t)return}else this.Dh=e=[];e.push(t)},Wt.prototype.Af=function(t){t.Zn=null,t.Ng=null,t.v()},Wt.prototype.clone=function(){var t=new this.constructor;if(this.cloneProtected(t),this.Dh!==null)for(var e=0;e<this.Dh.length;e++){var n=this.Dh[e];t[n]=this[n]}return t},Wt.prototype.copy=function(){return this.clone()},D=Wt.prototype,D.qb=function(t){t.classType===pn?t.name.indexOf("Orient")===0?this.segmentOrientation=t:ne("Unknown Link enum value for GraphObject.segmentOrientation property: "+t):t.classType===Wt&&(this.stretch=t)},D.toString=function(){return Je(this.constructor)+"#"+Br(this)},D.th=function(){this.A!==null&&(this.A.nc=!0)};function or(t){t.A===null?t.A=new Yd:t.A.nc&&(t.A=t.A.copy())}D.Xc=function(){if(this.ba===null){var t=new vf;t.Xi=us,t.yj=us,t.Vi=10,t.wj=10,t.Wi=0,t.xj=0,this.ba=t}},D.cb=function(t,e,n,i,r,o,s){var l=this.part;if(l!==null&&(l.gk(t,e,n,i,r,o,s),n===this&&t===Ro&&Ia(this)&&Vo(this,l,e),o=this.diagram,this.animationTriggers===null||o===null||!o.pi||o.undoManager.isUndoingRedoing||o.animationManager.Dm||(t=this.animationTriggers.get(e),t!==null&&o.animationManager.isEnabled&&!o.animationManager.isTicking&&(this.jo===null&&(this.jo=new pt),s=o.undoManager.transactionLevel===0,t.startCondition===Bs?s=!0:t.startCondition===fs&&(s=!1),s?(o=new zo,Xo(t,o),s=this.jo.get(t),s!==null&&s.stop(),this.jo.add(t,o),o.vu=this,o.Nw=t,o.add(this,e,i,r),o.start()):(Eo(o.animationManager,"Trigger"),o.animationManager.defaultAnimation.add(this,e,i,r)))),this instanceof sn&&n===l&&(l.l&16777216)!==0&&l.data!==null))for(n=this.O.s,i=n.length,r=0;r<i;r++)l=n[r],l instanceof sn&&Nd(l,function(u){u.data!==null&&u.l&16777216&&u.La(e)})};function Vo(t,e,n){var i=t.ih();if(i!==null)for(var r=t.localBindings.iterator;r.next();){var o=r.value,s=null;if(o.sourceName!==null){if(s=D1(o,i,t),s===null)continue;o.sp(t,s,n,null)}else if(o.isToModel){var l=e.diagram;l===null||l.skipsModelSourceBindings||o.sp(t,l.model.modelData,n,i)}else{if(l=i.data,l===null)continue;var u=e.diagram;u===null||u.skipsModelSourceBindings||o.sp(t,l,n,i)}s===t&&(l=i.ks(o.Ai),l!==null&&o.Mv(l,s,n))}}D.ks=function(t){return this.bindingId===t?this:null},D.g=function(t,e,n){this.cb(Ro,t,this,e,n)},D.Ge=function(t,e,n,i){var r=this.uc;if(r.h(t,e,n,i),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new Ti);var o=this.Lb;o.reset(),this.no(o,t,e,n,i),o.pp(r)}};function ua(t,e,n,i){return t.pickable===!1?!1:(i.multiply(t.transform),n?t.Yc(e,i):t.fh(e,i))}D.tx=function(t,e,n){if(this.pickable===!1)return!1;var i=this.naturalBounds;return e=t.Bf(e),n?kr(t.x,t.y,0,0,0,i.height)<=e||kr(t.x,t.y,0,i.height,i.width,i.height)<=e||kr(t.x,t.y,i.width,i.height,i.width,0)<=e||kr(t.x,t.y,i.width,0,0,0)<=e:t.zd(0,0)<=e&&t.zd(0,i.height)<=e&&t.zd(i.width,0)<=e&&t.zd(i.width,i.height)<=e},D.se=function(){return!0},D.ca=function(t){var e=$.alloc();e.assign(t),this.transform.Ga(e);var n=this.actualBounds;if(!n.w())return $.free(e),!1;var i=this.diagram;if(i!==null&&i.wq){var r=i.Ql("extraTouchThreshold"),o=i.Ql("extraTouchArea"),s=o/2,l=this.naturalBounds;i=this.Df()*i.scale;var u=1/i;if(l.width*i<r&&l.height*i<r)return t=uo(n.x-s*u,n.y-s*u,n.width+o*u,n.height+o*u,e.x,e.y),$.free(e),t}return r=!1,(this instanceof jr||this instanceof Qi?uo(n.x-5,n.y-5,n.width+10,n.height+10,e.x,e.y):n.ca(e))&&(this.tb&&!this.tb.ca(e)?r=!1:this.areaBackground!==null&&n.ca(e)||this.Ma!==null&&this.dc.ca(t)?r=!0:r=this.gh(t)),$.free(e),r},D.gh=function(t){var e=this.naturalBounds;return uo(0,0,e.width,e.height,t.x,t.y)},D.Re=function(t){if(this.angle===0)return this.actualBounds.Re(t);var e=this.naturalBounds;e=ke.allocAt(0,0,e.width,e.height);var n=this.transform,i=!1,r=$.allocAt(t.x,t.y);return e.ca(n.Cd(r))&&(r.h(t.x,t.bottom),e.ca(n.Cd(r))&&(r.h(t.right,t.bottom),e.ca(n.Cd(r))&&(r.h(t.right,t.y),e.ca(n.Cd(r))&&(i=!0)))),$.free(r),ke.free(e),i},D.fh=function(t,e){if(e===void 0)return t.Re(this.actualBounds);var n=this.naturalBounds,i=!1,r=$.allocAt(0,0);return t.ca(e.Ga(r))&&(r.h(0,n.height),t.ca(e.Ga(r))&&(r.h(n.width,n.height),t.ca(e.Ga(r))&&(r.h(n.width,0),t.ca(e.Ga(r))&&(i=!0)))),$.free(r),i},D.Yc=function(t,e){if(e===void 0&&(e=this.transform,this.angle===0))return t.Yc(this.actualBounds);var n=this.naturalBounds,i=$.allocAt(0,0),r=$.allocAt(0,n.height),o=$.allocAt(n.width,n.height),s=$.allocAt(n.width,0),l=!1;if(t.ca(e.Ga(i))||t.ca(e.Ga(r))||t.ca(e.Ga(o))||t.ca(e.Ga(s)))l=!0;else{n=ke.allocAt(0,0,n.width,n.height);var u=$.allocAt(t.x,t.y);n.ca(e.Cd(u))?l=!0:(u.h(t.x,t.bottom),n.ca(e.Cd(u))?l=!0:(u.h(t.right,t.bottom),n.ca(e.Cd(u))?l=!0:(u.h(t.right,t.y),n.ca(e.Cd(u))&&(l=!0)))),$.free(u),ke.free(n),!l&&(Vt.us(t,i,r)||Vt.us(t,r,o)||Vt.us(t,o,s)||Vt.us(t,s,i))&&(l=!0)}return $.free(i),$.free(r),$.free(o),$.free(s),l},D.ga=function(t,e){if(e===void 0&&(e=new $),t instanceof Wn){var n=this.naturalBounds;e.h(t.x*n.width+t.offsetX,t.y*n.height+t.offsetY)}else e.set(t);return this.oe.Ga(e),e},D.mi=function(t){t===void 0&&(t=new ke);var e=this.naturalBounds,n=this.oe,i=$.allocAt(0,0).transform(n);return t.h(i.x,i.y,0,0),i.h(e.width,0).transform(n),Ur(t,i.x,i.y,0,0),i.h(e.width,e.height).transform(n),Ur(t,i.x,i.y,0,0),i.h(0,e.height).transform(n),Ur(t,i.x,i.y,0,0),$.free(i),t},D.li=function(){var t=this.oe;return t.m11===1&&t.m12===0?t=0:(t=180*Math.atan2(t.m12,t.m11)/Math.PI,0>t&&(t+=360)),t},D.Df=function(){if(!(this.l&4096))return this.Kk;var t=this.Ca;return this.panel!==null?t*this.panel.Df():t},D.qs=function(t,e){return e===void 0&&(e=new $),e.assign(t),this.oe.Cd(e),e},D.rs=function(t,e,n){return this.Sj(t.x,t.y,e.x,e.y,n)},D.Sj=function(t,e,n,i,r){var o=this.transform,s=1/(o.m11*o.m22-o.m12*o.m21),l=o.m22*s,u=-o.m12*s,d=-o.m21*s,p=o.m11*s,v=s*(o.m21*o.dy-o.m22*o.dx),E=s*(o.m12*o.dx-o.m11*o.dy);return this.areaBackground!==null?(o=this.actualBounds,Vt.Ff(o.left,o.top,o.right,o.bottom,t,e,n,i,r)):(s=t*l+e*d+v,t=t*u+e*p+E,e=n*l+i*d+v,n=n*u+i*p+E,r.h(0,0),i=this.naturalBounds,n=Vt.Ff(0,0,i.width,i.height,s,t,e,n,r),r.transform(o),n)},Wt.prototype.measure=function(t,e,n,i){if(gu(this)!==!1){var r=this.Kg,o=r.right+r.left;r=r.top+r.bottom,t=Math.max(t-o,0),e=Math.max(e-r,0),n=Math.max((n||0)-o,0),i=Math.max((i||0)-r,0),o=this.angle,r=this.desiredSize;var s=this.kq();o===90||o===270?(t=isFinite(r.height)?r.height+s:t,e=isFinite(r.width)?r.width+s:e):(t=isFinite(r.width)?r.width+s:t,e=isFinite(r.height)?r.height+s:e),r=n||0,s=i||0;var l=this instanceof sn;switch(Al(this,!0)){case Xe:s=r=0,l&&(e=t=1/0);break;case rn:isFinite(t)&&t>n&&(r=t),isFinite(e)&&e>i&&(s=e);break;case ei:isFinite(t)&&t>n&&(r=t),s=0,l&&(e=1/0);break;case yi:isFinite(e)&&e>i&&(s=e),r=0,l&&(t=1/0)}l=this.maxSize;var u=this.minSize;r>l.width&&u.width<l.width&&(r=l.width),s>l.height&&u.height<l.height&&(s=l.height),n=Math.max(r,u.width),i=Math.max(s,u.height),l.width<n&&(n=Math.min(u.width,n)),l.height<i&&(i=Math.min(u.height,i)),t=Math.min(l.width,t),e=Math.min(l.height,e),t=Math.max(n,t),e=Math.max(i,e),(o===90||o===270)&&(o=t,t=e,e=o,o=n,n=i,i=o),this.uc.ka(),this.Wl(t,e,n,i),this.uc.freeze(),this.uc.w()||ne("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Zs(this,!1)}},Wt.prototype.Wl=function(){},Wt.prototype.Dd=function(){return!1},Wt.prototype.arrange=function(t,e,n,i,r){this.Uk();var o=ke.alloc();o.assign(this.Ib),this.Ib.ka(),pl(this)===!1?this.Ib.h(t,e,n,i):this.eh(t,e,n,i),this.Ib.freeze(),r===void 0?this.tb=null:this.tb=r,n=!1,r!==void 0?n=!0:(r=this.panel,r!==null&&kh(r)&&(r=r.panel),r!==null&&(r=r.dc,i=this.measuredBounds,this.areaBackground!==null&&(i=this.Ib),n=e+i.height,i=t+i.width,n=!(0<=t+.05&&i<=r.width+.05&&0<=e+.05&&n<=r.height+.05),this instanceof Do&&(t=this.naturalBounds,this.Lq>t.height||this.Cb>t.width))&&(n=!0)),this.l=n?this.l|256:this.l&-257,this.Ib.w()||ne("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(o,this.Ib),Pc(this,!1),ke.free(o)},D=Wt.prototype,D.eh=function(){};function nl(t,e,n,i,r){if(t.Ib.h(e,n,i,r),!t.desiredSize.w()){var o=t.uc;n=t.Kg,e=n.right+n.left;var s=n.top+n.bottom;switch(n=o.width+e,o=o.height+s,i+=e,r+=s,e=Al(t,!0),n===i&&o===r&&(e=Xe),e){case Xe:(n>i||o>r)&&(Zs(t,!0),t.measure(n>i?i:n,o>r?r:o,0,0));break;case rn:Zs(t,!0),t.measure(i,r,0,0);break;case ei:Zs(t,!0),t.measure(i,o,0,0);break;case yi:Zs(t,!0),t.measure(n,r,0,0)}}}D.Xl=function(t,e){var n=this.part;n!==null&&n.diagram!==null&&(n.selectionObject!==this&&n.resizeObject!==this&&n.rotateObject!==this||Vg(n,!0),this.N(),lo(t,e)||(n.oh(),this.Pn(n)))},D.Pn=function(t){this.portId!==null&&(Vg(t,!0),t instanceof Rn&&Jy(t,this))},D.gc=function(t,e){if(!Nu(this,t,e)&&this.visible){var n=this.opacity;if(n!==0){var i=1;n!==1&&(i=t.globalAlpha,t.globalAlpha=i*n);var r="";this.filter!==""&&(r=t.filter,t.filter=this.filter);var o=this instanceof sn&&kh(this),s=this.Ib;if(o){var l=this.Ib,u=this.dc,d=this.areaBackground,p=this.Ma;d===null&&p===null||t.yc(),d!==null&&(Ss(this,t,d,!0,!0,u,l),d instanceof ro&&d.type===Mu?(t.beginPath(),t.rect(l.x,l.y,l.width,l.height),t.ng(d)):t.fillRect(l.x,l.y,l.width,l.height)),p!==null&&(Ss(this,t,p,!0,!1,u,l),p instanceof ro&&p.type===Mu?(t.beginPath(),t.rect(l.x,l.y,l.width,l.height),t.ng(p)):t.fillRect(l.x,l.y,l.width,l.height)),this.hh(t,e)}if(!o&&(o||s.width!==0&&s.height!==0&&!isNaN(s.x)&&!isNaN(s.y))){o=this.transform,l=this.panel,this.l&4096&&Ca(this),d=this.part,u=!1;var v=0;d&&e.Gf("drawShadows")&&(u=d.isShadowed)&&(p=d.shadowOffset,v=Math.max(p.y,p.x)*e.scale*e.Mb),p=this.Dd();var E;if(!(E=e.$i||!p)){var M=this.naturalBounds;E=this.wh;var R=E.m11,j=E.m21,at=E.dx,q=E.m12,gt=E.m22,wt=E.dy,Ot,Gt=Ot=0;E=Ot*R+Gt*j+at;var ce=Ot*q+Gt*gt+wt;Ot=M.width+v,Gt=0;var Mn=Ot*R+Gt*j+at;Ot=Ot*q+Gt*gt+wt,Gt=Math.min(E,Mn);var Un=Math.min(ce,Ot),zn=Math.max(E+0,Mn)-Gt,cn=Math.max(ce+0,Ot)-Un;E=Gt,ce=Un,Ot=M.width+v,Gt=M.height+v,Mn=Ot*R+Gt*j+at,Ot=Ot*q+Gt*gt+wt,Gt=Math.min(E,Mn),Un=Math.min(ce,Ot),zn=Math.max(E+zn,Mn)-Gt,cn=Math.max(ce+cn,Ot)-Un,E=Gt,ce=Un,Ot=0,Gt=M.height+v,Mn=Ot*R+Gt*j+at,Ot=Ot*q+Gt*gt+wt,Gt=Math.min(E,Mn),Un=Math.min(ce,Ot),zn=Math.max(E+zn,Mn)-Gt,cn=Math.max(ce+cn,Ot)-Un,E=Gt,ce=Un,v=e.viewportBounds,M=v.x,R=v.y,E=!(E>v.width+M||M>zn+E||ce>v.height+R||R>cn+ce)}if(E){if(E=(this.l&256)!==0,t.clipInsteadOfFill&&(E=!1),this instanceof Do&&(t.font=this.font),E){if(ce=l.se()?l.naturalBounds:l.actualBounds,zn=Math.max(s.x,ce.x),cn=Math.max(s.y,ce.y),v=Math.min(s.right,ce.right)-zn,M=Math.min(s.bottom,ce.bottom)-cn,R=this.tb,R!==null&&(zn=R.x,cn=R.y,v=R.width,M=R.height),zn>s.width+s.x||s.x>ce.width+ce.x){n!==1&&(t.globalAlpha=i),this.filter!==""&&(t.filter=r);return}t.save(),t.beginPath(),t.rect(zn,cn,v,M),t.clip()}if(p){if(!d.isVisible()){n!==1&&(t.globalAlpha=i),this.filter!==""&&(t.filter=r);return}u&&(ce=d.shadowOffset,t.Ev(ce.x*e.scale*this.scale*e.Mb,ce.y*e.scale*this.scale*e.Mb,d.shadowBlur),oh(t),t.shadowColor=d.shadowColor)}u&&this.shadowVisible===!0?oh(t):u&&this.shadowVisible===!1&&Fc(t),d=this.naturalBounds,this.areaBackground!==null&&(t.yc(),mu(this,t,d,s)),t.transform(o.m11,o.m12,o.m21,o.m22,o.dx,o.dy),u&&ya(this,l)&&this.shadowVisible===null&&Fc(t),this.Ma!==null&&(t.yc(),jl(this,t,d,s)),u&&(this.Ma!==null||this.areaBackground!==null||ya(this,l))?(Ju(this,!0),this.shadowVisible===null&&Fc(t)):Ju(this,!1),this.hh(t,e),u&&this.l&512&&oh(t),p&&u&&Fc(t),E&&(t.restore(),t.Vc(this instanceof sn)),o.ws()||(e=1/(o.m11*o.m22-o.m12*o.m21),t.transform(o.m22*e,-o.m12*e,-o.m21*e,o.m11*e,e*(o.m21*o.dy-o.m22*o.dx),e*(o.m12*o.dx-o.m11*o.dy)))}}n!==1&&(t.globalAlpha=i),this.filter!==""&&(t.filter=r)}}};function ya(t,e){return e===null?!1:(kh(e)&&(e=e.panel),(e.l&512)!==0||(e.type===sn.Auto||e.type===sn.Spot)&&e.Pb()!==t)}D.Dv=function(){};function mu(t,e,n,i){Ss(t,e,t.areaBackground,!0,!0,n,i),t.areaBackground instanceof ro&&t.areaBackground.type===Mu?(e.beginPath(),e.rect(i.x,i.y,i.width,i.height),e.ng(t.areaBackground)):e.fillRect(i.x,i.y,i.width,i.height)}function jl(t,e,n,i){var r=t.kq(),o=n.x,s=n.y,l=n.width+r,u=n.height+r;Ss(t,e,t.Ma,!0,!1,n,i),t.Ma instanceof ro&&t.Ma.type===Mu?(e.beginPath(),e.rect(o-r/2,s-r/2,l,u),e.ng(t.Ma)):e.fillRect(o-r/2,s-r/2,l,u)}function Ya(t,e,n){for(var i=e.O.s,r=i.length,o=-1,s=0;s<r;s++)if(i[s]===t){o=s;break}if(t=o,t!==-1)if(t===0)e.svg.gd?e.svg.gd.after(n):e.svg.Ma?e.svg.Ma.after(n):e.type===sn.Table?(e=e.svg.getElementsByClassName("gojs-ts"),e=e.length!==0?e[0]:null,e!==null&&e.after(n)):e.svg.prepend(n);else{for(;t!==0&&!e.M(t-1).Ed();)t--;t===0?e.svg.prepend(n):(t=e.M(t-1).svg,t!==null?t.after(n):e.svg.appendChild(n))}}function Nu(t,e,n){if(!(e instanceof Xl))return!1;if(!t.visible||t.opacity===0||t.Dd()&&!t.isVisible())return t.svg!==null&&t.svg.parentNode!==null&&t.svg.remove(),!0;var i=t.panel,r=t.nk(e);if(t.kk(e,n,r))return t.svg.parentElement!==null?(t.Dd()&&(e.ti=t.svg),!0):(t.Dd()?(e.ti!==null?e.ti.after(t.svg):e.Nj.prepend(t.svg),e.ti=t.svg):i&&Ya(t,i,t.svg),!0);if(t.Dd()&&t.isShadowed){var o=t.shadowOffset;e.Ev(o.x*n.scale*t.scale*n.Mb,o.y*n.scale*t.scale*n.Mb,t.shadowBlur),oh(e),e.shadowColor=t.shadowColor}t instanceof Do&&(e.font=t.font),e.yd=null;var s=t.transform;o=t instanceof sn;var l=t instanceof sn?kh(t):!1;t.l&4096&&Ca(t);var u=t.Ib;if(e.rb.ha=[1,0,0,1,0,0],e.o=!1,r&&(e.o=!0,o&&l?(yf(e,1,0,0,1,0,0),t.svg=e.ad):o?(yf(e,s.m11,s.m12,s.m21,s.m22,s.dx,s.dy),t.svg=e.ad):yf(e,1,0,0,1,0,0)),r=t.naturalBounds,t.areaBackground!==null){var d=s.copy().Vj();e.rb.ha=[d.m11,d.m12,d.m21,d.m22,d.dx,d.dy],mu(t,e,r,u),e.rb.ha=[1,0,0,1,0,0],e.yd.gd=e.ad,e.yd.prepend(e.ad)}return o||(e.rb.ha=[s.m11,s.m12,s.m21,s.m22,s.dx,s.dy]),t.background!==null&&(o?(l&&(e.rb.ha=[s.m11,s.m12,s.m21,s.m22,s.dx,s.dy]),jl(t,e,r,u),l&&(e.rb.ha=[1,0,0,1,0,0])):(e.rb.ha=[s.m11,s.m12,s.m21,s.m22,s.dx,s.dy],jl(t,e,r,u)),e.yd.Ma=e.ad,e.yd.prepend(e.ad)),s=e.yd,r=t.part,l=!1,r&&n.Gf("drawShadows")&&(l=r.isShadowed),e.clipInsteadOfFill&&(l=!1),t.Dd()&&l&&oh(e),l&&t.shadowVisible===!0?oh(e):l&&t.shadowVisible===!1&&Fc(e),r=t.panel,l&&ya(t,r)&&t.shadowVisible===null&&Fc(e),e.Il&&(d=n.computePixelRatio(),d="drop-shadow("+e.shadowOffsetX/d+"px "+e.shadowOffsetY/d+"px "+e.shadowBlur/d/2+"px "+e.shadowColor+")",t.background!==null&&s.Ma.setAttributeNS(null,"filter",d),t.areaBackground!==null&&s.gd.setAttributeNS(null,"filter",d)),l&&(t.Ma!==null||t.areaBackground!==null||ya(t,r))?(Ju(t,!0),t.shadowVisible===null&&Fc(e)):Ju(t,!1),r=l,t.hh(e,n),o&&e.nh.pop(),e.o&&e.nh.pop(),s=e.Gv.hs,l=o?t.svg:e.yd,d=t.svg,!o&&d!==null&&l!==d&&d.parentNode===t.panel.svg?(t.svg.replaceWith(l),t.svg=l,l!==null&&t.$o(e,i,u,l),Il(e,d),!0):(t.svg=l,s!==null&&l===null&&(S0(e),e.nh.pop()),l===null||(t.$o(e,i,u,l),e.Il&&(n=n.computePixelRatio(),t.Dv(l,"drop-shadow("+e.shadowOffsetX/n+"px "+e.shadowOffsetY/n+"px "+e.shadowBlur/n/2+"px "+e.shadowColor+")")),r&&t.l&512&&oh(e),t.Dd()&&Fc(e),n=t.Dd()?t.opacity*e.globalAlpha:t.opacity,n!==1&&l.setAttributeNS(null,"opacity",n.toString()),t.filter!==""&&l.setAttributeNS(null,"filter",t.filter),t.Dd()?(e.ti?e.ti.after(l):e.Nj.prepend(l),e.ti=l):i!==null&&Ya(t,i,l),s!==null&&s(t,l)),!0)}D.$o=function(t,e,n,i){var r=(this.l&256)!==0;if(t.clipInsteadOfFill&&(r=!1),r){var o=e.se()?e.naturalBounds:e.actualBounds;e=Math.max(n.x,o.x),r=Math.max(n.y,o.y);var s=Math.min(n.right,o.right)-e;n=Math.min(n.bottom,o.bottom)-r,o=this.tb,o!==null&&(e=o.x,r=o.y,s=o.width,n=o.height),o=i.getAttribute("clip-path");var l=null;o!==null&&(l=t.svg.getElementById(o.split("#")[1].slice(0,-1))),l===null?(o="CLIP"+rs++,l=t.Ud("clipPath",{id:o}),e=t.Ud("rect",{x:e,y:r,width:s,height:n}),this instanceof sn&&(r=this.transform.copy().Vj(),e.setAttribute("transform","matrix("+r.m11+", "+r.m12+", "+r.m21+", "+r.m22+", "+r.dx+", "+r.dy+")")),l.appendChild(e),t.svg.appendChild(l),i.setAttributeNS(null,"clip-path","url(#"+o+")")):(t=l.firstElementChild,t.setAttribute("x",e.toString()),t.setAttribute("y",r.toString()),t.setAttribute("width",s.toString()),t.setAttribute("height",n.toString()))}else i.removeAttributeNS(null,"clip-path"),Il(t,i)};function Il(t,e){e=e.getAttribute("clip-path"),e!==null&&(t=t.svg.getElementById(e.split("#")[1].slice(0,-1)),t!==null&&t.remove())}function Xa(t){if(t.svg!==null){var e=t.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),n=t.svg.ownerDocument;if(e!==null){e=er(e);for(var i=e.next();!i.done;i=e.next())i=n.getElementById(i.value.split("#")[1].slice(0,-1)),i!==null&&i.remove()}t.svg.remove()}}D.hh=function(){},D.lv=function(){this.Uc=!0},D.kk=function(t,e,n){if(this.Uc)return this.lv(),this.Uc=!1;if(e=this.svg,e===null)return!1;if(!this.visible)return e.remove(),!1;if(e.nodeName!=="g"&&n||e.nodeName==="g"&&!n)return!1;var i=this.transform,r=this instanceof sn?kh(this):!1;if(!(this instanceof sn&&r))if(this instanceof Ol){var o=this.bt;t.rb.ha=[i.m11,i.m12,i.m21,i.m22,i.dx,i.dy],o!==null&&iy(t,o[0],o[1],o[2],o[3],o[4],o[5],o[6],o[7]),n?e.lastElementChild.setAttributeNS(null,"transform",ry(t)):e.setAttributeNS(null,"transform",ry(t))}else if(!n||this instanceof sn)e.setAttributeNS(null,"transform","matrix("+i.m11+", "+i.m12+", "+i.m21+", "+i.m22+", "+i.dx+", "+i.dy+")");else if(this instanceof Qi){o=e.getElementsByTagName("path");for(var s=0;s<o.length;s++)o[s].setAttributeNS(null,"transform","matrix("+i.m11+", "+i.m12+", "+i.m21+", "+i.m22+", "+i.dx+", "+i.dy+")")}else e.lastElementChild.setAttributeNS(null,"transform","matrix("+i.m11+", "+i.m12+", "+i.m21+", "+i.m22+", "+i.dx+", "+i.dy+")");return o=this.Dd()?this.opacity*t.globalAlpha:this.opacity,o===1?e.removeAttribute("opacity"):e.setAttributeNS(null,"opacity",o.toString()),t.rb.ha=[1,0,0,1,0,0],(this.areaBackground!==null||e.gd!==void 0)&&(o=e.gd,this.areaBackground===null?(e.gd.remove(),e.gd=void 0):(s=i.copy().Vj(),t.rb.ha=[s.m11,s.m12,s.m21,s.m22,s.dx,s.dy],mu(this,t,this.naturalBounds,this.actualBounds),t.rb.ha=[1,0,0,1,0,0],e.gd?(s=e.gd.getAttribute("filter"),s!==null&&t.ad.setAttribute("filter",s),e.gd.replaceWith(t.ad)):e.prepend(t.ad),e.gd=t.ad),o&&w0(t,o)),(this.background!==null||e.Ma!==void 0)&&(o=e.Ma,this.background===null?(w0(t,e.Ma),e.Ma.remove(),e.Ma=void 0):((r||n&&!(this instanceof sn))&&(t.rb.ha=[i.m11,i.m12,i.m21,i.m22,i.dx,i.dy]),jl(this,t,this.naturalBounds,this.actualBounds),e.Ma?(w0(t,e.Ma),n=e.Ma.getAttribute("filter"),n!==null&&t.ad.setAttribute("filter",n),e.Ma.replaceWith(t.ad)):e.prepend(t.ad),e.Ma=t.ad),o&&w0(t,o)),this.$o(t,this.panel,this.actualBounds,e),!0},D.nk=function(t){if(this.background!==null||this.areaBackground!==null)return!0;var e=(this.l&256)!==0;return t.clipInsteadOfFill&&(e=!1),!!e};function Ss(t,e,n,i,r,o,s){if(n!==null){var l=1,u=1;if(typeof n=="string")i?e.fillStyle=n:e.strokeStyle=n;else if(n.type===Th)i?e.fillStyle=n.color:e.strokeStyle=n.color;else{var d=t.kq();if(l=o.width,u=o.height,r?(l=s.width,u=s.height):i||(l+=d,u+=d),(o=e instanceof kd)&&n.xe&&(n.type===Ap||n.yk===l&&n.ft===u))var p=n.xe;else{var v=0,E=0,M=0,R=0,j=0,at=0;if(at=j=0,r?(j=s.x,at=s.y):i||(j-=d/2,at-=d/2),v=n.start.x*l+n.start.offsetX,E=n.start.y*u+n.start.offsetY,M=n.end.x*l+n.end.offsetX,R=n.end.y*u+n.end.offsetY,v+=j,M+=j,E+=at,R+=at,n.type===ah)p=e.createLinearGradient(v,E,M,R);else if(n.type===Mu)at=isNaN(n.endRadius)?Math.max(l,u)/2:n.endRadius,isNaN(n.startRadius)?(j=0,at=Math.max(l,u)/2):j=n.startRadius,p=e.createRadialGradient(v,E,j,M,R,at);else if(n.type===Ap)try{p=e.createPattern(n.pattern,"repeat")}catch(gt){p=null}if(n.type!==Ap&&(r=n.colorStops,r!==null))for(r=r.iterator;r.next();)p.addColorStop(r.key,r.value);if(o&&(n.xe=p,p!==null&&(n.yk=l,n.ft=u),p===null&&n.type===Ap&&n.yk!==-1)){n.yk=-1;var q=t.diagram;q!==null&&n.yk===-1&&Gn(function(){q.redraw()},600)}}i?e.fillStyle=p:e.strokeStyle=p}}}D.rg=function(t){if(t instanceof sn)t:{if(this!==t&&t!==null)for(var e=this.panel;e!==null;){if(e===t){t=!0;break t}e=e.panel}t=!1}else t=!1;return t},D.Ed=function(){if(!this.visible)return!1;var t=this.panel;return t!==null?t.Ed():!0},D.If=function(){for(var t=this instanceof sn?this:this.panel;t!==null&&t.isEnabled;)t=t.panel;return t===null};function Ca(t){if(t.l&2048){var e=t.Ab;if(e.reset(),!t.Ib.w()||!t.uc.w()){ju(t,!1);return}if(e.translate(t.Ib.x-t.uc.x,t.Ib.y-t.uc.y),t.scale!==1||t.angle!==0){var n=t.naturalBounds;t.no(e,n.x,n.y,n.width,n.height)}ju(t,!1),Iu(t,!0)}t.l&4096&&(e=t.panel,e===null?(t.wh.set(t.Ab),t.Kk=t.scale,Iu(t,!1)):e.oe!==null&&(n=t.wh,n.reset(),e.se()?n.multiply(e.wh):e.panel!==null&&n.multiply(e.panel.wh),n.multiply(t.Ab),t.Kk=t.scale*e.Kk,Iu(t,!1)))}D.no=function(t,e,n,i,r){if(this.Ca!==1&&t.scale(this.Ca),this.Kb!==0){var o=$.alloc();o.yi(e,n,i,r,Sr),t.rotate(this.Kb,o.x,o.y),$.free(o)}},D.v=function(t){if(!gu(this)){t===void 0&&(t=!1),Zs(this,!0),Pc(this,!0);var e=this.panel;e===null||t||e.v()}},D.Uj=function(){gu(this)||(Zs(this,!0),Pc(this,!0))};function dl(t){if(!pl(t)){var e=t.panel;e!==null?e.v():t.Dd()&&(e=t.diagram,e!==null&&(e.De.add(t),t instanceof Rn&&t.Bd(),e.$b())),Pc(t,!0)}}D.Uk=function(){!(this.l&2048)&&(ju(this,!0),Iu(this,!0))},D.Wu=function(){Iu(this,!0)},D.N=function(){var t=this.part;t!==null&&t.N()};function Al(t,e){var n=t.stretch,i=t.panel;return i!==null&&i.type===sn.Table?hc(t,i.Fb(t.row),i.Eb(t.column),e):i!==null&&i.type===sn.Auto&&i.Pb()===t?xa(t,rn,e):n===Zi?i!==null?i.type===sn.Spot&&i.Pb()===t?xa(t,rn,e):(n=i.defaultStretch,n===Zi?xa(t,Xe,e):xa(t,n,e)):xa(t,Xe,e):xa(t,n,e)}function hc(t,e,n,i){var r=t.stretch;if(r!==Zi)return xa(t,r,i);var o=r=null;switch(e.stretch){case yi:o=!0;break;case rn:o=!0}switch(n.stretch){case ei:r=!0;break;case rn:r=!0}return e=t.panel.defaultStretch,r===null&&(r=e===ei||e===rn),o===null&&(o=e===yi||e===rn),r===!0&&o===!0?xa(t,rn,i):r===!0?xa(t,ei,i):o===!0?xa(t,yi,i):xa(t,Xe,i)}function xa(t,e,n){if(n)return e;if(e===Xe||(n=t.desiredSize,n.w()))return Xe;if(t=t.angle,!isNaN(n.width))if(t!==90&&t!==270){if(e===ei)return Xe;if(e===rn)return yi}else{if(e===yi)return Xe;if(e===rn)return ei}if(!isNaN(n.height))if(t!==90&&t!==270){if(e===yi)return Xe;if(e===rn)return ei}else{if(e===ei)return Xe;if(e===rn)return yi}return e}function Ju(t,e){t.l=e?t.l|512:t.l&-513}function Ia(t){return(t.l&1024)!==0}function Zd(t,e){t.l=e?t.l|1024:t.l&-1025}function ju(t,e){t.l=e?t.l|2048:t.l&-2049}function Iu(t,e){t.l=e?t.l|4096:t.l&-4097}function gu(t){return(t.l&8192)!==0}function Zs(t,e){t.l=e?t.l|8192:t.l&-8193}function pl(t){return(t.l&16384)!==0}function Pc(t,e){t.l=e?t.l|16384:t.l&-16385}D.Gj=function(){this.svg=null},D.wi=function(t){this.Me=t,this.svg!==null&&this.svg.remove()},D.Av=function(){},D.zv=function(t){return this.pa=t,dl(this),!0},D.mm=function(t,e){(this.pa.x!==t||this.pa.y!==e)&&(this.pa.h(t,e),this.Uk())},D.kq=function(){return 0};function Ed(t){var e=t.part;if(e instanceof Rn&&(t.portId!==null||t===e.port)){var n=e.diagram;n===null||n.undoManager.isUndoingRedoing||Jy(e,t)}}function ey(t){var e=t.diagram;e===null||e.undoManager.isUndoingRedoing||(t instanceof sn?t instanceof Rn?t.Bd():t.qm(t,function(n){Ed(n)}):Ed(t))}D.bind=function(t,e,n,i){var r=null;return typeof t=="string"?r=new zs(t,e,n,i):r=t,r.xd=this,t=this.ih(),t!==null&&by(t)&&ne("Cannot add a Binding to a template that has already been copied: "+r),this.localBindings===null&&(this.localBindings=new Re),this.localBindings.add(r),this},D.set=function(t){return Object.assign(this,t),this},D.Du=function(t){return cg(this,t),this},D.apply=function(t){return t(this),this},D.nm=function(t){return Na(this,t),this},D.pz=function(){return this.ih()},D.ih=function(){for(var t=this instanceof sn?this:this.panel;t!==null;){if(t.allBindings!==null)return t;t=t.panel}return null},D.Jv=function(t){return t.xd=this,this.animationTriggers===null&&(this.animationTriggers=new pt),this.animationTriggers.add(t.propertyName,t),this};function Au(t,e){for(var n=1;n<arguments.length;++n);n=arguments;var i=null,r=null;if(typeof t=="function")r=t;else if(typeof t=="string"){var o=Cp.I(t);typeof o=="function"?(n=be(arguments),i=o(n),Me(i)||ne('GraphObject.make invoked object builder "'+t+'", but it did not return an Object')):r=Ft.go[t]}if(i===null&&(r!=null&&r.constructor||ne("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+t),i=new r),r=1,i instanceof ue&&1<n.length){o=i;var s=n[1];(typeof s=="string"||s instanceof HTMLDivElement)&&(ks(o,s),r++)}for(;r<n.length;r++)o=n[r],o===void 0?ne("Undefined value at argument "+r+" for object being constructed by GraphObject.make: "+i):cg(i,o);return i}function cg(t,e){if(typeof e=="string")if(t instanceof Do)t.text=e;else if(t instanceof Qi)t.figure=e;else if(t instanceof Ol)t.source=e;else if(t instanceof sn)e=Qu.I(e),e!==null&&(t.type=e);else if(t instanceof ro){var n=mr(ro,e);n!==null?t.type=n:ne("Unknown Brush type as an argument to GraphObject.make: "+e)}else t instanceof mn?(e=mr(mn,e),e!==null&&(t.type=e)):t instanceof Lr&&(e=mr(Lr,e),e!==null&&(t.type=e));else if(e instanceof Wt)t instanceof sn||ne("A GraphObject can only be added to a Panel, not to: "+t),t.add(e);else if(e instanceof Ys){var i;e.isRow&&typeof t.getRowDefinition=="function"?i=t.getRowDefinition(e.index):e.isRow||typeof t.getColumnDefinition!="function"||(i=t.getColumnDefinition(e.index)),i instanceof Ys?z0(i,e):ne("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+t)}else if(e instanceof le)typeof t.qb=="function"&&t.qb(e);else if(e instanceof ea)t.type=e;else if(e instanceof zs)t instanceof Wt||t instanceof Ys?t.bind(e):ne("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+t);else if(e instanceof Va)t instanceof Wt?t.Jv(e):ne("An AnimationTrigger can only be applied to a GraphObject, not to: "+t);else if(e instanceof Ls)t instanceof mn&&t.type===mn.o?t.figures.add(e):ne("A PathFigure can only be added to a Path Geometry, not to: "+t);else if(e instanceof Lr)t instanceof Ls?t.segments.add(e):ne("A PathSegment can only be added to a PathFigure, not to: "+t);else if(e instanceof ts)t instanceof ue||t instanceof Ki?t.layout=e:ne("A Layout can only be assigned to a Diagram or a Group, not to: "+t);else if(Array.isArray(e))for(n=0;n<e.length;n++)cg(t,e[n]);else if(typeof e=="object"&&e!==null)if(t instanceof ro){n=new zr;for(var r in e)i=parseFloat(r),isNaN(i)?n[r]=e[r]:t.addColorStop(i,e[r]);Na(t,n)}else if(t instanceof Ys){e.row!==void 0?(r=e.row,(r==null||r===1/0||isNaN(r)||0>r)&&ne("Must specify non-negative integer row for RowColumnDefinition "+e+", not: "+r),t.isRow=!0,t.index=r):e.column!==void 0&&(r=e.column,(r==null||r===1/0||isNaN(r)||0>r)&&ne("Must specify non-negative integer column for RowColumnDefinition "+e+", not: "+r),t.isRow=!1,t.index=r),r=new zr;for(n in e)n!=="row"&&n!=="column"&&(r[n]=e[n]);Na(t,r)}else Na(t,e);else ne('Unknown initializer "'+e+'" for object being constructed by GraphObject.make: '+t)}function Eh(t,e){Cp.add(t,e)}function b0(t,e,n){n===void 0&&(n=null);var i=t[1];if(typeof n=="function"?n(i):typeof i=="string")return t.splice(1,1),i;if(e===void 0)throw Error("no "+(typeof n=="function"?"satisfactory":"string")+" argument for GraphObject builder "+t[0]);return e}te.Object.defineProperties(Wt.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(t){this.bindingId!==t&&(this.A===null&&(this.A=new Yd),this.A.zp=t)}},localBindings:{get:function(){return this.A!==null?this.A.te:null},set:function(t){this.localBindings!==t&&(this.A===null&&(this.A=new Yd),this.A.te=t)}},srcBindings:{get:function(){return this.A!==null?this.A.wm:null},set:function(t){this.srcBindings!==t&&(this.A===null&&(this.A=new Yd),this.A.wm=t)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(t){var e=this.shadowVisible;e!==t&&(or(this),this.A.Ci=t,this.Uc=!0,this.N(),this.g("shadowVisible",e,t))}},enabledChanged:{get:function(){return this.A!==null?this.A.Hb:null},set:function(t){var e=this.enabledChanged;e!==t&&(or(this),this.A.Hb=t,this.g("enabledChanged",e,t))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:gl},set:function(t){var e=this.segmentOrientation;e!==t&&(this.Ua===null&&(this.Ua=new Zh),this.Ua.rr=t,this.v(),this.g("segmentOrientation",e,t),t===gl&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(t){t=Math.round(t);var e=this.segmentIndex;e!==t&&(this.Ua===null&&(this.Ua=new Zh),this.Ua.u=t,this.v(),this.g("segmentIndex",e,t))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(t){isNaN(t)||0>t?t=0:1<t&&(t=1);var e=this.segmentFraction;e!==t&&(this.Ua===null&&(this.Ua=new Zh),this.Ua.o=t,this.v(),this.g("segmentFraction",e,t))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:Wi},set:function(t){var e=this.segmentOffset;e.D(t)||(t=t.J(),this.Ua===null&&(this.Ua=new Zh),this.Ua.F=t,this.v(),this.g("segmentOffset",e,t))}},stretch:{get:function(){return this.A!==null?this.A.hg:Zi},set:function(t){var e=this.stretch;e!==t&&(or(this),this.A.hg=t,this.v(),this.g("stretch",e,t))}},name:{get:function(){return this.A!==null?this.A.xa:""},set:function(t){var e=this.name;e!==t&&(or(this),this.A.xa=t,this.part!==null&&(this.part.Rh=null),this.g("name",e,t))}},opacity:{get:function(){return this.pb},set:function(t){var e=this.pb;e!==t&&((0>t||1<t)&&Fn(t,"0 <= value <= 1",Wt,"opacity"),this.pb=t,this.g("opacity",e,t),t=this.diagram,e=this.part,t!==null&&e!==null&&t.N(Md(e,e.actualBounds)))}},filter:{get:function(){return this.bn},set:function(t){var e=this.bn;e!==t&&(this.bn=t,this.Uc=!0,this.g("filter",e,t),t=this.diagram,e=this.part,t!==null&&e!==null&&t.N(Md(e,e.actualBounds)))}},visible:{get:function(){return(this.l&1)!==0},set:function(t){var e=(this.l&1)!==0;e!==t&&(this.l^=1,this.g("visible",e,t),e=this.panel,e!==null?e.v():this.Dd()&&this.Zb(t),this.N(),ey(this))}},pickable:{get:function(){return(this.l&2)!==0},set:function(t){var e=(this.l&2)!==0;e!==t&&(this.l^=2,this.g("pickable",e,t))}},fromLinkableDuplicates:{get:function(){return(this.l&4)!==0},set:function(t){var e=(this.l&4)!==0;e!==t&&(this.l^=4,this.g("fromLinkableDuplicates",e,t))}},fromLinkableSelfNode:{get:function(){return(this.l&8)!==0},set:function(t){var e=(this.l&8)!==0;e!==t&&(this.l^=8,this.g("fromLinkableSelfNode",e,t))}},toLinkableDuplicates:{get:function(){return(this.l&16)!==0},set:function(t){var e=(this.l&16)!==0;e!==t&&(this.l^=16,this.g("toLinkableDuplicates",e,t))}},toLinkableSelfNode:{get:function(){return(this.l&32)!==0},set:function(t){var e=(this.l&32)!==0;e!==t&&(this.l^=32,this.g("toLinkableSelfNode",e,t))}},isPanelMain:{get:function(){return(this.l&64)!==0},set:function(t){var e=(this.l&64)!==0;e!==t&&(this.l^=64,this.v(),this.g("isPanelMain",e,t))}},isActionable:{get:function(){return(this.l&128)!==0},set:function(t){var e=(this.l&128)!==0;e!==t&&(this.l^=128,this.g("isActionable",e,t))}},areaBackground:{get:function(){return this.A!==null?this.A.gd:null},set:function(t){var e=this.areaBackground;e!==t&&(t!==null&&Jd(t,"GraphObject.areaBackground"),t instanceof ro&&t.freeze(),or(this),this.A.gd=t,this.N(),this.g("areaBackground",e,t))}},background:{get:function(){return this.Ma},set:function(t){var e=this.Ma;e!==t&&(t!==null&&Jd(t,"GraphObject.background"),t instanceof ro&&t.freeze(),this.Ma=t,this.N(),this.g("background",e,t))}},part:{get:function(){if(this.Dd())return this;if(this.Ng!==null)return this.Ng;var t;for(t=this.panel;t;){if(t instanceof li)return this.Ng=t;t=t.panel}return null}},svg:{get:function(){return this.V},set:function(t){this.V=t}},panel:{get:function(){return this.Me}},layer:{get:function(){var t=this.part;return t!==null?t.layer:null}},diagram:{get:function(){var t=this.part;return t!==null?t.diagram:null}},position:{get:function(){return this.pa},set:function(t){var e=t.x,n=t.y,i=this.pa,r=i.x;i=i.y,(r===e||isNaN(r)&&isNaN(e))&&(i===n||isNaN(i)&&isNaN(n))?this.Av():(t=t.copy(),this.zv(t,r,i)&&this.g("position",new $(r,i),t))}},actualBounds:{get:function(){return this.Ib}},scale:{get:function(){return this.Ca},set:function(t){var e=this.Ca;e!==t&&(0>=t&&ne("GraphObject.scale for "+this+" must be greater than zero, not: "+t),this.Ca=t,this.v(),this.g("scale",e,t))}},angle:{get:function(){return this.Kb},set:function(t){var e=this.Kb;e!==t&&(t%=360,0>t&&(t+=360),e!==t&&(this.Kb=t,ey(this),this.v(),this.g("angle",e,t)))}},desiredSize:{get:function(){return this.jd},set:function(t){var e=t.width,n=t.height,i=this.jd,r=i.width,o=i.height;(r===e||isNaN(r)&&isNaN(e))&&(o===n||isNaN(o)&&isNaN(n))||(this.jd=t=t.J(),this.v(),this instanceof Qi&&this.qc(),this.g("desiredSize",i,t),Ia(this)&&(t=this.part,t!==null&&(Vo(this,t,"width"),Vo(this,t,"height"))))}},width:{get:function(){return this.jd.width},set:function(t){var e=this.jd.width;e===t||isNaN(e)&&isNaN(t)||(e=this.jd,this.jd=t=new ni(t,this.jd.height).freeze(),this.v(),this instanceof Qi&&this.qc(),this.g("desiredSize",e,t),Ia(this)&&(t=this.part,t!==null&&Vo(this,t,"width")))}},height:{get:function(){return this.jd.height},set:function(t){var e=this.jd.height;e===t||isNaN(e)&&isNaN(t)||(e=this.jd,this.jd=t=new ni(this.jd.width,t).freeze(),this.v(),this instanceof Qi&&this.qc(),this.g("desiredSize",e,t),Ia(this)&&(t=this.part,t!==null&&Vo(this,t,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:Ps},set:function(t){var e=this.minSize;e.D(t)||(t=t.copy(),isNaN(t.width)&&(t.width=0),isNaN(t.height)&&(t.height=0),t.freeze(),or(this),this.A.u=t,this.v(),this.g("minSize",e,t))}},maxSize:{get:function(){return this.A!==null?this.A.o:Qa},set:function(t){var e=this.maxSize;e.D(t)||(t=t.copy(),isNaN(t.width)&&(t.width=1/0),isNaN(t.height)&&(t.height=1/0),t.freeze(),or(this),this.A.o=t,this.v(),this.g("maxSize",e,t))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(t){typeof t=="number"&&(t=new ri(t));var e=this.Kg;e.D(t)||(this.Kg=t=t.J(),this.v(),this.g("margin",e,t))}},transform:{get:function(){return this.l&2048&&Ca(this),this.Ab}},oe:{get:function(){return this.l&4096&&Ca(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(t){this.animationTriggers!==t&&(or(this),this.A.hb=t)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:Xe},set:function(t){this.reshapingBehavior!==t&&(or(this),this.A.Pf=t)}},alignment:{get:function(){return this.Jb},set:function(t){var e=this.Jb;e.D(t)||(t.Mc()&&!t.Xb()&&ne("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+t),this.Jb=t=t.J(),dl(this),this.g("alignment",e,t))}},column:{get:function(){return this.Ag},set:function(t){t=Math.round(t);var e=this.Ag;e!==t&&(0>t&&Fn(t,">= 0",Wt,"column"),this.Ag=t,this.v(),this.g("column",e,t),this.svg!==null&&this.svg.remove())}},columnSpan:{get:function(){return this.A!==null?this.A.ob:1},set:function(t){t=Math.round(t);var e=this.columnSpan;e!==t&&(1>t&&Fn(t,">= 1",Wt,"columnSpan"),or(this),this.A.ob=t,this.v(),this.g("columnSpan",e,t))}},row:{get:function(){return this.io},set:function(t){t=Math.round(t);var e=this.io;e!==t&&(0>t&&Fn(t,">= 0",Wt,"row"),this.io=t,this.v(),this.g("row",e,t),this.svg!==null&&this.svg.remove())}},rowSpan:{get:function(){return this.A!==null?this.A.Bi:1},set:function(t){t=Math.round(t);var e=this.rowSpan;e!==t&&(1>t&&Fn(t,">= 1",Wt,"rowSpan"),or(this),this.A.Bi=t,this.v(),this.g("rowSpan",e,t))}},spanAllocation:{get:function(){return this.A!==null?this.A.Di:null},set:function(t){var e=this.spanAllocation;e!==t&&(or(this),this.A.Di=t,this.v(),this.g("spanAllocation",e,t))}},alignmentFocus:{get:function(){return this.sk},set:function(t){var e=this.sk;e.D(t)||(this.sk=t=t.J(),this.v(),this.g("alignmentFocus",e,t))}},portId:{get:function(){return this.Yn},set:function(t){var e=this.Yn;if(e!==t){var n=this.part;n===null||n instanceof Rn||ne("Cannot set portID on a Link: "+t),e!==null&&n!==null&&Xg(n,this),this.Yn=t,t!==null&&n!==null&&(n.Te=!0,t1(n,this)),this.g("portId",e,t)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:us},set:function(t){var e=this.toSpot;e.D(t)||(t=t.J(),this.Xc(),this.ba.yj=t,this.g("toSpot",e,t),Ed(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(t){var e=this.toEndSegmentLength;e!==t&&(0>t&&Fn(t,">= 0",Wt,"toEndSegmentLength"),this.Xc(),this.ba.wj=t,this.g("toEndSegmentLength",e,t),Ed(this))}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:0},set:function(t){var e=this.toShortLength;e!==t&&(this.Xc(),this.ba.xj=t,this.g("toShortLength",e,t),Ed(this))}},toLinkable:{get:function(){return this.ba!==null?this.ba.Tr:null},set:function(t){var e=this.toLinkable;e!==t&&(this.Xc(),this.ba.Tr=t,this.g("toLinkable",e,t))}},toMaxLinks:{get:function(){return this.ba!==null?this.ba.Ur:1/0},set:function(t){var e=this.toMaxLinks;e!==t&&(0>t&&Fn(t,">= 0",Wt,"toMaxLinks"),this.Xc(),this.ba.Ur=t,this.g("toMaxLinks",e,t))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:us},set:function(t){var e=this.fromSpot;e.D(t)||(t=t.J(),this.Xc(),this.ba.Xi=t,this.g("fromSpot",e,t),Ed(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(t){var e=this.fromEndSegmentLength;e!==t&&(0>t&&Fn(t,">= 0",Wt,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=t,this.g("fromEndSegmentLength",e,t),Ed(this))}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:0},set:function(t){var e=this.fromShortLength;e!==t&&(this.Xc(),this.ba.Wi=t,this.g("fromShortLength",e,t),Ed(this))}},fromLinkable:{get:function(){return this.ba!==null?this.ba.hq:null},set:function(t){var e=this.fromLinkable;e!==t&&(this.Xc(),this.ba.hq=t,this.g("fromLinkable",e,t))}},fromMaxLinks:{get:function(){return this.ba!==null?this.ba.iq:1/0},set:function(t){var e=this.fromMaxLinks;e!==t&&(0>t&&Fn(t,">= 0",Wt,"fromMaxLinks"),this.Xc(),this.ba.iq=t,this.g("fromMaxLinks",e,t))}},cursor:{get:function(){return this.A!==null?this.A.j:""},set:function(t){var e=this.cursor;e!==t&&(or(this),this.A.j=t,this.g("cursor",e,t))}},click:{get:function(){return this.A!==null?this.A.zh:null},set:function(t){var e=this.click;e!==t&&(or(this),this.A.zh=t,this.g("click",e,t))}},doubleClick:{get:function(){return this.A!==null?this.A.Fh:null},set:function(t){var e=this.doubleClick;e!==t&&(or(this),this.A.Fh=t,this.g("doubleClick",e,t))}},contextClick:{get:function(){return this.A!==null?this.A.Bh:null},set:function(t){var e=this.contextClick;e!==t&&(or(this),this.A.Bh=t,this.g("contextClick",e,t))}},mouseEnter:{get:function(){return this.A!==null?this.A.Mh:null},set:function(t){var e=this.mouseEnter;e!==t&&(or(this),this.A.Mh=t,this.g("mouseEnter",e,t))}},mouseLeave:{get:function(){return this.A!==null?this.A.Ph:null},set:function(t){var e=this.mouseLeave;e!==t&&(or(this),this.A.Ph=t,this.g("mouseLeave",e,t))}},mouseOver:{get:function(){return this.A!==null?this.A.Qh:null},set:function(t){var e=this.mouseOver;e!==t&&(or(this),this.A.Qh=t,this.g("mouseOver",e,t))}},mouseHover:{get:function(){return this.A!==null?this.A.Oh:null},set:function(t){var e=this.mouseHover;e!==t&&(or(this),this.A.Oh=t,this.g("mouseHover",e,t))}},mouseHold:{get:function(){return this.A!==null?this.A.Nh:null},set:function(t){var e=this.mouseHold;e!==t&&(or(this),this.A.Nh=t,this.g("mouseHold",e,t))}},mouseDragEnter:{get:function(){return this.A!==null?this.A.Of:null},set:function(t){var e=this.mouseDragEnter;e!==t&&(or(this),this.A.Of=t,this.g("mouseDragEnter",e,t))}},mouseDragLeave:{get:function(){return this.A!==null?this.A.Xd:null},set:function(t){var e=this.mouseDragLeave;e!==t&&(or(this),this.A.Xd=t,this.g("mouseDragLeave",e,t))}},mouseDrop:{get:function(){return this.A!==null?this.A.Lh:null},set:function(t){var e=this.mouseDrop;e!==t&&(or(this),this.A.Lh=t,this.g("mouseDrop",e,t))}},actionDown:{get:function(){return this.A!==null?this.A.V:null},set:function(t){var e=this.actionDown;e!==t&&(or(this),this.A.V=t,this.g("actionDown",e,t))}},actionMove:{get:function(){return this.A!==null?this.A.ia:null},set:function(t){var e=this.actionMove;e!==t&&(or(this),this.A.ia=t,this.g("actionMove",e,t))}},actionUp:{get:function(){return this.A!==null?this.A.Ha:null},set:function(t){var e=this.actionUp;e!==t&&(or(this),this.A.Ha=t,this.g("actionUp",e,t))}},actionCancel:{get:function(){return this.A!==null?this.A.F:null},set:function(t){var e=this.actionCancel;e!==t&&(or(this),this.A.F=t,this.g("actionCancel",e,t))}},toolTip:{get:function(){return this.A!==null?this.A.$h:null},set:function(t){var e=this.toolTip;e!==t&&(or(this),this.A.$h=t,this.g("toolTip",e,t))}},contextMenu:{get:function(){return this.A!==null?this.A.Ch:null},set:function(t){var e=this.contextMenu;e!==t&&(or(this),this.A.Ch=t,this.g("contextMenu",e,t))}}}),Wt.prototype.trigger=Wt.prototype.Jv,Wt.prototype.findBindingPanel=Wt.prototype.ih,Wt.prototype.findTemplateBinder=Wt.prototype.pz,Wt.prototype.setProperties=Wt.prototype.nm,Wt.prototype.apply=Wt.prototype.apply,Wt.prototype.attach=Wt.prototype.Du,Wt.prototype.set=Wt.prototype.set,Wt.prototype.isEnabledObject=Wt.prototype.If,Wt.prototype.isVisibleObject=Wt.prototype.Ed,Wt.prototype.isContainedBy=Wt.prototype.rg,Wt.prototype.getNearestIntersectionPoint=Wt.prototype.rs,Wt.prototype.getLocalPoint=Wt.prototype.qs,Wt.prototype.getDocumentScale=Wt.prototype.Df,Wt.prototype.getDocumentAngle=Wt.prototype.li,Wt.prototype.getDocumentBounds=Wt.prototype.mi,Wt.prototype.getDocumentPoint=Wt.prototype.ga,Wt.prototype.intersectsRect=Wt.prototype.Yc,Wt.prototype.containedInRect=Wt.prototype.fh,Wt.prototype.containsRect=Wt.prototype.Re,Wt.prototype.containsPoint=Wt.prototype.ca,Wt.prototype.raiseChanged=Wt.prototype.g,Wt.prototype.raiseChangedEvent=Wt.prototype.cb,Wt.prototype.addCopyProperty=Wt.prototype.Vw;var Cp=null;Wt.className="GraphObject",Cp=new pt,Eh("Button",function(){function t(n,i){return n.diagram.ic(n.documentPoint,function(r){for(;r.panel!==null&&!r.isActionable;)r=r.panel;return r},function(r){return r===i})!==null}var e=Au(sn,sn.Auto,{isActionable:!0,enabledChanged:function(n,i){if(n instanceof sn){var r=n.fb("ButtonBorder");r!==null&&(r.fill=i?n._buttonFillNormal:n._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},Au(Qi,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new Wn(0,0,2.76142374915397,2.761423749153969),spot2:new Wn(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return e.mouseEnter=function(n,i){if(i.If()&&i instanceof sn&&(n=i.fb("ButtonBorder"),n instanceof Qi)){var r=i._buttonFillOver;i._buttonFillNormal=n.fill,n.fill=r,r=i._buttonStrokeOver,i._buttonStrokeNormal=n.stroke,n.stroke=r}},e.mouseLeave=function(n,i){i.If()&&i instanceof sn&&(n=i.fb("ButtonBorder"),n instanceof Qi&&(n.fill=i._buttonFillNormal,n.stroke=i._buttonStrokeNormal))},e.actionDown=function(n,i){if(i.If()&&i instanceof sn&&i._buttonFillPressed!==null&&n.button===0){var r=i.fb("ButtonBorder");if(r instanceof Qi){n=n.diagram;var o=n.skipsUndoManager;n.skipsUndoManager=!0;var s=i._buttonFillPressed;i._buttonFillOver=r.fill,r.fill=s,s=i._buttonStrokePressed,i._buttonStrokeOver=r.stroke,r.stroke=s,n.skipsUndoManager=o}}},e.actionUp=function(n,i){if(i.If()&&i instanceof sn&&i._buttonFillPressed!==null&&n.button===0){var r=i.fb("ButtonBorder");if(r instanceof Qi){var o=n.diagram,s=o.skipsUndoManager;o.skipsUndoManager=!0,t(n,i)?(r.fill=i._buttonFillOver,r.stroke=i._buttonStrokeOver):(r.fill=i._buttonFillNormal,r.stroke=i._buttonStrokeNormal),o.skipsUndoManager=s}}},e.actionCancel=function(n,i){if(i.If()&&i instanceof sn&&i._buttonFillPressed!==null){var r=i.fb("ButtonBorder");if(r instanceof Qi){var o=n.diagram,s=o.skipsUndoManager;o.skipsUndoManager=!0,t(n,i)?(r.fill=i._buttonFillOver,r.stroke=i._buttonStrokeOver):(r.fill=i._buttonFillNormal,r.stroke=i._buttonStrokeNormal),o.skipsUndoManager=s}}},e.actionMove=function(n,i){if(i.If()&&i instanceof sn&&i._buttonFillPressed!==null){var r=n.diagram;if(r.firstInput.button===0&&(r.currentTool.standardMouseOver(),t(n,i)&&(n=i.fb("ButtonBorder"),n instanceof Qi))){var o=r.skipsUndoManager;r.skipsUndoManager=!0;var s=i._buttonFillPressed;n.fill!==s&&(n.fill=s),s=i._buttonStrokePressed,n.stroke!==s&&(n.stroke=s),r.skipsUndoManager=o}}},e}),Eh("TreeExpanderButton",function(){var t=Au("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Au(Qi,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Us},new zs("figure","isTreeExpanded",function(e,n){return n=n.panel,e?n._treeExpandedFigure:n._treeCollapsedFigure}).cp()),{visible:!1},new zs("visible","isTreeLeaf",function(e){return!e}).cp());return t.click=function(e,n){if(n=n.part,n instanceof jr&&(n=n.adornedPart),n instanceof Rn){var i=n.diagram;if(i!==null){if(i=i.commandHandler,n.isTreeExpanded){if(!i.canCollapseTree(n))return}else if(!i.canExpandTree(n))return;e.handled=!0,n.isTreeExpanded?i.collapseTree(n):i.expandTree(n)}}},t}),Eh("SubGraphExpanderButton",function(){var t=Au("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Au(Qi,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Us},new zs("figure","isSubGraphExpanded",function(e,n){return n=n.panel,e?n._subGraphExpandedFigure:n._subGraphCollapsedFigure}).cp()));return t.click=function(e,n){if(n=n.part,n instanceof jr&&(n=n.adornedPart),n instanceof Ki){var i=n.diagram;if(i!==null){if(i=i.commandHandler,n.isSubGraphExpanded){if(!i.canCollapseSubGraph(n))return}else if(!i.canExpandSubGraph(n))return;e.handled=!0,n.isSubGraphExpanded?i.collapseSubGraph(n):i.expandSubGraph(n)}}},t}),Eh("ToolTip",function(){return Au(jr,sn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new $(0,3),shadowBlur:5},Au(Qi,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new Wn(0,0,4,6),spot2:new Wn(1,1,-4,-4)}))}),Eh("ContextMenu",function(){return Au(jr,sn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new $(0,3),shadowBlur:5},new zs("background","",function(t){return t.adornedPart!==null&&t.placeholder!==null?null:"#F5F5F5"}))}),Eh("ContextMenuButton",function(){var t=Au("Button");t.stretch=ei;var e=t.fb("ButtonBorder");return e instanceof Qi&&(e.figure="Rectangle",e.strokeWidth=0,e.spot1=new Wn(0,0,2,3),e.spot2=new Wn(1,1,-2,-2)),t}),Eh("PanelExpanderButton",function(t){var e=b0(t,"COLLAPSIBLE"),n=Au("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},Au(Qi,{name:"ButtonIcon",strokeWidth:2},new zs("geometryString","visible",function(i){return i?n._buttonExpandedFigure:n._buttonCollapsedFigure}).cp(e)));return t=n.fb("ButtonBorder"),t instanceof Qi&&(t.stroke=null,t.fill="rgba(0, 0, 0, 0)"),n.click=function(i,r){var o=r.diagram;if(o!==null&&!o.isReadOnly){var s=r.ih();s===null&&(s=r.part),s!==null&&(r=s.fb(e),r!==null&&(i.handled=!0,o.Ea("Collapse/Expand Panel"),r.visible=!r.visible,o.eb("Collapse/Expand Panel")))}},n}),Eh("CheckBoxButton",function(t){var e=b0(t);return t=Au("Button",{desiredSize:new ni(14,14)},Au(Qi,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:rn,geometryStretch:Kn,visible:!1},e!==""?new zs("visible",e).Kx():[])),t.click=function(n,i){if(i instanceof sn){var r=n.diagram;if(!(r===null||r.isReadOnly||e!==""&&r.model.isReadOnly)){n.handled=!0;var o=i.fb("ButtonIcon");r.Ea("checkbox"),o.visible=!o.visible,typeof i._doClick=="function"&&i._doClick(n,i),r.eb("checkbox")}}},t}),Eh("CheckBox",function(t){t=b0(t),t=Au("CheckBoxButton",t,{name:"Button",isActionable:!1,margin:new ri(0,1,0,0)});var e=Au(sn,"Horizontal",t,{isActionable:!0,cursor:t.cursor,margin:new ri(1),_buttonFillNormal:t._buttonFillNormal,_buttonStrokeNormal:t._buttonStrokeNormal,_buttonFillOver:t._buttonFillOver,_buttonStrokeOver:t._buttonStrokeOver,_buttonFillPressed:t._buttonFillPressed,_buttonStrokePressed:t._buttonStrokePressed,_buttonFillDisabled:t._buttonFillDisabled,mouseEnter:t.mouseEnter,mouseLeave:t.mouseLeave,actionDown:t.actionDown,actionUp:t.actionUp,actionCancel:t.actionCancel,actionMove:t.actionMove,click:t.click,_buttonClick:t.click});return t.mouseEnter=null,t.mouseLeave=null,t.actionDown=null,t.actionUp=null,t.actionCancel=null,t.actionMove=null,t.click=null,e}),Wt.None=Xe=new le(Wt,"None",0),Wt.Default=Zi=new le(Wt,"Default",0),Wt.Vertical=yi=new le(Wt,"Vertical",4),Wt.Horizontal=ei=new le(Wt,"Horizontal",5),Wt.Fill=rn=new le(Wt,"Fill",3),Wt.Uniform=Kn=new le(Wt,"Uniform",1),Wt.UniformToFill=Cr=new le(Wt,"UniformToFill",2),Wt.FlipVertical=ar=new le(Wt,"FlipVertical",1),Wt.FlipHorizontal=Dr=new le(Wt,"FlipHorizontal",2),Wt.FlipBoth=fo=new le(Wt,"FlipBoth",3),Wt.make=Au,Wt.getBuilders=function(){var t=new pt,e;for(e in Cp)if(e!==e.toLowerCase()){var n=Cp.I(e);typeof n=="function"&&t.add(e,n)}return t.freeze(),t},Wt.defineBuilder=Eh,Wt.build=function(t,e,n){for(var i=[],r=2;r<arguments.length;++r)i[r-2]=arguments[r];if(r=Cp.I(t),typeof r=="function"&&(i=r([t].concat(i)),i instanceof Wt))return e&&i.set(e),i;ne('GraphObject.build invoked object builder "'+t+'", but it did not return an Object')},Wt.takeBuilderArgument=b0;function Yd(){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=Ps,this.o=Qa,this.hg=Zi,this.ob=this.Bi=1,this.Pf=Xe,this.Pc=this.Ci=this.gd=null,this.Oc="category"}Yd.prototype.copy=function(){var t=new Yd;return t.xa=this.xa,t.zp=this.zp,t.te=this.te,t.nb=this.nb,t.j=this.j,t.zh=this.zh,t.Fh=this.Fh,t.Bh=this.Bh,t.Mh=this.Mh,t.Ph=this.Ph,t.Qh=this.Qh,t.Oh=this.Oh,t.Nh=this.Nh,t.Of=this.Of,t.Xd=this.Xd,t.Lh=this.Lh,t.V=this.V,t.ia=this.ia,t.Ha=this.Ha,t.F=this.F,t.$h=this.$h,t.Ch=this.Ch,t.Hb=this.Hb,t.Di=this.Di,t.hb=this.hb,t.u=this.u.J(),t.o=this.o.J(),t.hg=this.hg,t.Bi=this.Bi,t.ob=this.ob,t.Pf=this.Pf,t.gd=this.gd,t.Ci=this.Ci,t.Pc=this.Pc,t.Oc=this.Oc,t};function Zh(){this.u=-1/0,this.o=0,this.F=Wi,this.rr=gl,this.j=this.V="None"}Zh.prototype.copy=function(){var t=new Zh;return t.u=this.u,t.o=this.o,t.F=this.F.J(),t.rr=this.rr,t.V=this.V,t.j=this.j,t},Zh.className="LinkElementSettings";function vf(){this.yj=this.Xi=_r,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}vf.prototype.copy=function(){var t=new vf;return t.Xi=this.Xi.J(),t.yj=this.yj.J(),t.Vi=this.Vi,t.wj=this.wj,t.Wi=this.Wi,t.xj=this.xj,t.hq=this.hq,t.Tr=this.Tr,t.iq=this.iq,t.Ur=this.Ur,t},vf.className="LinkSettings";function Td(){this.ha=[1,0,0,1,0,0]}Td.prototype.copy=function(){var t=new Td;return t.ha[0]=this.ha[0],t.ha[1]=this.ha[1],t.ha[2]=this.ha[2],t.ha[3]=this.ha[3],t.ha[4]=this.ha[4],t.ha[5]=this.ha[5],t},Td.prototype.translate=function(t,e){this.ha[4]+=this.ha[0]*t+this.ha[2]*e,this.ha[5]+=this.ha[1]*t+this.ha[3]*e},Td.prototype.scale=function(t,e){this.ha[0]*=t,this.ha[1]*=t,this.ha[2]*=e,this.ha[3]*=e},Td.prototype.rotate=function(t,e,n){if(360<=t?t-=360:0>t&&(t+=360),t!==0){if(this.translate(e,n),t===90){t=0;var i=1}else t===180?(t=-1,i=0):t===270?(t=0,i=-1):(i=t*Math.PI/180,t=Math.cos(i),i=Math.sin(i));var r=this.ha[1]*t+this.ha[3]*i,o=this.ha[0]*-i+this.ha[2]*t,s=this.ha[1]*-i+this.ha[3]*t;this.ha[0]=this.ha[0]*t+this.ha[2]*i,this.ha[1]=r,this.ha[2]=o,this.ha[3]=s,this.translate(-e,-n)}},Td.className="STransform";function Xd(t){this.type=t,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}Xd.prototype.addColorStop=function(t,e){this.gx.push({offset:t,color:e})},Xd.className="SGradient";function kc(t,e,n){this.ownerDocument=t=e===void 0?Ft.document:e,this.cA="http://www.w3.org/2000/svg",t!==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 Xl(this,n)}kc.prototype.resize=function(t,e,n,i){return this.width!==t||this.height!==e?(this.width=t,this.height=e,this.style.width=n+"px",this.style.height=i+"px",this.Oa.setAttributeNS(null,"width",n+"px"),this.Oa.setAttributeNS(null,"height",i+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+n+" "+i),this.context.ww.firstElementChild.setAttributeNS(null,"width",n+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",i+"px"),!0):!1},kc.prototype.Ud=function(t,e,n){if(t=this.ownerDocument.createElementNS(this.cA,t),Me(e))for(var i in e)t.setAttributeNS(i==="href"?"http://www.w3.org/1999/xlink":"",i,e[i]);return n!==void 0&&(t.textContent=n),t},kc.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},kc.prototype.focus=function(){this.Oa.focus()},kc.prototype.mx=function(){this.ownerDocument=null},te.Object.defineProperties(kc.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(t){this.Oa.setAttribute("width",t+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(t){this.Oa.setAttribute("height",t+"px")}},style:{get:function(){return this.Oa.style}}}),kc.className="SVGSurface";function Xl(t,e){this.Gv=t,this.svg=t.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 Td,this.j=S0(this),this.Nj=S0(this,"gojs-diagram"),this.Hl=this.ti=null;var n=rs++,i=this.Ud("clipPath",{id:"mainClip"+n});i.appendChild(this.Ud("rect",{x:0,y:0,width:t.width,height:t.height})),this.ww=i,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(i),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+n+")"),this.eA={},this.isTemporary=!!e,this.filter="",this.bk=null}function ny(t,e,n,i,r,o,s){t.Nj===void 0?yf(t,e,n,i,r,o,s):t.Nj.setAttribute("transform","matrix("+e+", "+n+", "+i+", "+r+", "+o+", "+s+")")}D=Xl.prototype,D.arc=function(t,e,n,i,r,o,s,l){var u=2*Math.PI,d=u-1e-6,p=n*Math.cos(i),v=n*Math.sin(i),E=t+p,M=e+v,R=o?0:1;i=o?i-r:r-i,(1e-6<Math.abs(s-E)||1e-6<Math.abs(l-M))&&this.path.push(["L",E,+M]),0>i&&(i=i%u+u),i>d?(this.path.push(["A",n,n,0,1,R,t-p,e-v]),this.path.push(["A",n,n,0,1,R,E,M])):1e-6<i&&this.path.push(["A",n,n,0,+(i>=Math.PI),R,t+n*Math.cos(r),e+n*Math.sin(r)])},D.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},D.Se=function(t){this.addPath(this.path,this.rb,t||0)},D.bezierCurveTo=function(t,e,n,i,r,o){this.path.push(["C",t,e,n,i,r,o])},D.clearRect=function(){},D.clip=function(){this.Yl.clipPath=!0},D.closePath=function(){this.path.push(["z"])},D.createLinearGradient=function(t,e,n,i){var r=new Xd("linear");return r.x1=t,r.y1=e,r.x2=n,r.y2=i,r},D.createPattern=function(t){var e="";t instanceof HTMLCanvasElement&&(e=t.toDataURL()),t instanceof HTMLImageElement&&(e=t.getAttribute("src"));var n=this.eA;if(n[e])return"url(#"+n[e]+")";var i="PATTERN"+rs++,r={x:0,y:0,width:t.width,height:t.height,href:e};return t=this.Ud("pattern",{width:t.width,height:t.height,id:i,patternUnits:"userSpaceOnUse"}),t.appendChild(this.Ud(wd,r)),this.svg.appendChild(t),n[e]=i,"url(#"+i+")"},D.createRadialGradient=function(t,e,n,i,r,o){var s=new Xd("radial");return s.x1=t,s.y1=e,s.r1=n,s.x2=i,s.y2=r,s.r2=o,s};function iy(t,e,n,i,r,o,s,l,u){i=l/i,r=u/r,o===0&&s===0||t.rb.translate(o,s),i===1&&r===1||t.rb.scale(i,r),e===0&&n===0||t.rb.translate(-e,-n)}D.drawImage=function(t,e,n,i,r,o,s,l,u){var d="";t instanceof HTMLCanvasElement&&(d=t.toDataURL()),t instanceof HTMLImageElement&&(d=t.getAttribute("src"));var p=t instanceof HTMLImageElement?t.naturalWidth:t.width;t=t instanceof HTMLImageElement?t.naturalHeight:t.height,i===void 0&&(o=e,s=n,l=i=p,u=r=t),i=i||0,r=r||0,l=l||0,u=u||0,iy(this,e,n,i,r,o||0,s||0,l,u),o={x:0,y:0,width:p||i,height:t||r,href:d},Vt.$(i,l)&&Vt.$(r,u)?d.toLowerCase().indexOf(".svg")===-1&&d.toLowerCase().indexOf("data:image/svg")===-1&&(o.preserveAspectRatio="xMidYMid slice"):o.preserveAspectRatio="none",(e!==0||n!==0||i!==p||r!==t)&&(i+=e,r+=n,o["clip-path"]="path('M "+e+","+n+" L "+i+" "+n+" L "+i+" "+r+" L "+e+" "+r+" z')"),Ep(this,wd,o,this.rb),this.addElement(wd,o)},D.fill=function(t){t&&(this.Yl["fill-rule"]="evenodd"),hg(this,this.Yl)},D.ng=function(t,e){this.clipInsteadOfFill?this.clip():this.fill(e)},D.fillRect=function(t,e,n,i){t=[t,e,n,i],t={x:t[0],y:t[1],width:t[2],height:t[3]},Ep(this,"fill",t,this.rb),this.addElement("rect",t)},D.ox=function(t,e,n,i){t={x:t,y:e,width:n,height:i},Ep(this,"fill",t,this.rb),hg(this,t),this.svg.prepend(this.Ud("rect",t))},D.fillText=function(t,e,n){t=[t,e,n],e=this.textAlign,e==="left"?e="start":e==="right"?e="end":e==="center"&&(e="middle"),e={x:t[1],y:t[2],style:"font: "+this.font,"text-anchor":e},Ep(this,"fill",e,this.rb),this.addElement("text",e,t[0])},D.lineTo=function(t,e){this.path.push(["L",t,e])},D.moveTo=function(t,e){this.path.push(["M",t,e])},D.quadraticCurveTo=function(t,e,n,i){this.path.push(["Q",t,e,n,i])},D.rect=function(t,e,n,i){this.path.push(["M",t,e],["L",t+n,e],["L",t+n,e+i],["L",t,e+i],["z"])},D.restore=function(){this.rb=this.stack.pop(),this.path=this.stack.pop();var t=this.stack.pop();this.fillStyle=t.fillStyle,this.font=t.font,this.globalAlpha=t.globalAlpha,this.lineCap=t.lineCap,this.lineDashOffset=t.lineDashOffset,this.lineJoin=t.lineJoin,this.lineWidth=t.lineWidth,this.miterLimit=t.miterLimit,this.shadowBlur=t.shadowBlur,this.shadowColor=t.shadowColor,this.shadowOffsetX=t.shadowOffsetX,this.shadowOffsetY=t.shadowOffsetY,this.strokeStyle=t.strokeStyle,this.textAlign=t.textAlign,this.bk=t.bk},D.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 t=[],e=0;e<this.path.length;e++)t.push(this.path[e]);this.stack.push(t),this.stack.push(this.rb.copy())},D.setTransform=function(t,e,n,i,r,o){t===1&&e===0&&n===0&&i===1&&r===0&&o===0||yf(this,t,e,n,i,r,o)};function ry(t){return t=t.rb.ha,"matrix("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"}D.scale=function(t,e){this.rb.scale(t,e)},D.translate=function(t,e){this.rb.translate(t,e)},D.transform=function(){},D.yc=function(){},D.stroke=function(){sy(this,this.Yl)},D.jk=function(){this.clipInsteadOfFill||this.stroke()},D.Ud=function(t,e,n){return this.Gv.Ud(t,e,n)},D.addElement=function(t,e,n){return t=this.Ud(t,e,n),this.yd!==null?this.yd.appendChild(t):this.yd=t,this.ad=t};function Ep(t,e,n,i){e==="fill"?hg(t,n):e==="stroke"&&sy(t,n),i!==null&&(t=i.ha,n.transform="matrix("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")")}function hg(t,e){t.fillStyle instanceof Xd?e.fill=dg(t,t.fillStyle,!0):/^rgba\(/.test(t.fillStyle)?(t=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(t.fillStyle),e.fill="rgb("+t[1]+","+t[2]+","+t[3]+")",e["fill-opacity"]=t[4]):e.fill=t.fillStyle}function oy(t,e,n){n=n?"fill":"stroke",t.fillStyle instanceof Xd?e.setAttributeNS(null,"fill",dg(t,t.fillStyle,!0)):/^rgba\(/.test(t.fillStyle)?(t=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(t.fillStyle),e.setAttributeNS(null,n,"rgb("+t[1]+","+t[2]+","+t[3]+")"),e.setAttributeNS(null,n+"-opacity",t[4])):e.setAttributeNS(null,n,t.fillStyle)}function sy(t,e){if(t.strokeStyle instanceof Xd)e.stroke=dg(t,t.strokeStyle,!1);else if(/^rgba\(/.test(t.strokeStyle)){var n=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(t.strokeStyle);e.stroke="rgb("+n[1]+","+n[2]+","+n[3]+")",e["stroke-opacity"]=n[4]}else e.stroke=t.strokeStyle;e["stroke-width"]=t.lineWidth,e["stroke-linecap"]=t.lineCap,e["stroke-linejoin"]=t.lineJoin,e["stroke-miterlimit"]=t.miterLimit,t.Ct&&(e["stroke-dasharray"]=t.Yg.toString(),e["stroke-dashoffset"]=t.uj)}function dg(t,e,n){var i="";if(i=t.Hl!==null?t.Hl.getAttribute(n?"fill":"stroke"):null,i!==null&&i.indexOf("GRAD")!==-1?(i=i.split("#")[1].slice(0,-1),n=t.svg.getElementById(i),n!==null&&n.remove()):i="GRAD"+rs++,e.type==="linear")n=t.Ud("linearGradient",{x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2,id:i,gradientUnits:"userSpaceOnUse"});else if(e.type==="radial")n=t.Ud("radialGradient",{x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2,r1:e.r1,r2:e.r2,id:i});else throw Error("invalid gradient");var r=e.gx;e=r.length;for(var o=[],s=0;s<e;s++){var l=r[s],u=l.color;l={offset:l.offset,"stop-color":u},/^rgba\(/.test(u)&&(u=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(u),l["stop-color"]="rgb("+u[1]+","+u[2]+","+u[3]+")",l["stop-opacity"]=u[4]),o.push(l)}for(o.sort(function(d,p){return d.offset>p.offset?1:-1}),r=0;r<e;r++)n.appendChild(t.Ud("stop",o[r]));return t.svg.appendChild(n),"url(#"+i+")"}D.addPath=function(t,e,n){for(var i=[],r=0;r<t.length;r++){var o=be(t[r]),s=[o.shift()];if(s[0]==="A")s.push(o.shift()+","+o.shift(),o.shift(),o.shift()+","+o.shift(),o.shift()+","+o.shift());else for(;o.length;)s.push(o.shift()+","+o.shift());i.push(s.join(" "))}if(i=i.join(" "),t=this.Yl,t.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+i+'")');else if(t.d=i,Ep(this,"",t,e),this.Hl!==null)if(e=this.Hl,e.nodeName!=="g")for(var l in t)l!=="transform"&&e.setAttributeNS(null,l,t[l]);else{l=e.getElementsByTagName("path");for(var u in t)u!=="transform"&&l[n].setAttributeNS(null,u,t[u])}else this.addElement("path",t)};function yf(t,e,n,i,r,o,s){var l=new Td;l.ha=[e,n,i,r,o,s],e={},Ep(t,"g",e,l),l=t.addElement("g",e),t.nh.push(l)}function S0(t,e){var n={};return e&&(n.class=e),e=t.addElement("g",n),t.nh.push(e),e}D.Ev=function(t,e,n){this.Ar=t,this.Br=e,this.Vg=n};function Fc(t){t.Il=!1,t.shadowOffsetX=0,t.shadowOffsetY=0,t.shadowBlur=0}function oh(t){t.Il=!0,t.shadowOffsetX=t.Ar,t.shadowOffsetY=t.Br,t.shadowBlur=t.Vg}D.js=function(t,e){this.Ct=!0,this.Yg=t,this.uj=e},D.fs=function(){this.Ct=!1},D.Vc=function(){},D.Wx=function(){},Xl.prototype.rotate=function(t){this.rb.rotate(57.2958*t,0,0)},Xl.prototype.getImageData=function(){return null},Xl.prototype.measureText=function(){return null};function w0(t,e){e=e.getAttribute("fill"),e!==null&&(e=e.split("#"),e.length!==1&&(e=t.svg.getElementById(e[1].slice(0,-1)),e!==null&&t.svg.innerHTML.match(new RegExp(e.id,"g")).length===1&&e.remove()))}Xl.prototype.Hs=function(t){t.svg!==null&&t.svg.parentNode===this.Nj&&t.svg.remove()},Xl.className="SVGContext",ue.prototype.Cs=function(t){this.pj.contains("SVG")||this.bs("SVG",new kc(this,Ft.document));var e=new kc(this,Ft.document,!0);t===void 0&&(t=new zr);var n=this;return Hd(this,function(i,r){return i=g0(n,i,"SVG",e),i=i!==null?i.svg:null,typeof r=="function"?(r(i),null):i},t)},ue.prototype.makeSvg=ue.prototype.Cs,ue.prototype.av=function(t){return this.Cs(t)},ue.prototype.makeSVG=ue.prototype.av;function Uu(t,e,n,i){this.ownerDocument=e=e===void 0?Ft.document:e,this.hs=null,e=e.createElement("canvas"),e.tabIndex=0,this.Oa=e,this.context=new kd(e,n,i),e.H=t}Uu.prototype.resize=function(t,e,n,i){return this.width!==t||this.height!==e?(this.width=t,this.height=e,this.style.width=n+"px",this.style.height=i+"px",!0):!1},Uu.prototype.toDataURL=function(t,e){return this.Oa.toDataURL(t,e)},Uu.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Uu.prototype.focus=function(){this.Oa.focus()},Uu.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},te.Object.defineProperties(Uu.prototype,{width:{get:function(){return this.Oa.width},set:function(t){this.Oa.width=t}},height:{get:function(){return this.Oa.height},set:function(t){this.Oa.height=t}},style:{get:function(){return this.Oa.style}}}),Uu.className="CanvasSurface";function kd(t,e,n){this.Z=t.getContext?t.getContext("2d",e):null,this.Z===null&&ne("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 Ti,this.isTemporary=!!n}D=kd.prototype,D.Wx=function(t){this.Z.imageSmoothingEnabled=t},D.arc=function(t,e,n,i,r,o){this.Z.arc(t,e,n,i,r,o)},D.beginPath=function(){this.Z.beginPath()},D.Se=function(){},D.bezierCurveTo=function(t,e,n,i,r,o){this.Z.bezierCurveTo(t,e,n,i,r,o)},D.clearRect=function(t,e,n,i){this.yc(),this.Z.clearRect(t,e,n,i)},D.clip=function(){this.Z.clip()},D.closePath=function(){this.Z.closePath()},D.createLinearGradient=function(t,e,n,i){return this.Z.createLinearGradient(t,e,n,i)},D.createPattern=function(t,e){return this.Z.createPattern(t,e)},D.createRadialGradient=function(t,e,n,i,r,o){return this.Z.createRadialGradient(t,e,n,i,r,o)},D.drawImage=function(t,e,n,i,r,o,s,l,u){i===void 0?this.Z.drawImage(t,e,n):this.Z.drawImage(t,e,n,i,r,o,s,l,u)},D.fill=function(t){this.Z.fill(t?"evenodd":"nonzero")},D.fillRect=function(t,e,n,i){this.Z.fillRect(t,e,n,i)},D.ox=function(t,e,n,i){this.Z.fillRect(t,e,n,i)},D.fillText=function(t,e,n){this.Z.fillText(t,e,n)},D.getImageData=function(t,e,n,i){return this.Z.getImageData(t,e,n,i)},D.lineTo=function(t,e){this.Z.lineTo(t,e)},D.measureText=function(t){return this.Z.measureText(t)},D.moveTo=function(t,e){this.Z.moveTo(t,e)},D.quadraticCurveTo=function(t,e,n,i){this.Z.quadraticCurveTo(t,e,n,i)},D.rect=function(t,e,n,i){this.Z.rect(t,e,n,i)},D.restore=function(){this.Z.restore()},D.save=function(){this.yc(),this.Z.save()},kd.prototype.rotate=function(t){this.El.rotate(57.2958*t,0,0)},D=kd.prototype,D.setTransform=function(t,e,n,i,r,o){this.El.setTransform(t,e,n,i,r,o)},D.scale=function(t,e){this.El.scale(t,e)},D.translate=function(t,e){this.El.translate(t,e)},D.stroke=function(){this.Z.stroke()},D.transform=function(t,e,n,i,r,o){if(t!==1||e!==0||n!==0||i!==1||r!==0||o!==0){var s=this.El,l=s.m11*t+s.m21*e;t=s.m12*t+s.m22*e,e=s.m11*n+s.m21*i,n=s.m12*n+s.m22*i,s.dx=s.m11*r+s.m21*o+s.dx,s.dy=s.m12*r+s.m22*o+s.dy,s.m11=l,s.m12=t,s.m21=e,s.m22=n}},D.yc=function(){var t=this.El;this.Z.setTransform(t.m11,t.m12,t.m21,t.m22,t.dx,t.dy)},D.ng=function(t,e){if(t instanceof ro&&t.type===Mu){var n=t.yk;t=t.ft,t>n?(this.scale(n/t,1),this.translate((t-n)/2,0)):n>t&&(this.scale(1,t/n),this.translate(0,(n-t)/2)),this.Hm?this.clip():this.fill(e),t>n?(this.translate(-(t-n)/2,0),this.scale(1/(n/t),1)):n>t&&(this.translate(0,-(n-t)/2),this.scale(1,1/(t/n)))}else this.Hm?this.clip():this.fill(e)},D.jk=function(){this.Hm||this.stroke()},D.Ev=function(t,e,n){this.Ar=t,this.Br=e,this.Vg=n},D.js=function(t,e){var n=this.Z;n.setLineDash!==void 0&&(n.setLineDash(t),n.lineDashOffset=e)},D.fs=function(){var t=this.Z;t.setLineDash!==void 0&&(t.setLineDash(Ax),t.lineDashOffset=0)},D.Vc=function(t){t&&(this.dt=""),this.ct=this.et=""},D.Hs=function(){},te.Object.defineProperties(kd.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(t){this.ct!==t&&(this.ct=this.Z.fillStyle=t)}},font:{get:function(){return this.Z.font},set:function(t){this.dt!==t&&(this.dt=this.Z.font=t)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(t){this.Z.globalAlpha=t}},lineCap:{get:function(){return this.Z.lineCap},set:function(t){this.Z.lineCap=t}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(t){this.Z.lineDashOffset=t}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(t){this.Z.lineJoin=t}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(t){this.Z.lineWidth=t}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(t){this.Z.miterLimit=t}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(t){this.Z.shadowBlur=t}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(t){this.Z.shadowColor=t}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(t){this.Z.shadowOffsetX=t}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(t){this.Z.shadowOffsetY=t}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(t){this.et!==t&&(this.et=this.Z.strokeStyle=t)}},textAlign:{get:function(){return this.Z.textAlign},set:function(t){this.Z.textAlign=t}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(t){this.Z.imageSmoothingEnabled=t}},filter:{get:function(){return this.Z.filter},set:function(t){this.Z.filter=t===""?"none":t}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(t){this.Hm=t}}});var Ax=Object.freeze([]);kd.className="CanvasSurfaceContext";function xf(){this.F=this.o=this.u=this.j=0}xf.className="ColorNumbers";function ro(t,e){Ip||(yg(),Ip=!0),nr(this),this._isFrozen=!1,t===void 0?(this.na=Th,this.xk="black"):typeof t=="string"?(this.na=Th,this.xk=t):(this.na=t,this.xk="black"),t=this.na,t===ah?(this.Qd=qa,this.Lk=Ln):this.Lk=t===Mu?this.Qd=Sr:this.Qd=us,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,e&&Object.assign(this,e)}ro.prototype.copy=function(){var t=new ro;return t.na=this.na,t.xk=this.xk,t.Qd=this.Qd.J(),t.Lk=this.Lk.J(),t.Gr=this.Gr,t.Xp=this.Xp,this.we!==null&&(t.we=this.we.copy()),t.cr=this.cr,t},D=ro.prototype,D.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},D.ka=function(){return Object.isFrozen(this)&&ne("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},D.qb=function(t){t.classType===ro&&(this.type=t)},D.toString=function(){var t="Brush(";if(this.type===Th)t+=this.color;else if(t=this.type===ah?t+"Linear ":this.type===Mu?t+"Radial ":this.type===Ap?t+"Pattern ":t+"(unknown) ",t+=this.start+" "+this.end,this.colorStops!==null)for(var e=this.colorStops.iterator;e.next();)t+=" "+e.key+":"+e.value;return t+")"},D.addColorStop=function(t,e){return this._isFrozen&&dn(this),(typeof t!="number"||!isFinite(t)||1<t||0>t)&&Fn(t,"0 <= loc <= 1",ro,"addColorStop:loc"),this.we===null&&(this.we=new pt),this.we.add(t,e),this.na===Th&&(this.type=ah),this.xe=null,this},D.Vz=function(t,e){if(this._isFrozen&&dn(this),t=t===void 0||typeof t!="number"?.2:t,e=e===void 0?Mp:e,this.type===Th)sh(this.color),this.color=kp(t,e);else if((this.type===ah||this.type===Mu)&&this.colorStops!==null)for(var n=this.colorStops.iterator;n.next();)sh(n.value),this.addColorStop(n.key,kp(t,e));return this};function ay(t,e,n){return e=e===void 0||typeof e!="number"?.2:e,n=n===void 0?Mp:n,sh(t),kp(e,n)}D.Wy=function(t,e){if(this._isFrozen&&dn(this),t=t===void 0||typeof t!="number"?.2:t,e=e===void 0?Mp:e,this.type===Th)sh(this.color),this.color=kp(-t,e);else if((this.type===ah||this.type===Mu)&&this.colorStops!==null)for(var n=this.colorStops.iterator;n.next();)sh(n.value),this.addColorStop(n.key,kp(-t,e));return this};function ly(t,e,n){return e=e===void 0||typeof e!="number"?.2:e,n=n===void 0?Mp:n,sh(t),kp(-e,n)}function pg(t,e,n){sh(t),t=Uo.j;var i=Uo.u,r=Uo.o,o=Uo.F;return sh(e),n===void 0&&(n=.5),"rgba("+Math.round((Uo.j-t)*n+t)+", "+Math.round((Uo.u-i)*n+i)+", "+Math.round((Uo.o-r)*n+r)+", "+Math.round((Uo.F-o)*n+o)+")"}D.Gx=function(){if(this.type===Th)return Tp(this.color);if((this.type===ah||this.type===Mu)&&this.colorStops!==null){var t=this.colorStops;if(this.type===Mu)return Tp(t.first().value);if(t.get(.5)!==null)return Tp(t.get(.5));if(t.count===2)return t=t.Fa(),Tp(pg(t[0].value,t[1].value));for(var e=t.iterator,n=-1,i=-1,r=1,o=1;e.next();){var s=e.key,l=Math.abs(.5-e.key);r>o&&l<r?(n=s,r=l):o>=r&&l<o&&(i=s,o=l)}return n>i&&(o=n,n=i,i=o,o=r),r=i-n,Tp(pg(t.get(n),t.get(i),1-o/r))}return!1};function Tp(t){return t?t instanceof ro?t.Gx():(sh(t),128>(299*Uo.j+587*Uo.u+114*Uo.o)/1e3):!1}function kp(t,e){switch(e){case Mp:e=100*mg(Uo.j);var n=100*mg(Uo.u),i=100*mg(Uo.o);return fl.j=.4124564*e+.3575761*n+.1804375*i,fl.u=.2126729*e+.7151522*n+.072175*i,fl.o=.0193339*e+.119192*n+.9503041*i,fl.F=Uo.F,e=vg(fl.j/Np[0]),n=vg(fl.u/Np[1]),i=vg(fl.o/Np[2]),Bc.j=116*n-16,Bc.u=500*(e-n),Bc.o=200*(n-i),Bc.F=fl.F,Bc.j=Math.min(100,Math.max(0,Bc.j+100*t)),t=(Bc.j+16)/116,e=t-Bc.o/200,fl.j=Np[0]*uy(Bc.u/500+t),fl.u=Np[1]*(Bc.j>C0*xg?Math.pow(t,3):Bc.j/C0),fl.o=Np[2]*uy(e),fl.F=Bc.F,t=-.969266*fl.j+1.8760108*fl.u+.041556*fl.o,e=.0556434*fl.j+-.2040259*fl.u+1.0572252*fl.o,Uo.j=255*gg((3.2404542*fl.j+-1.5371385*fl.u+-.4985314*fl.o)/100),Uo.u=255*gg(t/100),Uo.o=255*gg(e/100),Uo.F=fl.F,Uo.j=Math.round(Uo.j),255<Uo.j?Uo.j=255:0>Uo.j&&(Uo.j=0),Uo.u=Math.round(Uo.u),255<Uo.u?Uo.u=255:0>Uo.u&&(Uo.u=0),Uo.o=Math.round(Uo.o),255<Uo.o?Uo.o=255:0>Uo.o&&(Uo.o=0),"rgba("+Uo.j+", "+Uo.u+", "+Uo.o+", "+Uo.F+")";case cy:return fg(),vu.o=Math.min(100,Math.max(0,vu.o+100*t)),"hsla("+vu.j+", "+vu.u+"%, "+vu.o+"%, "+vu.F+")";default:ne("Unknown color space: "+e)}}function sh(t){Ip||(yg(),Ip=!0);var e=bg;if(e!==null){e.clearRect(0,0,1,1),e.fillStyle="#000000";var n=e.fillStyle;e.fillStyle=t,e.fillStyle!==n?(e.fillRect(0,0,1,1),t=e.getImageData(0,0,1,1).data,Uo.j=t[0],Uo.u=t[1],Uo.o=t[2],Uo.F=t[3]/255):(e.fillStyle="#FFFFFF",e.fillStyle=t,Uo.j=0,Uo.u=0,Uo.o=0,Uo.F=1)}}function fg(){var t=Uo.j/255,e=Uo.u/255,n=Uo.o/255,i=Math.max(t,e,n),r=Math.min(t,e,n),o=i-r;if(r=(i+r)/2,o===0)var s=t=0;else{switch(i){case t:s=(e-n)/o%6;break;case e:s=(n-t)/o+2;break;case n:s=(t-e)/o+4}s*=60,0>s&&(s+=360),t=o/(1-Math.abs(2*r-1))}vu.j=Math.round(s),vu.u=Math.round(100*t),vu.o=Math.round(100*r),vu.F=Uo.F}function mg(t){return t/=255,.04045>=t?t/12.92:Math.pow((t+.055)/1.055,2.4)}function gg(t){return .0031308>=t?12.92*t:1.055*Math.pow(t,1/2.4)-.055}function vg(t){return t>xg?Math.pow(t,1/3):(C0*t+16)/116}function uy(t){var e=t*t*t;return e>xg?e:(116*t-16)/C0}function Jd(t,e){typeof t!="string"&&(t instanceof ro||ne("Value for "+e+" must be a color string or a Brush, not "+t))}function yg(){bg=gs?new Uu(null,void 0,{willReadFrequently:!0}).context:null}te.Object.defineProperties(ro.prototype,{type:{get:function(){return this.na},set:function(t){this._isFrozen&&dn(this,t),this.na=t,this.start.Mc()&&(t===ah?this.start=qa:t===Mu&&(this.start=Sr)),this.end.Mc()&&(t===ah?this.end=Ln:t===Mu&&(this.end=Sr)),this.xe=null}},color:{get:function(){return this.xk},set:function(t){this._isFrozen&&dn(this,t),this.xk=t,this.xe=null}},start:{get:function(){return this.Qd},set:function(t){this._isFrozen&&dn(this,t),this.Qd=t.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(t){this._isFrozen&&dn(this,t),this.Lk=t.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(t){this._isFrozen&&dn(this,t),0>t&&Fn(t,">= zero",ro,"startRadius"),this.Gr=t,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(t){this._isFrozen&&dn(this,t),0>t&&Fn(t,">= zero",ro,"endRadius"),this.Xp=t,this.xe=null}},colorStops:{get:function(){return this.we},set:function(t){this._isFrozen&&dn(this,t),this.we=t,this.xe=null}},pattern:{get:function(){return this.cr},set:function(t){this._isFrozen&&dn(this,t),this.cr=t,this.xe=null}}}),ro.prototype.isDark=ro.prototype.Gx,ro.prototype.darkenBy=ro.prototype.Wy,ro.prototype.lightenBy=ro.prototype.Vz,ro.prototype.addColorStop=ro.prototype.addColorStop;var xg=216/24389,C0=24389/27,Np=[95.047,100,108.883],bg=null,Uo=new xf,vu=new xf,fl=new xf,Bc=new xf,Ip=!1;ro.className="Brush";var Th;ro.Solid=Th=new le(ro,"Solid",0);var ah;ro.Linear=ah=new le(ro,"Linear",1);var Mu;ro.Radial=Mu=new le(ro,"Radial",2);var Ap;ro.Pattern=Ap=new le(ro,"Pattern",4);var Mp;ro.Lab=Mp=new le(ro,"Lab",5);var cy;ro.HSL=cy=new le(ro,"HSL",6),ro.randomColor=function(t,e){t===void 0&&(t=128),e===void 0&&(e=Math.max(t,255));var n=Math.abs(e-t);e=Math.floor(t+Math.random()*n).toString(16);var i=Math.floor(t+Math.random()*n).toString(16);return t=Math.floor(t+Math.random()*n).toString(16),2>e.length&&(e="0"+e),2>i.length&&(i="0"+i),2>t.length&&(t="0"+t),"#"+e+i+t},ro.isValidColor=function(t){if(t==="black")return!0;if(t==="")return!1;Ip||(yg(),Ip=!0);var e=bg;if(e===null)return!0;e.fillStyle="#000000";var n=e.fillStyle;return e.fillStyle=t,e.fillStyle!==n?!0:(e.fillStyle="#FFFFFF",n=e.fillStyle,e.fillStyle=t,e.fillStyle!==n)},ro.lighten=function(t){return ay(t)},ro.lightenBy=ay,ro.darken=function(t){return ly(t)},ro.darkenBy=ly,ro.mix=pg,ro.isDark=Tp;function ea(){this.xa="Base"}ea.prototype.measure=function(){},ea.prototype.Yz=function(t,e,n,i,r){t.measure(e,n,i,r)},ea.prototype.arrange=function(){},ea.prototype.Ly=function(t,e,n,i,r,o){t.arrange(e,n,i,r,o)},ea.prototype.iA=function(t){t.Uj()},ea.prototype.gc=function(){},te.Object.defineProperties(ea.prototype,{name:{get:function(){return this.xa},set:function(t){this.xa=t}},classType:{get:function(){return sn}}}),ea.prototype.remeasureObject=ea.prototype.iA,ea.prototype.arrangeElement=ea.prototype.Ly,ea.prototype.measureElement=ea.prototype.Yz,ea.className="PanelLayout";function E0(){this.xa="Base"}Jn(E0,ea),E0.prototype.measure=function(t,e,n,i,r,o,s){var l=i.length;t=lh(t);for(var u=0;u<l;u++){var d=i[u];if(d.visible||d===t){var p=d.margin,v=p.right+p.left;p=p.top+p.bottom,d.measure(e,n,o,s);var E=d.measuredBounds;v=Math.max(E.width+v,0),p=Math.max(E.height+p,0),E=d.position.x;var M=d.position.y;isFinite(E)||(E=0),isFinite(M)||(M=0),d instanceof Qi&&d.isGeometryPositioned&&(d=d.strokeWidth/2,E-=d,M-=d),Ur(r,E,M,v,p)}}},E0.prototype.arrange=function(t,e,n){var i=e.length,r=t.padding;for(t=n.x-r.left,n=n.y-r.top,r=0;r<i;r++){var o=e[r],s=o.measuredBounds,l=o.margin,u=o.position.x,d=o.position.y;if(u=isNaN(u)?-t:u-t,d=isNaN(d)?-n:d-n,o instanceof Qi&&o.isGeometryPositioned){var p=o.strokeWidth/2;u-=p,d-=p}o.visible&&o.arrange(u+l.left,d+l.top,s.width,s.height)}};function T0(){this.xa="Base"}Jn(T0,ea),T0.prototype.measure=function(t,e,n,i,r,o,s){var l=i.length;e=Le(),o=lh(t);for(var u=0;u<l;u++){var d=i[u];if(d.visible||d===o){var p=Al(d,!1);if(p!==Xe&&p!==ei)e.push(d);else{d.measure(1/0,n,0,s),p=d.margin,d=d.measuredBounds;var v=Math.max(d.height+p.top+p.bottom,0);r.width+=Math.max(d.width+p.right+p.left,0),r.height=Math.max(r.height,v)}}}for(i=e.length,t.desiredSize.height?n=Math.min(t.desiredSize.height,t.maxSize.height):r.height!==0&&(n=Math.min(r.height,t.maxSize.height)),t=0;t<i;t++)u=e[t],(u.visible||u===o)&&(p=u.margin,l=p.right+p.left,p=p.top+p.bottom,u.measure(1/0,n,0,s),u=u.measuredBounds,p=Math.max(u.height+p,0),r.width+=Math.max(u.width+l,0),r.height=Math.max(r.height,p));tn(e)},T0.prototype.arrange=function(t,e,n){for(var i=e.length,r=t.padding,o=r.top,s=t.isOpposite,l=s?n.width:r.left,u=0;u<i;u++){var d=o,p=e[u];if(p.visible){var v=p.measuredBounds,E=p.margin,M=E.top+E.bottom,R=o+r.bottom,j=v.height,at=Al(p,!1);(isNaN(p.desiredSize.height)&&at===rn||at===yi)&&(j=Math.max(n.height-M-R,0)),M=j+M+R,R=p.alignment,R.Xb()&&(R=t.defaultAlignment),R.sb()||(R=Sr),s&&(l-=v.width+E.left+E.right),p.arrange(l+R.offsetX+E.left,d+R.offsetY+E.top+(n.height*R.y-M*R.y),v.width,j),s||(l+=v.width+E.left+E.right)}}};function k0(){this.xa="Base"}Jn(k0,ea),k0.prototype.measure=function(t,e,n,i,r,o){var s=i.length;n=Le();for(var l=lh(t),u=0;u<s;u++){var d=i[u];if(d.visible||d===l){var p=Al(d,!1);if(p!==Xe&&p!==yi)n.push(d);else{var v=d.margin;p=v.right+v.left,v=v.top+v.bottom,d.measure(e,1/0,o,0),d=d.measuredBounds,ys(r,Math.max(r.width,Math.max(d.width+p,0)),r.height+Math.max(d.height+v,0))}}}if(i=n.length,i!==0){for(t.desiredSize.width?e=Math.min(t.desiredSize.width,t.maxSize.width):r.width!==0&&(e=Math.min(r.width,t.maxSize.width)),t=0;t<i;t++)u=n[t],(u.visible||u===l)&&(d=u.margin,s=d.right+d.left,d=d.top+d.bottom,u.measure(e,1/0,o,0),u=u.measuredBounds,d=Math.max(u.height+d,0),r.width=Math.max(r.width,Math.max(u.width+s,0)),r.height+=d);tn(n)}},k0.prototype.arrange=function(t,e,n){for(var i=e.length,r=t.padding,o=r.left,s=t.isOpposite,l=s?n.height:r.top,u=0;u<i;u++){var d=o,p=e[u];if(p.visible){var v=p.measuredBounds,E=p.margin,M=E.left+E.right,R=o+r.right,j=v.width,at=Al(p,!1);(isNaN(p.desiredSize.width)&&at===rn||at===ei)&&(j=Math.max(n.width-M-R,0)),M=j+M+R,R=p.alignment,R.Xb()&&(R=t.defaultAlignment),R.sb()||(R=Sr),s&&(l-=v.height+E.bottom+E.top),p.arrange(d+R.offsetX+E.left+(n.width*R.x-M*R.x),l+R.offsetY+E.top,j,v.height),s||(l+=v.height+E.bottom+E.top)}}};function N0(){this.xa="Base"}Jn(N0,ea),N0.prototype.measure=function(t,e,n,i,r,o,s){var l=i.length,u=t.Pb(),d=u.margin,p=d.right+d.left,v=d.top+d.bottom;u.measure(e,n,o,s);var E=u.measuredBounds;o=E.width,s=E.height;var M=Math.max(o+p,0),R=Math.max(s+v,0),j=t.isClipping,at=ke.allocAt(-d.left,-d.top,M,R),q=ke.allocAt(0,0,o,s);Sg(u,q,!0),o=q.width,s=q.height;for(var gt=!0,wt=lh(t),Ot=0;Ot<l;Ot++){var Gt=i[Ot];E=e;var ce=n;if(Gt!==u&&(Gt.visible||Gt===wt)){d=Gt.margin;var Mn=d.left,Un=d.top;switch(M=d.right+d.left,R=d.top+d.bottom,d=Al(Gt,!1),d){case rn:E=o,ce=s,Un=Mn=R=M=0;break;case ei:E=o,Mn=M=0;break;case yi:ce=s,Un=R=0}Gt.measure(E,ce,0,0),E=Gt.measuredBounds,M=Math.max(E.width+M,0),R=Math.max(E.height+R,0),d=Gt.alignment,d.Xb()&&(d=t.defaultAlignment),d.sb()||(d=Sr);var zn=Gt.alignmentFocus;if(zn.Xb()&&(zn=Sr),ce=null,Gt instanceof sn&&Gt.$e!==""&&(ce=Gt.fb(Gt.$e),ce===Gt&&(ce=null)),Mn=q.x-Mn,Un=q.y-Un,ce!==null){for(Gt.arrange(0,0,E.width,E.height),E=ce.actualBounds,E=$.allocAt(E.x+(zn.x*E.width-zn.offsetX),E.y+(zn.y*E.height-zn.offsetY)),ce=ce.panel;ce!==Gt;)ce.transform.Ga(E),ce=ce.panel;Mn+=d.x*o+d.offsetX-E.x,Un+=d.y*s+d.offsetY-E.y,$.free(E)}else Mn+=d.x*o+d.offsetX-(zn.x*E.width+zn.offsetX),Un+=d.y*s+d.offsetY-(zn.y*E.height+zn.offsetY);gt?(gt=!1,r.h(Mn,Un,M,R)):Ur(r,Mn,Un,M,R)}}switch(gt?r.assign(at):j?r.Uu(q.x,q.y,q.width,q.height):Ur(r,at.x,at.y,at.width,at.height),ke.free(at),ke.free(q),d=u.stretch,d===Zi&&(d=Al(u,!1)),d){case Xe:return;case rn:if(!isFinite(e)&&!isFinite(n))return;break;case ei:if(!isFinite(e))return;break;case yi:if(!isFinite(n))return}for(E=u.measuredBounds,o=E.width,s=E.height,M=Math.max(o+p,0),R=Math.max(s+v,0),d=u.margin,q=ke.allocAt(-d.left,-d.top,M,R),Sg(u,q,!0),o=q.width,s=q.height,e=0;e<l;e++)n=i[e],n===u||!n.visible&&n!==wt||(d=n.margin,M=d.right+d.left,R=d.top+d.bottom,E=n.measuredBounds,M=Math.max(E.width+M,0),R=Math.max(E.height+R,0),p=n.alignment,p.Xb()&&(p=t.defaultAlignment),p.sb()||(p=Sr),n=n.alignmentFocus,n.Xb()&&(n=Sr),gt?(gt=!1,r.h(p.x*o+p.offsetX-(n.x*E.width+n.offsetX)-d.left,p.y*s+p.offsetY-(n.y*E.height+n.offsetY)-d.top,M,R)):Ur(r,p.x*o+p.offsetX-(n.x*E.width+n.offsetX)-d.left,p.y*s+p.offsetY-(n.y*E.height+n.offsetY)-d.top,M,R));gt?r.assign(at):j?r.Uu(q.x,q.y,q.width,q.height):Ur(r,at.x,at.y,at.width,at.height),ke.free(q)},N0.prototype.arrange=function(t,e,n){var i=e.length,r=t.Pb(),o=r.measuredBounds,s=o.width,l=o.height,u=t.padding;o=u.left,u=u.top;var d=o-n.x,p=u-n.y;for(r.arrange(d,p,s,l),s=ke.allocAt(0,0,s,l),Sg(r,s,!1),l=0;l<i;l++){var v=e[l];if(v!==r){d=v.measuredBounds;var E=d.width,M=d.height;p=v.alignment,p.Xb()&&(p=t.defaultAlignment),p.sb()||(p=Sr);var R=v.alignmentFocus;if(R.Xb()&&(R=Sr),d=null,v instanceof sn&&v.$e!==""&&(d=v.fb(v.$e),d===v&&(d=null)),d!==null){var j=d.actualBounds;for(R=$.allocAt(j.x+(R.x*j.width-R.offsetX),j.y+(R.y*j.height-R.offsetY)),d=d.panel;d!==v;)d.transform.Ga(R),d=d.panel;d=p.x*s.width+p.offsetX-R.x,p=p.y*s.height+p.offsetY-R.y,$.free(R)}else d=p.x*s.width+p.offsetX-(R.x*E+R.offsetX),p=p.y*s.height+p.offsetY-(R.y*M+R.offsetY);d+=s.x-n.x,p+=s.y-n.y,v.visible&&v.arrange(o+d,u+p,E,M)}}ke.free(s)};function Sg(t,e,n){var i=null;if(t instanceof sn&&t.$e!==""&&(i=t.fb(t.$e),i===t&&(i=null)),i!==null)for(n&&t.arrange(0,0,e.width,e.height),e.assign(i.actualBounds),i=i.panel;i!==t;)i.transform.pp(e),i=i.panel}function I0(){this.xa="Base"}Jn(I0,ea),I0.prototype.measure=function(t,e,n,i,r,o,s){var l=i.length,u=t.Pb(),d=u.margin,p=e,v=n,E=d.right+d.left,M=d.top+d.bottom;u.measure(e,n,o,s),d=u.measuredBounds;var R=0,j=null;u instanceof Qi&&(j=u,R=j.strokeWidth*j.scale);var at=Math.max(d.width+E,0);d=Math.max(d.height+M,0);var q=Tg(u),gt=q.x*at+q.offsetX;q=q.y*d+q.offsetY;var wt=kg(u),Ot=wt.x*at+wt.offsetX;for(wt=wt.y*d+wt.offsetY,isFinite(e)&&(p=Math.max(Math.abs(gt-Ot)-R,0)),isFinite(n)&&(v=Math.max(Math.abs(q-wt)-R,0)),R=ni.alloc(),R.h(0,0),t=lh(t),wt=0;wt<l;wt++)q=i[wt],q===u||!q.visible&&q!==t||(d=q.margin,at=d.right+d.left,gt=d.top+d.bottom,q.measure(p,v,0,0),d=q.measuredBounds,at=Math.max(d.width+at,0),d=Math.max(d.height+gt,0),R.h(Math.max(at,R.width),Math.max(d,R.height)));if(l===1)r.width=at,r.height=d,ni.free(R);else{switch(q=Tg(u),wt=kg(u),l=i=0,wt.x!==q.x&&wt.y!==q.y&&(i=R.width/Math.abs(wt.x-q.x),l=R.height/Math.abs(wt.y-q.y)),ni.free(R),R=0,j!==null&&(R=j.strokeWidth*j.scale,Lg(j)===Kn&&(i=l=Math.max(i,l))),i+=Math.abs(q.offsetX)+Math.abs(wt.offsetX)+R,l+=Math.abs(q.offsetY)+Math.abs(wt.offsetY)+R,j=u.stretch,j===Zi&&(j=Al(u,!1)),j){case Xe:s=o=0;break;case rn:isFinite(e)&&(i=e),isFinite(n)&&(l=n);break;case ei:isFinite(e)&&(i=e),s=0;break;case yi:o=0,isFinite(n)&&(l=n)}u.Uj(),u.measure(i,l,o,s),r.width=u.measuredBounds.width+E,r.height=u.measuredBounds.height+M}},I0.prototype.arrange=function(t,e){var n=e.length,i=t.Pb(),r=i.measuredBounds,o=ke.alloc();o.h(0,0,1,1);var s=i.margin,l=s.left;s=s.top;var u=t.padding,d=u.left;u=u.top,i.arrange(d+l,u+s,r.width,r.height);var p=Tg(i),v=kg(i),E=p.y*r.height+p.offsetY,M=v.x*r.width+v.offsetX;for(v=v.y*r.height+v.offsetY,o.x=p.x*r.width+p.offsetX,o.y=E,Ur(o,M,v,0,0),o.x+=l+d,o.y+=s+u,r=0;r<n;r++)l=e[r],l!==i&&(d=l.measuredBounds,s=l.margin,u=Math.max(d.width+s.right+s.left,0),p=Math.max(d.height+s.top+s.bottom,0),E=l.alignment,E.Xb()&&(E=t.defaultAlignment),E.sb()||(E=Sr),u=o.width*E.x+E.offsetX-u*E.x+s.left+o.x,s=o.height*E.y+E.offsetY-p*E.y+s.top+o.y,l.visible&&(uo(o.x,o.y,o.width,o.height,u,s,d.width,d.height)?l.arrange(u,s,d.width,d.height):l.arrange(u,s,d.width,d.height,new ke(o.x,o.y,o.width,o.height))));ke.free(o)};function A0(){this.xa="Base",this.name="Table"}Jn(A0,ea),A0.prototype.measure=function(t,e,n,i,r){for(var o=i.length,s=Le(),l=Le(),u=0;u<o;u++){var d=i[u],p=d instanceof sn?d:null;if(p!==null&&kh(p)&&d.visible){l.push(p);for(var v=p.O.s,E=v.length,M=0;M<E;M++){var R=v[M];p.type===sn.TableRow?R.row=d.row:p.type===sn.TableColumn&&(R.column=d.column),s.push(R)}}else s.push(d)}o=s.length,o===0&&(t.Fb(0),t.Eb(0));for(var j=[],at=0;at<o;at++){var q=s[at];q.visible&&(Zs(q,!0),Pc(q,!0),j[q.row]||(j[q.row]=[]),j[q.row][q.column]||(j[q.row][q.column]=[]),j[q.row][q.column].push(q))}tn(s);var gt=Le(),wt=Le(),Ot=Le(),Gt={count:0},ce={count:0},Mn=e,Un=n,zn=t.rowDefs,cn=t.colDefs,We=null;o=zn.length;for(var Hi=0;Hi<o;Hi++)We=zn[Hi],We!==void 0&&(We.actual=0);o=cn.length;for(var Ci=0;Ci<o;Ci++)We=cn[Ci],We!==void 0&&(We.actual=0);for(var Kr=j.length,Oo=0,ca=0;ca<Kr;ca++)j[ca]&&(Oo=Math.max(Oo,j[ca].length));var ma=Math.min(t.topIndex,Kr-1),il=Math.min(t.leftIndex,Oo-1),ha=0;Kr=j.length;for(var Fh=lh(t),$s=0;$s<Kr;$s++)if(j[$s]){Oo=j[$s].length;var gc=t.Fb($s);gc.actual=0;for(var rl=gc.oc=0;rl<Oo;rl++)if(j[$s][rl]){var Bh=t.Eb(rl);gt[rl]===void 0&&(Bh.actual=0,Bh.oc=0,gt[rl]=!0);for(var bu=j[$s][rl],Wu=bu.length,ql=0;ql<Wu;ql++){var _l=bu[ql];if(_l.visible||_l===Fh){var ld=1<_l.rowSpan||1<_l.columnSpan;ld&&($s<ma||rl<il||wt.push(_l));var vc=_l.margin,qp=vc.right+vc.left,tu=vc.top+vc.bottom,ol=hc(_l,gc,Bh,!1),s0=_l.desiredSize,up=!isNaN(s0.height),Ac=!isNaN(s0.width)&&up;if(ld||ol===Xe||Ac||$s<ma||rl<il||(Gt[rl]!==void 0||ol!==rn&&ol!==ei||(Gt[rl]=-1,Gt.count++),ce[$s]!==void 0||ol!==rn&&ol!==yi||(ce[$s]=-1,ce.count++),Ot.push(_l)),_l.measure(1/0,1/0,0,0),!($s<ma||rl<il)){var Hl=_l.measuredBounds,Pd=Math.max(Hl.width+qp,0),eu=Math.max(Hl.height+tu,0);if(_l.rowSpan===1&&(ol===Xe||ol===ei)){We=t.Fb($s);var ud=We.Wc();ha=Math.max(eu-We.actual,0),ha+ud>Un&&(ha=Math.max(Un-ud,0));var Qm=We.oa===0;We.oc=We.oc+ha,We.actual=We.oa+ha,Un=Math.max(Un-(ha+(Qm?ud:0)),0)}if(_l.columnSpan===1&&(ol===Xe||ol===yi)){We=t.Eb(rl);var a0=We.Wc();ha=Math.max(Pd-We.actual,0),ha+a0>Mn&&(ha=Math.max(Mn-a0,0));var Zv=We.oa===0;We.oc=We.oc+ha,We.actual=We.oa+ha,Mn=Math.max(Mn-(ha+(Zv?a0:0)),0)}ld&&_l.Uj()}}}}}tn(gt);var Vc=0,hh=0;o=t.columnCount;for(var cp=0;cp<o;cp++){var cd=cn[cp];cd!==void 0&&(Vc+=isNaN(cd.Hc)?cd.oc:cd.Hc,cd.oc!==0&&(Vc+=cd.Wc()))}o=t.rowCount;for(var tf=0;tf<o;tf++){var hd=zn[tf];hd!==void 0&&(hh+=isNaN(hd.Hc)?hd.oc:hd.Hc,hd.oc!==0&&(hh+=hd.Wc()))}Mn=Math.max(e-Vc,0);var Kc=Un=Math.max(n-hh,0),zh=Mn;o=Ot.length;for(var Gl=0;Gl<o;Gl++){var Mc=Ot[Gl],qm=t.Fb(Mc.row),dh=t.Eb(Mc.column),ef=Mc.measuredBounds,yc=Mc.margin,Fd=yc.right+yc.left,Oc=yc.top+yc.bottom;Gt[Mc.column]=dh.oc===0&&Gt[Mc.column]!==void 0?Math.max(ef.width+Fd,Gt[Mc.column]):null,ce[Mc.row]=qm.oc===0&&ce[Mc.row]!==void 0?Math.max(ef.height+Oc,ce[Mc.row]):null}var hp=0,nf=0,rc;for(rc in ce)rc!=="count"&&(hp+=ce[rc]);for(rc in Gt)rc!=="count"&&(nf+=Gt[rc]);for(var Ta=ni.alloc(),l0=0;l0<o;l0++){var Sl=Ot[l0];if(Sl.visible||Sl===Fh){var js=t.Fb(Sl.row),wl=t.Eb(Sl.column),ph=0;isFinite(wl.width)?ph=wl.width:(isFinite(Mn)&&Gt[Sl.column]!==null?nf===0?ph=wl.actual+Mn:ph=Gt[Sl.column]/nf*zh:Gt[Sl.column]!==null?ph=Mn:ph=wl.actual||Mn,ph=Math.max(0,ph-wl.Wc()));var $h=0;switch(isFinite(js.height)?$h=js.height:(isFinite(Un)&&ce[Sl.row]!==null?hp===0?$h=js.actual+Un:$h=ce[Sl.row]/hp*Kc:ce[Sl.row]!==null?$h=Un:$h=js.actual||Un,$h=Math.max(0,$h-js.Wc())),Ta.h(Math.max(wl.minimum,Math.min(ph,wl.maximum)),Math.max(js.minimum,Math.min($h,js.maximum))),ol=hc(Sl,js,wl,!1),ol){case ei:Ta.height=Math.max(Ta.height,js.actual+Un);break;case yi:Ta.width=Math.max(Ta.width,wl.actual+Mn)}var Bd=Sl.margin,Yv=Bd.right+Bd.left,tg=Bd.top+Bd.bottom;Sl.Uj(),Sl.measure(Ta.width,Ta.height,wl.minimum,js.minimum);var rf=Sl.measuredBounds,zd=Math.max(rf.width+Yv,0),dp=Math.max(rf.height+tg,0);isFinite(Mn)&&(zd=Math.min(zd,Ta.width)),isFinite(Un)&&(dp=Math.min(dp,Ta.height));var Wl=0;Wl=js.actual,js.actual=Math.max(js.actual,dp),js.oc=Math.max(js.oc,dp),ha=js.actual-Wl,Un=Math.max(Un-ha,0),ce[Sl.row]===null&&(Kc=Math.max(Kc-ha,0)),Wl=wl.actual,wl.actual=Math.max(wl.actual,zd),wl.oc=Math.max(wl.oc,zd),ha=wl.actual-Wl,Mn=Math.max(Mn-ha,0),Gt[Sl.column]===null&&(zh=Math.max(zh-ha,0))}}tn(Ot);var fh=ni.alloc(),xc=Le(),Pu=Le();if(o=wt.length,o!==0){for(var dd=0;dd<Kr;dd++)if(j[dd]){Oo=j[dd].length;var of=t.Fb(dd);xc[dd]=of.actual;for(var pd=0;pd<Oo;pd++)if(j[dd][pd]){var eg=t.Eb(pd);Pu[pd]=eg.actual}}}for(var sf=0;sf<o;sf++){var Ns=wt[sf];if(Ns.visible||Ns===Fh){var oc=t.Fb(Ns.row),Vu=t.Eb(Ns.column);switch(Ta.h(Math.max(Vu.minimum,Math.min(e,Vu.maximum)),Math.max(oc.minimum,Math.min(n,oc.maximum))),ol=hc(Ns,oc,Vu,!1),ol){case rn:Pu[Vu.index]!==0&&(Ta.width=Math.min(Ta.width,Pu[Vu.index])),xc[oc.index]!==0&&(Ta.height=Math.min(Ta.height,xc[oc.index]));break;case ei:Pu[Vu.index]!==0&&(Ta.width=Math.min(Ta.width,Pu[Vu.index]));break;case yi:xc[oc.index]!==0&&(Ta.height=Math.min(Ta.height,xc[oc.index]))}isFinite(Vu.width)&&(Ta.width=Vu.width),isFinite(oc.height)&&(Ta.height=oc.height),fh.h(0,0);for(var ng=Vu.minimum,nu=oc.minimum,jh=1;jh<Ns.rowSpan&&!(Ns.row+jh>=t.rowCount);jh++)We=t.Fb(Ns.row+jh),ha=0,ha=ol===rn||ol===yi?Math.max(We.minimum,xc[Ns.row+jh]===0?We.maximum:Math.min(xc[Ns.row+jh],We.maximum)):Math.max(We.minimum,isNaN(We.Hc)?We.maximum:Math.min(We.Hc,We.maximum)),fh.height+=ha,nu+=We.minimum;for(var Ku=1;Ku<Ns.columnSpan&&!(Ns.column+Ku>=t.columnCount);Ku++)We=t.Eb(Ns.column+Ku),ha=0,ha=ol===rn||ol===ei?Math.max(We.minimum,Pu[Ns.column+Ku]===0?We.maximum:Math.min(Pu[Ns.column+Ku],We.maximum)):Math.max(We.minimum,isNaN(We.Hc)?We.maximum:Math.min(We.Hc,We.maximum)),fh.width+=ha,ng+=We.minimum;Ta.width+=fh.width,Ta.height+=fh.height;var af=Ns.margin,fd=af.right+af.left,u0=af.top+af.bottom;Ns.measure(Ta.width,Ta.height,ng,nu);for(var lf=Ns.measuredBounds,Lc=Math.max(lf.width+fd,0),$d=Math.max(lf.height+u0,0),md=0,uf=0;uf<Ns.rowSpan&&!(Ns.row+uf>=t.rowCount);uf++)We=t.Fb(Ns.row+uf),md+=We.total||0;if(md<$d){var Uh=$d-md,Zc=$d-md;if(Ns.spanAllocation!==null)for(var _h=Ns.spanAllocation,mh=0;mh<Ns.rowSpan&&!(0>=Uh)&&!(Ns.row+mh>=t.rowCount);mh++){We=t.Fb(Ns.row+mh);var Hh=We.oa||0,jd=_h(Ns,We,Zc);We.actual=Math.min(We.maximum,Hh+jd),We.oa!==Hh&&(Uh-=We.oa-Hh)}for(;0<Uh;){var bc=We.oa||0;if(isNaN(We.height)&&We.maximum>bc&&(We.actual=Math.min(We.maximum,bc+Uh),We.oa!==bc&&(Uh-=We.oa-bc)),We.index===0)break;We=t.Fb(We.index-1)}}for(var pp=0,Gh=0;Gh<Ns.columnSpan&&!(Ns.column+Gh>=t.columnCount);Gh++)We=t.Eb(Ns.column+Gh),pp+=We.total||0;if(pp<Lc){var fp=Lc-pp,Xv=Lc-pp;if(Ns.spanAllocation!==null)for(var gh=Ns.spanAllocation,Ud=0;Ud<Ns.columnSpan&&!(0>=fp)&&!(Ns.column+Ud>=t.columnCount);Ud++){We=t.Eb(Ns.column+Ud);var c0=We.oa||0,Jv=gh(Ns,We,Xv);We.actual=Math.min(We.maximum,c0+Jv),We.oa!==c0&&(fp-=We.oa-c0)}for(;0<fp;){var ig=We.oa||0;if(isNaN(We.width)&&We.maximum>ig&&(We.actual=Math.min(We.maximum,ig+fp),We.oa!==ig&&(fp-=We.oa-ig)),We.index===0)break;We=t.Eb(We.index-1)}}}}tn(wt),ni.free(fh),ni.free(Ta),xc!==void 0&&tn(xc),Pu!==void 0&&tn(Pu);var mp=0,gp=0,rg=t.desiredSize,wx=t.maxSize;ol=Al(t,!0);var h0=hh=Vc=0,d0=0;o=t.columnCount;for(var og=0;og<o;og++)cn[og]!==void 0&&(We=t.Eb(og),isFinite(We.width)?(h0+=We.width,h0+=We.Wc()):$0(We)===Cf?(h0+=We.oa,h0+=We.Wc()):We.oa!==0&&(Vc+=We.oa,Vc+=We.Wc()));isFinite(rg.width)?mp=Math.min(rg.width,wx.width):mp=ol!==Xe&&isFinite(e)?e:Vc,mp=Math.max(mp,t.minSize.width),mp=Math.max(mp-h0,0);for(var cb=Vc===0?1:Math.max(mp/Vc,1),sg=0;sg<o;sg++)cn[sg]!==void 0&&(We=t.Eb(sg),isFinite(We.width)||$0(We)===Cf||(We.actual=We.oa*cb),We.position=r.width,We.oa!==0&&(r.width+=We.oa,r.width+=We.Wc()));o=t.rowCount;for(var ag=0;ag<o;ag++)zn[ag]!==void 0&&(We=t.Fb(ag),isFinite(We.height)?(d0+=We.height,d0+=We.Wc()):$0(We)===Cf?(d0+=We.oa,d0+=We.Wc()):We.oa!==0&&(hh+=We.oa,hh+=We.Wc()));isFinite(rg.height)?gp=Math.min(rg.height,wx.height):gp=ol!==Xe&&isFinite(n)?n:hh,gp=Math.max(gp,t.minSize.height),gp=Math.max(gp-d0,0);for(var hb=hh===0?1:Math.max(gp/hh,1),lg=0;lg<o;lg++)zn[lg]!==void 0&&(We=t.Fb(lg),isFinite(We.height)||$0(We)===Cf||(We.actual=We.oa*hb),We.position=r.height,We.oa!==0&&(r.height+=We.oa,r.height+=We.Wc()));o=l.length;for(var Qv=0;Qv<o;Qv++){var p0=l[Qv],qv=0,ty=0;p0.type===sn.TableRow?(qv=r.width,We=t.Fb(p0.row),ty=We.actual):(We=t.Eb(p0.column),qv=We.actual,ty=r.height),p0.measuredBounds.h(0,0,qv,ty),Zs(p0,!1)}tn(l),t.inRowsCols=j},A0.prototype.arrange=function(t,e,n){var i=e.length,r=t.padding,o=r.left;r=r.top;var s=t.inRowsCols;if(s!==null){for(var l,u,d=s.length,p=0,v=0;v<d;v++)s[v]&&(p=Math.max(p,s[v].length));u=t.rowDefs,l=t.colDefs;var E=v=0,M=Math.min(t.topIndex,d-1);if(0<u.length){for(;M!==d&&(u[M]===void 0||u[M].oa===0);)M++;M=Math.max(Math.min(M,d-1),0),v=-u[M].position}var R=Math.min(t.leftIndex,p-1);if(0<l.length){for(;R!==p&&(l[R]===void 0||l[R].oa===0);)R++;R=Math.max(Math.min(R,p-1),0),E=-l[R].position}for(var j=0,at=0;j!==d&&u[j]===void 0;)j++;for(;at!==d&&l[at]===void 0;)at++;p=t.part,t.Fb(j),t.Eb(at);for(var q=0;q<e.length;q++){var gt=e[q];if(gt instanceof sn&>.visible&&kh(gt)){if(gt.type===sn.TableRow){l=t.Fb(gt.row);var wt=t.Eb(at)}else l=t.Fb(j),wt=t.Eb(gt.column);u=l.position+v+r,l.oa!==0&&(u+=l.Io(Math.max(j,M))),l=wt.position+E+o,wt.oa!==0&&(l+=wt.Io(Math.max(at,R))),wt=gt.measuredBounds,gt.Uk(),gt.actualBounds.ka();var Ot=gt.actualBounds,Gt=ke.allocAt(Ot.x,Ot.y,Ot.width,Ot.height);Ot.x=gt.type===sn.TableRow?o:l,Ot.y=gt.type===sn.TableColumn?r:u,Ot.width=wt.width,Ot.height=wt.height,gt.actualBounds.freeze(),Pc(gt,!1),lo(Gt,Ot)||p===null||(p.oh(),gt.Pn(p)),ke.free(Gt)}}for(q=ni.alloc(),gt=0;gt<d;gt++)if(s[gt]){for(p=s[gt].length,wt=t.Fb(gt),u=wt.position+v+r,wt.oa!==0&&(u+=wt.Io(Math.max(j,M))),Ot=0;Ot<p;Ot++)if(s[gt][Ot]){Gt=t.Eb(Ot),l=Gt.position+E+o,Gt.oa!==0&&(l+=Gt.Io(Math.max(at,R)));for(var ce=s[gt][Ot],Mn=ce.length,Un=0;Un<Mn;Un++){var zn=ce[Un],cn=zn.measuredBounds;q.h(0,0);for(var We=1;We<zn.rowSpan&&!(gt+We>=t.rowCount);We++){var Hi=t.Fb(gt+We);Hi.oa!==0&&(q.height+=Hi.total)}for(We=1;We<zn.columnSpan&&!(Ot+We>=t.columnCount);We++)Hi=t.Eb(Ot+We),Hi.oa!==0&&(q.width+=Hi.total);var Ci=Gt.oa+q.width,Kr=wt.oa+q.height;We=l,Hi=u;var Oo=Ci,ca=Kr,ma=l,il=u,ha=Ci,Fh=Kr;l+Ci>n.width&&(ha=Math.max(n.width-l,0)),u+Kr>n.height&&(Fh=Math.max(n.height-u,0));var $s=zn.alignment;if($s.Xb()){$s=t.defaultAlignment,$s.sb()||($s=Sr);var gc=$s.x,rl=$s.y,Bh=$s.offsetX;$s=$s.offsetY;var bu=Gt.alignment,Wu=wt.alignment;bu.sb()&&(gc=bu.x,Bh=bu.offsetX),Wu.sb()&&(rl=Wu.y,$s=Wu.offsetY)}else gc=$s.x,rl=$s.y,Bh=$s.offsetX,$s=$s.offsetY;(isNaN(gc)||isNaN(rl))&&(rl=gc=.5,$s=Bh=0),bu=cn.width,Wu=cn.height;var ql=zn.margin,_l=ql.left+ql.right,ld=ql.top+ql.bottom,vc=hc(zn,wt,Gt,!1);!isNaN(zn.desiredSize.width)||vc!==rn&&vc!==ei||(bu=Math.max(Ci-_l,0)),!isNaN(zn.desiredSize.height)||vc!==rn&&vc!==yi||(Wu=Math.max(Kr-ld,0)),Ci=zn.maxSize,Kr=zn.minSize,bu=Math.min(Ci.width,bu),Wu=Math.min(Ci.height,Wu),bu=Math.max(Kr.width,bu),Wu=Math.max(Kr.height,Wu),Ci=Wu+ld,We+=Oo*gc-(bu+_l)*gc+Bh+ql.left,Hi+=ca*rl-Ci*rl+$s+ql.top,zn.visible&&(uo(ma,il,ha,Fh,We,Hi,cn.width,cn.height)?zn.arrange(We,Hi,bu,Wu):zn.arrange(We,Hi,bu,Wu,new ke(ma,il,ha,Fh)))}}}for(ni.free(q),t=0;t<i;t++)n=e[t],o=n instanceof sn?n:null,o!==null&&kh(o)&&(o=n.actualBounds,n.naturalBounds.ka(),n.naturalBounds.h(0,0,o.width,o.height),n.naturalBounds.freeze())}};function M0(){this.xa="Base"}Jn(M0,ea),M0.prototype.measure=function(){},M0.prototype.arrange=function(){};function O0(){this.xa="Base"}Jn(O0,ea),O0.prototype.measure=function(){},O0.prototype.arrange=function(){};function L0(){this.xa="Base"}Jn(L0,ea),L0.prototype.measure=function(t,e,n,i,r,o,s){1<i.length&&ne("Viewbox Panel cannot contain more than one GraphObject."),i=i[0],i.Ca=1,i.Uj(),i.measure(1/0,1/0,o,s);var l=i.measuredBounds,u=i.margin,d=u.right+u.left;if(u=u.top+u.bottom,isFinite(e)||isFinite(n)){var p=i.scale,v=l.width;l=l.height;var E=Math.max(e-d,0),M=Math.max(n-u,0),R=1;t.viewboxStretch===Kn?v!==0&&l!==0&&(R=Math.min(E/v,M/l)):v!==0&&l!==0&&(R=Math.max(E/v,M/l)),R===0&&(R=1e-4),i.Ca*=R,p!==i.scale&&(Zs(i,!0),i.measure(1/0,1/0,o,s))}l=i.measuredBounds,r.width=isFinite(e)?e:Math.max(l.width+d,0),r.height=isFinite(n)?n:Math.max(l.height+u,0)},L0.prototype.arrange=function(t,e,n){e=e[0];var i=e.measuredBounds,r=e.margin,o=Math.max(i.width+(r.right+r.left),0);r=Math.max(i.height+(r.top+r.bottom),0);var s=e.alignment;s.Xb()&&(s=t.defaultAlignment),s.sb()||(s=Sr),e.arrange(n.width*s.x-o*s.x+s.offsetX,n.height*s.y-r*s.y+s.offsetY,i.width,i.height)};function bf(){this.xa="Base"}Jn(bf,ea),bf.prototype.measure=function(){},bf.prototype.arrange=function(){},bf.prototype.gc=function(t,e,n){n=t.Df()*n.scale,0>=n&&(n=1);var i=t.gridCellSize,r=i.width;i=i.height;var o=t.naturalBounds,s=t.actualBounds,l=o.width,u=o.height,d=Math.ceil(l/r),p=Math.ceil(u/i),v=t.gridOrigin,E=v.x;v=v.y,e.save(),e.beginPath(),e.rect(0,0,l,u),e.clip(),e.Se();for(var M=[],R=t.O.s,j=R.length,at=0;at<j;at++){var q=R[at],gt=[];if(M.push(gt),q.visible){var wt=q.interval;if(!(0>wt)){q=Cg(q.figure);for(var Ot=0;Ot<j;Ot++)if(Ot!==at){var Gt=R[Ot];Gt.visible&&Cg(Gt.figure)===q&&(Gt=Gt.interval,Gt>wt&>.push(Gt))}}}}for(R=t.O.s,j=R.length,at=0;at<j;at++){var ce=R[at];if(ce.visible&&(gt=ce.interval||1,q=Math.abs(gt),!(2>r*q*n))){if(wt=ce.segmentIndex,(!isFinite(wt)||isNaN(wt))&&(wt=0),0>wt&&(wt=q-Math.min(-wt,q)),wt=Math.round(wt%q),q=ce.opacity,Ot=1,q!==1){if(q===0)continue;Ot=e.globalAlpha,e.globalAlpha=Ot*q}Gt=M[at];var Mn=!1,Un=ce.strokeDashArray;if(Un!==null&&(Mn=!0,e.js(Un,ce.strokeDashOffset)),ce.figure==="LineV"&&ce.stroke!==null&&0<ce.strokeWidth){for(e.lineWidth=ce.strokeWidth,Ss(t,e,ce.stroke,!1,!1,o,s),e.beginPath(),Un=ce=Math.floor((E-r)/r);Un<=ce+d;Un++){var zn=Un*r+E;0<=zn&&zn<=l&&R0(Un,gt,wt,Gt)&&(e.moveTo(zn,0),e.lineTo(zn,u))}e.stroke(),e.Se()}else if(ce.figure==="LineH"&&ce.stroke!==null&&0<ce.strokeWidth){for(e.lineWidth=ce.strokeWidth,Ss(t,e,ce.stroke,!1,!1,o,s),e.beginPath(),Un=ce=Math.floor((v-i)/i);Un<=ce+p;Un++)zn=Un*i+v,0<=zn&&zn<=u&&R0(Un,gt,wt,Gt)&&(e.moveTo(0,zn),e.lineTo(l,zn));e.stroke(),e.Se()}else if(ce.figure==="BarV"&&ce.fill!==null)for(Ss(t,e,ce.fill,!0,!1,o,s),ce=ce.width,isNaN(ce)&&(ce=r),zn=Un=Math.floor((E-r)/r);zn<=Un+d;zn++){var cn=zn*r+E;0<=cn+ce&&cn<=l&&R0(zn,gt,wt,Gt)&&e.fillRect(cn,0,ce,u)}else if(ce.figure==="BarH"&&ce.fill!==null)for(Ss(t,e,ce.fill,!0,!1,o,s),ce=ce.height,isNaN(ce)&&(ce=i),zn=Un=Math.floor((v-i)/i);zn<=Un+p;zn++)cn=zn*i+v,0<=cn+ce&&cn<=u&&R0(zn,gt,wt,Gt)&&e.fillRect(0,cn,l,ce);Mn&&e.fs(),q!==1&&(e.globalAlpha=Ot)}}e.restore(),e.Vc(!1)};function R0(t,e,n,i){if(0>e)return t%e===n;if(t%e!==n)return!1;e=i.length;for(var r=0;r<e;r++)if(t%i[r]===n)return!1;return!0}function D0(){this.xa="Base"}Jn(D0,ea),D0.prototype.measure=function(t,e,n,i,r){var o=i.length;if(t instanceof jr||t instanceof pn){var s=null,l=null;if(t instanceof pn&&(s=t),t instanceof jr&&(l=t,s=l.adornedPart,t.j===null&&(t.j=[])),s instanceof pn){var u=s;if(o===0)ys(t.naturalBounds,0,0),t.measuredBounds.h(0,0,0,0);else{var d=t instanceof jr?null:s.path;e=s.routeBounds,n=t.jg,n.h(0,0,e.width,e.height);var p=u.points,v=s.pointsCount;l!==null?l.Ul(!1):s!==null&&s.Ul(!1),l=e.width;var E=e.height,M=t.j;if(M.length=0,d!==null){hy(t,l,E,d);var R=d.measuredBounds;n.ed(R),M.push(R)}R=Ti.alloc();for(var j=$.alloc(),at=$.alloc(),q=0;q<o;q++){var gt=i[q];if(gt!==d)if(gt.isPanelMain&> instanceof Qi){hy(t,l,E,gt);var wt=gt.measuredBounds;n.ed(wt),M.push(wt)}else if(2>v)gt.measure(1/0,1/0,0,0),wt=gt.measuredBounds,n.ed(wt),M.push(wt);else{var Ot=gt.segmentIndex,Gt=gt.segmentFraction,ce=gt.alignmentFocus;ce.Mc()&&(ce=Sr);var Mn=gt.segmentOrientation,Un=gt.segmentOffset;if(isNaN(Ot)){var zn=u.ua;wt=Le(),zn.Qu(Gt,wt);var cn=$.allocAt(wt[0],wt[1]);if(cn.add(u.i(0)),zn.type===mn.j?cn.offset(-zn.startX,-zn.startY):(zn=zn.figures.first(),zn!==null&&cn.offset(-zn.startX,-zn.startY)),zn=wt[2],Mn!==gl){var We=u.computeAngle(gt,Mn,zn);gt.Kb=We}We=cn.x-e.x;var Hi=cn.y-e.y;$.free(cn),tn(wt)}else if(Ot<-v||Ot>=v)wt=$.alloc(),u.vg(),u.computeMidPoint(wt),zn=u.midAngle,Mn!==gl&&(We=u.computeAngle(gt,Mn,zn),gt.Kb=We),We=wt.x-e.x,Hi=wt.y-e.y,$.free(wt);else{if(We=0,0<=Ot?(Hi=p.M(Ot),wt=Ot<v-1?p.M(Ot+1):Hi):(We=v+Ot,Hi=p.M(We),wt=0<We?p.M(We-1):Hi),Hi.Xa(wt)){0<=Ot?(zn=0<Ot?p.M(Ot-1):Hi,We=Ot<v-2?p.M(Ot+2):wt):(zn=We<v-1?p.M(We+1):Hi,We=1<We?p.M(We-2):wt),cn=zn.Bf(Hi);var Ci=wt.Bf(We);zn=cn>Ci+10?0<=Ot?zn.ab(Hi):Hi.ab(zn):Ci>cn+10?0<=Ot?wt.ab(We):We.ab(wt):0<=Ot?zn.ab(We):We.ab(zn)}else zn=0<=Ot?Hi.ab(wt):wt.ab(Hi);Mn!==gl&&(We=u.computeAngle(gt,Mn,zn),gt.Kb=We),We=Hi.x+(wt.x-Hi.x)*Gt-e.x,Hi=Hi.y+(wt.y-Hi.y)*Gt-e.y}gt.measure(1/0,1/0,0,0),wt=gt.measuredBounds,cn=gt.naturalBounds;var Kr=0;gt instanceof Qi&&(Kr=gt.strokeWidth),Ci=cn.width+Kr;var Oo=cn.height+Kr;R.reset(),R.translate(-wt.x,-wt.y),R.scale(gt.scale,gt.scale),R.rotate(Mn===gl?gt.angle:zn,Ci/2,Oo/2),Mn!==Rf&&Mn!==Pf||R.rotate(90,Ci/2,Oo/2),Mn!==Df&&Mn!==Ff||R.rotate(-90,Ci/2,Oo/2),Mn===cm&&(45<zn&&135>zn||225<zn&&315>zn)&&R.rotate(-zn,Ci/2,Oo/2),cn=new ke(0,0,Ci,Oo),j.xi(cn,ce),R.Ga(j),ce=-j.x+Kr/2*gt.scale,gt=-j.y+Kr/2*gt.scale,at.assign(Un),Kr=isNaN(Un.x);var ca=isNaN(Un.y);if(Kr||ca){Ci=Ci/2+3,Oo=Oo/2+3;var ma=45<=zn&&135>=zn,il=225<=zn&&315>=zn;Mn===gl&&(ma||il)?(at.x=ca?Ci:Un.y,at.y=Kr?Oo:Un.x,ma?0<=Ot||isNaN(Ot)&&.5>Gt||!Kr||(at.y=-Oo):il&&((0<=Ot||isNaN(Ot)&&.5>Gt)&&Kr&&(at.y=-Oo),ca&&(at.x=-Ci))):(Kr&&(at.x=0<=Ot||isNaN(Ot)&&.5>Gt?Ci:-Ci),ca&&(at.y=-Oo),at.rotate(zn))}else at.rotate(zn);We+=at.x,Hi+=at.y,cn.set(wt),cn.h(We+ce,Hi+gt,wt.width,wt.height),M.push(cn),n.ed(cn)}}if(s!==null)for(i=s.labelNodes;i.next();)i.value.measure(1/0,1/0);t.jg=n,t.position.h(e.x+n.x,e.y+n.y),ys(r,n.width||0,n.height||0),Ti.free(R),$.free(j),$.free(at)}}}},D0.prototype.arrange=function(t,e){var n=e.length;if(t instanceof jr||t instanceof pn){var i=t,r=null;t instanceof jr&&(r=t,i=r.adornedPart);var o=t instanceof jr?null:i.path,s=t.j;if(s.length!==0){var l=0;if(o!==null&&l<s.length){var u=s[l];l++,o.arrange(u.x-t.jg.x,u.y-t.jg.y,u.width,u.height)}for(u=0;u<n;u++){var d=e[u];if(d!==o&&l<s.length){var p=s[l];l++,d.arrange(p.x-t.jg.x,p.y-t.jg.y,p.width,p.height)}}}if(e=i.points,n=e.count,2<=n&&t instanceof pn)for(o=t.labelNodes;o.next();){var v=t;s=o.value,l=s.segmentIndex,u=s.segmentFraction;var E=s.alignmentFocus;if(d=s.segmentOrientation,p=s.segmentOffset,isNaN(l)){var M=v.ua,R=Le();M.Qu(u,R);var j=$.allocAt(R[0],R[1]);j.add(v.i(0)),M.type===mn.j||(M=M.figures.first()),j.offset(-M.startX,-M.startY),M=R[2],d!==gl&&(v=v.computeAngle(s,d,M),s.angle=v),v=j.x;var at=j.y;$.free(j),tn(R)}else if(l<-n||l>=n)R=$.alloc(),M=v,at=R,M.vg(),M.computeMidPoint(at),M=v.midAngle,d!==gl&&(v=v.computeAngle(s,d,M),s.angle=v),v=R.x,at=R.y,$.free(R);else{if(j=0,0<=l?(R=e.s[l],at=l<n-1?e.s[l+1]:R):(j=n+l,R=e.s[j],at=0<j?e.s[j-1]:R),R.Xa(at)){0<=l?(M=0<l?e.s[l-1]:R,j=l<n-2?e.s[l+2]:at):(M=j<n-1?e.s[j+1]:R,j=1<j?e.s[j-2]:at);var q=M.Bf(R),gt=at.Bf(j);M=q>gt+10?0<=l?M.ab(R):R.ab(M):gt>q+10?0<=l?at.ab(j):j.ab(at):0<=l?M.ab(j):j.ab(M)}else M=0<=l?R.ab(at):at.ab(R);d!==gl&&(v=v.computeAngle(s,d,M),s.angle=v),v=R.x+(at.x-R.x)*u,at=R.y+(at.y-R.y)*u}if(E.ys())s.location=new $(v,at);else{E.Mc()&&(E=Sr),R=Ti.alloc(),R.reset(),R.scale(s.scale,s.scale),R.rotate(s.angle,0,0);var wt=s.naturalBounds;j=ke.allocAt(0,0,wt.width,wt.height),q=$.alloc(),q.xi(j,E),R.Ga(q),E=-q.x,gt=-q.y;var Ot=wt.width,Gt=wt.height;wt=$.alloc(),wt.assign(p);var ce=isNaN(p.x),Mn=isNaN(p.y);if(ce||Mn){Ot=Ot/2+3,Gt=Gt/2+3;var Un=45<=M&&135>=M,zn=225<=M&&315>=M;d===gl&&(Un||zn)?(wt.x=Mn?Ot:p.y,wt.y=ce?Gt:p.x,Un?0<=l||isNaN(l)&&.5>u||!ce||(wt.y=-Gt):zn&&((0<=l||isNaN(l)&&.5>u)&&ce&&(wt.y=-Gt),Mn&&(wt.x=-Ot))):(ce&&(wt.x=0<=l||isNaN(l)&&.5>u?Ot:-Ot),Mn&&(wt.y=-Gt),wt.rotate(M))}else wt.rotate(M);v+=wt.x,at+=wt.y,R.pp(j),E+=j.x,gt+=j.y,l=$.allocAt(v+E,at+gt),s.move(l),$.free(l),$.free(wt),$.free(q),ke.free(j),Ti.free(R)}}r!==null?r.Ul(!1):i.Ul(!1),i=jy(t),t.location.h(t.position.x+i.x,t.position.y+i.y),$.free(i)}};function hy(t,e,n,i){if(gu(i)!==!1){var r=i.strokeWidth;r===0&&t instanceof jr&&t.type===sn.Link&&t.adornedObject instanceof Qi&&(r=t.adornedObject.strokeWidth),r*=i.Ca,t instanceof pn&&t.ua!==null?(t=t.geometry.bounds,i.Ge(t.x-r/2,t.y-r/2,t.width+r,t.height+r)):t instanceof jr&&t.adornedPart.ua!==null?(t=t.adornedPart.ua.bounds,i.Ge(t.x-r/2,t.y-r/2,t.width+r,t.height+r)):i.Ge(-(r/2),-(r/2),e+r,n+r),r=i.desiredSize,r.w()||i.ua===null?i.dc.h(0,0,r.width,r.height):i.dc.assign(i.ua.bounds),Zs(i,!1)}}function Sf(){this.xa="Base"}Jn(Sf,ea),Sf.prototype.measure=function(t,e,n,i,r,o,s){var l=t.Pb();t.graduatedBounds=[];var u=l.margin,d=u.right+u.left,p=u.top+u.bottom;l.measure(e,n,o,s);var v=l.measuredBounds,E=new ke(-u.left,-u.top,Math.max(v.width+d,0),Math.max(v.height+p,0));t.graduatedBounds.push(E),r.assign(E);for(var M=l.geometry,R=l.strokeWidth,j=M.flattenedSegments,at=M.flattenedLengths,q=M.flattenedTotalLength,gt=j.length,wt=0,Ot=0,Gt=Le(),ce=0;ce<gt;ce++){var Mn=j[ce],Un=[];Ot=wt=0;for(var zn=Mn.length,cn=0;cn<zn;cn+=2){var We=Mn[cn],Hi=Mn[cn+1];if(cn!==0){var Ci=180*Math.atan2(Hi-Ot,We-wt)/Math.PI;0>Ci&&(Ci+=360),Un.push(Ci)}wt=We,Ot=Hi}Gt.push(Un)}if(t.graduatedIntervals===null){for(var Kr=[],Oo=t.O.s,ca=Oo.length,ma=0;ma<ca;ma++){var il=Oo[ma],ha=[];if(Kr.push(ha),il.visible){var Fh=il.interval;if(!(0>Fh)){for(var $s=0;$s<ca;$s++)if($s!==ma){var gc=Oo[$s];if(gc.visible&&il.constructor===gc.constructor){var rl=gc.interval;rl>Fh&&ha.push(rl)}}}}}t.graduatedIntervals=Kr}var Bh=t.graduatedIntervals,bu=t.O.s,Wu=bu.length,ql=0,_l=0,ld=q;t.graduatedMarks=[];for(var vc,qp=0;qp<Wu;qp++){var tu=bu[qp];if(vc=[],tu.visible&&tu!==l){var ol=Math.abs(tu.interval),s0=t.graduatedTickUnit;if(!(2>s0*ol*q/t.graduatedRange&&tu.graduatedSkip===null)){var up=at[0][0],Ac=0,Hl=0;_l=q*tu.graduatedStart-1e-4,ld=q*tu.graduatedEnd+1e-4;var Pd=s0*ol,eu=t.graduatedTickBase;if(eu<t.graduatedMin){var ud=(t.graduatedMin-eu)/Pd;ud=ud%1===0?ud:Math.floor(ud+1),eu+=ud*Pd}else eu>t.graduatedMin+Pd&&(eu-=Math.floor((eu-t.graduatedMin)/Pd)*Pd);for(var Qm=Bh[qp],a0=eu,Zv=1e-6*t.graduatedMax,Vc=1;eu<=t.graduatedMax+Zv;Vc++){t:{for(var hh=Qm.length,cp=0;cp<hh;cp++){var cd=(eu-t.graduatedTickBase)%(Qm[cp]*t.graduatedTickUnit),tf=1e-6*t.graduatedTickUnit;if(cd<tf&&cd>-tf){var hd=!1;break t}}hd=!0}if(hd&&(eu>t.graduatedMax&&(eu=t.graduatedMax),tu.graduatedSkip===null||tu instanceof Do&&!tu.graduatedSkip(eu,tu)||tu instanceof Qi&&!tu.graduatedSkip(eu,tu))&&(ql=(eu-t.graduatedMin)*q/t.graduatedRange,ql>q&&(ql=q),_l<=ql&&ql<=ld)){for(var Kc=Gt[Ac][Hl],zh=at[Ac][Hl];Ac<at.length;){for(;ql>up&&Hl<at[Ac].length-1;)Hl++,Kc=Gt[Ac][Hl],zh=at[Ac][Hl],up+=zh;if(ql<=up)break;Ac++,Hl=0,Kc=Gt[Ac][Hl],zh=at[Ac][Hl],up+=zh}var Gl=j[Ac],Mc=Gl[2*Hl],qm=Gl[2*Hl+1],dh=(ql-(up-zh))/zh,ef=new $(Mc+(Gl[2*Hl+2]-Mc)*dh+R/2-M.bounds.x,qm+(Gl[2*Hl+3]-qm)*dh+R/2-M.bounds.y);ef.scale(l.scale,l.scale);t:{var yc=Kc,Fd=Gt[Ac];if(!(.5005>dh&&.4995<dh)){var Oc=yc;if(.5>dh?0<Hl?Oc=Fd[Hl-1]:Vt.$(Gl[0],Gl[Gl.length-2])&&Vt.$(Gl[1],Gl[Gl.length-1])&&(Oc=Fd[Fd.length-1]):.5<dh&&(Hl+1<Fd.length?Oc=Fd[Hl+1]:Vt.$(Gl[0],Gl[Gl.length-2])&&Vt.$(Gl[1],Gl[Gl.length-1])&&(Oc=Fd[0])),yc!==Oc){var hp=Math.abs(yc-Oc);if(180<hp&&(yc<Oc?yc+=360:Oc+=360,hp=Math.abs(yc-Oc)),5e-4>dh||.9995<dh){Kc=(yc+Oc)/2%360;break t}if(10>hp){var nf=1-Math.abs(.5-dh);Kc=(yc*nf+Oc*(1-nf))%360;break t}}}Kc=yc}if(tu instanceof Do){var rc="";tu.graduatedFunction!==null?(rc=tu.graduatedFunction(eu,tu),rc=rc!=null?rc.toString():""):rc=(+eu.toFixed(2)).toString(),rc!==""&&vc.push({$l:ef,angle:Kc,text:rc})}else vc.push({$l:ef,angle:Kc})}eu=a0+Vc*Pd}}}t.graduatedMarks.push(vc)}tn(Gt);var Ta=t.graduatedMarks;if(Ta!==null)for(var l0=i.length,Sl=0;Sl<l0;Sl++){var js=i[Sl],wl=Ta[Sl];if(js.visible&&js!==l&&wl.length!==0){if(js instanceof Qi){var ph=t,$h=r,Bd=js.alignmentFocus;Bd.Mc()&&(Bd=qa);var Yv=js.angle;js.Kb=0,js.measure(1/0,1/0,0,0),js.Kb=Yv;var tg=js.measuredBounds,rf=tg.width,zd=tg.height,dp=ke.allocAt(0,0,rf,zd),Wl=$.alloc();Wl.xi(dp,Bd),ke.free(dp);for(var fh=-Wl.x,xc=-Wl.y,Pu=new ke,dd=wl.length,of=0;of<dd;of++)for(var pd=wl[of],eg=pd.$l.x,sf=pd.$l.y,Ns=pd.angle,oc=0;4>oc;oc++){switch(oc){case 0:Wl.h(fh,xc);break;case 1:Wl.h(fh+rf,xc);break;case 2:Wl.h(fh,xc+zd);break;case 3:Wl.h(fh+rf,xc+zd)}Wl.rotate(Ns+js.angle),Wl.offset(eg,sf),of===0&&oc===0?Pu.h(Wl.x,Wl.y,0,0):Pu.Ye(Wl),Wl.offset(-eg,-sf),Wl.rotate(-Ns-js.angle)}$.free(Wl),ph.graduatedBounds!==null&&ph.graduatedBounds.push(Pu),Ur($h,Pu.x,Pu.y,Pu.width,Pu.height)}else if(js instanceof Do){var Vu=t,ng=r;Vu.temporaryTextBlock===null&&(Vu.temporaryTextBlock=new Do);var nu=Vu.temporaryTextBlock;ky(nu,js);var jh=js.alignmentFocus;jh.Mc()&&(jh=qa);for(var Ku=js.segmentOrientation,af=js.segmentOffset,fd=new ke,u0=0,lf=0,Lc=0,$d=0,md=0,uf=wl.length,Uh=0;Uh<uf;Uh++){var Zc=wl[Uh];u0=Zc.$l.x,lf=Zc.$l.y,Lc=Zc.angle,md=$d=js.angle,Ku!==gl&&(md=Ku===Lf||Ku===um?Lc+js.angle:Lc,$d=pn.computeAngle(Ku,md)),nu.Kb=$d,nu.text=Zc.text||"",nu.measure(1/0,1/0,0,0);var _h=nu.measuredBounds,mh=nu.naturalBounds,Hh=mh.width,jd=mh.height,bc=Ti.alloc();bc.reset(),bc.translate(-_h.x,-_h.y),bc.scale(nu.scale,nu.scale),bc.rotate(md,Hh/2,jd/2),Ku!==Rf&&Ku!==Pf||bc.rotate(90,Hh/2,jd/2),Ku!==Df&&Ku!==Ff||bc.rotate(-90,Hh/2,jd/2),Ku===cm&&(45<Lc&&135>Lc||225<Lc&&315>Lc)&&bc.rotate(-Lc,Hh/2,jd/2);var pp=ke.allocAt(0,0,Hh,jd),Gh=$.alloc();Gh.xi(pp,jh),bc.Ga(Gh);var fp=-Gh.x,Xv=-Gh.y,gh=$.alloc();gh.assign(af),isNaN(gh.x)&&(gh.x=Hh/2+3),isNaN(gh.y)&&(gh.y=-(jd/2+3)),gh.rotate(Lc),u0+=gh.x+fp,lf+=gh.y+Xv;var Ud=new ke(u0,lf,_h.width,_h.height),c0=new ke(_h.x,_h.y,_h.width,_h.height),Jv=new ke(mh.x,mh.y,mh.width,mh.height);Zc.Sz=$d,Zc.lineCount=nu.lineCount,Zc.lines=[nu.Cb,nu.Ih,nu.df,nu.Le,nu.Qc,nu.Qb,nu.ze],Zc.actualBounds=Ud,Zc.measuredBounds=c0,Zc.naturalBounds=Jv,Uh===0?fd.assign(Ud):fd.ed(Ud),$.free(gh),$.free(Gh),ke.free(pp),Ti.free(bc)}Vu.graduatedBounds!==null&&Vu.graduatedBounds.push(fd),Ur(ng,fd.x,fd.y,fd.width,fd.height)}Zs(js,!1)}}},Sf.prototype.arrange=function(t,e,n){if(t.graduatedBounds!==null){var i=t.Pb(),r=t.graduatedMarks;if(r!==null){var o=t.graduatedBounds,s=0,l=o[s];s++,i!==null&&i.arrange(l.x-n.x,l.y-n.y,l.width,l.height);for(var u=e.length,d=0;d<u;d++){var p=e[d];l=r[d],p.visible&&p!==i&&l.length!==0&&(l=o[s],s++,p.arrange(l.x-n.x,l.y-n.y,l.width,l.height))}t.graduatedBounds=null}}},Sf.prototype.gc=function(t,e,n){var i=n.$i;n.$i=!0;var r=t.naturalBounds,o=r.width,s=r.height;r=e instanceof Xl,e.save(),e.beginPath(),e.rect(-1,-1,o+1,s+1),e.clip(),e.Se(),o=t.Pb(),o.gc(e,n),s=t.Df()*n.scale,0>=s&&(s=1);for(var l=o.actualBounds,u=t.O.s,d=t.graduatedMarks,p=u.length,v=0;v<p;v++){var E=u[v],M=d[v],R=M.length;if(E.visible&&E!==o&&M.length!==0){if(E instanceof Qi){if(!(2>t.graduatedTickUnit*E.interval*o.geometry.flattenedTotalLength/t.graduatedRange*s&&E.graduatedSkip===null)){var j=E.measuredBounds,at=E.strokeWidth*E.scale,q=E.alignmentFocus;q.Mc()&&(q=qa);for(var gt=0;gt<R;gt++){var wt=M[gt].$l,Ot=M[gt].angle,Gt=q,ce=E.Ab;ce.reset(),ce.translate(wt.x+l.x,wt.y+l.y),ce.rotate(Ot+E.angle,0,0),ce.translate(-j.width*Gt.x+Gt.offsetX+at/2,-j.height*Gt.y+Gt.offsetY+at/2),ce.scale(E.scale,E.scale),ju(E,!1),E.wh.set(E.Ab),E.Kk=E.scale,Iu(E,!1),E.gc(e,n),r&&(t.svg.appendChild(E.svg),E.svg=null),E.Ab.reset()}}}else if(E instanceof Do)for(t.temporaryTextBlock===null&&(t.temporaryTextBlock=new Do),j=t.temporaryTextBlock,ky(j,E),at=0;at<R;at++)q=M[at],q.actualBounds&&q.measuredBounds&&q.naturalBounds&&(j.ec=q.text||"",j.Kb=q.Sz||0,j.Gc=q.lineCount||0,gt=q.lines,gt!==void 0&&(j.Cb=gt[0],j.Ih=gt[1],j.df=gt[2],j.Le=gt[3],j.Qc=gt[4],j.Qb=gt[5],j.ze=gt[6]),q.naturalBounds&&(j.dc=q.naturalBounds),q.actualBounds&&(gt=q.actualBounds,j.arrange(gt.x,gt.y,gt.width,gt.height)),gt=q.actualBounds,j.arrange(gt.x,gt.y,gt.width,gt.height),wt=q.measuredBounds,q=q.naturalBounds,Ot=j.Ab,Ot.reset(),Ot.translate(gt.x+l.x,gt.y+l.y),Ot.translate(-wt.x,-wt.y),j.no(Ot,q.x,q.y,q.width,q.height),ju(j,!1),j.wh.set(j.Ab),j.Kk=j.scale,Iu(j,!1),j.Ng=E.part,j.Me=E.panel,j.gc(e,n),j.Me=null,j.Ng=null,r&&(t.svg.appendChild(j.svg),j.svg=null))}}n.$i=i,e.restore(),e.Vc(!0)};function sn(t,e){if(Wt.call(this),this.na=null,t===void 0)this.na=sn.Position;else if(typeof t=="string"){var n=Qu.I(t);n!==null&&(this.na=n)}else t instanceof ea?this.na=t:t&&(this.na=sn.Position,e=t);this.na===null&&ne("Panel type not specified or PanelLayout not loaded: "+t),this.l=this.l|4194304|(this.na===sn.Grid?1048576:0),this.O=new Re,this.yb=ga,this.Tm=_r,this.Uf=Zi,this.$g=null,this.$e="",this.jg=new ke(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=Kn,this.jn=oa,this.kn=Wi,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,e&&Object.assign(this,e)}Jn(sn,Wt),sn.prototype.cloneProtected=function(t){Wt.prototype.cloneProtected.call(this,t),t.na=this.na,t.yb=this.yb.J(),t.Tm=this.Tm.J(),t.Uf=this.Uf,t.$e=this.$e,t.jg.assign(this.jg),this.T!==null&&(t.T=this.T.copy(t)),t.xo=this.xo,t.jn=this.jn.J(),t.kn=this.kn.J(),this.ra!==null&&(t.ra=this.ra.copy()),t.ub=this.ub,t.zn=this.zn,t.Hh=this.Hh},sn.prototype.Af=function(t){Wt.prototype.Af.call(this,t),t.O=this.O;for(var e=t.O.s,n=e.length,i=0;i<n;i++)e[i].Me=t;t.$g=null},sn.prototype.copy=function(){var t=Wt.prototype.copy.call(this);if(t!==null){for(var e=this.O.s,n=e.length,i=0;i<n;i++){var r=e[i].copy();r.wi(t),r.Ng=null;var o=t.O,s=o.count;if(o.Gb(s,r),o=t.part,o!==null){o.Rh=null,r.portId!==null&&o instanceof Rn&&(o.Te=!0);var l=t.diagram;l!==null&&l.undoManager.isUndoingRedoing||o.cb(hs,"elements",t,null,r,null,s)}}return t}return null},D=sn.prototype,D.toString=function(){return"Panel("+this.type.name+")#"+Br(this)},D.Pn=function(t){Wt.prototype.Pn.call(this,t);for(var e=this.O.s,n=e.length,i=0;i<n;i++)e[i].Pn(t)},D.hh=function(t,e){if(this.na===sn.Grid)t.yc(),this.na.gc(this,t,e);else if(this.na===sn.Graduated)t.yc(),this.na.gc(this,t,e);else{if(this.na===sn.Table)if(t.yc(),t instanceof Xl){var n=t.yd;t.yd=S0(t,"gojs-ts"),wg(this,t),t.nh.pop(),t.yd=n}else wg(this,t);(n=this.isClipping&&this.na===sn.Spot)&&t.save();for(var i=this.Pb(),r=this.O.s,o=r.length,s=0;s<o;s++){var l=r[s];n&&l===i&&(t.clipInsteadOfFill=!0),l.gc(t,e),n&&l===i&&(t.clipInsteadOfFill=!1)}n&&(t.restore(),t.Vc(!0))}};function wg(t,e){e.lineCap="butt";var n=0<t.rowCount?t.rowDefs:null,i=0<t.columnCount?t.colDefs:null;n!==null&&P0(t,e,!0,n,!0),i!==null&&P0(t,e,!1,i,!0),n!==null&&dy(t,e,!0,n),i!==null&&dy(t,e,!1,i),n!==null&&P0(t,e,!0,n,!1),i!==null&&P0(t,e,!1,i,!1)}function dy(t,e,n,i){for(var r=i.length,o=t.actualBounds,s=t.naturalBounds,l=!0,u=0;u<r;u++){var d=i[u];if(d!==void 0&&d.actual!==0)if(l)l=!1;else{if(n){if(d.position>s.height)continue}else if(d.position>s.width)continue;var p=d.separatorStrokeWidth;isNaN(p)&&(p=n?t.defaultRowSeparatorStrokeWidth:t.defaultColumnSeparatorStrokeWidth);var v=d.separatorStroke;if(v===null&&(v=n?t.defaultRowSeparatorStroke:t.defaultColumnSeparatorStroke),p!==0&&v!==null){Ss(t,e,v,!1,!1,s,o),v=!1;var E=d.separatorDashArray;E===null&&(E=n?t.defaultRowSeparatorDashArray:t.defaultColumnSeparatorDashArray),E!==null&&(v=!0,e.js(E,0)),e.beginPath(),E=d.position+p,n?E>s.height&&(p-=E-s.height):E>s.width&&(p-=E-s.width),d=d.position+p/2,e.lineWidth=p,p=t.yb,n?(d+=p.top,E=s.width-p.right,e.moveTo(p.left,d),e.lineTo(E,d)):(d+=p.left,E=s.height-p.bottom,e.moveTo(d,p.top),e.lineTo(d,E)),e.stroke(),e.Se(),v&&e.fs()}}}}function P0(t,e,n,i,r){for(var o=i.length,s=t.actualBounds,l=t.naturalBounds,u=py(t,!0),d=py(t,!1),p=0;p<o;p++){var v=i[p];if(v!==void 0&&v.background!==null&&v.coversSeparators!==r&&v.actual!==0){var E=n?s.height:s.width;if(!(v.position>E)){var M=v.Wc(),R=v.separatorStrokeWidth;isNaN(R)&&(R=n?t.defaultRowSeparatorStrokeWidth:t.defaultColumnSeparatorStrokeWidth);var j=v.separatorStroke;j===null&&(j=n?t.defaultRowSeparatorStroke:t.defaultColumnSeparatorStroke),(j===null||v.index===(n?u:d))&&(R=0),M-=R,R=v.position+R,M+=v.actual,R+M>E&&(M=E-R),0>=M||(E=t.yb,Ss(t,e,v.background,!0,!1,l,s),n?e.fillRect(E.left,R+E.top,s.width-(E.left+E.right),M):e.fillRect(R+E.left,E.top,M,s.height-(E.top+E.bottom)))}}}}function py(t,e){for(var n=e?t.rowCount:t.columnCount,i=0;i<n;i++){var r=e?t.rowDefs[i]:t.colDefs[i];if(r!==void 0)return r.index}return 0}function Cg(t){return t==="LineV"||t==="BarV"}D.lv=function(){for(var t=this.O.s,e=t.length,n=0;n<e;n++)t[n].lv();this.Uc=!0},D.kk=function(t,e,n){if(!Wt.prototype.kk.call(this,t,e,n))return!1;if(this.type===sn.Table)n=this.svg.getElementsByClassName("gojs-ts"),n=n.length!==0?n[0]:null,n!==null&&(n.innerHTML=""),t.yd=n,wg(this,t),t.yd=null;else if(this.na===sn.Grid||this.na===sn.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;n=this.O.s;for(var i=n.length,r=0;r<i;r++)n[r].gc(t,e);return!0},D.nk=function(){return!0},D.$o=function(t,e,n,i){if(!this.isClipping)if(this.Dd()&&t.bk!==null){t=t.bk,e=this.O.s;for(var r=0,o=0,s=0;s<e.length;s++)if(e[s].Ed()){var l=e[s].actualBounds;r=s===0?l.x:Math.min(l.x,r),o=s===0?l.y:Math.min(l.y,o)}i.setAttributeNS(null,"clip-path","path('M "+(t.x-n.x-r)+","+(t.y-n.y-o)+" l "+t.width+" 0 l 0 "+t.height+" l -"+t.width+" 0 z')")}else Wt.prototype.$o.call(this,t,e,n,i)},D.Sj=function(t,e,n,i,r){var o=this.se(),s=this.transform,l=1/(s.m11*s.m22-s.m12*s.m21),u=s.m22*l,d=-s.m12*l,p=-s.m21*l,v=s.m11*l,E=l*(s.m21*s.dy-s.m22*s.dx),M=l*(s.m12*s.dx-s.m11*s.dy);if(this.areaBackground!==null)return s=this.actualBounds,Vt.Ff(s.left,s.top,s.right,s.bottom,t,e,n,i,r);if(this.background!==null)return o=t*u+e*p+E,l=t*d+e*v+M,t=n*u+i*p+E,u=n*d+i*v+M,r.h(0,0),n=this.naturalBounds,o=Vt.Ff(0,0,n.width,n.height,o,l,t,u,r),r.transform(s),o;o||(u=1,p=d=0,v=1,M=E=0),l=t*u+e*p+E,t=t*d+e*v+M,u=n*u+i*p+E,n=n*d+i*v+M,r.h(u,n),i=(u-l)*(u-l)+(n-t)*(n-t),d=!1,v=this.O.s,M=v.length,p=$.alloc(),E=null,e=1/0;var R=null,j=this.isClipping&&this.na===sn.Spot;j&&(R=$.alloc(),E=this.Pb(),(d=E.Sj(l,t,u,n,R))&&(e=(l-R.x)*(l-R.x)+(t-R.y)*(t-R.y)));for(var at=0;at<M;at++){var q=v[at];q.visible&&q!==E&&q.Sj(l,t,u,n,p)&&(d=!0,q=(l-p.x)*(l-p.x)+(t-p.y)*(t-p.y),q<i&&(i=q,r.set(p)))}return j&&(e>i&&r.set(R),$.free(R)),$.free(p),o&&r.transform(s),d},D.Gj=function(){for(var t=this.O.s,e=t.length,n=0;n<e;n++)t[n].Gj();Wt.prototype.Gj.call(this)},D.v=function(t){if(!gu(this)){Wt.prototype.v.call(this,t),t=null,(this.na===sn.Auto||this.na===sn.Link)&&(t=this.Pb());for(var e=this.O.s,n=e.length,i=0;i<n;i++){var r=e[i];if((r===t||r.isPanelMain)&&r.v(!0),!r.desiredSize.w()){var o=Al(r,!1);(r instanceof ml||r instanceof sn||r instanceof Do||o!==Xe)&&r.v(!0)}}}},D.Uj=function(){if(!gu(this)){Zs(this,!0),Pc(this,!0);for(var t=this.O.s,e=t.length,n=0;n<e;n++)t[n].Uj()}},D.Uk=function(){if(!(this.l&2048)){ju(this,!0),Iu(this,!0);for(var t=this.O.s,e=t.length,n=0;n<e;n++)t[n].Wu()}},D.Wu=function(){Iu(this,!0);for(var t=this.O.s,e=t.length,n=0;n<e;n++)t[n].Wu()},D.Wl=function(t,e,n,i){var r=this.jg;r.h(0,0,0,0);var o=this.desiredSize,s=this.minSize;n===void 0&&(n=s.width,i=s.height),n=Math.max(n,s.width),i=Math.max(i,s.height);var l=this.maxSize;isNaN(o.width)||(t=Math.min(o.width,l.width)),isNaN(o.height)||(e=Math.min(o.height,l.height)),t=Math.max(n,t),e=Math.max(i,e);var u=this.yb;t=Math.max(t-u.left-u.right,0),e=Math.max(e-u.top-u.bottom,0);var d=this.O.s;d.length!==0&&this.na.measure(this,t,e,d,r,n,i),t=r.width+u.left+u.right,u=r.height+u.top+u.bottom,isFinite(o.width)&&(t=o.width),isFinite(o.height)&&(u=o.height),t=Math.min(l.width,t),u=Math.min(l.height,u),t=Math.max(s.width,t),u=Math.max(s.height,u),t=Math.max(n,t),u=Math.max(i,u),ys(r,t,u),ys(this.naturalBounds,t,u),this.Ge(0,0,t,u)},D.Pb=function(){if(this.$g===null){var t=this.O.s,e=t.length;if(e===0)return null;for(var n=0;n<e;n++){var i=t[n];if(i.isPanelMain===!0)return this.$g=i}this.$g=t[0]}return this.$g};function lh(t){return t.part!==null?t.part.locationObject:null}D.eh=function(t,e,n,i){var r=this.O.s;if(this.actualBounds.h(t,e,n,i),r.length!==0){if(!this.desiredSize.w()){t=Al(this,!0);var o=this.measuredBounds;e=o.width,o=o.height;var s=this.Kg,l=s.left+s.right;switch(s=s.top+s.bottom,e===n&&o===i&&(t=Xe),t){case Xe:(e>n||o>i)&&(this.v(),this.measure(e>n?n:e,o>i?i:o,0,0));break;case rn:this.v(!0),this.measure(n+l,i+s,0,0);break;case ei:this.v(!0),this.measure(n+l,o+s,0,0);break;case yi:this.v(!0),this.measure(e+l,i+s,0,0)}}this.na.arrange(this,r,this.jg)}},D.gh=function(t){var e=this.naturalBounds,n=lh(this);if(uo(0,0,e.width,e.height,t.x,t.y)){e=this.O.s;for(var i=e.length,r=$.allocAt(0,0);i--;){var o=e[i];if((o.visible||o===n)&&(se(r.set(t),o.transform),o.ca(r)))return $.free(r),!0}return $.free(r),!(this.Ma===null&&this.areaBackground===null)}return!1},D.ks=function(t){if(this.bindingId===t)return this;for(var e=this.O.s,n=e.length,i=0;i<n;i++){var r=e[i].ks(t);if(r!==null)return r}return null},D.qm=function(t,e){if(e(this,t),t instanceof sn){t=t.O.s;for(var n=t.length,i=0;i<n;i++)this.qm(t[i],e)}};function Nd(t,e){fy(t,t,e)}function fy(t,e,n){n(e),e=e.O.s;for(var i=e.length,r=0;r<i;r++){var o=e[r];o instanceof sn&&fy(t,o,n)}}function Mx(t,e){my(t,t,e)}function my(t,e,n){if(n(e),e instanceof sn){e=e.O.s;for(var i=e.length,r=0;r<i;r++)my(t,e[r],n)}}D.Nl=function(t){return gy(this,this,t)};function gy(t,e,n){if(n(e))return e;if(e instanceof sn){e=e.O.s;for(var i=e.length,r=0;r<i;r++){var o=gy(t,e[r],n);if(o!==null)return o}}return null}D.fb=function(t){if(this.name===t)return this;var e=this.O.s,n=e.length;this.Hh===null&&this.itemTemplateMap===null||(n=wf(this));for(var i=0;i<n;i++){var r=e[i];if(r instanceof sn){var o=r.fb(t);if(o!==null)return o}if(r.name===t)return r}return null};function vy(t){t=t.O.s;for(var e=t.length,n=0,i=0;i<e;i++){var r=t[i];r instanceof sn?n=Math.max(n,vy(r)):r instanceof Qi&&(n=Math.max(n,r.ig/2*r.strokeMiterLimit*r.Df()))}return n}D.se=function(){return!(this.type===sn.TableRow||this.type===sn.TableColumn)};function kh(t){return t.type===sn.TableRow||t.type===sn.TableColumn}D.ic=function(t,e,n){if(this.pickable===!1||(e===void 0&&(e=null),n===void 0&&(n=null),pl(this)))return null;var i=this.naturalBounds,r=1/this.Df(),o=this.se(),s=o?t:se($.allocAt(t.x,t.y),this.transform),l=this.diagram,u=10,d=5;if(l!==null&&(u=l.Ql("extraTouchArea"),d=u/2),uo(-(d*r),-(d*r),i.width+u*r,i.height+u*r,s.x,s.y)){if(!this.isAtomic){r=this.O.s;var p=r.length;if(l=$.alloc(),d=(u=this.isClipping&&this.na===sn.Spot)?this.Pb():null,u&&(d.se()?se(l.set(t),d.transform):l.set(t),!d.ca(l)))return $.free(l),o||$.free(s),null;for(var v=lh(this);p--;){var E=r[p];if((E.visible||E===v)&&(E.se()?se(l.set(t),E.transform):l.set(t),!u||E!==d)){var M=null;if(E instanceof sn?M=E.ic(l,e,n):E.pickable===!0&&E.ca(l)&&(M=E),M!==null&&(e!==null&&(M=e(M)),M!==null&&(n===null||n(M))))return $.free(l),o||$.free(s),M}}$.free(l)}return this.background===null&&this.areaBackground===null?(o||$.free(s),null):(t=uo(0,0,i.width,i.height,s.x,s.y)?this:null,o||$.free(s),t)}return o||$.free(s),null},D.ji=function(t,e,n,i){if(this.pickable===!1)return!1;e===void 0&&(e=null),n===void 0&&(n=null);var r=this.naturalBounds,o=this.se(),s=o?t:se($.allocAt(t.x,t.y),this.transform);if(r=uo(0,0,r.width,r.height,s.x,s.y),kh(this)||r){if(!this.isAtomic){for(var l=this.O.s,u=l.length,d=$.alloc(),p=lh(this);u--;){var v=l[u];if(v.visible||v===p){v.se()?se(d.set(t),v.transform):d.set(t);var E=v;v=v instanceof sn?v:null,(v!==null?v.ji(d,e,n,i):E.ca(d))&&E.pickable!==!1&&(e!==null&&(E=e(E)),E===null||n!==null&&!n(E)||i.add(E))}}$.free(d)}return o||$.free(s),r&&(this.background!==null||this.areaBackground!==null)}return o||$.free(s),!1},D.Cf=function(t,e,n,i,r,o){if(this.pickable===!1)return!1;e===void 0&&(e=null),n===void 0&&(n=null);var s=o;if(o===void 0&&(s=Ti.alloc(),s.reset()),s.multiply(this.transform),this.fh(t,s))return Eg(this,e,n,r),o===void 0&&Ti.free(s),!0;if(this.Yc(t,s)){if(!this.isAtomic)for(var l=lh(this),u=this.O.s,d=u.length;d--;){var p=u[d];if(p.visible||p===l){var v=p.actualBounds,E=this.naturalBounds;v.x>E.width||v.y>E.height||0>v.x+v.width||0>v.y+v.height||(v=p,p=p instanceof sn?p:null,E=Ti.alloc(),E.set(s),(p!==null?p.Cf(t,e,n,i,r,E):ua(v,t,i,E))&&(e!==null&&(v=e(v)),v===null||n!==null&&!n(v)||r.add(v)),Ti.free(E))}}return o===void 0&&Ti.free(s),i}return o===void 0&&Ti.free(s),!1};function Eg(t,e,n,i){for(var r=t.O.s,o=r.length;o--;){var s=r[o];if(s.visible){var l=s.actualBounds,u=t.naturalBounds;l.x>u.width||l.y>u.height||0>l.x+l.width||0>l.y+l.height||(s instanceof sn&&Eg(s,e,n,i),e!==null&&(s=e(s)),s===null||n!==null&&!n(s)||i.add(s))}}}D.og=function(t,e,n,i,r,o){if(this.pickable===!1)return!1;n===void 0&&(n=null),i===void 0&&(i=null);var s=this.naturalBounds,l=this.se(),u=l?t:se($.allocAt(t.x,t.y),this.transform),d=l?e:se($.allocAt(e.x,e.y),this.transform),p=u.Bf(d),v=0<u.x&&u.x<s.width&&0<u.y&&u.y<s.height||kr(u.x,u.y,0,0,0,s.height)<=p||kr(u.x,u.y,0,s.height,s.width,s.height)<=p||kr(u.x,u.y,s.width,s.height,s.width,0)<=p||kr(u.x,u.y,s.width,0,0,0)<=p;if(s=u.zd(0,0)<=p&&u.zd(0,s.height)<=p&&u.zd(s.width,0)<=p&&u.zd(s.width,s.height)<=p,l||($.free(u),$.free(d)),v){if(!this.isAtomic){u=$.alloc(),d=$.alloc(),p=lh(this);for(var E=this.O.s,M=E.length;M--;){var R=E[M];if(R.visible||R===p){var j=R.actualBounds,at=this.naturalBounds;(!l||!(j.x>at.width||j.y>at.height||0>j.x+j.width||0>j.y+j.height))&&(R.se()?(j=R.transform,se(u.set(t),j),se(d.set(e),j)):(u.set(t),d.set(e)),j=R,R=R instanceof sn?R:null,(R!==null?R.og(u,d,n,i,r,o):j.tx(u,d,r))&&(n!==null&&(j=n(j)),j===null||i!==null&&!i(j)||o.add(j)))}}$.free(u),$.free(d)}return r?v:s}return!1};function Tg(t){var e=null;return t instanceof Qi&&(e=t.spot1,e===_r&&(e=null),t=t.geometry,t!==null&&e===null&&(e=t.spot1)),e===null&&(e=Fs),e}function kg(t){var e=null;return t instanceof Qi&&(e=t.spot2,e===_r&&(e=null),t=t.geometry,t!==null&&e===null&&(e=t.spot2)),e===null&&(e=Jo),e}D.add=function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];for(n=0;n<e.length;n++)this.Gb(this.O.count,e[n]);return this},D.M=function(t){return this.O.M(t)},D.Gb=function(t,e){e instanceof li&&ne("Cannot add a Part to a Panel: "+e+"; use a Panel instead"),(this===e||this.rg(e))&&(this===e&&ne("Cannot make a Panel contain itself: "+this.toString()),ne("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+e.toString()));var n=e.panel;if(n!==null&&n!==this&&ne("Cannot add a GraphObject that already belongs to another Panel to this Panel: "+e.toString()+", already contained by "+n.toString()+", cannot be shared by this Panel: "+this.toString()),this.na!==sn.Grid||e instanceof Qi||ne("Can only add Shapes to a Grid Panel, not: "+e),this.na!==sn.Graduated||e instanceof Qi||e instanceof Do||ne("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+e),e.wi(this),e.Ng=null,this.itemArray!==null){var i=e.data;i!==null&&typeof i=="object"&&(this.ge===null&&(this.ge=new pt),this.ge.add(i,e))}var r=this.O;if(i=-1,n===this){for(var o=-1,s=this.O.s,l=s.length,u=0;u<l;u++)if(s[u]===e){o=u;break}if(o!==-1){if(o===t||o+1>=r.count&&t>=r.count)return;r.mb(o),i=o}else ne("element "+e.toString()+" has panel "+n.toString()+" but is not contained by it.")}(0>t||t>r.count)&&(t=r.count),r.Gb(t,e),(t===0||e.isPanelMain)&&(this.$g=null),gu(this)||this.v(),e.v(!1),e.portId!==null?this.Te=!0:e instanceof sn&&e.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||B0(this,e,!1),n=this.part,n!==null&&(n.Rh=null,n.ag=NaN,this.Te&&n instanceof Rn&&(n.Te=!0),n.Te&&n instanceof Rn&&(n.wc=null),r=this.diagram,r!==null&&r.undoManager.isUndoingRedoing||(i!==-1&&n.cb(Ts,"elements",this,e,null,i,null),n.cb(hs,"elements",this,null,e,null,t)))};function Ng(t,e){t.l=e?t.l|16777216:t.l&-16777217}D.remove=function(t){for(var e=this.O.s,n=e.length,i=-1,r=0;r<n;r++)if(e[r]===t){i=r;break}i!==-1&&this.pc(i,!0)},D.mb=function(t){0<=t&&this.pc(t,!0)},D.pc=function(t,e){var n=this.O,i=n.M(t);if(i.Ng=null,i.wi(null),this.ge!==null){var r=i.data;typeof r=="object"&&this.ge.remove(r)}n.mb(t),Zs(this,!1),this.v(),this.$g===i&&(this.$g=null),this.graduatedIntervals=null;var o=this.part;o!==null&&(o.Rh=null,o.ag=NaN,o.Wb(),o instanceof Rn&&(i instanceof sn?i.qm(i,function(s,l){Xg(o,l,e)}):Xg(o,i,e)),n=this.diagram,n!==null&&n.undoManager.isUndoingRedoing||o.cb(Ts,"elements",this,i,null,t,null))},D.Fb=function(t){0>t&&Fn(t,">= 0",sn,"getRowDefinition:idx"),t=Math.round(t);var e=this.rowDefs;if(e[t]===void 0){var n=new Ys;n.wi(this),n.isRow=!0,n.index=t,e[t]=n,this.cb(hs,"rowdefs",this,null,n,null,t)}return e[t]},D.oA=function(t){if(0>t&&Fn(t,">= 0",sn,"removeRowDefinition:idx"),this.rowCount!==0){t=Math.round(t);var e=this.rowDefs,n=e[t];if(n){e[t]=void 0;for(var i=e.length-1;0<=i&&e[i--]===void 0;)e.length--;this.cb(Ts,"rowdefs",this,n,null,t,null),this.v()}}};function yy(t,e,n){var i=t.rowDefs;if(!(0>e)){if(i[e]=n instanceof Ys?n:void 0,!n)for(e=i.length-1;0<=e&&i[e--]===void 0;)i.length--;t.v()}}D.Eb=function(t){0>t&&Fn(t,">= 0",sn,"getColumnDefinition:idx"),t=Math.round(t);var e=this.colDefs;if(e[t]===void 0){var n=new Ys;n.wi(this),n.isRow=!1,n.index=t,e[t]=n,this.cb(hs,"coldefs",this,null,n,null,t)}return e[t]},D.jA=function(t){if(0>t&&Fn(t,">= 0",sn,"removeColumnDefinition:idx"),this.columnCount!==0){t=Math.round(t);var e=this.colDefs,n=e[t];if(n){e[t]=void 0;for(var i=e.length-1;0<=i&&e[i--]===void 0;)e.length--;this.cb(Ts,"coldefs",this,n,null,t,null),this.v()}}};function xy(t,e,n){var i=t.colDefs;if(!(0>e)){if(i[e]=n instanceof Ys?n:void 0,!n)for(e=i.length-1;0<=e&&i[e--]===void 0;)i.length--;t.v()}}D.Gy=function(t){var e=null;return t.isRow?e=this.Fb(t.index):t.isRow||(e=this.Eb(t.index)),e&&z0(e,t),this},D.Hy=function(t,e){return(t=this.Fb(t))&&z0(t,new Ys(e)),this},D.By=function(t,e){return(t=this.Eb(t))&&z0(t,new Ys(e)),this},D.nz=function(t){if(0>t||this.type!==sn.Table||this.rowCount===0)return-1;for(var e=0,n=this.rowDefs,i=n.length,r=this.topIndex;r<i;r++){var o=n[r];if(o!==void 0&&(e+=o.total,t<e))break}return r},D.fz=function(t){if(0>t||this.type!==sn.Table||this.columnCount===0)return-1;for(var e=0,n=this.colDefs,i=n.length,r=this.leftIndex;r<i;r++){var o=n[r];if(o!==void 0&&(e+=o.total,t<e))break}return r},D.Fz=function(t,e){if(e===void 0&&(e=new $(NaN,NaN)),this.type!==sn.Graduated)return e.h(NaN,NaN),e;t=Math.min(Math.max(t,this.graduatedMin),this.graduatedMax);var n=this.Pb();return n.geometry.Pu((t-this.graduatedMin)/this.graduatedRange,e),n.transform.Ga(e)},D.Gz=function(t){if(this.type!==sn.Graduated)return NaN;var e=this.Pb();return e.transform.Cd(t),e.geometry.xx(t)*this.graduatedRange+this.graduatedMin};function by(t){return t=t.allBindings,t!==null&&t._isFrozen}function _u(t){var e=t.allBindings;if(e===null)t.data!==null&&ne("Template cannot have .data be non-null: "+t),t.allBindings=e=new Re;else if(e._isFrozen)return;var n=new Re;Ng(t,!1),t.qm(t,function(d,p){p.th();var v=p.localBindings;if(v!==null)for(Zd(p,!1),v=v.iterator;v.next();){var E=v.value;E.mode===Gf&&Zd(p,!0);var M=E.sourceName;M!==null&&(M==="/"&&Ng(d,!0),M=D1(E,d,p),M!==null&&(n.add(M),M.srcBindings===null&&(M.srcBindings=new Re),M.srcBindings.add(E))),e.add(E)}if(p instanceof sn&&p.type===sn.Table){if(0<p.rowCount){for(d=p.rowDefs,v=d.length,E=0;E<v;E++)if(M=d[E],M!==void 0&&M.be!==null)for(var R=M.be.iterator;R.next();){var j=R.value;j.xd=M,j.to=2,j.wl=M.index,e.add(j)}}if(0<p.columnCount){for(p=p.colDefs,d=p.length,v=0;v<d;v++)if(E=p[v],E!==void 0&&E.be!==null)for(M=E.be.iterator;M.next();)R=M.value,R.xd=E,R.to=1,R.wl=E.index,e.add(R)}}});for(var i=n.iterator;i.next();){var r=i.value;if(r.srcBindings!==null){Zd(r,!0);for(var o=r.srcBindings.iterator;o.next();){var s=o.value;r.localBindings===null&&(r.localBindings=new Re),r.localBindings.add(s)}}r.srcBindings=null}for(i=e.iterator;i.next();)if(r=i.value,o=r.xd,o!==null){r.xd=null;var l=r.targetProperty,u=l.indexOf(".");0<u&&o instanceof sn&&(s=l.substring(0,u),l=l.substr(u+1),u=o.fb(s),u!==null?(o=u,r.targetProperty=l):hi('Warning: unable to find GraphObject named "'+s+'" for Binding: '+r.toString())),o instanceof Ys?(s=Br(o.panel),r.Ai=s===void 0?-1:s,o.panel.bindingId=r.Ai):o instanceof Wt?(s=Br(o),r.Ai=s===void 0?-1:s,o.bindingId=r.Ai):ne("Unknown type of binding target: "+o)}e.freeze(),t instanceof li&&t.Zc()&&t.Va()}D.Uy=function(t){t===void 0&&(t=!1);var e=this.copy();return Mx(e,function(n){n instanceof sn&&(n.allBindings=null,n.ub=null);var i=n.localBindings;i!==null&&(n.localBindings=null,i.each(function(r){n.bind(r.copy())})),i=n.animationTriggers,i!==null&&(n.animationTriggers=null,i.each(function(r){n.Jv(r.value.copy())}))}),t&&_u(e),e},D.La=function(t){var e=this.allBindings;if(e!==null)for(t===void 0&&(t=""),e=e.iterator;e.next();){var n=e.value,i=n.sourceProperty;if((t===""||i===""||i===t)&&(i=n.targetProperty,n.converter!==null||i!=="")){i=this.data;var r=n.sourceName;if(r!==null){if(r==="")i=this;else if(r==="/")i=this;else if(r===".")i=this;else if(r==="..")i=this;else if(i=this.fb(r),i===null)continue}else if(n.isToModel)if(i=this.diagram,i!==null)i=i.model.modelData;else continue;var o=this,s=n.Ai;if(s!==-1){if(o=this.ks(s),o===null)continue}else n.xd!==null&&(o=n.xd);if(r==="/"?i=o.part:r==="."?i=o:r===".."&&(i=o.panel),r=n.to,r!==0){if(!(o instanceof sn))continue;r===1?o=o.Eb(n.wl):r===2&&(o=o.Fb(n.wl))}o!==void 0&&n.Mv(o,i)}}},D.sx=function(t){return t==null||this.ge===null?null:this.ge.I(t)};function Ox(t,e){t=t.O.s;for(var n=t.length,i=e.length,r=0,o=null;r<n&&(o=t[r],!(o instanceof sn&&o.data!==null));)r++,o=t[r];if(n-r!==i)return!0;if(o===null)return 0<i;for(var s=0;r<n&&s<i;){if(o=t[r],!(o instanceof sn)||o.data!==e[s])return!0;r++,s++}return!1}function wf(t){if(t.type===sn.Spot||t.type===sn.Auto)return Math.min(t.O.length,1);if(t.type===sn.Link){t=t.O;for(var e=t.length,n=0;n<e;n++){var i=t.M(n);if(!(i instanceof Qi&&i.isPanelMain))break}return n}return t.type===sn.Table&&0<t.O.length&&(t=t.O.M(0),t.isPanelMain&&t instanceof sn&&kh(t))?1:0}D.mv=function(){for(var t=wf(this);this.O.length>t;)this.pc(this.O.length-1,!1);Sy(this,this.itemArray)};function Sy(t,e){var n=wf(t);if(e===null||e.length===0)for(;t.O.length>n;)t.pc(t.O.length-1,!1);else if(t.O.length<=n){n=e.length;for(var i=0;i<n;i++)F0(t,e[i],i,!0)}else{i=n;for(var r=0;r<e.length;r++,i++){var o=e[r],s=i<t.O.length?t.O.M(i):null;if(s instanceof sn){if(s.data!==o){var l=Ag(t,s.data),u=Ag(t,o),d=u!==l;d||(l=Mg(t,l),d=Mg(t,u)!==l),d?(t.pc(i,!1),F0(t,o,r,!1)):s.data=o}}else F0(t,o,r,!1)}for(;i<t.O.length;)t.pc(i,!1);t.$g=null,Ig(t,n,0),gu(t)||t.v(),t.graduatedIntervals=null,t.If()||B0(t,t,!1),e=t.part,e!==null&&(e.Rh=null,e.ag=NaN,t.Te&&e instanceof Rn&&(e.Te=!0),e.Te&&e instanceof Rn&&(e.wc=null))}}function F0(t,e,n,i){if(!(e==null||0>n)){var r=Ag(t,e);if(r=Mg(t,r),r!==null){if(_u(r),r=r.copy(),r.l&16777216){var o=t.ih();o!==null&&Ng(o,!0)}typeof e=="object"&&(t.ge===null&&(t.ge=new pt),t.ge.add(e,r)),o=n+wf(t),t.Gb(o,r),i&&(r.ub=e,Ig(t,o,n),r.ub=null),r.data=e}}}function Ig(t,e,n){for(t=t.O;e<t.length;){var i=t.M(e);if(i instanceof sn){var r=e,o=n;i.type===sn.TableRow?i.row=r:i.type===sn.TableColumn&&(i.column=r),i.itemIndex=o}e++,n++}}function Ag(t,e){if(e===null)return"";if(t=t.itemCategoryProperty,typeof t=="function")t=t(e);else if(typeof t=="string"&&typeof e=="object"){if(t==="")return"";t=Ds(e,t)}else return"";if(t===void 0)return"";if(typeof t=="string")return t;ne("Panel.getCategoryForItemData found a non-string category for "+e+": "+t)}function Mg(t,e){var n=t.itemTemplateMap,i=null;return n!==null&&(i=n.I(e)),i===null&&(n!==null&&(i=n.I("")),i===null&&(wy||(wy=!0,hi('No item template Panel found for category "'+e+'" on '+t),hi(" Using default item template."),t=new sn,e=new Do,e.bind(new zs("text","",yn)),t.add(e),Cy=t),i=Cy)),i}function B0(t,e,n){var i=e.enabledChanged;if(i!==null&&i(e,n),e instanceof sn){e=e.O.s,i=e.length;for(var r=0;r<i;r++){var o=e[r];n&&o instanceof sn&&!o.isEnabled||B0(t,o,n)}}}function Nc(t,e){e.name=t,Qu.add(t,e)}te.Object.defineProperties(sn.prototype,{type:{get:function(){return this.na},set:function(t){var e=this.na;e!==t&&(this.na=t,this.isAtomic=this.na===sn.Grid,this.v(),this.g("type",e,t))}},elements:{get:function(){return this.O.iterator}},naturalBounds:{get:function(){return this.dc}},padding:{get:function(){return this.yb},set:function(t){typeof t=="number"?(0>t&&Fn(t,">= 0",sn,"padding"),t=new ri(t)):(0>t.left&&Fn(t.left,">= 0",sn,"padding:value.left"),0>t.right&&Fn(t.right,">= 0",sn,"padding:value.right"),0>t.top&&Fn(t.top,">= 0",sn,"padding:value.top"),0>t.bottom&&Fn(t.bottom,">= 0",sn,"padding:value.bottom"));var e=this.yb;e.D(t)||(this.yb=t=t.J(),this.v(),this.g("padding",e,t))}},defaultAlignment:{get:function(){return this.Tm},set:function(t){var e=this.Tm;e.D(t)||(this.Tm=t=t.J(),this.v(),this.g("defaultAlignment",e,t))}},defaultStretch:{get:function(){return this.Uf},set:function(t){var e=this.Uf;e!==t&&(this.Uf=t,this.v(),this.g("defaultStretch",e,t))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:ga},set:function(t){typeof t=="number"&&(t=new ri(t));var e=this.defaultSeparatorPadding;e.D(t)||(t=t.J(),this.T===null&&(this.T=new Ou),this.T.Qp=t,this.v(),this.g("defaultSeparatorPadding",e,t))}},defaultRowSeparatorStroke:{get:function(){return this.T!==null?this.T.ia:null},set:function(t){var e=this.defaultRowSeparatorStroke;e!==t&&(t===null||typeof t=="string"||t instanceof ro)&&(t instanceof ro&&t.freeze(),this.T===null&&(this.T=new Ou),this.T.ia=t,this.N(),this.g("defaultRowSeparatorStroke",e,t))}},defaultRowSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.Ha:1},set:function(t){var e=this.defaultRowSeparatorStrokeWidth;e!==t&&isFinite(t)&&0<=t&&(this.T===null&&(this.T=new Ou),this.T.Ha=t,this.v(),this.g("defaultRowSeparatorStrokeWidth",e,t))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(t){var e=this.defaultRowSeparatorDashArray;if(e!==t){if(t!==null){for(var n=t.length,i=0,r=0;r<n;r++){var o=t[r];typeof o=="number"&&0<=o&&isFinite(o)||ne("defaultRowSeparatorDashArray value "+o+" at index "+r+" must be a positive number or zero."),i+=o}if(i===0){if(e===null)return;t=null}}this.T===null&&(this.T=new Ou),this.T.V=t,this.N(),this.g("defaultRowSeparatorDashArray",e,t)}}},defaultColumnSeparatorStroke:{get:function(){return this.T!==null?this.T.u:null},set:function(t){var e=this.defaultColumnSeparatorStroke;e!==t&&(t===null||typeof t=="string"||t instanceof ro)&&(t instanceof ro&&t.freeze(),this.T===null&&(this.T=new Ou),this.T.u=t,this.N(),this.g("defaultColumnSeparatorStroke",e,t))}},defaultColumnSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.F:1},set:function(t){var e=this.defaultColumnSeparatorStrokeWidth;e!==t&&isFinite(t)&&0<=t&&(this.T===null&&(this.T=new Ou),this.T.F=t,this.v(),this.g("defaultColumnSeparatorStrokeWidth",e,t))}},defaultColumnSeparatorDashArray:{get:function(){return this.T!==null?this.T.o:null},set:function(t){var e=this.defaultColumnSeparatorDashArray;if(e!==t){if(t!==null){for(var n=t.length,i=0,r=0;r<n;r++){var o=t[r];typeof o=="number"&&0<=o&&isFinite(o)||ne("defaultColumnSeparatorDashArray value "+o+" at index "+r+" must be a positive number or zero."),i+=o}if(i===0){if(e===null)return;t=null}}this.T===null&&(this.T=new Ou),this.T.o=t,this.N(),this.g("defaultColumnSeparatorDashArray",e,t)}}},inRowsCols:{get:function(){return this.T!==null?this.T.nb:null},set:function(t){this.T===null&&(this.T=new Ou),this.T.nb=t}},viewboxStretch:{get:function(){return this.xo},set:function(t){var e=this.xo;e!==t&&(this.xo=t,this.v(),this.g("viewboxStretch",e,t))}},gridCellSize:{get:function(){return this.jn},set:function(t){var e=this.jn;if(!e.D(t)){t.w()&&t.width!==0&&t.height!==0||ne("Invalid Panel.gridCellSize: "+t),this.jn=t.J();var n=this.diagram;n!==null&&this===n.grid&&ku(n),this.N(),this.g("gridCellSize",e,t)}}},gridOrigin:{get:function(){return this.kn},set:function(t){var e=this.kn;if(!e.D(t)){t.w()||ne("Invalid Panel.gridOrigin: "+t),this.kn=t.J();var n=this.diagram;n!==null&&this===n.grid&&ku(n),this.N(),this.g("gridOrigin",e,t)}}},graduatedMin:{get:function(){return this.ra!==null?this.ra.lq:0},set:function(t){var e=this.graduatedMin;e!==t&&(this.ra===null&&(this.ra=new uh),this.ra.lq=t,this.v(),this.g("graduatedMin",e,t),Ia(this)&&(t=this.part,t!==null&&Vo(this,t,"graduatedRange")))}},graduatedMax:{get:function(){return this.ra!==null?this.ra.F:100},set:function(t){var e=this.graduatedMax;e!==t&&(this.ra===null&&(this.ra=new uh),this.ra.F=t,this.v(),this.g("graduatedMax",e,t),Ia(this)&&(t=this.part,t!==null&&Vo(this,t,"graduatedRange")))}},graduatedRange:{get:function(){return this.graduatedMax-this.graduatedMin}},graduatedTickUnit:{get:function(){return this.ra!==null?this.ra.ia:10},set:function(t){var e=this.graduatedTickUnit;e!==t&&0<t&&(this.ra===null&&(this.ra=new uh),this.ra.ia=t,this.v(),this.g("graduatedTickUnit",e,t))}},graduatedTickBase:{get:function(){return this.ra!==null?this.ra.V:0},set:function(t){var e=this.graduatedTickBase;e!==t&&(this.ra===null&&(this.ra=new uh),this.ra.V=t,this.v(),this.g("graduatedTickBase",e,t))}},graduatedMarks:{get:function(){return this.ra!==null?this.ra.u:null},set:function(t){this.ra!==null?this.ra.u=t:t!==null&&(this.ra=new uh,this.ra.u=t)}},graduatedBounds:{get:function(){return this.ra!==null?this.ra.j:null},set:function(t){this.ra!==null?this.ra.j=t:t!==null&&(this.ra=new uh,this.ra.j=t)}},graduatedIntervals:{get:function(){return this.ra!==null?this.ra.o:null},set:function(t){this.ra!==null?this.ra.o=t:t!==null&&(this.ra=new uh,this.ra.o=t)}},temporaryTextBlock:{get:function(){return this.ra!==null?this.ra.Zh:null},set:function(t){this.ra!==null?this.ra.Zh=t:t!==null&&(this.ra=new uh,this.ra.Zh=t)}},panelLayoutState:{get:function(){return this.F},set:function(t){this.F=t}},Te:{get:function(){return(this.l&8388608)!==0},set:function(t){(this.l&8388608)!==0!==t&&(this.l^=8388608)}},rowDefs:{get:function(){return this.T===null&&(this.T=new Ou),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new Ou),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:j0},set:function(t){var e=this.rowSizing;e!==t&&(this.T===null&&(this.T=new Ou),this.T.ob=t,this.v(),this.g("rowSizing",e,t))}},columnSizing:{get:function(){return this.T!==null?this.T.j:j0},set:function(t){var e=this.columnSizing;e!==t&&(this.T===null&&(this.T=new Ou),this.T.j=t,this.v(),this.g("columnSizing",e,t))}},topIndex:{get:function(){return this.T!==null?this.T.Hb:0},set:function(t){var e=this.topIndex;e!==t&&((!isFinite(t)||0>t)&&ne("Panel.topIndex must be greater than zero and a real number, not: "+t),this.T===null&&(this.T=new Ou),this.T.Hb=t,this.v(),this.g("topIndex",e,t))}},leftIndex:{get:function(){return this.T!==null?this.T.hb:0},set:function(t){var e=this.leftIndex;e!==t&&((!isFinite(t)||0>t)&&ne("Panel.leftIndex must be greater than zero and a real number, not: "+t),this.T===null&&(this.T=new Ou),this.T.hb=t,this.v(),this.g("leftIndex",e,t))}},data:{get:function(){return this.ub},set:function(t){var e=this.ub;if(e!==t){var n=this instanceof li&&!(this instanceof jr);_u(this),this.ub=t;var i=this.diagram;i!==null&&(n?(n=i.partManager,this instanceof pn?(e!==null&&n.bf.remove(e),t!==null&&n.bf.add(t,this)):this instanceof li&&(e!==null&&n.cf.remove(e),t!==null&&n.cf.add(t,this))):(n=this.panel,n!==null&&n.ge!==null&&(e!==null&&n.ge.remove(e),t!==null&&n.ge.add(t,this)))),this.g("data",e,t),i!==null&&i.undoManager.isUndoingRedoing||t!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(t){var e=this.zn;e!==t&&(this.zn=t,this.g("itemIndex",e,t))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(t){this.localBindings!==t&&(this.A===null&&(this.A=new Yd),this.A.nb=t)}},itemArray:{get:function(){return this.Hh},set:function(t){var e=this.Hh;if(e!==t||t!==null&&Ox(this,t)){var n=this.diagram;e!==t&&(n!==null&&e!==null&&gv(n.partManager,this,n),this.Hh=t,n!==null&&t!==null&&mv(n.partManager,this)),this.g("itemArray",e,t),n!==null&&n.undoManager.isUndoingRedoing||Sy(this,t)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(t){if(this.itemTemplateMap===null){if(t===null)return;this.itemTemplateMap=new pt}var e=this.itemTemplateMap.I("");e!==t&&((t instanceof li||t.isPanelMain)&&ne("Panel.itemTemplate must not be a Part or be Panel.isPanelMain: "+t),this.itemTemplateMap.add("",t),this.g("itemTemplate",e,t),t=this.diagram,t!==null&&t.undoManager.isUndoingRedoing||this.mv())}},itemTemplateMap:{get:function(){return this.A!==null?this.A.Pc:null},set:function(t){var e=this.itemTemplateMap;if(e!==t){for(var n=t.iterator;n.next(););or(this),this.A.Pc=t,this.g("itemTemplateMap",e,t),t=this.diagram,t!==null&&t.undoManager.isUndoingRedoing||this.mv()}}},itemCategoryProperty:{get:function(){return this.A!==null?this.A.Oc:"category"},set:function(t){var e=this.itemCategoryProperty;e!==t&&(or(this),this.A.Oc=t,this.g("itemCategoryProperty",e,t))}},isAtomic:{get:function(){return(this.l&1048576)!==0},set:function(t){var e=(this.l&1048576)!==0;e!==t&&(this.l^=1048576,this.g("isAtomic",e,t))}},isClipping:{get:function(){return(this.l&2097152)!==0},set:function(t){var e=(this.l&2097152)!==0;e!==t&&(this.l^=2097152,this instanceof Ki&&(this.tb=null),this.v(),this.g("isClipping",e,t))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(t){var e=(this.l&33554432)!==0;e!==t&&(this.l^=33554432,this.v(),this.g("isOpposite",e,t))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(t){var e=(this.l&4194304)!==0;if(e!==t){var n=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",e,t),e=this.diagram,e!==null&&e.undoManager.isUndoingRedoing||n&&B0(this,this,t)}}},alignmentFocusName:{get:function(){return this.$e},set:function(t){var e=this.$e;e!==t&&(this.$e=t,this.v(),this.g("alignmentFocusName",e,t))}}}),te.Object.defineProperties(sn,{Position:{get:function(){return Qu.I("Position")}},Horizontal:{get:function(){return Qu.I("Horizontal")}},Vertical:{get:function(){return Qu.I("Vertical")}},Spot:{get:function(){return Qu.I("Spot")}},Auto:{get:function(){return Qu.I("Auto")}},Table:{get:function(){return Qu.I("Table")}},Viewbox:{get:function(){return Qu.I("Viewbox")}},TableRow:{get:function(){return Qu.I("TableRow")}},TableColumn:{get:function(){return Qu.I("TableColumn")}},Link:{get:function(){return Qu.I("Link")}},Grid:{get:function(){return Qu.I("Grid")}},Graduated:{get:function(){return Qu.I("Graduated")}}}),sn.prototype.rebuildItemElements=sn.prototype.mv,sn.prototype.findItemPanelForData=sn.prototype.sx,sn.prototype.updateTargetBindings=sn.prototype.La,sn.prototype.copyTemplate=sn.prototype.Uy,sn.prototype.graduatedValueForPoint=sn.prototype.Gz,sn.prototype.graduatedPointForValue=sn.prototype.Fz,sn.prototype.findColumnForLocalX=sn.prototype.fz,sn.prototype.findRowForLocalY=sn.prototype.nz,sn.prototype.addColumnDefinition=sn.prototype.By,sn.prototype.addRowDefinition=sn.prototype.Hy,sn.prototype.addRowColumnDefinition=sn.prototype.Gy,sn.prototype.removeColumnDefinition=sn.prototype.jA,sn.prototype.getColumnDefinition=sn.prototype.Eb,sn.prototype.removeRowDefinition=sn.prototype.oA,sn.prototype.getRowDefinition=sn.prototype.Fb,sn.prototype.removeAt=sn.prototype.mb,sn.prototype.remove=sn.prototype.remove,sn.prototype.insertAt=sn.prototype.Gb,sn.prototype.elt=sn.prototype.M,sn.prototype.add=sn.prototype.add,sn.prototype.findObject=sn.prototype.fb,sn.prototype.findInVisualTree=sn.prototype.Nl,sn.prototype.walkVisualTreeFrom=sn.prototype.qm,sn.prototype.findMainElement=sn.prototype.Pb;var wy=!1,Cy=null,Qu=new pt;sn.className="Panel",sn.definePanelLayout=Nc,Nc("Position",new E0),Nc("Vertical",new k0),Nc("Auto",new I0),Nc("Link",new D0);function uh(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}uh.prototype.copy=function(){var t=new uh;return t.lq=this.lq,t.F=this.F,t.ia=this.ia,t.V=this.V,t.u=this.u,t.j=this.j,t.o=this.o,t.Zh=this.Zh,t},uh.className="GradPanelSettings";function Ou(){this.Pc=[],this.Oc=[],this.j=this.ob=j0,this.hb=this.Hb=0,this.Qp=ga,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}Ou.prototype.copy=function(t){for(var e=new Ou,n=this.Pc,i=n.length,r=e.Pc,o=0;o<i;o++)if(n[o]!==void 0){var s=n[o].copy();s.wi(t),r[o]=s}for(n=this.Oc,i=n.length,r=e.Oc,o=0;o<i;o++)n[o]!==void 0&&(s=n[o].copy(),s.wi(t),r[o]=s);return e.ob=this.ob,e.j=this.j,e.Hb=this.Hb,e.hb=this.hb,e.Qp=this.Qp.J(),e.Ha=this.Ha,e.ia=this.ia,e.V=this.V,e.F=this.F,e.u=this.u,e.o=this.o,e.nb=this.nb,e},Ou.className="TablePanelSettings";function Ys(t){nr(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=_r,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Og,this.hg=Zi,this.lo=this.dg=null,this.mo=NaN,this.Ma=this.tj=null,this.Pm=!1,t&&(Object.assign(this,t),t.column!==void 0?(this.isRow=!1,this.index=t.column):t.row!==void 0&&(this.isRow=!0,this.index=t.row))}Ys.prototype.copy=function(){var t=new Ys;return t.uq=this.uq,t.Za=this.Za,t.Hc=this.Hc,t.jj=this.jj,t.hj=this.hj,t.Jb=this.Jb,t.oa=this.oa,t.oc=this.oc,t.pa=this.pa,t.hg=this.hg,t.oo=this.oo,this.dg===null?t.dg=null:t.dg=this.dg.J(),t.lo=this.lo,t.mo=this.mo,t.tj=null,this.tj!==null&&(t.separatorDashArray=be(this.separatorDashArray)),t.Ma=this.Ma,t.Pm=this.Pm,t.be=this.be,t};function z0(t,e){e.isRow?t.height=e.height:t.width=e.width,t.minimum=e.minimum,t.maximum=e.maximum,t.alignment=e.alignment,t.stretch=e.stretch,t.sizing=e.sizing,t.dg=e.separatorPadding===null?null:e.separatorPadding.J(),t.separatorStroke=e.separatorStroke,t.separatorStrokeWidth=e.separatorStrokeWidth,t.tj=null,e.separatorDashArray&&(t.tj=be(e.separatorDashArray)),t.background=e.background,t.coversSeparators=e.coversSeparators,t.be=e.be}D=Ys.prototype,D.qb=function(t){t.classType===Ys&&(this.sizing=t)},D.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+Br(this)},D.wi=function(t){this.Me=t},D.Io=function(t){var e=0,n=this.Me;if(this.index!==t&&(t=this.separatorStroke,t===null&&n!==null&&(t=this.isRow?n.defaultRowSeparatorStroke:n.defaultColumnSeparatorStroke),t!==null&&(e=this.separatorStrokeWidth,isNaN(e)&&(n!==null?e=this.isRow?n.defaultRowSeparatorStrokeWidth:n.defaultColumnSeparatorStrokeWidth:e=0))),t=this.dg,t===null)if(n!==null)t=n.defaultSeparatorPadding;else return e;return e+(this.isRow?t.top:t.left)},D.Wc=function(){var t=0,e=this.Me,n=0,i=this.isRow;if(e!==null&&e.type===sn.Table)for(var r=i?e.rowDefs.length:e.colDefs.length,o=0;o<r;o++){var s=i?e.rowDefs[o]:e.colDefs[o];if(s!==void 0&&s.oa!==0){n=s.index;break}}if(this.index!==n&&(n=this.separatorStroke,n===null&&e!==null&&(n=i?e.defaultRowSeparatorStroke:e.defaultColumnSeparatorStroke),n!==null&&(t=this.separatorStrokeWidth,isNaN(t)&&(e!==null?t=i?e.defaultRowSeparatorStrokeWidth:e.defaultColumnSeparatorStrokeWidth:t=0))),i=this.dg,i===null)if(e!==null)i=e.defaultSeparatorPadding;else return t;return t+(this.isRow?i.top+i.bottom:i.left+i.right)},D.Ob=function(t,e,n){var i=this.Me;if(i!==null&&(i.cb(Ro,t,this,e,n,void 0,void 0),this.be!==null&&(e=i.diagram,e!==null&&!e.skipsModelSourceBindings&&(i=i.ih(),i!==null&&(e=i.data,e!==null)))))for(n=this.be.iterator;n.next();)n.value.sp(this,e,t,i)};function $0(t){if(t.sizing===Og){var e=t.Me;return t.isRow?e.rowSizing:e.columnSizing}return t.sizing}D.bind=function(t,e,n,i){var r=null;return typeof t=="string"?r=new zs(t,e,n,i):r=t,r.xd=this,t=this.panel,t!==null&&(e=t.ih(),e!==null&&by(e)&&ne("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+r+" on "+t)),this.be===null&&(this.be=new Re),this.be.add(r),this},te.Object.defineProperties(Ys.prototype,{panel:{get:function(){return this.Me}},isRow:{get:function(){return this.uq},set:function(t){this.uq=t}},index:{get:function(){return this.Za},set:function(t){this.Za=t}},height:{get:function(){return this.Hc},set:function(t){var e=this.Hc;e!==t&&(0>t&&Fn(t,">= 0",Ys,"height"),this.Hc=t,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("height",e,t))}},width:{get:function(){return this.Hc},set:function(t){var e=this.Hc;e!==t&&(0>t&&Fn(t,">= 0",Ys,"width"),this.Hc=t,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("width",e,t))}},minimum:{get:function(){return this.jj},set:function(t){var e=this.jj;e!==t&&((0>t||!isFinite(t))&&Fn(t,">= 0",Ys,"minimum"),this.jj=t,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("minimum",e,t))}},maximum:{get:function(){return this.hj},set:function(t){var e=this.hj;e!==t&&(0>t&&Fn(t,">= 0",Ys,"maximum"),this.hj=t,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",e,t))}},alignment:{get:function(){return this.Jb},set:function(t){var e=this.Jb;e.D(t)||(this.Jb=t.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",e,t))}},stretch:{get:function(){return this.hg},set:function(t){var e=this.hg;e!==t&&(this.hg=t,this.panel!==null&&this.panel.v(),this.Ob("stretch",e,t))}},separatorPadding:{get:function(){return this.dg},set:function(t){typeof t=="number"&&(t=new ri(t));var e=this.dg;t!==null&&e!==null&&e.D(t)||(t!==null&&(t=t.J()),this.dg=t,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",e,t))}},separatorStroke:{get:function(){return this.lo},set:function(t){var e=this.lo;e!==t&&(t!==null&&Jd(t,"RowColumnDefinition.separatorStroke"),t instanceof ro&&t.freeze(),this.lo=t,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",e,t))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(t){var e=this.mo;e!==t&&(this.mo=t,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",e,t))}},separatorDashArray:{get:function(){return this.tj},set:function(t){var e=this.tj;if(e!==t){if(t!==null){for(var n=t.length,i=0,r=0;r<n;r++){var o=t[r];typeof o=="number"&&0<=o&&isFinite(o)||ne("separatorDashArray value "+o+" at index "+r+" must be a positive number or zero."),i+=o}if(i===0){if(e===null)return;t=null}}this.tj=t,this.panel!==null&&this.panel.N(),this.Ob("separatorDashArray",e,t)}}},background:{get:function(){return this.Ma},set:function(t){var e=this.Ma;e!==t&&(t!==null&&Jd(t,"RowColumnDefinition.background"),t instanceof ro&&t.freeze(),this.Ma=t,this.panel!==null&&this.panel.N(),this.Ob("background",e,t))}},coversSeparators:{get:function(){return this.Pm},set:function(t){var e=this.Pm;e!==t&&(this.Pm=t,this.panel!==null&&this.panel.N(),this.Ob("coversSeparators",e,t))}},sizing:{get:function(){return this.oo},set:function(t){var e=this.oo;e!==t&&(this.oo=t,this.panel!==null&&this.panel.v(),this.Ob("sizing",e,t))}},actual:{get:function(){return this.oa},set:function(t){this.oa=isNaN(this.Hc)?Math.max(Math.min(this.hj,t),this.jj):Math.max(Math.min(this.hj,this.Hc),this.jj)}},measured:{get:function(){return this.oc},set:function(t){this.oc=t}},total:{get:function(){return this.oa+this.Wc()}},position:{get:function(){return this.pa},set:function(t){this.pa=t}}}),Ys.prototype.computeEffectiveSpacing=Ys.prototype.Wc,Ys.prototype.computeEffectiveSpacingTop=Ys.prototype.Io;var Og=new le(Ys,"Default",0),Cf=new le(Ys,"None",1),j0=new le(Ys,"ProportionalExtra",2);Ys.className="RowColumnDefinition",Ys.Default=Og,Ys.None=Cf,Ys.ProportionalExtra=j0;function Qi(t,e){Wt.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 t=="string"?this.figure=t:t&&Object.assign(this,t),e&&Object.assign(this,e)}Jn(Qi,Wt),Qi.prototype.cloneProtected=function(t){Wt.prototype.cloneProtected.call(this,t),t.ua=this.ua,t.Rd=this.Rd,t.an=this.an,t.Ui=this.Ui,t.xc=this.xc,t.ig=this.ig,this.Yg!==null&&(t.Yg=be(this.Yg)),this.Na!==null&&(t.Na=this.Na.nc?this.Na:this.Na.copy()),t.Un=this.Un,t.Vn=this.Vn,this.fa!==null&&(t.fa=this.fa.copy())};function Id(t){t.Na===null?t.Na=new Dg:t.Na.nc&&(t.Na=t.Na.copy())}D=Qi.prototype,D.th=function(){Wt.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},D.qb=function(t){t===Xe||t===Kn||t===Cr||t===Zi?this.geometryStretch=t:Wt.prototype.qb.call(this,t)},D.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+Br(this)};function Op(t,e,n,i){var r=n.length;if(!(4>r)){var o=i.measuredBounds,s=Math.max(1,o.width);o=o.height;for(var l=n[0],u=n[1],d,p,v,E,M,R,j=0,at=Le(),q=2;q<r;q+=2)d=n[q],p=n[q+1],v=d-l,l=p-u,v===0&&(v=.001),E=l/v,M=Math.atan2(l,v),R=Math.sqrt(v*v+l*l),at.push([v,M,E,R]),j+=R,l=d,u=p;l=n[0],u=n[1],v=i.measuredBounds.width,i instanceof Qi&&(v-=i.strokeWidth),1>v&&(v=1),r=n=v,d=s/2,p=d!==0,q=0,R=at[q],v=R[0],M=R[1],E=R[2],R=R[3];for(var gt=0;.1<=j;){if(gt===0&&(p?(r=n,r-=d,j-=d,p=!1):r=n,r===0&&(r=1)),r>j){tn(at);return}r>R?(gt=r-R,r=R):gt=0;var wt=Math.sqrt(r*r/(1+E*E));if(0>v&&(wt=-wt),l+=wt,u+=E*wt,t.translate(l,u),t.rotate(M),t.translate(-(s/2),-(o/2)),gt===0&&i.hh(t,e),t.translate(s/2,o/2),t.rotate(-M),t.translate(-l,-u),j-=r,R-=r,gt!==0){if(q++,q===at.length){tn(at);return}R=at[q],v=R[0],M=R[1],E=R[2],R=R[3],r=gt}}tn(at)}}D.hh=function(t,e){var n=this.xc,i=this.Ui;if(n!==null||i!==null){var r=this.ua;if(r!==null){t.yc();var o=this.actualBounds,s=this.naturalBounds;i!==null&&Ss(this,t,i,!0,!1,s,o);var l=this.part,u=this.ig;if(n===null||u!==0||l===null||!this.isPanelMain&&l.Pb()!==this||(u=l.type===sn.Link&&l instanceof jr&&l.category==="Selection"&&l.adornedObject instanceof Qi&&l.adornedPart.Pb()===l.adornedObject?l.adornedObject.strokeWidth:0),u===0&&(n=null),n!==null&&u!==0&&(Ss(this,t,n,!1,!1,s,o),t.lineWidth=u,t.lineJoin=this.strokeJoin,t.lineCap=this.strokeCap,t.miterLimit=this.strokeMiterLimit),o=!1,l&&e.Gf("drawShadows")&&(o=l.isShadowed),t.Il===!1&&(o=!1),l=!0,n===null||i!==null&&i!=="transparent"||(l=!1),s=!1,u=this.strokeDashArray,u!==null&&(s=!0,t.js(u,this.strokeDashOffset)),r.type===mn.j)t.beginPath(),t.moveTo(r.startX,r.startY),t.lineTo(r.endX,r.endY),n!==null&&t.jk(),t.Se();else if(r.type===mn.u){var d=r.startX;u=r.startY;var p=r.endX,v=r.endY;r=Math.min(d,p);var E=Math.min(u,v);d=Math.abs(p-d),u=Math.abs(v-u),t.beginPath(),t.rect(r,E,d,u),i!==null&&t.ng(i),n!==null&&(l&&o&&Fc(t),t.jk(),l&&o&&oh(t)),t.Se()}else if(r.type===mn.F)d=r.startX,u=r.startY,p=r.endX,v=r.endY,r=Math.abs(p-d)/2,E=Math.abs(v-u)/2,d=Math.min(d,p)+r,u=Math.min(u,v)+E,t.beginPath(),t.moveTo(d,u-E),t.bezierCurveTo(d+Vt.wg*r,u-E,d+r,u-Vt.wg*E,d+r,u),t.bezierCurveTo(d+r,u+Vt.wg*E,d+Vt.wg*r,u+E,d,u+E),t.bezierCurveTo(d-Vt.wg*r,u+E,d-r,u+Vt.wg*E,d-r,u),t.bezierCurveTo(d-r,u-Vt.wg*E,d-Vt.wg*r,u-E,d,u-E),t.closePath(),i!==null&&t.ng(i),n!==null&&(l&&o&&Fc(t),t.jk(),l&&o&&oh(t)),t.Se();else if(r.type===mn.o)for(r=r.figures,u=r.length,E=0;E<u;E++){d=r.s[E],t.beginPath(),t.moveTo(d.startX,d.startY),p=d.segments.s,v=p.length;for(var M=null,R=0;R<v;R++){var j=p[R];switch(j.type){case xs:t.moveTo(j.endX,j.endY);break;case xo:t.lineTo(j.endX,j.endY);break;case ia:t.bezierCurveTo(j.point1X,j.point1Y,j.point2X,j.point2Y,j.endX,j.endY);break;case aa:t.quadraticCurveTo(j.point1X,j.point1Y,j.endX,j.endY);break;case Tr:if(j.radiusX===j.radiusY){var at=Math.PI/180;t.arc(j.point1X,j.point1Y,j.radiusX,j.startAngle*at,(j.startAngle+j.sweepAngle)*at,0>j.sweepAngle,M!==null?M.endX:d.startX,M!==null?M.endY:d.startY)}else if(M=ja(j,d),at=M.length,at===0)t.lineTo(j.centerX,j.centerY);else for(var q=0;q<at;q++){var gt=M[q];q===0&&t.lineTo(gt[0],gt[1]),t.bezierCurveTo(gt[2],gt[3],gt[4],gt[5],gt[6],gt[7])}break;case Wa:if(q=at=0,M!==null&&M.type===Tr){if(M=ja(M,d),gt=M.length,gt===0){t.lineTo(j.endX,j.endY);break}M=M[gt-1]||null,M!==null&&(at=M[6],q=M[7])}else at=M!==null?M.endX:d.startX,q=M!==null?M.endY:d.startY;if(M=Ma(j,d,at,q),at=M.length,at===0){t.lineTo(j.endX,j.endY);break}for(q=0;q<at;q++)gt=M[q],t.bezierCurveTo(gt[2],gt[3],gt[4],gt[5],gt[6],gt[7]);break;default:ne("Segment not of valid type: "+j.type)}j.isClosed&&t.closePath(),M=j}p=d.isFilled,o?d.isShadowed?(p===!0&&i!=="transparent"&&i!==null&&t.ng(i,d.isEvenOdd),n!==null&&(p&&l&&Fc(t),t.jk(),p&&l&&oh(t))):(Fc(t),p&&i!=="transparent"&&i!==null&&t.ng(i,d.isEvenOdd),n!==null&&t.jk(),oh(t)):(p&&i!==null&&t.ng(i,d.isEvenOdd),n!==null&&t.jk()),t.Se(E)}if(s&&t.fs(),this.pathPattern!==null){if(n=this.pathPattern,n.measure(1/0,1/0),i=n.measuredBounds,n.arrange(0,0,i.width,i.height),o=this.geometry,t.save(),t.beginPath(),i=Le(),o.type===mn.j)i.push(o.startX),i.push(o.startY),i.push(o.endX),i.push(o.endY),Op(t,e,i,n);else if(o.type===mn.o)for(o=o.figures.iterator;o.next();){for(l=o.value,i.length=0,i.push(l.startX),i.push(l.startY),s=l.startX,r=l.startY,u=s,E=r,d=l.segments.s,p=d.length,v=0;v<p;v++){switch(R=d[v],R.type){case xs:Op(t,e,i,n),i.length=0,i.push(R.endX),i.push(R.endY),s=R.endX,r=R.endY,u=s,E=r;break;case xo:i.push(R.endX),i.push(R.endY),s=R.endX,r=R.endY;break;case ia:Vt.Qe(s,r,R.point1X,R.point1Y,R.point2X,R.point2Y,R.endX,R.endY,.5,i),s=R.endX,r=R.endY;break;case aa:Vt.ep(s,r,R.point1X,R.point1Y,R.endX,R.endY,.5,i),s=R.endX,r=R.endY;break;case Tr:if(j=ja(R,l),M=j.length,M===0){i.push(R.centerX),i.push(R.centerY),s=R.centerX,r=R.centerY;break}for(at=0;at<M;at++)q=j[at],Vt.Qe(s,r,q[2],q[3],q[4],q[5],q[6],q[7],.5,i),s=q[6],r=q[7];break;case Wa:if(j=Ma(R,l,s,r),M=j.length,M===0){i.push(R.endX),i.push(R.endY),s=R.endX,r=R.endY;break}for(at=0;at<M;at++)q=j[at],Vt.Qe(s,r,q[2],q[3],q[4],q[5],q[6],q[7],.5,i),s=q[6],r=q[7];break;default:ne("Segment not of valid type: "+R.type)}R.isClosed&&(i.push(u),i.push(E),Op(t,e,i,n))}Op(t,e,i,n)}else if(o.type===mn.u)i.push(o.startX),i.push(o.startY),i.push(o.endX),i.push(o.startY),i.push(o.endX),i.push(o.endY),i.push(o.startX),i.push(o.endY),i.push(o.startX),i.push(o.startY),Op(t,e,i,n);else if(o.type===mn.F){if(r=new Ls,r.startX=o.endX,r.startY=(o.startY+o.endY)/2,s=new Lr(Tr),s.startAngle=0,s.sweepAngle=360,s.centerX=(o.startX+o.endX)/2,s.centerY=(o.startY+o.endY)/2,s.radiusX=Math.abs(o.startX-o.endX)/2,s.radiusY=Math.abs(o.startY-o.endY)/2,r.add(s),o=ja(s,r),l=o.length,l===0)i.push(s.centerX),i.push(s.centerY);else for(s=r.startX,r=r.startY,u=0;u<l;u++)E=o[u],Vt.Qe(s,r,E[2],E[3],E[4],E[5],E[6],E[7],.5,i),s=E[6],r=E[7];Op(t,e,i,n)}tn(i),t.restore(),t.Vc(!1)}}}},D.kk=function(t,e,n){return!Wt.prototype.kk.call(this,t,e,n)||this.xc===null&&this.Ui===null||this.ua===null||this.pathPattern!==null||this.geometry.figures.length!==this.svg.getElementsByTagName("path").length?!1:(t.Hl=this.svg,this.hh(t,e),t.Hl=null,!0)},D.nk=function(t){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:Wt.prototype.nk.call(this,t)},D.Dv=function(t,e){if(t.nodeName!=="g")t.setAttributeNS(null,"filter",e);else{t=t.getElementsByTagName("path");for(var n=0;n<t.length;n++)t[n].setAttributeNS(null,"filter",e)}},D.ga=function(t,e){if(e===void 0&&(e=new $),t instanceof Wn){t.Mc()&&ne("getDocumentPoint Spot must be a real, specific Spot, not: "+t.toString());var n=this.naturalBounds,i=this.strokeWidth;e.h(t.x*(n.width+i)-i/2+n.x+t.offsetX,t.y*(n.height+i)-i/2+n.y+t.offsetY)}else e.set(t);return this.oe.Ga(e),e},D.mi=function(t){t===void 0&&(t=new ke);var e=this.naturalBounds,n=this.oe;e=ke.allocAt(e.x,e.y,e.width,e.height);var i=this.strokeWidth;return e.Bc(i/2,i/2),i=$.allocAt(e.x,e.y).transform(n),t.h(i.x,i.y,0,0),i.h(e.right,e.y).transform(n),Ur(t,i.x,i.y,0,0),i.h(e.right,e.bottom).transform(n),Ur(t,i.x,i.y,0,0),i.h(e.x,e.bottom).transform(n),Ur(t,i.x,i.y,0,0),ke.free(e),$.free(i),t},D.gh=function(t,e){var n=this.geometry;if(n===null||this.fill===null&&this.stroke===null)return!1;var i=n.bounds,r=this.strokeWidth/2;n.type!==mn.j||e||(r+=2);var o=ke.alloc();if(o.assign(i),o.Bc(r+2,r+2),!o.ca(t))return ke.free(o),!1;if(i=r+1e-4,n.type===mn.j)return this.stroke===null||(i=(n.endX-n.startX)*(t.x-n.startX)+(n.endY-n.startY)*(t.y-n.startY),0>(n.startX-n.endX)*(t.x-n.endX)+(n.startY-n.endY)*(t.y-n.endY)||0>i)?!1:(ke.free(o),Vt.Yb(n.startX,n.startY,n.endX,n.endY,r,t.x,t.y));if(n.type===mn.u){e=n.startX;var s=n.startY,l=n.endX;if(n=n.endY,o.x=Math.min(e,l),o.y=Math.min(s,n),o.width=Math.abs(l-e),o.height=Math.abs(n-s),this.fill===null){if(o.Bc(-i,-i),o.ca(t))return ke.free(o),!1;o.Bc(i,i)}return this.stroke!==null&&o.Bc(r,r),t=o.ca(t),ke.free(o),t}if(n.type===mn.F){s=n.startX,r=n.startY,l=n.endX;var u=n.endY;if(n=Math.min(s,l),e=Math.min(r,u),s=Math.abs(l-s)/2,r=Math.abs(u-r)/2,n=t.x-(n+s),e=t.y-(e+r),this.fill===null){if(s-=i,r-=i,0>=s||0>=r||1>=n*n/(s*s)+e*e/(r*r))return ke.free(o),!1;s+=i,r+=i}return this.stroke!==null&&(s+=i,r+=i),ke.free(o),0>=s||0>=r?!1:1>=n*n/(s*s)+e*e/(r*r)}if(n.type===mn.o)return ke.free(o),this.fill===null?lu(n,t.x,t.y,r):ss(n,t,r,1<this.strokeWidth,e);ne("Unknown Geometry type: "+n.type)},D.Wl=function(t,e,n,i){var r=this.desiredSize,o=this.ig;if(t=Math.max(t,0),e=Math.max(e,0),this.Rd!==null)var s=this.geometry.bounds;else{var l=this.figure,u=Rg[l];if(u===void 0){var d=Vt.Ze[l];typeof d=="string"&&(d=Vt.Ze[d]),typeof d=="function"?(u=d(null,100,100),Rg[l]=u):ne("Unsupported Figure: "+l)}s=u.bounds}l=s.width,u=s.height,d=s.width;var p=s.height;switch(Al(this,!0)){case Xe:i=n=0;break;case rn:d=Math.max(t-o,0),p=Math.max(e-o,0);break;case ei:d=Math.max(t-o,0),i=0;break;case yi:n=0,p=Math.max(e-o,0)}isFinite(r.width)&&(d=r.width),isFinite(r.height)&&(p=r.height);var v=this.maxSize,E=this.minSize;switch(n=Math.max(n-o,E.width),i=Math.max(i-o,E.height),d=Math.min(v.width,d),p=Math.min(v.height,p),d=isFinite(d)?Math.max(n,d):Math.max(l,n),p=isFinite(p)?Math.max(i,p):Math.max(u,i),n=Lg(this),n){case Xe:break;case rn:l=d,u=p;break;case Kn:n=Math.min(d/l,p/u),isFinite(n)||(n=1),l*=n,u*=n;break;default:ne(n+" is not a valid geometryStretch.")}this.Rd!==null?(l===0&&(l=.001),u===0&&(u=.001),n=this.Rd!==null?this.Rd:this.ua,s=n.bounds,i=l/s.width,s=u/s.height,isFinite(i)||(i=1),isFinite(s)||(s=1),this.ua=i===1&&s===1?n:n.copy().scale(i,s)):this.ua!==null&&Vt.$(this.ua.Sk,t-o)&&Vt.$(this.ua.Rk,e-o)||(this.ua=Qi.makeGeometry(this,l,u)),s=this.ua.bounds,t===1/0||e===1/0?this.Ge(s.x-o/2,s.y-o/2,t===0&&l===0?0:s.width+o,e===0&&u===0?0:s.height+o):this.Ge(-(o/2),-(o/2),d+o,p+o),r.w()?(d=r.width,p=r.height,d=Math.min(v.width,d),p=Math.min(v.height,p),d=Math.max(E.width,d),p=Math.max(E.height,p),this.dc.h(0,0,d,p)):this.dc.assign(s)};function Lg(t){var e=t.geometryStretch;return t.Rd!==null?e===Zi?rn:e:e===Zi?Rg[t.figure].defaultStretch:e}D.eh=function(t,e,n,i){nl(this,t,e,n,i)},D.rs=function(t,e,n){return this.Sj(t.x,t.y,e.x,e.y,n)},D.Sj=function(t,e,n,i,r){var o=this.transform,s=1/(o.m11*o.m22-o.m12*o.m21),l=o.m22*s,u=-o.m12*s,d=-o.m21*s,p=o.m11*s,v=s*(o.m21*o.dy-o.m22*o.dx),E=s*(o.m12*o.dx-o.m11*o.dy);o=t*l+e*d+v,s=t*u+e*p+E,l=n*l+i*d+v,u=n*u+i*p+E,v=this.ig/2,d=this.ua,d===null&&(this.measure(1/0,1/0),d=this.ua);var M=d.bounds;if(p=!1,d.type===mn.j)if(1.5>=this.strokeWidth)p=Vt.Ve(d.startX,d.startY,d.endX,d.endY,o,s,l,u,r);else{if(d.startX===d.endX?(i=v,p=0):(e=(d.endY-d.startY)/(d.endX-d.startX),p=v/Math.sqrt(1+e*e),i=p*e),e=Le(),t=new $,Vt.Ve(d.startX+i,d.startY+p,d.endX+i,d.endY+p,o,s,l,u,t)&&e.push(t),t=new $,Vt.Ve(d.startX-i,d.startY-p,d.endX-i,d.endY-p,o,s,l,u,t)&&e.push(t),t=new $,Vt.Ve(d.startX+i,d.startY+p,d.startX-i,d.startY-p,o,s,l,u,t)&&e.push(t),t=new $,Vt.Ve(d.endX+i,d.endY+p,d.endX-i,d.endY-p,o,s,l,u,t)&&e.push(t),l=e.length,l===0)return tn(e),!1;for(p=!0,u=1/0,i=0;i<l;i++)t=e[i],n=(t.x-o)*(t.x-o)+(t.y-s)*(t.y-s),n<u&&(u=n,r.x=t.x,r.y=t.y);tn(e)}else if(d.type===mn.u)p=Vt.Ff(M.x-v,M.y-v,M.x+M.width+v,M.y+M.height+v,o,s,l,u,r);else if(d.type===mn.F){e=ke.allocAt(M.x,M.y,M.width,M.height).Bc(v,v);t:if(e.width===0)p=Vt.Ve(e.x,e.y,e.x,e.y+e.height,o,s,l,u,r);else if(e.height===0)p=Vt.Ve(e.x,e.y,e.x+e.width,e.y,o,s,l,u,r);else{if(t=e.width/2,d=e.height/2,i=e.x+t,p=e.y+d,n=9999,o!==l&&(n=(s-u)/(o-l)),9999>Math.abs(n)){if(u=s-p-n*(o-i),0>t*t*n*n+d*d-u*u){r.x=NaN,r.y=NaN,p=!1;break t}v=Math.sqrt(t*t*n*n+d*d-u*u),l=(-(t*t*n*u)+t*d*v)/(d*d+t*t*n*n)+i,t=(-(t*t*n*u)-t*d*v)/(d*d+t*t*n*n)+i,d=n*(l-i)+u+p,u=n*(t-i)+u+p,Math.abs((o-l)*(o-l))+Math.abs((s-d)*(s-d))<Math.abs((o-t)*(o-t))+Math.abs((s-u)*(s-u))?(r.x=l,r.y=d):(r.x=t,r.y=u)}else{if(l=d*d,u=o-i,l-=l/(t*t)*u*u,0>l){r.x=NaN,r.y=NaN,p=!1;break t}u=Math.sqrt(l),l=p+u,u=p-u,Math.abs(l-s)<Math.abs(u-s)?(r.x=o,r.y=l):(r.x=o,r.y=u)}p=!0}ke.free(e)}else if(d.type===mn.o){E=$.alloc();var R=l-o,j=u-s,at=R*R+j*j,q=o,gt=s;if(0<at&&M.contains(q,gt)&&(E.x=q,E.y=gt,this.ca(E)))for(R!==0&&.5>Math.abs(R)?(j*=.5/R,R=.5):j!==0&&.5>Math.abs(j)&&(R*=.5/j,j=.5),q-=R,gt-=j;M.contains(q,gt);)q-=R,gt-=j;for(r.x=l,r.y=u,j=0;j<d.figures.count;j++){var wt=d.figures.s[j],Ot=wt.isFilled?q:o,Gt=wt.isFilled?gt:s,ce=wt.segments;M=wt.startX,R=wt.startY;for(var Mn=M,Un=R,zn=0;zn<ce.count;zn++){var cn=ce.s[zn],We=cn.type,Hi=cn.endX,Ci=cn.endY,Kr=!1;switch(We){case xs:Mn=Hi,Un=Ci;break;case xo:Kr=_0(M,R,Hi,Ci,Ot,Gt,l,u,E);break;case ia:Kr=Vt.Eo(M,R,cn.point1X,cn.point1Y,cn.point2X,cn.point2Y,Hi,Ci,Ot,Gt,l,u,.6,E);break;case aa:Kr=Vt.Eo(M,R,M+2/3*(cn.point1X-M),R+2/3*(cn.point1Y-R),Hi+2/3*(cn.point1X-Hi),Ci+2/3*(cn.point1Y-Ci),Hi,Ci,Ot,Gt,l,u,.6,E);break;case Tr:case Wa:We=cn.type===Tr?ja(cn,wt):Ma(cn,wt,M,R);var Oo=We.length;if(Oo===0){Kr=_0(M,R,cn.type===Tr?cn.centerX:cn.endX,cn.type===Tr?cn.centerY:cn.endY,Ot,Gt,l,u,E);break}for(Ci=null,Hi=0;Hi<Oo;Hi++){if(Ci=We[Hi],Hi===0&&_0(M,R,Ci[0],Ci[1],Ot,Gt,l,u,E)){var ca=U0(Ot,Gt,E,at,r);ca<at&&(at=ca,p=!0)}Vt.Eo(Ci[0],Ci[1],Ci[2],Ci[3],Ci[4],Ci[5],Ci[6],Ci[7],Ot,Gt,l,u,.6,E)&&(ca=U0(Ot,Gt,E,at,r),ca<at&&(at=ca,p=!0))}Hi=Ci[6],Ci=Ci[7];break;default:ne("Unknown Segment type: "+We)}M=Hi,R=Ci,Kr&&(Kr=U0(Ot,Gt,E,at,r),Kr<at&&(at=Kr,p=!0)),cn.isClosed&&(Hi=Mn,Ci=Un,_0(M,R,Hi,Ci,Ot,Gt,l,u,E)&&(cn=U0(Ot,Gt,E,at,r),cn<at&&(at=cn,p=!0)))}}o=n-t,s=i-e,l=Math.sqrt(o*o+s*s),l!==0&&(o/=l,s/=l),r.x-=o*v,r.y-=s*v,$.free(E)}else ne("Unknown Geometry type: "+d.type);return p?(this.transform.Ga(r),!0):!1};function U0(t,e,n,i,r){return t=n.x-t,e=n.y-e,e=t*t+e*e,e<i?(r.x=n.x,r.y=n.y,e):i}function _0(t,e,n,i,r,o,s,l,u){if(Vt.$(t,n)&&Vt.$(e,i)||Vt.$(r,s)&&Vt.$(o,l))return!1;var d=!1,p=(r-s)*(e-i)-(o-l)*(t-n);return p===0?!1:(u.x=((r*l-o*s)*(t-n)-(r-s)*(t*i-e*n))/p,u.y=((r*l-o*s)*(e-i)-(o-l)*(t*i-e*n))/p,(t>n?t-n:n-t)<(e>i?e-i:i-e)?(t=e<i?e:i,e=e<i?i:e,(u.y>t||Vt.$(u.y,t))&&(u.y<e||Vt.$(u.y,e))&&(d=!0)):(e=t<n?t:n,t=t<n?n:t,(u.x>e||Vt.$(u.x,e))&&(u.x<t||Vt.$(u.x,t))&&(d=!0)),d)}D.fh=function(t,e){if(e===void 0)return t.Re(this.actualBounds);var n=this.ua;n===null&&(this.measure(1/0,1/0),n=this.ua),n=n.bounds;var i=this.strokeWidth/2,r=!1,o=$.alloc();return o.h(n.x-i,n.y-i),t.ca(e.Ga(o))&&(o.h(n.x-i,n.bottom+i),t.ca(e.Ga(o))&&(o.h(n.right+i,n.bottom+i),t.ca(e.Ga(o))&&(o.h(n.right+i,n.y-i),t.ca(e.Ga(o))&&(r=!0)))),$.free(o),r},D.Yc=function(t,e){if(this.fh(t,e)||e===void 0&&(e=this.transform,t.Re(this.actualBounds)))return!0;var n=Ti.alloc();n.set(e),n.Vj();var i=t.left,r=t.right,o=t.top;t=t.bottom;var s=$.alloc();if(s.h(i,o),n.Ga(s),this.gh(s,!0)||(s.h(r,o),n.Ga(s),this.gh(s,!0))||(s.h(i,t),n.Ga(s),this.gh(s,!0))||(s.h(r,t),n.Ga(s),this.gh(s,!0)))return $.free(s),!0;var l=$.alloc(),u=$.alloc();return n.set(e),n.bv(this.transform),n.Vj(),l.x=r,l.y=o,l.transform(n),s.x=i,s.y=o,s.transform(n),e=!1,Ad(this,s,l,u)?e=!0:(s.x=r,s.y=t,s.transform(n),Ad(this,s,l,u)?e=!0:(l.x=i,l.y=t,l.transform(n),Ad(this,s,l,u)?e=!0:(s.x=i,s.y=o,s.transform(n),Ad(this,s,l,u)&&(e=!0)))),$.free(s),Ti.free(n),$.free(l),$.free(u),e};function Ad(t,e,n,i){if(!t.rs(e,n,i))return!1;t=e.x,e=e.y;var r=n.x,o=n.y;return n=i.x,i=i.y,t===r?(e<o?(t=e,e=o):t=o,i>=t&&i<=e):(t<r?(i=t,t=r):i=r,n>=i&&n<=t)}D.tx=function(t,e,n){function i(at,q){for(var gt=at.length,wt=0;wt<gt;wt+=2)if(q.zd(at[wt],at[wt+1])>r)return!0;return!1}if(n&&this.fill!==null&&this.gh(t,!0))return!0;var r=t.Bf(e),o=r;if(1.5<this.strokeWidth&&(r=this.strokeWidth/2+Math.sqrt(r),r*=r),e=this.ua,e===null&&(this.measure(1/0,1/0),e=this.ua,e===null))return!1;if(!n){var s=e.bounds,l=s.x,u=s.y,d=s.x+s.width;if(s=s.y+s.height,De(t.x,t.y,l,u)<=r&&De(t.x,t.y,d,u)<=r&&De(t.x,t.y,l,s)<=r&&De(t.x,t.y,d,s)<=r)return!0}if(l=e.startX,u=e.startY,d=e.endX,s=e.endY,e.type===mn.j){if(n=(l-d)*(t.x-d)+(u-s)*(t.y-s),kr(t.x,t.y,l,u,d,s)<=(0<=(d-l)*(t.x-l)+(s-u)*(t.y-u)&&0<=n?r:o))return!0}else{if(e.type===mn.u)return e=!1,n&&(e=kr(t.x,t.y,l,u,l,s)<=r||kr(t.x,t.y,l,u,d,u)<=r||kr(t.x,t.y,d,u,d,s)<=r||kr(t.x,t.y,l,s,d,s)<=r),e;if(e.type===mn.F){e=t.x-(l+d)/2,o=t.y-(u+s)/2;var p=Math.abs(d-l)/2,v=Math.abs(s-u)/2;if(p===0||v===0)return kr(t.x,t.y,l,u,d,s)<=r;if(n){if(t=Vt.$y(p,v,e,o),t*t<=r)return!0}else return!(De(e,o,-p,0)>=r||De(e,o,0,-v)>=r||De(e,o,0,v)>=r||De(e,o,p,0)>=r)}else if(e.type===mn.o){if(d=e.bounds,o=d.x,l=d.y,u=d.x+d.width,d=d.y+d.height,t.x>u&&t.x<o&&t.y>d&&t.y<l&&kr(t.x,t.y,o,l,o,d)>r&&kr(t.x,t.y,o,l,u,l)>r&&kr(t.x,t.y,u,d,o,d)>r&&kr(t.x,t.y,u,d,u,l)>r)return!1;if(o=Math.sqrt(r),n){if(this.fill===null?lu(e,t.x,t.y,o):ss(e,t,o,!0,!1))return!0}else{for(n=e.figures,e=0;e<n.count;e++){if(o=n.s[e],s=o.startX,p=o.startY,t.zd(s,p)>r)return!1;for(l=o.segments.s,u=l.length,d=0;d<u;d++)switch(v=l[d],v.type){case xs:case xo:if(s=v.endX,p=v.endY,t.zd(s,p)>r)return!1;break;case ia:var E=Le();if(Vt.Qe(s,p,v.point1X,v.point1Y,v.point2X,v.point2Y,v.endX,v.endY,.8,E),s=i(E,t),tn(E),s||(s=v.endX,p=v.endY,t.zd(s,p)>r))return!1;break;case aa:if(E=Le(),Vt.ep(s,p,v.point1X,v.point1Y,v.endX,v.endY,.8,E),s=i(E,t),tn(E),s||(s=v.endX,p=v.endY,t.zd(s,p)>r))return!1;break;case Tr:case Wa:E=v.type===Tr?ja(v,o):Ma(v,o,s,p);var M=E.length;if(M===0){if(s=v.type===Tr?v.centerX:v.endX,p=v.type===Tr?v.centerY:v.endY,t.zd(s,p)>r)return!1;break}v=null;for(var R=Le(),j=0;j<M;j++)if(v=E[j],R.length=0,Vt.Qe(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],.8,R),i(R,t))return tn(R),!1;tn(R),v!==null&&(s=v[6],p=v[7]);break;default:ne("Unknown Segment type: "+v.type)}}return!0}}}return!1},D.qc=function(){this.ua=null},D.kq=function(){return this.ig};function Ey(t){var e=t.diagram;e!==null&&e.undoManager.isUndoingRedoing||(t.segmentOrientation=Lf,t.toArrow!=="None"?(t.segmentIndex=-1,t.alignmentFocus=qr):t.fromArrow!=="None"&&(t.segmentIndex=0,t.alignmentFocus=new Wn(1-qr.x,qr.y)))}Qi.makeGeometry=function(t,e,n){if(t.toArrow!=="None")var i=zc[t.toArrow];else t.fromArrow!=="None"?i=zc[t.fromArrow]:(i=Vt.Ze[t.figure],typeof i=="string"&&(i=Vt.Ze[i]),i===void 0&&ne("Unknown Shape.figure: "+t.figure),i=i(t,e,n),i.Sk=e,i.Rk=n);if(i===null){var r=Vt.Ze.Rectangle;typeof r=="function"&&(i=r(t,e,n))}return i};function Ty(t){var e=zc[t];if(e===void 0){var n=t.toLowerCase();if(n==="none")return"None";if(e=zc[n],e===void 0){var i=null,r;for(r in Vt.um)if(r.toLowerCase()===n){i=r;break}if(i!==null)return t=mn.parse(Vt.um[i],!1),zc[i]=t,n!==i&&(zc[n]=i),i}}return typeof e=="string"?e:e instanceof mn?t:null}te.Object.defineProperties(Qi.prototype,{geometry:{get:function(){return this.ua!==null?this.ua:this.Rd},set:function(t){var e=this.ua,n=this.Rd;if(e!==t){t!==null?this.Rd=this.ua=t.freeze():this.Rd=this.ua=null;var i=this.part;i!==null&&(i.ag=NaN),this.v(),this.g("geometry",e||n,t),Ia(this)&&(t=this.part,t!==null&&Vo(this,t,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(t){t=mn.parse(t);var e=t.normalize();this.geometry=t,this.position=t=$.allocAt(-e.x,-e.y),$.free(t)}},isGeometryPositioned:{get:function(){return(this.l&1048576)!==0},set:function(t){var e=(this.l&1048576)!==0;e!==t&&(this.l^=1048576,this.v(),this.g("isGeometryPositioned",e,t))}},fill:{get:function(){return this.Ui},set:function(t){var e=this.Ui;e!==t&&(t!==null&&Jd(t,"Shape.fill"),t instanceof ro&&t.freeze(),this.Ui=t,this.N(),this.g("fill",e,t))}},stroke:{get:function(){return this.xc},set:function(t){var e=this.xc;e!==t&&(t!==null&&Jd(t,"Shape.stroke"),t instanceof ro&&t.freeze(),this.xc=t,this.N(),this.g("stroke",e,t))}},strokeWidth:{get:function(){return this.ig},set:function(t){var e=this.ig;if(e!==t)if(0<=t){this.ig=t,this.v();var n=this.part;n!==null&&(n.ag=NaN),this.g("strokeWidth",e,t)}else Fn(t,"value >= 0",Qi,"strokeWidth:value")}},strokeCap:{get:function(){return this.Na!==null?this.Na.Hr:"butt"},set:function(t){var e=this.strokeCap;e!==t&&(typeof t!="string"||t!=="butt"&&t!=="round"&&t!=="square"?Fn(t,'"butt", "round", or "square"',Qi,"strokeCap"):(Id(this),this.Na.Hr=t,this.N(),this.g("strokeCap",e,t)))}},strokeJoin:{get:function(){return this.Na!==null?this.Na.Ir:"miter"},set:function(t){var e=this.strokeJoin;e!==t&&(typeof t!="string"||t!=="miter"&&t!=="bevel"&&t!=="round"?Fn(t,'"miter", "bevel", or "round"',Qi,"strokeJoin"):(Id(this),this.Na.Ir=t,this.N(),this.g("strokeJoin",e,t)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(t){var e=this.strokeMiterLimit;if(e!==t&&1<=t){Id(this),this.Na.Jr=t,this.N();var n=this.part;n!==null&&(n.ag=NaN),this.g("strokeMiterLimit",e,t)}}},strokeDashArray:{get:function(){return this.Yg},set:function(t){var e=this.Yg;if(e!==t){if(t!==null){for(var n=t.length,i=0,r=0;r<n;r++){var o=t[r];0<=o&&isFinite(o)||ne("strokeDashArray:value "+o+" at index "+r+" must be a positive number or zero."),i+=o}if(i===0){if(e===null)return;t=null}}this.Yg=t,this.N(),this.g("strokeDashArray",e,t)}}},strokeDashOffset:{get:function(){return this.Na!==null?this.Na.uj:0},set:function(t){var e=this.strokeDashOffset;e!==t&&0<=t&&(Id(this),this.Na.uj=t,this.N(),this.g("strokeDashOffset",e,t))}},figure:{get:function(){return this.an},set:function(t){var e=this.an;if(e!==t){var n=Vt.Ze[t];typeof n=="function"?n=t:(n=Vt.Ze[t.toLowerCase()])||ne("Unknown Shape.figure: "+t),e!==n&&(t=this.part,t!==null&&(t.ag=NaN),this.an=n,this.Rd=null,this.qc(),this.v(),this.g("figure",e,n))}}},toArrow:{get:function(){return this.Ua!==null?this.Ua.V:"None"},set:function(t){var e=this.toArrow;if(t===!0?t="Standard":t===!1&&(t=""),e!==t){var n=Ty(t);n===null?ne("Unknown Shape.toArrow: "+t):e!==n&&(this.Ua===null&&(this.Ua=new Zh),this.Ua.V=n,this.Rd=null,this.qc(),this.v(),Ey(this),this.g("toArrow",e,n))}}},fromArrow:{get:function(){return this.Ua!==null?this.Ua.j:"None"},set:function(t){var e=this.fromArrow;if(t===!0?t="Standard":t===!1&&(t=""),e!==t){var n=Ty(t);n===null?ne("Unknown Shape.fromArrow: "+t):e!==n&&(this.Ua===null&&(this.Ua=new Zh),this.Ua.j=n,this.Rd=null,this.qc(),this.v(),Ey(this),this.g("fromArrow",e,n))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:_r},set:function(t){var e=this.spot1;e.D(t)||(t=t.J(),Id(this),this.Na.fg=t,this.v(),this.g("spot1",e,t))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:_r},set:function(t){var e=this.spot2;e.D(t)||(t=t.J(),Id(this),this.Na.gg=t,this.v(),this.g("spot2",e,t))}},parameter1:{get:function(){return this.Un},set:function(t){var e=this.Un;e!==t&&(this.Un=t,this.qc(),this.v(),this.g("parameter1",e,t))}},parameter2:{get:function(){return this.Vn},set:function(t){var e=this.Vn;e!==t&&(this.Vn=t,this.qc(),this.v(),this.g("parameter2",e,t))}},naturalBounds:{get:function(){return this.dc}},pathPattern:{get:function(){return this.Na!==null?this.Na.br:null},set:function(t){var e=this.pathPattern;e!==t&&(Id(this),this.Na.br=t,this.N(),this.g("pathPattern",e,t))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:Zi},set:function(t){var e=this.geometryStretch;e!==t&&(Id(this),this.Na.jq=t,this.v(),this.g("geometryStretch",e,t))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(t){var e=this.interval;if(t=Math.round(t),e!==t&&t!==0&&isFinite(t)){this.fa===null&&(this.fa=new $c),this.fa.Tk=t;var n=this.diagram;n!==null&&this.panel===n.grid&&ku(n),this.v(),n=this.panel,n!==null&&(n.graduatedIntervals=null),this.g("interval",e,t)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(t){var e=this.graduatedStart;e!==t&&(0>t?t=0:1<t&&(t=1),this.fa===null&&(this.fa=new $c),this.fa.u=t,this.v(),this.g("graduatedStart",e,t))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(t){var e=this.graduatedEnd;e!==t&&(0>t?t=0:1<t&&(t=1),this.fa===null&&(this.fa=new $c),this.fa.j=t,this.v(),this.g("graduatedEnd",e,t))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(t){var e=this.graduatedSkip;e!==t&&(this.fa===null&&(this.fa=new $c),this.fa.o=t,this.v(),this.g("graduatedSkip",e,t))}}}),Qi.prototype.intersectsRect=Qi.prototype.Yc,Qi.prototype.containedInRect=Qi.prototype.fh,Qi.prototype.getNearestIntersectionPoint=Qi.prototype.rs,Qi.prototype.getDocumentBounds=Qi.prototype.mi,Qi.prototype.getDocumentPoint=Qi.prototype.ga;var zc=new zr,Rg=new zr;Qi.className="Shape",Qi.getFigureGenerators=function(){var t=new pt,e;for(e in Vt.Ze)e!==e.toLowerCase()&&t.add(e,Vt.Ze[e]);return t.freeze(),t},Qi.defineFigureGenerator=function(t,e){var n=t.toLowerCase(),i=Vt.Ze;i[t]=e,i[n]=t},Qi.getArrowheadGeometries=function(){var t=new pt;for(i in Vt.um)if(zc[i]===void 0){var e=mn.parse(Vt.um[i],!1);zc[i]=e,e=i.toLowerCase(),e!==i&&(zc[e]=i)}for(var n in zc)if(n!==n.toLowerCase()){var i=zc[n];i instanceof mn&&t.add(n,i)}return t.freeze(),t},Qi.defineArrowheadGeometry=function(t,e){var n=null;typeof e=="string"?n=mn.parse(e,!1):n=e,e=t.toLowerCase(),e!=="none"&&t!==e||ne("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+t);var i=zc;i[t]=n,i[e]=t};function Dg(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=Zi,this.gg=this.fg=_r}Dg.prototype.copy=function(){var t=new Dg;return t.Hr=this.Hr,t.Ir=this.Ir,t.Jr=this.Jr,t.uj=this.uj,t.br=this.br,t.jq=this.jq,t.fg=this.fg.J(),t.gg=this.gg.J(),t};function Do(t,e){return Wt.call(this),K0||(Ml=gs?new Uu(null).context:null,K0=!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 t=="string"?this.text=t:t&&Object.assign(this,t),e&&Object.assign(this,e),this}Jn(Do,Wt),Do.prototype.cloneProtected=function(t){Wt.prototype.cloneProtected.call(this,t),t.ec=this.ec,t.xc=this.xc,t.Ae=this.Ae,t.Gc=this.Gc,t.Cb=this.Cb,t.Lq=this.Lq,t.Gm=this.Gm,this.fa!==null&&(t.fa=this.fa.copy()),this.da!==null&&(t.da=this.da.nc?this.da:this.da.copy()),t.Ih=this.Ih,t.df=this.df,t.Le=this.Le,t.Qc=this.Qc,t.Qb=this.Qb,t.ze=this.ze};function Ic(t){t.da===null?t.da=new Ug:t.da.nc&&(t.da=t.da.copy())}D=Do.prototype,D.th=function(){Wt.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function ky(t,e){t.l=e.l|6144,t.pb=e.opacity,t.Ma=e.background,t.areaBackground=e.areaBackground,t.jd=e.desiredSize.J(),t.minSize=e.minSize.J(),t.maxSize=e.maxSize.J(),e.Lb!==null?t.Lb=e.Lb.copy():t.Lb=null,t.Ca=e.scale,t.Kb=e.angle,t.stretch=e.stretch,t.Kg=e.margin.J(),t.Jb=e.alignment.J(),t.sk=e.alignmentFocus.J(),t.segmentFraction=e.segmentFraction,t.segmentOffset=e.segmentOffset.J(),t.segmentOrientation=e.segmentOrientation,e.tb!==null&&(t.tb=e.tb.copy()),t.shadowVisible=e.shadowVisible,t.ec=e.ec,t.xc=e.xc,t.Ae=e.Ae,t.fa!==null&&(t.fa=e.fa.copy()),e.da!==null&&(t.da=e.da.nc?e.da:e.da.copy()),t.Ih=e.Ih}D.qb=function(t){t.classType===Do?this.wrap=t:Wt.prototype.qb.call(this,t)},D.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},D.v=function(){Wt.prototype.v.call(this)},D.hh=function(t,e){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var n=this.naturalBounds,i=this.actualBounds,r=n.width,o=n.height,s=Tf(this),l=t.textAlign=this.textAlign,u=e.tn;l==="start"?l=u?"right":"left":l==="end"&&(l=u?"left":"right"),u=this.isUnderline;var d=this.isStrikethrough;Ss(this,t,this.xc,!0,!1,n,i),(u||d)&&Ss(this,t,this.xc,!1,!1,n,i),i=0,n=!1;var p=this.oe,v=p.dx-(s*p.m21+p.dx);p=p.dy-(s*p.m22+p.dy);var E=e.scale;switch(8>(v*v+p*p)*E*E&&(n=!0),e.ib!==t&&(n=!1),e.ib instanceof Xl&&(n=!1),e.Gf("textGreeking")===!1&&(n=!1),e=this.spacingAbove,v=this.spacingBelow,this.flip){case Dr:t.translate(r,0),t.scale(-1,1);break;case ar:t.translate(0,o),t.scale(1,-1);break;case fo:t.translate(r,o),t.scale(-1,-1)}if(t.yc(),p=this.Gc,E=(e+s+v)*p,o>E&&(i=this.verticalAlignment,i=i.y*o-i.y*E+i.offsetY),p===1&&this.ze!==null)v=this.Cb,v>r&&(v=r),this.Oj(this.ze,t,0,i+e,r,s,v,n,l,u,d);else if(this.Qc!==null&&this.Qb!==null)for(E=0;E<p;E++){var M=this.Qc[E];M>r&&(M=r),i+=e,this.Oj(this.Qb[E],t,0,i,r,s,M,n,l,u,d),i+=s+v}switch(this.flip){case Dr:t.scale(-1,1),t.translate(-r,0);break;case ar:t.scale(1,-1),t.translate(0,-o);break;case fo:t.scale(-1,-1),t.translate(-r,-o)}}},D.Oj=function(t,e,n,i,r,o,s,l,u,d,p){var v=0;if(l)u==="left"?v=0:u==="right"?v=r-s:u==="center"&&(v=(r-s)/2),e.fillRect(n+v,i+.25*o,s,1);else{if(u==="left"?v=0:u==="right"?v=r:u==="center"&&(v=r/2),r=H0!==null?H0(this,o):.75*o,e.fillText(t,n+v,i+r),t=o/20|0,t===0&&(t=1),u==="right"?v-=s:u==="center"&&(v-=s/2),d){l=G0!==null?G0(this,o):.8*o,u=n+v,d=i+l,r=n+v+s,l=i+l;var E=t;e.beginPath(),e.lineWidth=E,e.moveTo(u,d),e.lineTo(r,l),e.stroke(),e.Se(),e instanceof Xl&&e.ad.classList.add("gojs-td")}p&&(p=i+o-o/2.2|0,t%2!==0&&(p+=.5),i=n+v,o=p,n=n+v+s,s=p,v=t,e.beginPath(),e.lineWidth=v,e.moveTo(i,o),e.lineTo(n,s),e.stroke(),e.Se(),e instanceof Xl&&e.ad.classList.add("gojs-td"))}},D.kk=function(t,e,n){if(!Wt.prototype.kk.call(this,t,e,n))return!1;if(Ss(this,t,this.xc,!0,!1,this.naturalBounds,this.actualBounds),n){if(this.svg.getElementsByTagName("text").length===0)return!0;for(e=this.svg.getElementsByClassName("gojs-td"),n=0;n<e.length;n++)oy(t,e[n],!1)}else e=this.svg,e.innerHTML=this.text,oy(t,e,!0);return!0},D.nk=function(t){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:Wt.prototype.nk.call(this,t)},D.Dv=function(t,e){if(t.nodeName!=="g")t.setAttributeNS(null,"filter",e);else{t=t.getElementsByTagName("text");for(var n=0;n<t.length;n++)t[n].setAttributeNS(null,"filter",e)}},D.Wl=function(t,e,n,i){var r=this.Gc;this.Ih=t,this.l&=-16777217;var o=this.Ae;Ml!==null&&Ry!==o&&(Ry=Ml.font=o),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var s;if(isNaN(this.desiredSize.width)){if(o=this.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),o.length===0)o=8;else if(this.isMultiline){for(var l=s=0,u=!1;!u;){var d=o.indexOf(`
|
|
|
`,l);d===-1&&(d=o.length,u=!0),l=o.substr(l,d-l),this.formatting===kf&&(l=l.trim()),s=Math.max(s,qu(l)),l=d+1}o=s}else s=o.indexOf(`
|
|
|
`,0),0<=s&&(o=o.substr(0,s)),o=qu(o);o=Math.min(o,t/this.scale)}else o=this.desiredSize.width;if(this.panel!==null&&(o=Math.min(o,this.panel.maxSize.width)),s=Iy(this,o),isNaN(this.desiredSize.height)?s=Math.min(s,e/this.scale):s=this.desiredSize.height,u=s,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===W0&&(e=this.Ae,e=this.overflow===W0?Ny(e):0,d=this.spacingAbove+this.spacingBelow,d=Math.max(0,Tf(this)+d),u=Math.min(this.maxLines-1,Math.max(Math.floor(u/d+.01)-1,0)),!(u+1>=this.Qb.length))){for(this.l|=16777216,d=this.Qb[u],e=Math.max(1,t-e);qu(d)>e&&1<d.length;)d=d.substr(0,d.length-1);d+=Nf,e=qu(d),this.Qb[u]=d,this.Qb=this.Qb.slice(0,u+1),this.Qc[u]=e,this.Qc=this.Qc.slice(0,u+1),this.Le=this.Qb.length,this.Cb=Math.max(this.Cb,e),this.Gc=this.Le,this.Gc===1&&(this.ze=this.Qb[0])}(this.wrap===Ay||isNaN(this.desiredSize.width))&&(o=isNaN(t)?this.Cb:Math.min(t,this.Cb)),o=Math.max(n,o),s=Math.max(i,s),ys(this.dc,o,s),this.Ge(0,0,o,s),this.svg!==null&&r!==this.Gc&&(this.Uc=!0)},D.eh=function(t,e,n,i){nl(this,t,e,n,i)};function Ef(t,e,n){t.ze===null?(t.ze=e,t.Cb=n):((t.Qb===null||t.Qc===null)&&(t.Qb=[],t.Qc=[],t.Qb.push(t.ze),t.Qc.push(t.Cb)),t.Qb.push(e),t.Qc.push(n),t.Qb.length>t.maxLines&&(t.l|=16777216))}function Pg(t,e,n,i){var r=t.formatting===kf;r&&(e=e.trim());var o=0,s=t.Ae,l=t.spacingAbove+t.spacingBelow;l=Math.max(0,Tf(t)+l);var u=t.overflow===W0?Ny(s):0;if(t.Gc>=t.maxLines)i!==null&&i.h(0,l);else if(s=e,t.wrap===Fg){t.Le=1;var d=qu(e);if(u===0||d<=n)t.Cb=Math.max(t.Cb,d),Ef(t,e,t.Cb),i!==null&&i.h(d,l);else{for(o=Lp(t,s),s=s.substr(o.length),e=Lp(t,s),d=qu(o+e);0<e.length&&d<=n;)o+=e,s=s.substr(e.length),e=Lp(t,s),d=o+e,r&&(d=d.trim()),d=qu(d);for(r&&(e=e.trim()),o+=e,n=Math.max(1,n-u);qu(o)>n&&1<o.length;)o=o.substr(0,o.length-1);t.l|=16777216,o+=Nf;var p=qu(o);t.Cb=p,Ef(t,o,p),i!==null&&i.h(p,l)}}else{for(u=0,s.length===0&&(u=1,Ef(t,s,0));0<s.length;){for(e=Lp(t,s),s=s.substr(e.length);qu(e)>n;){var v=1;for(d=qu(e.substr(0,v)),p=0;d<=n;)v++,p=d,d=qu(e.substr(0,v));if(v===1){var E=d;o=Math.max(o,d)}else E=p,o=Math.max(o,p);if(v--,1>v&&(v=1),Ef(t,e.substr(0,v),E),u++,e=e.substr(v),t.Gc+u>t.maxLines)break}for(p=Lp(t,s),d=qu(e+p);0<p.length&&d<=n;)e+=p,s=s.substr(p.length),p=Lp(t,s),d=e+p,r&&(d=d.trim()),d=qu(d);if(r&&(e=e.trim()),e!==""&&(e[e.length-1]==="\xAD"&&(e=e.substring(0,e.length-1)+"\u2010"),p.length===0?(v=d,o=Math.max(o,d)):(v=p=qu(e),o=Math.max(o,p)),Ef(t,e,v),u++,t.Gc+u>t.maxLines))break}t.Le=Math.min(t.maxLines,u),t.Cb=Math.max(t.Cb,o),i!==null&&i.h(t.Cb,l*t.Le)}}function Lp(t,e){if(t.wrap===My)return e.substr(0,1);for(var n=e.length,i=0,r=Lx;i<n&&!r.test(e.charAt(i));)i++;for(t.formatting===Oy&&(n=Math.min(n,i+1));i<n&&r.test(e.charAt(i));)i++;return i>=e.length?e:e.substr(0,i)}function qu(t){return Ml===null?8*t.length:Ml.measureText(t).width}function Tf(t){if(t.df!==null)return t.df;var e=t.Ae;if(Ml===null){var n=16;return t.df=n}return $g[e]!==void 0&&5e3>Ly?n=$g[e]:(n=1.3*Ml.measureText("M").width,$g[e]=n,Ly++),t.df=n}function Ny(t){if(Ml===null)return 6;if(V0[t]!==void 0&&5e3>jg)var e=V0[t];else e=Ml.measureText(Nf).width,V0[t]=e,jg++;return e}function Iy(t,e){var n=t.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),i=t.spacingAbove+t.spacingBelow;if(i=Math.max(0,Tf(t)+i),n.length===0)return t.Cb=0,t.Gc=1,i;if(!t.isMultiline){var r=n.indexOf(`
|
|
|
`,0);0<=r&&(n=n.substr(0,r))}r=0;for(var o=t.Gc=0,s,l=!1;!l;){if(s=n.indexOf(`
|
|
|
`,o),s===-1&&(s=n.length,l=!0),o<=s){if(o=n.substr(o,s-o),t.wrap!==Fg){t.Le=0;var u=ni.alloc();Pg(t,o,e,u),r+=u.height,ni.free(u),t.Gc+=t.Le}else Pg(t,o,e,null),r+=i,t.Gc++;t.Gc===t.maxLines&&(l=!0)}o=s+1}return t.Lq=r}te.Object.defineProperties(Do.prototype,{font:{get:function(){return this.Ae},set:function(t){var e=this.Ae;e!==t&&(this.Ae=t,this.df=null,this.v(),this.g("font",e,t))}},text:{get:function(){return this.ec},set:function(t){var e=this.ec;t!=null?t=t.toString():t="",e!==t&&(this.ec=t,this.v(),this.g("text",e,t),this.Uc=!0)}},textAlign:{get:function(){return this.da!==null?this.da.Or:"start"},set:function(t){var e=this.textAlign;e===t||t!=="start"&&t!=="end"&&t!=="left"&&t!=="right"&&t!=="center"||(Ic(this),this.da.Or=t,this.N(),this.g("textAlign",e,t))}},flip:{get:function(){return this.da!==null?this.da.Xf:Xe},set:function(t){var e=this.flip;e!==t&&(Ic(this),this.da.Xf=t,this.N(),this.g("flip",e,t))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:Os},set:function(t){var e=this.verticalAlignment;e.D(t)||(t=t.J(),Ic(this),this.da.Yr=t,dl(this),this.g("verticalAlignment",e,t))}},naturalBounds:{get:function(){if(!this.dc.w()){var t=ni.alloc();Pg(this,this.ec,999999,t);var e=t.width;ni.free(t),t=Iy(this,e);var n=this.desiredSize;isNaN(n.width)||(e=n.width),isNaN(n.height)||(t=n.height),ys(this.dc,e,t)}return this.dc}},isMultiline:{get:function(){return(this.l&2097152)!==0},set:function(t){var e=(this.l&2097152)!==0;e!==t&&(this.l^=2097152,this.v(),this.g("isMultiline",e,t))}},isUnderline:{get:function(){return(this.l&4194304)!==0},set:function(t){var e=(this.l&4194304)!==0;e!==t&&(this.l^=4194304,this.Uc=!0,this.N(),this.g("isUnderline",e,t))}},isStrikethrough:{get:function(){return(this.l&8388608)!==0},set:function(t){var e=(this.l&8388608)!==0;e!==t&&(this.l^=8388608,this.Uc=!0,this.N(),this.g("isStrikethrough",e,t))}},wrap:{get:function(){return this.da!==null?this.da.$r:Bg},set:function(t){var e=this.wrap;e!==t&&(Ic(this),this.da.$r=t,this.v(),this.g("wrap",e,t))}},overflow:{get:function(){return this.da!==null?this.da.$q:zg},set:function(t){var e=this.overflow;e!==t&&(Ic(this),this.da.$q=t,this.v(),this.g("overflow",e,t))}},isOverflowed:{get:function(){return(this.l&16777216)!==0}},stroke:{get:function(){return this.xc},set:function(t){var e=this.xc;e!==t&&(t!==null&&Jd(t,"TextBlock.stroke"),t instanceof ro&&t.freeze(),this.xc=t,this.N(),this.g("stroke",e,t))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return Tf(this)}},editable:{get:function(){return(this.l&1048576)!==0},set:function(t){var e=(this.l&1048576)!==0;e!==t&&(this.l^=1048576,this.g("editable",e,t))}},textEditor:{get:function(){return this.da!==null?this.da.Qr:null},set:function(t){var e=this.textEditor;e!==t&&(Ic(this),this.da.Qr=t,this.g("textEditor",e,t))}},errorFunction:{get:function(){return this.da!==null?this.da.Hd:null},set:function(t){var e=this.errorFunction;e!==t&&(Ic(this),this.da.Hd=t,this.g("errorFunction",e,t))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(t){var e=this.interval;if(t=Math.round(t),e!==t&&t!==0&&isFinite(t)){this.fa===null&&(this.fa=new $c),this.fa.Tk=t,this.v();var n=this.panel;n!==null&&(n.graduatedIntervals=null),this.g("interval",e,t)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(t){var e=this.graduatedStart;e!==t&&(0>t?t=0:1<t&&(t=1),this.fa===null&&(this.fa=new $c),this.fa.u=t,this.v(),this.g("graduatedStart",e,t))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(t){var e=this.graduatedEnd;e!==t&&(0>t?t=0:1<t&&(t=1),this.fa===null&&(this.fa=new $c),this.fa.j=t,this.v(),this.g("graduatedEnd",e,t))}},graduatedFunction:{get:function(){return this.fa!==null?this.fa.F:null},set:function(t){var e=this.graduatedFunction;e!==t&&(this.fa===null&&(this.fa=new $c),this.fa.F=t,this.v(),this.g("graduatedFunction",e,t))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(t){var e=this.graduatedSkip;e!==t&&(this.fa===null&&(this.fa=new $c),this.fa.o=t,this.v(),this.g("graduatedSkip",e,t))}},textValidation:{get:function(){return this.da!==null?this.da.vj:null},set:function(t){var e=this.textValidation;e!==t&&(Ic(this),this.da.vj=t,this.g("textValidation",e,t))}},textEdited:{get:function(){return this.da!==null?this.da.Pr:null},set:function(t){var e=this.textEdited;e!==t&&(Ic(this),this.da.Pr=t,this.g("textEdited",e,t))}},spacingAbove:{get:function(){return this.da!==null?this.da.Dr:0},set:function(t){var e=this.spacingAbove;e!==t&&(Ic(this),this.da.Dr=t,this.v(),this.g("spacingAbove",e,t))}},spacingBelow:{get:function(){return this.da!==null?this.da.Er:0},set:function(t){var e=this.spacingBelow;e!==t&&(Ic(this),this.da.Er=t,this.v(),this.g("spacingBelow",e,t))}},formatting:{get:function(){return this.da!==null?this.da.gq:kf},set:function(t){var e=this.formatting;e!==t&&(Ic(this),this.da.gq=t,this.v(),this.g("formatting",e,t))}},maxLines:{get:function(){return this.da!==null?this.da.Jq:1/0},set:function(t){var e=this.maxLines;e!==t&&(t=Math.floor(t),0>=t&&Fn(t,"> 0",Do,"maxLines"),Ic(this),this.da.Jq=t,this.v(),this.g("maxLines",e,t))}},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(t){var e=this.Gm;e!==t&&(this.Gm=t,this.g("choices",e,t))}}});var H0=null,G0=null,Fg=new le(Do,"None",0),Ay=new le(Do,"WrapFit",1),Bg=new le(Do,"WrapDesiredSize",2),My=new le(Do,"WrapBreakAll",3),zg=new le(Do,"OverflowClip",0),W0=new le(Do,"OverflowEllipsis",1),kf=new le(Do,"FormatTrim",0),Oy=new le(Do,"FormatNone",0),Lx=/[ \u200b\u00ad]/,$g=new zr,Ly=0,V0=new zr,jg=0,Nf="...",Ry="",Ml=null,K0=!1;Do.className="TextBlock";function Ug(){this.nc=!1,this.Hd=null,this.Xf=Xe,this.gq=kf,this.Jq=1/0,this.$q=zg,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Os,this.$r=Bg}Ug.prototype.copy=function(){var t=new Ug;return t.Hd=this.Hd,t.Xf=this.Xf,t.gq=this.gq,t.Jq=this.Jq,t.$q=this.$q,t.Dr=this.Dr,t.Er=this.Er,t.Or=this.Or,t.Pr=this.Pr,t.Qr=this.Qr,t.vj=this.vj,t.Yr=this.Yr,t.$r=this.$r,t},Do.getEllipsis=function(){return Nf},Do.setEllipsis=function(t){Nf=t,V0=new zr,jg=0},Do.getBaseline=function(){return H0},Do.setBaseline=function(t){H0=t},Do.getUnderline=function(){return G0},Do.setUnderline=function(t){G0=t},Do.isValidFont=function(t){if(K0||(Ml=gs?new Uu(null).context:null,K0=!0),Ml===null)return!0;var e=Ml.font;if(t===e||t==="10px sans-serif")return!0;Ml.font="10px sans-serif",Ml.font=t;var n=Ml.font;if(n!=="10px sans-serif")return Ml.font=e,!0;Ml.font="19px serif";var i=Ml.font;return Ml.font=t,n=Ml.font,Ml.font=e,n!==i},Do.FormatNone=Oy,Do.FormatTrim=kf,Do.None=Fg,Do.OverflowClip=zg,Do.OverflowEllipsis=W0,Do.WrapBreakAll=My,Do.WrapDesiredSize=Bg,Do.WrapFit=Ay;function $c(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}$c.prototype.copy=function(){var t=new $c;return t.Tk=this.Tk,t.u=this.u,t.j=this.j,t.F=this.F,t.o=this.o,t},$c.className="GradElementSettings";function Ol(t,e){Wt.call(this),this.Eg=null,this.qo="",this.Xg=io,this.Nk=rn,this.Zg=this.Hd=null,this.Mk=Sr,this.Xf=Xe,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,typeof t=="string"?this.source=t:t&&Object.assign(this,t),e&&Object.assign(this,e)}var Rp;Jn(Ol,Wt),Ol.prototype.cloneProtected=function(t){Wt.prototype.cloneProtected.call(this,t),t.qo=this.qo,t.element=this.Eg,t.Xg=this.Xg.J(),t.Nk=this.Nk,t.Xf=this.Xf,t.Hd=this.Hd,t.Zg=this.Zg,t.Mk=this.Mk.J(),t.en=this.en,t.rl=this.rl},Ol.prototype.qb=function(t){t===Xe||t===Kn||t===Cr?this.imageStretch=t:Wt.prototype.qb.call(this,t)},Ol.prototype.toString=function(){return"Picture("+this.source+")#"+Br(this)};function Dp(t){t===void 0&&(t=""),t!==""?Rp[t]&&(delete Rp[t],Z0--):(Rp=new zr,Z0=0)}function Dy(t,e){e.qy||(e.Fq=function(n){e.sq=!0,e.ln=!1;var i=e.Bg.copy();if(i!=null){for(i=i.iterator;i.next();){var r=i.value;r.N();var o=e.getAttribute("src")||"",s=r.Og.I(o);if(s!==null)for(var l=s.length,u=0;u<l;u++)o=s[u],r.Xn.add(o),o.Uc=!0,r.$b(),e.hn&&(e.eu===void 0&&(e.eu=n),o.Zg!==null&&o.Zg(o,n))}e.Bg.clear()}t.desiredSize.w()||(Zs(t,!1),t.v())},e.Yp=function(n){e.ln=n;var i=e.Bg.copy();if(i!=null){for(i=i.iterator;i.next();){var r=i.value,o=e.getAttribute("src")||"",s=r.Og.I(o);if(s!==null){r=s.length,o=Le();for(var l=0;l<r;l++)o.push(s[l]);if(e.hn)for(l=0;l<r;l++)s=o[l],s.Hd!==null&&s.Hd(s,n);tn(o)}}e.Bg.clear()}},e.addEventListener("load",e.Fq),e.addEventListener("error",e.Yp),e.qy=!0)}Ol.prototype.hA=function(){if(this.source!==""){Dp(this.source);var t=this.source;this.source="",this.source=t}},Ol.prototype.redraw=function(){this.N(),this.Uc=!0},Ol.prototype.hh=function(t,e){var n=this.Eg;if(n!==null){var i=n.getAttribute("src");if(!(n instanceof HTMLImageElement&&(i===null||i==="")||n.ln instanceof Event&&t instanceof kd)){var r=t instanceof Xl;i=this.naturalBounds;var o=0,s=0,l=this.qn,u=l?+n.width:n.naturalWidth;if(l=l?+n.height:n.naturalHeight,u===void 0&&n.videoWidth&&(u=n.videoWidth),l===void 0&&n.videoHeight&&(l=n.videoHeight),u=u||i.width,l=l||i.height,u!==0&&l!==0){var d=u,p=l;this.sourceRect.w()&&(o=this.Xg.x,s=this.Xg.y,u=this.Xg.width,l=this.Xg.height);var v=u,E=l,M=this.Nk,R=this.Mk;switch(M){case Xe:if(this.sourceRect.w())break;v>=i.width&&(o=o+R.offsetX+(v*R.x-i.width*R.x)),E>=i.height&&(s=s+R.offsetY+(E*R.y-i.height*R.y)),u=Math.min(i.width,v),l=Math.min(i.height,E);break;case rn:v=i.width,E=i.height;break;case Kn:case Cr:M===Kn?(M=Math.min(i.height/E,i.width/v),v*=M,E*=M):M===Cr&&(M=Math.max(i.height/E,i.width/v),v*=M,E*=M,v>=i.width&&(o=(o+R.offsetX+(v*R.x-i.width*R.x)/v)*u),E>=i.height&&(s=(s+R.offsetY+(E*R.y-i.height*R.y)/E)*l),u*=1/(v/i.width),l*=1/(E/i.height),v=i.width,E=i.height)}M=this.Df()*e.scale;var j=v*M*E*M,at=u*l/j,q=n.__goCache;M=null;var gt=Rx;if(!r){if(n.sq&&q!==void 0&&4<j&&at>gt*gt)for(q.gi===null&&(Fy(q,4,d,p,n),Fy(q,16,d,p,n)),r=q.gi,d=r.length,p=0;p<d&&r[p].ratio*r[p].ratio<at;p++)M=r[p];if(!e.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{r=new Uu(null).context;try{r.drawImage(this.Eg,0,0)}catch(wt){this.en=!1}try{r.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(wt){this.vl=!0}}if(this.vl)return}}switch(r=v<i.width?R.offsetX+(i.width*R.x-v*R.x):0,R=E<i.height?R.offsetY+(i.height*R.y-E*R.y):0,this.flip){case Dr:t.translate(Math.min(i.width,v),0),t.scale(-1,1);break;case ar:t.translate(0,Math.min(i.height,E)),t.scale(1,-1);break;case fo:t.translate(Math.min(i.width,v),Math.min(i.height,E)),t.scale(-1,-1)}if(t.yc(),e.Gf("pictureRatioOptimization")&&!e.$i&&q!==void 0&&M!==null&&M.ratio!==1){t.save(),e=M.ratio;try{t.drawImage(M.source,o/e,s/e,Math.min(M.source.width,u/e),Math.min(M.source.height,l/e),r,R,Math.min(i.width,v),Math.min(i.height,E)),t instanceof Xl&&(this.bt=[o/e,s/e,Math.min(M.source.width,u/e),Math.min(M.source.height,l/e),r,R,Math.min(i.width,v),Math.min(i.height,E)])}catch(wt){this.en=!1}t.restore()}else try{t.drawImage(n,o,s,u,l,r,R,Math.min(i.width,v),Math.min(i.height,E)),t instanceof Xl&&(this.bt=[o,s,u,l,r,R,Math.min(i.width,v),Math.min(i.height,E)])}catch(wt){this.en=!1}switch(this.flip){case Dr:t.scale(-1,1),t.translate(-Math.min(i.width,v),0);break;case ar:t.scale(1,-1),t.translate(0,-Math.min(i.height,E));break;case fo:t.scale(-1,-1),t.translate(-Math.min(i.width,v),-Math.min(i.height,E))}}}}},Ol.prototype.Wl=function(t,e,n,i){var r=this.desiredSize,o=Al(this,!0),s=this.Eg,l=this.qn,u=0,d=0;(l||!this.al&&s&&s.complete)&&(this.al=!0),s===null?(isFinite(r.width)||(t=0),isFinite(r.height)||(e=0)):(u=l?+s.width:s.naturalWidth,d=l?+s.height:s.naturalHeight),isFinite(r.width)||o===rn||o===ei?(isFinite(t)||(this.sourceRect.w()?t=this.sourceRect.width:s!==null&&(t=u)),n=0):s!==null&&this.al!==!1&&(t=this.sourceRect.w()?this.sourceRect.width:u),isFinite(r.height)||o===rn||o===yi?(isFinite(e)||(this.sourceRect.w()?e=this.sourceRect.height:s!==null&&(e=d)),i=0):s!==null&&this.al!==!1&&(e=this.sourceRect.w()?this.sourceRect.height:d),isFinite(r.width)&&(t=r.width),isFinite(r.height)&&(e=r.height),r=this.maxSize,o=this.minSize,n=Math.max(n||0,o.width),i=Math.max(i||0,o.height),t=Math.min(r.width,t),e=Math.min(r.height,e),t=Math.max(n,t),e=Math.max(i,e),s===null||s.complete||(isFinite(t)||(t=0),isFinite(e)||(e=0)),ys(this.dc,t,e),this.Ge(0,0,t,e)},Ol.prototype.eh=function(t,e,n,i){nl(this,t,e,n,i)},te.Object.defineProperties(Ol.prototype,{element:{get:function(){return this.Eg},set:function(t){var e=this.Eg;if(this.Uc=!0,e!==t){this.qn=t instanceof HTMLCanvasElement;var n=t instanceof HTMLImageElement;t===null||n||t instanceof HTMLVideoElement||this.qn||ne("Picture.element must be an instance of Image, Canvas, or Video, not: "+t);var i=this.diagram;i!==null&&bh(i,this),this.Eg=t,t!==null&&n&&t.Bg===void 0&&(t.Bg=new je),i!==null&&n&&$u(i,this),t!==null&&(this.qn||t.complete===!0?(t.hn&&(t.ln instanceof Event&&this.Hd!==null?this.Hd(this,t.ln):t.sq===!0&&!t.ln&&this.Zg!==null&&t.eu&&this.Zg(this,t.eu)),t.sq=!0,this.desiredSize.w()||(Zs(this,!1),this.v())):n&&Dy(this,t)),this.g("element",e,t),this.N()}}},source:{get:function(){return this.qo},set:function(t){var e=this.qo;if(e!==t){this.Uc=!0,this.qo=t;var n=Rp;if(gs){var i=null;if(n[t]!==void 0)i=n[t];else if(t!==""){30<Z0&&(Dp(),n=Rp),i=kn("img"),i.hn=!0,Dy(this,i);var r=this.rl;r!==null&&(i.crossOrigin=r(this)),i.src=t,n[t]=i,Z0++}this.element=i,i!==null&&i.__goCache===void 0&&(i.__goCache=new Py),this.v(),this.N()}this.g("source",e,t)}}},sourceCrossOrigin:{get:function(){return this.rl},set:function(t){if(this.rl!==t&&(this.rl=t,this.element!==null)){var e=this.element.getAttribute("src");t===null&&typeof e=="string"?this.element.crossOrigin=null:t!==null&&(this.element.crossOrigin=t(this)),this.element.src=e}}},sourceRect:{get:function(){return this.Xg},set:function(t){var e=this.Xg;e.D(t)||(this.Xg=t=t.J(),this.N(),this.g("sourceRect",e,t))}},imageStretch:{get:function(){return this.Nk},set:function(t){var e=this.Nk;e!==t&&(this.Nk=t,this.N(),this.g("imageStretch",e,t))}},flip:{get:function(){return this.Xf},set:function(t){var e=this.Xf;e!==t&&(this.Xf=t,this.N(),this.g("flip",e,t))}},imageAlignment:{get:function(){return this.Mk},set:function(t){var e=this.Mk;e.D(t)||(this.Mk=t=t.J(),this.N(),this.g("imageAlignment",e,t))}},errorFunction:{get:function(){return this.Hd},set:function(t){var e=this.Hd;e!==t&&(this.Hd=t,this.g("errorFunction",e,t))}},successFunction:{get:function(){return this.Zg},set:function(t){var e=this.Zg;e!==t&&(this.Zg=t,this.g("successFunction",e,t))}},naturalBounds:{get:function(){return this.dc}}}),Ol.prototype.redraw=Ol.prototype.redraw,Ol.prototype.reloadSource=Ol.prototype.hA;var Z0=0,Rx=4;Ol.className="Picture",Rp=new zr,Ol.clearCache=Dp;function Py(){this.gi=null}function Fy(t,e,n,i,r){t.gi===null&&(t.gi=[]);var o=new Uu(null),s=o.context,l=1/e;o.width=n/e,o.height=i/e,o.width!==0&&o.height!==0&&(e=new By(o.Oa,e),n=1,0<t.gi.length&&(n=t.gi[t.gi.length-1],r=n.source,n=n.ratio),s.setTransform(l*n,0,0,l*n,0,0),s.yc(),s.drawImage(r,0,0),t.gi.push(e))}Py.className="PictureCacheArray";function By(t,e){this.source=t,this.ratio=e}By.className="PictureCacheInstance";function Pp(){this.os=new mn,this.mc=null}Pp.prototype.reset=function(t){t!==null?(t.ka(),this.os=t,t.figures.clear()):this.os=new mn,this.mc=null};function Fp(t,e,n,i,r,o){t.mc=new Ls,t.mc.startX=e,t.mc.startY=n,t.mc.isFilled=i,t.mc.isEvenOdd=o||!1,t.os.figures.add(t.mc),r!==void 0&&(t.mc.isShadowed=r)}function Dx(t){var e=t.mc.segments.length;0<e&&t.mc.segments.M(e-1).close()}Pp.prototype.moveTo=function(t,e,n){n===void 0&&(n=!1);var i=new Lr(xs);i.endX=t,i.endY=e,n&&i.close(),this.mc.segments.add(i)},Pp.prototype.lineTo=function(t,e,n){n===void 0&&(n=!1);var i=new Lr(xo);i.endX=t,i.endY=e,n&&i.close(),this.mc.segments.add(i)};function Nh(t,e,n,i,r,o,s){var l;l===void 0&&(l=!1);var u=new Lr(ia);u.point1X=e,u.point1Y=n,u.point2X=i,u.point2Y=r,u.endX=o,u.endY=s,l&&u.close(),t.mc.segments.add(u)}function Y0(t,e,n,i,r){var o;o===void 0&&(o=!1);var s=new Lr(aa);s.point1X=e,s.point1Y=n,s.endX=i,s.endY=r,o&&s.close(),t.mc.segments.add(s)}Pp.prototype.arcTo=function(t,e,n,i,r,o,s){o===void 0&&(o=0),s===void 0&&(s=!1);var l=new Lr(Tr);l.startAngle=t,l.sweepAngle=e,l.centerX=n,l.centerY=i,l.radiusX=r,l.radiusY=o!==0?o:r,s&&l.close(),this.mc.segments.add(l)};function Px(t,e,n,i,r,o,s,l){var u;u===void 0&&(u=!1),e=new Lr(Wa,s,l,e,n,i,r,o),u&&e.close(),t.mc.segments.add(e)}function zy(t){var e=X0;return e!==null?(X0=null,e.reset(t),e):(e=new Pp,e.reset(t),e)}var X0=null;Pp.className="StreamGeometryContext";function Ja(t,e){var n=t.toLowerCase(),i=Vt.Ze;i[t]=e,i[n]=t}Ja("Rectangle",function(t,e,n){t="r"+e+","+n;var i=Vt.Mf[t];return i!==void 0||(i=new mn(mn.u),i.endX=e,i.endY=n,Vt.Nf<Vt.vm&&(Vt.Mf[t]=i,Vt.Nf++)),i}),Ja("Square",function(t,e,n){t="s"+e+","+n;var i=Vt.Mf[t];return i!==void 0||(i=new mn(mn.u),i.endX=e,i.endY=n,i.defaultStretch=Kn,Vt.Nf<Vt.vm&&(Vt.Mf[t]=i,Vt.Nf++)),i}),Ja("RoundedRectangle",function(t,e,n){t=t?t.parameter1:NaN,(isNaN(t)||0>t)&&(t=5),t=Math.min(t,e/3),t=Math.min(t,n/3);var i="rr"+e+","+n+","+t,r=Vt.Mf[i];if(r!==void 0)return r;var o=t*Vt.wg;return r=new mn().add(new Ls(t,0,!0).add(new Lr(xo,e-t,0)).add(new Lr(ia,e,t,e-o,0,e,o)).add(new Lr(xo,e,n-t)).add(new Lr(ia,e-t,n,e,n-o,e-o,n)).add(new Lr(xo,t,n)).add(new Lr(ia,0,n-t,o,n,0,n-o)).add(new Lr(xo,0,t)).add(new Lr(ia,t,0,0,o,o,0).close())),1<o&&(r.spot1=new Wn(0,0,o,o),r.spot2=new Wn(1,1,-o,-o)),Vt.Nf<Vt.vm&&(Vt.Mf[i]=r,Vt.Nf++),r}),Ja("Border","RoundedRectangle"),Ja("Ellipse",function(t,e,n){t="e"+e+","+n;var i=Vt.Mf[t];return i!==void 0||(i=new mn(mn.F),i.endX=e,i.endY=n,i.spot1=Pl,i.spot2=tl,Vt.Nf<Vt.vm&&(Vt.Mf[t]=i,Vt.Nf++)),i}),Ja("Circle",function(t,e,n){t="c"+e+","+n;var i=Vt.Mf[t];return i!==void 0||(i=new mn(mn.F),i.endX=e,i.endY=n,i.spot1=Pl,i.spot2=tl,i.defaultStretch=Kn,Vt.Nf<Vt.vm&&(Vt.Mf[t]=i,Vt.Nf++)),i}),Ja("TriangleRight",function(t,e,n){return new mn().add(new Ls(0,0).add(new Lr(xo,e,.5*n)).add(new Lr(xo,0,n).close())).pm(0,.25,.5,.75)}),Ja("TriangleDown",function(t,e,n){return new mn().add(new Ls(0,0).add(new Lr(xo,e,0)).add(new Lr(xo,.5*e,n).close())).pm(.25,0,.75,.5)}),Ja("TriangleLeft",function(t,e,n){return new mn().add(new Ls(e,n).add(new Lr(xo,0,.5*n)).add(new Lr(xo,e,0).close())).pm(.5,.25,1,.75)}),Ja("TriangleUp",function(t,e,n){return new mn().add(new Ls(e,n).add(new Lr(xo,0,n)).add(new Lr(xo,.5*e,0).close())).pm(.25,.5,.75,1)}),Ja("Triangle","TriangleUp"),Ja("Diamond",function(t,e,n){return new mn().add(new Ls(.5*e,0).add(new Lr(xo,0,.5*n)).add(new Lr(xo,.5*e,n)).add(new Lr(xo,e,.5*n).close())).pm(.25,.25,.75,.75)}),Ja("LineH",function(t,e,n){return t=new mn(mn.j),t.startX=0,t.startY=n/2,t.endX=e,t.endY=n/2,t}),Ja("LineV",function(t,e,n){return t=new mn(mn.j),t.startX=e/2,t.startY=0,t.endX=e/2,t.endY=n,t}),Ja("None","Rectangle"),Ja("BarH","Rectangle"),Ja("BarV","Rectangle"),Ja("MinusLine","LineH"),Ja("PlusLine",function(t,e,n){return new mn().add(new Ls(0,n/2,!1).add(new Lr(xo,e,n/2)).add(new Lr(xs,e/2,0)).add(new Lr(xo,e/2,n)))}),Ja("XLine",function(t,e,n){return new mn().add(new Ls(0,n,!1).add(new Lr(xo,e,0)).add(new Lr(xs,0,0)).add(new Lr(xo,e,n)))}),Ja("LineRight",function(t,e,n){return new mn().add(new Ls(.25*e,0,!1).add(new Lr(xo,.75*e,.5*n)).add(new Lr(xo,.25*e,n)))}),Ja("LineDown",function(t,e,n){return new mn().add(new Ls(0,.25*n,!1).add(new Lr(xo,.5*e,.75*n)).add(new Lr(xo,e,.25*n)))}),Ja("LineLeft",function(t,e,n){return new mn().add(new Ls(.75*e,0,!1).add(new Lr(xo,.25*e,.5*n)).add(new Lr(xo,.75*e,n)))}),Ja("LineUp",function(t,e,n){return new mn().add(new Ls(0,.75*n,!1).add(new Lr(xo,.5*e,.25*n)).add(new Lr(xo,e,.75*n)))}),Vt.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 _g(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=da,this.ir=null,this.jr="",this.lr=_r,this.Gq="",this.Hq=Fs,this.Pq=bi,this.Kq=qi,this.Up=null,this.Cq=127,this.zr=go,this.yr="gray",this.Vg=4}_g.prototype.copy=function(){var t=new _g;return t.zq=this.zq,t.Kp=this.Kp,t.tr=this.tr,t.vr=this.vr,t.ur=this.ur,t.oq=this.oq,t.fr=this.fr,t.hr=this.hr,t.gr=this.gr.J(),t.ir=this.ir,t.jr=this.jr,t.lr=this.lr.J(),t.Gq=this.Gq,t.Hq=this.Hq.J(),t.Pq=this.Pq.J(),t.Kq=this.Kq.J(),t.Up=this.Up,t.Cq=this.Cq,t.zr=this.zr.J(),t.yr=this.yr,t.Vg=this.Vg,t};function li(t,e){t===void 0||t instanceof ea||typeof t=="string"?sn.call(this,t):(sn.call(this),t&&(e=t)),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 $(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new ke,this.Rh=null,this.ag=NaN,e&&Object.assign(this,e)}Jn(li,sn),li.prototype.cloneProtected=function(t){sn.prototype.cloneProtected.call(this,t),t.G=this.G&-4097|49152,t.Tf=this.Tf,this.P!==null&&(t.P=this.P.nc?this.P:this.P.copy()),t.Jg=this.Jg,t.Qf=null,t.ec=this.ec,t.ke.assign(this.ke),t.Ao=this.Ao},D=li.prototype,D.Af=function(t){sn.prototype.Af.call(this,t),t.oh(),t.Ug=null,t.nf=null,t.Rh=null},D.toString=function(){var t=Je(this.constructor)+"#"+Br(this);return this.data!==null&&(t+="("+yn(this.data)+")"),t};function Ll(t){t.P===null?t.P=new _g:t.P.nc&&(t.P=t.P.copy())}D.th=function(){sn.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},D.gk=function(t,e,n,i,r,o,s){var l=this.diagram;l!==null&&(t===hs&&e==="elements"?r instanceof sn?Nd(r,function(u){mv(l.partManager,u),Xu(l,u)}):$u(l,r):t===Ts&&e==="elements"&&(r instanceof sn?Nd(r,function(u){gv(l.partManager,u,l)}):bh(l,r)),l.cb(t,e,n,i,r,o,s))},D.La=function(t){if(sn.prototype.La.call(this,t),this.data!==null){for(var e=this.O.s,n=e.length,i=0;i<n;i++){var r=e[i];r instanceof sn&&Nd(r,function(o){o.data!==null&&o.La()})}for(e=this.adornments;e.next();)e.value.La(t)}},li.prototype.updateRelationshipsFromData=function(){var t;this.data!==null&&((t=this.diagram)===null||t===void 0||t.partManager.updateRelationshipsFromData(this))},li.prototype.Pj=function(t){var e=this.Qf;return e===null?null:e.I(t)},li.prototype.bh=function(t,e){if(e!==null){var n=null,i=this.Qf;if(i!==null&&(n=i.I(t)),n!==e){if(n!==null){var r=n.diagram;r!==null&&r.remove(n)}i===null&&(this.Qf=i=new pt),e.Tf!==t&&(e.category=t),i.add(t,e),t=this.diagram,t!==null&&(t.add(e),t=e.adornedObject,t!==null&&(t=t.ih(),t!==null&&(e.data=t.data)))}}},li.prototype.Jf=function(t){var e=this.Qf;if(e!==null){var n=e.I(t);if(n!==null){var i=n.diagram;i!==null&&i.remove(n)}e.remove(t),e.count===0&&(this.Qf=null)}},li.prototype.Ej=function(){var t=this.Qf;if(t!==null){var e=Le();for(t=t.iterator;t.next();)e.push(t.key);t=e.length;for(var n=0;n<t;n++)this.Jf(e[n]);tn(e)}},li.prototype.updateAdornments=function(){var t=this.diagram;if(t!==null){for(var e=this.adornments;e.next();){var n=e.value;n.v(),n.placeholder&&n.placeholder.v()}t:{if(this.isSelected&&this.selectionAdorned&&(e=this.selectionObject,e!==null&&this.actualBounds.w()&&this.isVisible()&&e.Ed()&&e.actualBounds.w())){if(n=this.Pj("Selection"),n===null){if(n=this.selectionAdornmentTemplate,n===null&&(n=this.ph()?t.linkSelectionAdornmentTemplate:this instanceof Ki?t.groupSelectionAdornmentTemplate:t.nodeSelectionAdornmentTemplate),!(n instanceof jr))break t;_u(n),n=n.copy(),n!==null&&(this.ph()&&this.selectionObject===this.path&&(n.type=sn.Link),n.adornedObject=e)}if(n!==null){n.type===sn.Link&&n.v(),this.bh("Selection",n);break t}}this.Jf("Selection")}for(Fx(this,t),e=this.adornments;e.next();)e.value.La()}},li.prototype.Wb=function(){var t=this.diagram;t!==null&&(t.vd=!0,!(this.G&16384)&&(this.G|=16384))};function Hg(t){t.G&16384&&(t.updateAdornments(),t.G&=-16385)}function Fx(t,e){e.toolManager.mouseDownTools.each(function(n){n.isEnabled&&n.updateAdornments(t)}),e.toolManager.updateAdornments(t)}function J0(t){if(Yh(t)===!1){Wg(t,!0),t.Uk();var e=t.diagram;e!==null&&(e.De.add(t),e.$b())}}function $y(t){if(t.G|=2097152,Yh(t)!==!1){var e=t.position,n=t.location;n.w()&&e.w()||_y(t,e,n),n=t.Ib;var i=ke.alloc().assign(n);n.ka(),n.x=e.x,n.y=e.y,n.freeze(),t.Xl(i,n),ke.free(i),Wg(t,!1)}}li.prototype.Ge=function(t,e,n,i){var r=this.uc;r.h(t,e,n,i),this.Lb===null&&(this.Lb=new Ti);var o=this.Lb;o.reset(),this.no(o,t,e,n,i),this.Lb=o,o.ws()||o.pp(r)},li.prototype.no=function(t,e,n,i,r){if(this.Ca!==1&&t.scale(this.Ca),this.Kb!==0){var o=Sr;this.locationSpot.sb()&&(o=this.locationSpot);var s=$.alloc();if(this.locationObject!==this)for(e=this.locationObject,n=e.naturalBounds,s.yi(n.x,n.y,n.width,n.height,o),e.Lb!==null&&e.Lb.Ga(s),s.offset(-e.measuredBounds.x,-e.measuredBounds.y),o=e.panel;o!==null&&o!==this;)o.Lb!==null&&o.Lb.Ga(s),s.offset(-o.measuredBounds.x,-o.measuredBounds.y),o=o.panel;else s.yi(e,n,i,r,o);t.rotate(this.Kb,s.x,s.y),$.free(s)}},li.prototype.move=function(t,e){e===!0?this.location=t:this.position=t},li.prototype.moveTo=function(t,e,n){t=$.allocAt(t,e),this.move(t,n),$.free(t)},li.prototype.isVisible=function(){if(!this.visible)return!1;var t=this.layer;if(t!==null){if(!t.visible)return!1;if(t=t.diagram,t!==null&&t.animationManager.fv(this))return!0}return t=this.containingGroup,!!(t===null||t.isSubGraphExpanded&&t.isVisible())},li.prototype.Zb=function(t){var e=this.diagram;t?(this.C(4),this.Wb(),e!==null&&e.De.add(this)):(this.C(8),this.Ej()),this.oh(),e!==null&&(e.Ya(),e.N())},li.prototype.fb=function(t){if(this.name===t)return this;var e=this.Rh;if(e===null&&(this.Rh=e=new pt),e.I(t)!==null)return e.I(t);var n=sn.prototype.fb.call(this,t);return n!==null?(e.set(t,n),n):(e.set(t,null),null)};function Ih(t,e,n,i){i===void 0&&(i=new $),n=n.Mc()?Sr:n;var r=e.naturalBounds;if(i.h(r.width*n.x+n.offsetX,r.height*n.y+n.offsetY),e===null||e===t)return i;for(e.transform.Ga(i),e=e.panel;e!==null&&e!==t;)e.transform.Ga(i),e=e.panel;return t.Lb!==null&&t.Lb.Ga(i),i.offset(-t.uc.x,-t.uc.y),i}li.prototype.mi=function(t){return t===void 0&&(t=new ke),t.assign(this.actualBounds)},li.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function jy(t){var e=$.alloc(),n=t.locationObject,i=n.naturalBounds,r=n instanceof Qi?n.strokeWidth:0;if(e.yi(0,0,i.width+r,i.height+r,t.locationSpot),n!==t)for(e.offset(-r/2,-r/2),n.transform.Ga(e),n=n.panel;n!==null&&n!==t;)n.transform.Ga(e),n=n.panel;return t.Lb!==null&&t.Lb.Ga(e),e.offset(-t.uc.x,-t.uc.y),e}function Md(t,e){var n=t.py;isNaN(t.ag)&&(t.ag=vy(t));var i=t.ag,r=2*i;if(!t.isShadowed)return n.h(e.x-1-i,e.y-1-i,e.width+2+r,e.height+2+r),n;i=e.x,r=e.y;var o=e.width;e=e.height;var s=t.shadowBlur;return t=t.shadowOffset,o+=s,e+=s,i-=s/2,r-=s/2,0<t.x?o+=t.x:(i+=t.x,o-=t.x),0<t.y?e+=t.y:(r+=t.y,e-=t.y),n.h(i-1,r-1,o+2,e+2),n}li.prototype.arrange=function(){if(pl(this)===!1)$y(this);else{Pc(this,!1);var t=this.Ib,e=ke.alloc();e.assign(t);var n=Xh(this);this.eh(0,0,this.uc.width,this.uc.height);var i=this.position;_y(this,i,this.location),t.ka(),t.x=i.x,t.y=i.y,t.freeze(),this.Xl(e,t),e.D(t)?this.Fd(n):!this.Zc()||Vt.B(e.width,t.width)&&Vt.B(e.height,t.height)||0<=this.vw&&this.C(16),ke.free(e),Wg(this,!1)}},D=li.prototype,D.Xl=function(t,e){var n=this.diagram;if(n!==null){var i=!1;if(n.Zi===!1&&t.w()){var r=ke.alloc();r.assign(n.documentBounds),r.Fv(n.padding),t.x>r.x&&t.y>r.y&&t.right<r.right&&t.bottom<r.bottom&&e.x>r.x&&e.y>r.y&&e.right<r.right&&e.bottom<r.bottom&&(i=!0),ke.free(r)}!(this.G&65536)&&t.D(e)||Wy(this,i,n),n.N(),!t.w()&&!e.w()||lo(t,e)||(this instanceof Rn&&!n.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},D.zv=function(t,e,n){if(this.ph()||!t.w())return!1;var i=this.diagram;return i!==null&&Uy(this,i,t,e,n),this.pa=t,this.G&=-2097153,!this.ke.w()||i!==null&&!i.animationManager.isTicking&&i.undoManager.isUndoingRedoing||(i=this.ke,this.ke=new $(i.x+(t.x-e),i.y+(t.y-n)),this.g("location",i,this.ke.copy())),Yh(this)===!1&&pl(this)===!1&&(J0(this),$y(this)),!0};function Uy(t,e,n,i,r){e===null||t instanceof jr||(e=e.animationManager,e.zb&&ds(e,t,new $(i,r),n))}D.mm=function(t,e,n){var i=this.ke,r=this.pa;if(n){if(i.x===t&&i.y===e)return;Yh(this)||pl(this)?r.h(NaN,NaN):r.h(r.x+t-i.x,r.y+e-i.y),i.h(t,e)}else{if(r.x===t&&r.y===e)return;i.h(i.x+t-r.x,i.y+e-r.y),r.h(t,e)}J0(this)},D.Av=function(){this.G&=-2097153,J0(this)};function _y(t,e,n){var i=jy(t),r=t.diagram,o=n.w(),s=e.w();o&&s?t.G&2097152?Hy(t,e,n,r,i):Gy(t,e,n,r,i):o?Hy(t,e,n,r,i):s&&Gy(t,e,n,r,i),t.G|=2097152,$.free(i),t.Uk()}function Hy(t,e,n,i,r){var o=e.x,s=e.y;e.h(n.x-r.x,n.y-r.y),i!==null&&(n=i.animationManager,(i=n.defaultAnimation.isAnimating)||!n.zb||t instanceof jr||ds(n,t,new $(o,s),e),i||e.x===o&&e.y===s||t.g("position",new $(o,s),e.copy()))}function Gy(t,e,n,i,r){var o=n.copy();n.h(e.x+r.x,e.y+r.y),n.D(o)||i===null||t.g("location",o,n.copy())}function Wy(t,e,n){Vg(t,!1),t instanceof Rn&&Sh(n,t),t.layer.isTemporary||e||n.Ya(),e=t.Ib;var i=n.viewportBounds;i.w()?Xh(t)?(Ko(e,i)||t.Fd(!1),t.updateAdornments()):t.isVisible()&&e.Yc(i)?(t.Fd(!0),t.updateAdornments()):t.Wb():n.vd=!0}D.si=function(){return!0},D.Zc=function(){return!0},D.ph=function(){return!1},D.Dd=function(){return!0};function Gg(t,e,n,i){e.constructor===t.constructor||Zy||(Zy=!0,hi('Should not change the class of the Part when changing category from "'+n+'" to "'+i+'"'),hi(" Old class: "+Je(t.constructor)+", new class: "+Je(e.constructor)+", part: "+t.toString())),t.Ej();var r=t.data;n=t.layerName;var o=t.isSelected,s=t.isHighlighted,l=!0,u=!0,d=!1;t instanceof Rn&&(l=t.isTreeLeaf,u=t.isTreeExpanded,d=t.wasTreeExpanded),e.Af(t),e.cloneProtected(t),t.Tf=i,t.svg!==null&&(t.svg.remove(),t.svg=null,t.Uc=!0),t.v(),t.N(),e=t.diagram,i=!0,e!==null&&(i=e.skipsUndoManager,e.skipsUndoManager=!0),t.ub=r,t.G=o?t.G|4096:t.G&-4097,t.G=s?t.G|524288:t.G&-524289,t instanceof Rn&&(t.U=l?t.U|4:t.U&-5,t.U=u?t.U|1:t.U&-2,t.U=d?t.U|2:t.U&-3),r!==null&&t.La(),r=t.layerName,r!==n&&(t.Jg=n,t.layerName=r),e!==null&&(e.skipsUndoManager=i),t.Zc()&&t.C(64)}li.prototype.canCopy=function(){if(!this.copyable)return!1;var t=this.layer;return t===null?!0:t.allowCopy?(t=t.diagram,t===null?!0:!!t.allowCopy):!1},li.prototype.canDelete=function(){if(!this.deletable)return!1;var t=this.layer;return t===null?!0:t.allowDelete?(t=t.diagram,t===null?!0:!!t.allowDelete):!1},li.prototype.canEdit=function(){if(!this.textEditable)return!1;var t=this.layer;return t===null?!0:t.allowTextEdit?(t=t.diagram,t===null?!0:!!t.allowTextEdit):!1},li.prototype.canGroup=function(){if(!this.groupable)return!1;var t=this.layer;return t===null?!0:t.allowGroup?(t=t.diagram,t===null?!0:!!t.allowGroup):!1},li.prototype.canMove=function(){if(!this.movable)return!1;var t=this.layer;return t===null?!0:t.allowMove?(t=t.diagram,t===null?!0:!!t.allowMove):!1},li.prototype.canReshape=function(){if(!this.reshapable)return!1;var t=this.layer;return t===null?!0:t.allowReshape?(t=t.diagram,t===null?!0:!!t.allowReshape):!1},li.prototype.canResize=function(){if(!this.resizable)return!1;var t=this.layer;return t===null?!0:t.allowResize?(t=t.diagram,t===null?!0:!!t.allowResize):!1},li.prototype.canRotate=function(){if(!this.rotatable)return!1;var t=this.layer;return t===null?!0:t.allowRotate?(t=t.diagram,t===null?!0:!!t.allowRotate):!1},li.prototype.canSelect=function(){if(!this.selectable)return!1;var t=this.layer;return t===null?!0:t.allowSelect?(t=t.diagram,t===null?!0:!!t.allowSelect):!1};function Yh(t){return(t.G&32768)!==0}function Wg(t,e){t.G=e?t.G|32768:t.G&-32769}function Vg(t,e){t.G=e?t.G|65536:t.G&-65537}function Xh(t){return(t.G&131072)!==0}D=li.prototype,D.Fd=function(t){this.G=t?this.G|131072:this.G&-131073};function Q0(t,e){t.G=e?t.G|1048576:t.G&-1048577}D.oh=function(){var t=this.containingGroup;t!==null&&(t.v(),t.placeholder!==null&&t.placeholder.v(),t.Bd())},D.N=function(){var t=this.diagram;t!==null&&!pl(this)&&!Yh(this)&&this.isVisible()&&this.Ib.w()&&t.N(Md(this,this.Ib))},D.v=function(){sn.prototype.v.call(this);var t=this.diagram;t!==null&&(t.De.add(this),this instanceof Rn&&this.labeledLink!==null&&dl(this.labeledLink),t.$b(!0))},D.Vo=function(t){t||(t=this.Ah,t!==null&&Qg(t,this))},D.Wo=function(t){t||(t=this.Ah,t!==null&&qg(t,this))},D.Lj=function(){var t=this.data;if(t!==null){var e=this.diagram;e!==null&&(e=e.model,e!==null&&e.cm(t))}},D.oz=function(){return Kg(this,this)};function Kg(t,e){var n=e.containingGroup;return n!==null?1+Kg(t,n):e instanceof Rn&&(e=e.labeledLink,e!==null)?Kg(t,e):0}D.sz=function(){return Vy(this,this)};function Vy(t,e){var n=e.containingGroup;return n!==null||e instanceof Rn&&(n=e.labeledLink,n!==null)?Vy(t,n):e}D.Td=function(t){return t instanceof Ki?Zg(this,this,t):!1};function Zg(t,e,n){if(e===n||n===null)return!1;var i=e.containingGroup;return i===null||i!==n&&!Zg(t,i,n)?e instanceof Rn&&(e=e.labeledLink,e!==null)?Zg(t,e,n):!1:!0}D.px=function(t){if(t===null)return null;if(this===t)return this.containingGroup;for(var e=this;e!==null;){if(e instanceof Ki&&Q0(e,!0),e instanceof Rn){var n=e.labeledLink;n!==null&&(e=n)}e=e.containingGroup}for(n=null,e=t;e!==null;){if(e.G&1048576){n=e;break}e instanceof Rn&&(t=e.labeledLink,t!==null&&(e=t)),e=e.containingGroup}for(e=this;e!==null;)e instanceof Ki&&Q0(e,!1),e instanceof Rn&&(t=e.labeledLink,t!==null&&(e=t)),e=e.containingGroup;return n},li.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var t=this.layer;return!(t!==null&&t.isTemporary||this instanceof Rn&&this.isLinkLabel)},li.prototype.C=function(t){if(t===void 0&&(t=16777215),this.isLayoutPositioned&&t&this.layoutConditions){var e=this.layer;e!==null&&e.isTemporary||this instanceof Rn&&this.isLinkLabel?e=!1:(e=this.diagram,e=!(e!==null&&e.undoManager.isUndoingRedoing))}else e=!1;if(e)if(e=this.Ah,e!==null){var n=e.layout;n!==null?n.C():e.C(t)}else t=this.diagram,t!==null&&(t=t.layout,t!==null&&t.C())};function Ky(t){return t.isVisible()?(t=t.layer,!(t!==null&&t.isTemporary)):!1}function Jh(t,e,n,i,r,o){if(o===void 0&&(o=null),!(t.contains(e)||o!==null&&!o(e)||e instanceof jr)){if(t.add(e),e instanceof Rn){if(n&&e instanceof Ki)for(var s=e.memberParts;s.next();)Jh(t,s.value,n,i,r,o);if(r!==!1)for(s=e.linksConnected;s.next();){var l=s.value;if(!t.contains(l)){var u=l.fromNode,d=l.toNode;u=u===null||t.contains(u),d=d===null||t.contains(d),(r?u&&d:u||d)&&Jh(t,l,n,i,r,o)}}if(1<i)for(e=e.Ou();e.next();)Jh(t,e.value,n,i-1,r,o)}else if(e instanceof pn)for(e=e.labelNodes;e.next();)Jh(t,e.value,n,i,r,o)}}te.Object.defineProperties(li.prototype,{key:{get:function(){var t=this.diagram;if(t!==null)return t.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?Er:this.Qf.iteratorValues}},layer:{get:function(){return this.Ig}},diagram:{get:function(){var t=this.Ig;return t==null?null:t.diagram}},layerName:{get:function(){return this.Jg},set:function(t){var e=this.Jg;if(e!==t){var n=this.diagram;if((n===null||n.Qj(t)!==null&&!n.partManager.addsToTemporaryLayer)&&(this.Jg=t,n!==null&&n.Ya(),this.g("layerName",e,t),e=this.layer,e!==null&&e.name!==t&&(n=e.diagram,n!==null&&(t=n.Qj(t),t!==null&&t!==e)))){var i=e.pc(-1,this,!0);if(0<=i&&n.cb(Ts,"parts",e,this,null,i,!0),i=t.oi(99999999,this,!0),e.visible!==t.visible&&this.Zb(t.visible),0<=i&&n.cb(hs,"parts",t,null,this,!0,i),i=this.layerChanged,i!==null){var r=n.aa;n.aa=!0,i(this,e,t),n.aa=r}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(t){var e=this.layerChanged;e!==t&&(Ll(this),this.P.zq=t,this.g("layerChanged",e,t))}},zOrder:{get:function(){return this.Ao},set:function(t){var e=this.Ao;if(e!==t){this.Ao=t;var n=this.layer;n!==null&&kl(n,-1,this),this.g("zOrder",e,t),t=this.diagram,t!==null&&t.N()}}},locationObject:{get:function(){if(this.nf===null){var t=this.locationObjectName;t!==""?(t=this.fb(t),t!==null?this.nf=t:this.nf=this):this instanceof jr?this.type!==sn.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:bi},set:function(t){var e=this.minLocation;e.D(t)||(t=t.J(),Ll(this),this.P.Pq=t,this.g("minLocation",e,t))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:qi},set:function(t){var e=this.maxLocation;e.D(t)||(t=t.J(),Ll(this),this.P.Kq=t,this.g("maxLocation",e,t))}},locationObjectName:{get:function(){return this.P!==null?this.P.Gq:""},set:function(t){var e=this.locationObjectName;e!==t&&(Ll(this),this.P.Gq=t,this.nf=null,this.v(),this.g("locationObjectName",e,t))}},locationSpot:{get:function(){return this.P!==null?this.P.Hq:Fs},set:function(t){var e=this.locationSpot;e.D(t)||(t=t.J(),Ll(this),this.P.Hq=t,this.v(),this.g("locationSpot",e,t))}},location:{get:function(){return this.ke},set:function(t){var e=t.x,n=t.y,i=this.ke;if(!(i.x===e||isNaN(i.x)&&isNaN(e))||!(i.y===n||isNaN(i.y)&&isNaN(n))){if(t=t.copy(),e=t,this.ph())e=!1;else{if(this.ke=e,this.G|=2097152,pl(this)===!1&&(J0(this),n=this.pa,n.w())){var r=this.diagram;if(r===null||r.animationManager.isTicking||!r.undoManager.isUndoingRedoing){var o=n.copy();n.h(n.x+(e.x-i.x),n.y+(e.y-i.y)),Uy(this,r,n,o.x,o.y),this.g("position",o,n.copy())}}e=!0}e&&this.g("location",i,t.copy())}}},category:{get:function(){return this.Tf},set:function(t){var e=this.Tf;if(e!==t){this.svg!==null&&(this.svg.remove(),this.Uc=!0);var n=this.diagram,i=this.data,r=null;if(n!==null&&i!==null&&!(this instanceof jr)){var o=n.model.undoManager;o.isEnabled&&!o.isUndoingRedoing&&(r=this.clone(),r.O.addAll(this.O))}this.Tf=t,this.g("category",e,t),n===null||i===null||this instanceof jr?this instanceof jr&&(r=this.adornedPart,r!==null&&(t=r.Qf,t!==null&&t.remove(e),r.bh(this.category,this))):(o=n.model,o.undoManager.isUndoingRedoing||(this.ph()?(n.partManager.setLinkCategoryForData(i,t),n=n.partManager.findLinkTemplateForCategory(t),n!==null&&(_u(n),n=n.copy(),n!==null&&Gg(this,n,e,t))):(o!==null&&o.jm(i,t),n=x1(n.partManager,i,t),n!==null&&(_u(n),n=n.copy(),n===null||n instanceof pn||(i=this.location.copy(),Gg(this,n,e,t),this.location.w()||(this.location=i)))),r!==null&&(e=this.clone(),e.O.addAll(this.O),this.g("self",r,e))))}}},self:{get:function(){return this},set:function(t){Gg(this,t,this.category,t.category)}},copyable:{get:function(){return(this.G&1)!==0},set:function(t){var e=(this.G&1)!==0;e!==t&&(this.G^=1,this.g("copyable",e,t))}},deletable:{get:function(){return(this.G&2)!==0},set:function(t){var e=(this.G&2)!==0;e!==t&&(this.G^=2,this.g("deletable",e,t))}},textEditable:{get:function(){return(this.G&4)!==0},set:function(t){var e=(this.G&4)!==0;e!==t&&(this.G^=4,this.g("textEditable",e,t),this.Wb())}},groupable:{get:function(){return(this.G&8)!==0},set:function(t){var e=(this.G&8)!==0;e!==t&&(this.G^=8,this.g("groupable",e,t))}},movable:{get:function(){return(this.G&16)!==0},set:function(t){var e=(this.G&16)!==0;e!==t&&(this.G^=16,this.g("movable",e,t))}},selectionAdorned:{get:function(){return(this.G&32)!==0},set:function(t){var e=(this.G&32)!==0;e!==t&&(this.G^=32,this.g("selectionAdorned",e,t),this.Wb())}},isInDocumentBounds:{get:function(){return(this.G&64)!==0},set:function(t){var e=(this.G&64)!==0;if(e!==t){this.G^=64;var n=this.diagram;n!==null&&n.Ya(),this.g("isInDocumentBounds",e,t)}}},isLayoutPositioned:{get:function(){return(this.G&128)!==0},set:function(t){var e=(this.G&128)!==0;e!==t&&(this.G^=128,this.g("isLayoutPositioned",e,t),this.C(t?4:8))}},selectable:{get:function(){return(this.G&256)!==0},set:function(t){var e=(this.G&256)!==0;e!==t&&(this.G^=256,this.g("selectable",e,t),this.Wb())}},reshapable:{get:function(){return(this.G&512)!==0},set:function(t){var e=(this.G&512)!==0;e!==t&&(this.G^=512,this.g("reshapable",e,t),this.Wb())}},resizable:{get:function(){return(this.G&1024)!==0},set:function(t){var e=(this.G&1024)!==0;e!==t&&(this.G^=1024,this.g("resizable",e,t),this.Wb())}},rotatable:{get:function(){return(this.G&2048)!==0},set:function(t){var e=(this.G&2048)!==0;e!==t&&(this.G^=2048,this.g("rotatable",e,t),this.Wb())}},isSelected:{get:function(){return(this.G&4096)!==0},set:function(t){var e=(this.G&4096)!==0;if(e!==t){var n=this.diagram;if(!t||this.canSelect()&&!(n!==null&&n.selection.count>=n.maxSelectionCount)){this.G^=4096;var i=!1;if(n!==null){i=n.skipsUndoManager,n.skipsUndoManager=!0;var r=n.selection;r.ka(),t?r.add(this):r.remove(this),r.freeze()}this.g("isSelected",e,t),this.Wb(),t=this.selectionChanged,t!==null&&t(this),n!==null&&(n.$b(),n.skipsUndoManager=i)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(t){var e=(this.G&524288)!==0;if(e!==t){this.G^=524288;var n=this.diagram;n!==null&&(n=n.highlighteds,n.ka(),t?n.add(this):n.remove(this),n.freeze()),this.g("isHighlighted",e,t),this.N(),t=this.highlightedChanged,t!==null&&t(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(t){var e=(this.G&8192)!==0;e!==t&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",e,t),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(t){var e=(this.G&262144)!==0;e!==t&&(this.G^=262144,this.g("isAnimated",e,t))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(t){var e=this.highlightedChanged;e!==t&&(Ll(this),this.P.oq=t,this.g("highlightedChanged",e,t))}},selectionObjectName:{get:function(){return this.P!==null?this.P.vr:""},set:function(t){var e=this.selectionObjectName;e!==t&&(Ll(this),this.P.vr=t,this.Ug=null,this.g("selectionObjectName",e,t))}},selectionAdornmentTemplate:{get:function(){return this.P!==null?this.P.tr:null},set:function(t){var e=this.selectionAdornmentTemplate;e!==t&&(Ll(this),this.P.tr=t,this.g("selectionAdornmentTemplate",e,t))}},selectionObject:{get:function(){if(this.Ug===null){var t=this.selectionObjectName;t!==null&&t!==""?(t=this.fb(t),t!==null?this.Ug=t:this.Ug=this):this instanceof pn?(t=this.path,t!==null?this.Ug=t:this.Ug=this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return this.P!==null?this.P.ur:null},set:function(t){var e=this.selectionChanged;e!==t&&(Ll(this),this.P.ur=t,this.g("selectionChanged",e,t))}},resizeAdornmentTemplate:{get:function(){return this.P!==null?this.P.fr:null},set:function(t){var e=this.resizeAdornmentTemplate;e!==t&&(Ll(this),this.P.fr=t,this.g("resizeAdornmentTemplate",e,t))}},resizeObjectName:{get:function(){return this.P!==null?this.P.hr:""},set:function(t){var e=this.resizeObjectName;e!==t&&(Ll(this),this.P.hr=t,this.g("resizeObjectName",e,t))}},resizeObject:{get:function(){var t=this.resizeObjectName;return t!==""&&(t=this.fb(t),t!==null)?t:this}},resizeCellSize:{get:function(){return this.P!==null?this.P.gr:da},set:function(t){var e=this.resizeCellSize;e.D(t)||(t=t.J(),Ll(this),this.P.gr=t,this.g("resizeCellSize",e,t))}},rotateAdornmentTemplate:{get:function(){return this.P!==null?this.P.ir:null},set:function(t){var e=this.rotateAdornmentTemplate;e!==t&&(Ll(this),this.P.ir=t,this.g("rotateAdornmentTemplate",e,t))}},rotateObjectName:{get:function(){return this.P!==null?this.P.jr:""},set:function(t){var e=this.rotateObjectName;e!==t&&(Ll(this),this.P.jr=t,this.g("rotateObjectName",e,t))}},rotateObject:{get:function(){var t=this.rotateObjectName;return t!==""&&(t=this.fb(t),t!==null)?t:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:_r},set:function(t){var e=this.rotationSpot;e.D(t)||(t=t.J(),Ll(this),this.P.lr=t,this.g("rotationSpot",e,t))}},text:{get:function(){return this.ec},set:function(t){var e=this.ec;e!==t&&(this.ec=t,this.g("text",e,t))}},containingGroup:{get:function(){return this.Ah},set:function(t){if(this.Zc()){var e=this.Ah;if(e!==t){t===null||this!==t&&!t.Td(this)||(this===t&&ne("Cannot make a Group a member of itself: "+this.toString()),ne("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+t.toString())),this.C(2);var n=this.diagram;if(e!==null?qg(e,this):this instanceof Ki&&n!==null&&n.ai.remove(this),this.Ah=t,t!==null?Qg(t,this):this instanceof Ki&&n!==null&&n.ai.add(this),this.C(1),n!==null&&n.aa){var i=this.data,r=n.model;if(i!==null&&r.Xj()){var o=r.wa(t!==null?t.data:null);r.mp(i,o)}}if(i=this.containingGroupChanged,i!==null&&(r=!0,n!==null&&(r=n.aa,n.aa=!0),i(this,e,t),n!==null&&(n.aa=r)),this instanceof Ki){for(n=new je,Jh(n,this,!0,0,!0),n=n.iterator;n.next();)if(i=n.value,i instanceof Rn)for(i=i.linksConnected;i.next();)Bp(i.value)}if(this instanceof Rn){for(n=this.linksConnected;n.next();)Bp(n.value);n=this.labeledLink,n!==null&&Bp(n)}this.g("containingGroup",e,t),t!==null&&(e=t.layer,e!==null&&kl(e,-1,t))}}else ne("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return this.P!==null?this.P.Kp:null},set:function(t){var e=this.containingGroupChanged;e!==t&&(Ll(this),this.P.Kp=t,this.g("containingGroupChanged",e,t))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof Rn&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(t){var e=this.layoutConditions;e!==t&&(Ll(this),this.P.Cq=t,this.g("layoutConditions",e,t))}},dragComputation:{get:function(){return this.P!==null?this.P.Up:null},set:function(t){var e=this.dragComputation;e!==t&&(Ll(this),this.P.Up=t,this.g("dragComputation",e,t))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:go},set:function(t){var e=this.shadowOffset;e.D(t)||(t=t.J(),Ll(this),this.P.zr=t,this.N(),this.g("shadowOffset",e,t))}},shadowColor:{get:function(){return this.P!==null?this.P.yr:"gray"},set:function(t){var e=this.shadowColor;e!==t&&(Ll(this),this.P.yr=t,this.N(),this.g("shadowColor",e,t))}},shadowBlur:{get:function(){return this.P!==null?this.P.Vg:4},set:function(t){var e=this.shadowBlur;e!==t&&(Ll(this),this.P.Vg=t,this.N(),this.g("shadowBlur",e,t))}}}),li.prototype.invalidateLayout=li.prototype.C,li.prototype.findCommonContainingGroup=li.prototype.px,li.prototype.isMemberOf=li.prototype.Td,li.prototype.findTopLevelPart=li.prototype.sz,li.prototype.findSubGraphLevel=li.prototype.oz,li.prototype.ensureBounds=li.prototype.Va,li.prototype.getDocumentBounds=li.prototype.mi,li.prototype.findObject=li.prototype.fb,li.prototype.moveTo=li.prototype.moveTo,li.prototype.invalidateAdornments=li.prototype.Wb,li.prototype.clearAdornments=li.prototype.Ej,li.prototype.removeAdornment=li.prototype.Jf,li.prototype.addAdornment=li.prototype.bh,li.prototype.findAdornment=li.prototype.Pj,li.prototype.updateTargetBindings=li.prototype.La;var Zy=!1;li.className="Part",li.LayoutNone=0,li.LayoutAdded=1,li.LayoutRemoved=2,li.LayoutShown=4,li.LayoutHidden=8,li.LayoutNodeSized=16,li.LayoutGroupLayout=32,li.LayoutNodeReplaced=64,li.LayoutStandard=127,li.LayoutAll=16777215;function jr(t,e){t===void 0||t instanceof ea||typeof t=="string"?li.call(this,t):(li.call(this),t&&(e=t)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,e&&Object.assign(this,e)}Jn(jr,li),jr.prototype.toString=function(){var t=this.adornedPart;return"Adornment("+this.category+")"+(t!==null?t.toString():"")},jr.prototype.updateRelationshipsFromData=function(){},jr.prototype.Ul=function(t){var e=this.adornedObject,n=e==null?void 0:e.part;if(n instanceof pn&&e instanceof Qi){e=n.path,n.Ul(t),t=e.geometry,n=this.O.s,e=n.length;for(var i=0;i<e;i++){var r=n[i];r.isPanelMain&&r instanceof Qi&&(r.ua=t)}}},jr.prototype.si=function(){var t=this.ue;return t===null?!0:(t=t.part,t===null||!pl(t))},jr.prototype.Zc=function(){return!1},jr.prototype.gk=function(t,e,n,i,r,o,s){if(t===hs&&e==="elements"){if(r instanceof ml)this.$a===null&&(this.$a=r);else if(r instanceof sn){var l=r.Nl(function(u){return u instanceof ml});l instanceof ml&&this.$a===null&&(this.$a=l)}}else t===Ts&&e==="elements"&&this.$a!==null&&(i===this.$a?this.$a=null:i instanceof sn&&this.$a.rg(i)&&(this.$a=null));li.prototype.gk.call(this,t,e,n,i,r,o,s)},jr.prototype.updateAdornments=function(){},jr.prototype.Lj=function(){},te.Object.defineProperties(jr.prototype,{placeholder:{get:function(){return this.$a}},adornedObject:{get:function(){return this.ue},set:function(t){var e=this.adornedPart,n=null;t!==null&&(n=t.part),e===null||t!==null&&e===n||e.Jf(this.category),this.ue=t,n!==null&&n.bh(this.category,this)}},adornedPart:{get:function(){var t=this.ue;return t!==null?t.part:null}},containingGroup:{get:function(){return null}}}),jr.className="Adornment";function Yg(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=sl,this.er=em,this.Kr=this.ij=this.Nq=this.Mq=null}Yg.prototype.copy=function(){var t=new Yg;return t.Dq=this.Dq,t.Eq=this.Eq,t.gj=this.gj,t.Vr=this.Vr,t.yp=this.yp.J(),t.er=this.er,t.Mq=this.Mq,t.Nq=this.Nq,t.ij=this.ij,t.Kr=this.Kr,t};function Rn(t,e){t===void 0||t instanceof ea||typeof t=="string"?li.call(this,t):(li.call(this),t&&(e=t)),this.U=13,this.Ba=null,this.jb=new Re,this.wc=this.af=this.Yk=null,this.ci=!1,e&&Object.assign(this,e)}Jn(Rn,li),Rn.prototype.cloneProtected=function(t){li.prototype.cloneProtected.call(this,t),t.U=this.U,this.Ba!==null&&(t.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},D=Rn.prototype,D.Af=function(t){li.prototype.Af.call(this,t),t.Bd(),t.af=this.af,t.wc=null};function Ah(t){t.Ba===null?t.Ba=new Yg:t.Ba.nc&&(t.Ba=t.Ba.copy())}D.th=function(){li.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function Yy(t,e){e!==null&&(t.af===null&&(t.af=new je),t.af.add(e))}function Xy(t,e,n,i){if(e===null||t.af===null)return null;for(var r=t.af.iterator;r.next();){var o=r.value;if(o.Ds===t&&o.cv===e&&o.Ox===n&&o.Px===i||o.Ds===e&&o.cv===t&&o.Ox===i&&o.Px===n)return o}return null}D.Lz=function(t,e,n){e==null&&(e=""),n==null&&(n=""),t=Xy(this,t,e,n),t!==null&&t.Sl()},D.gk=function(t,e,n,i,r,o,s){t===hs&&e==="elements"?this.wc=null:t===Ts&&e==="elements"&&(this.wc=null),li.prototype.gk.call(this,t,e,n,i,r,o,s)},D.Bd=function(t){for(var e=this.linksConnected;e.next();){var n=e.value;t!==void 0&&t.contains(n)||(Jl(n.fromPort),Jl(n.toPort),n.bb())}};function Jy(t,e){for(t=t.linksConnected;t.next();){var n=t.value;(n.fromPort===e||n.toPort===e)&&(Jl(n.fromPort),Jl(n.toPort),n.bb())}}function Jl(t){if(t!==null){var e=t.Zn;e!==null&&e.Sl(),t=t.part,e=t.containingGroup,e===null||t.isVisible()||Jl(e.port)}}D.si=function(){return!0},Rn.prototype.getAvoidableRect=function(t){return t.set(this.actualBounds),t.Co(this.avoidableMargin),t},Rn.prototype.findVisibleNode=function(){for(var t=this;t!==null&&!t.isVisible();)t=t.containingGroup;return t},Rn.prototype.isVisible=function(){if(!li.prototype.isVisible.call(this))return!1;var t=!0,e=Ch,n=this.diagram;if(n!==null&&(t=n.isTreePathToChildren,e=n.treeCollapsePolicy),e===Ch){if(t=this.pg(),t!==null&&!t.isTreeExpanded)return!1}else if(e===Ks){if(t=t?this.Oo():this.Po(),0<t.count&&t.all(function(i){return!i.isTreeExpanded}))return!1}else if(e===wp&&(t=t?this.Oo():this.Po(),0<t.count&&t.any(function(i){return!i.isTreeExpanded})))return!1;return t=this.labeledLink,t!==null?t.isVisible():!0},Rn.prototype.Zb=function(t){li.prototype.Zb.call(this,t);for(var e=this.linksConnected;e.next();){var n=e.value;if(t&&this.containingGroup!==null){var i=n.To(this);i===null||i.Td(this.containingGroup)||n.bb()}n.Zb(t)}},Rn.prototype.qx=function(){var t=new je,e=new je;return Qy(this,this,t,e),e.iterator};function Qy(t,e,n,i){if(e!==null&&!n.has(e)){n.add(e);var r=!0,o=t.diagram;o!==null&&(r=o.isTreePathToChildren),e.linksConnected.each(function(s){s.isTreeLink?(r?s.fromNode===e:s.toNode===e)&&Qy(t,r?s.toNode:s.fromNode,n,i):i.add(s)})}}Rn.prototype.findLinksConnected=function(t){if(t===void 0&&(t=null),t===null)return this.jb.iterator;var e=new pi(this.jb),n=this;return e.predicate=function(i){return i.fromNode===n&&i.fromPortId===t||i.toNode===n&&i.toPortId===t},e},D=Rn.prototype,D.Mo=function(t){t===void 0&&(t=null);var e=new pi(this.jb),n=this;return e.predicate=function(i){return i.fromNode!==n?!1:t===null?!0:i.fromPortId===t},e},D.Sd=function(t){t===void 0&&(t=null);var e=new pi(this.jb),n=this;return e.predicate=function(i){return i.toNode!==n?!1:t===null?!0:i.toPortId===t},e},D.Mu=function(t){t===void 0&&(t=null);for(var e=null,n=null,i=this.jb.iterator;i.next();){var r=i.value;r.fromNode===this?(t===null||r.fromPortId===t)&&(r=r.toNode,e!==null?e.add(r):n!==null&&n!==r?(e=new je,e.add(n),e.add(r)):n=r):r.toNode!==this||t!==null&&r.toPortId!==t||(r=r.fromNode,e!==null?e.add(r):n!==null&&n!==r?(e=new je,e.add(n),e.add(r)):n=r)}return e!==null?e.iterator:n!==null?new Pi(n):Er},D.Po=function(t){t===void 0&&(t=null);for(var e=null,n=null,i=this.jb.iterator;i.next();){var r=i.value;r.fromNode!==this||t!==null&&r.fromPortId!==t||(r=r.toNode,e!==null?e.add(r):n!==null&&n!==r?(e=new je,e.add(n),e.add(r)):n=r)}return e!==null?e.iterator:n!==null?new Pi(n):Er},D.Oo=function(t){t===void 0&&(t=null);for(var e=null,n=null,i=this.jb.iterator;i.next();){var r=i.value;r.toNode!==this||t!==null&&r.toPortId!==t||(r=r.fromNode,e!==null?e.add(r):n!==null&&n!==r?(e=new je,e.add(n),e.add(r)):n=r)}return e!==null?e.iterator:n!==null?new Pi(n):Er},D.jz=function(t,e,n){e===void 0&&(e=null),n===void 0&&(n=null);var i=new pi(this.jb),r=this;return i.predicate=function(o){return!((o.fromNode!==r||o.toNode!==t||e!==null&&o.fromPortId!==e||n!==null&&o.toPortId!==n)&&(o.fromNode!==t||o.toNode!==r||n!==null&&o.fromPortId!==n||e!==null&&o.toPortId!==e))},i},D.kz=function(t,e,n){e===void 0&&(e=null),n===void 0&&(n=null);var i=new pi(this.jb),r=this;return i.predicate=function(o){return!(o.fromNode!==r||o.toNode!==t||e!==null&&o.fromPortId!==e||n!==null&&o.toPortId!==n)},i};function q0(t,e,n){Jl(n);var i=t.jb.contains(e);if(i||t.jb.add(e),!i||e.fromNode===e.toNode){var r=t.linkConnected;if(r!==null){var o=!0,s=t.diagram;s!==null&&(o=s.aa,s.aa=!0),r(t,e,n),s!==null&&(s.aa=o)}}!i&&e.isTreeLink&&(n=e.fromNode,e=e.toNode,n!==null&&e!==null&&n!==e&&(i=!0,t=t.diagram,t!==null&&(i=t.isTreePathToChildren),r=i?e:n,o=i?n:e,r.ci||(r.ci=o),!o.isTreeLeaf||t!==null&&t.undoManager.isUndoingRedoing||(i?n===o&&(o.isTreeLeaf=!1):e===o&&(o.isTreeLeaf=!1))))}function tm(t,e,n){Jl(n);var i=t.jb.remove(e),r=null;if(i||e.toNode===e.fromNode){var o=t.linkDisconnected;if(r=t.diagram,o!==null){var s=!0;r!==null&&(s=r.aa,r.aa=!0),o(t,e,n),r!==null&&(r.aa=s)}}i&&e.isTreeLink&&(n=!0,r!==null&&(n=r.isTreePathToChildren),t=n?e.toNode:e.fromNode,e=n?e.fromNode:e.toNode,t!==null&&(t.ci=!1),e===null||e.isTreeLeaf||(e.jb.count===0?(e.ci=null,r!==null&&r.undoManager.isUndoingRedoing||(e.isTreeLeaf=!0)):If(e)))}function If(t){if(t.ci=!1,t.jb.count!==0){var e=!0,n=t.diagram;if(n===null||!n.undoManager.isUndoingRedoing){for(n!==null&&(e=n.isTreePathToChildren),n=t.jb.iterator;n.next();){var i=n.value;if(i.isTreeLink){if(e){if(i.fromNode===t){t.isTreeLeaf=!1;return}}else if(i.toNode===t){t.isTreeLeaf=!1;return}}}t.isTreeLeaf=!0}}}Rn.prototype.updateRelationshipsFromData=function(){var t=this.diagram;t!==null&&t.partManager.updateRelationshipsFromData(this)},D=Rn.prototype,D.Vo=function(t){li.prototype.Vo.call(this,t),t||(If(this),t=this.Yk,t!==null&&a1(t,this))},D.Wo=function(t){li.prototype.Wo.call(this,t),t||(t=this.Yk,t!==null&&t.wd!==null&&(t.wd.remove(this),t.v()))},D.Lj=function(){if(0<this.jb.count){var t=this.diagram;if(t!==null)for(var e=t.commandHandler!==null?t.commandHandler.deletesConnectedLinks:!0,n=this.jb.copy().iterator;n.next();){var i=n.value;e?t.remove(i):(i.fromNode===this&&(i.fromNode=null),i.toNode===this&&(i.toNode=null))}}this.labeledLink=null,li.prototype.Lj.call(this)},D.ns=function(t){if(this.wc===null){if(t===""&&this.Te===!1)return this;qy(this)}var e=this.wc.I(t);return e!==null||t!==""&&(e=this.wc.I(""),e!==null)?e:this};function qy(t){t.wc===null?t.wc=new pt:t.wc.clear(),t.qm(t,function(e,n){t1(e,n)}),t.wc.count===0&&t.wc.add("",t)}function t1(t,e){var n=e.portId;n!==null&&t.wc!==null&&t.wc.add(n,e)}function Xg(t,e,n){var i=e.portId;if(i!==null&&(t.wc!==null&&t.wc.remove(i),e=t.diagram,e!==null&&n)){for(n=null,t=t.findLinksConnected(i);t.next();)i=t.value,n===null&&(n=Le()),n.push(i);if(n!==null){for(t=0;t<n.length;t++)e.remove(n[t]);tn(n)}}}D.Nz=function(t){if(t===null||t===this)return!1;var e=!0,n=this.diagram;if(n!==null&&(e=n.isTreePathToChildren),n=this,e)for(;n!==t;){e=null;for(var i=n.jb.iterator;i.next();){var r=i.value;if(r.isTreeLink&&(e=r.fromNode,e!==n&&e!==this))break}if(e===this||e===null||e===n)return!1;n=e}else for(;n!==t;){for(e=null,i=n.jb.iterator;i.next()&&(r=i.value,!r.isTreeLink||(e=r.toNode,e===n||e===this)););if(e===this||e===null||e===n)return!1;n=e}return!0},D.xz=function(){var t=!0,e=this.diagram;if(e!==null&&(t=e.isTreePathToChildren),e=this,t)for(;;){t=null;for(var n=e.jb.iterator;n.next();){var i=n.value;if(i.isTreeLink&&(t=i.fromNode,t!==e&&t!==this))break}if(t===this)return this;if(t===null||t===e)return e;e=t}else for(;;){for(t=null,n=e.jb.iterator;n.next()&&(i=n.value,!i.isTreeLink||(t=i.toNode,t===e||t===this)););if(t===this)return this;if(t===null||t===e)return e;e=t}},D.gz=function(t){if(t===null)return null;if(this===t)return this;for(var e=this;e!==null;)Q0(e,!0),e=e.pg();var n=null;for(e=t;e!==null;){if(e.G&1048576){n=e;break}e=e.pg()}for(e=this;e!==null;)Q0(e,!1),e=e.pg();return n},D.kh=function(){var t=!0,e=this.diagram;if(e!==null&&(t=e.isTreePathToChildren),e=this.jb.iterator,t){for(;e.next();)if(t=e.value,t.isTreeLink&&t.fromNode!==this)return t}else for(;e.next();)if(t=e.value,t.isTreeLink&&t.toNode!==this)return t;return null},D.pg=function(){var t=this.ci;if(t===null)return null;if(t instanceof Rn)return t;t=this.diagram,t=t!==null?t.isTreePathToChildren:!0;for(var e=this.jb.iterator;e.next();){var n=e.value;if(n.isTreeLink&&(n=t?n.fromNode:n.toNode,n!==this))return this.ci=n}return this.ci=null},D.vz=function(){function t(n,i){i.add(n);var r=n.kh();r!==null&&(i.add(r),n=n.pg(),n!==null&&t(n,i))}var e=new je;return t(this,e),e},D.uz=function(){return e1(this,this)};function e1(t,e){return e=e.pg(),e===null?0:1+e1(t,e)}D.Qo=function(){var t=!0,e=this.diagram;e!==null&&(t=e.isTreePathToChildren),e=new pi(this.jb);var n=this;return e.predicate=t?function(i){return!!(i.isTreeLink&&i.fromNode===n)}:function(i){return!!(i.isTreeLink&&i.toNode===n)},e},D.Ou=function(){var t=!0,e=this.diagram;e!==null&&(t=e.isTreePathToChildren);var n=e=null,i=this.jb.iterator;if(t)for(;i.next();)t=i.value,t.isTreeLink&&t.fromNode===this&&(t=t.toNode,e!==null?e.add(t):n!==null&&n!==t?(e=new Re,e.add(n),e.add(t)):n=t);else for(;i.next();)t=i.value,t.isTreeLink&&t.toNode===this&&(t=t.fromNode,e!==null?e.add(t):n!==null&&n!==t?(e=new Re,e.add(n),e.add(t)):n=t);return e!==null?e.iterator:n!==null?new Pi(n):Er},D.wz=function(t){t===void 0&&(t=1/0);var e=new je;return Jh(e,this,!1,t,!0),e},Rn.prototype.collapseTree=function(t){t===void 0&&(t=1),1>t&&(t=1);var e=this.diagram;if(e!==null&&!e.Ue){e.Ue=!0;var n=new je;n.add(this),n1(this,n,e.isTreePathToChildren,t,e,this,e.treeCollapsePolicy===Ch),e.Ue=!1}};function n1(t,e,n,i,r,o,s){if(1<i)for(var l=n?t.Mo():t.Sd();l.next();){var u=l.value;u.isTreeLink&&(u=u.To(t),u===null||u===t||e.contains(u)||(e.add(u),n1(u,e,n,i-1,r,o,s)))}else i1(t,e,n,r,o,s)}function i1(t,e,n,i,r,o){for(var s=r===t?!0:t.isTreeExpanded,l=n?t.Mo():t.Sd(),u={};l.next();){var d=l.value;if(d.isTreeLink&&(d=d.To(t),d!==null&&d!==t)){var p=e.contains(d);if(p||e.add(d),s){var v=n?d.Oo():d.Po();u.uv=t,v.all(function(E){return function(M){return M===E.uv||!M.isTreeExpanded}}(u))&&i.Aj(d,r),d.oh(),d.Zb(!1)}d.isTreeExpanded&&(d.wasTreeExpanded=d.isTreeExpanded,p||i1(d,e,n,i,r,o))}u={uv:u.uv}}t.isTreeExpanded=!1}Rn.prototype.expandTree=function(t){t===void 0&&(t=2),2>t&&(t=2);var e=this.diagram;if(e!==null&&!e.Ue){e.Ue=!0;var n=new je;n.add(this),r1(this,n,e.isTreePathToChildren,t,e,this,e.treeCollapsePolicy===Ch),e.Ue=!1}};function r1(t,e,n,i,r,o,s){for(var l=o===t?!1:t.isTreeExpanded,u=n?t.Mo():t.Sd(),d={};u.next();){var p=u.value;if(p.isTreeLink&&(l||p.fd||p.bb(),p=p.To(t),p!==null&&p!==t&&!e.contains(p))){if(e.add(p),!l){p.Zb(!0),p.oh();var v=n?p.Oo():p.Po();d.vv=t,v.all(function(E){return function(M){return M===E.vv||!M.isTreeExpanded}}(d))&&r.Cj(p,o)}(2<i||p.wasTreeExpanded)&&(p.wasTreeExpanded=!1,r1(p,e,n,i-1,r,o,s))}d={vv:d.vv}}t.isTreeExpanded=!0}te.Object.defineProperties(Rn.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:em},set:function(t){var e=this.portSpreading;e!==t&&(Ah(this),this.Ba.er=t,this.g("portSpreading",e,t),t=this.diagram,t!==null&&t.undoManager.isUndoingRedoing||this.Bd())}},avoidable:{get:function(){return(this.U&8)!==0},set:function(t){var e=(this.U&8)!==0;if(e!==t){this.U^=8;var n=this.diagram;n!==null&&Sh(n,this),this.g("avoidable",e,t)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:sl},set:function(t){typeof t=="number"&&(t=new ri(t));var e=this.avoidableMargin;if(!e.D(t)){t=t.J(),Ah(this),this.Ba.yp=t;var n=this.diagram;n!==null&&Sh(n,this),this.g("avoidableMargin",e,t)}}},linksConnected:{get:function(){return this.jb.iterator}},linkConnected:{get:function(){return this.Ba!==null?this.Ba.Dq:null},set:function(t){var e=this.linkConnected;e!==t&&(Ah(this),this.Ba.Dq=t,this.g("linkConnected",e,t))}},linkDisconnected:{get:function(){return this.Ba!==null?this.Ba.Eq:null},set:function(t){var e=this.linkDisconnected;e!==t&&(Ah(this),this.Ba.Eq=t,this.g("linkDisconnected",e,t))}},linkValidation:{get:function(){return this.Ba!==null?this.Ba.gj:null},set:function(t){var e=this.linkValidation;e!==t&&(Ah(this),this.Ba.gj=t,this.g("linkValidation",e,t))}},isLinkLabel:{get:function(){return this.Yk!==null}},labeledLink:{get:function(){return this.Yk},set:function(t){var e=this.Yk;if(e!==t){var n=this.diagram,i=this.data;if(e!==null){if(e.wd!==null&&(e.wd.remove(this),e.v()),n!==null&&i!==null&&!n.undoManager.isUndoingRedoing){var r=e.data,o=n.model;if(r!==null&&o.ri()){var s=o.wa(i);s!==void 0&&o.Qx(r,s)}}this.containingGroup=null}this.Yk=t,t!==null&&(a1(t,this),n===null||i===null||n.undoManager.isUndoingRedoing||(r=t.data,n=n.model,r!==null&&n.ri()&&(i=n.wa(i),i!==void 0&&n.Bu(r,i))),this.containingGroup=t.containingGroup),dl(this),this.g("labeledLink",e,t)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&qy(this),this.wc.iteratorValues}},isTreeExpanded:{get:function(){return(this.U&1)!==0},set:function(t){var e=(this.U&1)!==0;if(e!==t){this.U^=1;var n=this.diagram;if(this.g("isTreeExpanded",e,t),e=this.treeExpandedChanged,e!==null){var i=!0;n!==null&&(i=n.aa,n.aa=!0),e(this),n!==null&&(n.aa=i)}n!==null&&n.undoManager.isUndoingRedoing?this.Zb(t):t?this.expandTree():this.collapseTree()}}},wasTreeExpanded:{get:function(){return(this.U&2)!==0},set:function(t){var e=(this.U&2)!==0;e!==t&&(this.U^=2,this.g("wasTreeExpanded",e,t))}},treeExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Vr:null},set:function(t){var e=this.treeExpandedChanged;e!==t&&(Ah(this),this.Ba.Vr=t,this.g("treeExpandedChanged",e,t))}},isTreeLeaf:{get:function(){return(this.U&4)!==0},set:function(t){var e=(this.U&4)!==0;e!==t&&(this.U^=4,this.g("isTreeLeaf",e,t))}}}),Rn.prototype.expandTree=Rn.prototype.expandTree,Rn.prototype.collapseTree=Rn.prototype.collapseTree,Rn.prototype.findTreeParts=Rn.prototype.wz,Rn.prototype.findTreeChildrenNodes=Rn.prototype.Ou,Rn.prototype.findTreeChildrenLinks=Rn.prototype.Qo,Rn.prototype.findTreeLevel=Rn.prototype.uz,Rn.prototype.findTreeParentChain=Rn.prototype.vz,Rn.prototype.findTreeParentNode=Rn.prototype.pg,Rn.prototype.findTreeParentLink=Rn.prototype.kh,Rn.prototype.findCommonTreeParent=Rn.prototype.gz,Rn.prototype.findTreeRoot=Rn.prototype.xz,Rn.prototype.isInTreeOf=Rn.prototype.Nz,Rn.prototype.findPort=Rn.prototype.ns,Rn.prototype.findLinksTo=Rn.prototype.kz,Rn.prototype.findLinksBetween=Rn.prototype.jz,Rn.prototype.findNodesInto=Rn.prototype.Oo,Rn.prototype.findNodesOutOf=Rn.prototype.Po,Rn.prototype.findNodesConnected=Rn.prototype.Mu,Rn.prototype.findLinksInto=Rn.prototype.Sd,Rn.prototype.findLinksOutOf=Rn.prototype.Mo,Rn.prototype.findExternalTreeLinksConnected=Rn.prototype.qx,Rn.prototype.invalidateConnectedLinks=Rn.prototype.Bd,Rn.prototype.invalidateLinkBundle=Rn.prototype.Lz;var Bx=new le(Rn,"SpreadingNone",10),em=new le(Rn,"SpreadingEvenly",11),Jg=new le(Rn,"SpreadingPacked",12);Rn.className="Node",Rn.SpreadingNone=Bx,Rn.SpreadingEvenly=em,Rn.SpreadingPacked=Jg;function Ki(t,e){t===void 0||t instanceof ea||typeof t=="string"?Rn.call(this,t):(Rn.call(this),t&&(e=t)),this.U|=4608,this.Gn=new je,this.$a=null,this.Sc=new ts,this.Sc.group=this,this.gl=new je,this.tb=this.$p=null,e&&Object.assign(this,e)}Jn(Ki,Rn),Ki.prototype.cloneProtected=function(t){Rn.prototype.cloneProtected.call(this,t),this.U=this.U&-32769;var e=t.Nl(function(n){return n instanceof ml});e instanceof ml?t.$a=e:t.$a=null,this.Sc!==null?(t.Sc=this.Sc.copy(),t.Sc.group=t):(t.Sc!==null&&(t.Sc.group=null),t.Sc=null),this.tb!==null&&(t.tb=this.tb.copy())},D=Ki.prototype,D.Af=function(t){Rn.prototype.Af.call(this,t);var e=t.Rj();for(t=t.memberParts;t.next();){var n=t.value;if(n.v(),n.C(8),n.Ej(),n instanceof Rn)n.Bd(e);else if(n instanceof pn)for(n=n.labelNodes;n.next();)n.value.Bd(e)}},D.gk=function(t,e,n,i,r,o,s){if(t===hs&&e==="elements"){if(r instanceof ml)this.$a===null?this.$a=r:this.$a!==r&&ne("Cannot insert a second Placeholder into the visual tree of a Group.");else if(r instanceof sn){var l=r.Nl(function(u){return u instanceof ml});l instanceof ml&&(this.$a===null?this.$a=l:this.$a!==l&&ne("Cannot insert a second Placeholder into the visual tree of a Group."))}}else t===Ts&&e==="elements"&&this.$a!==null&&(i===this.$a?this.$a=null:i instanceof sn&&this.$a.rg(i)&&(this.$a=null));Rn.prototype.gk.call(this,t,e,n,i,r,o,s)},D.Xl=function(t,e){Rn.prototype.Xl.call(this,t,e),this.isClipping&&this.type!==sn.Spot&&this.isSubGraphExpanded&&(t=this.resizeObject,t instanceof sn&&(t=t.Pb()),this.tb===null&&(this.tb=new ke),t.mi(this.tb),t instanceof Qi&&this.tb.Bc(-t.strokeWidth,-t.strokeWidth))},D.eh=function(t,e,n,i){this.nf=this.$a,Rn.prototype.eh.call(this,t,e,n,i)},D.Va=function(){var t=this;t.isSubGraphExpanded&&this.memberParts.each(function(e){!t.computesBoundsIncludingLinks&&e instanceof pn||e.Va()}),Rn.prototype.Va.call(this)},D.si=function(){if(!Rn.prototype.si.call(this))return!1;for(var t=this.memberParts;t.next();){var e=t.value;if(e instanceof Rn){if(e.isVisible()&&pl(e))return!1}else if(e instanceof pn&&e.isVisible()&&pl(e)&&e.fromNode!==this&&e.toNode!==this)return!1}return!0};function Qg(t,e){if(t.Gn.add(e)){e instanceof Ki&&t.gl.add(e);var n=t.memberAdded;if(n!==null){var i=!0,r=t.diagram;r!==null&&(i=r.aa,r.aa=!0),n(t,e),r!==null&&(r.aa=i)}t.isVisible()&&t.isSubGraphExpanded||e.Zb(!1)}e instanceof pn&&!t.computesBoundsIncludingLinks||(e=t.$a,e===null&&(e=t),e.v())}function qg(t,e){if(t.Gn.remove(e)){e instanceof Ki&&t.gl.remove(e);var n=t.memberRemoved;if(n!==null){var i=!0,r=t.diagram;r!==null&&(i=r.aa,r.aa=!0),n(t,e),r!==null&&(r.aa=i)}t.isVisible()&&t.isSubGraphExpanded||e.Zb(!0)}e instanceof pn&&!t.computesBoundsIncludingLinks||(e=t.$a,e===null&&(e=t),e.v())}D.Lj=function(){if(0<this.Gn.count){var t=this.diagram;if(t!==null)for(var e=this.Gn.copy().iterator;e.next();)t.remove(e.value)}Rn.prototype.Lj.call(this)},Ki.prototype.canAddMembers=function(t){var e=this.diagram;if(e===null)return!1;for(e=e.commandHandler,t=Ee(t).iterator;t.next();)if(!e.isValidMember(this,t.value))return!1;return!0},Ki.prototype.addMembers=function(t,e){var n=this.diagram;if(n===null)return!1;n=n.commandHandler;var i=!0;for(t=Ee(t).iterator;t.next();){var r=t.value;!e||n.isValidMember(this,r)?r.containingGroup=this:i=!1}return i},Ki.prototype.canUngroup=function(){if(!this.ungroupable)return!1;var t=this.layer;return t===null||!t.allowUngroup?!1:(t=t.diagram,!!(t===null||t.allowUngroup))},D=Ki.prototype,D.Bd=function(t){var e=(this.U&65536)!==0;if(Rn.prototype.Bd.call(this,t),!e)for(!(this.U&65536)&&(this.U=this.U^65536),e=this.Lu();e.next();){var n=e.value;if(t===void 0||!t.contains(n)){var i=n.fromNode;i!==null&&i!==this&&i.Td(this)&&!i.isVisible()?(Jl(n.fromPort),Jl(n.toPort),n.bb()):(i=n.toNode,i!==null&&i!==this&&i.Td(this)&&!i.isVisible()&&(Jl(n.fromPort),Jl(n.toPort),n.bb()))}}},D.Lu=function(){var t=this.diagram!==null&&this.diagram.Pw;if(t&&this.$p!==null)return this.$p.iterator;var e=this.Rj();e.add(this);for(var n=new je,i=e.iterator;i.next();){var r=i.value;if(r instanceof Rn)for(r=r.linksConnected;r.next();){var o=r.value;e.contains(o)||n.add(o)}}return t&&(this.$p=n),n.iterator},D.iz=function(){var t=this.Rj();t.add(this);for(var e=new je,n=t.iterator;n.next();){var i=n.value;if(i instanceof Rn)for(i=i.linksConnected;i.next();){var r=i.value,o=r.fromNode;o===null||t.contains(o)&&o!==this||e.add(o),r=r.toNode,r===null||t.contains(r)&&r!==this||e.add(r)}}return e.iterator},D.hz=function(){function t(n,i){n!==null&&(i.add(n),t(n.containingGroup,i))}var e=new je;return t(this,e),e},D.Rj=function(){var t=new je;return Jh(t,this,!0,0,!0),t.remove(this),t},D.Zb=function(t){Rn.prototype.Zb.call(this,t);for(var e=this.memberParts;e.next();)e.value.Zb(t)},Ki.prototype.collapseSubGraph=function(){var t=this.diagram;if(t!==null&&!t.Ue){t.Ue=!0;var e=this.Rj();o1(this,e,t,this),t.Ue=!1}};function o1(t,e,n,i){for(var r=t.memberParts;r.next();){var o=r.value;if(o.Zb(!1),o instanceof Ki&&o.isSubGraphExpanded&&(o.wasSubGraphExpanded=o.isSubGraphExpanded,o1(o,e,n,i)),o instanceof Rn)o.Bd(e),n.Aj(o,i);else if(o instanceof pn)for(o=o.labelNodes;o.next();)o.value.Bd(e)}t.isSubGraphExpanded=!1}Ki.prototype.expandSubGraph=function(){var t=this.diagram;if(t!==null&&!t.Ue){t.Ue=!0;var e=this.Rj();s1(this,e,t,this),t.Ue=!1}};function s1(t,e,n,i){for(var r=t.memberParts;r.next();){var o=r.value;if(o.Zb(!0),o instanceof Ki&&o.wasSubGraphExpanded&&(o.wasSubGraphExpanded=!1,s1(o,e,n,i)),o instanceof Rn)o.Bd(e),n.Cj(o,i);else if(o instanceof pn)for(o=o.labelNodes;o.next();)o.value.Bd(e)}t.isSubGraphExpanded=!0}Ki.prototype.move=function(t,e){e===void 0&&(e=!1);var n=e?this.location:this.position,i=n.x;n=n.y;var r=t.x,o=t.y;if(!(i===r||isNaN(i)&&isNaN(r))||!(n===o||isNaN(n)&&isNaN(o))){for(i=r-(isNaN(i)?0:i),n=o-(isNaN(n)?0:n),o=$.alloc(),Rn.prototype.move.call(this,t,e),t=new je,e=this.Rj().iterator;e.next();)r=e.value,r instanceof pn&&(r.suspendsRouting&&t.add(r),r.fd||r.fromNode!==this&&r.toNode!==this)&&(r.suspendsRouting=!0);for(e.reset();e.next();)if(r=e.value,!(r.ph()||r instanceof Rn&&r.isLinkLabel)){var s=r.position,l=r.location;s.w()?(o.x=s.x+i,o.y=s.y+n,r.position=o):l.w()&&(o.x=l.x+i,o.y=l.y+n,r.location=o)}for(e.reset();e.next();)r=e.value,r instanceof pn&&(r.suspendsRouting=t.contains(r),r.fd||r.fromNode!==this&&r.toNode!==this)&&(s=r.position,o.x=s.x+i,o.y=s.y+n,o.w()?r.move(o):r.bb(),ev(r)&&r.bb());$.free(o)}},te.Object.defineProperties(Ki.prototype,{placeholder:{get:function(){return this.$a}},computesBoundsAfterDrag:{get:function(){return(this.U&2048)!==0},set:function(t){var e=(this.U&2048)!==0;e!==t&&(this.U^=2048,this.g("computesBoundsAfterDrag",e,t))}},computesBoundsIncludingLinks:{get:function(){return(this.U&4096)!==0},set:function(t){var e=(this.U&4096)!==0;e!==t&&(this.U^=4096,this.g("computesBoundsIncludingLinks",e,t))}},computesBoundsIncludingLocation:{get:function(){return(this.U&8192)!==0},set:function(t){var e=(this.U&8192)!==0;e!==t&&(this.U^=8192,this.g("computesBoundsIncludingLocation",e,t))}},handlesDragDropForMembers:{get:function(){return(this.U&16384)!==0},set:function(t){var e=(this.U&16384)!==0;e!==t&&(this.U^=16384,this.g("handlesDragDropForMembers",e,t))}},memberParts:{get:function(){return this.Gn.iterator}},layout:{get:function(){return this.Sc},set:function(t){var e=this.Sc;if(e!==t){t!==null&&t.diagram!==null&&t.diagram.layout===t&&ne("A layout cannot be both the Diagram.layout and a Group.layout: "+t),e!==null&&(e.diagram=null,e.group=null),this.Sc=t;var n=this.diagram;t!==null&&(t.diagram=n,t.group=this),n!==null&&(n.xh=!0),this.g("layout",e,t),n!==null&&n.$b()}}},memberAdded:{get:function(){return this.Ba!==null?this.Ba.Mq:null},set:function(t){var e=this.memberAdded;e!==t&&(Ah(this),this.Ba.Mq=t,this.g("memberAdded",e,t))}},memberRemoved:{get:function(){return this.Ba!==null?this.Ba.Nq:null},set:function(t){var e=this.memberRemoved;e!==t&&(Ah(this),this.Ba.Nq=t,this.g("memberRemoved",e,t))}},memberValidation:{get:function(){return this.Ba!==null?this.Ba.ij:null},set:function(t){var e=this.memberValidation;e!==t&&(Ah(this),this.Ba.ij=t,this.g("memberValidation",e,t))}},ungroupable:{get:function(){return(this.U&256)!==0},set:function(t){var e=(this.U&256)!==0;e!==t&&(this.U^=256,this.g("ungroupable",e,t))}},isSubGraphExpanded:{get:function(){return(this.U&512)!==0},set:function(t){var e=(this.U&512)!==0;if(e!==t){this.U^=512;var n=this.diagram;if(this.g("isSubGraphExpanded",e,t),e=this.subGraphExpandedChanged,e!==null){var i=!0;n!==null&&(i=n.aa,n.aa=!0),e(this),n!==null&&(n.aa=i)}n!==null&&n.undoManager.isUndoingRedoing?(this.$a!==null&&this.$a.v(),this.memberParts.each(function(r){r.updateAdornments()})):t?this.expandSubGraph():this.collapseSubGraph()}}},wasSubGraphExpanded:{get:function(){return(this.U&1024)!==0},set:function(t){var e=(this.U&1024)!==0;e!==t&&(this.U^=1024,this.g("wasSubGraphExpanded",e,t))}},subGraphExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Kr:null},set:function(t){var e=this.subGraphExpandedChanged;e!==t&&(Ah(this),this.Ba.Kr=t,this.g("subGraphExpandedChanged",e,t))}},rh:{get:function(){return(this.U&32768)!==0},set:function(t){(this.U&32768)!==0!==t&&(this.U^=32768)}}}),Ki.prototype.expandSubGraph=Ki.prototype.expandSubGraph,Ki.prototype.collapseSubGraph=Ki.prototype.collapseSubGraph,Ki.prototype.findSubGraphParts=Ki.prototype.Rj,Ki.prototype.findContainingGroupChain=Ki.prototype.hz,Ki.prototype.findExternalNodesConnected=Ki.prototype.iz,Ki.prototype.findExternalLinksConnected=Ki.prototype.Lu,Ki.prototype.ensureBounds=Ki.prototype.Va,Ki.className="Group";function ml(t){Wt.call(this),this.yb=ga,this.ko=new ke(NaN,NaN,NaN,NaN),t&&Object.assign(this,t)}Jn(ml,Wt),ml.prototype.cloneProtected=function(t){Wt.prototype.cloneProtected.call(this,t),t.yb=this.yb.J(),t.ko=this.ko.copy()},ml.prototype.gh=function(t){if(this.background===null&&this.areaBackground===null)return!1;var e=this.naturalBounds;return uo(0,0,e.width,e.height,t.x,t.y)},ml.prototype.Wl=function(){var t=this.part;if(t!==null&&(t instanceof Ki||t instanceof jr)||ne("Placeholder is not inside a Group or Adornment."),t instanceof Ki){var e=this.computeBorder(this.ko),n=this.minSize,i=this.dc;for(ys(i,(isFinite(n.width)?Math.max(n.width,e.width):e.width)||0,(isFinite(n.height)?Math.max(n.height,e.height):e.height)||0),this.Ge(0,0,i.width,i.height),i=t.memberParts,n=!1;i.next();)if(i.value.isVisible()){n=!0;break}i=t.diagram,!n||i===null||i.animationManager.Xu(t)||isNaN(e.x)||isNaN(e.y)||(n=$.alloc(),n.xi(e,t.locationSpot),n.D(t.location)||(t.location=n),$.free(n))}else{e=this.dc,n=this.yb,i=n.left+n.right;var r=n.top+n.bottom,o=t.adornedObject;t.angle=o.li();var s=0;o instanceof Qi&&(s=o.strokeWidth);var l=o.Df(),u=o.naturalBounds,d=(u.width+s)*l;s=(u.height+s)*l,t.type!==sn.Link&&(l=o.ga(t.category==="Selection"?Fs:t.locationSpot,$.alloc()),t.location=l,$.free(l)),isNaN(d)||isNaN(s)?(t=o.ga(Fs,$.alloc()),d=ke.allocAt(t.x,t.y,0,0),d.Ye(o.ga(Jo,t)),d.Ye(o.ga(al,t)),d.Ye(o.ga(Ba,t)),ys(e,d.width+i||0,d.height+r||0),this.Ge(-n.left,-n.top,e.width,e.height),$.free(t),ke.free(d)):(ys(e,d+i||0,s+r||0),this.Ge(-n.left,-n.top,e.width,e.height))}},ml.prototype.eh=function(t,e,n,i){this.actualBounds.h(t,e,n,i)},ml.prototype.computeBorder=function(t){var e=this.part,n=e.diagram,i=n===null||!n.animationManager.isAnimating;if(n!==null&&e instanceof Ki&&!e.layer.isTemporary&&e.computesBoundsAfterDrag&&this.ko.w()){var r=n.toolManager.findTool("Dragging");if(r===n.currentTool&&(n=r.computeBorder(e,this.ko,t),n!==null))return n}n=ke.alloc(),r=this.computeMemberBounds(n);var o=this.yb;return e instanceof Ki&&!e.isSubGraphExpanded?t.h(r.x-o.left,r.y-o.top,0,0):t.h(r.x-o.left,r.y-o.top,Math.max(r.width+o.left+o.right,0),Math.max(r.height+o.top+o.bottom,0)),ke.free(n),i&&e instanceof Ki&&e.computesBoundsIncludingLocation&&e.location.w()&&t.Ye(e.location),t},ml.prototype.computeMemberBounds=function(t){if(!(this.part instanceof Ki))return t.h(0,0,0,0),t;for(var e=this.part,n=1/0,i=1/0,r=-1/0,o=-1/0,s=e.memberParts;s.next();){var l=s.value;if(l.isVisible()){if(l instanceof pn&&(!e.computesBoundsIncludingLinks||gu(l)||l.fromNode===e||l.toNode===e))continue;l=l.actualBounds,l.left<n&&(n=l.left),l.top<i&&(i=l.top),l.right>r&&(r=l.right),l.bottom>o&&(o=l.bottom)}}return isFinite(n)&&isFinite(i)?t.h(n,i,r-n,o-i):(e=e.location,t.h(e.x,e.y,0,0)),t},te.Object.defineProperties(ml.prototype,{padding:{get:function(){return this.yb},set:function(t){typeof t=="number"&&(t=new ri(t));var e=this.yb;e.D(t)||(this.yb=t=t.J(),this.g("padding",e,t),this.v())}}}),ml.className="Placeholder";function pn(t){li.call(this,sn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=gl,this.Om=0,this.Qm=gl,this.Rm=NaN,this.qj=rv,this.po=.5,this.wd=null,this.Nb=new Re().freeze(),this.Tg=this.Mg=null,this.ml=new ke,this.ua=new mn,this.u=this.o=this.Sf=this.Wf=null,this.su=new $,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],t&&Object.assign(this,t)}Jn(pn,li),pn.prototype.cloneProtected=function(t){li.prototype.cloneProtected.call(this,t),t.Qa=this.Qa&-113,t.ff=this.ff,t.gn=this.gn,t.vf=this.vf,t.uo=this.uo,t.qk=this.qk,t.Om=this.Om,t.Qm=this.Qm,t.Rm=this.Rm,t.qj=this.qj,t.po=this.po,this.ba!==null&&(t.ba=this.ba.copy())},D=pn.prototype,D.Af=function(t){li.prototype.Af.call(this,t),this.ff=t.ff,this.vf=t.vf,t.Mg=null,t.bb(),t.Sf=this.Sf;var e=t.fromPort;e!==null&&Jl(e),t=t.toPort,t!==null&&Jl(t)},D.qb=function(t){t.classType===pn?(t.value&2)===2?this.routing=t:t===yu||t===Oh||t===$p?this.curve=t:t===Of||t===am||t===lm?this.adjusting=t:t!==rv&&t!==gl&&ne("Unknown Link enum value for a Link property: "+t):li.prototype.qb.call(this,t)},D.Xc=function(){this.ba===null&&(this.ba=new vf)},D.si=function(){var t=this.fromNode;if(t!==null){var e=t.findVisibleNode();if(e!==null&&(t=e),pl(t)||Yh(t))return!1}return t=this.toNode,!(t!==null&&(e=t.findVisibleNode(),e!==null&&(t=e),pl(t)||Yh(t)))},D.zv=function(){return!1},D.Av=function(){},D.Zc=function(){return!1},pn.prototype.computeAngle=function(t,e,n){return pn.computeAngle(e,n)},pn.computeAngle=function(t,e){switch(t){default:case gl:t=0;break;case Lf:t=e;break;case Rf:t=e+90;break;case Df:t=e-90;break;case ov:t=e+180;break;case um:t=Vt.bp(e),90<t&&270>t&&(t-=180);break;case Pf:t=Vt.bp(e+90),90<t&&270>t&&(t-=180);break;case Ff:t=Vt.bp(e-90),90<t&&270>t&&(t-=180);break;case cm:if(t=Vt.bp(e),45<t&&135>t||225<t&&315>t)return 0;90<t&&270>t&&(t-=180)}return Vt.bp(t)};function Bp(t){var e=t.fromNode,n=t.toNode,i=null;if(e!==null?i=n!==null?e.px(n):e.containingGroup:n!==null?i=n.containingGroup:i=null,e=i,n=t.Ah,n!==e){n!==null&&qg(n,t),t.Ah=e,e!==null&&Qg(e,t);var r=t.containingGroupChanged;if(r!==null){var o=!0,s=t.diagram;s!==null&&(o=s.aa,s.aa=!0),r(t,n,e),s!==null&&(s.aa=o)}!t.fd||t.Lw!==n&&t.Mw!==n||t.bb()}if(t.isLabeledLink)for(t=t.labelNodes;t.next();)t.value.containingGroup=i}D=pn.prototype,D.oh=function(){var t=this.containingGroup;t!==null&&this.fromNode!==t&&this.toNode!==t&&t.computesBoundsIncludingLinks&&li.prototype.oh.call(this)},D.To=function(t){var e=this.fromNode;return t===e?this.toNode:e},D.Cz=function(t){var e=this.fromPort;return t===e?this.toPort:e};function a1(t,e){t.wd===null&&(t.wd=new je),t.wd.add(e),t.v()}D.Vo=function(t){if(li.prototype.Vo.call(this,t),Od(this)&&this.Xo(this.actualBounds),!t){t=this.ef;var e=null;t!==null&&(e=this.fromPort,q0(t,this,e));var n=this.uf;if(n!==null){var i=this.toPort;n===t&&i===e||q0(n,this,i)}Af(this)}},D.Wo=function(t){if(li.prototype.Wo.call(this,t),Od(this)&&this.Xo(this.actualBounds),!t){t=this.ef;var e=null;t!==null&&(e=this.fromPort,tm(t,this,e));var n=this.uf;if(n!==null){var i=this.toPort;n===t&&i===e||tm(n,this,i)}Mf(this)}},D.Lj=function(){if(this.fd=!0,this.wd!==null){var t=this.diagram;if(t!==null)for(var e=this.wd.copy().iterator;e.next();)t.remove(e.value)}this.data!==null&&(t=this.diagram,t!==null&&t.partManager.removeDataForLink(this))},pn.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var t=this.diagram;t!==null&&t.partManager.updateRelationshipsFromData(this)}},pn.prototype.move=function(t,e){var n=e?this.location:this.position,i=n.x;isNaN(i)&&(i=0);var r=n.y;for(isNaN(r)&&(r=0),i=t.x-i,r=t.y-r,e===!0?li.prototype.move.call(this,t,!1):(t=$.allocAt(n.x+i,n.y+r),li.prototype.move.call(this,t,!1),$.free(t)),Mh(this,i,r),t=this.labelNodes;t.next();)e=t.value,n=e.position,e.moveTo(n.x+i,n.y+r)},pn.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var t=this.layer;return t===null?!0:t.allowRelink?(t=t.diagram,!!(t===null||t.allowRelink)):!1},pn.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var t=this.layer;return t===null?!0:t.allowRelink?(t=t.diagram,!!(t===null||t.allowRelink)):!1},pn.prototype.computeMidPoint=function(t){var e=this.pointsCount;if(e===0)return t.assign(Ui),t;if(e===1)return t.assign(this.i(0)),t;if(e===2){var n=this.i(0),i=this.i(1);return t.h((n.x+i.x)/2,(n.y+i.y)/2),t}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===yu))return this.ua.Pu(.5,t),t.add(this.i(0)),n=this.ua.figures.first(),t.offset(-n.startX,-n.startY),t;if(this.computeCurve()===yu){if(e===3){n=this.i(0),i=this.i(1);var r=this.i(2);return Vt.ax(n.x,n.y,i.x,i.y,i.x,i.y,r.x,r.y,t),t}if(i=(e-1)/3|0,n=3*(i/2|0),i%2===1){i=this.i(n),r=this.i(n+1);var o=this.i(n+2);n=this.i(n+3),Vt.ax(i.x,i.y,r.x,r.y,o.x,o.y,n.x,n.y,t)}else t.assign(this.i(n));return t}var s=this.flattenedLengths;for(n=this.flattenedTotalLength,r=o=i=0;i<n/2&&o<e&&(r=s[o],!(i+r>n/2));)i+=r,o++;return e=this.i(o),o=this.i(o+1),1>Math.abs(e.x-o.x)?e.y>o.y?t.h(e.x,e.y-(n/2-i)):t.h(e.x,e.y+(n/2-i)):1>Math.abs(e.y-o.y)?e.x>o.x?t.h(e.x-(n/2-i),e.y):t.h(e.x+(n/2-i),e.y):(n=(n/2-i)/r,t.h(e.x+n*(o.x-e.x),e.y+n*(o.y-e.y))),t},pn.prototype.computeMidAngle=function(){var t=this.pointsCount;if(2>t)return NaN;if(t===2)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===yu))return this.ua.wx(.5);if(this.computeCurve()===yu&&4<=t){var e=(t-1)/3|0,n=3*(e/2|0);if(e%2===1){n=Math.floor(n),t=this.i(n),e=this.i(n+1);var i=this.i(n+2);return n=this.i(n+3),Vt.My(t.x,t.y,e.x,e.y,i.x,i.y,n.x,n.y)}if(0<n&&n+1<t)return this.i(n-1).ab(this.i(n+1))}e=this.flattenedLengths,i=this.flattenedTotalLength;var r=0;n=0;for(var o;r<i/2&&n<t&&(o=e[n],!(r+o>i/2));)r+=o,n++;if(e=this.i(n),i=this.i(n+1),1>Math.abs(e.x-i.x)&&1>Math.abs(e.y-i.y)){if(0<n&&n+2<t)return this.i(n-1).ab(this.i(n+2))}else{if(1>Math.abs(e.x-i.x))return e.y>i.y?270:90;if(1>Math.abs(e.y-i.y))return e.x>i.x?180:0}return e.ab(i)},D=pn.prototype,D.i=function(t){return this.Nb.s[t]},D.dd=function(t,e){this.Nb.cd(t,e)},D.L=function(t,e,n){this.Nb.cd(t,new $(e,n))},D.Kz=function(t,e){this.Nb.Gb(t,e)},D.m=function(t,e,n){this.Nb.Gb(t,new $(e,n))},D.ne=function(t){this.Nb.add(t)},D.yf=function(t,e){this.Nb.add(new $(t,e))},D.pv=function(t){this.Nb.mb(t)},D.Fj=function(){this.Nb.clear()};function Mh(t,e,n){if(e!==0||n!==0)if(t.pointsCount===0)t.defaultFromPoint&&t.defaultFromPoint.offset(e,n),t.defaultToPoint&&t.defaultToPoint.offset(e,n);else{for(var i=t.fd,r=new Re,o=t.Nb.iterator;o.next();){var s=o.value;r.add(new $(s.x+e,s.y+n).freeze())}r.freeze(),o=t.Nb,t.Nb=r,s=t.diagram,isNaN(e)||isNaN(n)||s!==null&&s.animationManager.zb?t.v():(t.ke.h(t.ke.x+e,t.ke.y+n),t.pa.h(t.pa.x+e,t.pa.y+n),dl(t)),i?nm(t):(t.defaultFromPoint&&(t.defaultFromPoint=t.i(0)),t.defaultToPoint&&(t.defaultToPoint=t.i(t.pointsCount-1))),s!==null&&s.animationManager.zb&&xr(s.animationManager,t,r),t.g("points",o,r)}}D.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},D.zf=function(){if(this.Mg!==null){for(var t=this.Mg,e=this.Nb,n=1/0,i=1/0,r=t.s,o=r.length,s=0;s<o;s++){var l=r[s];n=Math.min(l.x,n),i=Math.min(l.y,i)}l=s=1/0;for(var u=e.s,d=u.length,p=0;p<d;p++){var v=u[p];s=Math.min(v.x,s),l=Math.min(v.y,l),v.freeze()}if(e.freeze(),d===o){for(o=0;o<d;o++)if(p=r[o],v=u[o],p.x-n!==v.x-s||p.y-i!==v.y-l){this.qc();break}}else this.qc();this.Mg=null,n=this.diagram,n!==null&&n.animationManager.zb&&xr(n.animationManager,this,e),nm(this),this.g("points",t,e)}},D.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function nm(t){t.Nb.count===0?t.fd=!1:(t.fd=!0,t.cq=null,t.vt=NaN,t.defaultFromPoint=t.i(0),t.defaultToPoint=t.i(t.pointsCount-1),sm(t,!1))}D.bb=function(){if(!this.suspendsRouting){var t=this.diagram;if(t){if(t.As.contains(this)||t.undoManager.isUndoingRedoing||(t=t.animationManager,t.isTicking&&!t.isAnimating))return;this.Tg===null||t.isTicking||(this.Tg=null)}t=this.path,t!==null&&(this.fd=!1,this.v(),t.v())}},D.vg=function(){if(!this.fd&&!this.computingPoints){var t=!0;try{this.computingPoints=!0,this.uh(),t=this.computePoints()}catch(e){this.computingPoints=!1,this.rv()}finally{this.computingPoints=!1,t?this.zf():this.rv()}}},pn.prototype.computePoints=function(){if(this.diagram===null)return!1;var t=this.fromNode,e=null;if(t===null?(tp||(tp=new Rn,tp.desiredSize=Ps,tp.Va()),this.defaultFromPoint&&(tp.location=this.defaultFromPoint,tp.Va(),e=t=tp)):e=this.fromPort,e!==null&&!t.isVisible()){var n=t.findVisibleNode();n!==null&&n!==t?(t=n,e=n.port):t=n}if(this.Lw=t,t===null||!t.location.w())return!1;for(;!(e===null||e.actualBounds.w()&&e.Ed());)e=e.panel;if(e===null)return!1;var i=this.toNode,r=null;if(i===null?(ep||(ep=new Rn,ep.desiredSize=Ps,ep.Va()),this.defaultToPoint&&(ep.location=this.defaultToPoint,ep.Va(),r=i=ep)):r=this.toPort,r===null||i.isVisible()||(n=i.findVisibleNode(),n!==null&&n!==i?(i=n,r=n.port):i=n),this.Mw=i,i===null||!i.location.w())return!1;for(;!(r===null||r.actualBounds.w()&&r.Ed());)r=r.panel;if(r===null)return!1;var o=this.pointsCount,s=this.computeSpot(!0,e);n=this.computeSpot(!1,r);var l=zp(s),u=zp(n),d=e===r&&e!==null,p=this.isOrthogonal,v=this.curve===yu;this.Wf=d&&!p?v=!0:!1;var E=this.computeAdjusting()===gl||d;if(!p&&!d&&l&&u){if(l=!1,!E&&3<=o&&(E=this.getLinkPoint(t,e,s,!0,!1,i,r),u=this.getLinkPoint(i,r,n,!1,!1,t,e),l=this.adjustPoints(0,E,o-1,u))&&(E=this.getLinkPoint(t,e,s,!0,!1,i,r),u=this.getLinkPoint(i,r,n,!1,!1,t,e),this.adjustPoints(0,E,o-1,u)),!l)if(this.Fj(),v){o=this.getLinkPoint(t,e,s,!0,!1,i,r),E=this.getLinkPoint(i,r,n,!1,!1,t,e),l=E.x-o.x,u=E.y-o.y,d=this.computeCurviness(),v=p=0;var M=o.x+l/3,R=o.y+u/3,j=M,at=R;Vt.B(u,0)?at=0<l?at-d:at+d:(p=-l/u,v=Math.sqrt(d*d/(p*p+1)),0>d&&(v=-v),j=(0>u?-1:1)*v+M,at=p*(j-M)+R),M=o.x+2*l/3,R=o.y+2*u/3;var q=M,gt=R;Vt.B(u,0)?gt=0<l?gt-d:gt+d:(q=(0>u?-1:1)*v+M,gt=p*(q-M)+R),this.Fj(),this.ne(o),this.yf(j,at),this.yf(q,gt),this.ne(E),this.dd(0,this.getLinkPoint(t,e,s,!0,!1,i,r)),this.dd(3,this.getLinkPoint(i,r,n,!1,!1,t,e))}else o=i,E=r,i=this.getLinkPoint(t,e,s,!0,!1,o,E),r=this.getLinkPoint(o,E,n,!1,!1,t,e),this.hasCurviness()?(E=r.x-i.x,n=r.y-i.y,s=this.computeCurviness(),t=i.x+E/2,e=i.y+n/2,o=t,l=e,Vt.B(n,0)?l=0<E?l-s:l+s:(E=-E/n,o=Math.sqrt(s*s/(E*E+1)),0>s&&(o=-o),o=(0>n?-1:1)*o+t,l=E*(o-t)+e),this.ne(i),this.yf(o,l),this.ne(r)):(this.ne(i),this.ne(r),l=ke.alloc(),e.mi(l),u=l.ca(r),E.mi(l),d=l.ca(i),(u||d)&&(s=e.ga(rm(s),new $),this.dd(0,this.getLinkPointFromPoint(t,e,s,r,!0,s)),n=E.ga(rm(n),new $),this.dd(1,this.getLinkPointFromPoint(o,E,n,i,!1,n))),ke.free(l))}else{v=this.isAvoiding,E&&(p&&v||d)&&this.Fj();var wt=d?this.computeCurviness():0;v=this.getLinkPoint(t,e,s,!0,p,i,r),M=j=R=0,(p||!l||d)&&(at=this.computeEndSegmentLength(t,e,s,!0),M=this.getLinkDirection(t,e,v,s,!0,p,i,r),d&&(l||s.D(n)||!p&&s.x+n.x===1&&s.y+n.y===1)&&(M-=p?90:30,0>wt&&(M-=180)),0>M?M+=360:360<=M&&(M-=360),d&&(at+=Math.abs(wt)*(p?1:2)),M===0?R=at:M===90?j=at:M===180?R=-at:M===270?j=-at:(R=at*Math.cos(M*Math.PI/180),j=at*Math.sin(M*Math.PI/180)),s.Mc()&&d&&(at=e.ga(Sr,$.alloc()),q=$.allocAt(at.x+1e3*R,at.y+1e3*j),this.getLinkPointFromPoint(t,e,at,q,!0,v),$.free(at),$.free(q))),at=this.getLinkPoint(i,r,n,!1,p,t,e);var Ot=gt=q=0;if(p||!u||d){var Gt=this.computeEndSegmentLength(i,r,n,!1);Ot=this.getLinkDirection(i,r,at,n,!1,p,t,e),d&&(u||s.D(n)||!p&&s.x+n.x===1&&s.y+n.y===1)&&(Ot+=p?0:30,0>wt&&(Ot+=180)),0>Ot?Ot+=360:360<=Ot&&(Ot-=360),d&&(Gt+=Math.abs(wt)*(p?1:2)),Ot===0?q=Gt:Ot===90?gt=Gt:Ot===180?q=-Gt:Ot===270?gt=-Gt:(q=Gt*Math.cos(Ot*Math.PI/180),gt=Gt*Math.sin(Ot*Math.PI/180)),n.Mc()&&d&&(n=r.ga(Sr,$.alloc()),s=$.allocAt(n.x+1e3*q,n.y+1e3*gt),this.getLinkPointFromPoint(i,r,n,s,!1,at),$.free(n),$.free(s))}n=v,(p||!l||d)&&(n=new $(v.x+R,v.y+j)),s=at,(p||!u||d)&&(s=new $(at.x+q,at.y+gt)),!E&&!p&&l&&3<o&&this.adjustPoints(0,v,o-2,s)?this.dd(o-1,at):!E&&!p&&u&&3<o&&this.adjustPoints(1,n,o-1,at)?this.dd(0,v):!E&&(p?6<=o:4<o)&&this.adjustPoints(1,n,o-2,s)?(this.dd(0,v),this.dd(o-1,at)):(this.Fj(),this.ne(v),(p||!l||d)&&this.ne(n),p&&this.addOrthoPoints(n,M,s,Ot,t,i),(p||!u||d)&&this.ne(s),this.ne(at))}return!0};function tv(t,e){return Math.abs(e.x-t.x)>Math.abs(e.y-t.y)?(e.x>=t.x?e.x=t.x+9e9:e.x=t.x-9e9,e.y=t.y):(e.y>=t.y?e.y=t.y+9e9:e.y=t.y-9e9,e.x=t.x),e}pn.prototype.getLinkPointFromPoint=function(t,e,n,i,r,o){if(o===void 0&&(o=new $),t===null||e===null)return o.assign(n),o;if(t.isVisible()||(r=t.findVisibleNode(),r!==null&&r!==t&&(e=r.port)),t=null,r=e.panel,r===null||r.se()||(r=r.panel),r===null){r=i.x,i=i.y;var s=n.x;n=n.y}else{t=r.oe,r=1/(t.m11*t.m22-t.m12*t.m21),s=t.m22*r;var l=-t.m12*r,u=-t.m21*r,d=t.m11*r,p=r*(t.m21*t.dy-t.m22*t.dx),v=r*(t.m12*t.dx-t.m11*t.dy);r=i.x*s+i.y*u+p,i=i.x*l+i.y*d+v,s=n.x*s+n.y*u+p,n=n.x*l+n.y*d+v}return e.Sj(r,i,s,n,o),t!==null&&o.transform(t),o};function im(t,e){var n=e.Zn;return n===null&&(n=new np,n.port=e,n.node=e.part,e.Zn=n),m1(n,t)}pn.prototype.getLinkPoint=function(t,e,n,i,r,o,s,l){if(l===void 0&&(l=new $),n.sb()&&!zp(n))return e.ga(n,l),l;if(n.$c()){var u=im(this,e);if(u!==null){if(l.assign(u.Zo),r&&this.routing===u1){var d=im(this,s);if(d!==null&&u.Gl<d.Gl){u=$.alloc(),d=$.alloc();var p=new ke(e.ga(Fs,u),e.ga(Jo,d)),v=this.computeSpot(!i,s);t=this.getLinkPoint(o,s,v,!i,r,t,e,d),(n.Hf(Aa)||n.Hf(ka))&&t.y>=p.y&&t.y<=p.y+p.height?l.y=t.y:(n.Hf(za)||n.Hf(_a))&&t.x>=p.x&&t.x<=p.x+p.width&&(l.x=t.x),$.free(u),$.free(d)}}return l}}return n=e.ga(rm(n),$.alloc()),this.pointsCount>(r?6:2)?(s=i?this.i(1):this.i(this.pointsCount-2),r&&(s=tv(n,s.copy()))):(u=this.computeSpot(!i,s),o=$.alloc(),s=s.ga(rm(u),o),r&&(s=tv(n,s)),$.free(o)),this.getLinkPointFromPoint(t,e,n,s,i,l),$.free(n),l},pn.prototype.getLinkDirection=function(t,e,n,i,r,o,s,l){t:if(i.sb())var u=i.x>i.y?i.x>1-i.y?0:i.x<1-i.y?270:315:i.x<i.y?i.x>1-i.y?90:i.x<1-i.y?180:135:.5>i.x?225:.5<i.x?45:0;else{if(i.$c()&&(u=im(this,e),u!==null))switch(u.Nc){case 1:u=270;break t;case 2:u=180;break t;default:case 4:u=0;break t;case 8:u=90;break t}u=e.ga(Sr,$.alloc()),this.pointsCount>(o?6:2)?(l=r?this.i(1):this.i(this.pointsCount-2),l=o?tv(u,l.copy()):n):(n=$.alloc(),l=l.ga(Sr,n),$.free(n)),n=Math.abs(l.x-u.x)>Math.abs(l.y-u.y)?l.x>=u.x?0:180:l.y>=u.y?90:270,$.free(u),u=n}return i.Mc()&&s.Td(t)&&(u+=180,360<=u&&(u-=360)),zp(i)||(t=e.li(),t===0)||(45<=t&&135>t?u+=90:135<=t&&225>t?u+=180:225<=t&&315>t&&(u+=270),360<=u&&(u-=360)),u},pn.prototype.computeEndSegmentLength=function(t,e,n,i){return e!==null&&n.$c()&&(t=im(this,e),t!==null)?t.Ju:(t=i?this.fromEndSegmentLength:this.toEndSegmentLength,e!==null&&isNaN(t)&&(t=i?e.fromEndSegmentLength:e.toEndSegmentLength),isNaN(t)&&(t=10),t)},pn.prototype.computeSpot=function(t,e){return e===void 0&&(e=null),t?(t=e||this.fromPort,t===null?t=Sr:(e=this.fromSpot,e.Xb()&&(e=t.fromSpot),t=e===_r?us:e)):(t=e||this.toPort,t===null?t=Sr:(e=this.toSpot,e.Xb()&&(e=t.toSpot),t=e===_r?us:e)),t};function zp(t){return t===us||t.x===.5&&t.y===.5}function rm(t){return t.x===.5&&t.y===.5?t:Sr}pn.prototype.computeOtherPoint=function(t,e){return this.computeAdjusting()!==gl&&4<this.pointsCount?this.computeMidPoint(new $):(t=e.Zn,t=t!==null?m1(t,this):null,t!==null?t.Zo:e.ga(Sr))},pn.prototype.computeShortLength=function(t){if(t){if(t=this.fromShortLength,isNaN(t)){var e=this.fromPort;e!==null&&(t=e.fromShortLength)}return isNaN(t)?0:t}return t=this.toShortLength,isNaN(t)&&(e=this.toPort,e!==null&&(t=e.toShortLength)),isNaN(t)?0:t},pn.prototype.Cf=function(t,e,n,i,r,o){if(this.pickable===!1)return!1;e===void 0&&(e=null),n===void 0&&(n=null);var s=o;if(o===void 0&&(s=Ti.alloc(),s.reset()),s.multiply(this.transform),this.fh(t,s))return Eg(this,e,n,r),o===void 0&&Ti.free(s),!0;if(this.Yc(t,s)){var l=!1;if(!this.isAtomic)for(var u=this.O.s,d=u.length;d--;){var p=u[d];if(p.visible||p===this.locationObject){var v=p.actualBounds,E=this.naturalBounds;if(!(v.x>E.width||v.y>E.height||0>v.x+v.width||0>v.y+v.height)){if(v=Ti.alloc(),v.set(s),p instanceof sn)l=p.Cf(t,e,n,i,r,v);else if(this.path===p){if(p instanceof Qi)if(l=t,E=i,p.pickable===!1)l=!1;else if(v.multiply(p.transform),E)t:{var M=l,R=v;if(p.fh(M,R))l=!0;else{if(R===void 0&&(R=p.transform,M.Re(p.actualBounds))){l=!0;break t}l=M.left,E=M.right;var j=M.top;M=M.bottom;var at=$.alloc(),q=$.alloc(),gt=$.alloc(),wt=Ti.alloc();wt.set(R),wt.bv(p.transform),wt.Vj(),q.x=E,q.y=j,q.transform(wt),at.x=l,at.y=j,at.transform(wt),R=!1,Ad(p,at,q,gt)?R=!0:(at.x=E,at.y=M,at.transform(wt),Ad(p,at,q,gt)?R=!0:(q.x=l,q.y=M,q.transform(wt),Ad(p,at,q,gt)?R=!0:(at.x=l,at.y=j,at.transform(wt),Ad(p,at,q,gt)&&(R=!0)))),Ti.free(wt),$.free(at),$.free(q),$.free(gt),l=R}}else l=p.fh(l,v)}else l=ua(p,t,i,v);l&&(E=p,e!==null&&(E=e(p)),E&&(n===null||n(E))&&r.add(E)),Ti.free(v)}}}return o===void 0&&Ti.free(s),l||this.background!==null||this.areaBackground!==null}return o===void 0&&Ti.free(s),!1},pn.prototype.computeCurve=function(){if(this.Wf===null){var t=this.fromPort,e=this.isOrthogonal;this.Wf=t!==null&&t===this.toPort&&!e}return this.Wf?yu:this.curve},pn.prototype.computeCorner=function(){if(this.curve===yu)return 0;var t=this.corner;return(isNaN(t)||0>t)&&(t=10),t},pn.prototype.findMidLabel=function(){for(var t=this.path,e=this.O.s,n=e.length,i=0;i<n;i++){var r=e[i];if(r!==t&&!r.isPanelMain&&(r.segmentIndex===-1/0||isNaN(r.segmentIndex)))return r}for(t=this.labelNodes;t.next();)if(e=t.value,e.segmentIndex===-1/0||isNaN(e.segmentIndex))return e;return null},pn.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var t=h1;t=Math.max(t,this.computeThickness());var e=this.fromPort,n=this.toPort;if(e!==null&&n!==null){var i=this.findMidLabel();if(i!==null){var r=i.naturalBounds,o=i.margin,s=isNaN(r.width)?30:r.width*i.scale+o.left+o.right;r=isNaN(r.height)?14:r.height*i.scale+o.top+o.bottom,i=i.segmentOrientation,i===Lf||i===um||i===ov?t=Math.max(t,r):i===Df||i===Ff||i===Rf||i===Pf?t=Math.max(t,s):(e=e.ga(Sr).ab(n.ga(Sr))/180*Math.PI,t=Math.max(t,Math.abs(Math.sin(e)*s)+Math.abs(Math.cos(e)*r)+1)),this.curve===yu&&(t*=1.333)}}return t},pn.prototype.arrangeBundledLinks=function(t,e){if(e)for(e=0;e<t.length;e++){var n=t[e];n.computeAdjusting()===gl&&n.bb()}},pn.prototype.computeCurviness=function(){var t=this.curviness;if(isNaN(t)){t=c1;var e=this.Sf;if(e!==null){for(var n=Le(),i=0,r=e.links,o=0;o<r.length;o++){var s=r[o].computeSpacing();n.push(s),i+=s}for(i=-i/2,o=0;o<r.length;o++){if(r[o]===this){t=i+n[o]/2;break}i+=n[o]}e.Ds===this.fromNode&&(t=-t),tn(n)}}return t},pn.prototype.computeThickness=function(){if(!this.isVisible())return 0;var t=this.path;return t!==null?Math.max(t.strokeWidth,1):1},pn.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},pn.prototype.adjustPoints=function(t,e,n,i){var r=this.computeAdjusting();if(this.isOrthogonal){if(r===am)return!1;r===lm&&(r=Of)}switch(r){case am:var o=this.i(t),s=this.i(n);if(!o.Xa(e)||!s.Xa(i)){r=o.x,o=o.y;var l=s.x-r,u=s.y-o,d=Math.sqrt(l*l+u*u);if(!Vt.$(d,0)){if(Vt.$(l,0))var p=0>u?-Math.PI/2:Math.PI/2;else p=Math.atan(u/Math.abs(l)),0>l&&(p=Math.PI-p);s=e.x;var v=e.y;l=i.x-s;var E=i.y-v;for(u=Math.sqrt(l*l+E*E),Vt.$(l,0)?E=0>E?-Math.PI/2:Math.PI/2:(E=Math.atan(E/Math.abs(l)),0>l&&(E=Math.PI-E)),d=u/d,p=E-p,this.dd(t,e),t+=1;t<n;t++)e=this.i(t),l=e.x-r,u=e.y-o,e=Math.sqrt(l*l+u*u),Vt.$(e,0)||(Vt.$(l,0)?u=0>u?-Math.PI/2:Math.PI/2:(u=Math.atan(u/Math.abs(l)),0>l&&(u=Math.PI-u)),l=u+p,e*=d,this.L(t,s+e*Math.cos(l),v+e*Math.sin(l)));this.dd(n,i)}}return!0;case lm:if(o=this.i(t),v=this.i(n),!o.Xa(e)||!v.Xa(i)){r=o.x,o=o.y,s=v.x,v=v.y,d=(s-r)*(s-r)+(v-o)*(v-o),l=e.x,p=e.y,u=i.x,E=i.y;var M=1;if(u-l!==0){var R=(E-p)/(u-l);M=Math.sqrt(1+1/(R*R))}else R=9e9;for(this.dd(t,e),t+=1;t<n;t++){e=this.i(t);var j=e.x,at=e.y,q=.5;d!==0&&(q=((r-j)*(r-s)+(o-at)*(o-v))/d);var gt=r+q*(s-r),wt=o+q*(v-o);e=Math.sqrt((j-gt)*(j-gt)+(at-wt)*(at-wt)),at<R*(j-gt)+wt&&(e=-e),0<R&&(e=-e),j=l+q*(u-l),q=p+q*(E-p),R!==0?(e=j+e/M,this.L(t,e,q-(e-j)/R)):this.L(t,j,q+e)}this.dd(n,i)}return!0;case Of:t:{if(this.isOrthogonal&&(r=this.i(t),o=this.i(t+1),s=this.i(t+2),l=o.x,p=o.y,v=l,d=p,Vt.B(r.y,o.y)?Vt.B(o.x,s.x)?p=e.y:Vt.B(o.y,s.y)&&(l=e.x):Vt.B(r.x,o.x)&&(Vt.B(o.y,s.y)?l=e.x:Vt.B(o.x,s.x)&&(p=e.y)),this.L(t+1,l,p),r=this.i(n),o=this.i(n-1),s=this.i(n-2),l=o.x,p=o.y,u=l,E=p,Vt.B(r.y,o.y)?Vt.B(o.x,s.x)?p=i.y:Vt.B(o.y,s.y)&&(l=i.x):Vt.B(r.x,o.x)&&(Vt.B(o.y,s.y)?l=i.x:Vt.B(o.x,s.x)&&(p=i.y)),this.L(n-1,l,p),ev(this))){this.L(t+1,v,d),this.L(n-1,u,E),n=!1;break t}this.dd(t,e),this.dd(n,i),n=!0}return n;default:return!1}},pn.prototype.addOrthoPoints=function(t,e,n,i,r,o){0>e?e+=360:360<=e&&(e-=360),0>i?i+=360:360<=i&&(i-=360);var s=i;e=315<=e||45>e?0:45<=e&&135>e?90:135<=e&&225>e?180:270,i=315<=i||45>i?0:45<=i&&135>i?90:135<=i&&225>i?180:270;var l=r.actualBounds.copy(),u=o.actualBounds.copy();if(l.w()&&u.w()){l.Bc(Bf,Bf),u.Bc(Bf,Bf),l.Ye(t),u.Ye(n);var d=$.alloc(),p=$.alloc();e===0?n.x>t.x||i===270&&n.y<t.y&&u.right>t.x||i===90&&n.y>t.y&&u.right>t.x?(d.h(n.x,t.y),p.h(n.x,(t.y+n.y)/2),i===180?(d.x=this.computeMidOrthoPosition(t.x,t.y,n.x,n.y,!1),p.x=d.x,p.y=n.y):i===270&&n.y<t.y||i===90&&n.y>t.y?(d.x=t.x<u.left?this.computeMidOrthoPosition(t.x,t.y,u.left,n.y,!1):t.x<u.right&&(i===270&&t.y<u.top||i===90&&t.y>u.bottom)?this.computeMidOrthoPosition(t.x,t.y,n.x,n.y,!1):u.right,p.x=d.x,p.y=n.y):i===0&&t.x<u.left&&t.y>u.top&&t.y<u.bottom&&(d.x=t.x,d.y=t.y<n.y?Math.min(n.y,u.top):Math.max(n.y,u.bottom),p.y=d.y)):(d.h(t.x,n.y),p.h((t.x+n.x)/2,n.y),(i===180||i===90&&n.y<l.top||i===270&&n.y>l.bottom)&&(i===180&&(u.ca(t)||l.ca(n))?d.y=this.computeMidOrthoPosition(t.x,t.y,n.x,n.y,!0):n.y<t.y&&(i===180||i===90)?d.y=this.computeMidOrthoPosition(t.x,l.top,n.x,Math.max(n.y,u.bottom),!0):n.y>t.y&&(i===180||i===270)&&(d.y=this.computeMidOrthoPosition(t.x,l.bottom,n.x,Math.min(n.y,u.top),!0)),p.x=n.x,p.y=d.y),d.y>l.top&&d.y<l.bottom&&(n.x>=l.left&&n.x<=t.x||t.x<=u.right&&t.x>=n.x?(i===90||i===270)&&(d.h(Math.max((t.x+n.x)/2,t.x),t.y),p.h(d.x,n.y)):(d.y=i===270||(i===0||i===180)&&n.y<t.y?Math.min(n.y,i===0?l.top:Math.min(l.top,u.top)):Math.max(n.y,i===0?l.bottom:Math.max(l.bottom,u.bottom)),p.x=n.x,p.y=d.y))):e===180?n.x<t.x||i===270&&n.y<t.y&&u.left<t.x||i===90&&n.y>t.y&&u.left<t.x?(d.h(n.x,t.y),p.h(n.x,(t.y+n.y)/2),i===0?(d.x=this.computeMidOrthoPosition(t.x,t.y,n.x,n.y,!1),p.x=d.x,p.y=n.y):i===270&&n.y<t.y||i===90&&n.y>t.y?(d.x=t.x>u.right?this.computeMidOrthoPosition(t.x,t.y,u.right,n.y,!1):t.x>u.left&&(i===270&&t.y<u.top||i===90&&t.y>u.bottom)?this.computeMidOrthoPosition(t.x,t.y,n.x,n.y,!1):u.left,p.x=d.x,p.y=n.y):i===180&&t.x>u.right&&t.y>u.top&&t.y<u.bottom&&(d.x=t.x,d.y=t.y<n.y?Math.min(n.y,u.top):Math.max(n.y,u.bottom),p.y=d.y)):(d.h(t.x,n.y),p.h((t.x+n.x)/2,n.y),(i===0||i===90&&n.y<l.top||i===270&&n.y>l.bottom)&&(i===0&&(u.ca(t)||l.ca(n))?d.y=this.computeMidOrthoPosition(t.x,t.y,n.x,n.y,!0):n.y<t.y&&(i===0||i===90)?d.y=this.computeMidOrthoPosition(t.x,l.top,n.x,Math.max(n.y,u.bottom),!0):n.y>t.y&&(i===0||i===270)&&(d.y=this.computeMidOrthoPosition(t.x,l.bottom,n.x,Math.min(n.y,u.top),!0)),p.x=n.x,p.y=d.y),d.y>l.top&&d.y<l.bottom&&(n.x<=l.right&&n.x>=t.x||t.x>=u.left&&t.x<=n.x?(i===90||i===270)&&(d.h(Math.min((t.x+n.x)/2,t.x),t.y),p.h(d.x,n.y)):(d.y=i===270||(i===0||i===180)&&n.y<t.y?Math.min(n.y,i===180?l.top:Math.min(l.top,u.top)):Math.max(n.y,i===180?l.bottom:Math.max(l.bottom,u.bottom)),p.x=n.x,p.y=d.y))):e===90?n.y>t.y||i===180&&n.x<t.x&&u.bottom>t.y||i===0&&n.x>t.x&&u.bottom>t.y?(d.h(t.x,n.y),p.h((t.x+n.x)/2,n.y),i===270?(d.y=this.computeMidOrthoPosition(t.x,t.y,n.x,n.y,!0),p.x=n.x,p.y=d.y):i===180&&n.x<t.x||i===0&&n.x>t.x?(d.y=t.y<u.top?this.computeMidOrthoPosition(t.x,t.y,n.x,u.top,!0):t.y<u.bottom&&(i===180&&t.x<u.left||i===0&&t.x>u.right)?this.computeMidOrthoPosition(t.x,t.y,n.x,n.y,!0):u.bottom,p.x=n.x,p.y=d.y):i===90&&t.y<u.top&&t.x>u.left&&t.x<u.right&&(d.x=t.x<n.x?Math.min(n.x,u.left):Math.max(n.x,u.right),d.y=t.y,p.x=d.x)):(d.h(n.x,t.y),p.h(n.x,(t.y+n.y)/2),(i===270||i===0&&n.x<l.left||i===180&&n.x>l.right)&&(i===270&&(u.ca(t)||l.ca(n))?d.x=this.computeMidOrthoPosition(t.x,t.y,n.x,n.y,!1):n.x<t.x&&(i===270||i===0)?d.x=this.computeMidOrthoPosition(l.left,t.y,Math.max(n.x,u.right),n.y,!1):n.x>t.x&&(i===270||i===180)&&(d.x=this.computeMidOrthoPosition(l.right,t.y,Math.min(n.x,u.left),n.y,!1)),p.x=d.x,p.y=n.y),d.x>l.left&&d.x<l.right&&(n.y>=l.top&&n.y<=t.y||t.y<=u.bottom&&t.y>=n.y?(i===0||i===180)&&(d.h(t.x,Math.max((t.y+n.y)/2,t.y)),p.h(n.x,d.y)):(d.x=i===180||(i===90||i===270)&&n.x<t.x?Math.min(n.x,i===90?l.left:Math.min(l.left,u.left)):Math.max(n.x,i===90?l.right:Math.max(l.right,u.right)),p.x=d.x,p.y=n.y))):n.y<t.y||i===180&&n.x<t.x&&u.top<t.y||i===0&&n.x>t.x&&u.top<t.y?(d.h(t.x,n.y),p.h((t.x+n.x)/2,n.y),i===90?(d.y=this.computeMidOrthoPosition(t.x,t.y,n.x,n.y,!0),p.x=n.x,p.y=d.y):i===180&&n.x<t.x||i===0&&n.x>=t.x?(d.y=t.y>u.bottom?this.computeMidOrthoPosition(t.x,t.y,n.x,u.bottom,!0):t.y>u.top&&(i===180&&t.x<u.left||i===0&&t.x>u.right)?this.computeMidOrthoPosition(t.x,t.y,n.x,n.y,!0):u.top,p.x=n.x,p.y=d.y):i===270&&t.y>u.bottom&&t.x>u.left&&t.x<u.right&&(d.x=t.x<n.x?Math.min(n.x,u.left):Math.max(n.x,u.right),d.y=t.y,p.x=d.x)):(d.h(n.x,t.y),p.h(n.x,(t.y+n.y)/2),(i===90||i===0&&n.x<l.left||i===180&&n.x>l.right)&&(i===90&&(u.ca(t)||l.ca(n))?d.x=this.computeMidOrthoPosition(t.x,t.y,n.x,n.y,!1):n.x<t.x&&(i===90||i===0)?d.x=this.computeMidOrthoPosition(l.left,t.y,Math.max(n.x,u.right),n.y,!1):n.x>t.x&&(i===90||i===180)&&(d.x=this.computeMidOrthoPosition(l.right,t.y,Math.min(n.x,u.left),n.y,!1)),p.x=d.x,p.y=n.y),d.x>l.left&&d.x<l.right&&(n.y<=l.bottom&&n.y>=t.y||t.y>=u.top&&t.y<=n.y?(i===0||i===180)&&(d.h(t.x,Math.min((t.y+n.y)/2,t.y)),p.h(n.x,d.y)):(d.x=i===180||(i===90||i===270)&&n.x<t.x?Math.min(n.x,i===270?l.left:Math.min(l.left,u.left)):Math.max(n.x,i===270?l.right:Math.max(l.right,u.right)),p.x=d.x,p.y=n.y)));var v=n;if(this.isAvoiding){var E=this.diagram;if(E===null||r===o||this.layer.isTemporary||!ih(E)||l.ca(v)&&!o.Td(r)||u.ca(t)&&!r.Td(o))e=!1;else{var M=xp(E,!0,this.containingGroup,null);if(this.segmentIndex!==17&&M.Yj(Math.min(t.x,d.x),Math.min(t.y,d.y),Math.abs(t.x-d.x),Math.abs(t.y-d.y))&&M.Yj(Math.min(d.x,p.x),Math.min(d.y,p.y),Math.abs(d.x-p.x),Math.abs(d.y-p.y))&&M.Yj(Math.min(p.x,v.x),Math.min(p.y,v.y),Math.abs(p.x-v.x),Math.abs(p.y-v.y)))e=!1;else{r=t,o=v;var R=n=null;if(E.isVirtualized){E=M.bounds.copy(),E.Bc(-M.Ho,-M.Go);var j=$.alloc();jp(M,t.x,t.y)||(Vt.Ff(E.x,E.y,E.x+E.width,E.y+E.height,t.x,t.y,d.x,d.y,j)?(n=t=j.copy(),e=j.ab(d)):Vt.Ff(E.x,E.y,E.x+E.width,E.y+E.height,d.x,d.y,p.x,p.y,j)?(n=t=j.copy(),e=j.ab(p)):Vt.Ff(E.x,E.y,E.x+E.width,E.y+E.height,p.x,p.y,v.x,v.y,j)&&(n=t=j.copy(),e=j.ab(v))),jp(M,v.x,v.y)||(Vt.Ff(E.x,E.y,E.x+E.width,E.y+E.height,v.x,v.y,p.x,p.y,j)?(R=v=j.copy(),i=p.ab(j)):Vt.Ff(E.x,E.y,E.x+E.width,E.y+E.height,p.x,p.y,d.x,d.y,j)?(R=v=j.copy(),i=d.ab(j)):Vt.Ff(E.x,E.y,E.x+E.width,E.y+E.height,d.x,d.y,t.x,t.y,j)&&(R=v=j.copy(),i=t.ab(j))),$.free(j)}l=l.copy().ed(u),l.Bc(M.Ho*M.Os,M.Go*M.Os),p1(M,t,e,v,i,l,!0),u=jc(M,v.x,v.y),!M.abort&&u>=Up&&(d1(M),l.Bc(M.Ho*M.Hx,M.Go*M.Ix),p1(M,t,e,v,i,l,!1),u=jc(M,v.x,v.y)),!M.abort&&u<Up&&jc(M,v.x,v.y)!==Lh?(nv(this,M,v.x,v.y,i,!0,s),l=this.i(2),4>this.pointsCount?(e===0||e===180?(l.x=t.x,l.y=v.y):(l.x=v.x,l.y=t.y),this.L(2,l.x,l.y),this.m(3,l.x,l.y)):(s=this.i(3),e===0||e===180?Vt.B(l.x,s.x)?(l=e===0?Math.max(l.x,t.x):Math.min(l.x,t.x),this.L(2,l,t.y),this.L(3,l,s.y)):Vt.B(l.y,s.y)?(Math.abs(t.y-l.y)<=M.Go/2&&(this.L(2,l.x,t.y),this.L(3,s.x,t.y)),this.m(2,l.x,t.y)):this.L(2,t.x,l.y):(e===90||e===270)&&(Vt.B(l.y,s.y)?(l=e===90?Math.max(l.y,t.y):Math.min(l.y,t.y),this.L(2,t.x,l),this.L(3,s.x,l)):Vt.B(l.x,s.x)?(Math.abs(t.x-l.x)<=M.Ho/2&&(this.L(2,t.x,l.y),this.L(3,t.x,s.y)),this.m(2,t.x,l.y)):this.L(2,l.x,t.y))),n!==null&&(t=this.i(1),s=this.i(2),t.x!==s.x&&t.y!==s.y?e===0||e===180?this.m(2,t.x,s.y):this.m(2,s.x,t.y):e===0||e===180?this.m(2,r.x,n.y):this.m(2,n.x,r.y)),R!==null&&(i===0||i===180?this.yf(o.x,R.y):this.yf(R.x,o.y)),e=!0):e=!1}}}else e=!1;e||(this.ne(d.copy()),this.ne(p.copy())),$.free(d),$.free(p)}},pn.prototype.computeMidOrthoPosition=function(t,e,n,i,r){var o=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(o=this.computeCurviness()),r?(e+i)/2+o:(t+n)/2+o};function ev(t){if(t.diagram===null||!t.isAvoiding||!ih(t.diagram))return!1;var e=t.points.s,n=e.length;if(4>n)return!1;t=xp(t.diagram,!0,t.containingGroup,null);for(var i=1;i<n-2;i++){var r=e[i],o=e[i+1];if(!t.Yj(Math.min(r.x,o.x),Math.min(r.y,o.y),Math.abs(r.x-o.x),Math.abs(r.y-o.y)))return!0}return!1}function nv(t,e,n,i,r,o,s){var l=e.Ho,u=e.Go,d=jc(e,n,i),p=n,v=i;for(r===0?p+=l:r===90?v+=u:r===180?p-=l:v-=u,r!==s&&d>Ld&&jc(e,p,v)!==d-1&&(jc(e,n-l,i)===d-1?(r=180,p=n-l,v=i):jc(e,n+l,i)===d-1?(r=0,p=n+l,v=i):jc(e,n,i-u)===d-1?(r=270,p=n,v=i-u):jc(e,n,i+u)===d-1&&(r=90,p=n,v=i+u));d>Ld&&jc(e,p,v)===d-1;)n=p,i=v,r===0?p+=l:r===90?v+=u:r===180?p-=l:v-=u,--d;o?d>Ld&&(r===180||r===0?n=Math.floor(n/l)*l+l/2:(r===90||r===270)&&(i=Math.floor(i/u)*u+u/2)):(n=Math.floor(n/l)*l+l/2,i=Math.floor(i/u)*u+u/2),d>Ld&&(o=r,s=n,p=i,r===0?(o=90,p+=u):r===90?(o=180,s-=l):r===180?(o=270,p-=u):r===270&&(o=0,s+=l),jc(e,s,p)===d-1?nv(t,e,s,p,o,!1,o):(s=n,p=i,r===0?(o=270,p-=u):r===90?(o=0,s+=l):r===180?(o=90,p+=u):r===270&&(o=180,s-=l),jc(e,s,p)===d-1&&nv(t,e,s,p,o,!1,o))),t.yf(n,i)}pn.prototype.ez=function(t){var e=t.x;t=t.y;for(var n=this.i(0),i=this.i(1),r=kr(e,t,n.x,n.y,i.x,i.y),o=0,s=1;s<this.pointsCount-1;s++){n=this.i(s+1);var l=kr(e,t,i.x,i.y,n.x,n.y);i=n,l<r&&(o=s,r=l)}return o},pn.prototype.qc=function(){this.lk=!1,this.v()},pn.prototype.Ul=function(t){if(!(!t&&(this.fd===!1||(t=this.Pb(),this.lk&&(t===null||t.geometry!==null))))&&(2>this.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),t=this.path,t!==null)){t.ua=this.ua;for(var e=this.O.s,n=e.length,i=0;i<n;i++){var r=e[i];r!==t&&r.isPanelMain&&r instanceof Qi&&(r.ua=this.ua)}}},pn.prototype.makeGeometry=function(){var t=this.ua,e=this.pointsCount,n=!1,i=this.diagram;i!==null&&Od(this)&&i.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(i.animationManager.isAnimating||i.currentTool!==i.toolManager)&&(n=!0);var r=this.i(0).copy(),o=r.copy();i=this.Nb.s;var s=this.computeCurve();if(s===yu&&3<=e&&!Vt.$(this.smoothness,0))if(e===3){var l=this.i(1);i=Math.min(r.x,l.x);var u=Math.min(r.y,l.y);l=this.i(2),i=Math.min(i,l.x),u=Math.min(u,l.y)}else{if(this.isOrthogonal)for(u=0;u<e;u++)l=i[u],o.x=Math.min(l.x,o.x),o.y=Math.min(l.y,o.y);else for(i=3;i<e;i+=3)i+3>=e&&(i=e-1),u=this.i(i),o.x=Math.min(u.x,o.x),o.y=Math.min(u.y,o.y);i=o.x,u=o.y}else{for(u=0;u<e;u++)l=i[u],o.x=Math.min(l.x,o.x),o.y=Math.min(l.y,o.y);i=o.x,u=o.y}if(i-=this.su.x,u-=this.su.y,r.x-=i,r.y-=u,e!==2||Od(this)){if(t.type=mn.o,l=zy(t),this.computeShortLength(!0)!==0&&(r=Qd(this,r,!0,o)),Fp(l,r.x,r.y,!1),s===yu&&3<=e&&!Vt.$(this.smoothness,0))if(e===3)n=this.i(1),e=n.x-i,n=n.y-u,r=this.i(2).copy(),r.x-=i,r.y-=u,this.computeShortLength(!1)!==0&&(r=Qd(this,r,!1,o)),Nh(l,e,n,e,n,r.x,r.y);else if(this.isOrthogonal){e=$.allocAt(i,u),n=$.alloc(),n.assign(this.i(1)),o=$.allocAt(i,u),r=$.allocAt(i,u),s=this.i(0);for(var d,p=this.smoothness/3,v=1;v<this.pointsCount-1;v++){d=this.i(v);var E=s,M=d,R=this.i(iv(this,d,v,!1));if((!Vt.$(E.x,M.x)||!Vt.$(M.x,R.x))&&(!Vt.$(E.y,M.y)||!Vt.$(M.y,R.y))){var j=p;isNaN(j)&&(j=this.smoothness/3);var at=E.x;E=E.y;var q=M.x;M=M.y;var gt=R.x;R=R.y;var wt=j*om(at,E,q,M);j*=om(q,M,gt,R),Vt.$(E,M)&&Vt.$(q,gt)&&(q>at?R>M?(o.x=q-wt,o.y=M-wt,r.x=q+j,r.y=M+j):(o.x=q-wt,o.y=M+wt,r.x=q+j,r.y=M-j):R>M?(o.x=q+wt,o.y=M-wt,r.x=q-j,r.y=M+j):(o.x=q+wt,o.y=M+wt,r.x=q-j,r.y=M-j)),Vt.$(at,q)&&Vt.$(M,R)&&(M>E?(gt>q?(o.x=q-wt,o.y=M-wt,r.x=q+j):(o.x=q+wt,o.y=M-wt,r.x=q-j),r.y=M+j):(gt>q?(o.x=q-wt,o.y=M+wt,r.x=q+j):(o.x=q+wt,o.y=M+wt,r.x=q-j),r.y=M-j)),(Vt.$(at,q)&&Vt.$(q,gt)||Vt.$(E,M)&&Vt.$(M,R))&&(at=.5*(at+gt),E=.5*(E+R),o.x=at,o.y=E,r.x=at,r.y=E),(v===1||v===2&&Vt.$(s.x,this.i(0).x)&&Vt.$(s.y,this.i(0).y))&&(n.x=.5*(s.x+d.x),n.y=.5*(s.y+d.y)),Nh(l,n.x-i,n.y-u,o.x-i,o.y-u,d.x-i,d.y-u),e.set(o),n.set(r),s=d}}d=s.x,s=s.y,p=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(p=Qd(this,p.copy(),!1,Wi)),d=.5*(d+p.x),s=.5*(s+p.y),Nh(l,r.x-i,r.y-u,d-i,s-u,p.x-i,p.y-u),$.free(e),$.free(n),$.free(o),$.free(r)}else for(n=3;n<e;n+=3)o=this.i(n-2),n+3>=e&&(n=e-1),r=this.i(n-1),s=this.i(n),n===e-1&&this.computeShortLength(!1)!==0&&(s=Qd(this,s.copy(),!1,Wi)),Nh(l,o.x-i,o.y-u,r.x-i,r.y-u,s.x-i,s.y-u);else{for(o=$.alloc(),o.assign(this.i(0)),r=$.alloc(),r.assign(o),s=this.computeCorner(),v=1,d=0;v<e;){if(v=iv(this,o,v,1<v),p=this.i(v),v>=e-1){if(!o.D(p))this.computeShortLength(!1)!==0&&(p=Qd(this,p.copy(),!1,Wi)),qd(this,l,-i,-u,o,p,n);else if(d===0)for(v=1;v<e;)r.assign(o),p=this.i(v++),qd(this,l,-i,-u,o,p,n),o.assign(p);break}if(d=iv(this,p,v+1,v<e-3),v=-i,at=-u,E=p,q=this.i(d),j=n,Vt.B(o.y,E.y)&&Vt.B(E.x,q.x))if(R=Math.min(s,Math.abs(E.x-r.x)/2),R=wt=Math.min(R,Math.abs(q.y-E.y)/2),Vt.B(R,0))qd(this,l,v,at,o,E,j),o.assign(E);else{var Ot=E.x,Gt=E.y;M=Ot,gt=Gt,E.x>o.x?Ot=E.x-R:Ot=E.x+R,q.y>E.y?gt=E.y+wt:gt=E.y-wt,q=$.allocAt(Ot,Gt),qd(this,l,v,at,o,q,j),$.free(q),Y0(l,E.x+v,E.y+at,M+v,gt+at),o.h(M,gt)}else Vt.B(o.x,E.x)&&Vt.B(E.y,q.y)?(R=Math.min(s,Math.abs(E.y-r.y)/2),R=wt=Math.min(R,Math.abs(q.x-E.x)/2),Vt.B(wt,0)?(qd(this,l,v,at,o,E,j),o.assign(E)):(Ot=E.x,Gt=E.y,M=Ot,gt=Gt,E.y>o.y?Gt=E.y-R:Gt=E.y+R,q.x>E.x?M=E.x+wt:M=E.x-wt,q=$.allocAt(Ot,Gt),qd(this,l,v,at,o,q,j),$.free(q),Y0(l,E.x+v,E.y+at,M+v,gt+at),o.h(M,gt))):(qd(this,l,v,at,o,E,j),o.assign(E));r.assign(p),v=d}$.free(o)}X0=l}else l=this.i(1).copy(),l.x-=i,l.y-=u,this.computeShortLength(!0)!==0&&(r=Qd(this,r,!0,o)),this.computeShortLength(!1)!==0&&(l=Qd(this,l,!1,o)),t.type=mn.j,t.startX=r.x,t.startY=r.y,t.endX=l.x,t.endY=l.y;return this.lk=!0,t};function om(t,e,n,i){return t=n-t,isNaN(t)||t===1/0||t===-1/0?NaN:(0>t&&(t=-t),e=i-e,isNaN(e)||e===1/0||e===-1/0?NaN:(0>e&&(e=-e),Vt.$(t,0)?e:Vt.$(e,0)?t:Math.sqrt(t*t+e*e)))}function Qd(t,e,n,i){var r=t.pointsCount;if(2>r)return e;if(n){var o=t.i(1);if(n=o.x-i.x,o=o.y-i.y,i=om(e.x,e.y,n,o),i===0)return e;r=r===2?.5*i:i,t=t.computeShortLength(!0),t>r&&(t=r),r=t*(o-e.y)/i,e.x+=t*(n-e.x)/i,e.y+=r}else{if(o=t.i(r-2),n=o.x-i.x,o=o.y-i.y,i=om(e.x,e.y,n,o),i===0)return e;r=r===2?.5*i:i,t=t.computeShortLength(!1),t>r&&(t=r),r=t*(e.y-o)/i,e.x-=t*(e.x-n)/i,e.y-=r}return e}function iv(t,e,n,i){for(var r=t.pointsCount,o=e;Vt.$(e.x,o.x)&&Vt.$(e.y,o.y);){if(n>=r)return r-1;o=t.i(n++)}if(!Vt.$(e.x,o.x)&&!Vt.$(e.y,o.y))return n-1;for(var s=o;Vt.$(e.x,o.x)&&Vt.$(o.x,s.x)&&(!i||(e.y>=o.y?o.y>=s.y:o.y<=s.y))||Vt.$(e.y,o.y)&&Vt.$(o.y,s.y)&&(!i||(e.x>=o.x?o.x>=s.x:o.x<=s.x));){if(n>=r)return r-1;s=t.i(n++)}return n-2}pn.prototype.computeJumpLength=function(){return 10};function qd(t,e,n,i,r,o,s){if(!s&&Od(t)){s=t.computeJumpLength();var l=s/2,u=[],d=0;if(t.isVisible()&&(d=zx(t,r,o,u)),0<d){if(Vt.B(r.y,o.y))if(r.x<o.x)for(var p=0;p<d;){var v=Math.max(r.x,Math.min(u[p++]-l,o.x-s));e.lineTo(v+n,o.y+i);for(var E=v+n,M=Math.min(v+s,o.x);p<d&&(v=u[p],v<M+s);)p++,M=Math.min(v+l,o.x);v=o.y-s+i,M+=n;var R=o.y+i;t.curve===Oh?Fp(e,M,R,!1):Nh(e,E,v,M,v,M,R)}else for(--d;0<=d;){for(p=Math.min(r.x,Math.max(u[d--]+l,o.x+s)),e.lineTo(p+n,o.y+i),E=p+n,v=Math.max(p-s,o.x);0<=d&&(p=u[d],p>v-s);)d--,v=Math.max(p-l,o.x);p=o.y-s+i,v+=n,M=o.y+i,t.curve===Oh?Fp(e,v,M,!1):Nh(e,E,p,v,p,v,M)}else if(Vt.B(r.x,o.x))if(r.y<o.y)for(p=0;p<d;){for(v=Math.max(r.y,Math.min(u[p++]-l,o.y-s)),e.lineTo(o.x+n,v+i),E=v+i,v=Math.min(v+s,o.y);p<d&&(M=u[p],M<v+s);)p++,v=Math.min(M+l,o.y);M=o.x-s+n,R=o.x+n,v+=i,t.curve===Oh?Fp(e,R,v,!1):Nh(e,M,E,M,v,R,v)}else for(--d;0<=d;){for(p=Math.min(r.y,Math.max(u[d--]+l,o.y+s)),e.lineTo(o.x+n,p+i),E=p+i,p=Math.max(p-s,o.y);0<=d&&(v=u[d],v>p-s);)d--,p=Math.max(v-l,o.y);v=o.x-s+n,M=o.x+n,p+=i,t.curve===Oh?Fp(e,M,p,!1):Nh(e,v,E,v,p,M,p)}}}e.lineTo(o.x+n,o.y+i)}function zx(t,e,n,i){var r=t.diagram;if(r===null||e.D(n))return 0;for(r=r.layers;r.next();){var o=r.value;if(o!==null&&o.visible){o=o.Pa.s;for(var s=o.length,l=0;l<s;l++){var u=o[l];if(u instanceof pn){if(u===t)return 0<i.length&&i.sort(function(p,v){return p-v}),i.length;if(u.isVisible()&&Od(u)){var d=u.routeBounds;d.w()&&t.routeBounds.Yc(d)&&!t.usesSamePort(u)&&(d=u.path,d!==null&&d.Ed()&&$x(e,n,i,u))}}}}}return 0<i.length&&i.sort(function(p,v){return p-v}),i.length}function $x(t,e,n,i){for(var r=Vt.B(t.y,e.y),o=i.pointsCount,s=i.i(0),l=$.alloc(),u=1;u<o;u++){var d=i.i(u);if(u<o-1){var p=i.i(u+1);if(s.y===d.y&&d.y===p.y){if(d.x>s.x&&p.x>=d.x||d.x<s.x&&p.x<=d.x)continue}else if(s.x===d.x&&d.x===p.x&&(d.y>s.y&&p.y>=d.y||d.y<s.y&&p.y<=d.y))continue}t:{p=t.x;var v=t.y,E=e.x,M=e.y,R=s.x;s=s.y;var j=d.x,at=d.y;if(Vt.B(p,E)){if(!Vt.B(v,M)&&Vt.B(s,at)&&Math.min(v,M)<s&&Math.max(v,M)>s&&Math.min(R,j)<p&&Math.max(R,j)>p&&!Vt.B(R,j)){l.x=p,l.y=s,p=!0;break t}}else if(Vt.B(v,M)&&Vt.B(R,j)&&Math.min(p,E)<R&&Math.max(p,E)>R&&Math.min(s,at)<v&&Math.max(s,at)>v&&!Vt.B(s,at)){l.x=R,l.y=v,p=!0;break t}l.x=0,l.y=0,p=!1}p&&(r?n.push(l.x):n.push(l.y)),s=d}$.free(l)}function Od(t){return t=t.curve,t===$p||t===Oh}function sm(t,e){(e||Od(t))&&(e=t.diagram,e===null||e.animationManager.isTicking||e.Eh.contains(t)||t.ml.width===0&&t.ml.height===0||e.Eh.add(t,t.ml.copy()))}pn.prototype.Xo=function(t){var e=this.layer;if(e!==null&&e.visible&&!e.isTemporary){var n=e.diagram;if(n!==null&&!n.animationManager.isTicking){var i=!1;for(n=n.layers;n.next();){var r=n.value;if(r.visible){if(r===e){i=!0;var o=!1;r=r.Pa.s;for(var s=r.length,l=0;l<s;l++){var u=r[l];u instanceof pn&&(u===this?o=!0:o&&l1(this,u,t))}}else if(i)for(o=r.Pa.s,r=o.length,s=0;s<r;s++)l=o[s],l instanceof pn&&l1(this,l,t)}}}}};function l1(t,e,n){if(e!==null&&e.lk&&e.fd&&Od(e)){var i=e.routeBounds;i.w()&&(t.routeBounds.Yc(i)||n.Yc(i))&&(t.usesSamePort(e)||e.qc())}}pn.prototype.usesSamePort=function(t){var e=this.pointsCount,n=t.pointsCount;if(0<e&&0<n){var i=this.i(0),r=t.i(0);if(i.Xa(r)||(e=this.i(e-1),t=t.i(n-1),e.Xa(t)||i.Xa(t)||e.Xa(r)))return!0}else if(this.fromNode===t.fromNode||this.toNode===t.toNode||this.fromNode===t.toNode||this.toNode===t.fromNode)return!0;return!1},pn.prototype.isVisible=function(){if(!li.prototype.isVisible.call(this))return!1;var t=this.containingGroup,e=!0,n=this.diagram;if(n!==null&&(e=n.isTreePathToChildren),n=this.fromNode,n!==null){if(this.isTreeLink&&e&&!n.isTreeExpanded)return!1;if(n===t)return!0;for(var i=n;i!==null;){if(i.labeledLink===this)return!0;i=i.containingGroup}if(n=n.findVisibleNode(),n===null||n===t)return!1}if(n=this.toNode,n!==null){if(this.isTreeLink&&!e&&!n.isTreeExpanded)return!1;if(n===t)return!0;for(e=n;e!==null;){if(e.labeledLink===this)return!0;e=e.containingGroup}if(e=n.findVisibleNode(),e===null||e===t)return!1}return!0},pn.prototype.Zb=function(t){if(li.prototype.Zb.call(this,t),t&&sm(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var e=this.wd.iterator;e.next();)e.value.Zb(t)},pn.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?Of:this.qk};function Af(t){var e=t.ef;if(e!==null){var n=t.uf;if(n!==null&&isNaN(t.curviness)){for(var i=t.ff,r=t.vf,o=t=null,s=e.jb.s,l=s.length,u=0;u<l;u++){var d=s[u];(d.ef===e&&d.ff===i&&d.uf===n&&d.vf===r||d.ef===n&&d.ff===r&&d.uf===e&&d.vf===i)&&(o===null?o=d:(t===null&&(t=[],t.push(o)),t.push(d)))}if(t!==null){for(o=Xy(e,n,i,r),o===null&&(o=new hm(e,i,n,r),Yy(e,o),Yy(n,o)),o.links=t,e=0;e<t.length;e++)t[e].Sf=o;o.Sl()}}}}function Mf(t){var e=t.Sf;e!==null&&isNaN(t.curviness)&&(t.Sf=null,t=e.links.indexOf(t),0<=t&&(He(e.links,t),e.Sl()))}pn.prototype.ph=function(){return!0},te.Object.defineProperties(pn.prototype,{fromNode:{get:function(){return this.ef},set:function(t){var e=this.ef;if(e!==t){var n=this.fromPort;e!==null&&(this.uf!==e&&tm(e,this,n),Mf(this),this.C(2)),this.ef=t,t!==null&&this.Zb(t.isVisible()),this.Wf=null,this.bb();var i=this.diagram;i!==null&&i.aa&&i.partManager.setFromNodeForLink(this,t,e);var r=this.fromPort,o=this.fromPortChanged;if(o!==null){var s=!0;i!==null&&(s=i.aa,i.aa=!0),o(this,n,r),i!==null&&(i.aa=s)}t!==null&&(this.uf!==t&&q0(t,this,r),Af(this),this.C(1)),this.g("fromNode",e,t),Bp(this)}}},fromPortId:{get:function(){return this.ff},set:function(t){var e=this.ff;if(e!==t){var n=this.fromPort;n!==null&&Jl(n),Mf(this),this.ff=t;var i=this.fromPort;i!==null&&Jl(i);var r=this.diagram;if(r!==null){var o=this.data,s=r.model;o!==null&&s.ri()&&s.xv(o,t)}n!==i&&(this.Wf=null,this.bb(),o=this.fromPortChanged,o!==null&&(s=!0,r!==null&&(s=r.aa,r.aa=!0),o(this,n,i),r!==null&&(r.aa=s))),Af(this),this.g("fromPortId",e,t)}}},fromPort:{get:function(){var t=this.ef;return t===null?null:t.ns(this.ff)}},fromPortChanged:{get:function(){return this.gn},set:function(t){var e=this.gn;e!==t&&(this.gn=t,this.g("fromPortChanged",e,t))}},toNode:{get:function(){return this.uf},set:function(t){var e=this.uf;if(e!==t){var n=this.toPort;e!==null&&(this.ef!==e&&tm(e,this,n),Mf(this),this.C(2)),this.uf=t,t!==null&&this.Zb(t.isVisible()),this.Wf=null,this.bb();var i=this.diagram;i!==null&&i.aa&&i.partManager.setToNodeForLink(this,t,e);var r=this.toPort,o=this.toPortChanged;if(o!==null){var s=!0;i!==null&&(s=i.aa,i.aa=!0),o(this,n,r),i!==null&&(i.aa=s)}t!==null&&(this.ef!==t&&q0(t,this,r),Af(this),this.C(1)),this.g("toNode",e,t),Bp(this)}}},toPortId:{get:function(){return this.vf},set:function(t){var e=this.vf;if(e!==t){var n=this.toPort;n!==null&&Jl(n),Mf(this),this.vf=t;var i=this.toPort;i!==null&&Jl(i);var r=this.diagram;if(r!==null){var o=this.data,s=r.model;o!==null&&s.ri()&&s.Cv(o,t)}n!==i&&(this.Wf=null,this.bb(),o=this.toPortChanged,o!==null&&(s=!0,r!==null&&(s=r.aa,r.aa=!0),o(this,n,i),r!==null&&(r.aa=s))),Af(this),this.g("toPortId",e,t)}}},toPort:{get:function(){var t=this.uf;return t===null?null:t.ns(this.vf)}},toPortChanged:{get:function(){return this.uo},set:function(t){var e=this.uo;e!==t&&(this.uo=t,this.g("toPortChanged",e,t))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:_r},set:function(t){var e=this.fromSpot;e.D(t)||(t=t.J(),this.Xc(),this.ba.Xi=t,this.g("fromSpot",e,t),(e.$c()||t.$c())&&this.fromNode!==null&&Jl(this.fromPort),this.bb())}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:NaN},set:function(t){var e=this.fromEndSegmentLength;e!==t&&(0>t&&Fn(t,">= 0",pn,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=t,this.g("fromEndSegmentLength",e,t),this.bb())}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:NaN},set:function(t){var e=this.fromShortLength;e!==t&&(this.Xc(),this.ba.Wi=t,this.qc(),this.g("fromShortLength",e,t))}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:_r},set:function(t){var e=this.toSpot;e.D(t)||(t=t.J(),this.Xc(),this.ba.yj=t,this.g("toSpot",e,t),(e.$c()||t.$c())&&this.toNode!==null&&Jl(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:NaN},set:function(t){var e=this.toEndSegmentLength;e!==t&&(0>t&&Fn(t,">= 0",pn,"toEndSegmentLength"),this.Xc(),this.ba.wj=t,this.g("toEndSegmentLength",e,t),this.bb())}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:NaN},set:function(t){var e=this.toShortLength;e!==t&&(this.Xc(),this.ba.xj=t,this.qc(),this.g("toShortLength",e,t))}},isLabeledLink:{get:function(){return this.wd===null?!1:0<this.wd.count}},labelNodes:{get:function(){return this.wd===null?Er:this.wd.iterator}},relinkableFrom:{get:function(){return(this.Qa&1)!==0},set:function(t){var e=(this.Qa&1)!==0;e!==t&&(this.Qa^=1,this.g("relinkableFrom",e,t),this.Wb())}},relinkableTo:{get:function(){return(this.Qa&2)!==0},set:function(t){var e=(this.Qa&2)!==0;e!==t&&(this.Qa^=2,this.g("relinkableTo",e,t),this.Wb())}},resegmentable:{get:function(){return(this.Qa&4)!==0},set:function(t){var e=(this.Qa&4)!==0;e!==t&&(this.Qa^=4,this.g("resegmentable",e,t),this.Wb())}},isTreeLink:{get:function(){return(this.Qa&8)!==0},set:function(t){var e=(this.Qa&8)!==0;e!==t&&(this.Qa^=8,this.g("isTreeLink",e,t),this.fromNode!==null&&If(this.fromNode),this.toNode!==null&&If(this.toNode))}},path:{get:function(){var t=this.Pb();return t instanceof Qi?t:null}},routeBounds:{get:function(){this.vg();var t=this.ml,e=1/0,n=1/0,i=this.pointsCount;if(i===0)t.h(NaN,NaN,0,0);else{if(i===1)i=this.i(0),e=Math.min(i.x,e),n=Math.min(i.y,n),t.h(i.x,i.y,0,0);else if(i===2){i=this.i(0);var r=this.i(1);e=Math.min(i.x,r.x),n=Math.min(i.y,r.y),t.h(i.x,i.y,0,0),t.Ye(r)}else if(this.computeCurve()===yu&&3<=i&&!this.isOrthogonal)if(r=this.i(0),e=r.x,n=r.y,t.h(e,n,0,0),i===3){i=this.i(1),e=Math.min(i.x,e),n=Math.min(i.y,n);var o=this.i(2);e=Math.min(o.x,e),n=Math.min(o.y,n),Vt.Dl(r.x,r.y,i.x,i.y,i.x,i.y,o.x,o.y,.5,t)}else for(o=3;o<i;o+=3){var s=this.i(o-2);o+3>=i&&(o=i-1);var l=this.i(o-1),u=this.i(o);Vt.Dl(r.x,r.y,s.x,s.y,l.x,l.y,u.x,u.y,.5,t),e=Math.min(u.x,e),n=Math.min(u.y,n),r=u}else for(r=this.i(0),o=this.i(1),e=Math.min(r.x,o.x),n=Math.min(r.y,o.y),t.h(r.x,r.y,0,0),t.Ye(o),r=2;r<i;r++)o=this.i(r),e=Math.min(o.x,e),n=Math.min(o.y,n),t.Ye(o);this.su.h(e-t.x,n-t.y)}return t}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new $)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||nm(this);for(var t=this.cq=[],e=this.pointsCount,n=0;n<e-1;n++){var i=this.i(n),r=this.i(n+1);Vt.$(i.x,r.x)?(i=r.y-i.y,0>i&&(i=-i)):Vt.$(i.y,r.y)?(i=r.x-i.x,0>i&&(i=-i)):i=Math.sqrt(i.Bf(r)),t.push(i)}}return this.cq}},flattenedTotalLength:{get:function(){var t=this.vt;if(isNaN(t)){for(var e=this.flattenedLengths,n=e.length,i=t=0;i<n;i++)t+=e[i];this.vt=t}return t}},points:{get:function(){return this.Nb},set:function(t){var e=this.Nb;if(e!==t){var n=null;if(Array.isArray(t)){var i=t.length%2===0;if(i){for(var r=0;r<t.length;r++)if(typeof t[r]!="number"||isNaN(t[r])){i=!1;break}}if(i)for(n=new Re,i=0;i<t.length/2;i++)r=new $(t[2*i],t[2*i+1]).freeze(),n.add(r);else{for(i=!0,r=0;r<t.length;r++){var o=t[r];if(!Me(o)||typeof o.x!="number"||isNaN(o.x)||typeof o.y!="number"||isNaN(o.y)){i=!1;break}}if(i)for(n=new Re,i=0;i<t.length;i++)r=t[i],n.add(new $(r.x,r.y).freeze())}}else if(t instanceof Re)for(n=t.copy(),t=n.iterator;t.next();)t.value.freeze();else ne("Link.points value is not an instance of List or Array: "+t);n.freeze(),this.Nb=n,this.qc(),nm(this),t=this.diagram,t!==null&&(t.pi||t.undoManager.isUndoingRedoing||t.As.add(this),t.animationManager.zb&&xr(t.animationManager,this,n)),this.g("points",e,n)}}},pointsCount:{get:function(){return this.Nb.count}},fd:{get:function(){return(this.Qa&16)!==0},set:function(t){(this.Qa&16)!==0!==t&&(this.Qa^=16)}},suspendsRouting:{get:function(){return(this.Qa&32)!==0},set:function(t){(this.Qa&32)!==0!==t&&(this.Qa^=32)}},computingPoints:{get:function(){return(this.Qa&64)!==0},set:function(t){(this.Qa&64)!==0!==t&&(this.Qa^=64)}},defaultFromPoint:{get:function(){return this.o},set:function(t){this.o=t.copy()}},defaultToPoint:{get:function(){return this.u},set:function(t){this.u=t.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(t){(this.Qa&128)!==0!==t&&(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||!zp(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var t=this.pointsCount;return t===0?0:2>=t?t-1:this.isOrthogonal||!zp(this.computeSpot(!1))?t-2:t-1}},adjusting:{get:function(){return this.qk},set:function(t){var e=this.qk;e!==t&&(this.qk=t,this.g("adjusting",e,t))}},corner:{get:function(){return this.Om},set:function(t){var e=this.Om;e!==t&&(this.Om=t,this.qc(),this.g("corner",e,t))}},curve:{get:function(){return this.Qm},set:function(t){var e=this.Qm;e!==t&&(this.Qm=t,this.bb(),this.qc(),sm(this,e===Oh||e===$p||t===Oh||t===$p),this.g("curve",e,t))}},curviness:{get:function(){return this.Rm},set:function(t){var e=this.Rm;e!==t&&(this.Rm=t,this.bb(),this.qc(),this.g("curviness",e,t))}},routing:{get:function(){return this.qj},set:function(t){var e=this.qj;e!==t&&(this.qj=t,this.Wf=null,this.bb(),sm(this,(e.value&2)===2||(t.value&2)===2),this.g("routing",e,t))}},smoothness:{get:function(){return this.po},set:function(t){var e=this.po;e!==t&&(this.po=t,this.qc(),this.g("smoothness",e,t))}},key:{get:function(){var t=this.diagram;if(t!==null&&t.model.ri())return t.model.Ac(this.data)}}}),pn.prototype.invalidateOtherJumpOvers=pn.prototype.Xo,pn.prototype.findClosestSegment=pn.prototype.ez,pn.prototype.updateRoute=pn.prototype.vg,pn.prototype.invalidateRoute=pn.prototype.bb,pn.prototype.rollbackRoute=pn.prototype.rv,pn.prototype.commitRoute=pn.prototype.zf,pn.prototype.startRoute=pn.prototype.uh,pn.prototype.clearPoints=pn.prototype.Fj,pn.prototype.removePoint=pn.prototype.pv,pn.prototype.addPointAt=pn.prototype.yf,pn.prototype.addPoint=pn.prototype.ne,pn.prototype.insertPointAt=pn.prototype.m,pn.prototype.insertPoint=pn.prototype.Kz,pn.prototype.setPointAt=pn.prototype.L,pn.prototype.setPoint=pn.prototype.dd,pn.prototype.getPoint=pn.prototype.i,pn.prototype.getOtherPort=pn.prototype.Cz,pn.prototype.getOtherNode=pn.prototype.To;var tp=null,ep=null,rv=new le(pn,"Normal",1),jx=new le(pn,"Orthogonal",2),Ux=new le(pn,"AvoidsNodes",6),u1=new le(pn,"AvoidsNodesStraight",7),gl=new le(pn,"None",0),yu=new le(pn,"Bezier",9),Oh=new le(pn,"JumpGap",10),$p=new le(pn,"JumpOver",11),Of=new le(pn,"End",17),am=new le(pn,"Scale",18),lm=new le(pn,"Stretch",19),Lf=new le(pn,"OrientAlong",21),Rf=new le(pn,"OrientPlus90",22),Df=new le(pn,"OrientMinus90",23),ov=new le(pn,"OrientOpposite",24),um=new le(pn,"OrientUpright",25),Pf=new le(pn,"OrientPlus90Upright",26),Ff=new le(pn,"OrientMinus90Upright",27),cm=new le(pn,"OrientUpright45",28),c1=16,h1=14,Bf=8;pn.className="Link",pn.Normal=rv,pn.Orthogonal=jx,pn.AvoidsNodes=Ux,pn.AvoidsNodesStraight=u1,pn.None=gl,pn.Bezier=yu,pn.JumpGap=Oh,pn.JumpOver=$p,pn.End=Of,pn.Scale=am,pn.Stretch=lm,pn.OrientAlong=Lf,pn.OrientPlus90=Rf,pn.OrientMinus90=Df,pn.OrientOpposite=ov,pn.OrientUpright=um,pn.OrientPlus90Upright=Pf,pn.OrientMinus90Upright=Ff,pn.OrientUpright45=cm,pn.EndSegmentStep=8,pn.CurvinessStart=c1,pn.SpacingMin=h1,pn.OrthoShortCut=Bf;function hm(t,e,n,i){nr(this),this.Fe=this.qq=!1,this.Ds=t,this.Ox=e,this.cv=n,this.Px=i,this.links=[]}hm.prototype.Sl=function(){if(!this.qq){var t=this.links;0<t.length&&(t=t[0].diagram,t!==null&&(t.ow.add(this),this.Fe=t.undoManager.isUndoingRedoing))}this.qq=!0},hm.prototype.Nv=function(){if(this.qq){this.qq=!1;var t=this.links;if(0<t.length){var e=t[0],n=e.diagram;n=n===null||n.pi&&!this.Fe,this.Fe=!1,e.arrangeBundledLinks(t,n),t.length===1&&(e.Sf=null,t.length=0)}t.length===0&&(t=this.Ds,this!==null&&t.af!==null&&t.af.remove(this),t=this.cv,this!==null&&t.af!==null&&t.af.remove(this))}},hm.className="LinkBundle";function zf(t){nr(this),this.Yx=this.group=null,this.vs=!0,this.abort=!1,this.Od=this.Nd=1,this.Fn=this.En=-1,this.rc=t.width,this.sc=t.height,this.ac=null,this.ei=this.di=0,this.Os=11,this.Ix=this.Hx=22}zf.prototype.initialize=function(t){if(!(0>=t.width||0>=t.height)){var e=t.y,n=t.x+t.width,i=t.y+t.height;if(this.Nd=Math.floor((t.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((e-this.sc)/this.sc)*this.sc,this.En=Math.ceil((n+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((i+2*this.sc)/this.sc)*this.sc,t=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),e=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di<t-1||this.ei<e-1){for(n=[],i=0;i<=t;i++)n[i]=new Uint32Array(e);this.ac=n,this.di=t-1,this.ei=e-1}if(t=sv,this.ac!==null)for(e=0;e<=this.di;e++)if(n=this.ac[e],n.fill)n.fill(t);else for(i=0;i<=this.ei;i++)n[i]=t}};function jp(t,e,n){return t.Nd<=e&&e<=t.En&&t.Od<=n&&n<=t.Fn}function jc(t,e,n){return jp(t,e,n)?(e-=t.Nd,e/=t.rc,n-=t.Od,n/=t.sc,t.ac[e|0][n|0]):sv}function d1(t){if(t.ac!==null)for(var e=0;e<=t.di;e++)for(var n=t.ac[e],i=0;i<=t.ei;i++)n[i]>=Ld&&(n[i]=sv)}zf.prototype.Yj=function(t,e,n,i){if(t>this.En||t+n<this.Nd||e>this.Fn||e+i<this.Od)return!0;t=(t-this.Nd)/this.rc|0,e=(e-this.Od)/this.sc|0,n=Math.max(0,n)/this.rc+1|0;var r=Math.max(0,i)/this.sc+1|0;if(0>t&&(n+=t,t=0),0>e&&(r+=e,e=0),0>n||0>r)return!0;for(i=Math.min(t+n-1,this.di)|0,n=Math.min(e+r-1,this.ei)|0;t<=i;t++){r=this.ac[t];for(var o=e;o<=n;o++)if(r[o]===Lh)return!1}return!0};function Uc(t,e,n,i,r,o,s,l,u){if(!(e<o||e>s||n<l||n>u)){var d=e|0,p=n|0,v=t.ac[d][p];if(v>=Ld&&v<Up)for(r?p+=i:d+=i,v+=1;o<=d&&d<=s&&l<=p&&p<=u&&!(v>=t.ac[d][p]);)t.ac[d][p]=v,v+=1,r?p+=i:d+=i;if(d=r?p:d,r)if(0<i)for(n+=i;n<d;n+=i)Uc(t,e,n,1,!r,o,s,l,u),Uc(t,e,n,-1,!r,o,s,l,u);else for(n+=i;n>d;n+=i)Uc(t,e,n,1,!r,o,s,l,u),Uc(t,e,n,-1,!r,o,s,l,u);else if(0<i)for(e+=i;e<d;e+=i)Uc(t,e,n,1,!r,o,s,l,u),Uc(t,e,n,-1,!r,o,s,l,u);else for(e+=i;e>d;e+=i)Uc(t,e,n,1,!r,o,s,l,u),Uc(t,e,n,-1,!r,o,s,l,u)}}function dm(t,e,n,i,r,o,s,l,u){e|=0,n|=0;var d=Lh,p=Ld;for(t.ac[e][n]=p;d===Lh&&e>o&&e<s&&n>l&&n<u;)p+=1,t.ac[e][n]=p,r?n+=i:e+=i,d=t.ac[e][n]}function pm(t,e,n,i,r,o,s,l,u){e|=0,n|=0;var d=Lh,p=Up;for(t.ac[e][n]=p;d===Lh&&e>o&&e<s&&n>l&&n<u;)t.ac[e][n]=p,r?n+=i:e+=i,d=t.ac[e][n]}function p1(t,e,n,i,r,o,s){if(t.ac!==null){t.abort=!1;var l=e.x,u=e.y;if(jp(t,l,u)){l-=t.Nd,l/=t.rc,u-=t.Od,u/=t.sc;var d=i.x,p=i.y;if(jp(t,d,p))if(d-=t.Nd,d/=t.rc,p-=t.Od,p/=t.sc,1>=Math.abs(l-d)&&1>=Math.abs(u-p))t.abort=!0;else{var v=o.x;i=o.y,e=o.x+o.width;var E=o.y+o.height;v-=t.Nd,v/=t.rc,i-=t.Od,i/=t.sc,e-=t.Nd,e/=t.rc,E-=t.Od,E/=t.sc,o=Math.max(0,Math.min(t.di,v|0)),e=Math.min(t.di,Math.max(0,e|0)),v=Math.max(0,Math.min(t.ei,i|0)),E=Math.min(t.ei,Math.max(0,E|0)),i=t.ac,l|=0,u|=0,d|=0,p|=0;var M=n===0||n===90?1:-1;if(n=n===90||n===270,i[l][u]===Lh?(dm(t,l,u,M,n,o,e,v,E),dm(t,l,u,1,!n,o,e,v,E),dm(t,l,u,-1,!n,o,e,v,E)):dm(t,l,u,M,n,l,u,l,u),i[d][p]===Lh?(pm(t,d,p,r===0||r===90?1:-1,r===90||r===270,o,e,v,E),pm(t,d,p,1,!(r===90||r===270),o,e,v,E),pm(t,d,p,-1,!(r===90||r===270),o,e,v,E)):pm(t,d,p,M,n,d,p,d,p),n=Le(),s&&f1(t,d,p,r,l,u,n))for((n[0]!==d||n[1]!==p)&&(n.unshift(p),n.unshift(d)),(n[n.length-2]!==l||n[n.length-1]!==u)&&(n.push(l),n.push(u)),t=Ld,r=n[n.length-2],s=n[n.length-1],i[r][s]=t++,o=n.length-4;0<=o;o-=2)for(r=n[o+2],s=n[o+3],e=n[o],d=n[o+1];e>r?r++:e<r?r--:d>s?s++:d<s&&s--,i[r][s]=t++,r!==e||s!==d;);else Uc(t,l,u,1,!1,o,e,v,E),Uc(t,l,u,-1,!1,o,e,v,E),Uc(t,l,u,1,!0,o,e,v,E),Uc(t,l,u,-1,!0,o,e,v,E);tn(n)}}}}function f1(t,e,n,i,r,o,s){for(var l=t.ac,u=e,d=n;;){if(u===r&&d===o)return!0;var p=u,v=d;if(i===0)if(p<r)p++;else break;else if(i===90)if(v<o)v++;else break;else if(i===180)if(p>r)p--;else break;else if(v>o)v--;else break;var E=l[p][v];if(E===0||E===av)break;u=p,d=v}for(;;){if(p=i,v=u,E=d,i===0?E<o?(p=90,E++):E>o&&(p=270,E--):i===90?v<r?(p=0,v++):v>r&&(p=180,v--):i===180?E<o?(p=90,E++):E>o&&(p=270,E--):v<r?(p=0,v++):v>r&&(p=180,v--),v=l[v][E],p!==i&&v!==0&&v!==av){if(s.push(u),s.push(d),f1(t,u,d,p,r,o,s))return!0;s.pop(),s.pop()}if(l[u][d]=av,i===0){if(u===e)return!1;u--}else if(i===90){if(d===n)return!1;d--}else if(i===180){if(u===e)return!1;u++}else{if(d===n)return!1;d++}}}te.Object.defineProperties(zf.prototype,{bounds:{get:function(){return new ke(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(t){0<t&&t!==this.rc&&(this.rc=t,this.initialize(this.bounds))}},Go:{get:function(){return this.sc},set:function(t){0<t&&t!==this.sc&&(this.sc=t,this.initialize(this.bounds))}}});var Lh=0,Ld=1,Up=999999,sv=Up+1,av=Up+2;zf.className="PositionArray";function np(){nr(this),this.port=this.node=null,this.pe=[],this.ap=!1}np.prototype.toString=function(){for(var t=this.pe,e=this.node.toString()+" "+t.length.toString()+":",n=0;n<t.length;n++){var i=t[n];i!==null&&(e+=`
|
|
|
`+i.toString())}return e};function _x(t,e,n,i){switch(e=e.offsetY,e){case 8:return 90;case 2:return 180;case 1:return 270;case 4:return 0}switch(e){case 9:return 180<n?270:90;case 6:return 90<n&&270>=n?180:0}switch(t=180*Math.atan2(t.height,t.width)/Math.PI,e){case 3:return n>t&&n<=180+t?180:270;case 5:return n>180-t&&n<=360-t?270:0;case 12:return n>t&&n<=180+t?90:0;case 10:return n>180-t&&n<=360-t?180:90;case 7:return 90<n&&n<=180+t?180:n>180+t&&n<=360-t?270:0;case 13:return 180<n&&n<=360-t?270:n>t&&180>=n?90:0;case 14:return n>t&&n<=180-t?90:n>180-t&&270>=n?180:0;case 11:return n>180-t&&n<=180+t?180:n>180+t?270:90}return i&&e!==15&&(n-=15,0>n&&(n+=360)),n>t&&n<180-t?90:n>=180-t&&n<=180+t?180:n>180+t&&n<360-t?270:0}np.prototype.Sl=function(){this.pe.length=0};function m1(t,e){var n=t.pe;if(n.length===0){t:if(!t.ap){n=t.ap,t.ap=!0;var i=null,r=t.node,o=r instanceof Ki?r:null;if(o===null||o.isSubGraphExpanded)var s=r.isTreeExpanded?r.findLinksConnected(t.port.portId):r.qx();else{if(!o.actualBounds.w()){t.ap=n;break t}i=o,s=i.Lu()}o=t.pe.length=0;var l=t.port.ga(Fs,$.alloc()),u=t.port.ga(Jo,$.alloc());for(r=ke.allocAt(l.x,l.y,0,0),r.Ye(u),$.free(l),$.free(u),l=$.allocAt(r.x+r.width/2,r.y+r.height/2),u=t.port.li(),s=s.iterator;s.next();){var d=s.value;if(d.isVisible()&&d.fromPort!==d.toPort){var p=d.fromPort===t.port||d.fromNode!==null&&d.fromNode.Td(i),v=d.computeSpot(p,t.port);if(v.$c()&&(p=p?d.toPort:d.fromPort,p!==null)){var E=p.part;if(E!==null){var M=E.findVisibleNode();M!==null&&M!==E&&(E=M,p=E.port),p=d.computeOtherPoint(E,p),E=l.ab(p),E-=u,0>E?E+=360:360<=E&&(E-=360),v=_x(r,v,E,d.isOrthogonal),v===0?(v=4,180<E&&(E-=360)):v===90?(v=8,270<E&&(E-=360)):v===180?v=2:(v=1,90>E&&(E+=360)),M=t.pe[o],M===void 0?(M=new lv(d,E,v),t.pe[o]=M):(M.link=d,M.angle=E,M.Nc=v),M.hv.set(p),o++}}}}for($.free(l),t.pe.sort(np.prototype.j),u=t.pe.length,i=-1,o=l=0;o<u;o++)s=t.pe[o],s!==void 0&&(s.Nc!==i&&(i=s.Nc,l=0),s.Uo=l,l++);for(i=-1,l=0,o=u-1;0<=o;o--)u=t.pe[o],u!==void 0&&(u.Nc!==i&&(i=u.Nc,l=u.Uo+1),u.Gl=l);if(o=t.pe,v=t.port,i=t.node.portSpreading,l=$.alloc(),u=$.alloc(),s=$.alloc(),d=$.alloc(),v.ga(Fs,l),v.ga(al,u),v.ga(Jo,s),v.ga(Ba,d),M=E=p=v=0,i===Jg)for(var R=0;R<o.length;R++){var j=o[R];if(j!==null){var at=j.link.computeThickness();switch(j.Nc){case 8:E+=at;break;case 2:M+=at;break;case 1:v+=at;break;default:case 4:p+=at}}}var q=R=0,gt=1,wt=j=0;for(at=0;at<o.length;at++){var Ot=o[at];if(Ot!==null){if(R!==Ot.Nc){switch(R=Ot.Nc,R){case 8:var Gt=s;q=d;break;case 2:Gt=d,q=l;break;case 1:Gt=l,q=u;break;default:case 4:Gt=u,q=s}switch(j=q.x-Gt.x,wt=q.y-Gt.y,R){case 8:E>Math.abs(j)?(gt=Math.abs(j)/E,E=Math.abs(j)):gt=1;break;case 2:M>Math.abs(wt)?(gt=Math.abs(wt)/M,M=Math.abs(wt)):gt=1;break;case 1:v>Math.abs(j)?(gt=Math.abs(j)/v,v=Math.abs(j)):gt=1;break;default:case 4:p>Math.abs(wt)?(gt=Math.abs(wt)/p,p=Math.abs(wt)):gt=1}q=0}var ce=Ot.Zo;if(i===Jg){switch(Ot=Ot.link.computeThickness(),Ot*=gt,ce.set(Gt),R){case 8:ce.x=Gt.x+j/2+E/2-q-Ot/2;break;case 2:ce.y=Gt.y+wt/2+M/2-q-Ot/2;break;case 1:ce.x=Gt.x+j/2-v/2+q+Ot/2;break;default:case 4:ce.y=Gt.y+wt/2-p/2+q+Ot/2}q+=Ot}else{var Mn=.5;i===em&&(Mn=(Ot.Uo+1)/(Ot.Gl+1)),ce.x=Gt.x+j*Mn,ce.y=Gt.y+wt*Mn}}}for($.free(l),$.free(u),$.free(s),$.free(d),Gt=t.pe,o=0;o<Gt.length;o++)i=Gt[o],i!==null&&(i.Ju=t.computeEndSegmentLength(i));t.ap=n,ke.free(r)}n=t.pe}for(t=0;t<n.length;t++)if(r=n[t],r!==null&&r.link===e)return r;return null}np.prototype.j=function(t,e){return t===e?0:t===null?-1:e===null?1:t.Nc<e.Nc?-1:t.Nc>e.Nc?1:t.angle<e.angle?-1:t.angle>e.angle?1:0},np.prototype.computeEndSegmentLength=function(t){var e=t.link,n=e.computeEndSegmentLength(this.node,this.port,us,e.fromPort===this.port),i=t.Uo;if(0>i)return n;var r=t.Gl;if(1>=r||!e.isOrthogonal)return n;e=t.hv;var o=t.Zo;return(t.Nc===2||t.Nc===8)&&(i=r-1-i),((t=t.Nc===2||t.Nc===4)?e.y<o.y:e.x<o.x)?n+8*i:(t?e.y===o.y:e.x===o.x)?n:n+8*(r-1-i)},np.className="Knot";function lv(t,e,n){this.link=t,this.angle=e,this.Nc=n,this.hv=new $,this.Gl=this.Uo=0,this.Zo=new $,this.Ju=0}lv.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()},lv.className="LinkInfo";function ts(t){nr(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new $(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,t&&Object.assign(this,t)}ts.prototype.cloneProtected=function(t){t.sn=this.sn,t.Gh=this.Gh,t.yn=this.yn,t.Am.assign(this.Am),t.vn=this.vn,t.un=this.un,t.Em=this.Em,t.xn=!0},ts.prototype.copy=function(){var t=new this.constructor;return this.cloneProtected(t),t},ts.prototype.qb=function(){},ts.prototype.toString=function(){var t=Je(this.constructor);return t+="(",this.group!==null&&(t+=" in "+this.group),this.diagram!==null&&(t+=" for "+this.diagram),t+")"},ts.prototype.C=function(){if(this.isValidLayout){var t=this.diagram;if(t!==null&&!t.undoManager.isUndoingRedoing){var e=t.animationManager;!e.isTicking&&(e.defaultAnimation.isAnimating&&e.Cc(),this.isOngoing&&t.pi||this.isInitial&&!t.pi)&&(this.isValidLayout=!1,t.$b())}}},ts.prototype.createNetwork=function(){return new Po(this)},ts.prototype.makeNetwork=function(t){var e=this.createNetwork();return t instanceof ue?(e.lg(t.nodes,!0),e.lg(t.links,!0)):t instanceof Ki?e.lg(t.memberParts):e.lg(t.iterator),e},ts.prototype.updateParts=function(){this.isValidLayout=!0;var t=this.diagram;if(t===null&&this.network!==null)for(var e=this.network.vertexes.iterator;e.next();){var n=e.value.node;if(n!==null&&(t=n.diagram,t!==null))break}try{t!==null&&t.Ea("Layout"),this.commitLayout()}finally{t!==null&&t.eb("Layout")}},ts.prototype.commitLayout=function(){if(this.network!==null){for(var t=this.network.vertexes.iterator;t.next();)t.value.commit();if(this.isRouting)for(t=this.network.edges.iterator;t.next();)t.value.commit()}},ts.prototype.doLayout=function(t){var e=new je;t instanceof ue?(Qh(this,e,t.nodes,!0,this.rh,!0,!1,!0),Qh(this,e,t.parts,!0,this.rh,!0,!1,!0)):t instanceof Ki?Qh(this,e,t.memberParts,!1,this.rh,!0,!1,!0):e.addAll(t.iterator),0<e.count&&(t=this.diagram,t!==null&&t.Ea("Layout"),this.doMinimalNoNetworkLayout(e),t!==null&&t.eb("Layout")),this.isValidLayout=!0},ts.prototype.doMinimalNoNetworkLayout=function(t){var e=Math.ceil(Math.sqrt(t.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var n=this.arrangementOrigin.x,i=n,r=this.arrangementOrigin.y,o=0,s=0;for(t=t.iterator;t.next();){var l=t.value;$f(l);var u=l.measuredBounds,d=u.width;u=u.height,l.moveTo(i,r),l instanceof Ki&&(l.rh=!1),i+=Math.max(d,50)+20,s=Math.max(s,Math.max(u,50)),o>=e-1?(o=0,i=n,r+=s+20,s=0):o++}},ts.prototype.doMinimalNetworkLayout=function(){var t=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var e=this.arrangementOrigin.x,n=e,i=this.arrangementOrigin.y,r=0,o=0,s=this.network.vertexes.iterator;s.next();){var l=s.value.node;if(!(l===null||l instanceof pn)&&($f(l),this.rh(l))){var u=l.measuredBounds,d=u.width;u=u.height,l.moveTo(n,i),l instanceof Ki&&(l.rh=!1),n+=Math.max(d,50)+20,o=Math.max(o,Math.max(u,50)),r>=t-1?(r=0,n=e,i+=o+20,o=0):r++}}},ts.prototype.rh=function(t){return!!(!t.location.w()||t instanceof Ki&&t.rh)};function Qh(t,e,n,i,r,o,s,l){for(n=n.iterator;n.next();){var u=n.value;i&&!u.isTopLevel||r!==null&&!r(u)||!u.canLayout()||(o&&u instanceof Rn?u.isLinkLabel||(u instanceof Ki&&u.layout===null?Qh(t,e,u.memberParts,!1,r,o,s,l):($f(u),e.add(u))):s&&u instanceof pn?e.add(u):!l||!u.Zc()||u instanceof Rn||($f(u),e.add(u)))}}function $f(t){var e=t.actualBounds;(e.width===0||e.height===0||isNaN(e.width)||isNaN(e.height))&&t.Va()}ts.prototype.ni=function(t,e){var n=this.boundsComputation;return n!==null?(e||(e=new ke),n(t,this,e)):e?(e.set(t.actualBounds),e):t.actualBounds},ts.prototype.ex=function(t){var e=new je;return t instanceof ue?(Qh(this,e,t.nodes,!0,null,!0,!0,!0),Qh(this,e,t.links,!0,null,!0,!0,!0),Qh(this,e,t.parts,!0,null,!0,!0,!0)):t instanceof Ki?Qh(this,e,t.memberParts,!1,null,!0,!0,!0):Qh(this,e,t.iterator,!1,null,!0,!0,!0),e},ts.prototype.initialOrigin=function(t){var e=this.group;if(e!==null){var n=e.position.copy();return(isNaN(n.x)||isNaN(n.y))&&n.set(t),e=e.placeholder,e!==null&&(n=e.ga(Fs),(isNaN(n.x)||isNaN(n.y))&&n.set(t),t=e.padding,n.x+=t.left,n.y+=t.top),n}return t},te.Object.defineProperties(ts.prototype,{diagram:{get:function(){return this.H},set:function(t){this.H=t}},group:{get:function(){return this.o},set:function(t){this.o!==t&&(this.o=t,t!==null&&(this.H=t.diagram))}},isOngoing:{get:function(){return this.sn},set:function(t){this.sn!==t&&(this.sn=t)}},isInitial:{get:function(){return this.Gh},set:function(t){this.Gh=t,t||(this.xn=!0)}},isViewportSized:{get:function(){return this.yn},set:function(t){this.yn!==t&&(this.yn=t)&&this.C()}},isRouting:{get:function(){return this.vn},set:function(t){this.vn!==t&&(this.vn=t)}},isRealtime:{get:function(){return this.un},set:function(t){this.un!==t&&(this.un=t)}},isValidLayout:{get:function(){return this.xn},set:function(t){this.xn!==t&&(this.xn=t,t||(t=this.diagram,t!==null&&(t.xh=!0)))}},network:{get:function(){return this.j},set:function(t){this.j!==t&&(this.j=t,t!==null&&(t.layout=this))}},boundsComputation:{get:function(){return this.Em},set:function(t){this.Em!==t&&(this.Em=t,this.C())}},arrangementOrigin:{get:function(){return this.Am},set:function(t){this.Am.D(t)||(this.Am.assign(t),this.C())}}}),ts.prototype.collectParts=ts.prototype.ex,ts.prototype.getLayoutBounds=ts.prototype.ni,ts.prototype.invalidateLayout=ts.prototype.C,ts.className="Layout";function Po(t){nr(this),this.Sc=t,this.wf=new je,this.ye=new je,this.Es=new pt,this.zs=new pt}Po.prototype.clear=function(){if(this.wf)for(var t=this.wf.iterator;t.next();)t.value.clear();if(this.ye)for(t=this.ye.iterator;t.next();)t.value.clear();this.wf=new je,this.ye=new je,this.Es=new pt,this.zs=new pt},Po.prototype.toString=function(t){t===void 0&&(t=0);var e="LayoutNetwork"+(this.layout!==null?"("+this.layout.toString()+")":"");if(0>=t)return e;if(e+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1<t){for(var n=this.wf.iterator;n.next();)e+=`
|
|
|
`+n.value.toString(t-1);for(n=this.ye.iterator;n.next();)e+=`
|
|
|
`+n.value.toString(t-1)}return e},Po.prototype.createVertex=function(){return new na(this)},Po.prototype.createEdge=function(){return new Ql(this)},Po.prototype.lg=function(t,e,n){if(t!==null){for(e===void 0&&(e=!1),n===void 0&&(n=null),n===null&&(n=function(s){if(s instanceof Rn)return!s.isLinkLabel;if(s instanceof pn){var l=s.fromNode;return l===null||l.isLinkLabel?!1:(s=s.toNode,!(s===null||s.isLinkLabel))}return!1}),t=t.iterator;t.next();){var i=t.value;if(i instanceof Rn&&(!e||i.isTopLevel)&&i.canLayout()&&n(i)){if(i instanceof Ki&&i.layout===null)this.lg(i.memberParts,!1);else if(this.ki(i)===null){var r=this.createVertex();r.node=i,this.dh(r)}}}for(t.reset();t.next();)if(i=t.value,i instanceof pn&&(!e||i.isTopLevel)&&i.canLayout()&&n(i)&&this.Lo(i)===null){var o=i.fromNode;r=i.toNode,o!==null&&r!==null&&o!==r&&(o=this.findGroupVertex(o),r=this.findGroupVertex(r),o!==null&&r!==null&&this.Zj(o,r,i))}}},Po.prototype.findGroupVertex=function(t){if(t===null)return null;var e=t.findVisibleNode();if(e===null)return null;if(t=this.ki(e),t!==null)return t;for(e=e.containingGroup;e!==null;){if(t=this.ki(e),t!==null)return t;e=e.containingGroup}return null},D=Po.prototype,D.dh=function(t){if(t!==null){this.wf.add(t);var e=t.node;e!==null&&this.Es.add(e,t),t.network=this}},D.Bl=function(t){if(t===null)return null;var e=this.ki(t);return e===null&&(e=this.createVertex(),e.node=t,this.dh(e)),e},D.Iu=function(t){if(t!==null&&g1(this,t)){for(var e=t.tg,n=e.count-1;0<=n;n--){var i=e.M(n);this.Mj(i)}for(e=t.mg,t=e.count-1;0<=t;t--)n=e.M(t),this.Mj(n)}};function g1(t,e){if(e===null)return!1;var n=t.wf.remove(e);return n&&(e=e.node,e!==null&&t.Es.remove(e)),n}D.Zy=function(t){t!==null&&(t=this.ki(t),t!==null&&this.Iu(t))},D.ki=function(t){return t===null?null:this.Es.I(t)},D.Bo=function(t){if(t!==null){uv(this,t);var e=t.toVertex;e!==null&&e.Cl(t),e=t.fromVertex,e!==null&&e.zl(t)}};function uv(t,e){if(e!==null){t.ye.add(e);var n=e.link;n!==null&&t.Lo(n)===null&&t.zs.add(n,e),e.network=t}}D.Dy=function(t){if(t===null)return null;var e=t.fromNode,n=t.toNode,i=this.Lo(t);return i===null?(i=this.createEdge(),i.link=t,e!==null&&(i.fromVertex=this.Bl(e)),n!==null&&(i.toVertex=this.Bl(n)),this.Bo(i)):(e!==null?i.fromVertex=this.Bl(e):i.fromVertex=null,n!==null?i.toVertex=this.Bl(n):i.toVertex=null),i},D.Mj=function(t){if(t!==null){var e=t.toVertex;e!==null&&e.Kl(t),e=t.fromVertex,e!==null&&e.Jl(t),cv(this,t)}};function cv(t,e){e!==null&&t.ye.remove(e)&&(e=e.link,e!==null&&t.zs.remove(e))}D.Yy=function(t){t!==null&&(t=this.Lo(t),t!==null&&this.Mj(t))},D.Lo=function(t){return t===null?null:this.zs.I(t)},D.Zj=function(t,e,n){if(t===null||e===null)return null;if(t.network===this&&e.network===this){var i=this.createEdge();return i.link=n,i.fromVertex=t,i.toVertex=e,this.Bo(i),i}return null},D.gm=function(t){if(t!==null){var e=t.fromVertex,n=t.toVertex;e!==null&&n!==null&&(e.Jl(t),n.Kl(t),t.gm(),e.Cl(t),n.zl(t))}},D.Ko=function(){for(var t=Le(),e=this.ye.iterator;e.next();){var n=e.value;n.fromVertex===n.toVertex&&t.push(n)}for(e=t.length,n=0;n<e;n++)this.Mj(t[n]);tn(t)},Po.prototype.deleteArtificialVertexes=function(){for(var t=Le(),e=this.wf.iterator;e.next();){var n=e.value;n.node===null&&n.data===null&&t.push(n)}for(n=t.length,e=0;e<n;e++)this.Iu(t[e]);for(e=Le(),n=this.ye.iterator;n.next();){var i=n.value;i.link===null&&i.data===null&&e.push(i)}for(n=e.length,i=0;i<n;i++)this.Mj(e[i]);tn(t),tn(e)};function Hx(t){for(var e=Le(),n=t.ye.iterator;n.next();){var i=n.value;i.fromVertex!==null&&i.toVertex!==null||e.push(i)}for(n=e.length,i=0;i<n;i++)t.Mj(e[i]);tn(e)}Po.prototype.Zx=function(t){t===void 0&&(t=!0),t&&(this.deleteArtificialVertexes(),Hx(this),this.Ko()),t=new Re;for(var e=!0;e;){e=!1;for(var n=this.wf.iterator;n.next();){var i=n.value;if(0<i.tg.count||0<i.mg.count){e=this.layout.createNetwork(),t.add(e),hv(this,e,i),e=!0;break}}}return t.sort(function(r,o){return r===null||o===null||r===o?0:o.vertexes.count-r.vertexes.count}),t};function hv(t,e,n){if(n!==null&&n.network!==e){g1(t,n),e.dh(n);for(var i=n.sourceEdges;i.next();){var r=i.value;r.network!==e&&(cv(t,r),uv(e,r),hv(t,e,r.fromVertex))}for(i=n.destinationEdges;i.next();)n=i.value,n.network!==e&&(cv(t,n),uv(e,n),hv(t,e,n.toVertex))}}Po.prototype.dz=function(){for(var t=new je,e=this.wf.iterator;e.next();)t.add(e.value.node);for(e=this.ye.iterator;e.next();)t.add(e.value.link);return t},te.Object.defineProperties(Po.prototype,{layout:{get:function(){return this.Sc},set:function(t){t!==null&&(this.Sc=t)}},vertexes:{get:function(){return this.wf}},edges:{get:function(){return this.ye}}}),Po.prototype.findAllParts=Po.prototype.dz,Po.prototype.splitIntoSubNetworks=Po.prototype.Zx,Po.prototype.deleteSelfEdges=Po.prototype.Ko,Po.prototype.reverseEdge=Po.prototype.gm,Po.prototype.linkVertexes=Po.prototype.Zj,Po.prototype.findEdge=Po.prototype.Lo,Po.prototype.deleteLink=Po.prototype.Yy,Po.prototype.deleteEdge=Po.prototype.Mj,Po.prototype.addLink=Po.prototype.Dy,Po.prototype.addEdge=Po.prototype.Bo,Po.prototype.findVertex=Po.prototype.ki,Po.prototype.deleteNode=Po.prototype.Zy,Po.prototype.deleteVertex=Po.prototype.Iu,Po.prototype.addNode=Po.prototype.Bl,Po.prototype.addVertex=Po.prototype.dh,Po.prototype.addParts=Po.prototype.lg,Po.className="LayoutNetwork";function na(t){nr(this),this.ob=t,this.j=new ke(0,0,10,10).freeze(),this.o=new $(5,5).freeze(),this.Sh=this.ub=null,this.tg=new Re,this.mg=new Re}na.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new Re,this.mg=new Re},na.prototype.toString=function(t){t===void 0&&(t=0);var e="LayoutVertex#"+Br(this);if(0<t&&(e+=this.node!==null?"("+this.node.toString()+")":"",1<t)){t="";for(var n=!0,i=this.tg.iterator;i.next();){var r=i.value;n?n=!1:t+=",",t+=r.toString(0)}for(r="",n=!0,i=this.mg.iterator;i.next();){var o=i.value;n?n=!1:r+=",",r+=o.toString(0)}e+=" sources: "+t+" destinations: "+r}return e},na.prototype.commit=function(){var t=this.ub;if(t!==null){var e=this.bounds,n=t.bounds;Me(n)?(n.x=e.x,n.y=e.y,n.width=e.width,n.height=e.height):t.bounds=e.copy()}else if(t=this.node,t!==null){if(e=this.bounds,!(t instanceof Ki)){n=ke.alloc(),t.Va();var i=this.network.layout.ni(t,n),r=t.locationObject.ga(Sr);if(i.w()&&r.w()){t.moveTo(e.x+this.focusX-(r.x-i.x),e.y+this.focusY-(r.y-i.y)),ke.free(n);return}ke.free(n)}t.moveTo(e.x,e.y)}},na.prototype.Cl=function(t){t!==null&&(this.tg.contains(t)||this.tg.add(t))},na.prototype.Kl=function(t){t!==null&&this.tg.remove(t)},na.prototype.zl=function(t){t!==null&&(this.mg.contains(t)||this.mg.add(t))},na.prototype.Jl=function(t){t!==null&&this.mg.remove(t)};function dv(t,e){return t=t.Sh,e=e.Sh,t?e?(t=t.text,e=e.text,t<e?-1:t>e?1:0):1:e!==null?-1:0}te.Object.defineProperties(na.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(t){if(this.ub=t,t!==null&&t.bounds){var e=t.bounds;t=e.x;var n=e.y,i=e.width;e=e.height,this.o.h(i/2,e/2),this.j.h(t,n,i,e)}}},node:{get:function(){return this.Sh},set:function(t){if(this.Sh!==t){this.Sh=t,t.Va();var e=this.network.layout,n=ke.alloc(),i=e.ni(t,n);e=i.x;var r=i.y,o=i.width;if(i=i.height,isNaN(e)&&(e=0),isNaN(r)&&(r=0),this.j.h(e,r,o,i),ke.free(n),!(t instanceof Ki)&&(t=t.locationObject.ga(Sr),t.w())){this.o.h(t.x-e,t.y-r);return}this.o.h(o/2,i/2)}}},bounds:{get:function(){return this.j},set:function(t){this.j.D(t)||this.j.assign(t)}},focus:{get:function(){return this.o},set:function(t){this.o.D(t)||this.o.assign(t)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(t){var e=this.j;e.x+this.o.x!==t&&(e.ka(),e.x=t-this.o.x,e.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(t){var e=this.j;e.y+this.o.y!==t&&(e.ka(),e.y=t-this.o.y,e.freeze())}},focusX:{get:function(){return this.o.x},set:function(t){var e=this.o;e.x!==t&&(e.ka(),e.x=t,e.freeze())}},focusY:{get:function(){return this.o.y},set:function(t){var e=this.o;e.y!==t&&(e.ka(),e.y=t,e.freeze())}},x:{get:function(){return this.j.x},set:function(t){var e=this.j;e.x!==t&&(e.ka(),e.x=t,e.freeze())}},y:{get:function(){return this.j.y},set:function(t){var e=this.j;e.y!==t&&(e.ka(),e.y=t,e.freeze())}},width:{get:function(){return this.j.width},set:function(t){var e=this.j;e.width!==t&&(e.ka(),e.width=t,e.freeze())}},height:{get:function(){return this.j.height},set:function(t){var e=this.j;e.height!==t&&(e.ka(),e.height=t,e.freeze())}},network:{get:function(){return this.ob},set:function(t){this.ob=t}},sourceVertexes:{get:function(){for(var t=new je,e=this.sourceEdges;e.next();)t.add(e.value.fromVertex);return t.iterator}},destinationVertexes:{get:function(){for(var t=new je,e=this.destinationEdges;e.next();)t.add(e.value.toVertex);return t.iterator}},vertexes:{get:function(){for(var t=new je,e=this.sourceEdges;e.next();)t.add(e.value.fromVertex);for(e=this.destinationEdges;e.next();)t.add(e.value.toVertex);return t.iterator}},sourceEdges:{get:function(){return this.tg.iterator}},destinationEdges:{get:function(){return this.mg.iterator}},edges:{get:function(){for(var t=new Re,e=this.sourceEdges;e.next();)t.add(e.value);for(e=this.destinationEdges;e.next();)t.add(e.value);return t.iterator}},edgesCount:{get:function(){return this.tg.count+this.mg.count}}}),na.prototype.deleteDestinationEdge=na.prototype.Jl,na.prototype.addDestinationEdge=na.prototype.zl,na.prototype.deleteSourceEdge=na.prototype.Kl,na.prototype.addSourceEdge=na.prototype.Cl,na.className="LayoutVertex",na.standardComparer=dv,na.smartComparer=function(t,e){if(t!==null){if(e!==null){t=t.Sh;var n=e.Sh;if(t!==null){if(n!==null){for(e=t.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),t=n.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),n=0;n<e.length;n++)if(t[n]!==""&&t[n]!==void 0){var i=parseFloat(e[n]),r=parseFloat(t[n]);if(isNaN(i))if(isNaN(r)){if(e[n].localeCompare(t[n])!==0)return e[n].localeCompare(t[n])}else return 1;else{if(isNaN(r))return-1;if(i-r!==0)return i-r}}else if(e[n]!=="")return 1;return t[n]!==""&&t[n]!==void 0?-1:0}return 1}return n!==null?-1:0}return 1}return e!==null?-1:0};function Ql(t){nr(this),this.nb=t,this.qd=this.kd=this.$k=this.ub=null}Ql.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},Ql.prototype.toString=function(t){t===void 0&&(t=0);var e="LayoutEdge#"+Br(this);return 0<t&&(e+=this.$k!==null?"("+this.$k.toString()+")":"",1<t&&(e+=" "+(this.kd?this.kd.toString():"null")+" --> "+(this.qd?this.qd.toString():"null"))),e},Ql.prototype.gm=function(){var t=this.kd;this.kd=this.qd,this.qd=t},Ql.prototype.commit=function(){},Ql.prototype.Ax=function(t){return this.qd===t?this.kd:this.kd===t?this.qd:null},te.Object.defineProperties(Ql.prototype,{network:{get:function(){return this.nb},set:function(t){this.nb=t}},data:{get:function(){return this.ub},set:function(t){this.ub!==t&&(this.ub=t)}},link:{get:function(){return this.$k},set:function(t){this.$k!==t&&(this.$k=t)}},fromVertex:{get:function(){return this.kd},set:function(t){this.kd!==t&&(this.kd=t)}},toVertex:{get:function(){return this.qd},set:function(t){this.qd!==t&&(this.qd=t)}}}),Ql.prototype.getOtherVertex=Ql.prototype.Ax,Ql.className="LayoutEdge";function Ea(t){ts.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new ni(NaN,NaN).freeze(),this.tf=new ni(10,10).freeze(),this.Jb=jf,this.Rb=mm,this.nd=Uf,this.hd=v1,t&&Object.assign(this,t)}Jn(Ea,ts),Ea.prototype.cloneProtected=function(t){ts.prototype.cloneProtected.call(this,t),t.zo=this.zo,t.yo=this.yo,t.yg.assign(this.yg),t.tf.assign(this.tf),t.Jb=this.Jb,t.Rb=this.Rb,t.nd=this.nd,t.hd=this.hd},Ea.prototype.qb=function(t){t.classType===Ea?t===Uf||t===vm||t===pv||t===gm?this.sorting=t:t===mm||t===dc?this.arrangement=t:t===jf||t===fm?this.alignment=t:ne("Unknown enum value: "+t):ts.prototype.qb.call(this,t)},Ea.prototype.doLayout=function(t){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var e=this.ex(t);t=this.diagram;for(var n=e.copy().iterator;n.next();){var i=n.value;if(!i.ph()||i.fromNode===null&&i.toNode===null){if(i.Va(),i instanceof Ki)for(i=i.memberParts;i.next();)e.remove(i.value)}else e.remove(i)}var r=e.Fa();if(r.length!==0){switch(this.sorting){case gm:r.reverse();break;case Uf:r.sort(this.comparer);break;case vm:r.sort(this.comparer),r.reverse()}var o=this.wrappingColumn;isNaN(o)&&(o=0);var s=this.wrappingWidth;switch(isNaN(s)&&t!==null?(e=t.padding,s=Math.max(t.viewportBounds.width-e.left-e.right,0)):s=Math.max(this.wrappingWidth,0),0>=o&&0>=s&&(o=1),e=this.spacing.width,isFinite(e)||(e=0),n=this.spacing.height,isFinite(n)||(n=0),t!==null&&t.Ea("Layout"),i=[],this.alignment){case fm:var l=e,u=n,d=ke.alloc(),p=Math.max(this.cellSize.width,1);if(!isFinite(p))for(var v=p=0;v<r.length;v++){var E=this.ni(r[v],d);p=Math.max(p,E.width)}if(p=Math.max(p+l,1),v=Math.max(this.cellSize.height,1),!isFinite(v))for(E=v=0;E<r.length;E++){var M=this.ni(r[E],d);v=Math.max(v,M.height)}v=Math.max(v+u,1),E=this.arrangement;for(var R=M=this.arrangementOrigin.x,j=this.arrangementOrigin.y,at=0,q=0,gt=0;gt<r.length;gt++){var wt=r[gt],Ot=this.ni(wt,d),Gt=Math.ceil((Ot.width+l)/p)*p,ce=Math.ceil((Ot.height+u)/v)*v;switch(E){case dc:var Mn=Math.abs(R-Ot.width);break;default:Mn=R+Ot.width}switch((0<o&&at>o-1||0<s&&0<at&&Mn-M>s)&&(i.push(new ke(0,j,s+l,q)),at=0,R=M,j+=q,q=0),q=Math.max(q,ce),E){case dc:Ot=-Ot.width;break;default:Ot=0}switch(wt.moveTo(R+Ot,j),E){case dc:R-=Gt;break;default:R+=Gt}at++}i.push(new ke(0,j,s+l,q)),ke.free(d);break;case jf:for(u=s,p=o,v=e,E=n,s=ke.alloc(),M=Math.max(this.cellSize.width,1),o=j=d=0,l=$.alloc(),R=0;R<r.length;R++)q=r[R],at=this.ni(q,s),q=Ih(q,q.locationObject,q.locationSpot,l),d=Math.max(d,q.x),j=Math.max(j,at.width-q.x),o=Math.max(o,q.y);switch(R=this.arrangement,R){case dc:d+=v;break;default:j+=v}M=isFinite(M)?Math.max(M+v,1):Math.max(d+j,1);var Un=q=this.arrangementOrigin.x;for(gt=this.arrangementOrigin.y,j=0,u>=d&&(u-=d),d=wt=0,Gt=Math.max(this.cellSize.height,1),Ot=o=0,ce=!0,at=$.alloc(),Mn=0;Mn<r.length;Mn++){var zn=r[Mn],cn=this.ni(zn,s),We=Ih(zn,zn.locationObject,zn.locationSpot,l);if(0<j)switch(R){case dc:Un=(Un-q-(cn.width-We.x))/M,Un=Vt.$(Math.round(Un),Un)?Math.round(Un):Math.floor(Un),Un=Un*M+q;break;default:Un=(Un-q+We.x)/M,Un=Vt.$(Math.round(Un),Un)?Math.round(Un):Math.ceil(Un),Un=Un*M+q}else switch(R){case dc:wt=Un+We.x+cn.width;break;default:wt=Un-We.x}switch(R){case dc:var Hi=-(Un+We.x)+wt;break;default:Hi=Un+cn.width-We.x-wt}if(0<p&&j>p-1||0<u&&0<j&&Hi>u){for(i.push(new ke(0,ce?gt-o:gt,u+v,Ot+o+E)),Un=0;Un<j&&Mn!==j;Un++){Hi=r[Mn-j+Un];var Ci=Ih(Hi,Hi.locationObject,Hi.locationSpot,at);Hi.moveTo(Hi.position.x,Hi.position.y+o-Ci.y)}Ot+=E,gt=ce?gt+Ot:gt+(Ot+o),j=Ot=o=0,Un=q,ce=!1}switch(Un===q&&(d=R===dc?Math.max(d,cn.width-We.x):Math.min(d,-We.x)),o=Math.max(o,We.y),Ot=Math.max(Ot,cn.height-We.y),isFinite(Gt)&&(Ot=Math.max(Ot,Math.max(cn.height,Gt)-We.y)),ce?zn.moveTo(Un-We.x,gt-We.y):zn.moveTo(Un-We.x,gt),R){case dc:Un-=We.x+v;break;default:Un+=cn.width-We.x+v}j++}if(i.push(new ke(0,gt,u+v,(ce?Ot:Ot+o)+E)),r.length!==j)for(u=0;u<j;u++)p=r[r.length-j+u],v=Ih(p,p.locationObject,p.locationSpot,l),p.moveTo(p.position.x,p.position.y+o-v.y);if($.free(l),$.free(at),R===dc)for(r=0;r<i.length;r++)o=i[r],o.width+=d,o.x-=d;else for(r=0;r<i.length;r++)o=i[r],o.x>d&&(o.width+=o.x-d,o.x=d);ke.free(s)}for(l=o=s=r=0;l<i.length;l++)u=i[l],r=Math.min(r,u.x),s=Math.min(s,u.y),o=Math.max(o,u.x+u.width);this.arrangement===dc?this.commitLayers(i,new $(r+e/2-(o+r),s-n/2)):this.commitLayers(i,new $(r-e/2,s-n/2)),t!==null&&t.eb("Layout"),this.isValidLayout=!0}},Ea.prototype.commitLayers=function(){};function v1(t,e){return t=t.text,e=e.text,t<e?-1:t>e?1:0}te.Object.defineProperties(Ea.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(t){this.zo!==t&&(0<t||isNaN(t))&&(this.zo=t,this.isViewportSized=isNaN(t),this.C())}},wrappingColumn:{get:function(){return this.yo},set:function(t){this.yo!==t&&(0<t||isNaN(t))&&(this.yo=t,this.C())}},cellSize:{get:function(){return this.yg},set:function(t){this.yg.D(t)||(this.yg.assign(t),this.C())}},spacing:{get:function(){return this.tf},set:function(t){this.tf.D(t)||(this.tf.assign(t),this.C())}},alignment:{get:function(){return this.Jb},set:function(t){this.Jb===t||t!==jf&&t!==fm||(this.Jb=t,this.C())}},arrangement:{get:function(){return this.Rb},set:function(t){this.Rb===t||t!==mm&&t!==dc||(this.Rb=t,this.C())}},sorting:{get:function(){return this.nd},set:function(t){this.nd===t||t!==pv&&t!==gm&&t!==Uf&&t!==vm||(this.nd=t,this.C())}},comparer:{get:function(){return this.hd},set:function(t){this.hd!==t&&(this.hd=t,this.C())}}});var fm=new le(Ea,"Position",0),jf=new le(Ea,"Location",1),mm=new le(Ea,"LeftToRight",2),dc=new le(Ea,"RightToLeft",3),pv=new le(Ea,"Forward",4),gm=new le(Ea,"Reverse",5),Uf=new le(Ea,"Ascending",6),vm=new le(Ea,"Descending",7);Ea.className="GridLayout",Ea.standardComparer=v1,Ea.smartComparer=function(t,e){if(t!==null){if(e!==null){t=t.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),e=e.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/);for(var n=0;n<t.length;n++)if(e[n]!==""&&e[n]!==void 0){var i=parseFloat(t[n]),r=parseFloat(e[n]);if(isNaN(i))if(isNaN(r)){if(t[n].localeCompare(e[n])!==0)return t[n].localeCompare(e[n])}else return 1;else{if(isNaN(r))return-1;if(i-r!==0)return i-r}}else if(t[n]!=="")return 1;return e[n]!==""&&e[n]!==void 0?-1:0}return 1}return e!==null?-1:0},Ea.Position=fm,Ea.Location=jf,Ea.LeftToRight=mm,Ea.RightToLeft=dc,Ea.Forward=pv,Ea.Reverse=gm,Ea.Ascending=Uf,Ea.Descending=vm;function so(){this.On=new je,this.Dn=new je,this.Pa=new je,this.cf=new pt,this.bf=new pt,this.aj=new pt,this.H=null,this.tp=!1}D=so.prototype,D.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},D.Xe=function(t){this.H=t},D.oi=function(t){if(t instanceof Rn){if(this.On.add(t),t instanceof Ki){var e=t.containingGroup;e===null?this.H.ai.add(t):e.gl.add(t),e=t.layout,e!==null&&(e.diagram=this.H)}}else t instanceof pn?this.Dn.add(t):t instanceof jr||this.Pa.add(t);e=t.data,e===null||t instanceof jr||(t instanceof pn?this.bf.add(e,t):this.cf.add(e,t))},D.pc=function(t){if(t.Ej(),t instanceof Rn){if(this.On.remove(t),t instanceof Ki){var e=t.containingGroup;e===null?this.H.ai.remove(t):e.gl.remove(t),e=t.layout,e!==null&&(e.diagram=null)}}else t instanceof pn?this.Dn.remove(t):t instanceof jr||this.Pa.remove(t);e=t.data,e===null||t instanceof jr||(t instanceof pn?this.bf.remove(e):this.cf.remove(e))},D.Wd=function(){var t=this.H;if(t!==null){for(var e=t.nodeTemplateMap.iterator;e.next();){var n=e.value,i=e.key;(!n.Zc()||n instanceof Ki)&&ne('Invalid node template in Diagram.nodeTemplateMap: template for "'+i+'" must be a Node or a simple Part, not a Group or Link: '+n)}for(e=t.groupTemplateMap.iterator;e.next();)n=e.value,i=e.key,n instanceof Ki||ne('Invalid group template in Diagram.groupTemplateMap: template for "'+i+'" must be a Group, not a normal Node or Link: '+n);for(e=t.linkTemplateMap.iterator;e.next();)n=e.value,i=e.key,n instanceof pn||ne('Invalid link template in Diagram.linkTemplateMap: template for "'+i+'" must be a Link, not a normal Node or simple Part: '+n);for(e=Le(),n=t.selection.iterator;n.next();)(i=n.value.data)&&e.push(i);for(n=Le(),t=t.highlighteds.iterator;t.next();)(i=t.value.data)&&n.push(i);for(t=Le(),i=this.nodes.iterator;i.next();){var r=i.value;r.data!==null&&(t.push(r.data),t.push(r.location))}for(i=this.links.iterator;i.next();)r=i.value,r.data!==null&&(t.push(r.data),t.push(r.location));for(i=this.parts.iterator;i.next();)r=i.value,r.data!==null&&(t.push(r.data),t.push(r.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),i=0;i<e.length;i++)r=this.Lc(e[i]),r!==null&&(r.isSelected=!0);for(i=0;i<n.length;i++)r=this.Lc(n[i]),r!==null&&(r.isHighlighted=!0);for(i=0;i<t.length;i+=2)r=this.Lc(t[i]),r!==null&&(r.location=t[i+1]);tn(e),tn(n),tn(t)}},so.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},so.prototype.addModeledParts=function(t,e){var n=this,i=this.diagram.model;t.forEach(function(r){i.lb(r)&&y1(n,r,!1)}),t.forEach(function(r){i.lb(r)&&n.resolveReferencesForData(r)}),e!==!1&&vd(this.diagram,!1)};function y1(t,e,n){if(e!=null&&!t.diagram.undoManager.isUndoingRedoing&&!t.cf.contains(e)){n===void 0&&(n=!0);t:{if(e!=null&&!t.H.undoManager.isUndoingRedoing&&!t.cf.contains(e)){var i=t.Ro(e),r=x1(t,e,i);if(r!==null&&(_u(r),r=r.copy(),r!==null)){var o=t.diagram.skipsModelSourceBindings;t.diagram.skipsModelSourceBindings=!0,r.Tf=i,r.ub=e,t.tp&&(r.Jg="Tool"),t.diagram.add(r),r.ub=null,r.data=e,t.diagram.skipsModelSourceBindings=o,i=r;break t}}i=null}i!==null&&n&&t.resolveReferencesForData(e)}}so.prototype.insertLink=function(){return null},so.prototype.resolveReferencesForData=function(){},so.prototype.Ro=function(t){return this.H.model.Ro(t)};function x1(t,e,n){t=t.H;var i=t.model;return i.Xj()&&i.Yu(e)?(e=t.groupTemplateMap.I(n),e===null&&(e=t.groupTemplateMap.I(""),e===null&&(w1||(w1=!0,hi('No Group template found for category "'+n+'"'),hi(" Using default group template")),e=t.ly))):(e=t.nodeTemplateMap.I(n),e===null&&(e=t.nodeTemplateMap.I(""),e===null&&(S1||(S1=!0,hi('No Node template found for category "'+n+'"'),hi(" Using default node template")),e=t.ny))),e}so.prototype.getLinkCategoryForData=function(){return""},so.prototype.setLinkCategoryForData=function(){},so.prototype.setFromNodeForLink=function(){},so.prototype.setToNodeForLink=function(){},so.prototype.findLinkTemplateForCategory=function(t){var e=this.H,n=e.linkTemplateMap.I(t);return n===null&&(n=e.linkTemplateMap.I(""),n===null&&(C1||(C1=!0,hi('No Link template found for category "'+t+'"'),hi(" Using default link template")),n=e.my)),n},so.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},so.prototype.Gs=function(t){var e=this;t.forEach(function(n){e.ip(n)})},so.prototype.ip=function(t){t=this.Lc(t),t!==null&&(Ka(this.diagram,t,!1),this.unresolveReferencesForPart(t))},so.prototype.unresolveReferencesForPart=function(){},so.prototype.removeDataForLink=function(){},so.prototype.findPartForKey=function(t){return t==null?null:(t=this.H.model.hc(t),t!==null?this.cf.I(t):null)},so.prototype.Vb=function(t){return t==null||(t=this.H.model.hc(t),t===null)?null:(t=this.cf.I(t),t instanceof Rn?t:null)},so.prototype.findLinkForKey=function(){return null},D=so.prototype,D.Lc=function(t){if(t===null)return null;var e=this.cf.I(t);return e!==null?e:e=this.bf.I(t)},D.ii=function(t){return t===null?null:(t=this.cf.I(t),t instanceof Rn?t:null)},D.Kc=function(t){return t===null?null:this.bf.I(t)},D.ms=function(t){for(var e=0;e<arguments.length;++e);e=new je;for(var n=this.On.iterator;n.next();){var i=n.value,r=i.data;if(r!==null)for(var o=0;o<arguments.length;o++){var s=arguments[o];if(Me(s)&&fv(this,r,s)){e.add(i);break}}}return e.iterator},D.ls=function(t){for(var e=0;e<arguments.length;++e);e=new je;for(var n=this.Dn.iterator;n.next();){var i=n.value,r=i.data;if(r!==null)for(var o=0;o<arguments.length;o++){var s=arguments[o];if(Me(s)&&fv(this,r,s)){e.add(i);break}}}return e.iterator};function fv(t,e,n){for(var i in n){var r=e[i],o=n[i];if(In(o)){if(!In(r)||r.length<o.length)return!1;for(var s=0;s<r.length;s++){var l=o[s];if(l!==void 0&&!b1(t,r[s],l))return!1}}else if(!b1(t,r,o))return!1}return!0}function b1(t,e,n){if(typeof n=="function"){if(!n(e))return!1}else if(n instanceof RegExp){if(!e||!n.test(e.toString()))return!1}else if(Me(e)&&Me(n)){if(!fv(t,e,n))return!1}else if(e!==n)return!1;return!0}so.prototype.doModelChanged=function(t){if(this.H){var e=this.H;if(t.model===e.model){var n=t.change;if(e.doModelChanged(t),e.aa){e.aa=!1;try{var i=t.modelChange;if(i!=="")if(n===Ro){if(i==="nodeCategory"){var r=this.Lc(t.object),o=t.newValue;r!==null&&typeof o=="string"&&(r.category=o)}else i==="nodeDataArray"&&(this.Gs(t.oldValue),this.addModeledParts(t.newValue));e.isModified=!0}else if(n===hs){var s=t.newValue;i==="nodeDataArray"&&Me(s)&&y1(this,s),e.isModified=!0}else if(n===Ts){var l=t.oldValue;i==="nodeDataArray"&&Me(l)&&this.ip(l),e.isModified=!0}else n===Oa&&(i==="SourceChanged"?t.object!==null?this.updateDataBindings(t.object,t.propertyName):(this.rp(),this.updateAllTargetBindings()):i==="ModelDisplaced"&&this.Wd());else if(n===Ro){var u=t.propertyName,d=t.object;d===e.model?(u==="nodeKeyProperty"||u==="nodeCategoryProperty")&&(e.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(d,u),e.isModified=!0}else if(n===hs||n===Ts){var p=t.change===hs,v=p?t.newParam:t.oldParam,E=p?t.newValue:t.oldValue,M=this.aj.I(t.object);if(Array.isArray(M))for(t=0;t<M.length;t++){var R=M[t];if(p)F0(R,E,v,!0);else if(!(0>v)){var j=v+wf(R);R.pc(j,!0),Ig(R,j,v)}}e.isModified=!0}}finally{e.aa=!0}}}}},so.prototype.updateAllTargetBindings=function(t){t===void 0&&(t="");for(var e=this.parts.iterator;e.next();)e.value.La(t);for(e=this.nodes.iterator;e.next();)e.value.La(t);for(e=this.links.iterator;e.next();)e.value.La(t)},so.prototype.rp=function(){for(var t=this.H.model,e=new je,n=t.nodeDataArray,i=0;i<n.length;i++)e.add(n[i]);var r=[];for(this.nodes.each(function(s){s.data===null||e.contains(s.data)||r.push(s.data)}),this.parts.each(function(s){s.data===null||e.contains(s.data)||r.push(s.data)}),r.forEach(function(s){L1(t,s,!1)}),i=0;i<n.length;i++){var o=n[i];this.Lc(o)===null&&O1(t,o,!1)}for(this.refreshDataBoundLinks(),n=this.parts.iterator;n.next();)n.value.updateRelationshipsFromData();for(n=this.nodes.iterator;n.next();)n.value.updateRelationshipsFromData();for(n=this.links.iterator;n.next();)n.value.updateRelationshipsFromData()},so.prototype.refreshDataBoundLinks=function(){},so.prototype.updateRelationshipsFromData=function(){},so.prototype.updateDataBindings=function(t,e){if(typeof e=="string"){var n=this.Lc(t);if(n!==null)n.La(e);else{n=null;for(var i=this.aj.iterator;i.next();){for(var r=i.value,o=0;o<r.length;o++){var s=r[o].sx(t);s!==null&&(n===null&&(n=Le()),n.push(s))}if(n!==null)break}if(n!==null){for(i=0;i<n.length;i++)n[i].La(e);tn(n)}}t===this.diagram.model.modelData&&this.updateAllTargetBindings(e)}};function mv(t,e){var n=e.Hh;if(In(n)){var i=t.aj.I(n);if(i===null)i=[],i.push(e),t.aj.add(n,i);else{for(t=0;t<i.length;t++)if(i[t]===e)return;i.push(e)}}}function gv(t,e,n){Nd(e,function(s){s=s.O.s;for(var l=s.length,u=0;u<l;u++)bh(n,s[u])});var i=e.Hh;if(In(i)){var r=t.aj.I(i);if(r!==null){for(var o=0;o<r.length;o++)if(r[o]===e){r.splice(o,1),r.length===0&&t.aj.remove(i);break}}}}so.prototype.Kj=function(t,e,n){n===void 0&&(n=!1);var i=new pt;if(In(t))for(var r=0;r<t.length;r++)ym(this,t[r],e,i,n);else for(t=t.iterator;t.next();)ym(this,t.value,e,i,n);if(e!==null){n=e.model,t=e.toolManager.findTool("Dragging"),t=t!==null?t.dragOptions.dragsLink:e.Wm.dragsLink,r=new je;for(var o=new pt,s=i.iterator;s.next();){var l=s.value;if(l instanceof pn)t||l.fromNode!==null&&l.toNode!==null||r.add(l);else if(l instanceof Rn&&l.data!==null&&n.Tl()){var u=l;l=s.key;var d=l.pg();d!==null&&(d=i.I(d),d!==null?(n.qe(u.data,n.wa(d.data)),u=e.Kc(u.data),l=l.kh(),l!==null&&u!==null&&o.add(l,u)):n.qe(u.data,void 0))}}if(0<r.count&&e.Is(r,!1),0<o.count)for(n=o.iterator;n.next();)i.add(n.key,n.value)}if(e!==null&&this.H!==null&&(e=e.model,n=e.afterCopyFunction,n!==null)){var p=new pt;i.each(function(v){v.key.data!==null&&p.add(v.key.data,v.value.data)}),n(p,e,this.H.model)}for(e=i.iterator;e.next();)e.value.La();return i};function ym(t,e,n,i,r){if(e===null||r&&!e.canCopy())return null;if(i.contains(e))return i.I(e);var o=t.copyPartData(e,n);if(!(o instanceof li))return null;if(o.isSelected=!1,o.isHighlighted=!1,i.add(e,o),e instanceof Rn){for(var s=e.linksConnected;s.next();){var l=s.value;if(l.fromNode===e){var u=i.I(l);u!==null&&(u.fromNode=o)}l.toNode===e&&(l=i.I(l),l!==null&&(l.toNode=o))}if(e instanceof Ki&&o instanceof Ki)for(e=e.memberParts;e.next();)s=ym(t,e.value,n,i,r),s instanceof pn||s===null||(s.containingGroup=o)}else if(e instanceof pn&&o instanceof pn)for(s=e.fromNode,s!==null&&(s=i.I(s),s!==null&&(o.fromNode=s)),s=e.toNode,s!==null&&(s=i.I(s),s!==null&&(o.toNode=s)),e=e.labelNodes;e.next();)s=ym(t,e.value,n,i,r),s!==null&&s instanceof Rn&&(s.labeledLink=o);return o}so.prototype.copyPartData=function(t,e){var n=null,i=t.data;if(i!==null&&e!==null){var r=e.model;t instanceof pn||(i=r.copyNodeData(i),Me(i)&&(r.xf(i),n=e.Lc(i)))}else _u(t),n=t.copy(),n!==null&&(r=this.H,e!==null?e.add(n):i!==null&&r!==null&&r.commandHandler!==null&&r.commandHandler.copiesClipboardData&&(e=r.model,r=null,n instanceof pn||(r=e.copyNodeData(i)),Me(r)&&(n.data=r)));return n},te.Object.defineProperties(so.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(t){this.tp=t}}}),so.prototype.updateAllRelationshipsFromData=so.prototype.rp,so.prototype.findLinksByExample=so.prototype.ls,so.prototype.findNodesByExample=so.prototype.ms,so.prototype.findLinkForData=so.prototype.Kc,so.prototype.findNodeForData=so.prototype.ii,so.prototype.findPartForData=so.prototype.Lc,so.prototype.findNodeForKey=so.prototype.Vb,so.prototype.removeModeledPart=so.prototype.ip,so.prototype.removeModeledParts=so.prototype.Gs,so.prototype.rebuildParts=so.prototype.Wd;var S1=!1,w1=!1,C1=!1;so.className="PartManager";function fa(t){so.apply(this,arguments)}Jn(fa,so),fa.prototype.addAllModeledParts=function(){var t=this.diagram.model;this.addModeledParts(t.nodeDataArray),E1(this,t.linkDataArray)},fa.prototype.addModeledParts=function(t){for(so.prototype.addModeledParts.call(this,t,!1),t=this.links.iterator;t.next();)Bp(t.value);vd(this.diagram,!1)};function E1(t,e){e.forEach(function(n){T1(t,n)}),vd(t.diagram,!1)}function T1(t,e){if(e!=null&&!t.diagram.undoManager.isUndoingRedoing&&!t.bf.contains(e)){var n=t.getLinkCategoryForData(e),i=t.findLinkTemplateForCategory(n);if(i!==null){_u(i);var r=i.copy();if(r!==null){i=t.diagram.skipsModelSourceBindings,t.diagram.skipsModelSourceBindings=!0,r.Tf=n,r.ub=e,n=t.diagram.model;var o=wm(n,e,!0);o!==""&&(r.fromPortId=o),o=xu(n,e,!0),o!==void 0&&(o=t.Vb(o),o instanceof Rn&&(r.fromNode=o)),o=wm(n,e,!1),o!==""&&(r.toPortId=o),o=xu(n,e,!1),o!==void 0&&(o=t.Vb(o),o instanceof Rn&&(r.toNode=o)),n=n.Ef(e),Array.isArray(n)&&n.forEach(function(s){s=t.Vb(s),s!==null&&(s.labeledLink=r)}),t.tp&&(r.Jg="Tool"),t.diagram.add(r),r.ub=null,r.data=e,t.diagram.skipsModelSourceBindings=i}}}}fa.prototype.removeAllModeledParts=function(){var t=this.diagram.model;k1(this,t.linkDataArray),this.Gs(t.nodeDataArray)};function k1(t,e){e.forEach(function(n){t.ip(n)})}fa.prototype.getLinkCategoryForData=function(t){return this.diagram.model.ps(t)},fa.prototype.setLinkCategoryForData=function(t,e){return this.diagram.model.lp(t,e)},fa.prototype.setFromNodeForLink=function(t,e){var n=this.diagram.model;n.wv(t.data,n.wa(e!==null?e.data:null))},fa.prototype.setToNodeForLink=function(t,e){var n=this.diagram.model;n.Bv(t.data,n.wa(e!==null?e.data:null))},fa.prototype.removeDataForLink=function(t){this.diagram.model.bm(t.data)},fa.prototype.findPartForKey=function(t){var e=so.prototype.findPartForKey.call(this,t);return e===null&&(t=this.diagram.model.jh(t),t!==null)?this.bf.I(t):e},fa.prototype.findLinkForKey=function(t){return t==null?null:(t=this.diagram.model.jh(t),t!==null?this.bf.I(t):null)},fa.prototype.doModelChanged=function(t){var e=this;if(so.prototype.doModelChanged.call(this,t),this.diagram){var n=this.diagram;if(t.model===n.model){var i=t.change;if(n.aa){n.aa=!1;try{var r=t.modelChange;if(r!==""){if(i===Ro){if(r==="linkFromKey"){var o=this.Kc(t.object);if(o!==null){var s=this.Vb(t.newValue);o.fromNode=s}}else if(r==="linkToKey"){var l=this.Kc(t.object);if(l!==null){var u=this.Vb(t.newValue);l.toNode=u}}else if(r==="linkFromPortId"){var d=this.Kc(t.object);if(d!==null){var p=t.newValue;typeof p=="string"&&(d.fromPortId=p)}}else if(r==="linkToPortId"){var v=this.Kc(t.object);if(v!==null){var E=t.newValue;typeof E=="string"&&(v.toPortId=E)}}else if(r==="nodeGroupKey"){var M=this.Lc(t.object);if(M!==null){var R=t.newValue;if(R!==void 0){var j=this.Vb(R);j instanceof Ki?M.containingGroup=j:M.containingGroup=null}else M.containingGroup=null}}else if(r==="linkLabelKeys"){var at=this.Kc(t.object);if(at!==null){var q=t.oldValue,gt=t.newValue;Array.isArray(q)&&q.forEach(function(We){0<=gt.indexOf(We)||(We=e.Vb(We),We!==null&&(We.labeledLink=null))}),Array.isArray(gt)&>.forEach(function(We){We=e.Vb(We),We!==null&&(We.labeledLink=at)})}}else if(r==="linkCategory"){var wt=this.Kc(t.object),Ot=t.newValue;wt!==null&&typeof Ot=="string"&&(wt.category=Ot)}else r==="linkDataArray"&&(k1(this,t.oldValue),E1(this,t.newValue));n.isModified=!0}else if(i===hs){var Gt=t.newValue;if(r==="linkDataArray"&&typeof Gt=="object"&&Gt!==null)T1(this,Gt);else if(r==="linkLabelKeys"&&td(Gt)){var ce=this.Kc(t.object),Mn=this.Vb(Gt);ce!==null&&Mn!==null&&(Mn.labeledLink=ce)}n.isModified=!0}else if(i===Ts){var Un=t.oldValue;if(r==="linkDataArray"&&typeof Un=="object"&&Un!==null)this.ip(Un);else if(r==="linkLabelKeys"&&td(Un)){var zn=this.Vb(Un);zn!==null&&(zn.labeledLink=null)}n.isModified=!0}}else if(i===Ro){var cn=t.propertyName;t.object!==n.model||cn!=="linkFromKeyProperty"&&cn!=="linkToKeyProperty"&&cn!=="linkFromPortIdProperty"&&cn!=="linkToPortIdProperty"&&cn!=="linkLabelKeysProperty"&&cn!=="nodeIsGroupProperty"&&cn!=="nodeGroupKeyProperty"&&cn!=="linkCategoryProperty"||n.undoManager.isUndoingRedoing||this.Wd(),n.isModified=!0}}finally{n.aa=!0}}}}},fa.prototype.refreshDataBoundLinks=function(){var t=this,e=this.diagram.model,n=new je,i=e.linkDataArray;i.forEach(function(o){n.add(o)});var r=[];this.links.each(function(o){o.data===null||n.contains(o.data)||r.push(o.data)}),r.forEach(function(o){z1(e,o,!1)}),i.forEach(function(o){t.Kc(o)===null&&B1(e,o,!1)})},fa.prototype.updateRelationshipsFromData=function(t){var e=t.data;if(e!==null){var n=t.diagram;if(n!==null){var i=n.model;if(t instanceof pn){var r=xu(i,e,!0);if(r=n.Vb(r),t.fromNode=r,r=xu(i,e,!1),r=n.Vb(r),t.toNode=r,e=i.Ef(e),0<e.length||0<t.labelNodes.count){if(e.length===1&&t.labelNodes.count===1){r=e[0];var o=t.labelNodes.first();if(i.wa(o.data)===r)return}r=new je().addAll(e);var s=new je;t.labelNodes.each(function(l){l.data!==null&&(l=i.wa(l.data),l!==void 0&&s.add(l))}),e=s.copy(),e.hp(r),r=r.copy(),r.hp(s),(0<e.count||0<r.count)&&(e.each(function(l){l=n.Vb(l),l!==null&&l.labeledLink===t&&(l.labeledLink=null)}),r.each(function(l){l=n.Vb(l),l!==null&&l.labeledLink!==t&&(l.labeledLink=t)}))}}else!(t instanceof jr)&&(e=i.lh(e),e=n.findPartForKey(e),e===null||e instanceof Ki)&&(t.containingGroup=e)}}},fa.prototype.resolveReferencesForData=function(t){var e=this.diagram.model,n=e.wa(t);if(n!==void 0){var i=_f(e,n),r=this.Lc(t);if(i!==null&&r!==null){i=i.iterator;for(var o={};i.next();){var s=i.value;e.lb(s)?r instanceof Ki&&e.lh(s)===n&&(s=this.Lc(s),s!==null&&(s.containingGroup=r)):(o.link=this.Kc(s),o.link!==null&&r instanceof Rn&&(xu(e,s,!0)===n&&(o.link.fromNode=r),xu(e,s,!1)===n&&(o.link.toNode=r),s=e.Ef(s),Array.isArray(s)&&s.some(function(l){return function(u){return u===n?(r.labeledLink=l.link,!0):!1}}(o)))),o={link:o.link}}fc(e,n)}t=e.lh(t),t!==void 0&&(t=this.Vb(t),t instanceof Ki&&(r.containingGroup=t))}},fa.prototype.unresolveReferencesForPart=function(t){var e=this.diagram.model;if(t instanceof Rn){var n=e.wa(t.data);if(n!==void 0){for(var i=t.linksConnected;i.next();)pc(e,n,i.value.data);if(t.isLinkLabel&&(i=t.labeledLink,i!==null&&pc(e,n,i.data)),t instanceof Ki)for(t=t.memberParts;t.next();)i=t.value.data,e.lb(i)&&pc(e,n,i)}}},fa.prototype.copyPartData=function(t,e){var n=so.prototype.copyPartData.call(this,t,e);if(t instanceof pn)if(t=t.data,t!==null&&e!==null){var i=e.model;t=i.Jo(t),typeof t=="object"&&t!==null&&(i.fi(t),n=e.Kc(t))}else n!==null&&(e=this.diagram,t!==null&&e!==null&&e.commandHandler!==null&&e.commandHandler.copiesClipboardData&&(e=e.model.Jo(t),typeof e=="object"&&e!==null&&(n.data=e)));return n},fa.prototype.insertLink=function(t,e,n,i){var r=this.diagram,o=r.model,s=r.toolManager.findTool("Linking"),l="";if(t!==null&&(e===null&&(e=t),l=e.portId,l===null&&(l="")),e="",n!==null&&(i===null&&(i=n),e=i.portId,e===null&&(e="")),i=s.archetypeLinkData,i instanceof pn){if(_u(i),o=i.copy(),o!==null)return o.fromNode=t,o.fromPortId=l,o.toNode=n,o.toPortId=e,r.add(o),t=s.archetypeLabelNodeData,t instanceof Rn&&(_u(t),t=t.copy(),t!==null&&(t.labeledLink=o,r.add(t))),o}else if(i!==null&&(i=o.Jo(i),typeof i=="object"&&i!==null))return t!==null&&Hp(o,i,o.wa(t.data),!0),Gp(o,i,l,!0),n!==null&&Hp(o,i,o.wa(n.data),!1),Gp(o,i,e,!1),o.fi(i),t=s.archetypeLabelNodeData,t===null||t instanceof Rn||(t=o.copyNodeData(t),typeof t=="object"&&t!==null&&(o.xf(t),t=o.wa(t),t!==void 0&&o.Bu(i,t))),r.Kc(i);return null},fa.prototype.findLinkForKey=fa.prototype.findLinkForKey,fa.prototype.findPartForKey=fa.prototype.findPartForKey,fa.prototype.removeAllModeledParts=fa.prototype.removeAllModeledParts,fa.prototype.addModeledParts=fa.prototype.addModeledParts,fa.prototype.addAllModeledParts=fa.prototype.addAllModeledParts,fa.className="GraphLinksPartManager";function Lu(){so.apply(this,arguments),this.Sg=null}Jn(Lu,so);function xm(t,e,n){if(e!==null&&n!==null&&n.kh()===null){var i=t.diagram.toolManager.findTool("Linking"),r=e,o=n;if(t.diagram.isTreePathToChildren||(r=n,o=e),(i===null||!Ze(i,r,o,null,!0))&&(e=t.getLinkCategoryForData(n.data),i=t.findLinkTemplateForCategory(e),i!==null&&(_u(i),i=i.copy(),i!==null))){var s=t.diagram.skipsModelSourceBindings;t.diagram.skipsModelSourceBindings=!0,i.Tf=e,i.ub=n.data,i.fromNode=r,i.toNode=o,t.diagram.add(i),i.ub=null,i.data=n.data,t.diagram.skipsModelSourceBindings=s}}}Lu.prototype.getLinkCategoryForData=function(t){return this.diagram.model.ss(t)},Lu.prototype.setLinkCategoryForData=function(t,e){this.diagram.model.Ms(t,e)},Lu.prototype.setFromNodeForLink=function(t,e,n){var i=this.diagram.model;if(n===void 0&&(n=null),e=e!==null?e.data:null,this.diagram.isTreePathToChildren)i.qe(t.data,i.wa(e));else{var r=this.Sg;this.Sg=t,n!==null&&i.qe(n.data,void 0),i.qe(e,i.wa(t.toNode!==null?t.toNode.data:null)),this.Sg=r}},Lu.prototype.setToNodeForLink=function(t,e,n){var i=this.diagram.model;if(n===void 0&&(n=null),e=e!==null?e.data:null,this.diagram.isTreePathToChildren){var r=this.Sg;this.Sg=t,n!==null&&i.qe(n.data,void 0),i.qe(e,i.wa(t.fromNode!==null?t.fromNode.data:null)),this.Sg=r}else i.qe(t.data,i.wa(e))},Lu.prototype.removeDataForLink=function(t){this.diagram.model.qe(t.data,void 0)},Lu.prototype.findLinkForKey=function(t){return t==null?null:(t=this.diagram.model.hc(t),t!==null?this.bf.I(t):null)},Lu.prototype.doModelChanged=function(t){if(so.prototype.doModelChanged.call(this,t),this.diagram){var e=this.diagram;if(t.model===e.model){var n=t.change;if(e.aa){e.aa=!1;try{var i=t.modelChange;if(i!==""){if(n===Ro){if(i==="nodeParentKey"){var r=t.object,o=this.Vb(t.newValue),s=this.ii(r);if(this.Sg!==null)o!==null&&(this.Sg.data=r,this.Sg.category=this.getLinkCategoryForData(r));else if(s!==null){var l=s.kh();l!==null?o===null?e.remove(l):e.isTreePathToChildren?l.fromNode=o:l.toNode=o:xm(this,o,s)}}else if(i==="parentLinkCategory"){var u=this.ii(t.object),d=t.newValue;if(u!==null&&typeof d=="string"){var p=u.kh();p!==null&&(p.category=d)}}e.isModified=!0}}else if(n===Ro){var v=t.propertyName;t.object===e.model&&v==="nodeParentKeyProperty"&&(e.undoManager.isUndoingRedoing||this.Wd()),e.isModified=!0}}finally{e.aa=!0}}}}},Lu.prototype.updateRelationshipsFromData=function(t){var e=t.data;if(e!==null){var n=t.diagram;if(n!==null){var i=n.model;t instanceof Rn&&(e=i.mh(e),e=n.Vb(e),i=t.pg(),e!==i&&(i=t.kh(),e!==null?i!==null?n.isTreePathToChildren?i.fromNode=e:i.toNode=e:xm(this,e,t):i!==null&&Ka(n,i,!1)))}}},Lu.prototype.updateDataBindings=function(t,e){so.prototype.updateDataBindings.call(this,t,e),typeof e=="string"&&this.Lc(t)!==null&&(t=this.Kc(t),t!==null&&t.La(e))},Lu.prototype.resolveReferencesForData=function(t){var e=this.diagram.model,n=e.wa(t);if(n!==void 0){var i=_f(e,n),r=this.Lc(t);if(i!==null&&r!==null){for(i=i.iterator;i.next();){var o=i.value;e.lb(o)&&r instanceof Rn&&e.mh(o)===n&&xm(this,r,this.ii(o))}fc(e,n)}t=e.mh(t),t!==void 0&&r instanceof Rn&&(t=this.Vb(t),xm(this,t,r))}},Lu.prototype.unresolveReferencesForPart=function(t){var e=this.diagram.model;if(t instanceof Rn){var n=e.wa(t.data),i=this.Kc(t.data);if(i!==null){i.isSelected=!1,i.isHighlighted=!1;var r=i.layer;if(r!==null){var o=r.pc(-1,i,!1);0<=o&&this.diagram.cb(Ts,"parts",r,i,null,o,null),o=i.layerChanged,o!==null&&o(i,r,null)}}for(i=this.diagram.isTreePathToChildren,t=t.linksConnected;t.next();)r=t.value,r=(i?r.toNode:r.fromNode).data,e.lb(r)&&pc(e,n,r)}},Lu.prototype.insertLink=function(t,e,n){e=this.diagram.model;var i=t,r=n;return this.diagram.isTreePathToChildren||(i=n,r=t),i!==null&&r!==null?(e.qe(r.data,e.wa(i.data)),r.kh()):null},Lu.prototype.findLinkForKey=Lu.prototype.findLinkForKey,Lu.className="TreePartManager";function Yn(t,e){this.kl=new je,this.il=new je,this.Wv=`,
|
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
|
"removedNodeKeys": `,this.vh=null,nr(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new pt,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 pt,this.Lt=new Re,this.Wg=!1,this.o=null,this.undoManager=new Ho,t!==void 0&&(In(t)?this.nodeDataArray=t:e=t),e&&(Object.assign(this,e),t=e.Changed)&&(delete this.Changed,this.Pe(t))}Yn.prototype.cloneProtected=function(t){t.xa=this.xa,t.Sm=this.Sm,t.Gg=this.Gg,t.Th=this.Th,t.bl=this.bl,t.Bk=this.Bk,t.Km=this.Km,t.Jm=this.Jm,t.Mm=this.Mm,t.xm=this.xm,t.lj=this.lj},Yn.prototype.copy=function(){var t=new this.constructor;return this.cloneProtected(t),t},Yn.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},Yn.prototype.toString=function(t){if(t===void 0&&(t=0),1<t)return this.np();var e=(this.name!==""?this.name:"")+" Model";if(0<t){e+=`
|
|
|
node data:`,t=this.nodeDataArray;for(var n=t.length,i=0;i<n;i++){var r=t[i];e+=" "+this.wa(r)+":"+yn(r)}}return e},Yn.prototype.xA=function(t){t.change!==Oa&&ne("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+t.toString());var e=t.object;return t.isTransactionFinished&&e instanceof Rs?(I1(this,e),t=this.Qv(e,t.propertyName==="FinishedUndo"),this.vh=null,t):null},Yn.prototype.Qv=function(t,e){var n=this,i=!1,r=new je,o=new je,s=new je,l=this.vh;t.changes.each(function(v){v.model===n&&(v.modelChange==="nodeDataArray"?v.change===hs?r.add(v.newValue):v.change===Ts&&s.add(v.oldValue):n.lb(v.object)?o.add(v.object):v.change!==Ro||n.modelData!==v.object&&v.propertyName!=="modelData"?v.object!==null&&(l&&l.contains(v.object)?l.get(v.object).each(function(E){n.lb(E)&&o.add(E)}):v.object instanceof Yn||n.ri()&&n.Jc(v.object)||A1(n,v.object).each(function(E){o.add(E)})):i=!0)});var u=this.il;u.clear(),r.each(function(v){u.add(n.wa(v)),e||o.add(v)});var d=this.kl;d.clear(),s.each(function(v){d.add(n.wa(v)),e&&o.add(v)}),t=n.cloneDeep(o.Fa());var p=null;return i&&(p===null&&(p={}),p.modelData=this.cloneDeep(this.modelData)),0<u.count&&(p===null&&(p={}),e?p.removedNodeKeys=u.Fa():p.insertedNodeKeys=u.Fa()),0<t.length&&(p===null&&(p={}),p.modifiedNodeData=t),0<d.count&&(p===null&&(p={}),e?p.insertedNodeKeys=d.Fa():p.removedNodeKeys=d.Fa()),d.clear(),u.clear(),p},Yn.prototype.cloneDeep=function(t){return _p(this,t,!0)};function _p(t,e,n,i,r,o){function s(v,E){l?(v.__gohashid===void 0&&o.push(v),i.set(v,E)):(v=rs++,i.set(v,E),r.set(v,e))}if(!Me(e))return e;o||(o=[]);var l=Object.isExtensible(e);if(i||(i=new pt),l){var u=i.get(e);if(u)return u}else for(r||(r=new pt),u=r.iterator;u.next();){var d=u.key;if(u.value===e&&(d=i.get(d)))return d}if(Array.isArray(e)){u=[],s(e,u);for(var p=0;p<e.length;p++)u.push(_p(t,e[p],!1,i,r,o))}else if(e instanceof $||e instanceof ni||e instanceof ke||e instanceof ri||e instanceof Wn)u=e.copy(),s(e,u);else{if(e instanceof ro||e instanceof mn||e instanceof le)return e;if(e instanceof Re)u=new Re().addAll(_p(t,e.Fa(),!1,i,r,o)),s(e,u);else if(e instanceof je)u=new je().addAll(_p(t,e.Fa(),!1,i,r,o)),s(e,u);else if(e instanceof pt)u=new pt().addAll(_p(t,e.Fa(),!1,i,r,o)),s(e,u);else if(e instanceof Date)u=new Date(e.getTime()),s(e,u);else if(e instanceof RegExp)u=new RegExp(e),s(e,u),u.lastIndex=e.lastIndex;else if(typeof e.copy=="function")u=e.copy(),s(e,u);else for(p in u={},s(e,u),e)p!=="__gohashid"&&(u[p]=_p(t,e[p],!1,i,r,o))}return n&&o.forEach(function(v){delete v.__gohashid}),u}D=Yn.prototype,D.quote=function(t){return JSON.stringify(t).replace(/[\u007F-\uFFFF]/g,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).substr(-4)})},D.rm=function(){var t="";return this.name!==""&&(t+=`,
|
|
|
"name": `+this.quote(this.name)),this.dataFormat!==""&&(t+=`,
|
|
|
"dataFormat": `+this.quote(this.dataFormat)),this.isReadOnly&&(t+=`,
|
|
|
"isReadOnly": `+this.isReadOnly),this.nodeKeyProperty!=="key"&&typeof this.nodeKeyProperty=="string"&&(t+=`,
|
|
|
"nodeKeyProperty": `+this.quote(this.nodeKeyProperty)),this.copiesArrays&&(t+=`,
|
|
|
"copiesArrays": true`),this.copiesArrayObjects&&(t+=`,
|
|
|
"copiesArrayObjects": true`),this.copiesKey||(t+=`,
|
|
|
"copiesKey": false`),this.nodeCategoryProperty!=="category"&&typeof this.nodeCategoryProperty=="string"&&(t+=`,
|
|
|
"nodeCategoryProperty": `+this.quote(this.nodeCategoryProperty)),t},D.gp=function(t){t.name&&(this.name=t.name),t.dataFormat&&(this.dataFormat=t.dataFormat),t.isReadOnly&&(this.isReadOnly=!0),t.nodeKeyProperty&&(this.nodeKeyProperty=t.nodeKeyProperty),t.copiesArrays&&(this.copiesArrays=!0),t.copiesArrayObjects&&(this.copiesArrayObjects=!0),t.copiesKey===!1&&(this.copiesKey=!1),t.nodeCategoryProperty&&(this.nodeCategoryProperty=t.nodeCategoryProperty)};function N1(t,e){e=e.modelData,Me(e)&&(t.dm(e),t.modelData=e)}D.Rv=function(){var t=this.modelData,e=!1,n;for(n in t)if(!M1(n,t[n])){e=!0;break}return t="",e&&(t=`,
|
|
|
"modelData": `+vv(this,this.modelData)),t+`,
|
|
|
"nodeDataArray": `+qh(this,this.nodeDataArray,!0)},D.kv=function(t){N1(this,t),t=t.nodeDataArray,In(t)&&(this.dm(t),this.nodeDataArray=t)};function I1(t,e){function n(r,o){if((o=o.part)&&(o=o.data,r!==o)){var s=i.get(r);s===null?(s=new je,s.add(o),i.add(r,s)):s.add(o)}}var i=t.vh;i===null&&(i=new pt,e.changes.each(function(r){if(r.diagram!==null){var o=r.change;o===Ro?(r=r.object.panel)&&(o=r.data)&&n(o,r):(o===hs||o===Ts)&&(r=r.object,(o=r.itemArray)&&n(o,r))}}),t.vh=i)}function A1(t,e){for(var n=new je,i=0;i<t.nodeDataArray.length;i++){var r=t.nodeDataArray[i];bm(t,e,r,r,n)}return n}function bm(t,e,n,i,r){if(Array.isArray(n))for(var o=0;o<n.length;o++){var s=n[o];if(s===e)return r.add(i),!0;if(bm(t,e,s,i,r))return!0}else if(Me(n)&&Object.getPrototypeOf(n)===Object.prototype)for(o in n){if(s=n[o],s===e)return r.add(i),!0;if(bm(t,e,s,i,r))return!0}return!1}D.Pv=function(t,e){var n=this,i=!1,r=new je,o=new je,s=new je,l=this.vh;t.changes.each(function(p){p.model===n&&(p.modelChange==="nodeDataArray"?p.change===hs?r.add(p.newValue):p.change===Ts&&s.add(p.oldValue):n.lb(p.object)?o.add(p.object):p.change!==Ro||n.modelData!==p.object&&p.propertyName!=="modelData"?p.object!==null&&(l&&l.contains(p.object)?l.get(p.object).each(function(v){n.lb(v)&&o.add(v)}):p.object instanceof Yn||n.ri()&&n.Jc(p.object)||A1(n,p.object).each(function(v){o.add(v)})):i=!0)});var u=this.il;u.clear(),r.each(function(p){u.add(n.wa(p)),e||o.add(p)});var d=this.kl;return d.clear(),s.each(function(p){d.add(n.wa(p)),e&&o.add(p)}),t="",i&&(t+=`,
|
|
|
"modelData": `+vv(this,this.modelData)),0<u.count&&(t+=(e?this.Yv:this.Wv)+qh(this,u.Fa(),!0)),0<o.count&&(t+=this.jy+qh(this,o.Fa(),!0)),0<d.count&&(t+=(e?this.Wv:this.Yv)+qh(this,d.Fa(),!0)),d.clear(),u.clear(),t},D.fp=function(t){(t.name!==void 0&&t.name!==this.name||t.dataFormat!==void 0&&t.dataFormat!==this.dataFormat||t.isReadOnly!==void 0&&t.isReadOnly!==this.isReadOnly||t.nodeKeyProperty!==void 0&&t.nodeKeyProperty!==this.nodeKeyProperty||t.copiesArrays!==void 0&&t.copiesArrays!==this.copiesArrays||t.copiesArrayObjects!==void 0&&t.copiesArrayObjects!==this.copiesArrayObjects||t.copiesKey!==void 0&&t.copiesKey!==this.copiesKey||t.nodeCategoryProperty!==void 0&&t.nodeCategoryProperty!==this.nodeCategoryProperty)&&ne("applyIncrementalJson cannot change Model properties"),N1(this,t);var e=t.insertedNodeKeys,n=t.modifiedNodeData,i=new pt;if(Array.isArray(n))for(var r=0;r<n.length;r++){var o=n[r],s=this.wa(o);s!=null&&i.set(s,o)}if(Array.isArray(e))for(r=e.length,o=0;o<r;o++){s=e[o];var l=this.hc(s);l===null&&(l=(l=i.get(s))?l:this.copyNodeData({}),this.km(l,s),this.xf(l))}if(Array.isArray(n)){for(e=n.length,i=0;i<e;i++)if(r=n[i],o=this.wa(r),o=this.hc(o),o!==null){for(var u in r)u==="__gohashid"||u===this.nodeKeyProperty||this.Wj()&&u===this.nodeIsGroupProperty||this.setDataProperty(o,u,r[u]);this.lm(r,o)}}if(t=t.removedNodeKeys,Array.isArray(t))for(n=t.length,u=0;u<n;u++)e=this.hc(t[u]),e!==null&&this.cm(e)},D.$x=function(t,e){t.change!==Oa&&ne("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+t.toString());var n=t.object;return t.isTransactionFinished&&n instanceof Rs?(e===void 0&&(e=Hf(this,this)),I1(this,n),t=this.Pv(n,t.propertyName==="FinishedUndo"),this.vh=null,e==="2"?'{ "incremental": 2'+t+"}":'{ "class": '+this.quote(e)+', "incremental": 1'+this.rm()+t+"}"):'{ "incremental": 0 }'},D.yA=function(t,e){return this.$x(t,e)},D.np=function(t){return t===void 0&&(t=Hf(this,this)),'{ "class": '+this.quote(t)+this.rm()+this.Rv()+"}"},D.toJSON=function(t){return this.np(t)},D.Zw=function(t){var e=null;if(typeof t=="string")try{e=Ft.JSON.parse(t)}catch(i){}else typeof t=="object"?e=t:ne("Unable to modify a Model from: "+t);var n=e.incremental;typeof n!="number"&&ne("Unable to apply non-incremental changes to Model: "+t),n!==0&&(this.Ea("applyIncrementalJson"),this.fp(e),this.eb("applyIncrementalJson"))},D.Ky=function(t){return this.Zw(t)},Yn.constructGraphLinksModel=function(){return new Yn},D=Yn.prototype,D.dm=function(t){if(In(t))for(var e=t.length,n=0;n<e;n++){var i=t[n];if(Me(i)){var r=n;i=this.dm(i),Array.isArray(t)?t[r]=i:ne("Cannot replace an object in an HTMLCollection or NodeList at "+r)}}else if(Me(t)){for(e in t)if(n=t[e],Me(n)&&(n=this.dm(n),t[e]=n,e==="points"&&Array.isArray(n))){for(r=n.length%2===0,i=0;i<n.length;i++)if(typeof n[i]!="number"){r=!1;break}if(r){for(r=new Re,i=0;i<n.length/2;i++)r.add(new $(n[2*i],n[2*i+1]));r.freeze(),t[e]=r}}return Gx(t)}return t},D.sm=function(t){return t===void 0?"undefined":t===null?"null":t===!0?"true":t===!1?"false":typeof t=="string"?this.quote(t):typeof t=="number"?t===1/0?"9e9999":t===-1/0?"-9e9999":isNaN(t)?'{"class":"NaN"}':t.toString():t instanceof Date?'{"class":"Date", "value":"'+t.toJSON()+'"}':t instanceof Number?this.sm(t.valueOf()):In(t)?qh(this,t):Me(t)?vv(this,t):typeof t=="function"?"null":t.toString()};function qh(t,e,n){n===void 0&&(n=!1);var i=e.length;if(0>=i)return"[]";var r=new Or;r.add("["),n&&1<i&&r.add(`
|
|
|
`);for(var o=0;o<i;o++){var s=e[o];s!==void 0&&(0<o&&(r.add(","),n&&r.add(`
|
|
|
`)),r.add(t.sm(s)))}return n&&1<i&&r.add(`
|
|
|
`),r.add("]"),r.toString()}function M1(t,e){return e===void 0||t==="__gohashid"||t[0]==="_"||typeof e=="function"}function vl(t){return isNaN(t)?"NaN":t===1/0?"9e9999":t===-1/0?"-9e9999":t}function vv(t,e){var n=e;if(n instanceof $)e={class:"go.Point",x:vl(n.x),y:vl(n.y)};else if(n instanceof ni)e={class:"go.Size",width:vl(n.width),height:vl(n.height)};else if(n instanceof ke)e={class:"go.Rect",x:vl(n.x),y:vl(n.y),width:vl(n.width),height:vl(n.height)};else if(n instanceof ri)e={class:"go.Margin",top:vl(n.top),right:vl(n.right),bottom:vl(n.bottom),left:vl(n.left)};else if(n instanceof Wn)n.sb()?e={class:"go.Spot",x:vl(n.x),y:vl(n.y),offsetX:vl(n.offsetX),offsetY:vl(n.offsetY)}:e={class:"go.Spot",enum:n.toString()};else if(n instanceof ro){if(e={class:"go.Brush",type:n.type.name},n.type===Th?e.color=n.color:(n.type===ah||n.type===Mu)&&(e.start=n.start,e.end=n.end,n.type===Mu&&(n.startRadius!==0&&(e.startRadius=vl(n.startRadius)),isNaN(n.endRadius)||(e.endRadius=vl(n.endRadius)))),n.colorStops!==null){var i={};for(n=n.colorStops.iterator;n.next();)i[n.key]=n.value;e.colorStops=i}}else n instanceof mn?(e={class:"go.Geometry",type:n.type.name},n.startX!==0&&(e.startX=vl(n.startX)),n.startY!==0&&(e.startY=vl(n.startY)),n.endX!==0&&(e.endX=vl(n.endX)),n.endY!==0&&(e.endY=vl(n.endY)),n.spot1.D(Fs)||(e.spot1=n.spot1),n.spot2.D(Jo)||(e.spot2=n.spot2),n.type===mn.o&&(e.path=mn.ia(n))):n instanceof le&&(e={class:"go.EnumValue",classType:Hf(t,n.classType),name:n.name});i="{",n=!0;for(var r in e){var o=Ds(e,r);if(!M1(r,o))if(n?n=!1:i+=",",i+=t.quote(r)+":",r==="points"&&o instanceof Re){var s="[";for(o=o.iterator;o.next();){var l=o.value;1<s.length&&(s+=","),s+=t.sm(l.x),s+=",",s+=t.sm(l.y)}s+="]",i+=s}else i+=t.sm(o)}return i+"}"}function yl(t){return typeof t=="number"?t:t==="NaN"?NaN:t==="9e9999"?1/0:t==="-9e9999"?-1/0:parseFloat(t)}function Gx(t){if(typeof t!="object")return t;var e=t.class||"";if(e==="NaN")return NaN;if(e==="Date")return new Date(t.value);if(e.indexOf("go.")!==0)return t;e=e.substr(3);var n=t;if(e==="Point")n=new $(yl(t.x),yl(t.y));else if(e==="Size")n=new ni(yl(t.width),yl(t.height));else if(e==="Rect")n=new ke(yl(t.x),yl(t.y),yl(t.width),yl(t.height));else if(e==="Margin")n=new ri(yl(t.top),yl(t.right),yl(t.bottom),yl(t.left));else if(e==="Spot")typeof t.enum=="string"?n=Ga(t.enum):n=new Wn(yl(t.x),yl(t.y),yl(t.offsetX),yl(t.offsetY));else if(e==="Brush"){if(n=new ro,n.type=mr(ro,t.type),typeof t.color=="string"&&(n.color=t.color),t.start instanceof Wn&&(n.start=t.start),t.end instanceof Wn&&(n.end=t.end),typeof t.startRadius=="number"&&(n.startRadius=yl(t.startRadius)),typeof t.endRadius=="number"&&(n.endRadius=yl(t.endRadius)),t=t.colorStops,Me(t))for(var i in t)n.addColorStop(parseFloat(i),t[i])}else e==="Geometry"?(n=null,typeof t.path=="string"?n=mn.parse(t.path):n=new mn,n.type=mr(mn,t.type),typeof t.startX=="number"&&(n.startX=yl(t.startX)),typeof t.startY=="number"&&(n.startY=yl(t.startY)),typeof t.endX=="number"&&(n.endX=yl(t.endX)),typeof t.endY=="number"&&(n.endY=yl(t.endY)),t.spot1 instanceof Wn&&(n.spot1=t.spot1),t.spot2 instanceof Wn&&(n.spot2=t.spot2)):e==="EnumValue"&&(i=t.classType,i.indexOf("go.")===0&&(i=i.substr(3)),i=xv(i),typeof i=="function"&&(n=mr(i,t.name)));return n}D.Pe=function(t){return this.Lt.add(t),this},D.ik=function(t){this.Lt.remove(t)},D.ds=function(t){this.skipsUndoManager||this.undoManager.Tu(t);for(var e=this.Lt,n=e.length,i=0;i<n;i++)e.M(i)(t)},D.cb=function(t,e,n,i,r,o,s){Xs(this,"",t,e,n,i,r,o,s)},D.g=function(t,e,n,i,r){Xs(this,"",Ro,t,this,e,n,i,r)},D.Fs=function(t,e,n,i,r,o){Xs(this,"",Ro,e,t,n,i,r,o)};function Xs(t,e,n,i,r,o,s,l,u){l===void 0&&(l=null),u===void 0&&(u=null);var d=new _o;d.model=t,d.change=n,d.modelChange=e,d.propertyName=i,d.object=r,d.oldValue=o,d.oldParam=l,d.newValue=s,d.newParam=u,t.ds(d)}Yn.prototype.changeState=function(t,e){if(t!==null&&t.model===this)if(t.change===Ro){var n=t.object,i=t.propertyName,r=t.I(e);i===this.nodeKeyProperty&&this.lb(n)&&(e=t.I(!e),e!==void 0&&this.kb.remove(e),r!==void 0&&this.kb.add(r,n)),qo(n,i,r)}else t.change===hs?(n=t.newParam,t.modelChange==="nodeDataArray"?(t=t.newValue,Me(t)&&typeof n=="number"&&(i=this.wa(t),e?(this.Tc[n]===t&&He(this.Tc,n),i!==void 0&&this.kb.remove(i)):(this.Tc[n]!==t&&$e(this.Tc,n,t),i!==void 0&&this.kb.add(i,t)))):t.modelChange===""?((i=t.object)&&!In(i)&&t.propertyName&&(i=Ds(t.object,t.propertyName)),In(i)&&typeof n=="number"&&(t=t.newValue,e?He(i,n):$e(i,n,t))):ne("unknown ChangedEvent.Insert modelChange: "+t.toString())):t.change===Ts?(n=t.oldParam,t.modelChange==="nodeDataArray"?(t=t.oldValue,Me(t)&&typeof n=="number"&&(i=this.wa(t),e?(this.Tc[n]!==t&&$e(this.Tc,n,t),i!==void 0&&this.kb.add(i,t)):(this.Tc[n]===t&&He(this.Tc,n),i!==void 0&&this.kb.remove(i)))):t.modelChange===""?((i=t.object)&&!In(i)&&t.propertyName&&(i=Ds(t.object,t.propertyName)),In(i)&&typeof n=="number"&&(t=t.oldValue,e?$e(i,n,t):He(i,n))):ne("unknown ChangedEvent.Remove modelChange: "+t.toString())):t.change!==Oa&&ne("unknown ChangedEvent: "+t.toString())},Yn.prototype.Ea=function(t){return this.undoManager.Ea(t)},Yn.prototype.eb=function(t){return this.undoManager.eb(t)},Yn.prototype.Kf=function(){return this.undoManager.Kf()},Yn.prototype.commit=function(t,e){e===void 0&&(e="");var n=this.skipsUndoManager;e===null&&(this.skipsUndoManager=!0,e=""),this.undoManager.Ea(e);var i=!1;try{t(this),i=!0}finally{i?this.undoManager.eb(e):this.undoManager.Kf(),this.skipsUndoManager=n}},D=Yn.prototype,D.La=function(t,e){e===void 0&&(e=""),Xs(this,"SourceChanged",Oa,e,t,null,null)},D.wa=function(t){if(t!==null){var e=this.Th;if(e!==""&&(e=Ds(t,e),e!==void 0)){if(td(e))return e;ne("Key value for node data "+t+" is not a number or a string: "+e)}}},D.km=function(t,e){if(t!==null){var n=this.Th;if(n!=="")if(this.lb(t)){var i=Ds(t,n);i!==e&&this.hc(e)===null&&(qo(t,n,e),i!==void 0&&this.kb.remove(i),this.kb.add(e,t),Xs(this,"nodeKey",Ro,n,t,i,e),typeof n=="string"&&this.La(t,n),this.jp(i,e))}else qo(t,n,e)}};function td(t){return typeof t=="number"||typeof t=="string"}D.lb=function(t){var e=this.wa(t);return e===void 0?!1:this.kb.I(e)===t},D.hc=function(t){return t===null&&ne("Model.findNodeDataForKey:key must not be null"),t!==void 0&&td(t)?this.kb.I(t):null},D.$u=function(t){if(t!==null){var e=this.Th;if(e!==""){var n=this.wa(t);if(n===void 0||this.kb.contains(n)){var i=this.bl;if(i!==null&&(n=i(this,t),n!=null&&!this.kb.contains(n))){qo(t,e,n);return}if(typeof n=="string"){for(i=2;this.kb.contains(n+i);)i++;qo(t,e,n+i)}else if(n===void 0||typeof n=="number"){for(n=-this.kb.count-1;this.kb.contains(n);)n--;qo(t,e,n)}}}}},D.xf=function(t){t!==null&&(Co(t),this.lb(t)||O1(this,t,!0))};function O1(t,e,n){var i=t.wa(e);(i===void 0||t.kb.I(i)!==e)&&(t.$u(e),i=t.wa(e),i===void 0&&ne("Model.makeNodeDataKeyUnique failed on "+e+". Data not added to Model."),t.kb.add(i,e),i=null,n&&(i=t.Tc.length,$e(t.Tc,i,e)),Xs(t,"nodeDataArray",hs,"nodeDataArray",t,null,e,null,i),t.fm(e),t.em(e))}D.Fy=function(t){if(In(t))for(var e=t.length,n=0;n<e;n++)this.xf(t[n]);else for(t=t.iterator;t.next();)this.xf(t.value)},D.cm=function(t){t!==null&&L1(this,t,!0)};function L1(t,e,n){var i=t.wa(e);if(i!==void 0&&t.kb.remove(i),i=null,n){t:if(n=t.Tc,Array.isArray(n))i=n.indexOf(e);else{i=n.length;for(var r=0;r<i;r++)if(n[r]===e){i=r;break t}i=-1}if(0>i)return;He(t.Tc,i)}Xs(t,"nodeDataArray",Ts,"nodeDataArray",t,e,null,i,null),t.qp(e)}D.nA=function(t){if(In(t))for(var e=t.length,n=0;n<e;n++)this.cm(t[n]);else for(t=t.iterator;t.next();)this.cm(t.value)},D.$z=function(t){if(t!==this.nodeDataArray&&In(t)){var e=this.kl;e.clear(),e.addAll(this.kb.iteratorKeys);var n=this.il;n.clear();for(var i=t.length,r=0;r<i;r++){var o=t[r],s=this.wa(o);if(s!==void 0){n.add(s);var l=this.hc(s);l!==o&&(l!==null?(this.Do(l,o),this.lm(o,l)):(o=this.cloneDeep(o),this.km(o,s),this.xf(o)))}else s=this.cloneDeep(o),this.xf(s),n.add(this.wa(s))}for(t=e.iterator;t.next();)i=t.value,n.contains(i)||(i=this.hc(i))&&this.cm(i);e.clear(),n.clear()}},D.jp=function(t,e){e!==void 0&&(t=_f(this,t),t instanceof je&&this.Vf.add(e,t))},D.Lv=function(){},D.fm=function(){},D.em=function(){},D.qp=function(){};function pc(t,e,n){if(e!==void 0){var i=t.Vf.I(e);i===null&&(i=new je,t.Vf.add(e,i)),i.add(n)}}function fc(t,e,n){if(e!==void 0){var i=t.Vf.I(e);i instanceof je&&(n==null?t.Vf.remove(e):(i.remove(n),i.count===0&&t.Vf.remove(e)))}}function _f(t,e){return e===void 0?null:(t=t.Vf.I(e),t instanceof je?t:null)}D.Qy=function(t){t===void 0?this.Vf.clear():this.Vf.remove(t)},Yn.prototype.copyNodeData=function(t){if(t===null)return null;var e=this.Bk;return t=e!==null?e(t,this):Sm(this,t,!0),Me(t)&&nr(t),t};function Sm(t,e,n){if(t.copiesArrays&&Array.isArray(e)){var i=[];for(n=0;n<e.length;n++){var r=Sm(t,e[n],t.copiesArrayObjects);i.push(r)}return nr(i),i}if(n&&Me(e)){n=(n=e.constructor)?new n:{},r=t.copiesKey||typeof t.nodeKeyProperty!="string"?null:t.nodeKeyProperty;for(i in e)if(i==="__gohashid")n.__gohashid=void 0;else if(i===r)n[r]=void 0;else{var o=Ds(e,i),s=Hf(t,o);s==="GraphObject"||s==="Diagram"||s==="Layer"||s==="RowColumnDefinition"||s==="AnimationManager"||s==="Tool"||s==="CommandHandler"||s==="Layout"||s==="InputEvent"||s==="DiagramEvent"||o instanceof Yn||o instanceof Ho||o instanceof Rs||o instanceof _o||(o=Sm(t,o,!1)),qo(n,i,o)}return nr(n),n}return e instanceof $||e instanceof ni||e instanceof ke||e instanceof Wn||e instanceof ri?e.copy():e}Yn.prototype.setDataProperty=function(t,e,n){if(this.lb(t)){if(e===this.nodeKeyProperty){this.km(t,n);return}if(e===this.nodeCategoryProperty){this.jm(t,n);return}}else!R1&&t instanceof Wt&&(R1=!0,hi('Model.setDataProperty is modifying a GraphObject, "'+t.toString()+'"'),hi(" Is that really your intent?"));var i=Ds(t,e);i!==n&&(qo(t,e,n),this.Fs(t,e,i,n))},D=Yn.prototype,D.set=function(t,e,n){this.setDataProperty(t,e,n)},D.Do=function(t,e){if(e){var n=this.lb(t),i;for(i in e)i==="__gohashid"||n&&i===this.nodeKeyProperty||this.setDataProperty(t,i,e[i])}},D.Ay=function(t,e){this.ts(t,-1,e)},D.ts=function(t,e,n){0>e&&(e=t.length),$e(t,e,n),Xs(this,"",hs,"",t,null,n,null,e)},D.ov=function(t,e){e===void 0&&(e=-1),t===this.Tc&&ne("Model.removeArrayItem should not be called on the Model.nodeDataArray"),e===-1&&(e=t.length-1);var n=t[e];He(t,e),Xs(this,"",Ts,"",t,n,null,e,null)},D.Ro=function(t){if(t===null)return"";var e=this.lj;if(e===""||(e=Ds(t,e),e===void 0))return"";if(typeof e=="string")return e;ne("getCategoryForNodeData found a non-string category for "+t+": "+e)},D.jm=function(t,e){if(t!==null){var n=this.lj;if(n!=="")if(this.lb(t)){var i=Ds(t,n);i===void 0&&(i=""),i!==e&&(qo(t,n,e),Xs(this,"nodeCategory",Ro,n,t,i,e))}else qo(t,n,e)}},D.lm=function(t,e){this.jm(e,this.Ro(t))},D.Tl=function(){return!1},D.Wj=function(){return!1},D.ri=function(){return!1},D.xs=function(){return!1},D.Xj=function(){return!1};function yv(){return new Yn}function Hf(t,e){if(typeof e=="function"){if(e.className)return e.className;if(e.name)return e.name}else if(typeof e=="object"&&e!==null&&e.constructor)return Hf(t,e.constructor);return typeof e}function xv(t){return tc[t]?tc[t]:Ft.go!==void 0&&Ft.go[t]?Ft.go[t]:null}function Ds(t,e){if(!t||!e)return null;try{if(typeof e=="function")var n=e(t);else typeof t.getAttribute=="function"?(n=t.getAttribute(e),n===null&&(n=void 0)):n=t[e]}catch(i){}return n}function qo(t,e,n){if(t&&e)try{typeof e=="function"?e(t,n):typeof t.setAttribute=="function"?t.setAttribute(e,n):t[e]=n}catch(i){}}te.Object.defineProperties(Yn.prototype,{name:{get:function(){return this.xa},set:function(t){var e=this.xa;e!==t&&(this.xa=t,this.g("name",e,t))}},dataFormat:{get:function(){return this.Sm},set:function(t){var e=this.Sm;e!==t&&(this.Sm=t,this.g("dataFormat",e,t))}},isReadOnly:{get:function(){return this.Gg},set:function(t){var e=this.Gg;e!==t&&(this.Gg=t,this.g("isReadOnly",e,t))}},modelData:{get:function(){return this.j},set:function(t){var e=this.j;e!==t&&(this.j=t,this.g("modelData",e,t),this.La(t))}},undoManager:{get:function(){return this.o},set:function(t){var e=this.o;e!==t&&(e!==null&&e.Rx(this),this.o=t,t!==null&&t.Xw(this))}},skipsUndoManager:{get:function(){return this.Wg},set:function(t){this.Wg=t}},nodeKeyProperty:{get:function(){return this.Th},set:function(t){var e=this.Th;e!==t&&(t===""&&ne("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&ne("Cannot set Model.nodeKeyProperty when there is existing node data"),this.Th=t,this.g("nodeKeyProperty",e,t))}},makeUniqueKeyFunction:{get:function(){return this.bl},set:function(t){var e=this.bl;e!==t&&(this.bl=t,this.g("makeUniqueKeyFunction",e,t))}},nodeDataArray:{get:function(){return this.Tc},set:function(t){var e=this.Tc;if(e!==t){this.kb.clear(),this.Lv();for(var n=t.length,i=0;i<n;i++){var r=t[i];Me(r)||ne("Model.nodeDataArray must only contain Objects, not: "+r),Co(r)}for(this.Tc=t,i=new Re,r=0;r<n;r++){var o=t[r],s=this.wa(o);s===void 0||this.kb.I(s)!==null?i.add(o):this.kb.add(s,o)}for(i=i.iterator;i.next();)r=i.value,this.$u(r),o=this.wa(r),o!==void 0&&this.kb.add(o,r);for(Xs(this,"nodeDataArray",Ro,"nodeDataArray",this,e,t),e=0;e<n;e++)i=t[e],this.fm(i),this.em(i);Array.isArray(t)||(this.isReadOnly=!0)}}},copyNodeDataFunction:{get:function(){return this.Bk},set:function(t){var e=this.Bk;e!==t&&(this.Bk=t,this.g("copyNodeDataFunction",e,t))}},copiesArrays:{get:function(){return this.Km},set:function(t){var e=this.Km;e!==t&&(this.Km=t,this.g("copiesArrays",e,t))}},copiesArrayObjects:{get:function(){return this.Jm},set:function(t){var e=this.Jm;e!==t&&(this.Jm=t,this.g("copiesArrayObjects",e,t))}},copiesKey:{get:function(){return this.Mm},set:function(t){var e=this.Mm;e!==t&&(this.Mm=t,this.g("copiesKey",e,t))}},afterCopyFunction:{get:function(){return this.xm},set:function(t){var e=this.xm;e!==t&&(this.xm=t,this.g("afterCopyFunction",e,t))}},nodeCategoryProperty:{get:function(){return this.lj},set:function(t){var e=this.lj;e!==t&&(this.lj=t,this.g("nodeCategoryProperty",e,t))}},type:{get:function(){return"Model"}}}),Yn.prototype.setCategoryForNodeData=Yn.prototype.jm,Yn.prototype.getCategoryForNodeData=Yn.prototype.Ro,Yn.prototype.removeArrayItem=Yn.prototype.ov,Yn.prototype.insertArrayItem=Yn.prototype.ts,Yn.prototype.addArrayItem=Yn.prototype.Ay,Yn.prototype.assignAllDataProperties=Yn.prototype.Do,Yn.prototype.set=Yn.prototype.set,Yn.prototype.clearUnresolvedReferences=Yn.prototype.Qy,Yn.prototype.mergeNodeDataArray=Yn.prototype.$z,Yn.prototype.removeNodeDataCollection=Yn.prototype.nA,Yn.prototype.removeNodeData=Yn.prototype.cm,Yn.prototype.addNodeDataCollection=Yn.prototype.Fy,Yn.prototype.addNodeData=Yn.prototype.xf,Yn.prototype.makeNodeDataKeyUnique=Yn.prototype.$u,Yn.prototype.findNodeDataForKey=Yn.prototype.hc,Yn.prototype.containsNodeData=Yn.prototype.lb,Yn.prototype.setKeyForNodeData=Yn.prototype.km,Yn.prototype.getKeyForNodeData=Yn.prototype.wa,Yn.prototype.updateTargetBindings=Yn.prototype.La,Yn.prototype.commit=Yn.prototype.commit,Yn.prototype.rollbackTransaction=Yn.prototype.Kf,Yn.prototype.commitTransaction=Yn.prototype.eb,Yn.prototype.startTransaction=Yn.prototype.Ea,Yn.prototype.raiseDataChanged=Yn.prototype.Fs,Yn.prototype.raiseChanged=Yn.prototype.g,Yn.prototype.raiseChangedEvent=Yn.prototype.cb,Yn.prototype.removeChangedListener=Yn.prototype.ik,Yn.prototype.addChangedListener=Yn.prototype.Pe,Yn.prototype.writeJsonValue=Yn.prototype.sm,Yn.prototype.replaceJsonObjects=Yn.prototype.dm,Yn.prototype.applyIncrementalJSON=Yn.prototype.Ky,Yn.prototype.applyIncrementalJson=Yn.prototype.Zw,Yn.prototype.toJSON=Yn.prototype.toJSON,Yn.prototype.toJson=Yn.prototype.np,Yn.prototype.toIncrementalJSON=Yn.prototype.yA,Yn.prototype.toIncrementalJson=Yn.prototype.$x,Yn.prototype.toIncrementalData=Yn.prototype.xA,Yn.prototype.clear=Yn.prototype.clear;var R1=!1,tc={};Yn.className="Model",Yn.fromJSON=Yn.fromJson=function(t,e){e===void 0&&(e=null);var n=null;if(typeof t=="string")try{n=Ft.JSON.parse(t)}catch(o){}else typeof t=="object"?n=t:ne("Unable to construct a Model from: "+t);if(e===null){t=null;var i=n.class;if(typeof i=="string")try{var r=null;i.indexOf("go.")===0?(i=i.substr(3),r=xv(i)):(r=xv(i),r===null&&(r=Ft[i])),typeof r=="function"&&(t=new r)}catch(o){}t===null||t instanceof Yn?e=t:ne("Unable to construct a Model of declared class: "+n.class)}return e===null&&(e=Yn.constructGraphLinksModel()),e.gp(n),e.kv(n),e},Yn.safePropertyValue=Ds,Yn.safePropertySet=qo,tc.Brush=ro,tc.ChangedEvent=_o,tc.Geometry=mn,tc.Margin=ri,tc.Panel=sn,tc.Point=$,tc.Rect=ke,tc.Size=ni,tc.Spot=Wn,tc.Transaction=Rs,tc.UndoManager=Ho;function zs(t,e,n,i){nr(this),this._isFrozen=!1,t===void 0&&(t=""),e===void 0&&(e=t),n===void 0&&(n=null),this.j=-1,this.xd=null,this.xl=t,this.wl=this.to=0,this.Cr=null,this.wn=!1,this.sl=e,this.Im=n,i===void 0?(this.el=P1,this.wk=null):(this.el=Gf,this.wk=i),this.st=new je}zs.prototype.copy=function(){var t=new zs;return t.xl=this.xl,t.to=this.to,t.wl=this.wl,t.Cr=this.Cr,t.wn=this.wn,t.sl=this.sl,t.Im=this.Im,t.el=this.el,t.wk=this.wk,t},D=zs.prototype,D.qb=function(t){t.classType===zs&&(this.mode=t)},D.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},D.freeze=function(){return this._isFrozen=!0,this},D.ka=function(){return this._isFrozen=!1,this},D.Kx=function(t){return t===void 0&&(t=null),this.mode=Gf,this.backConverter=t,this},D.cp=function(t){return t===void 0&&(t=""),this.sourceName=t,this.isToModel=!1,this},D.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function D1(t,e,n){return t=t.sourceName,t===null||t===""?e:t==="/"?n.part:t==="."?n:t===".."?n.panel:e.fb(t)}D.Mv=function(t,e,n){var i=this.sl;if(n===void 0||i===""||i===n){n=this.xl;var r=this.Im;if(r===null&&n==="")hi("Binding error: target property is the empty string: "+this.toString());else{var o=e;if(i!==""&&(o=Ds(e,i)),o!==void 0)if(r===null)n!==""&&qo(t,n,o);else try{if(n!==""){var s=r(o,t);qo(t,n,s)}else r(o,t)}catch(l){}}}},D.sp=function(t,e,n,i){if(this.el===Gf){var r=this.xl;if(n===void 0||r===n){n=this.sl;var o=this.wk,s=t;if(r!==""&&(s=Ds(t,r)),s!==void 0&&!this.st.contains(t))try{this.st.add(t);var l=i!==null?i.diagram:null,u=l!==null?l.model:null;if(o===null){if(n!=="")u!==null?u.setDataProperty(e,n,s):qo(e,n,s);else if(u!==null&&i!==null&&0<=i.itemIndex&&i.panel!==null&&Array.isArray(i.panel.itemArray)){var d=i.itemIndex,p=i.panel.itemArray;u.ov(p,d),u.ts(p,d,s)}}else try{if(n!==""){var v=o(s,e,u);u!==null?u.setDataProperty(e,n,v):qo(e,n,v)}else{var E=o(s,e,u);if(E!==void 0&&u!==null&&i!==null&&0<=i.itemIndex&&i.panel!==null&&Array.isArray(i.panel.itemArray)){var M=i.itemIndex,R=i.panel.itemArray;u.ov(R,M),u.ts(R,M,E)}}}catch(j){}}finally{this.st.remove(t)}}}},te.Object.defineProperties(zs.prototype,{Ai:{get:function(){return this.j},set:function(t){this._isFrozen&&dn(this),this.j=t}},targetProperty:{get:function(){return this.xl},set:function(t){this._isFrozen&&dn(this),this.xl=t}},sourceName:{get:function(){return this.Cr},set:function(t){this._isFrozen&&dn(this),this.Cr=t,t!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(t){this._isFrozen&&dn(this),this.wn=t}},sourceProperty:{get:function(){return this.sl},set:function(t){this._isFrozen&&dn(this),this.sl=t}},converter:{get:function(){return this.Im},set:function(t){this._isFrozen&&dn(this),this.Im=t}},backConverter:{get:function(){return this.wk},set:function(t){this._isFrozen&&dn(this),this.wk=t}},mode:{get:function(){return this.el},set:function(t){this._isFrozen&&dn(this),this.el=t}}}),zs.prototype.updateSource=zs.prototype.sp,zs.prototype.updateTarget=zs.prototype.Mv,zs.prototype.ofModel=zs.prototype.dA,zs.prototype.ofObject=zs.prototype.cp,zs.prototype.makeTwoWay=zs.prototype.Kx;var Wx="Binding",P1=new le(zs,"OneWay",1),Gf=new le(zs,"TwoWay",2);zs.className="Binding",zs.parseEnum=function(t,e){return function(n){return n=mr(t,n),n===null?e:n}},zs.toString=yn,zs.OneWay=P1,zs.TwoWay=Gf;function Mr(t,e,n){Yn.call(this),this.Vv=`,
|
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
|
"removedLinkKeys": `,this.md=[],this.$f=new je,this.wb=new pt,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,e!==void 0&&(this.linkDataArray=e),t!==void 0&&(In(t)?this.nodeDataArray=t:n=t),n&&(Object.assign(this,n),t=n.Changed)&&(delete this.Changed,this.Pe(t))}Jn(Mr,Yn),Mr.constructGraphLinksModel=Yn.constructGraphLinksModel,Mr.prototype.cloneProtected=function(t){Yn.prototype.cloneProtected.call(this,t),t.Jh=this.Jh,t.cl=this.cl,t.Ak=this.Ak,t.lf=this.lf,t.mf=this.mf,t.ej=this.ej,t.fj=this.fj,t.dj=this.dj,t.je=this.je,t.jl=this.jl,t.Je=this.Je,t.Lm=this.Lm},D=Mr.prototype,D.clear=function(){Yn.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},D.toString=function(t){if(t===void 0&&(t=0),2<=t)return this.np();var e=(this.name!==""?this.name:"")+" GraphLinksModel";if(0<t){e+=`
|
|
|
node data:`,t=this.nodeDataArray;var n=t.length,i;for(i=0;i<n;i++){var r=t[i];e+=" "+this.wa(r)+":"+yn(r)}for(e+=`
|
|
|
link data:`,t=this.linkDataArray,n=t.length,i=0;i<n;i++)r=t[i],e+=" "+xu(this,r,!0)+"-->"+xu(this,r,!1)}return e},D.Qv=function(t,e){this.linkKeyProperty===""&&ne("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var n=Yn.prototype.Qv.call(this,t,e),i=this,r=new je,o=new je,s=new je,l=this.vh;t.changes.each(function(p){p.model===i&&(p.modelChange==="linkDataArray"?p.change===hs?r.add(p.newValue):p.change===Ts&&s.add(p.oldValue):i.Jc(p.object)?o.add(p.object):p.object!==null&&(p.object!==null&&l&&l.contains(p.object)?l.get(p.object).each(function(v){i.Jc(v)&&o.add(v)}):p.object instanceof Yn||i.lb(p.object)||F1(i,p.object).each(function(v){o.add(v)})))});var u=this.il;u.clear(),r.each(function(p){u.add(i.Ac(p)),e||o.add(p)});var d=this.kl;return d.clear(),s.each(function(p){d.add(i.Ac(p)),e&&o.add(p)}),t=i.cloneDeep(o.Fa()),0<u.count&&(n===null&&(n={}),e?n.removedLinkKeys=u.Fa():n.insertedLinkKeys=u.Fa()),0<t.length&&(n===null&&(n={}),n.modifiedLinkData=t),0<d.count&&(n===null&&(n={}),e?n.insertedLinkKeys=d.Fa():n.removedLinkKeys=d.Fa()),d.clear(),u.clear(),n},D.rm=function(){var t=Yn.prototype.rm.call(this),e="";return this.linkCategoryProperty!=="category"&&typeof this.linkCategoryProperty=="string"&&(e+=`,
|
|
|
"linkCategoryProperty": `+this.quote(this.linkCategoryProperty)),this.linkKeyProperty!==""&&typeof this.linkKeyProperty=="string"&&(e+=`,
|
|
|
"linkKeyProperty": `+this.quote(this.linkKeyProperty)),this.linkFromKeyProperty!=="from"&&typeof this.linkFromKeyProperty=="string"&&(e+=`,
|
|
|
"linkFromKeyProperty": `+this.quote(this.linkFromKeyProperty)),this.linkToKeyProperty!=="to"&&typeof this.linkToKeyProperty=="string"&&(e+=`,
|
|
|
"linkToKeyProperty": `+this.quote(this.linkToKeyProperty)),this.linkFromPortIdProperty!==""&&typeof this.linkFromPortIdProperty=="string"&&(e+=`,
|
|
|
"linkFromPortIdProperty": `+this.quote(this.linkFromPortIdProperty)),this.linkToPortIdProperty!==""&&typeof this.linkToPortIdProperty=="string"&&(e+=`,
|
|
|
"linkToPortIdProperty": `+this.quote(this.linkToPortIdProperty)),this.linkLabelKeysProperty!==""&&typeof this.linkLabelKeysProperty=="string"&&(e+=`,
|
|
|
"linkLabelKeysProperty": `+this.quote(this.linkLabelKeysProperty)),this.nodeIsGroupProperty!=="isGroup"&&typeof this.nodeIsGroupProperty=="string"&&(e+=`,
|
|
|
"nodeIsGroupProperty": `+this.quote(this.nodeIsGroupProperty)),this.nodeGroupKeyProperty!=="group"&&typeof this.nodeGroupKeyProperty=="string"&&(e+=`,
|
|
|
"nodeGroupKeyProperty": `+this.quote(this.nodeGroupKeyProperty)),t+e},D.gp=function(t){Yn.prototype.gp.call(this,t),t.linkKeyProperty&&(this.linkKeyProperty=t.linkKeyProperty),t.linkFromKeyProperty&&(this.linkFromKeyProperty=t.linkFromKeyProperty),t.linkToKeyProperty&&(this.linkToKeyProperty=t.linkToKeyProperty),t.linkFromPortIdProperty&&(this.linkFromPortIdProperty=t.linkFromPortIdProperty),t.linkToPortIdProperty&&(this.linkToPortIdProperty=t.linkToPortIdProperty),t.linkCategoryProperty&&(this.linkCategoryProperty=t.linkCategoryProperty),t.linkLabelKeysProperty&&(this.linkLabelKeysProperty=t.linkLabelKeysProperty),t.nodeIsGroupProperty&&(this.nodeIsGroupProperty=t.nodeIsGroupProperty),t.nodeGroupKeyProperty&&(this.nodeGroupKeyProperty=t.nodeGroupKeyProperty)},D.Rv=function(){var t=Yn.prototype.Rv.call(this),e=`,
|
|
|
"linkDataArray": `+qh(this,this.linkDataArray,!0);return t+e},D.kv=function(t){Yn.prototype.kv.call(this,t),t=t.linkDataArray,Array.isArray(t)&&(this.dm(t),this.linkDataArray=t)};function F1(t,e){for(var n=new je,i=0;i<t.linkDataArray.length;i++){var r=t.linkDataArray[i];bm(t,e,r,r,n)}return n}D.Pv=function(t,e){this.linkKeyProperty===""&&ne("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var n=Yn.prototype.Pv.call(this,t,e),i=this,r=new je,o=new je,s=new je,l=this.vh;t.changes.each(function(p){p.model===i&&(p.modelChange==="linkDataArray"?p.change===hs?r.add(p.newValue):p.change===Ts&&s.add(p.oldValue):i.Jc(p.object)?o.add(p.object):p.object!==null&&(p.object!==null&&l&&l.contains(p.object)?l.get(p.object).each(function(v){i.Jc(v)&&o.add(v)}):p.object instanceof Yn||i.lb(p.object)||F1(i,p.object).each(function(v){o.add(v)})))});var u=this.il;u.clear(),r.each(function(p){u.add(i.Ac(p)),e||o.add(p)});var d=this.kl;return d.clear(),s.each(function(p){d.add(i.Ac(p)),e&&o.add(p)}),t=n,0<u.count&&(t+=(e?this.Xv:this.Vv)+qh(this,u.Fa(),!0)),0<o.count&&(t+=this.iy+qh(this,o.Fa(),!0)),0<d.count&&(t+=(e?this.Vv:this.Xv)+qh(this,d.Fa(),!0)),d.clear(),u.clear(),t},D.fp=function(t){(t.linkCategoryProperty!==void 0&&t.linkCategoryProperty!==this.linkCategoryProperty||t.linkKeyProperty!==void 0&&t.linkKeyProperty!==this.linkKeyProperty||t.linkFromKeyProperty!==void 0&&t.linkFromKeyProperty!==this.linkFromKeyProperty||t.linkToKeyProperty!==void 0&&t.linkToKeyProperty!==this.linkToKeyProperty||t.linkFromPortIdProperty!==void 0&&t.linkFromPortIdProperty!==this.linkFromPortIdProperty||t.linkToPortIdProperty!==void 0&&t.linkToPortIdProperty!==this.linkToPortIdProperty||t.linkLabelKeysProperty!==void 0&&t.linkLabelKeysProperty!==this.linkLabelKeysProperty||t.nodeIsGroupProperty!==void 0&&t.nodeIsGroupProperty!==this.nodeIsGroupProperty||t.nodeGroupKeyProperty!==void 0&&t.nodeGroupKeyProperty!==this.nodeGroupKeyProperty)&&ne("applyIncrementalJson cannot change Model properties"),Yn.prototype.fp.call(this,t);var e=t.insertedLinkKeys;if(Array.isArray(e))for(var n=e.length,i=0;i<n;i++){var r=e[i],o=this.jh(r);o===null&&(o=this.Jo({}),this.Ks(o,r),this.fi(o))}if(e=t.modifiedLinkData,Array.isArray(e)){for(n=e.length,i=0;i<n;i++)if(r=e[i],o=this.Ac(r),o=this.jh(o),o!==null){for(var s in r)s!=="__gohashid"&&s!==this.linkKeyProperty&&this.setDataProperty(o,s,r[s]);$1(this,r,o)}}if(t=t.removedLinkKeys,Array.isArray(t))for(s=t.length,e=0;e<s;e++)n=this.jh(t[e]),n!==null&&this.bm(n)},Mr.prototype.changeState=function(t,e){if(t!==null&&t.model===this){if(t.change===Ro){var n=t.object,i=t.propertyName;if(i===this.linkKeyProperty&&this.Jc(n)){var r=t.I(e);e=t.I(!e),e!==void 0&&this.wb.remove(e),r!==void 0&&this.wb.add(r,n),qo(n,i,r);return}}else if(t.change===hs){if(n=t.newParam,t.modelChange==="linkDataArray"){t=t.newValue,Me(t)&&typeof n=="number"&&(i=this.Ac(t),e?(this.$f.remove(t),this.md[n]===t&&this.md.splice(n,1),i!==void 0&&this.wb.remove(i)):(this.$f.add(t),this.md[n]!==t&&this.md.splice(n,0,t),i!==void 0&&this.wb.add(i,t)));return}if(t.modelChange==="linkLabelKeys"){i=this.Ef(t.object),Array.isArray(i)&&typeof n=="number"&&(e?(n=i.indexOf(t.newValue),0<=n&&i.splice(n,1)):0>i.indexOf(t.newValue)&&i.splice(n,0,t.newValue));return}}else if(t.change===Ts){if(n=t.oldParam,t.modelChange==="linkDataArray"){t=t.oldValue,Me(t)&&typeof n=="number"&&(i=this.Ac(t),e?(this.$f.add(t),this.md[n]!==t&&this.md.splice(n,0,t),i!==void 0&&this.wb.add(i,t)):(this.$f.remove(t),this.md[n]===t&&this.md.splice(n,1),i!==void 0&&this.wb.remove(i)));return}if(t.modelChange==="linkLabelKeys"){i=this.Ef(t.object),Array.isArray(i)&&typeof n=="number"&&(e?0>i.indexOf(t.newValue)&&i.splice(n,0,t.newValue):(n=i.indexOf(t.newValue),0<=n&&i.splice(n,1)));return}}Yn.prototype.changeState.call(this,t,e)}},D=Mr.prototype,D.Vl=function(t){if(t!==void 0){var e=this.Ri;if(e!==null){var n=this.hc(t);n===null&&(n=this.copyNodeData(e),qo(n,this.nodeKeyProperty,t),this.xf(n))}return t}},D.yx=function(t){return xu(this,t,!0)},D.wv=function(t,e){Hp(this,t,e,!0)},D.Bx=function(t){return xu(this,t,!1)},D.Bv=function(t,e){Hp(this,t,e,!1)};function xu(t,e,n){if(e!==null&&(t=n?t.lf:t.mf,t!==""&&(t=Ds(e,t),t!==void 0))){if(td(t))return t;ne((n?"FromKey":"ToKey")+" value for link data "+e+" is not a number or a string: "+t)}}function Hp(t,e,n,i){if(n===null&&(n=void 0),e!==null){var r=i?t.lf:t.mf;if(r!=="")if(n=t.Vl(n),t.Jc(e)){var o=Ds(e,r);o!==n&&(fc(t,o,e),qo(e,r,n),t.hc(n)===null&&pc(t,n,e),Xs(t,i?"linkFromKey":"linkToKey",Ro,r,e,o,n),typeof r=="string"&&t.La(e,r))}else qo(e,r,n)}}D.zx=function(t){return wm(this,t,!0)},D.xv=function(t,e){Gp(this,t,e,!0)},D.Cx=function(t){return wm(this,t,!1)},D.Cv=function(t,e){Gp(this,t,e,!1)};function wm(t,e,n){return e===null||(t=n?t.ej:t.fj,t==="")?"":(e=Ds(e,t),e===void 0?"":e)}function Gp(t,e,n,i){if(e!==null){var r=i?t.ej:t.fj;if(r!=="")if(t.Jc(e)){var o=Ds(e,r);o===void 0&&(o=""),o!==n&&(qo(e,r,n),Xs(t,i?"linkFromPortId":"linkToPortId",Ro,r,e,o,n),typeof r=="string"&&t.La(e,r))}else qo(e,r,n)}}D.Ef=function(t){if(t===null)return Cm;var e=this.je;return e===""?Cm:(t=Ds(t,e),t===void 0?Cm:t)},D.Ls=function(t,e){if(t!==null){var n=this.je;if(n!=="")if(this.Jc(t)){var i=Ds(t,n);if(i===void 0&&(i=Cm),i!==e){if(Array.isArray(i))for(var r=i.length,o=0;o<r;o++)fc(this,i[o],t);for(qo(t,n,e),r=e.length,o=0;o<r;o++){var s=e[o];this.hc(s)===null&&pc(this,s,t)}Xs(this,"linkLabelKeys",Ro,n,t,i,e),typeof n=="string"&&this.La(t,n)}}else qo(t,n,e)}},D.Bu=function(t,e){if(e!=null&&t!==null){var n=this.je;if(n!==""){var i=Ds(t,n);if(i===void 0)n=[],n.push(e),this.Ls(t,n);else if(Array.isArray(i)){var r=i.indexOf(e);0<=r||(r=i.length,i.push(e),this.Jc(t)&&(this.hc(e)===null&&pc(this,e,t),Xs(this,"linkLabelKeys",hs,n,t,null,e,null,r)))}else ne(n+" property is not an Array; cannot addLabelKeyForLinkData: "+t)}}},D.Qx=function(t,e){if(e!=null&&t!==null){var n=this.je;if(n!==""){var i=Ds(t,n);if(Array.isArray(i)){var r=i.indexOf(e);0>r||(i.splice(r,1),this.Jc(t)&&(fc(this,e,t),Xs(this,"linkLabelKeys",Ts,n,t,e,null,r,null)))}else i!==void 0&&ne(n+" property is not an Array; cannot removeLabelKeyforLinkData: "+t)}}},D.Ac=function(t){if(t!==null){var e=this.Jh;if(e!==""&&(e=Ds(t,e),e!==void 0)){if(td(e))return e;ne("Key value for link data "+t+" is not a number or a string: "+e)}}},D.Ks=function(t,e){if(t!==null){var n=this.Jh;if(n!=="")if(this.Jc(t)){var i=Ds(t,n);i!==e&&this.jh(e)===null&&(qo(t,n,e),i!==void 0&&this.wb.remove(i),this.wb.add(e,t),Xs(this,"linkKey",Ro,n,t,i,e),typeof n=="string"&&this.La(t,n))}else qo(t,n,e)}},D.jh=function(t){return t===null&&ne("GraphLinksModel.findLinkDataForKey:key must not be null"),t!==void 0&&td(t)?this.wb.I(t):null},D.Bs=function(t){if(t!==null){var e=this.Jh;if(e!==""){var n=this.Ac(t);if(n===void 0||this.wb.contains(n)){var i=this.cl;if(i!==null&&(n=i(this,t),n!=null&&!this.wb.contains(n))){qo(t,e,n);return}if(typeof n=="string"){for(i=2;this.wb.contains(n+i);)i++;qo(t,e,n+i)}else if(n===void 0||typeof n=="number"){for(n=-this.wb.count-1;this.wb.contains(n);)n--;qo(t,e,n)}}}}},D.Jc=function(t){return t===null?!1:this.$f.contains(t)},D.fi=function(t){t!==null&&(Co(t),this.Jc(t)||B1(this,t,!0))};function B1(t,e,n){if(t.linkKeyProperty!==""){var i=t.Ac(e);if(i!==void 0&&t.wb.I(i)===e)return;t.Bs(e),i=t.Ac(e),i===void 0&&ne("GraphLinksModel.makeLinkDataKeyUnique failed on "+e+". Data not added to model."),t.wb.add(i,e)}t.$f.add(e),i=null,n&&(i=t.md.length,t.md.splice(i,0,e)),Xs(t,"linkDataArray",hs,"linkDataArray",t,null,e,null,i),bv(t,e)}D.Ey=function(t){if(Array.isArray(t))for(var e=t.length,n=0;n<e;n++)this.fi(t[n]);else for(t=t.iterator;t.next();)this.fi(t.value)},D.bm=function(t){t!==null&&z1(this,t,!0)};function z1(t,e,n){t.$f.remove(e);var i=t.Ac(e);if(i!==void 0&&t.wb.remove(i),i=null,n){if(i=t.md.indexOf(e),0>i)return;t.md.splice(i,1)}if(Xs(t,"linkDataArray",Ts,"linkDataArray",t,e,null,i,null),n=xu(t,e,!0),fc(t,n,e),n=xu(t,e,!1),fc(t,n,e),i=t.Ef(e),Array.isArray(i))for(var r=i.length,o=0;o<r;o++)n=i[o],fc(t,n,e)}D.lA=function(t){if(Array.isArray(t))for(var e=t.length,n=0;n<e;n++)this.bm(t[n]);else for(t=t.iterator;t.next();)this.bm(t.value)},D.Zz=function(t){if(this.linkKeyProperty===""&&ne("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),t!==this.linkDataArray&&In(t)){var e=this.kl;e.clear(),e.addAll(this.wb.iteratorKeys);var n=this.il;n.clear();for(var i=t.length,r=0;r<i;r++){var o=t[r],s=this.Ac(o);if(s!==void 0){n.add(s);var l=this.jh(s);l!==o&&(l!==null?(this.Do(l,o),$1(this,o,l)):(o=this.cloneDeep(o),this.Ks(o,s),this.fi(o)))}else s=this.cloneDeep(o),this.fi(s),n.add(this.Ac(s))}for(t=e.iterator;t.next();)i=t.value,n.contains(i)||(i=this.jh(i))&&this.bm(i);e.clear(),n.clear()}};function bv(t,e){var n=xu(t,e,!0);n=t.Vl(n),t.hc(n)===null&&pc(t,n,e),n=xu(t,e,!1),n=t.Vl(n),t.hc(n)===null&&pc(t,n,e);var i=t.Ef(e);if(Array.isArray(i))for(var r=i.length,o=0;o<r;o++)n=i[o],t.hc(n)===null&&pc(t,n,e)}D.Jo=function(t){if(t===null)return null;var e=this.Ak;return t=e!==null?e(t,this):Sm(this,t,!0),Me(t)&&(nr(t),this.lf!==""&&qo(t,this.lf,void 0),this.mf!==""&&qo(t,this.mf,void 0),this.je!==""&&qo(t,this.je,[])),t},D.Yu=function(t){if(t===null)return!1;var e=this.jl;return e===""?!1:!!Ds(t,e)},D.lh=function(t){if(t!==null){var e=this.Je;if(e!==""&&(e=Ds(t,e),e!==void 0)){if(td(e))return e;ne("GroupKey value for node data "+t+" is not a number or a string: "+e)}}},D.mp=function(t,e){if(e===null&&(e=void 0),t!==null){var n=this.Je;if(n!=="")if(this.lb(t)){var i=Ds(t,n);i!==e&&(fc(this,i,t),qo(t,n,e),this.hc(e)===null&&pc(this,e,t),Xs(this,"nodeGroupKey",Ro,n,t,i,e),typeof n=="string"&&this.La(t,n))}else qo(t,n,e)}},Mr.prototype.copyNodeData=function(t){return t===null?null:(t=Yn.prototype.copyNodeData.call(this,t),this.Ij||this.Je===""||Ds(t,this.Je)===void 0||qo(t,this.Je,void 0),t)},Mr.prototype.setDataProperty=function(t,e,n){if(this.lb(t)){if(e===this.nodeKeyProperty){this.km(t,n);return}if(e===this.nodeCategoryProperty){this.jm(t,n);return}if(e===this.nodeGroupKeyProperty){this.mp(t,n);return}}else if(this.Jc(t)){if(e===this.linkFromKeyProperty){Hp(this,t,n,!0);return}if(e===this.linkToKeyProperty){Hp(this,t,n,!1);return}if(e===this.linkFromPortIdProperty){Gp(this,t,n,!0);return}if(e===this.linkToPortIdProperty){Gp(this,t,n,!1);return}if(e===this.linkKeyProperty){this.Ks(t,n);return}if(e===this.linkCategoryProperty){this.lp(t,n);return}if(e===this.linkLabelKeysProperty){this.Ls(t,n);return}}var i=Ds(t,e);i!==n&&(qo(t,e,n),this.Fs(t,e,i,n))},D=Mr.prototype,D.Do=function(t,e){if(e){var n=this.lb(t),i=this.Jc(t),r;for(r in e)r==="__gohashid"||n&&r===this.nodeKeyProperty||n&&r===this.nodeIsGroupProperty&&Ds(t,r)===e[r]||i&&r===this.linkKeyProperty||this.setDataProperty(t,r,e[r])}},D.jp=function(t,e){Yn.prototype.jp.call(this,t,e);for(var n=this.kb.iterator;n.next();)this.qv(n.value,t,e);for(n=this.$f.iterator;n.next();){var i=n.value,r=t,o=e;if(xu(this,i,!0)===r){var s=this.lf;qo(i,s,o),Xs(this,"linkFromKey",Ro,s,i,r,o),typeof s=="string"&&this.La(i,s)}if(xu(this,i,!1)===r&&(s=this.mf,qo(i,s,o),Xs(this,"linkToKey",Ro,s,i,r,o),typeof s=="string"&&this.La(i,s)),s=this.Ef(i),Array.isArray(s))for(var l=s.length,u=this.je,d=0;d<l;d++)s[d]===r&&(s[d]=o,Xs(this,"linkLabelKeys",hs,u,i,r,o,d,d))}},D.qv=function(t,e,n){if(this.lh(t)===e){var i=this.Je;qo(t,i,n),Xs(this,"nodeGroupKey",Ro,i,t,e,n),typeof i=="string"&&this.La(t,i)}},D.Lv=function(){Yn.prototype.Lv.call(this);for(var t=this.linkDataArray,e=t.length,n=0;n<e;n++)bv(this,t[n])},D.fm=function(t){Yn.prototype.fm.call(this,t),t=this.wa(t);var e=_f(this,t);if(e!==null){var n=Le();for(e=e.iterator;e.next();){var i=e.value;if(this.lb(i)){if(this.lh(i)===t){var r=this.Je;Xs(this,"nodeGroupKey",Ro,r,i,t,t),typeof r=="string"&&this.La(i,r),n.push(i)}}else if(xu(this,i,!0)===t&&(r=this.lf,Xs(this,"linkFromKey",Ro,r,i,t,t),typeof r=="string"&&this.La(i,r),n.push(i)),xu(this,i,!1)===t&&(r=this.mf,Xs(this,"linkToKey",Ro,r,i,t,t),typeof r=="string"&&this.La(i,r),n.push(i)),r=this.Ef(i),Array.isArray(r))for(var o=r.length,s=this.je,l=0;l<o;l++)r[l]===t&&(Xs(this,"linkLabelKeys",hs,s,i,t,t,l,l),n.push(i))}for(e=0;e<n.length;e++)fc(this,t,n[e]);tn(n)}},D.em=function(t){Yn.prototype.em.call(this,t);var e=this.lh(t);this.hc(e)===null&&pc(this,e,t)},D.qp=function(t){Yn.prototype.qp.call(this,t);var e=this.lh(t);fc(this,e,t)},D.ps=function(t){if(t===null)return"";var e=this.dj;if(e===""||(e=Ds(t,e),e===void 0))return"";if(typeof e=="string")return e;ne("getCategoryForLinkData found a non-string category for "+t+": "+e)},Mr.prototype.getLinkCategoryForData=function(t){return this.ps(t)},Mr.prototype.lp=function(t,e){if(t!==null){var n=this.dj;if(n!=="")if(this.Jc(t)){var i=Ds(t,n);i===void 0&&(i=""),i!==e&&(qo(t,n,e),Xs(this,"linkCategory",Ro,n,t,i,e),typeof n=="string"&&this.La(t,n))}else qo(t,n,e)}},Mr.prototype.setLinkCategoryForData=function(t,e){this.lp(t,e)},D=Mr.prototype,D.lm=function(t,e){Yn.prototype.lm.call(this,t,e),this.mp(e,this.lh(t))};function $1(t,e,n){t.lp(n,t.ps(e)),t.wv(n,t.yx(e)),t.Bv(n,t.Bx(e)),t.Ls(n,t.Ef(e)),t.xv(n,t.zx(e)),t.Cv(n,t.Cx(e))}D.Wj=function(){return!0},D.ri=function(){return!0},D.xs=function(){return!0},D.Xj=function(){return!0},te.Object.defineProperties(Mr.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(t){var e=this.Ri;e!==t&&(this.Ri=t,this.g("archetypeNodeData",e,t))}},linkFromKeyProperty:{get:function(){return this.lf},set:function(t){var e=this.lf;e!==t&&(this.lf=t,this.g("linkFromKeyProperty",e,t))}},linkToKeyProperty:{get:function(){return this.mf},set:function(t){var e=this.mf;e!==t&&(this.mf=t,this.g("linkToKeyProperty",e,t))}},linkFromPortIdProperty:{get:function(){return this.ej},set:function(t){var e=this.ej;e!==t&&(this.ej=t,this.g("linkFromPortIdProperty",e,t))}},linkToPortIdProperty:{get:function(){return this.fj},set:function(t){var e=this.fj;e!==t&&(this.fj=t,this.g("linkToPortIdProperty",e,t))}},linkLabelKeysProperty:{get:function(){return this.je},set:function(t){var e=this.je;e!==t&&(this.je=t,this.g("linkLabelKeysProperty",e,t))}},linkDataArray:{get:function(){return this.md},set:function(t){var e=this.md;if(e!==t){this.wb.clear();for(var n=t.length,i=0;i<n;i++){var r=t[i];Me(r)||ne("GraphLinksModel.linkDataArray must only contain Objects, not: "+r),Co(r)}if(this.md=t,this.linkKeyProperty!==""){for(i=new Re,r=0;r<n;r++){var o=t[r],s=this.Ac(o);s===void 0||this.wb.I(s)!==null?i.add(o):this.wb.add(s,o)}for(i=i.iterator;i.next();)r=i.value,this.Bs(r),o=this.Ac(r),o!==void 0&&this.wb.add(o,r)}for(i=new je,r=0;r<n;r++)i.add(t[r]);for(this.$f=i,Xs(this,"linkDataArray",Ro,"linkDataArray",this,e,t),e=0;e<n;e++)bv(this,t[e])}}},linkKeyProperty:{get:function(){return this.Jh},set:function(t){var e=this.Jh;if(e!==t){this.Jh=t,this.wb.clear();for(var n=this.linkDataArray.length,i=0;i<n;i++){var r=this.linkDataArray[i],o=this.Ac(r);o===void 0&&(this.Bs(r),o=this.Ac(r)),o!==void 0&&this.wb.add(o,r)}this.g("linkKeyProperty",e,t)}}},makeUniqueLinkKeyFunction:{get:function(){return this.cl},set:function(t){var e=this.cl;e!==t&&(this.cl=t,this.g("makeUniqueLinkKeyFunction",e,t))}},copyLinkDataFunction:{get:function(){return this.Ak},set:function(t){var e=this.Ak;e!==t&&(this.Ak=t,this.g("copyLinkDataFunction",e,t))}},nodeIsGroupProperty:{get:function(){return this.jl},set:function(t){var e=this.jl;e!==t&&(this.jl=t,this.g("nodeIsGroupProperty",e,t))}},nodeGroupKeyProperty:{get:function(){return this.Je},set:function(t){var e=this.Je;e!==t&&(this.Je=t,this.g("nodeGroupKeyProperty",e,t))}},Ij:{get:function(){return this.Lm},set:function(t){this.Lm!==t&&(this.Lm=t)}},linkCategoryProperty:{get:function(){return this.dj},set:function(t){var e=this.dj;e!==t&&(this.dj=t,this.g("linkCategoryProperty",e,t))}},type:{get:function(){return"GraphLinksModel"}}}),Mr.prototype.setCategoryForLinkData=Mr.prototype.lp,Mr.prototype.getCategoryForLinkData=Mr.prototype.ps,Mr.prototype.assignAllDataProperties=Mr.prototype.Do,Mr.prototype.setGroupKeyForNodeData=Mr.prototype.mp,Mr.prototype.getGroupKeyForNodeData=Mr.prototype.lh,Mr.prototype.isGroupForNodeData=Mr.prototype.Yu,Mr.prototype.copyLinkData=Mr.prototype.Jo,Mr.prototype.mergeLinkDataArray=Mr.prototype.Zz,Mr.prototype.removeLinkDataCollection=Mr.prototype.lA,Mr.prototype.removeLinkData=Mr.prototype.bm,Mr.prototype.addLinkDataCollection=Mr.prototype.Ey,Mr.prototype.addLinkData=Mr.prototype.fi,Mr.prototype.containsLinkData=Mr.prototype.Jc,Mr.prototype.makeLinkDataKeyUnique=Mr.prototype.Bs,Mr.prototype.findLinkDataForKey=Mr.prototype.jh,Mr.prototype.setKeyForLinkData=Mr.prototype.Ks,Mr.prototype.getKeyForLinkData=Mr.prototype.Ac,Mr.prototype.removeLabelKeyForLinkData=Mr.prototype.Qx,Mr.prototype.addLabelKeyForLinkData=Mr.prototype.Bu,Mr.prototype.setLabelKeysForLinkData=Mr.prototype.Ls,Mr.prototype.getLabelKeysForLinkData=Mr.prototype.Ef,Mr.prototype.setToPortIdForLinkData=Mr.prototype.Cv,Mr.prototype.getToPortIdForLinkData=Mr.prototype.Cx,Mr.prototype.setFromPortIdForLinkData=Mr.prototype.xv,Mr.prototype.getFromPortIdForLinkData=Mr.prototype.zx,Mr.prototype.setToKeyForLinkData=Mr.prototype.Bv,Mr.prototype.getToKeyForLinkData=Mr.prototype.Bx,Mr.prototype.setFromKeyForLinkData=Mr.prototype.wv,Mr.prototype.getFromKeyForLinkData=Mr.prototype.yx,Mr.prototype.clear=Mr.prototype.clear;var Cm=Object.freeze([]);Mr.className="GraphLinksModel",tc.GraphLinksModel=Mr,Yn.constructGraphLinksModel=Yn.constructGraphLinksModel=function(){return new Mr},Yn.initDiagramModel=yv=function(){return new Mr};function xl(t,e){Yn.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",t!==void 0&&(In(t)?this.nodeDataArray=t:e=t),e&&(Object.assign(this,e),t=e.Changed)&&(delete this.Changed,this.Pe(t))}Jn(xl,Yn),xl.constructGraphLinksModel=Yn.constructGraphLinksModel,xl.prototype.cloneProtected=function(t){Yn.prototype.cloneProtected.call(this,t),t.Ke=this.Ke,t.Nm=this.Nm,t.nj=this.nj},D=xl.prototype,D.toString=function(t){if(t===void 0&&(t=0),2<=t)return this.np();var e=(this.name!==""?this.name:"")+" TreeModel";if(0<t){e+=`
|
|
|
node data:`,t=this.nodeDataArray;for(var n=t.length,i=0;i<n;i++){var r=t[i];e+=" "+this.wa(r)+":"+yn(r)}}return e},D.rm=function(){var t=Yn.prototype.rm.call(this),e="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(e+=`,
|
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),t+e},D.gp=function(t){Yn.prototype.gp.call(this,t),t.nodeParentKeyProperty&&(this.nodeParentKeyProperty=t.nodeParentKeyProperty)},D.fp=function(t){t.nodeParentKeyProperty!==void 0&&t.nodeParentKeyProperty!==this.nodeParentKeyProperty&&ne("applyIncrementalJson cannot change Model properties"),Yn.prototype.fp.call(this,t)},D.Vl=function(t){return t},D.mh=function(t){if(t!==null){var e=this.Ke;if(e!==""&&(e=Ds(t,e),e!==void 0)){if(td(e))return e;ne("ParentKey value for node data "+t+" is not a number or a string: "+e)}}},D.qe=function(t,e){if(e===null&&(e=void 0),t!==null){var n=this.Ke;if(n!=="")if(e=this.Vl(e),this.lb(t)){var i=Ds(t,n);i!==e&&(fc(this,i,t),qo(t,n,e),this.hc(e)===null&&pc(this,e,t),Xs(this,"nodeParentKey",Ro,n,t,i,e),typeof n=="string"&&this.La(t,n))}else qo(t,n,e)}},D.ss=function(t){if(t===null)return"";var e=this.nj;return e===""||(e=Ds(t,e),e===void 0)?"":typeof e=="string"?e:(ne("getParentLinkCategoryForNodeData found a non-string category for "+t+": "+e),"")},xl.prototype.getLinkCategoryForData=function(t){return this.ss(t)},xl.prototype.Ms=function(t,e){if(t!==null){var n=this.nj;if(n!=="")if(this.lb(t)){var i=Ds(t,n);i===void 0&&(i=""),i!==e&&(qo(t,n,e),Xs(this,"parentLinkCategory",Ro,n,t,i,e),typeof n=="string"&&this.La(t,n))}else qo(t,n,e)}},xl.prototype.setLinkCategoryForData=function(t,e){this.Ms(t,e)},xl.prototype.copyNodeData=function(t){return t===null?null:(t=Yn.prototype.copyNodeData.call(this,t),this.Jj||this.Ke===""||Ds(t,this.Ke)===void 0||qo(t,this.Ke,void 0),t)},xl.prototype.setDataProperty=function(t,e,n){if(this.lb(t)){if(e===this.nodeKeyProperty){this.km(t,n);return}if(e===this.nodeCategoryProperty){this.jm(t,n);return}if(e===this.nodeParentKeyProperty){this.qe(t,n);return}}var i=Ds(t,e);i!==n&&(qo(t,e,n),this.Fs(t,e,i,n))},D=xl.prototype,D.jp=function(t,e){Yn.prototype.jp.call(this,t,e);for(var n=this.kb.iterator;n.next();)this.qv(n.value,t,e)},D.qv=function(t,e,n){if(this.mh(t)===e){var i=this.Ke;qo(t,i,n),Xs(this,"nodeParentKey",Ro,i,t,e,n),typeof i=="string"&&this.La(t,i)}},D.fm=function(t){Yn.prototype.fm.call(this,t),t=this.wa(t);var e=_f(this,t);if(e!==null){var n=Le();for(e=e.iterator;e.next();){var i=e.value;if(this.lb(i)&&this.mh(i)===t){var r=this.Ke;Xs(this,"nodeParentKey",Ro,r,i,t,t),typeof r=="string"&&this.La(i,r),n.push(i)}}for(e=0;e<n.length;e++)fc(this,t,n[e]);tn(n)}},D.em=function(t){Yn.prototype.em.call(this,t);var e=this.mh(t);e=this.Vl(e),this.hc(e)===null&&pc(this,e,t)},D.qp=function(t){Yn.prototype.qp.call(this,t);var e=this.mh(t);fc(this,e,t)},D.lm=function(t,e){Yn.prototype.lm.call(this,t,e),this.Ms(e,this.ss(t)),this.qe(e,this.mh(t))},D.Tl=function(){return!0},D.xs=function(){return!0},te.Object.defineProperties(xl.prototype,{nodeParentKeyProperty:{get:function(){return this.Ke},set:function(t){var e=this.Ke;e!==t&&(this.Ke=t,this.g("nodeParentKeyProperty",e,t))}},Jj:{get:function(){return this.Nm},set:function(t){this.Nm!==t&&(this.Nm=t)}},parentLinkCategoryProperty:{get:function(){return this.nj},set:function(t){var e=this.nj;e!==t&&(this.nj=t,this.g("parentLinkCategoryProperty",e,t))}},linkCategoryProperty:{get:function(){return this.parentLinkCategoryProperty},set:function(t){this.parentLinkCategoryProperty=t}},type:{get:function(){return"TreeModel"}}}),xl.prototype.setParentLinkCategoryForNodeData=xl.prototype.Ms,xl.prototype.getParentLinkCategoryForNodeData=xl.prototype.ss,xl.prototype.setParentKeyForNodeData=xl.prototype.qe,xl.prototype.getParentKeyForNodeData=xl.prototype.mh,xl.className="TreeModel",tc.TreeModel=xl;function as(t){ts.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=ec,this.Ti=0,this.Zv=new $,this.Jp=this.me=0,this.Xr=new Zf,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=ec,this.K=bl,this.nd=Vp,this.hd=dv,this.tf=6,this.Nn=Mm,t&&Object.assign(this,t)}Jn(as,ts),as.prototype.cloneProtected=function(t){ts.prototype.cloneProtected.call(this,t),t.eo=this.eo,t.Cm=this.Cm,t.ro=this.ro,t.ul=this.ul,t.Rb=this.Rb,t.K=this.K,t.nd=this.nd,t.hd=this.hd,t.tf=this.tf,t.Nn=this.Nn},as.prototype.qb=function(t){t.classType===as?t===Im||t===Am||t===km||t===Nm||t===Vp?this.sorting=t:t===Rd||t===Wp||t===bl||t===nd?this.direction=t:t===Rh||t===ed||t===ec||t===nc?this.arrangement=t:(t===ip||t===Mm)&&(this.nodeDiameterFormula=t):ts.prototype.qb.call(this,t)},as.prototype.createNetwork=function(){return new Kp(this)},as.prototype.doLayout=function(t){if(this.network===null&&(this.network=this.makeNetwork(t)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),t=this.network.vertexes,1>=t.count)t.count===1&&(t=t.first(),t.centerX=0,t.centerY=0);else{var e=new Re;e.addAll(t.iterator),t=new Re;var n=new Re,i=this.sort(e),r,o,s=this.Jp,l=this.arrangement,u=this.nodeDiameterFormula,d=this.radius;(!isFinite(d)||0>=d)&&(d=NaN);var p=this.aspectRatio;(!isFinite(p)||0>=p)&&(p=1);var v=this.startAngle;isFinite(v)||(v=0);var E=this.sweepAngle;if((!isFinite(E)||360<E||1>E)&&(E=360),e=this.spacing,isFinite(e)||(e=NaN),l===nc&&u===ip?l=ec:l===nc&&u!==ip&&(l=this.arrangement),(this.direction===Rd||this.direction===Wp)&&this.sorting!==Vp){for(u=0;!(u>=i.length)&&(t.add(i.M(u)),!(u+1>=i.length));u+=2)n.add(i.M(u+1));this.direction===Rd?(this.arrangement===nc&&t.reverse(),i=new Re,i.addAll(t),i.addAll(n)):(this.arrangement===nc&&n.reverse(),i=new Re,i.addAll(n),i.addAll(t))}u=i.length;for(var M=o=r=0;M<i.length;M++){var R=v+E*o*(this.direction===bl?1:-1)/u,j=i.M(M).diameter;isNaN(j)&&(j=id(i.M(M),R)),360>E&&(M===0||M===i.length-1)&&(j/=2),r+=j,o++}if(isNaN(d)||l===nc){if(isNaN(e)&&(e=6),l!==ec&&l!==nc){for(o=-1/0,s=0;s<u;s++)M=i.M(s),r=i.M(s===u-1?0:s+1),isNaN(M.diameter)&&id(M,0),isNaN(r.diameter)&&id(r,0),o=Math.max(o,(M.diameter+r.diameter)/2);s=o+e,l===Rh?d=(o+e)/(2*Math.PI/u):d=Em(this,s*(360<=E?u:u-1),p,v*Math.PI/180,E*Math.PI/180)}else d=Em(this,r+(360<=E?u:u-1)*(l!==nc?e:1.6*e),p,v*Math.PI/180,E*Math.PI/180);o=d*p}else if(o=d*p,M=Sv(this,d,o,v*Math.PI/180,E*Math.PI/180),isNaN(e))(l===ec||l===nc)&&(e=(M-r)/(360<=E?u:u-1));else if(l===ec||l===nc)M=(M-r)/(360<=E?u:u-1),M<e?(d=Em(this,r+e*(360<=E?u:u-1),p,v*Math.PI/180,E*Math.PI/180),o=d*p):e=M;else{for(s=-1/0,r=0;r<u;r++)R=i.M(r),j=i.M(r===u-1?0:r+1),isNaN(R.diameter)&&id(R,0),isNaN(j.diameter)&&id(j,0),s=Math.max(s,(R.diameter+j.diameter)/2);s+=e,r=Em(this,s*(360<=E?u:u-1),p,v*Math.PI/180,E*Math.PI/180),r>d?(d=r,o=d*p):s=M/(360<=E?u:u-1)}if(this.kw=l,this.lc=d,this.Zm=p,this.lw=v,this.Wp=E,this.Ti=e,this.me=o,this.Jp=s,e=i,i=this.kw,l=this.lc,d=this.lw,p=this.Wp,v=this.Ti,E=this.me,u=this.Jp,this.direction!==Rd&&this.direction!==Wp||i!==nc)if(this.direction===Rd||this.direction===Wp){switch(s=0,i){case ed:s=180*Tm(this,l,E,d,u)/Math.PI;break;case ec:u=e=0,s=t.first(),s!==null&&(e=id(s,Math.PI/2)),s=n.first(),s!==null&&(u=id(s,Math.PI/2)),s=180*Tm(this,l,E,d,v+(e+u)/2)/Math.PI;break;case Rh:s=p/e.length}if(this.direction===Rd){switch(i){case ed:Kf(this,t,d,nd);break;case ec:Vf(this,t,d,nd);break;case Rh:Wf(this,t,p/2,d,nd)}switch(i){case ed:Kf(this,n,d+s,bl);break;case ec:Vf(this,n,d+s,bl);break;case Rh:Wf(this,n,p/2,d+s,bl)}}else{switch(i){case ed:Kf(this,n,d,nd);break;case ec:Vf(this,n,d,nd);break;case Rh:Wf(this,n,p/2,d,nd)}switch(i){case ed:Kf(this,t,d+s,bl);break;case ec:Vf(this,t,d+s,bl);break;case Rh:Wf(this,t,p/2,d+s,bl)}}}else switch(i){case ed:Kf(this,e,d,this.direction);break;case ec:Vf(this,e,d,this.direction);break;case Rh:Wf(this,e,p,d,this.direction);break;case nc:j1(this,e,p,d,this.direction)}else j1(this,e,p,d-p/2,bl)}this.updateParts(),this.network=null,this.isValidLayout=!0};function Wf(t,e,n,i,r){var o=t.Wp,s=t.lc;t=t.me,i=i*Math.PI/180,n=n*Math.PI/180;for(var l=e.length,u=0;u<l;u++){var d=i+(r===bl?u*n/(360<=o?l:l-1):-(u*n)/l),p=e.M(u),v=s*Math.tan(d)/t;v=Math.sqrt((s*s+t*t*v*v)/(1+v*v)),p.centerX=v*Math.cos(d),p.centerY=v*Math.sin(d),p.actualAngle=180*d/Math.PI}}function Vf(t,e,n,i){var r=t.lc,o=t.me,s=t.Ti;n=n*Math.PI/180;for(var l=e.length,u=0;u<l;u++){var d=e.M(u),p=e.M(u===l-1?0:u+1),v=o*Math.sin(n);d.centerX=r*Math.cos(n),d.centerY=v,d.actualAngle=180*n/Math.PI,isNaN(d.diameter)&&id(d,0),isNaN(p.diameter)&&id(p,0),d=Tm(t,r,o,i===bl?n:-n,(d.diameter+p.diameter)/2+s),n+=i===bl?d:-d}}function Kf(t,e,n,i){var r=t.lc,o=t.me,s=t.Jp;n=n*Math.PI/180;for(var l=e.length,u=0;u<l;u++){var d=e.M(u);d.centerX=r*Math.cos(n),d.centerY=o*Math.sin(n),d.actualAngle=180*n/Math.PI,d=Tm(t,r,o,i===bl?n:-n,s),n+=i===bl?d:-d}}function j1(t,e,n,i,r){var o=t.Wp;if(t.mj=0,t.Xr=new Zf,360>n){for(o=i+(r===bl?o:-o);0>o;)o+=360;o%=360,180<o&&(o-=360),o*=Math.PI/180,t.gt=o,_1(t,e,n,i,r)}else U1(t,e,n,i,r);t.Xr.commit(e)}function U1(t,e,n,i,r){var o=t.lc,s=t.Ti,l=t.Zm,u=o*Math.cos(i*Math.PI/180),d=t.me*Math.sin(i*Math.PI/180),p=e.Fa();if(p.length===3)p[0].centerX=o,p[0].centerY=0,p[1].centerX=p[0].centerX-p[0].width/2-p[1].width/2-s,p[1].y=p[0].y,p[2].centerX=(p[0].centerX+p[1].centerX)/2,p[2].y=p[0].y-p[2].height-s;else if(p.length===4)p[0].centerX=o,p[0].centerY=0,p[2].centerX=-p[0].centerX,p[2].centerY=p[0].centerY,p[1].centerX=0,p[1].y=Math.min(p[0].y,p[2].y)-p[1].height-s,p[3].centerX=0,p[3].y=Math.max(p[0].y+p[0].height+s,p[2].y+p[2].height+s);else{o=$.alloc();for(var v=0;v<p.length&&(p[v].centerX=u,p[v].centerY=d,!(v>=p.length-1));v++)H1(t,u,d,p,v,r,o)||G1(t,u,d,p,v,r,o),u=o.x,d=o.y;if($.free(o),t.mj++,!(23<t.mj)){u=p[0].centerX,d=p[0].centerY,o=p[p.length-1].centerX,v=p[p.length-1].centerY;var E=Math.abs(u-o)-((p[0].width+p[p.length-1].width)/2+s),M=Math.abs(d-v)-((p[0].height+p[p.length-1].height)/2+s);s=0,1>Math.abs(M)?Math.abs(u-o)<(p[0].width+p[p.length-1].width)/2&&(s=0):s=0<M?M:1>Math.abs(E)?0:E,u=Math.abs(o)>Math.abs(v)?0<o!=d>v:0<v!=u<o,(u=r===bl?u:!u)&&(s=-Math.abs(s),s=Math.min(s,-p[p.length-1].width),s=Math.min(s,-p[p.length-1].height)),t.Xr.compare(s,p),1<Math.abs(s)&&(t.lc=8>t.mj?t.lc-s/(2*Math.PI):5>p.length&&10<s?t.lc/2:t.lc-(0<s?1.7:-2.3),t.me=t.lc*l,U1(t,e,n,i,r))}}}function _1(t,e,n,i,r){for(var o=t.lc,s=t.me,l=t.Zm,u=o*Math.cos(i*Math.PI/180),d=s*Math.sin(i*Math.PI/180),p=$.alloc(),v=e.Fa(),E=0;E<v.length&&(v[E].centerX=u,v[E].centerY=d,!(E>=v.length-1));E++)H1(t,u,d,v,E,r,p)||G1(t,u,d,v,E,r,p),u=p.x,d=p.y;if($.free(p),t.mj++,!(23<t.mj)){if(u=Math.atan2(d,u),u=r===bl?t.gt-u:u-t.gt,u=Math.abs(u)<Math.abs(u-2*Math.PI)?u:u-2*Math.PI,o=u*(o+s)/2,s=t.Xr,Math.abs(o)<Math.abs(s.Pl))for(s.Pl=o,s.mk=[],s.tm=[],u=0;u<v.length;u++)s.mk[u]=v[u].bounds.x,s.tm[u]=v[u].bounds.y;1<Math.abs(o)&&(t.lc=8>t.mj?t.lc-o/(2*Math.PI):t.lc-(0<o?1.7:-2.3),t.me=t.lc*l,_1(t,e,n,i,r))}}function H1(t,e,n,i,r,o,s){var l=t.lc,u=t.me,d=0;t=(i[r].width+i[r+1].width)/2+t.Ti;var p=!1;if(0<=n!=(o===bl)){if(o=e+t,o>l){if(o=e-t,o<-l)return s.x=o,s.y=d,!1;p=!0}}else if(o=e-t,o<-l){if(o=e+t,o>l)return s.x=o,s.y=d,!1;p=!0}return d=Math.sqrt(1-Math.min(1,o*o/(l*l)))*u,0>n!==p&&(d=-d),Math.abs(n-d)>(i[r].height+i[r+1].height)/2?(s.x=o,s.y=d,!1):(s.x=o,s.y=d,!0)}function G1(t,e,n,i,r,o,s){var l=t.lc,u=t.me,d=0;if(t=(i[r].height+i[r+1].height)/2+t.Ti,i=!1,0<=e!=(o===bl)){if(o=n-t,o<-u){if(o=n+t,o>u){s.x=d,s.y=o;return}i=!0}}else if(o=n+t,o>u){if(o=n-t,o<-u){s.x=d,s.y=o;return}i=!0}d=Math.sqrt(1-Math.min(1,o*o/(u*u)))*l,0>e!==i&&(d=-d),s.x=d,s.y=o}as.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},as.prototype.commitNodes=function(){var t=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,e=t?this.group.location.copy():null,n=this.actualCenter;t?n=new $(0,0):(n.x=this.arrangementOrigin.x+this.lc,n.y=this.arrangementOrigin.y+this.me);for(var i=this.network.vertexes.iterator;i.next();){var r=i.value;r.x+=n.x,r.y+=n.y,r.commit()}t&&(this.group.Va(),t=this.group.position.copy(),n=this.group.location.copy(),e=e.re(n.re(t)),this.group.move(e),this.Zv=e.re(t))},as.prototype.commitLinks=function(){for(var t=this.network.edges.iterator;t.next();)t.value.commit()};function Sv(t,e,n,i,r){var o=t.ty;if(.001>Math.abs(t.Zm-1))return i!==void 0&&r!==void 0?r*e:2*Math.PI*e;t=e>n?Math.sqrt(e*e-n*n)/e:Math.sqrt(n*n-e*e)/n;for(var s=0,l=i!==void 0&&r!==void 0?r/(o+1):Math.PI/(2*(o+1)),u=0,d=0;d<=o;d++){i!==void 0&&r!==void 0?u=i+d*r/o:u=d*Math.PI/(2*o);var p=Math.sin(u);s+=Math.sqrt(1-t*t*p*p)*l}return i!==void 0&&r!==void 0?(e>n?e:n)*s:4*(e>n?e:n)*s}function Em(t,e,n,i,r){return e/(i!==void 0&&r!==void 0?Sv(t,1,n,i,r):Sv(t,1,n))}function Tm(t,e,n,i,r){if(.001>Math.abs(t.Zm-1))return r/e;var o=e>n?Math.sqrt(e*e-n*n)/e:Math.sqrt(n*n-e*e)/n,s=0;t=2*Math.PI/(700*t.network.vertexes.count),e>n&&(i+=Math.PI/2);for(var l=0;;l++){var u=Math.sin(i+l*t);if(s+=(e>n?e:n)*Math.sqrt(1-o*o*u*u)*t,s>=r)return l*t}}as.prototype.sort=function(t){switch(this.sorting){case km:break;case Nm:t.reverse();break;case Im:t.sort(this.comparer);break;case Am:t.sort(this.comparer),t.reverse();break;case Vp:return this.ak(Vx(t));default:ne("Invalid sorting type.")}return t};function Vx(t){for(var e=[],n=0;n<t.length;n++)e.push(0);n=new Re;for(var i=0;i<t.length;i++){var r=-1,o=-1;if(i===0)for(var s=0;s<t.length;s++){var l=t.M(s).edgesCount;l>r&&(r=l,o=s)}else for(s=0;s<t.length;s++)l=e[s],l>r&&(r=l,o=s);for(n.add(t.M(o)),e[o]=-1,o=t.M(o),s=o.sourceEdges;s.next();)r=t.indexOf(s.value.fromVertex),0>r||0<=e[r]&&e[r]++;for(o=o.destinationEdges;o.next();)r=t.indexOf(o.value.toVertex),0>r||0<=e[r]&&e[r]++}return n}as.prototype.ak=function(t){for(var e=[],n=0;n<t.length;n++){var i=t.M(n);e[n]=[];for(var r,o=i.destinationEdges;o.next();)r=t.indexOf(o.value.toVertex),r!==n&&0>e[n].indexOf(r)&&e[n].push(r);for(i=i.sourceEdges;i.next();)r=t.indexOf(i.value.fromVertex),r!==n&&0>e[n].indexOf(r)&&e[n].push(r)}for(o=[],n=0;n<e.length;n++)o[n]=0;n=[];var s=[],l=[];i=[],r=new Re;for(var u=0,d=0;d<e.length;d++){var p=e[d].length;if(p===1)i.push(d);else if(p===0)r.add(t.M(d));else{if(u===0)n.push(d);else{for(var v=p=1/0,E=-1,M=[],R=0;R<n.length;R++)0>e[n[R]].indexOf(n[R===n.length-1?0:R+1])&&M.push(R===n.length-1?0:R+1);if(M.length===0)for(R=0;R<n.length;R++)M.push(R);for(R=0;R<M.length;R++){for(var j=M[R],at=e[d],q=0,gt=0;gt<s.length;gt++){var wt=o[s[gt]],Ot=o[l[gt]];if(wt<Ot){var Gt=wt;wt=Ot}else Gt=Ot;if(Gt<j&&j<=wt)for(Ot=0;Ot<at.length;Ot++){var ce=at[Ot];0>n.indexOf(ce)||Gt<o[ce]&&o[ce]<wt||Gt===o[ce]||wt===o[ce]||q++}else for(Ot=0;Ot<at.length;Ot++)ce=at[Ot],0>n.indexOf(ce)||Gt<o[ce]&&o[ce]<wt&&Gt!==o[ce]&&wt!==o[ce]&&q++}for(at=q,gt=q=0;gt<e[d].length;gt++)Gt=n.indexOf(e[d][gt]),0<=Gt&&(Gt=Math.abs(j-(Gt>=j?Gt+1:Gt)),q+=Gt<n.length+1-Gt?Gt:n.length+1-Gt);for(gt=0;gt<s.length;gt++)Gt=o[s[gt]],wt=o[l[gt]],Gt>=j&&Gt++,wt>=j&&wt++,Gt>wt&&(Ot=wt,wt=Gt,Gt=Ot),wt-Gt<(n.length+2)/2==(Gt<j&&j<=wt)&&q++;(at<p||at===p&&q<v)&&(p=at,v=q,E=j)}for(n.splice(E,0,d),p=0;p<n.length;p++)o[n[p]]=p;for(p=0;p<e[d].length;p++)v=e[d][p],0<=n.indexOf(v)&&(s.push(d),l.push(v))}u++}}for(s=n.length;;){for(o=!0,l=0;l<i.length;l++)if(u=i[l],d=e[u][0],p=n.indexOf(d),0<=p){for(E=v=0;E<e[d].length;E++)M=n.indexOf(e[d][E]),0>M||M===p||(R=M>p?M-p:p-M,v+=M<p!=R>s-R?1:-1);n.splice(0>v?p:p+1,0,u),i.splice(l,1),l--}else o=!1;if(o)break;n.push(i[0]),i.splice(0,1)}for(e=0;e<n.length;e++)r.add(t.M(n[e]));return r},te.Object.defineProperties(as.prototype,{radius:{get:function(){return this.eo},set:function(t){this.eo!==t&&(0<t||isNaN(t))&&(this.eo=t,this.C())}},aspectRatio:{get:function(){return this.Cm},set:function(t){this.Cm!==t&&0<t&&(this.Cm=t,this.C())}},startAngle:{get:function(){return this.ro},set:function(t){this.ro!==t&&(this.ro=t,this.C())}},sweepAngle:{get:function(){return this.ul},set:function(t){this.ul!==t&&(0<t&&360>=t?this.ul=t:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(t){this.Rb===t||t!==nc&&t!==ec&&t!==ed&&t!==Rh||(this.Rb=t,this.C())}},direction:{get:function(){return this.K},set:function(t){this.K===t||t!==bl&&t!==nd&&t!==Rd&&t!==Wp||(this.K=t,this.C())}},sorting:{get:function(){return this.nd},set:function(t){this.nd===t||t!==km&&t!==Nm&&t!==Im&&!Am&&t!==Vp||(this.nd=t,this.C())}},comparer:{get:function(){return this.hd},set:function(t){this.hd!==t&&(this.hd=t,this.C())}},spacing:{get:function(){return this.tf},set:function(t){this.tf!==t&&(this.tf=t,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(t){this.Nn===t||t!==Mm&&t!==ip||(this.Nn=t,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 ec=new le(as,"ConstantSpacing",0),ed=new le(as,"ConstantDistance",1),Rh=new le(as,"ConstantAngle",2),nc=new le(as,"Packed",3),bl=new le(as,"Clockwise",4),nd=new le(as,"Counterclockwise",5),Rd=new le(as,"BidirectionalLeft",6),Wp=new le(as,"BidirectionalRight",7),km=new le(as,"Forwards",8),Nm=new le(as,"Reverse",9),Im=new le(as,"Ascending",10),Am=new le(as,"Descending",11),Vp=new le(as,"Optimized",12),Mm=new le(as,"Pythagorean",13),ip=new le(as,"Circular",14);as.className="CircularLayout",as.ConstantSpacing=ec,as.ConstantDistance=ed,as.ConstantAngle=Rh,as.Packed=nc,as.Clockwise=bl,as.Counterclockwise=nd,as.BidirectionalLeft=Rd,as.BidirectionalRight=Wp,as.Forwards=km,as.Reverse=Nm,as.Ascending=Im,as.Descending=Am,as.Optimized=Vp,as.Pythagorean=Mm,as.Circular=ip;function Zf(){this.Pl=-1/0,this.tm=this.mk=null}Zf.prototype.compare=function(t,e){if(0<t&&0>this.Pl||Math.abs(t)<Math.abs(this.Pl)&&!(0>t&&0<this.Pl))for(this.Pl=t,this.mk=[],this.tm=[],t=0;t<e.length;t++)this.mk[t]=e[t].bounds.x,this.tm[t]=e[t].bounds.y},Zf.prototype.commit=function(t){if(this.mk!==null&&this.tm!==null)for(var e=0;e<this.mk.length;e++){var n=t.M(e);n.x=this.mk[e],n.y=this.tm[e]}},Zf.className="VertexArrangement";function Kp(t){Po.call(this,t)}Jn(Kp,Po),Kp.prototype.createVertex=function(){return new Yf(this)},Kp.prototype.createEdge=function(){return new Om(this)},Kp.className="CircularNetwork";function Yf(t){na.call(this,t),this.u=this.Si=NaN}Jn(Yf,na);function id(t,e){var n=t.network;if(n===null)return NaN;if(n=n.layout,n===null)return NaN;if(n.arrangement===nc)if(n.nodeDiameterFormula===ip)t.Si=Math.max(t.width,t.height);else{if(n=Math.abs(Math.sin(e)),e=Math.abs(Math.cos(e)),n===0)return t.width;if(e===0)return t.height;t.Si=Math.min(t.height/n,t.width/e)}else t.Si=n.nodeDiameterFormula===ip?Math.max(t.width,t.height):Math.sqrt(t.width*t.width+t.height*t.height);return t.Si}te.Object.defineProperties(Yf.prototype,{diameter:{get:function(){return this.Si},set:function(t){this.Si!==t&&(this.Si=t)}},actualAngle:{get:function(){return this.u},set:function(t){this.u!==t&&(this.u=t)}}}),Yf.className="CircularVertex";function Om(t){Ql.call(this,t)}Jn(Om,Ql),Om.className="CircularEdge";function Da(t){ts.call(this),this.ah=null,this.An=0,this.$d=new ni(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,t&&Object.assign(this,t)}Jn(Da,ts),Da.prototype.cloneProtected=function(t){ts.prototype.cloneProtected.call(this,t),t.$d.assign(this.$d),t.Bm=this.Bm,t.sf=this.sf,t.td=this.td,t.dl=this.dl,t.$m=this.$m,t.Zf=this.Zf,t.In=this.In,t.fo=this.fo,t.Hk=this.Hk,t.Gk=this.Gk,t.Ek=this.Ek,t.Fk=this.Fk,t.Vm=this.Vm,t.Um=this.Um},Da.prototype.createNetwork=function(){return new rp(this)},Da.prototype.doLayout=function(t){if(this.network===null&&(this.network=this.makeNetwork(t)),t=this.maxIterations,0<this.network.vertexes.count){this.network.Ko();for(var e=this.network.vertexes.iterator;e.next();){var n=e.value;n.charge=this.electricalCharge(n),n.mass=this.gravitationalMass(n)}for(e=this.network.edges.iterator;e.next();)n=e.value,n.stiffness=this.springStiffness(n),n.length=this.springLength(n);if(this.Cu(),this.An=0,this.needsClusterLayout()){e=this.network,n=e.Zx();for(var i=n.iterator;i.next();){this.network=i.value;for(var r=this.network.vertexes.iterator;r.next();){var o=r.value;o.Vd=o.vertexes.count,o.sh=1,o.Hj=null,o.We=null}W1(this,0,t)}this.network=e;var s=i=n.iterator;i=this.arrangementSpacing;var l=s.count,u=!0;o=r=0;for(var d=Le(),p=0;p<l+e.vertexes.count+2;p++)d[p]=null;l=0,s.reset();for(var v=ke.alloc();s.next();)if(p=s.value,this.computeBounds(p,v),u)u=!1,r=v.x+v.width/2,o=v.y+v.height/2,d[0]=new $(v.x+v.width+i.width,v.y),d[1]=new $(v.x,v.y+v.height+i.height),l=2;else{var E=V1(d,l,r,o,v.width,v.height,i),M=d[E],R=new $(M.x+v.width+i.width,M.y),j=new $(M.x,M.y+v.height+i.height);for(E+1<l&&d.splice(E+1,0,null),d[E]=R,d[E+1]=j,l++,E=M.x-v.x,M=M.y-v.y,p=p.vertexes.iterator;p.next();)R=p.value,R.centerX+=E,R.centerY+=M}for(ke.free(v),p=e.vertexes.iterator;p.next();)s=p.value,E=s.bounds,2>l?(r=E.x+E.width/2,o=E.y+E.height/2,d[0]=new $(E.x+E.width+i.width,E.y),d[1]=new $(E.x,E.y+E.height+i.height),l=2):(u=V1(d,l,r,o,E.width,E.height,i),v=d[u],M=new $(v.x+E.width+i.width,v.y),E=new $(v.x,v.y+E.height+i.height),u+1<l&&d.splice(u+1,0,null),d[u]=M,d[u+1]=E,l++,s.centerX=v.x+s.width/2,s.centerY=v.y+s.height/2);for(tn(d),i=n.iterator;i.next();){for(n=i.value,r=n.vertexes.iterator;r.next();)e.dh(r.value);for(n=n.edges.iterator;n.next();)e.Bo(n.value)}}Z1(this,t),this.updateParts()}this.dl=t,this.network=null,this.isValidLayout=!0},Da.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var t=0,e=0,n=this.network.vertexes.first().bounds,i=this.network.vertexes.iterator;i.next();){if(i.value.bounds.Yc(n)&&(t++,2<t))return!0;if(10<e)break;e++}return!1},Da.prototype.computeBounds=function(t,e){var n=!0;for(t=t.vertexes.iterator;t.next();){var i=t.value;n?(n=!1,e.set(i.bounds)):e.ed(i.bounds)}return e};function W1(t,e,n){if(Kx(t,e)){var i=t.Zf;t.Zf*=1+1/(e+1);var r=Zx(t,e),o=Math.max(0,Math.max(Math.min(t.network.vertexes.count,n*(e+1)/11),10));for(t.maxIterations+=o,W1(t,e+1,n),Z1(t,o),Yx(t,r),e=r.vertexes.Fa(),e.sort(function(s,l){return s===null||l===null||s===l?0:l.Vd-s.Vd}),n=0;n<e.length;n++)Xx(t,e[n]);t.Zf=i}}function Kx(t,e){if(10<e||3>t.network.vertexes.count)return!1;for(t.ah=t.network.vertexes.Fa(),t=t.ah,t.sort(function(n,i){return n===null||i===null||n===i?0:i.Vd-n.Vd}),e=t.length-1;0<=e&&1>=t[e].Vd;)e--;return 1<t.length-e}function Zx(t,e){for(var n=t.network,i=new rp(t),r=0;r<t.ah.length;r++){var o=t.ah[r];if(1<o.Vd){i.dh(o);var s=new Y1;s.Rs=o.Vd,s.Ss=o.width,s.Qs=o.height,s.Sv=o.focus.x,s.Tv=o.focus.y,o.We===null&&(o.We=new Re),o.We.add(s),o.sv=o.We.count-1}else break}for(o=n.edges.iterator;o.next();){var l=o.value;r=l.fromVertex,s=l.toVertex,r.network===i&&s.network===i?i.Bo(l):r.network===i?(l=r.Hj,l===null&&(l=new Re,r.Hj=l),l.add(s),r.Vd--,r.sh+=s.sh):s.network===i&&(l=s.Hj,l===null&&(l=new Re,s.Hj=l),l.add(r),s.Vd--,s.sh+=r.sh)}for(r=i.edges.iterator;r.next();)o=r.value,o.length*=Math.max(1,Vt.sqrt((o.fromVertex.sh+o.toVertex.sh)/(4*e+1)));for(e=i.vertexes.iterator;e.next();){r=e.value;var u=r.Hj;if(u!==null&&0<u.count&&(s=r.We.M(r.We.count-1).Rs-r.Vd,!(0>=s))){for(var d=l=0,p=u.count-s;p<u.count;p++){var v=u.M(p),E=null;for(o=v.edges.iterator;o.next();){var M=o.value;if(M.Ax(v)===r){E=M;break}}E!==null&&(d+=E.length,l+=v.width*v.height)}o=r.centerX,u=r.centerY,p=r.width,v=r.height,E=r.focus,M=p*v,1>M&&(M=1),l=Vt.sqrt((l+M+d*d*4/(s*s))/M),s=(l-1)*p/2,l=(l-1)*v/2,r.bounds=new ke(o-E.x-s,u-E.y-l,p+2*s,v+2*l),r.focus=new $(E.x+s,E.y+l)}}return t.network=i,n}function Yx(t,e){for(var n=t.network.vertexes.iterator;n.next();){var i=n.value;if(i.network=e,i.We!==null){var r=i.We.M(i.sv);i.Vd=r.Rs;var o=r.Sv,s=r.Tv;i.bounds=new ke(i.centerX-o,i.centerY-s,r.Ss,r.Qs),i.focus=new $(o,s),i.sv--}}for(n=t.network.edges.iterator;n.next();)n.value.network=e;t.network=e}function Xx(t,e){var n=e.Hj;if(n!==null&&n.count!==0){var i=e.centerX,r=e.centerY,o=e.width,s=e.height;e.We!==null&&0<e.We.count&&(s=e.We.M(0),o=s.Ss,s=s.Qs),o=Vt.sqrt(o*o+s*s)/2;for(var l=!1,u=s=0,d=0,p=e.vertexes.iterator;p.next();){var v=p.value;1>=v.Vd?u++:(l=!0,d++,s+=Math.atan2(e.centerY-v.centerY,e.centerX-v.centerX))}if(u!==0){for(0<d&&(s/=d),d=e=0,e=l?2*Math.PI/(u+1):2*Math.PI/u,u%2===0&&(d=e/2),1<n.count&&n.sort(function(M,R){return M===null||R===null||M===R?0:R.width*R.height-M.width*M.height}),l=u%2===0?0:1,n=n.iterator;n.next();)if(u=n.value,!(1<u.Vd||t.isFixed(u))){for(p=null,v=u.edges.iterator;v.next();){p=v.value;break}v=u.width;var E=u.height;v=Vt.sqrt(v*v+E*E)/2,p=o+p.length+v,v=s+(e*(l/2>>1)+d)*(l%2===0?1:-1),u.centerX=i+p*Math.cos(v),u.centerY=r+p*Math.sin(v),l++}}}}function V1(t,e,n,i,r,o,s){var l=9e19,u=-1,d=0;t:for(;d<e;d++){var p=t[d],v=p.x-n,E=p.y-i;if(v=v*v+E*E,v<l){for(E=d-1;0<=E;E--)if(t[E].y>p.y&&t[E].x-p.x<r+s.width)continue t;for(E=d+1;E<e;E++)if(t[E].x>p.x&&t[E].y-p.y<o+s.height)continue t;u=d,l=v}}return u}Da.prototype.Cu=function(){if(this.comments)for(var t=this.network.vertexes.iterator;t.next();)this.addComments(t.value)},Da.prototype.addComments=function(t){var e=t.node;if(e!==null)for(e=e.Mu();e.next();){var n=e.value;if(n.category==="Comment"&&n.isVisible()){var i=this.network.ki(n);i===null&&(i=this.network.Bl(n)),i.charge=this.defaultCommentElectricalCharge,n=null;for(var r=i.destinationEdges;r.next();){var o=r.value;if(o.toVertex===t){n=o;break}}if(n===null){for(r=i.sourceEdges;r.next();)if(o=r.value,o.fromVertex===t){n=o;break}}n===null&&(n=this.network.Zj(t,i,null)),n.length=this.defaultCommentSpringLength}}};function K1(t,e){var n=t.bounds,i=n.x;t=n.y;var r=n.width;n=n.height;var o=e.bounds,s=o.x;e=o.y;var l=o.width;return o=o.height,i+r<s?t>e+o?(n=i+r-s,t=t-e-o,Vt.sqrt(n*n+t*t)):t+n<e?(i=i+r-s,t=t+n-e,Vt.sqrt(i*i+t*t)):s-(i+r):i>s+l?t>e+o?(n=i-s-l,t=t-e-o,Vt.sqrt(n*n+t*t)):t+n<e?(i=i-s-l,t=t+n-e,Vt.sqrt(i*i+t*t)):i-(s+l):t>e+o?t-(e+o):t+n<e?e-(t+n):.1}function Z1(t,e){for(t.ah=null,e=t.An+e;t.An<e&&(t.An++,Jx(t)););t.ah=null}function Jx(t){t.ah===null&&(t.ah=t.network.vertexes.Fa());var e=t.ah;if(0>=e.length)return!1;var n=e[0];n.forceX=0,n.forceY=0;for(var i=n.centerX,r=i,o=n=n.centerY,s=1;s<e.length;s++){var l=e[s];l.forceX=0,l.forceY=0;var u=l.centerX;l=l.centerY,i=Math.min(i,u),r=Math.max(r,u),n=Math.min(n,l),o=Math.max(o,l)}(r=r-i>o-n)?e.sort(function(j,at){return j===null||at===null||j===at?0:j.centerX-at.centerX}):e.sort(function(j,at){return j===null||at===null||j===at?0:j.centerY-at.centerY}),n=t.Zf;var d=i=l=0;for(o=0;o<e.length;o++){s=e[o],i=s.bounds,l=s.focus,u=i.x+l.x;var p=i.y+l.y;i=s.charge*t.electricalFieldX(u,p),d=s.charge*t.electricalFieldY(u,p),i+=s.mass*t.gravitationalFieldX(u,p),d+=s.mass*t.gravitationalFieldY(u,p),s.forceX+=i,s.forceY+=d;for(var v=o+1;v<e.length;v++){var E=e[v];if(E!==s){i=E.bounds,l=E.focus,d=i.x+l.x;var M=i.y+l.y;if(u-d>n||d-u>n){if(r)break}else if(p-M>n||M-p>n){if(!r)break}else{var R=K1(s,E);1>R?(i=t.randomNumberGenerator,i===null&&(t.randomNumberGenerator=i=new Lm),R=i.random(),l=i.random(),u>d?(i=Math.abs(E.bounds.right-s.bounds.x),i=(1+i)*R):u<d?(i=Math.abs(E.bounds.x-s.bounds.right),i=-(1+i)*R):(i=Math.max(E.width,s.width),i=(1+i)*R-i/2),p>M?(d=Math.abs(E.bounds.bottom-s.bounds.y),d=(1+d)*l):u<d?(d=Math.abs(E.bounds.y-s.bounds.bottom),d=-(1+d)*l):(d=Math.max(E.height,s.height),d=(1+d)*l-d/2)):(l=-(s.charge*E.charge)/(R*R),i=(d-u)/R*l,d=(M-p)/R*l),s.forceX+=i,s.forceY+=d,E.forceX-=i,E.forceY-=d}}}}for(r=t.network.edges.iterator;r.next();)l=r.value,n=l.fromVertex,o=l.toVertex,s=n.bounds,u=n.focus,i=s.x+u.x,s=s.y+u.y,p=o.bounds,v=o.focus,u=p.x+v.x,p=p.y+v.y,v=K1(n,o),1>v?(v=t.randomNumberGenerator,v===null&&(t.randomNumberGenerator=v=new Lm),l=v.random(),v=v.random(),i=(i>u?1:-1)*(1+(o.width>n.width?o.width:n.width))*l,d=(s>p?1:-1)*(1+(o.height>n.height?o.height:n.height))*v):(l=l.stiffness*(v-l.length),i=(u-i)/v*l,d=(p-s)/v*l),n.forceX+=i,n.forceY+=d,o.forceX-=i,o.forceY-=d;for(r=i=0;r<e.length;r++)n=e[r],t.isFixed(n)?t.moveFixedVertex(n):i=Math.max(i,t.moveVertex(n)||0);return i>t.epsilonDistance*t.epsilonDistance}Da.prototype.moveVertex=function(t){var e=t.forceX,n=t.forceY,i=this.moveLimit;return e<-i?e=-i:e>i&&(e=i),n<-i?n=-i:n>i&&(n=i),t.centerX+=e,t.centerY+=n,e*e+n*n},Da.prototype.moveFixedVertex=function(){},Da.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},Da.prototype.yv=function(){if(this.setsPortSpots)for(var t=this.network.edges.iterator;t.next();){var e=t.value.link;e!==null&&(e.fromSpot=_r,e.toSpot=_r)}},Da.prototype.commitNodes=function(){var t=0,e=0;if(this.arrangesToOrigin){var n=ke.alloc();this.computeBounds(this.network,n),e=this.arrangementOrigin,t=e.x-n.x,e=e.y-n.y,ke.free(n)}n=ke.alloc();for(var i=this.network.vertexes.iterator;i.next();){var r=i.value;(t!==0||e!==0)&&(n.assign(r.bounds),n.x+=t,n.y+=e,r.bounds=n),r.commit()}ke.free(n)},Da.prototype.commitLinks=function(){for(var t=this.network.edges.iterator;t.next();)t.value.commit()},Da.prototype.springStiffness=function(t){return t=t.stiffness,isNaN(t)?this.Hk:t},Da.prototype.springLength=function(t){return t=t.length,isNaN(t)?this.Gk:t},Da.prototype.electricalCharge=function(t){return t=t.charge,isNaN(t)?this.Ek:t},Da.prototype.electricalFieldX=function(){return 0},Da.prototype.electricalFieldY=function(){return 0},Da.prototype.gravitationalMass=function(t){return t=t.mass,isNaN(t)?this.Fk:t},Da.prototype.gravitationalFieldX=function(){return 0},Da.prototype.gravitationalFieldY=function(){return 0},Da.prototype.isFixed=function(t){return t.isFixed},te.Object.defineProperties(Da.prototype,{currentIteration:{get:function(){return this.An}},arrangementSpacing:{get:function(){return this.$d},set:function(t){this.$d.D(t)||(this.$d.assign(t),this.C())}},arrangesToOrigin:{get:function(){return this.Bm},set:function(t){this.Bm!==t&&(this.Bm=t,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(t){this.sf!==t&&(this.sf=t,this.C())}},comments:{get:function(){return this.td},set:function(t){this.td!==t&&(this.td=t,this.C())}},maxIterations:{get:function(){return this.dl},set:function(t){this.dl!==t&&0<=t&&(this.dl=t,this.C())}},epsilonDistance:{get:function(){return this.$m},set:function(t){this.$m!==t&&0<t&&(this.$m=t,this.C())}},infinityDistance:{get:function(){return this.Zf},set:function(t){this.Zf!==t&&1<t&&(this.Zf=t,this.C())}},moveLimit:{get:function(){return this.In},set:function(t){this.In!==t&&1<t&&(this.In=t,this.C())}},randomNumberGenerator:{get:function(){return this.fo},set:function(t){this.fo!==t&&(t!==null&&typeof t.random!="function"&&ne('ForceDirectedLayout.randomNumberGenerator must have a "random()" function on it: '+t),this.fo=t)}},defaultSpringStiffness:{get:function(){return this.Hk},set:function(t){this.Hk!==t&&(this.Hk=t,this.C())}},defaultSpringLength:{get:function(){return this.Gk},set:function(t){this.Gk!==t&&(this.Gk=t,this.C())}},defaultElectricalCharge:{get:function(){return this.Ek},set:function(t){this.Ek!==t&&(this.Ek=t,this.C())}},defaultGravitationalMass:{get:function(){return this.Fk},set:function(t){this.Fk!==t&&(this.Fk=t,this.C())}},defaultCommentSpringLength:{get:function(){return this.Vm},set:function(t){this.Vm!==t&&(this.Vm=t,this.C())}},defaultCommentElectricalCharge:{get:function(){return this.Um},set:function(t){this.Um!==t&&(this.Um=t,this.C())}}}),Da.className="ForceDirectedLayout";function Y1(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}Y1.className="ForceDirectedSubnet";function rp(t){Po.call(this,t)}Jn(rp,Po),rp.prototype.createVertex=function(){return new Xf(this)},rp.prototype.createEdge=function(){return new Jf(this)},rp.className="ForceDirectedNetwork";function Xf(t){na.call(this,t),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}Jn(Xf,na),te.Object.defineProperties(Xf.prototype,{isFixed:{get:function(){return this.ia},set:function(t){this.ia!==t&&(this.ia=t)}},charge:{get:function(){return this.u},set:function(t){this.u!==t&&(this.u=t)}},mass:{get:function(){return this.Ha},set:function(t){this.Ha!==t&&(this.Ha=t)}},forceX:{get:function(){return this.F},set:function(t){this.F!==t&&(this.F=t)}},forceY:{get:function(){return this.V},set:function(t){this.V!==t&&(this.V=t)}}}),Xf.className="ForceDirectedVertex";function Jf(t){Ql.call(this,t),this.j=this.o=NaN}Jn(Jf,Ql),te.Object.defineProperties(Jf.prototype,{stiffness:{get:function(){return this.o},set:function(t){this.o!==t&&(this.o=t)}},length:{get:function(){return this.j},set:function(t){this.j!==t&&(this.j=t)}}}),Jf.className="ForceDirectedEdge";function Lm(){var t=0;t===void 0&&(t=42),this.seed=t,this.ay=48271,this.ey=2147483647,this.Q=44488.07041494893,this.gy=3399,this.by=1/2147483647,this.random()}Lm.prototype.random=function(){var t=this.seed%this.Q*this.ay-this.seed/this.Q*this.gy;return 0<t?this.seed=t:this.seed=t+this.ey,this.seed*this.by},Lm.className="RandomNumberGenerator";function ao(t){ts.call(this),this.kc=this.ie=25,this.K=0,this.Dk=Bm,this.Zk=zm,this.Qk=$m,this.bj=4,this.rk=jm,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 $,this.He=[],this.He.length=100,this.xw=this.ve=0,t&&Object.assign(this,t)}Jn(ao,ts),ao.prototype.cloneProtected=function(t){ts.prototype.cloneProtected.call(this,t),t.ie=this.ie,t.kc=this.kc,t.K=this.K,t.Dk=this.Dk,t.Zk=this.Zk,t.Qk=this.Qk,t.bj=this.bj,t.rk=this.rk,t.bg=this.bg,t.sf=this.sf,t.Cn=this.Cn,t.ve=this.ve},ao.prototype.qb=function(t){t.classType===ao?t.name.indexOf("Aggressive")===0?this.aggressiveOption=t:t.name.indexOf("Cycle")===0?this.cycleRemoveOption=t:t.name.indexOf("Init")===0?this.initializeOption=t:t.name.indexOf("Layer")===0?this.layeringOption=t:ne("Unknown enum value: "+t):ts.prototype.qb.call(this,t)},ao.prototype.createNetwork=function(){return new Yp(this)},ao.prototype.doLayout=function(t){for(this.network===null&&(this.network=this.makeNetwork(t)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),this.Iq=-1,this.Md=this.Hn=0,this.fl=this.Jn=this.kj=null,t=0;t<this.He.length;t++)this.He[t]=null;if(0<this.network.vertexes.count){for(this.network.Ko(),this.cycleRemoveOption!==qf&&this.removeCycles(),t=this.network.vertexes.iterator;t.next();)t.value.layer=-1;for(this.Ia=-1,this.assignLayers(),t.reset();t.next();)this.Ia=Math.max(this.Ia,t.value.layer);this.cycleRemoveOption===qf&&this.removeCycles(),t=this.network;for(var e=[],n=t.edges.iterator;n.next();){var i=n.value;i.valid=!1,e.push(i)}for(n=0;n<e.length;n++){i=e[n];var r=i.fromVertex,o=i.toVertex;if(!(i.valid||(r.node===null&&r.data===null||o.node===null&&o.data===null)&&r.layer===o.layer)){var s=0,l=0,u=0,d=0;if(i.link!==null){if(l=i.link,l===null)continue;var p=r.node;if(s=o.node,p===null||s===null)continue;var v=l.fromNode;u=l.toNode;for(var E=l.fromPort;E!==null&&!E.Ed();)E=E.panel;for(l=l.toPort;l!==null&&!l.Ed();)l=l.panel;if(i.rev){d=v;var M=E;v=u,E=l,u=d,l=M}var R=r.focus;d=o.focus;var j=i.rev?o.bounds:r.bounds;M=$.alloc(),p!==v?j.w()&&v.isVisible()?v.actualBounds.w()?(Ih(v,E,Sr,M),M.x+=v.actualBounds.x-j.x,M.y+=v.actualBounds.y-j.y):(Ih(v,E,Sr,M),M.w()||M.assign(R)):M.assign(R):j.w()?(Ih(v,E,Sr,M),M.w()||M.assign(R)):M.assign(R),v=i.rev?r.bounds:o.bounds,p=$.alloc(),s!==u?v.w()&&u.isVisible()?u.actualBounds.w()?(Ih(u,l,Sr,p),p.x+=u.actualBounds.x-v.x,p.y+=u.actualBounds.y-v.y):(Ih(u,l,Sr,p),p.w()||p.assign(d)):p.assign(d):v.w()?(Ih(u,l,Sr,p),p.w()||p.assign(d)):p.assign(d),this.K===90||this.K===270?(s=Math.round((M.x-R.x)/this.kc),u=M.x,l=Math.round((p.x-d.x)/this.kc),d=p.x):(s=Math.round((M.y-R.y)/this.kc),u=M.y,l=Math.round((p.y-d.y)/this.kc),d=p.y),$.free(M),$.free(p),i.portFromColOffset=s,i.portFromPos=u,i.portToColOffset=l,i.portToPos=d}else i.portFromColOffset=0,i.portFromPos=0,i.portToColOffset=0,i.portToPos=0;if(M=r.layer,p=o.layer,v=0,j=i.link,j!==null){var at=j.fromPort,q=j.toPort;if(at!==null&&q!==null){var gt=j.fromNode;if(E=j.toNode,gt!==null&&E!==null){var wt=Fm(this,!0),Ot=Fm(this,!1),Gt=this.setsPortSpots?wt:j.computeSpot(!0,at);R=this.setsPortSpots?Ot:j.computeSpot(!1,q);var ce=j.isOrthogonal;Gt.$c()&&Gt.Hf(Ot)&&R.$c()&&R.Hf(wt)?v=0:(wt=j.getLinkPoint(gt,at,Gt,!0,ce,E,q,$.alloc()),Ot=j.getLinkDirection(gt,at,wt,Gt,!0,ce,E,q),$.free(wt),Gt.ys()||Ot!==rx(this,i,!0)?this.setsPortSpots&>!==null&>.ports.count===1&&i.rev&&(v+=1):v+=1,Gt=j.getLinkPoint(E,q,R,!1,ce,gt,at,$.alloc()),j=j.getLinkDirection(E,q,Gt,R,!1,ce,gt,at),$.free(Gt),R.ys()||j!==rx(this,i,!1)?this.setsPortSpots&&E!==null&&E.ports.count===1&&i.rev&&(v+=2):v+=2)}}}if(E=v,v=E===1||E===3,(E=E===2||E===3)&&(R=t.createVertex(),R.node=null,R.Dj=1,R.layer=M,R.near=r,t.dh(R),r=t.Zj(r,R,i.link),r.valid=!1,r.rev=i.rev,r.portFromColOffset=s,r.portToColOffset=0,r.portFromPos=u,r.portToPos=0,r=R),j=1,v&&j--,M-p>j&&0<M){for(i.valid=!1,R=t.createVertex(),R.node=null,R.Dj=2,R.layer=M-1,t.dh(R),r=t.Zj(r,R,i.link),r.valid=!0,r.rev=i.rev,r.portFromColOffset=E?0:s,r.portToColOffset=0,r.portFromPos=E?0:u,r.portToPos=0,r=R,M--;M-p>j&&0<M;)R=t.createVertex(),R.node=null,R.Dj=3,R.layer=M-1,t.dh(R),r=t.Zj(r,R,i.link),r.valid=!0,r.rev=i.rev,r.portFromColOffset=0,r.portToColOffset=0,r.portFromPos=0,r.portToPos=0,r=R,M--;r=t.Zj(R,o,i.link),r.valid=!v,v&&(R.near=o),r.rev=i.rev,r.portFromColOffset=0,r.portToColOffset=l,r.portFromPos=0,r.portToPos=d}else i.valid=!0}}for(t=this.tc=[],e=0;e<=this.Ia;e++)t[e]=0;for(e=this.network.vertexes.iterator;e.next();)e.value.index=-1;for(this.initializeIndices(),this.Iq=-1,n=this.Md=this.Hn=0;n<=this.Ia;n++)t[n]>t[this.Md]&&(this.Iq=t[n]-1,this.Md=n),t[n]<t[this.Hn]&&(this.Hn=n);for(this.fl=[],n=0;n<t.length;n++)this.fl[n]=[];for(e.reset();e.next();)t=e.value,this.fl[t.layer][t.index]=t;for(this.Ra=-1,t=0;t<=this.Ia;t++){for(e=rd(this,t),n=0,i=this.tc[t],o=0;o<i;o++)r=e[o],n+=this.nodeMinColumnSpace(r,!0),r.column=n,n+=1,n+=this.nodeMinColumnSpace(r,!1);this.Ra=Math.max(this.Ra,n-1),od(this,t,e)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},ao.prototype.linkMinLength=function(){return 1};function wv(t){var e=t.fromVertex.node||t.fromVertex.data;return t=t.toVertex.node||t.toVertex.data,e===null&&t===null?8:e===null||t===null?4:1}ao.prototype.nodeMinLayerSpace=function(t,e){return t.node===null&&t.data===null?0:this.K===90||this.K===270?e?t.focus.y+10:t.bounds.height-t.focus.y+10:e?t.focus.x+10:t.bounds.width-t.focus.x+10},ao.prototype.nodeMinColumnSpace=function(t,e){if(t.node===null&&t.data===null)return 0;var n=e?t.ev:t.dv;return n!==null?n:(n=this.K,n===90||n===270?e?t.ev=t.focus.x/this.kc+1|0:t.dv=(t.bounds.width-t.focus.x)/this.kc+1|0:e?t.ev=t.focus.y/this.kc+1|0:t.dv=(t.bounds.height-t.focus.y)/this.kc+1|0)};function Rl(t){t.kj===null&&(t.kj=[]);for(var e=0,n=t.network.vertexes.iterator;n.next();){var i=n.value;t.kj[e]=i.layer,e++,t.kj[e]=i.column,e++,t.kj[e]=i.index,e++}return t.kj}function Ru(t,e){var n=0;for(t=t.network.vertexes.iterator;t.next();){var i=t.value;i.layer=e[n],n++,i.column=e[n],n++,i.index=e[n],n++}}function X1(t,e,n){var i=rd(t,e),r=t.tc[e];(t.Jn===null||t.Jn.length<r*r)&&(t.Jn=[]);for(var o=t.Jn,s=0;s<r;s++){var l=0,u=i[s],d=u.near;if(d!==null&&d.layer===u.layer)if(u=d.index,u>s)for(var p=s+1;p<u;p++){var v=i[p];v.near===d&&v.Dj===d.Dj||l++}else for(p=s-1;p>u;p--)v=i[p],v.near===d&&v.Dj===d.Dj||l++;var E;if(0<=n)for(u=i[s].sourceEdgesArrayAccess,d=0;d<u.length;d++){var M=u[d];if(M.valid&&M.fromVertex.layer!==e)for(v=M.fromVertex.index,p=M.portToPos,M=M.portFromPos,E=d+1;E<u.length;E++){var R=u[E];if(R.valid&&R.fromVertex.layer!==e){var j=R.fromVertex.index,at=R.portToPos;R=R.portFromPos,p<at&&(v>j||v===j&&M>R)&&l++,at<p&&(j>v||j===v&&R>M)&&l++}}}if(0>=n){for(u=i[s].destinationEdgesArrayAccess,d=0;d<u.length;d++)if(M=u[d],M.valid&&M.toVertex.layer!==e)for(v=M.toVertex.index,p=M.portToPos,M=M.portFromPos,E=d+1;E<u.length;E++)R=u[E],R.valid&&R.toVertex.layer!==e&&(j=R.toVertex.index,at=R.portToPos,R=R.portFromPos,M<R&&(v>j||v===j&&p>at)&&l++,R<M&&(j>v||j===v&&at>p)&&l++)}for(o[s*r+s]=l,u=s+1;u<r;u++){var q=0,gt=0;if(0<=n){l=i[s].sourceEdgesArrayAccess;var wt=i[u].sourceEdgesArrayAccess;for(d=0;d<l.length;d++)if(M=l[d],M.valid&&M.fromVertex.layer!==e)for(v=M.fromVertex.index,M=M.portFromPos,E=0;E<wt.length;E++)R=wt[E],R.valid&&R.fromVertex.layer!==e&&(j=R.fromVertex.index,R=R.portFromPos,(v<j||v===j&&M<R)&>++,(j<v||j===v&&R<M)&&q++)}if(0>=n){for(l=i[s].destinationEdgesArrayAccess,wt=i[u].destinationEdgesArrayAccess,d=0;d<l.length;d++)if(M=l[d],M.valid&&M.toVertex.layer!==e)for(v=M.toVertex.index,p=M.portToPos,E=0;E<wt.length;E++)R=wt[E],R.valid&&R.toVertex.layer!==e&&(j=R.toVertex.index,at=R.portToPos,(v<j||v===j&&p<at)&>++,(j<v||j===v&&at<p)&&q++)}o[s*r+u]=q,o[u*r+s]=gt}}return od(t,e,i),o}ao.prototype.countCrossings=function(){for(var t=0,e=0;e<=this.Ia;e++)for(var n=X1(this,e,1),i=this.tc[e],r=0;r<i;r++)for(var o=r;o<i;o++)t+=n[r*i+o];return t};function Rm(t){for(var e=0,n=0;n<=t.Ia;n++){for(var i=t,r=n,o=rd(i,r),s=i.tc[r],l=0,u=0;u<s;u++){var d=o[u].destinationEdgesArrayAccess;if(d!==null)for(var p=0;p<d.length;p++){var v=d[p];if(v.valid&&v.toVertex.layer!==r){var E=v.fromVertex.column+v.portFromColOffset,M=v.toVertex.column+v.portToColOffset;l+=(Math.abs(E-M)+1)*wv(v)}}}od(i,r,o),e+=l}return e}ao.prototype.normalize=function(){var t=1/0;this.Ra=-1;for(var e=this.network.vertexes.iterator;e.next();){var n=e.value;t=Math.min(t,n.column-this.nodeMinColumnSpace(n,!0)),this.Ra=Math.max(this.Ra,n.column+this.nodeMinColumnSpace(n,!1))}for(e.reset();e.next();)e.value.column-=t;this.Ra-=t};function Cv(t,e,n){for(var i=rd(t,e),r=t.tc[e],o=[],s=0;s<r;s++){var l=i[s],u=null;0>=n&&(u=l.sourceEdgesArrayAccess);var d=null;0<=n&&(d=l.destinationEdgesArrayAccess);var p=0,v=0,E=l.near;if(E!==null&&E.layer===l.layer&&(p+=E.column-1,v++),u!==null)for(E=0;E<u.length;E++){l=u[E];var M=l.fromVertex;l.valid&&!l.rev&&M.layer!==e&&(p+=M.column,v++)}if(d!==null)for(u=0;u<d.length;u++)l=d[u],E=l.toVertex,l.valid&&!l.rev&&E.layer!==e&&(p+=E.column,v++);o[s]=v===0?-1:p/v}return od(t,e,i),o}function J1(t,e,n){for(var i=rd(t,e),r=t.tc[e],o=[],s=0;s<r;s++){var l=i[s],u=null;0>=n&&(u=l.sourceEdgesArrayAccess);var d=null;0<=n&&(d=l.destinationEdgesArrayAccess);var p=0,v=[],E=l.near;if(E!==null&&E.layer===l.layer&&(v[p]=E.column-1,p++),l=void 0,u!==null)for(E=0;E<u.length;E++){l=u[E];var M=l.fromVertex;l.valid&&!l.rev&&M.layer!==e&&(v[p]=M.column+l.portFromColOffset,p++)}if(d!==null)for(u=0;u<d.length;u++)l=d[u],E=l.toVertex,l.valid&&!l.rev&&E.layer!==e&&(v[p]=E.column+l.portToColOffset,p++);p===0?o[s]=-1:(v.sort(function(R,j){return R-j}),d=p>>1,o[s]=p&1?v[d]:v[d-1]+v[d]>>1)}return od(t,e,i),o}function Qf(t,e,n,i,r,o){if(e.component===i){if(e.component=n,r)for(var s=e.destinationEdges;s.next();){var l=s.value,u=l.toVertex,d=e.layer-u.layer;l=t.linkMinLength(l),d===l&&Qf(t,u,n,i,r,o)}if(o)for(s=e.sourceEdges;s.next();)l=s.value,u=l.fromVertex,d=u.layer-e.layer,l=t.linkMinLength(l),d===l&&Qf(t,u,n,i,r,o)}}function Ev(t,e,n,i,r,o){if(e.component===i){if(e.component=n,r)for(var s=e.destinationEdges;s.next();)Ev(t,s.value.toVertex,n,i,r,o);if(o)for(e=e.sourceEdges;e.next();)Ev(t,e.value.fromVertex,n,i,r,o)}}ao.prototype.removeCycles=function(){for(var t=this.network.edges.iterator;t.next();)t.value.rev=!1;switch(this.Dk){default:case Nv:t=this.network;var e=0,n=t.vertexes.count-1,i=[];i.length=n+1;for(var r=t.vertexes.iterator;r.next();)r.value.valid=!0;for(;Qx(t)!==null;){for(r=Q1(t);r!==null;)i[n]=r,n--,r.valid=!1,r=Q1(t);for(r=q1(t);r!==null;)i[e]=r,e++,r.valid=!1,r=q1(t);r=null;for(var o=0,s=this.network.vertexes.iterator;s.next();){var l=s.value;if(l.valid){for(var u=0,d=l.destinationEdges;d.next();)d.value.toVertex.valid&&u++;d=0;for(var p=l.sourceEdges;p.next();)p.value.fromVertex.valid&&d++;(r===null||o<u-d)&&(r=l,o=u-d)}}r!==null&&(i[e]=r,e++,r.valid=!1)}for(e=0;e<t.vertexes.count;e++)i[e].index=e;for(i=t.edges.iterator;i.next();)e=i.value,e.fromVertex.index>e.toVertex.index&&(t.gm(e),e.rev=!0);break;case Bm:for(i=this.network.vertexes.iterator;i.next();)t=i.value,t.Ll=-1,t.finish=-1;for(t=this.network.edges.iterator;t.next();)t.value.forest=!1;for(this.Kn=0,i.reset();i.next();)e=i.value,e.sourceEdges.count===0&&Tv(this,e);for(i.reset();i.next();)e=i.value,e.Ll===-1&&Tv(this,e);for(t.reset();t.next();)i=t.value,i.forest||(e=i.fromVertex,n=e.finish,r=i.toVertex,o=r.finish,r.Ll<e.Ll&&n<o&&(this.network.gm(i),i.rev=!0));break;case qf:for(t=this.network,e=t.vertexes.iterator,i=1/0;e.next();)i=Math.min(i,e.value.layer);if(1/0>i){if(0>i)for(e.reset();e.next();)e.value.layer-=i;for(i=[],e.reset();e.next();)n=e.value,r=i[n.layer],r===void 0?i[n.layer]=[n]:r.push(n);for(n=e=0;n<i.length;n++)if(r=i[n],!r||r.length===0)e++;else if(0<n)for(o=0;o<r.length;o++)r[o].layer-=e;for(i=t.edges.iterator;i.next();)e=i.value,e.fromVertex.layer<e.toVertex.layer&&(t.gm(e),e.rev=!0)}}};function Qx(t){for(t=t.vertexes.iterator;t.next();){var e=t.value;if(e.valid)return e}return null}function Q1(t){for(t=t.vertexes.iterator;t.next();){var e=t.value;if(e.valid){for(var n=!0,i=e.destinationEdges;i.next();)if(i.value.toVertex.valid){n=!1;break}if(n)return e}}return null}function q1(t){for(t=t.vertexes.iterator;t.next();){var e=t.value;if(e.valid){for(var n=!0,i=e.sourceEdges;i.next();)if(i.value.fromVertex.valid){n=!1;break}if(n)return e}}return null}function Tv(t,e){e.Ll=t.Kn,t.Kn++;for(var n=e.destinationEdges;n.next();){var i=n.value,r=i.toVertex;r.Ll===-1&&(i.forest=!0,Tv(t,r))}e.finish=t.Kn,t.Kn++}ao.prototype.assignLayers=function(){switch(this.Zk){case Iv:tx(this);break;case Av:for(var t,e=this.network.vertexes.iterator;e.next();)t=nx(this,e.value),this.Ia=Math.max(t,this.Ia);for(e.reset();e.next();)t=e.value,t.layer=this.Ia-t.layer;break;default:case zm:for(tx(this),e=this.network.vertexes.iterator;e.next();)e.value.valid=!1;for(e.reset();e.next();)t=e.value,t.sourceEdges.count===0&&ix(this,t);for(t=1/0,e.reset();e.next();)t=Math.min(t,e.value.layer);for(this.Ia=-1,e.reset();e.next();){var n=e.value;n.layer-=t,this.Ia=Math.max(this.Ia,n.layer)}}};function tx(t){for(var e=t.network.vertexes.iterator;e.next();){var n=ex(t,e.value);t.Ia=Math.max(n,t.Ia)}}function ex(t,e){var n=0;if(e.layer===-1){for(var i=e.destinationEdges;i.next();){var r=i.value,o=r.toVertex;r=t.linkMinLength(r),n=Math.max(n,ex(t,o)+r)}e.layer=n}else n=e.layer;return n}function nx(t,e){var n=0;if(e.layer===-1){for(var i=e.sourceEdges;i.next();){var r=i.value,o=r.fromVertex;r=t.linkMinLength(r),n=Math.max(n,nx(t,o)+r)}e.layer=n}else n=e.layer;return n}function ix(t,e){if(!e.valid){e.valid=!0;for(var n=e.destinationEdges;n.next();)ix(t,n.value.toVertex);for(n=t.network.vertexes.iterator;n.next();)n.value.component=-1;for(var i=e.sourceEdgesArrayAccess,r=i.length,o=0;o<r;o++){var s=i[o],l=s.fromVertex,u=s.toVertex;s=t.linkMinLength(s),l.layer-u.layer>s&&Qf(t,l,0,-1,!0,!1)}for(Qf(t,e,1,-1,!0,!0);e.component!==0;){for(o=0,i=1/0,l=0,u=null,s=t.network.vertexes.iterator;s.next();){var d=s.value;if(d.component===1){var p=0,v=!1,E=d.sourceEdgesArrayAccess;r=E.length;for(var M=0;M<r;M++){var R=E[M],j=R.fromVertex;p+=1,j.component!==1&&(o+=1,j=j.layer-d.layer,R=t.linkMinLength(R),i=Math.min(i,j-R))}for(E=d.destinationEdgesArrayAccess,r=E.length,M=0;M<r;M++)R=E[M].toVertex,--p,R.component!==1?--o:v=!0;(u===null||p<l)&&!v&&(u=d,l=p)}}if(0<o){for(n.reset();n.next();)r=n.value,r.component===1&&(r.layer+=i);e.component=0}else u.component=0}for(n=t.network.vertexes.iterator;n.next();)n.value.component=-1;for(Qf(t,e,1,-1,!0,!1);e.component!==0;){for(i=0,r=1/0,o=0,l=null,u=t.network.vertexes.iterator;u.next();)if(s=u.value,s.component===1){for(d=0,p=!1,E=s.sourceEdgesArrayAccess,v=E.length,M=0;M<v;M++)R=E[M].fromVertex,d+=1,R.component!==1?i+=1:p=!0;for(E=s.destinationEdgesArrayAccess,v=E.length,M=0;M<v;M++)R=E[M],j=R.toVertex,--d,j.component!==1&&(--i,j=s.layer-j.layer,R=t.linkMinLength(R),r=Math.min(r,j-R));(l===null||d>o)&&!p&&(l=s,o=d)}if(0>i){for(n.reset();n.next();)i=n.value,i.component===1&&(i.layer-=r);e.component=0}else l.component=0}}}function rx(t,e,n){return t.K===90?n&&!e.rev||!n&&e.rev?270:90:t.K===180?n&&!e.rev||!n&&e.rev?0:180:t.K===270?n&&!e.rev||!n&&e.rev?90:270:n&&!e.rev||!n&&e.rev?180:0}ao.prototype.initializeIndices=function(){switch(this.Qk){default:case Ov:for(var t=this.network.vertexes.iterator;t.next();){var e=t.value,n=e.layer;e.index=this.tc[n],this.tc[n]++}break;case $m:for(t=this.network.vertexes.iterator,e=this.Ia;0<=e;e--)for(t.reset();t.next();)n=t.value,n.layer===e&&n.index===-1&&ox(this,n);break;case Mv:for(t=this.network.vertexes.iterator,e=0;e<=this.Ia;e++)for(t.reset();t.next();)n=t.value,n.layer===e&&n.index===-1&&sx(this,n)}};function ox(t,e){var n=e.layer;for(e.index=t.tc[n],t.tc[n]++,e=e.destinationEdgesArrayAccess,n=!0;n;){n=!1;for(var i=0;i<e.length-1;i++){var r=e[i],o=e[i+1];r.portFromColOffset>o.portFromColOffset&&(n=!0,e[i]=o,e[i+1]=r)}}for(n=0;n<e.length;n++)i=e[n],i.valid&&(i=i.toVertex,i.index===-1&&ox(t,i))}function sx(t,e){var n=e.layer;e.index=t.tc[n],t.tc[n]++,e=e.sourceEdgesArrayAccess;for(var i=!0;i;)for(i=!1,n=0;n<e.length-1;n++){var r=e[n],o=e[n+1];r.portToColOffset>o.portToColOffset&&(i=!0,e[n]=o,e[n+1]=r)}for(n=0;n<e.length;n++)i=e[n],i.valid&&(i=i.fromVertex,i.index===-1&&sx(t,i))}ao.prototype.reduceCrossings=function(){var t=this.countCrossings(),e=Rl(this),n,i;for(n=0;n<this.bj;n++){for(i=0;i<=this.Ia;i++)Dm(this,i,1),Hu(this,i,1);var r=this.countCrossings();for(r<t&&(t=r,e=Rl(this)),i=this.Ia;0<=i;i--)Dm(this,i,-1),Hu(this,i,-1);r=this.countCrossings(),r<t&&(t=r,e=Rl(this))}for(Ru(this,e),n=0;n<this.bj;n++){for(i=0;i<=this.Ia;i++)Dm(this,i,0),Hu(this,i,0);for(r=this.countCrossings(),r<t&&(t=r,e=Rl(this)),i=this.Ia;0<=i;i--)Dm(this,i,0),Hu(this,i,0);r=this.countCrossings(),r<t&&(t=r,e=Rl(this))}Ru(this,e);var o,s,l;switch(this.rk){case Lv:break;case Rv:for(l=t+1;(i=this.countCrossings())<l;)for(l=i,n=this.Ia;0<=n;n--)for(s=0;s<=n;s++){for(o=!0;o;)for(o=!1,i=n;i>=s;i--)o=Hu(this,i,-1)||o;for(r=this.countCrossings(),r>=t?Ru(this,e):(t=r,e=Rl(this)),o=!0;o;)for(o=!1,i=n;i>=s;i--)o=Hu(this,i,1)||o;for(r=this.countCrossings(),r>=t?Ru(this,e):(t=r,e=Rl(this)),o=!0;o;)for(o=!1,i=s;i<=n;i++)o=Hu(this,i,1)||o;for(r>=t?Ru(this,e):(t=r,e=Rl(this)),o=!0;o;)for(o=!1,i=s;i<=n;i++)o=Hu(this,i,-1)||o;for(r>=t?Ru(this,e):(t=r,e=Rl(this)),o=!0;o;)for(o=!1,i=n;i>=s;i--)o=Hu(this,i,0)||o;for(r>=t?Ru(this,e):(t=r,e=Rl(this)),o=!0;o;)for(o=!1,i=s;i<=n;i++)o=Hu(this,i,0)||o;r>=t?Ru(this,e):(t=r,e=Rl(this))}break;default:case jm:for(n=this.Ia,s=0,l=t+1;(i=this.countCrossings())<l;){for(l=i,o=!0;o;)for(o=!1,i=n;i>=s;i--)o=Hu(this,i,-1)||o;for(r=this.countCrossings(),r>=t?Ru(this,e):(t=r,e=Rl(this)),o=!0;o;)for(o=!1,i=n;i>=s;i--)o=Hu(this,i,1)||o;for(r=this.countCrossings(),r>=t?Ru(this,e):(t=r,e=Rl(this)),o=!0;o;)for(o=!1,i=s;i<=n;i++)o=Hu(this,i,1)||o;for(r>=t?Ru(this,e):(t=r,e=Rl(this)),o=!0;o;)for(o=!1,i=s;i<=n;i++)o=Hu(this,i,-1)||o;for(r>=t?Ru(this,e):(t=r,e=Rl(this)),o=!0;o;)for(o=!1,i=n;i>=s;i--)o=Hu(this,i,0)||o;for(r>=t?Ru(this,e):(t=r,e=Rl(this)),o=!0;o;)for(o=!1,i=s;i<=n;i++)o=Hu(this,i,0)||o;r>=t?Ru(this,e):(t=r,e=Rl(this))}}Ru(this,e)};function Dm(t,e,n){var i=rd(t,e),r=t.tc[e],o=J1(t,e,n),s=Cv(t,e,n);for(n=0;n<r;n++)s[n]===-1&&(s[n]=i[n].column),o[n]===-1&&(o[n]=i[n].column);for(var l=!0,u;l;)for(l=!1,n=0;n<r-1;n++)(o[n+1]<o[n]||o[n+1]===o[n]&&s[n+1]<s[n])&&(l=!0,u=o[n],o[n]=o[n+1],o[n+1]=u,u=s[n],s[n]=s[n+1],s[n+1]=u,u=i[n],i[n]=i[n+1],i[n+1]=u);for(n=o=0;n<r;n++)u=i[n],u.index=n,o+=t.nodeMinColumnSpace(u,!0),u.column=o,o+=1,o+=t.nodeMinColumnSpace(u,!1);od(t,e,i)}function Hu(t,e,n){var i=rd(t,e),r=t.tc[e];n=X1(t,e,n);var o,s=[];for(o=0;o<r;o++)s[o]=-1;var l=[];for(o=0;o<r;o++)l[o]=-1;for(var u=!1,d=!0;d;)for(d=!1,o=0;o<r-1;o++){var p=n[i[o].index*r+i[o+1].index],v=n[i[o+1].index*r+i[o].index],E=0,M=0,R=i[o].column,j=i[o+1].column,at=t.nodeMinColumnSpace(i[o],!0),q=t.nodeMinColumnSpace(i[o],!1),gt=t.nodeMinColumnSpace(i[o+1],!0),wt=t.nodeMinColumnSpace(i[o+1],!1);at=R-at+gt,q=j-q+wt;var Ot=i[o].sourceEdges.iterator;for(Ot.reset();Ot.next();)if(gt=Ot.value,wt=gt.fromVertex,gt.valid&&wt.layer===e){for(gt=0;i[gt]!==wt;)gt++;gt<o&&(E+=2*(o-gt),M+=2*(o+1-gt)),gt===o+1&&(E+=1),gt>o+1&&(E+=4*(gt-o),M+=4*(gt-(o+1)))}for(Ot=i[o].destinationEdges.iterator,Ot.reset();Ot.next();)if(gt=Ot.value,wt=gt.toVertex,gt.valid&&wt.layer===e){for(gt=0;i[gt]!==wt;)gt++;gt===o+1&&(M+=1)}for(Ot=i[o+1].sourceEdges.iterator,Ot.reset();Ot.next();)if(gt=Ot.value,wt=gt.fromVertex,gt.valid&&wt.layer===e){for(gt=0;i[gt]!==wt;)gt++;gt<o&&(E+=2*(o+1-gt),M+=2*(o-gt)),gt===o&&(M+=1),gt>o+1&&(E+=4*(gt-(o+1)),M+=4*(gt-o))}for(Ot=i[o+1].destinationEdges.iterator,Ot.reset();Ot.next();)if(gt=Ot.value,wt=gt.toVertex,gt.valid&&wt.layer===e){for(gt=0;i[gt]!==wt;)gt++;gt===o&&(E+=1)}gt=wt=0,Ot=s[i[o].index];var Gt=l[i[o].index],ce=s[i[o+1].index],Mn=l[i[o+1].index];Ot!==-1&&(wt+=Math.abs(Ot-R),gt+=Math.abs(Ot-q)),Gt!==-1&&(wt+=Math.abs(Gt-R),gt+=Math.abs(Gt-q)),ce!==-1&&(wt+=Math.abs(ce-j),gt+=Math.abs(ce-at)),Mn!==-1&&(wt+=Math.abs(Mn-j),gt+=Math.abs(Mn-at)),(M<E-.5||M===E&&v<p-.5||M===E&&v===p&><wt-.5)&&(d=u=!0,i[o].column=q,i[o+1].column=at,p=i[o],i[o]=i[o+1],i[o+1]=p)}for(o=0;o<r;o++)i[o].index=o;return od(t,e,i),u}ao.prototype.straightenAndPack=function(){if(this.ve===0){var t=(this.bg&1)!==0,e=(this.bg&sb)!==0;if(1e3<this.network.edges.count&&e&&(t=!1),t){var n=[];for(e=0;e<=this.Ia;e++)n[e]=0;for(var i,r=this.network.vertexes.iterator;r.next();){var o=r.value;e=o.layer,i=o.column,o=this.nodeMinColumnSpace(o,!1),n[e]=Math.max(n[e],i+o)}for(r.reset();r.next();)o=r.value,e=o.layer,i=o.column,o.column=(8*(this.Ra-n[e])>>1)+8*i;this.Ra*=8}if(this.bg&2)for(n=!0;n;){for(n=!1,e=this.Md+1;e<=this.Ia;e++)n=Zp(this,e,1)||n;for(e=this.Md-1;0<=e;e--)n=Zp(this,e,-1)||n;n=Zp(this,this.Md,0)||n}if(this.bg&4){for(e=this.Md+1;e<=this.Ia;e++)kv(this,e,1);for(e=this.Md-1;0<=e;e--)kv(this,e,-1);kv(this,this.Md,0)}if(t&&(ax(this,-1),ax(this,1)),this.bg&2)for(n=!0;n;){for(n=!1,n=Zp(this,this.Md,0)||n,e=this.Md+1;e<=this.Ia;e++)n=Zp(this,e,0)||n;for(e=this.Md-1;0<=e;e--)n=Zp(this,e,0)||n}}else nb(this)};function Zp(t,e,n){for(var i=!1;qx(t,e,n);)i=!0;return i}function qx(t,e,n){var i,r=rd(t,e),o=t.tc[e],s=Cv(t,e,-1);if(0<n)for(i=0;i<o;i++)s[i]=-1;var l=Cv(t,e,1);if(0>n)for(i=0;i<o;i++)l[i]=-1;for(var u=!1,d=!0;d;)for(d=!1,i=0;i<o;i++){var p=r[i].column,v=t.nodeMinColumnSpace(r[i],!0),E=t.nodeMinColumnSpace(r[i],!1),M=0;0>i-1||p-r[i-1].column-1>v+t.nodeMinColumnSpace(r[i-1],!1)?M=p-1:M=p,v=i+1>=o||r[i+1].column-p-1>E+t.nodeMinColumnSpace(r[i+1],!0)?p+1:p;var R=E=0,j=0;if(0>=n)for(var at=r[i].sourceEdges.iterator;at.next();){var q=at.value,gt=q.fromVertex;if(q.valid&>.layer!==e){var wt=wv(q),Ot=q.portFromColOffset;q=q.portToColOffset,gt=gt.column,E+=(Math.abs(p+q-(gt+Ot))+1)*wt,R+=(Math.abs(M+q-(gt+Ot))+1)*wt,j+=(Math.abs(v+q-(gt+Ot))+1)*wt}}if(0<=n)for(at=r[i].destinationEdges.iterator;at.next();)q=at.value,gt=q.toVertex,q.valid&>.layer!==e&&(wt=wv(q),Ot=q.portFromColOffset,q=q.portToColOffset,gt=gt.column,E+=(Math.abs(p+Ot-(gt+q))+1)*wt,R+=(Math.abs(M+Ot-(gt+q))+1)*wt,j+=(Math.abs(v+Ot-(gt+q))+1)*wt);q=Ot=wt=0,at=s[r[i].index],gt=l[r[i].index],at!==-1&&(wt+=Math.abs(at-p),Ot+=Math.abs(at-M),q+=Math.abs(at-v)),gt!==-1&&(wt+=Math.abs(gt-p),Ot+=Math.abs(gt-M),q+=Math.abs(gt-v)),R<E||R===E&&Ot<wt?(d=u=!0,r[i].column=M):(j<E||j===E&&q<wt)&&(d=u=!0,r[i].column=v)}return od(t,e,r),t.normalize(),u}function kv(t,e,n){var i=rd(t,e),r=t.tc[e],o=J1(t,e,n),s=[];for(n=0;n<r;n++)s[n]=o[n];for(o=!0;o;)for(o=!1,n=0;n<r;n++){var l=i[n].column,u=t.nodeMinColumnSpace(i[n],!0),d=t.nodeMinColumnSpace(i[n],!1),p=0;if(s[n]===-1)if(n===0&&n===r-1)p=l;else if(n===0){var v=i[n+1].column;v-l===d+t.nodeMinColumnSpace(i[n+1],!0)?p=l-1:p=l}else n===r-1?(v=i[n-1].column,p=l-v===u+t.nodeMinColumnSpace(i[n-1],!1)?l+1:l):(v=i[n-1].column,u=v+t.nodeMinColumnSpace(i[n-1],!1)+u+1,v=i[n+1].column,d=v-t.nodeMinColumnSpace(i[n+1],!0)-d-1,p=(u+d)/2|0);else n===0&&n===r-1?p=s[n]:n===0?(v=i[n+1].column,d=v-t.nodeMinColumnSpace(i[n+1],!0)-d-1,p=Math.min(s[n],d)):n===r-1?(v=i[n-1].column,u=v+t.nodeMinColumnSpace(i[n-1],!1)+u+1,p=Math.max(s[n],u)):(v=i[n-1].column,u=v+t.nodeMinColumnSpace(i[n-1],!1)+u+1,v=i[n+1].column,d=v-t.nodeMinColumnSpace(i[n+1],!0)-d-1,u<s[n]&&s[n]<d?p=s[n]:u>=s[n]?p=u:d<=s[n]&&(p=d));p!==l&&(o=!0,i[n].column=p)}od(t,e,i),t.normalize()}function tb(t,e){for(var n=!0,i=t.network.vertexes.iterator;i.next();){var r=i.value,o=t.nodeMinColumnSpace(r,!0),s=t.nodeMinColumnSpace(r,!1);if(r.column-o<=e&&r.column+s>=e){n=!1;break}}if(t=!1,n)for(i.reset();i.next();)n=i.value,n.column>e&&(--n.column,t=!0);return t}function eb(t,e){var n=e+1,i,r=[],o=[];for(i=0;i<=t.Ia;i++)r[i]=!1,o[i]=!1;for(var s=t.network.vertexes.iterator;s.next();){i=s.value;var l=i.column-t.nodeMinColumnSpace(i,!0),u=i.column+t.nodeMinColumnSpace(i,!1);l<=e&&u>=e&&(r[i.layer]=!0),l<=n&&u>=n&&(o[i.layer]=!0)}for(l=!0,n=!1,i=0;i<=t.Ia;i++)l=l&&!(r[i]&&o[i]);if(l)for(s.reset();s.next();)t=s.value,t.column>e&&(--t.column,n=!0);return n}function ax(t,e){for(var n=0;n<=t.Ra;n++)for(;tb(t,n););for(t.normalize(),n=0;n<t.Ra;n++)for(;eb(t,n););t.normalize();var i;if(0<e)for(n=0;n<=t.Ra;n++){var r=Rl(t),o=Rm(t);for(i=o+1;o<i;){i=o,lx(t,n,1);var s=Rm(t);s>o?Ru(t,r):s<o&&(o=s,r=Rl(t))}}if(0>e)for(n=t.Ra;0<=n;n--)for(r=Rl(t),o=Rm(t),i=o+1;o<i;)i=o,lx(t,n,-1),s=Rm(t),s>o?Ru(t,r):s<o&&(o=s,r=Rl(t));t.normalize()}function lx(t,e,n){t.le=0;for(var i=t.network.vertexes.iterator;i.next();)i.value.component=-1;if(0<n)for(i.reset();i.next();){var r=i.value;r.column-t.nodeMinColumnSpace(r,!0)<=e&&(r.component=t.le)}if(0>n)for(i.reset();i.next();)r=i.value,r.column+t.nodeMinColumnSpace(r,!1)>=e&&(r.component=t.le);for(t.le++,i.reset();i.next();)e=i.value,e.component===-1&&(Ev(t,e,t.le,-1,!0,!0),t.le++);var o;for(e=[],o=0;o<t.le*t.le;o++)e[o]=!1;for(r=[],o=0;o<(t.Ia+1)*(t.Ra+1);o++)r[o]=-1;for(i.reset();i.next();){o=i.value;for(var s=o.layer,l=Math.max(0,o.column-t.nodeMinColumnSpace(o,!0)),u=Math.min(t.Ra,o.column+t.nodeMinColumnSpace(o,!1));l<=u;l++)r[s*(t.Ra+1)+l]=o.component}for(o=0;o<=t.Ia;o++){if(0<n)for(s=0;s<t.Ra;s++)r[o*(t.Ra+1)+s]!==-1&&r[o*(t.Ra+1)+s+1]!==-1&&r[o*(t.Ra+1)+s]!==r[o*(t.Ra+1)+s+1]&&(e[r[o*(t.Ra+1)+s]*t.le+r[o*(t.Ra+1)+s+1]]=!0);if(0>n)for(s=t.Ra;0<s;s--)r[o*(t.Ra+1)+s]!==-1&&r[o*(t.Ra+1)+s-1]!==-1&&r[o*(t.Ra+1)+s]!==r[o*(t.Ra+1)+s-1]&&(e[r[o*(t.Ra+1)+s]*t.le+r[o*(t.Ra+1)+s-1]]=!0)}for(r=[],o=0;o<t.le;o++)r[o]=!0;for(s=[],s.push(0);s.length!==0;)if(u=s[s.length-1],s.pop(),r[u])for(r[u]=!1,o=0;o<t.le;o++)e[u*t.le+o]&&s.splice(0,0,o);if(0<n)for(i.reset();i.next();)t=i.value,r[t.component]&&--t.column;if(0>n)for(i.reset();i.next();)n=i.value,r[n.component]&&(n.column+=1)}function nb(t){for(var e=Le(),n=t.fl.length,i=0;i<=n;i++)e[i]=[];for(i=t.network.vertexes.iterator;i.next();){var r=i.value;e[n-r.layer][r.index]=r}n=new je,ib(e,n);var o=null,s=null,l=null,u=null,d=(t.ve&1)!==0,p=(t.ve&2)!==0,v=(t.ve&4)!==0,E=(t.ve&8)!==0;for(d&&(t.verticalAlignment(e,n,!0),o=Pm(t,e,!0,!1)),e.reverse(),v&&(t.verticalAlignment(e,n,!1),l=Pm(t,e,!1,!1)),i=er(e),r=i.next();!r.done;r=i.next())r.value.reverse();E&&(t.verticalAlignment(e,n,!1),u=Pm(t,e,!1,!0)),e.reverse(),p&&(t.verticalAlignment(e,n,!0),s=Pm(t,e,!0,!0)),tn(e),t.u(o,s,l,u),t.network.vertexes.each(function(M){var R=Le();d&&R.push(o.get(M)),p&&R.push(s.get(M)),v&&R.push(l.get(M)),E&&R.push(u.get(M)),R.sort(function(at,q){return at-q});var j=R.length;j=(R[Math.floor((j-1)/2)]+R[Math.ceil((j-1)/2)])/2,tn(R),M.zc=j})}function ib(t,e){for(var n=t.length,i=1;i<n-1;i++)for(var r=0,o=0,s=t[i],l=t[i+1],u=0;o<l.length;u++){var d=l[u];t:{if(d.node===null){var p=Dv(d);if(0<p.length){p=p[0].node===null;break t}}p=!1}var v=p;if(u===l.length-1||v){for(p=s.length-1,v&&(p=Dv(d)[0].index);o<=u;){if(d=l[o],!d.bo){v=[];for(var E=er(d.sourceEdgesArrayAccess),M=E.next();!M.done;M=E.next())M=M.value,M.valid&&v.push(M);d.bo=v}for(d=er(d.bo),v=d.next();!v.done;v=d.next())v=v.value,E=v.fromVertex.index,(E<r||E>p)&&e.add(v);o++}r=p}}}ao.prototype.verticalAlignment=function(t,e,n){rb(t),t=er(t);for(var i=t.next();!i.done;i=t.next()){var r=-1;i=er(i.value);for(var o=i.next();!o.done;o=i.next()){o=o.value;var s=n?Dv(o):ab(o),l=s.length;if(0<l){s.sort(function(v,E){return v.vi-E.vi});var u=(l-1)/2;for(l=Math.floor(u),u=Math.ceil(u);l<=u;l++)if(o.align===o){var d=s[l],p=void 0;p=n?Um(d,o):Um(o,d),!e.contains(p)&&r<d.vi&&(d.align=o,o.root=d.root,o.align=d.root,r=d.vi)}}}}};function rb(t){for(var e=0;e<t.length;e++)for(var n=t[e],i=0;i<n.length;i++){var r=n[i];r.root=r,r.align=r,r.Tz=e,r.vi=i}}function Pm(t,e,n,i){for(var r=t.K===90||t.K===270,o=er(e),s=o.next();!s.done;s=o.next()){var l=er(s.value);for(s=l.next();!s.done;s=l.next())s=s.value,s.sd=s,s.shift=1/0,s.zc=NaN,s.qg=0}for(s=t.K===90||t.K===270,o=er(e),l=o.next();!l.done;l=o.next()){l=er(l.value);for(var u=l.next();!u.done;u=l.next())if(u=u.value,u.root===u){for(var d=0,p=u;p.align!==u;){var v=p.align,E=s?p.width:p.height,M=s?v.width:v.height;if(n){var R=Um(p,v),j=R.portFromPos,at=R.portToPos;R.link!==null&&(p.node&&p.node!==R.link.fromNode&&(j=s?p.focusX:p.focusY),v.node&&v.node!==R.link.toNode&&(at=s?v.focusX:v.focusY))}else R=Um(v,p),j=R.portToPos,at=R.portFromPos,R.link!==null&&(p.node&&p.node!==R.link.toNode&&(j=s?p.focusX:p.focusY),v.node&&v.node!==R.link.fromNode&&(at=s?v.focusX:v.focusY));E=i?p.qg+(E-j)-(M-at):p.qg+j-at,v.qg=E,d=Math.min(d,E),p=p.align}p=u;do p.qg=p.qg-d,p=p.align;while(p!==u)}}for(n=er(e),s=n.next();!s.done;s=n.next())for(o=er(s.value),s=o.next();!s.done;s=o.next())s=s.value,s.root===s&&ux(t,s,e);for(n=0;n<e.length;n++)if(!(0>=e[n].length)&&(s=e[n][0],s.sd===s)){s.sd.shift===1/0&&(s.sd.shift=0),s=n,l=0;do{for(o=e[s][l];o.align!==o.root;)o=o.align,s++,0<o.vi&&(l=cx(o,e),l.sd.shift=Math.min(l.sd.shift,o.sd.shift+o.zc+o.qg-(l.zc+l.qg+(r?l.width:l.height)+t.columnSpacing)));l=o.vi+1}while(s<e.length&&l<e[s].length&&o.sd===e[s][l].sd)}for(t=new pt,e=er(e),s=e.next();!s.done;s=e.next())for(n=er(s.value),s=n.next();!s.done;s=n.next())s=s.value,s.zc=s.zc+s.sd.shift+s.qg,o=r?s.width:s.height,t.add(s,i?-s.zc-o:s.zc);return t}function ux(t,e,n){if(isNaN(e.zc)){e.zc=0;var i=e;do{if(0<i.vi){var r=cx(i,n),o=r.root;ux(t,o,n),e.sd===e&&(e.sd=o.sd);var s=t.K===90||t.K===270?r.width:r.height;e.sd===o.sd&&(e.zc=Math.max(e.zc,o.zc+r.qg+s-i.qg+t.columnSpacing))}i=i.align}while(i!==e);for(;i.align!==e;)i=i.align,i.zc=e.zc,i.sd=e.sd}}function cx(t,e){var n=t.Tz;return t=t.vi,1>t&&ne("Could not determine previous vertex in layer"),e[n][t-1]}ao.prototype.u=function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];n=-1;for(var i=Le(),r=Le(),o=1/0,s=0;4>s;s++)if(e[s]){var l=ob(this,e[s],i,r,s);l<o&&(n=s,o=l)}for(o={},s=0;4>s;o={delta:o.delta},s++)e[s]&&(o.delta=s===0||s===2?i[n]-i[s]:r[n]-r[s],o.delta!==0&&e[s].each(function(u){return function(d){d.value+=u.delta}}(o)));tn(i),tn(r)};function ob(t,e,n,i,r){if(!e||e.count===0)return n[r]=0,i[r]=0,1/0;var o=1/0,s=-1/0;return e.each(function(l){var u=l.key;l=l.value,u=t.K===90||t.K===270?u.width:u.height,l<o&&(o=l),l+u>s&&(s=l+u)}),n[r]=o,i[r]=s,s-o}ao.prototype.commitLayout=function(){if(this.setsPortSpots)for(var t=Fm(this,!0),e=Fm(this,!1),n=this.network.edges.iterator;n.next();){var i=n.value.link;i!==null&&(i.fromSpot=t,i.toSpot=e)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function Fm(t,e){return t.K===270?e?os:is:t.K===90?e?is:os:t.K===180?e?cs:qr:e?qr:cs}ao.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var t=0;t<=this.Ia;t++)this.he[t]=0,this.Ld[t]=0,this.Kd[t]=0,this.Ta[t]=0;for(t=this.network.vertexes.iterator;t.next();){var e=t.value,n=e.layer;this.he[n]=Math.max(this.he[n],this.nodeMinLayerSpace(e,!0)),this.Ld[n]=Math.max(this.Ld[n],this.nodeMinLayerSpace(e,!1))}e=0,n=this.ie;for(var i=0;i<=this.Ia;i++){var r=n;0>=this.he[i]+this.Ld[i]&&(r=0),0<i&&(e+=r/2),this.K===90||this.K===0?(e+=this.Ld[i],this.Kd[i]=e,e+=this.he[i]):(e+=this.he[i],this.Kd[i]=e,e+=this.Ld[i]),i<this.Ia&&(e+=r/2),this.Ta[i]=e}for(n=e,e=this.arrangementOrigin,i=0;i<=this.Ia;i++)this.K===270?this.Kd[i]=e.y+this.Kd[i]:this.K===90?(this.Kd[i]=e.y+n-this.Kd[i],this.Ta[i]=n-this.Ta[i]):this.K===180?this.Kd[i]=e.x+this.Kd[i]:(this.Kd[i]=e.x+n-this.Kd[i],this.Ta[i]=n-this.Ta[i]);n=this.ve!==0,t.reset(),i=this.K===270||this.K===90;for(var o=1/0,s=r=1/0,l=-1/0;t.next();){var u=t.value,d=u.layer,p=u.column|0;i?(s=e.x+this.kc*p,d=this.Kd[d]):(s=this.Kd[d],d=e.y+this.kc*p),u.centerX=s,u.centerY=d,n&&isFinite(u.zc)&&(i?u.node?u.x=e.x+u.zc:u.centerX=e.x+u.zc:u.node?u.y=e.y+u.zc:u.centerY=e.y+u.zc),o=Math.min(u.x,o),r=Math.min(u.y,r),i?(s=o,l=Math.max(l,u.bounds.right)):(s=r,l=Math.max(l,u.bounds.bottom))}for(this.xw=l-s,o=e.x-o,e=e.y-r,this.Rf=new $(n&&i?0:o,n&&!i?0:e),t.reset();t.next();)n=t.value,n.x+=o,n.y+=e,n.commit()},ao.prototype.Gu=function(){for(var t=0,e=this.ie,n=0;n<=this.Ia;n++)t+=this.he[n],t+=this.Ld[n];t+=this.Ia*e,e=[],n=this.ve!==0?this.xw:this.kc*this.Ra;for(var i=this.maxLayer;0<=i;i--)this.K===270?i===0?e.push(new ke(0,0,n,Math.abs(this.Ta[0]))):e.push(new ke(0,this.Ta[i-1],n,Math.abs(this.Ta[i-1]-this.Ta[i]))):this.K===90?i===0?e.push(new ke(0,this.Ta[0],n,Math.abs(this.Ta[0]-t))):e.push(new ke(0,this.Ta[i],n,Math.abs(this.Ta[i-1]-this.Ta[i]))):this.K===180?i===0?e.push(new ke(0,0,Math.abs(this.Ta[0]),n)):e.push(new ke(this.Ta[i-1],0,Math.abs(this.Ta[i-1]-this.Ta[i]),n)):i===0?e.push(new ke(this.Ta[0],0,Math.abs(this.Ta[0]-t),n)):e.push(new ke(this.Ta[i],0,Math.abs(this.Ta[i-1]-this.Ta[i]),n));this.commitLayers(e,this.Rf)},ao.prototype.commitLayers=function(){},ao.prototype.commitLinks=function(){for(var t=this.network.edges.iterator,e;t.next();)e=t.value.link,e!==null&&(e.uh(),e.Fj(),e.zf());for(t.reset();t.next();)e=t.value.link,e!==null&&e.vg();for(t.reset();t.next();){var n=t.value;if(e=n.link,e!==null){e.uh();var i=e,r=i.fromNode,o=i.toNode,s=i.fromPort,l=i.toPort;if(r!==null){var u=r.findVisibleNode();u!==null&&u!==r&&(r=u,s=u.port)}o!==null&&(u=o.findVisibleNode(),u!==null&&u!==o&&(o=u,l=u.port));var d=e.computeSpot(!0,s);u=e.computeSpot(!1,l);var p=n.fromVertex,v=n.toVertex;if(n.valid)e.curve===yu&&e.pointsCount===4&&(p.column===v.column&&this.alignOption===0?(n=e.getLinkPoint(r,s,d,!0,!1,o,l),l=e.getLinkPoint(o,l,u,!1,!1,r,s),n.w()||n.set(r.actualBounds.center),l.w()||l.set(o.actualBounds.center),e.Fj(),e.yf(n.x,n.y),e.yf((2*n.x+l.x)/3,(2*n.y+l.y)/3),e.yf((n.x+2*l.x)/3,(n.y+2*l.y)/3),e.yf(l.x,l.y)):(n=i=!1,s!==null&&d===us&&(i=!0),l!==null&&u===us&&(n=!0),(i||n)&&(u=null,i&&(u=e.getLinkPointFromPoint(r,s,s.ga(Sr),e.i(3),!0),u.w()||u.set(r.actualBounds.center),e.L(0,u.x,u.y)),r=null,n&&(r=e.getLinkPointFromPoint(o,l,l.ga(Sr),e.i(0),!1),r.w()||r.set(o.actualBounds.center),e.L(3,r.x,r.y)),u&&(o=e.i(2),e.L(1,(2*u.x+o.x)/3,(2*u.y+o.y)/3)),r&&(o=e.i(1),e.L(2,(2*r.x+o.x)/3,(2*r.y+o.y)/3))))),e.zf();else if(p.layer===v.layer)e.zf();else{var E=!1,M=!1,R=this.ie,j=e.firstPickIndex+1;if(e.isOrthogonal){M=!0;var at=e.pointsCount;4<at&&e.points.removeRange(2,at-3)}else if(e.curve===yu)E=!0,at=e.pointsCount,4<at&&e.points.removeRange(2,at-3),at===4&&(j=2);else{at=e.pointsCount;var q=d===us,gt=u===us;2<at&&q&>?e.points.removeRange(1,at-2):3<at&&q&&!gt?e.points.removeRange(1,at-3):3<at&&!q&>?e.points.removeRange(2,at-2):4<at&&!q&&!gt&&e.points.removeRange(2,at-3)}if(n.rev){for(;v!==null&&p!==v;){var wt=at=null;for(q=v.sourceEdges.iterator;q.next()&&(gt=q.value,gt.link!==n.link||(at=gt.fromVertex,wt=gt.toVertex,at.node!==null)););if(at===null)break;if(at!==p){q=e.i(j-1).x,gt=e.i(j-1).y;var Ot=at.centerX,Gt=at.centerY;if(M)this.K===180||this.K===0?j===e.firstPickIndex+1?(e.m(j++,q,gt),e.m(j++,q,Gt)):(wt!==null?wt.centerY:gt)!==Gt&&(wt=this.Ta[at.layer-1]+this.Rf.x,e.m(j++,wt,gt),e.m(j++,wt,Gt)):j===e.firstPickIndex+1?(e.m(j++,q,gt),e.m(j++,Ot,gt)):(wt!==null?wt.centerX:q)!==Ot&&(wt=this.Ta[at.layer-1]+this.Rf.y,e.m(j++,q,wt),e.m(j++,Ot,wt));else if(j===e.firstPickIndex+1){wt=Math.max(10,this.he[v.layer]);var ce=Math.max(10,this.Ld[v.layer]);if(E)this.K===180?Ot<=v.bounds.x?(v=v.bounds.x,e.m(j++,v-wt,Gt),e.m(j++,v,Gt),e.m(j++,v+ce,Gt)):(e.m(j++,Ot-wt,Gt),e.m(j++,Ot,Gt),e.m(j++,Ot+ce,Gt)):this.K===90?Gt>=v.bounds.bottom?(v=v.bounds.y+v.bounds.height,e.m(j++,Ot,v+ce),e.m(j++,Ot,v),e.m(j++,Ot,v-wt)):(e.m(j++,Ot,Gt+ce),e.m(j++,Ot,Gt),e.m(j++,Ot,Gt-wt)):this.K===270?Gt<=v.bounds.y?(v=v.bounds.y,e.m(j++,Ot,v-wt),e.m(j++,Ot,v),e.m(j++,Ot,v+ce)):(e.m(j++,Ot,Gt-wt),e.m(j++,Ot,Gt),e.m(j++,Ot,Gt+ce)):this.K===0&&(Ot>=v.bounds.right?(v=v.bounds.x+v.bounds.width,e.m(j++,v+ce,Gt),e.m(j++,v,Gt),e.m(j++,v-wt,Gt)):(e.m(j++,Ot+ce,Gt),e.m(j++,Ot,Gt),e.m(j++,Ot-wt,Gt)));else{e.m(j++,q,gt);var Mn=0;this.K===180||this.K===0?((this.K===180?Ot>=v.bounds.right:Ot<=v.bounds.x)&&(Mn=(this.K===0?-wt:ce)/2),e.m(j++,q+Mn,Gt)):((this.K===270?Gt>=v.bounds.bottom:Gt<=v.bounds.y)&&(Mn=(this.K===90?-wt:ce)/2),e.m(j++,Ot,gt+Mn)),e.m(j++,Ot,Gt)}}else wt=Math.max(10,this.he[at.layer]),ce=Math.max(10,this.Ld[at.layer]),E?this.K===180?(e.m(j++,Ot-wt-R,Gt),e.m(j++,Math.min(Ot-wt+R/2,Ot),Gt),e.m(j++,Ot,Gt),e.m(j++,Ot,Gt),e.m(j++,Math.max(Ot+ce-R/2,Ot),Gt),e.m(j++,Ot+ce+R,Gt)):this.K===90?(e.m(j++,Ot,Gt+ce+R),e.m(j++,Ot,Math.max(Gt+ce-R/2,Gt)),e.m(j++,Ot,Gt),e.m(j++,Ot,Gt),e.m(j++,Ot,Math.min(Gt-wt+R/2,Gt)),e.m(j++,Ot,Gt-wt-R)):this.K===270?(e.m(j++,Ot,Gt-wt-R),e.m(j++,Ot,Math.min(Gt-wt+R/2,Gt)),e.m(j++,Ot,Gt),e.m(j++,Ot,Gt),e.m(j++,Ot,Math.max(Gt+ce-R/2,Gt)),e.m(j++,Ot,Gt+ce+R)):(e.m(j++,Ot+ce+R,Gt),e.m(j++,Math.max(Ot+ce-R/2,Ot),Gt),e.m(j++,Ot,Gt),e.m(j++,Ot,Gt),e.m(j++,Math.min(Ot-wt+R/2,Ot),Gt),e.m(j++,Ot-wt-R,Gt)):e.m(j++,Ot,Gt)}v=at}(l===null||d!==us||M)&&(q=e.i(j-1).x,gt=e.i(j-1).y,Ot=e.i(j).x,Gt=e.i(j).y,M?(R=this.Ld[p.layer],this.K===180||this.K===0?(M=gt,M>=p.bounds.y&&M<=p.bounds.bottom&&(this.K===180?Ot>=p.bounds.x:Ot<=p.bounds.right)&&(v=p.centerX+(this.K===180?-R:R),M<p.bounds.y+p.bounds.height/2?M=p.bounds.y-this.kc/2:M=p.bounds.bottom+this.kc/2,e.m(j++,v,gt),e.m(j++,v,M)),e.m(j++,Ot,M)):(M=q,M>=p.bounds.x&&M<=p.bounds.right&&(this.K===270?Gt>=p.bounds.y:Gt<=p.bounds.bottom)&&(v=p.centerY+(this.K===270?-R:R),M<p.bounds.x+p.bounds.width/2?M=p.bounds.x-this.kc/2:M=p.bounds.right+this.kc/2,e.m(j++,q,v),e.m(j++,M,v)),e.m(j++,M,Gt)),e.m(j++,Ot,Gt)):E?(wt=Math.max(10,this.he[p.layer]),ce=Math.max(10,this.Ld[p.layer]),this.K===180&&Ot>=p.bounds.x?(v=p.bounds.x+p.bounds.width,e.L(j-2,v,gt),e.L(j-1,v+ce,gt)):this.K===90&&Gt<=p.bounds.bottom?(v=p.bounds.y,e.L(j-2,q,v),e.L(j-1,q,v-wt)):this.K===270&&Gt>=p.bounds.y?(v=p.bounds.y+p.bounds.height,e.L(j-2,q,v),e.L(j-1,q,v+ce)):this.K===0&&Ot<=p.bounds.right&&(v=p.bounds.x,e.L(j-2,v,gt),e.L(j-1,v-wt,gt))):(wt=Math.max(10,this.he[p.layer]),ce=Math.max(10,this.Ld[p.layer]),M=0,this.K===180||this.K===0?((this.K===180?Ot<=p.bounds.x:Ot>=p.bounds.right)&&(M=(this.K===0?ce:-wt)/2),e.m(j++,Ot+M,gt)):((this.K===270?Gt<=p.bounds.y:Gt>=p.bounds.bottom)&&(M=(this.K===90?ce:-wt)/2),e.m(j++,q,Gt+M)),e.m(j++,Ot,Gt)))}else{for(;p!==null&&p!==v;){for(wt=at=null,p=p.destinationEdges.iterator;p.next()&&(q=p.value,q.link!==n.link||(at=q.toVertex,wt=q.fromVertex,wt.node!==null&&(wt=null),at.node!==null)););if(at===null)break;at!==v&&(q=e.i(j-1).x,gt=e.i(j-1).y,Ot=at.centerX,Gt=at.centerY,M?this.K===180||this.K===0?(wt!==null?wt.centerY:gt)!==Gt&&(wt=this.Ta[at.layer]+this.Rf.x,j===e.firstPickIndex+1&&(wt=this.K===0?Math.max(wt,q):Math.min(wt,q)),e.m(j++,wt,gt),e.m(j++,wt,Gt)):(wt!==null?wt.centerX:q)!==Ot&&(wt=this.Ta[at.layer]+this.Rf.y,j===e.firstPickIndex+1&&(wt=this.K===90?Math.max(wt,gt):Math.min(wt,gt)),e.m(j++,q,wt),e.m(j++,Ot,wt)):(wt=Math.max(10,this.he[at.layer]),ce=Math.max(10,this.Ld[at.layer]),E?this.K===180?(e.m(j++,Ot+ce+R,Gt),e.m(j++,Math.max(Ot+ce-R/2,Ot),Gt),e.m(j++,Ot,Gt),e.m(j++,Ot,Gt),e.m(j++,Math.min(Ot-wt+R/2,Ot),Gt),e.m(j++,Ot-wt-R,Gt)):this.K===90?(e.m(j++,Ot,Gt-wt-R),e.m(j++,Ot,Math.min(Gt-wt+R/2,Gt)),e.m(j++,Ot,Gt),e.m(j++,Ot,Gt),e.m(j++,Ot,Math.max(Gt+ce-R/2,Gt)),e.m(j++,Ot,Gt+ce+R)):this.K===270?(e.m(j++,Ot,Gt+ce+R),e.m(j++,Ot,Math.max(Gt+ce-R/2,Gt)),e.m(j++,Ot,Gt),e.m(j++,Ot,Gt),e.m(j++,Ot,Math.min(Gt-wt+R/2,Gt)),e.m(j++,Ot,Gt-wt-R)):(e.m(j++,Ot-wt-R,Gt),e.m(j++,Math.min(Ot-wt+R/2,Ot),Gt),e.m(j++,Ot,Gt),e.m(j++,Ot,Gt),e.m(j++,Math.max(Ot+ce-R/2,Ot),Gt),e.m(j++,Ot+ce+R,Gt)):this.K===180?(e.m(j++,Ot+ce,Gt),e.m(j++,Ot-wt,Gt)):this.K===90?(e.m(j++,Ot,Gt-wt),e.m(j++,Ot,Gt+ce)):this.K===270?(e.m(j++,Ot,Gt+ce),e.m(j++,Ot,Gt-wt)):(e.m(j++,Ot-wt,Gt),e.m(j++,Ot+ce,Gt)))),p=at}M&&(q=e.i(j-1).x,gt=e.i(j-1).y,Ot=e.i(j).x,Gt=e.i(j).y,this.K===180||this.K===0?gt!==Gt&&(wt=this.K===0?Math.min(Math.max((Ot+q)/2,this.Ta[v.layer]+this.Rf.x),Ot):Math.max(Math.min((Ot+q)/2,this.Ta[v.layer]+this.Rf.x),Ot),e.m(j++,wt,gt),e.m(j++,wt,Gt)):q!==Ot&&(wt=this.K===90?Math.min(Math.max((Gt+gt)/2,this.Ta[v.layer]+this.Rf.y),Gt):Math.max(Math.min((Gt+gt)/2,this.Ta[v.layer]+this.Rf.y),Gt),e.m(j++,q,wt),e.m(j++,Ot,wt)))}i!==null&&E&&4<=e.pointsCount&&(s!==null&&(s=d===us?e.getLinkPointFromPoint(r,s,s.ga(Sr),e.i(3),!0):e.i(0),d===us&&(d=e.i(2),i=e.i(3),this.direction===90||this.direction===270?(e.L(1,(s.x+d.x)/2,d.y),e.L(2,i.x,(d.y+i.y)/2)):(e.L(1,d.x,(s.y+d.y)/2),e.L(2,(d.x+i.x)/2,i.y))),s.w()||s.set(r.actualBounds.center),e.L(0,s.x,s.y)),l!==null&&(r=u===us?e.getLinkPointFromPoint(o,l,l.ga(Sr),e.i(e.pointsCount-4),!1):e.i(e.pointsCount-1),u===us&&(l=e.i(e.pointsCount-3),u=e.i(e.pointsCount-4),this.direction===90||this.direction===270?(e.L(e.pointsCount-2,(r.x+l.x)/2,l.y),e.L(e.pointsCount-2,u.x,(l.y+u.y)/2)):(e.L(e.pointsCount-2,l.x,(r.y+l.y)/2),e.L(e.pointsCount-3,(l.x+u.x)/2,u.y))),r.w()||r.set(o.actualBounds.center),e.L(e.pointsCount-1,r.x,r.y))),e.zf(),n.commit()}}}this.avoidOrthogonalOverlaps()},ao.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var t=new Re,e=this.network.edges.iterator;e.next();){var n=e.value.link;n!==null&&n.isOrthogonal&&!t.contains(n)&&t.add(n)}if(0<t.count)if(this.K===90||this.K===270){for(e=0,n=[],t=t.iterator;t.next();){var i=t.value;if(i!==null&&i.isOrthogonal)for(var r=2;r<i.pointsCount-3;r++){var o=i.i(r),s=i.i(r+1);if(this.B(o.y,s.y)&&!this.B(o.x,s.x)){var l=new sd;l.layer=Math.floor(o.y/2);var u=i.i(0),d=i.i(i.pointsCount-1);if(l.first=u.x*u.x+u.y,l.jc=d.x*d.x+d.y,l.rd=Math.min(o.x,s.x),l.Ic=Math.max(o.x,s.x),l.index=r,l.link=i,r+2<i.pointsCount){u=i.i(r-1),d=i.i(r+2);var p=0;u.y<o.y?p=d.y<o.y?3:o.x<s.x?2:1:u.y>o.y&&(p=d.y>o.y?0:s.x<o.x?2:1),l.j=p}n.push(l)}}}if(1<n.length)for(n.sort(this.Vx),t=0;t<n.length;){for(o=n[t].layer,i=t+1;i<n.length&&n[i].layer===o;)i++;if(1<i-t)for(o=t;o<i;){for(s=n[o].Ic,r=t+1;r<i&&n[r].rd<s;)s=Math.max(s,n[r].Ic),r++;if(s=r-o,1<s){for(this.zi(n,this.Js,o,o+s),p=1,l=n[o].jc,u=o;u<r;u++)d=n[u],d.jc!==l&&(p++,l=d.jc);this.zi(n,this.Ux,o,o+s);var v=1;for(l=n[o].first,u=o;u<r;u++)d=n[u],d.first!==l&&(v++,l=d.first);for(u=!0,d=v,p<v?(u=!1,d=p,l=n[o].jc,this.zi(n,this.Js,o,o+s)):l=n[o].first,p=0,v=o;v<r;v++){var E=n[v];(u?E.first:E.jc)!==l&&(p++,l=u?E.first:E.jc);var M=E.link;o=M.i(E.index),s=M.i(E.index+1);var R=this.linkSpacing*(p-(d-1)/2);e++,M.uh(),M.L(E.index,o.x,o.y+R),M.L(E.index+1,s.x,s.y+R),M.zf()}}o=r}t=i}}else{for(e=0,n=[],t=t.iterator;t.next();)if(i=t.value,i!==null&&i.isOrthogonal)for(r=2;r<i.pointsCount-3;r++)o=i.i(r),s=i.i(r+1),this.B(o.x,s.x)&&!this.B(o.y,s.y)&&(l=new sd,l.layer=Math.floor(o.x/2),u=i.i(0),d=i.i(i.pointsCount-1),l.first=u.x+u.y*u.y,l.jc=d.x+d.y*d.y,l.rd=Math.min(o.y,s.y),l.Ic=Math.max(o.y,s.y),l.index=r,l.link=i,r+2<i.pointsCount&&(u=i.i(r-1),d=i.i(r+2),p=0,u.x<o.x?p=d.x<o.x?3:o.y<s.y?2:1:u.x>o.x&&(p=d.x>o.x?0:s.y<o.y?2:1),l.j=p),n.push(l));if(1<n.length)for(n.sort(this.Vx),t=0;t<n.length;){for(o=n[t].layer,i=t+1;i<n.length&&n[i].layer===o;)i++;if(1<i-t)for(o=t;o<i;){for(s=n[o].Ic,r=t+1;r<i&&n[r].rd<s;)s=Math.max(s,n[r].Ic),r++;if(s=r-o,1<s){for(this.zi(n,this.Js,o,o+s),p=1,l=n[o].jc,u=o;u<r;u++)d=n[u],d.jc!==l&&(p++,l=d.jc);for(this.zi(n,this.Ux,o,o+s),v=1,l=n[o].first,u=o;u<r;u++)d=n[u],d.first!==l&&(v++,l=d.first);for(u=!0,d=v,p<v?(u=!1,d=p,l=n[o].jc,this.zi(n,this.Js,o,o+s)):l=n[o].first,p=0,v=o;v<r;v++)E=n[v],(u?E.first:E.jc)!==l&&(p++,l=u?E.first:E.jc),M=E.link,o=M.i(E.index),s=M.i(E.index+1),R=this.linkSpacing*(p-(d-1)/2),e++,M.uh(),M.L(E.index,o.x+R,o.y),M.L(E.index+1,s.x+R,s.y),M.zf()}o=r}t=i}}}},D=ao.prototype,D.Vx=function(t,e){return t instanceof sd&&e instanceof sd&&t!==e?t.layer<e.layer?-1:t.layer>e.layer?1:t.rd<e.rd?-1:t.rd>e.rd?1:t.Ic<e.Ic?-1:t.Ic>e.Ic?1:0:0},D.Ux=function(t,e){return t instanceof sd&&e instanceof sd&&t!==e?t.first<e.first?-1:t.first>e.first||t.j<e.j?1:t.j>e.j||t.rd<e.rd?-1:t.rd>e.rd?1:t.Ic<e.Ic?-1:t.Ic>e.Ic?1:0:0},D.Js=function(t,e){return t instanceof sd&&e instanceof sd&&t!==e?t.jc<e.jc?-1:t.jc>e.jc||t.j<e.j?1:t.j>e.j||t.rd<e.rd?-1:t.rd>e.rd?1:t.Ic<e.Ic?-1:t.Ic>e.Ic?1:0:0},D.B=function(t,e){return t-=e,-1<t&&1>t},D.zi=function(t,e,n,i){var r=t.length,o=i-n;if(!(1>=o))if((0>n||n>=r-1)&&ne("not in range 0 <= from < length: "+n),o===2)i=t[n],r=t[n+1],0<e(i,r)&&(t[n]=r,t[n+1]=i);else if(n===0)if(i>=r)t.sort(e);else for(n=t.slice(0,i),n.sort(e),e=0;e<i;e++)t[e]=n[e];else if(i>=r)for(i=t.slice(n),i.sort(e),e=n;e<r;e++)t[e]=i[e-n];else for(r=t.slice(n,i),r.sort(e),e=n;e<i;e++)t[e]=r[e-n]};function rd(t,e){var n=t.tc[e];if(n>=t.He.length){for(var i=[],r=0;r<t.He.length;r++)i[r]=t.He[r];t.He=i}for(t.He[n]===void 0||t.He[n]===null?i=[]:(i=t.He[n],t.He[n]=null),t=t.fl[e],e=0;e<t.length;e++)n=t[e],i[n.index]=n;return i}function od(t,e,n){t.He[t.tc[e]]=n}te.Object.defineProperties(ao.prototype,{layerSpacing:{get:function(){return this.ie},set:function(t){this.ie!==t&&0<=t&&(this.ie=t,this.C())}},columnSpacing:{get:function(){return this.kc},set:function(t){this.kc!==t&&0<t&&(this.kc=t,this.C())}},direction:{get:function(){return this.K},set:function(t){this.K!==t&&(t===0||t===90||t===180||t===270?(this.K=t,this.C()):ne("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(t){this.Dk===t||t!==Nv&&t!==Bm&&t!==qf||(this.Dk=t,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(t){this.Zk===t||t!==zm&&t!==Iv&&t!==Av||(this.Zk=t,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(t){this.Qk===t||t!==$m&&t!==Mv&&t!==Ov||(this.Qk=t,this.C())}},iterations:{get:function(){return this.bj},set:function(t){this.bj!==t&&0<=t&&(this.bj=t,this.C())}},aggressiveOption:{get:function(){return this.rk},set:function(t){this.rk===t||t!==Lv&&t!==jm&&t!==Rv||(this.rk=t,this.C())}},packOption:{get:function(){return this.bg},set:function(t){this.bg!==t&&0<=t&&8>t&&(this.bg=t,this.C())}},alignOption:{get:function(){return this.ve},set:function(t){this.ve!==t&&0<=t&&16>t&&(this.ve=t,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(t){this.sf!==t&&(this.sf=t,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(t){this.Cn!==t&&0<=t&&(this.Cn=t,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 Bm=new le(ao,"CycleDepthFirst",0),Nv=new le(ao,"CycleGreedy",1),qf=new le(ao,"CycleFromLayers",2),zm=new le(ao,"LayerOptimalLinkLength",0),Iv=new le(ao,"LayerLongestPathSink",1),Av=new le(ao,"LayerLongestPathSource",2),$m=new le(ao,"InitDepthFirstOut",0),Mv=new le(ao,"InitDepthFirstIn",1),Ov=new le(ao,"InitNaive",2),Lv=new le(ao,"AggressiveNone",0),jm=new le(ao,"AggressiveLess",1),Rv=new le(ao,"AggressiveMore",2),sb=8;ao.className="LayeredDigraphLayout",ao.CycleDepthFirst=Bm,ao.CycleGreedy=Nv,ao.CycleFromLayers=qf,ao.LayerOptimalLinkLength=zm,ao.LayerLongestPathSink=Iv,ao.LayerLongestPathSource=Av,ao.InitDepthFirstOut=$m,ao.InitDepthFirstIn=Mv,ao.InitNaive=Ov,ao.AggressiveNone=Lv,ao.AggressiveLess=jm,ao.AggressiveMore=Rv,ao.PackNone=0,ao.PackExpand=1,ao.PackStraighten=2,ao.PackMedian=4,ao.PackAll=15,ao.AlignNone=0,ao.AlignUpperLeft=1,ao.AlignUpperRight=2,ao.AlignLowerLeft=4,ao.AlignLowerRight=8,ao.AlignAll=15;function sd(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}sd.className="SegInfo";function Yp(t){Po.call(this,t)}Jn(Yp,Po),Yp.prototype.createVertex=function(){return new Du(this)},Yp.prototype.createEdge=function(){return new t0(this)},Yp.className="LayeredDigraphNetwork";function Du(t){na.call(this,t),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}Jn(Du,na);function hx(t,e){return t.index-e.index}function Um(t,e){if(!t.$n){for(var n=[],i=er(t.destinationEdgesArrayAccess),r=i.next();!r.done;r=i.next())r=r.value,r.valid&&n.push(r);t.$n=n}for(t=er(t.$n),n=t.next();!n.done;n=t.next())if(n=n.value,n.toVertex===e)return n;ne("Unable to find destination edge to given vertex")}function Dv(t){if(!t.co){for(var e=[],n=er(t.sourceEdgesArrayAccess),i=n.next();!i.done;i=n.next())i=i.value,i.valid&&e.push(i.fromVertex);e.sort(hx),t.co=e}return t.co}function ab(t){if(!t.ao){for(var e=[],n=er(t.destinationEdgesArrayAccess),i=n.next();!i.done;i=n.next())i=i.value,i.valid&&e.push(i.toVertex);e.sort(hx),t.ao=e}return t.ao}Du.prototype.Cl=function(t){na.prototype.Cl.call(this,t),this.bo=this.co=null},Du.prototype.Kl=function(t){na.prototype.Kl.call(this,t),this.bo=this.co=null},Du.prototype.zl=function(t){na.prototype.zl.call(this,t),this.$n=this.ao=null},Du.prototype.Jl=function(t){na.prototype.Jl.call(this,t),this.$n=this.ao=null},te.Object.defineProperties(Du.prototype,{layer:{get:function(){return this.Ig},set:function(t){this.Ig!==t&&(this.Ig=t)}},column:{get:function(){return this.Ag},set:function(t){this.Ag!==t&&(this.Ag=t)}},index:{get:function(){return this.Za},set:function(t){this.Za!==t&&(this.Za=t)}},component:{get:function(){return this.u},set:function(t){this.u!==t&&(this.u=t)}},near:{get:function(){return this.F},set:function(t){this.F!==t&&(this.F=t)}}}),Du.prototype.deleteDestinationEdge=Du.prototype.Jl,Du.prototype.addDestinationEdge=Du.prototype.zl,Du.prototype.deleteSourceEdge=Du.prototype.Kl,Du.prototype.addSourceEdge=Du.prototype.Cl,Du.className="LayeredDigraphVertex";function t0(t){Ql.call(this,t),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Jn(t0,Ql),te.Object.defineProperties(t0.prototype,{fromVertex:{get:function(){return this.kd},set:function(t){this.kd!==t&&(this.kd=t)}},toVertex:{get:function(){return this.qd},set:function(t){this.qd!==t&&(this.qd=t)}},valid:{get:function(){return this.Ha},set:function(t){this.Ha!==t&&(this.Ha=t)}},rev:{get:function(){return this.ia},set:function(t){this.ia!==t&&(this.ia=t)}},forest:{get:function(){return this.j},set:function(t){this.j!==t&&(this.j=t)}},portFromPos:{get:function(){return this.u},set:function(t){this.u!==t&&(this.u=t)}},portToPos:{get:function(){return this.V},set:function(t){this.V!==t&&(this.V=t)}},portFromColOffset:{get:function(){return this.o},set:function(t){this.o!==t&&(this.o=t)}},portToColOffset:{get:function(){return this.F},set:function(t){this.F!==t&&(this.F=t)}}}),t0.className="LayeredDigraphEdge";function gr(t){ts.call(this),this.Ub=new je,this.Wn=Wm,this.ud=_c,this.vo=Km,this.Bq=Wv,this.$v=[],this.td=!0,this.Rb=Zm,this.$d=new ni(10,10).freeze();var e=new lp(this);this.W=new Gu(e),this.Y=new Gu(e),this.ru=[],t&&Object.assign(this,t)}Jn(gr,ts),gr.prototype.cloneProtected=function(t){ts.prototype.cloneProtected.call(this,t),t.Wn=this.Wn,t.vo=this.vo,t.Bq=this.Bq,t.td=this.td,t.Rb=this.Rb,t.$d.assign(this.$d),t.W.copyInheritedPropertiesFrom(this.W),t.Y.copyInheritedPropertiesFrom(this.Y)},gr.prototype.qb=function(t){t.classType===gr?t.name.indexOf("Alignment")===0?this.alignment=t:t.name.indexOf("Arrangement")===0?this.arrangement=t:t.name.indexOf("Compaction")===0?this.compaction=t:t.name.indexOf("Path")===0?this.path=t:t.name.indexOf("Sorting")===0?this.sorting=t:t.name.indexOf("Style")===0?this.treeStyle=t:ne("Unknown enum value: "+t):ts.prototype.qb.call(this,t)},gr.prototype.createNetwork=function(){return new lp(this)},gr.prototype.makeNetwork=function(t){function e(i){if(i instanceof Rn)return!i.isLinkLabel&&i.category!=="Comment";if(i instanceof pn){var r=i.fromNode;return r===null||r.isLinkLabel||r.category==="Comment"?!1:(i=i.toNode,!(i===null||i.isLinkLabel||i.category==="Comment"))}return!1}var n=this.createNetwork();return t instanceof ue?(n.lg(t.nodes,!0,e),n.lg(t.links,!0,e)):t instanceof Ki?n.lg(t.memberParts,!1,e):n.lg(t.iterator,!1,e),n},gr.prototype.doLayout=function(t){this.network===null&&(this.network=this.makeNetwork(t)),this.arrangement!==Ym&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var e=this.diagram;if(e===null&&t instanceof ue&&(e=t),this.path===Wm&&e!==null?this.ud=e.isTreePathToChildren?_c:sp:this.ud=this.path===Wm?_c:this.path,0<this.network.vertexes.count){for(this.network.Ko(),t=this.network.vertexes.iterator;t.next();)e=t.value,e.initialized=!1,e.level=0,e.parent=null,e.children=[];if(0<this.Ub.count){for(t=new je,e=this.Ub.iterator;e.next();){var n=e.value;n instanceof Rn?(n=this.network.ki(n),n!==null&&t.add(n)):n instanceof Gu&&t.add(n)}this.Ub=t}for(this.Ub.count===0&&this.findRoots(),t=this.Ub.copy().iterator;t.next();)e=t.value,e.initialized||(e.initialized=!0,Pv(this,e));for(e=this.network.vertexes,t=null;t=lb(e),0<t.count;)e=dx(this,t),e!==null&&this.Ub.add(e),e.initialized=!0,Pv(this,e),e=t;for(t=this.Ub.iterator;t.next();)e=t.value,e instanceof Gu&&fx(this,e);for(t=this.Ub.iterator;t.next();)e=t.value,e instanceof Gu&&mx(this,e);for(t=this.Ub.iterator;t.next();)e=t.value,e instanceof Gu&&gx(this,e);if(this.Cu(),this.layerStyle===Xm){for(t=[],e=this.network.vertexes.iterator;e.next();){n=e.value;var i=n.parent;i===null&&(i=n),i=i.angle===0||i.angle===180;var r=t[n.level];r===void 0&&(r=0),t[n.level]=Math.max(r,i?n.width:n.height)}for(e=0;e<t.length;e++)t[e]===void 0&&(t[e]=0);for(this.$v=t,e=this.network.vertexes.iterator;e.next();)n=e.value,i=n.parent,i===null&&(i=n),i.angle===0||i.angle===180?(i.angle===180&&(n.focusX+=t[n.level]-n.width),n.width=t[n.level]):(i.angle===270&&(n.focusY+=t[n.level]-n.height),n.height=t[n.level])}else if(this.layerStyle===Vv)for(t=this.network.vertexes.iterator;t.next();){for(e=t.value,n=e.angle===0||e.angle===180,i=-1,r=0;r<e.children.length;r++){var o=e.children[r];i=Math.max(i,n?o.width:o.height)}if(0<=i)for(r=0;r<e.children.length;r++)o=e.children[r],n?(e.angle===180&&(o.focusX+=i-o.width),o.width=i):(e.angle===270&&(o.focusY+=i-o.height),o.height=i)}for(t=this.Ub.iterator;t.next();)e=t.value,e instanceof Gu&&this.layoutTree(e);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new je,this.isValidLayout=!0};function lb(t){var e=new je;for(t=t.iterator;t.next();){var n=t.value;n.initialized||e.add(n)}return e}gr.prototype.findRoots=function(){for(var t=this.network.vertexes,e=t.iterator;e.next();){var n=e.value;switch(this.ud){case _c:n.sourceEdges.count===0&&this.Ub.add(n);break;case sp:n.destinationEdges.count===0&&this.Ub.add(n);break;default:ne("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(t=dx(this,t),t!==null&&this.Ub.add(t))};function dx(t,e){var n=999999,i=null;for(e=e.iterator;e.next();){var r=e.value;switch(t.ud){case _c:r.sourceEdges.count<n&&(n=r.sourceEdges.count,i=r);break;case sp:r.destinationEdges.count<n&&(n=r.destinationEdges.count,i=r);break;default:ne("Unhandled path value "+t.ud.toString())}}return i}function Pv(t,e){if(e!==null){switch(t.ud){case _c:if(0<e.destinationEdges.count){for(var n=new Re,i=e.destinationVertexes;i.next();){var r=i.value;px(t,e,r)&&n.add(r)}0<n.count&&(e.children=n.Fa())}break;case sp:if(0<e.sourceEdges.count){for(n=new Re,i=e.sourceVertexes;i.next();)r=i.value,px(t,e,r)&&n.add(r);0<n.count&&(e.children=n.Fa())}break;default:ne("Unhandled path value"+t.ud.toString())}for(n=e.children,i=n.length,r=0;r<i;r++){var o=n[r];o.initialized=!0,o.level=e.level+1,o.parent=e,t.Ub.remove(o)}for(e=0;e<i;e++)Pv(t,n[e])}}function px(t,e,n){if(n.initialized){if(e===null)var i=!1;else{for(i=e.parent;i!==null&&i!==n;)i=i.parent;i=i===n}if(i||n.level>e.level)return!1;t.removeChild(n.parent,n)}return!0}gr.prototype.removeChild=function(t,e){if(t!==null&&e!==null){for(var n=t.children,i=0,r=0;r<n.length;r++)n[r]===e&&i++;if(0<i){i=Array(n.length-i);for(var o=r=0;o<n.length;o++)n[o]!==e&&(i[r++]=n[o]);t.children=i}}};function fx(t,e){if(e!==null){t.initializeTreeVertexValues(e),e.alignment===Wc&&t.sortTreeVertexChildren(e);for(var n=0,i=e.childrenCount,r=0,o=e.children,s=o.length,l=0;l<s;l++){var u=o[l];fx(t,u),n+=u.descendantCount+1,i=Math.max(i,u.maxChildrenCount),r=Math.max(r,u.maxGenerationCount)}e.descendantCount=n,e.maxChildrenCount=i,e.maxGenerationCount=0<i?r+1:0}}function ub(t,e){switch(t.vo){default:case Km:return e.parent!==null?e.parent:t.W;case Hv:return e.parent===null?t.W:e.parent.parent===null?t.Y:e.parent;case _v:return e.parent!==null?e.parent.parent!==null?e.parent.parent:t.Y:t.W;case Uv:var n=!0;if(e.childrenCount===0)n=!1;else for(var i=e.children,r=i.length,o=0;o<r;o++)if(0<i[o].childrenCount){n=!1;break}return n&&e.parent!==null?t.Y:e.parent!==null?e.parent:t.W}}gr.prototype.initializeTreeVertexValues=function(t){if(t.copyInheritedPropertiesFrom(ub(this,t)),t.parent!==null&&t.parent.alignment===Wc){for(var e=t.angle,n=t.parent.children,i=0;i<n.length&&t!==n[i];)i++;i%2===0?i!==n.length-1&&(e=e===90?180:e===180?270:e===270?180:270):e=e===90?0:e===180?90:e===270?0:90,t.angle=e}t.initialized=!0};function mx(t,e){if(e!==null){t.assignTreeVertexValues(e),e=e.children;for(var n=e.length,i=0;i<n;i++)mx(t,e[i])}}gr.prototype.assignTreeVertexValues=function(){};function gx(t,e){if(e!==null){e.alignment!==Wc&&t.sortTreeVertexChildren(e),e=e.children;for(var n=e.length,i=0;i<n;i++)gx(t,e[i])}}gr.prototype.sortTreeVertexChildren=function(t){switch(t.sorting){case Xp:break;case n0:t.children.reverse();break;case i0:t.children.sort(t.comparer);break;case r0:t.children.sort(t.comparer),t.children.reverse();break;default:ne("Unhandled sorting value "+t.sorting.toString())}},gr.prototype.Cu=function(){if(this.comments)for(var t=this.network.vertexes.iterator;t.next();)this.addComments(t.value)},gr.prototype.addComments=function(t){var e=t.angle,n=t.parent,i=0,r=!1;n!==null&&(i=n.angle,r=n.alignment,r=ad(r)),e=e===90||e===270,i=i===90||i===270,n=t.childrenCount===0;var o=0,s=0,l=0,u=t.commentSpacing;if(t.node!==null)for(var d=t.node.Mu();d.next();){var p=d.value;p.category==="Comment"&&p.canLayout()&&(t.comments===null&&(t.comments=[]),t.comments.push(p),p.Va(),p=p.measuredBounds,e&&!n||!r&&!i&&n||r&&i&&n?(o=Math.max(o,p.width),s+=p.height+Math.abs(l)):(o+=p.width+Math.abs(l),s=Math.max(s,p.height)),l=u)}t.comments!==null&&(e&&!n||!r&&!i&&n||r&&i&&n?(o+=Math.abs(t.commentMargin),s=Math.max(0,s-t.height)):(s+=Math.abs(t.commentMargin),o=Math.max(0,o-t.width)),r=ke.allocAt(0,0,t.bounds.width+o,t.bounds.height+s),t.bounds=r,ke.free(r))};function ad(t){return t===Dh||t===Wc||t===Ph||t===ch}function e0(t){return t===Dh||t===Wc}function Fv(t){var e=t.parent;if(e!==null){var n=e.alignment;if(ad(n)){if(e0(n)){for(e=e.children,n=0;n<e.length&&t!==e[n];)n++;return n%2===0}if(n===Ph)return!0}}return!1}gr.prototype.layoutComments=function(t){if(t.comments!==null){var e=t.node.measuredBounds,n=t.parent,i=t.angle,r=0,o=!1;n!==null&&(r=n.angle,o=n.alignment,o=ad(o)),i=i===90||i===270,n=r===90||r===270;for(var s=t.childrenCount===0,l=Fv(t),u=0,d=t.comments,p=d.length,v=$.alloc(),E=0;E<p;E++){var M=d[E],R=M.measuredBounds;if(i&&!s||!o&&!n&&s||o&&n&&s){if(135<r&&!o||n&&l)if(0<=t.commentMargin)for(v.h(t.bounds.x-t.commentMargin-R.width,t.bounds.y+u),M.move(v),M=M.Sd();M.next();){var j=M.value;j.fromSpot=cs,j.toSpot=qr}else for(v.h(t.bounds.x+2*t.focus.x-t.commentMargin,t.bounds.y+u),M.move(v),M=M.Sd();M.next();)j=M.value,j.fromSpot=qr,j.toSpot=cs;else if(0<=t.commentMargin)for(v.h(t.bounds.x+2*t.focus.x+t.commentMargin,t.bounds.y+u),M.move(v),M=M.Sd();M.next();)j=M.value,j.fromSpot=qr,j.toSpot=cs;else for(v.h(t.bounds.x+t.commentMargin-R.width,t.bounds.y+u),M.move(v),M=M.Sd();M.next();)j=M.value,j.fromSpot=cs,j.toSpot=qr;u=0<=t.commentSpacing?u+(R.height+t.commentSpacing):u+(t.commentSpacing-R.height)}else{if(135<r&&!o||!n&&l)if(0<=t.commentMargin)for(v.h(t.bounds.x+u,t.bounds.y-t.commentMargin-R.height),M.move(v),M=M.Sd();M.next();)j=M.value,j.fromSpot=os,j.toSpot=is;else for(v.h(t.bounds.x+u,t.bounds.y+2*t.focus.y-t.commentMargin),M.move(v),M=M.Sd();M.next();)j=M.value,j.fromSpot=is,j.toSpot=os;else if(0<=t.commentMargin)for(v.h(t.bounds.x+u,t.bounds.y+2*t.focus.y+t.commentMargin),M.move(v),M=M.Sd();M.next();)j=M.value,j.fromSpot=is,j.toSpot=os;else for(v.h(t.bounds.x+u,t.bounds.y+t.commentMargin-R.height),M.move(v),M=M.Sd();M.next();)j=M.value,j.fromSpot=os,j.toSpot=is;u=0<=t.commentSpacing?u+(R.width+t.commentSpacing):u+(t.commentSpacing-R.width)}}if($.free(v),e=u-t.commentSpacing-(i?e.height:e.width),this.ud===_c)for(t=t.destinationEdges;t.next();)r=t.value.link,r===null||r.isAvoiding||(r.fromEndSegmentLength=0<e?e:NaN);else for(t=t.sourceEdges;t.next();)r=t.value.link,r===null||r.isAvoiding||(r.toEndSegmentLength=0<e?e:NaN)}},gr.prototype.layoutTree=function(t){if(t!==null){for(var e=t.children,n=e.length,i=0;i<n;i++)this.layoutTree(e[i]);switch(t.compaction){case Vm:vx(this,t);break;case o0:if(t.alignment===Wc)vx(this,t);else if(t.childrenCount===0)i=t.parent,n=!1,e=0,i!==null&&(e=i.angle,n=i.alignment,n=ad(n)),i=Fv(t),t.S.h(0,0),t.Da.h(t.width,t.height),t.parent===null||t.comments===null||(e!==180&&e!==270||n)&&!i?t.la.h(0,0):e===180&&!n||(e===90||e===270)&&i?t.la.h(t.width-2*t.focus.x,0):t.la.h(0,t.height-2*t.focus.y),t.Yo=null,t.kp=null;else{var r=ic(t);e=r===90||r===270;var o=0,s=t.children,l=s.length;for(n=0;n<l;n++)i=s[n],o=Math.max(o,e?i.Da.width:i.Da.height);var u=t.alignment;i=u===Hc;var d=u===Gc,p=ad(u),v=Math.max(0,t.breadthLimit);n=this.computeLayerSpacing(t);var E=t.nodeSpacing,M=this.computeNodeIndent(t),R=t.rowSpacing,j=0;(i||d||t.hm||t.im&&t.maxGenerationCount===1)&&(j=Math.max(0,t.rowIndent)),i=t.width;var at=t.height,q=0,gt=0,wt=0,Ot=null,Gt=null,ce=0,Mn=0,Un=0,zn=0,cn=0,We=0,Hi=0,Ci=0;if(p&&!e0(u)&&135<r&&s.reverse(),e0(u))if(1<l)for(var Kr=0;Kr<l;Kr++)Kr%2===0&&Kr!==l-1&&(Ci=Math.max(Ci,e?s[Kr].Da.width:s[Kr].Da.height));else l===1&&(Ci=e?s[0].Da.width:s[0].Da.height);if(p){switch(u){case Dh:gt=135>r?yx(this,t,s,Ci,q,gt):xx(this,t,s,Ci,q,gt),Ci=gt.x,q=gt.width,gt=gt.height;break;case Ph:for(Ot=0;Ot<l;Ot++)Gt=s[Ot],v=Gt.Da,wt=We===0?0:R,e?(Gt.S.h(o-v.width,zn+wt),q=Math.max(q,v.width),gt=Math.max(gt,zn+wt+v.height),zn+=wt+v.height):(Gt.S.h(Un+wt,o-v.height),q=Math.max(q,Un+wt+v.width),gt=Math.max(gt,v.height),Un+=wt+v.width),We++;break;case ch:for(Ot=0;Ot<l;Ot++)Gt=s[Ot],o=Gt.Da,v=We===0?0:R,e?(Gt.S.h(E/2+t.focus.x,zn+v),q=Math.max(q,o.width),gt=Math.max(gt,zn+v+o.height),zn+=v+o.height):(Gt.S.h(Un+v,E/2+t.focus.y),q=Math.max(q,Un+v+o.width),gt=Math.max(gt,o.height),Un+=v+o.width),We++}Ot=Ul(this,2),Gt=Ul(this,2),e?(Ot[0].h(0,0),Ot[1].h(0,gt),Gt[0].h(q,0)):(Ot[0].h(0,0),Ot[1].h(q,0),Gt[0].h(0,gt)),Gt[1].h(q,gt)}else for(Kr=0;Kr<l;Kr++){var Oo=s[Kr],ca=Oo.Da;if(e){0<v&&0<We&&Un+E+ca.width>v&&(Un<o&&Dd(t,u,o-Un,0,Hi,Kr-1),cn++,We=0,Hi=Kr,wt=gt,Un=0,zn=135<r?-gt-R:gt+R),Hm(this,Oo,0,zn);var ma=0;if(We===0)Ot=Oo.Yo,Gt=Oo.kp,ce=ca.width,Mn=ca.height,(Ot===null||Gt===null||r!==ic(Oo))&&(Ot=Ul(this,2),Gt=Ul(this,2),Ot[0].h(0,0),Ot[1].h(0,Mn),Gt[0].h(ce,0),Gt[1].h(ce,Mn));else{var il=Le();Mn=bx(this,t,Oo,Ot,Gt,ce,Mn,il),ma=Mn.x,Ot=il[0],Gt=il[1],ce=Mn.width,Mn=Mn.height,tn(il),Un<ca.width&&0>ma&&(op(t,-ma,0,Hi,Kr-1),Gm(Ot,-ma,0),Gm(Gt,-ma,0),ma=0)}Oo.S.h(ma,zn),q=Math.max(q,ce),gt=Math.max(gt,wt+(cn===0?0:R)+ca.height),Un=ce}else 0<v&&0<We&&zn+E+ca.height>v&&(zn<o&&Dd(t,u,0,o-zn,Hi,Kr-1),cn++,We=0,Hi=Kr,wt=q,zn=0,Un=135<r?-q-R:q+R),Hm(this,Oo,Un,0),ma=0,We===0?(Ot=Oo.Yo,Gt=Oo.kp,ce=ca.width,Mn=ca.height,(Ot===null||Gt===null||r!==ic(Oo))&&(Ot=Ul(this,2),Gt=Ul(this,2),Ot[0].h(0,0),Ot[1].h(ce,0),Gt[0].h(0,Mn),Gt[1].h(ce,Mn))):(il=Le(),Mn=bx(this,t,Oo,Ot,Gt,ce,Mn,il),ma=Mn.x,Ot=il[0],Gt=il[1],ce=Mn.width,Mn=Mn.height,tn(il),zn<ca.height&&0>ma&&(op(t,0,-ma,Hi,Kr-1),Gm(Ot,0,-ma),Gm(Gt,0,-ma),ma=0)),Oo.S.h(Un,ma),gt=Math.max(gt,Mn),q=Math.max(q,wt+(cn===0?0:R)+ca.width),zn=Mn;We++}switch(0<cn&&(e?(gt+=Math.max(0,n),Un<q&&Dd(t,u,q-Un,0,Hi,l-1),0<j&&(d||op(t,j,0,0,l-1),q+=j)):(q+=Math.max(0,n),zn<gt&&Dd(t,u,0,gt-zn,Hi,l-1),0<j&&(d||op(t,0,j,0,l-1),gt+=j))),j=d=0,u){case Jp:e?d+=q/2-t.focus.x-M/2:j+=gt/2-t.focus.y-M/2;break;case ap:0<cn?e?d+=q/2-t.focus.x-M/2:j+=gt/2-t.focus.y-M/2:e?(Ci=s[0].S.x+s[0].la.x,d+=Ci+(s[l-1].S.x+s[l-1].la.x+2*s[l-1].focus.x-Ci)/2-t.focus.x-M/2):(Ci=s[0].S.y+s[0].la.y,j+=Ci+(s[l-1].S.y+s[l-1].la.y+2*s[l-1].focus.y-Ci)/2-t.focus.y-M/2);break;case Hc:e?(d-=M,q+=M):(j-=M,gt+=M);break;case Gc:e?(d+=q-t.width+M,q+=M):(j+=gt-t.height+M,gt+=M);break;case Dh:e?1<l?d+=Ci+E/2-t.focus.x:d+=s[0].focus.x-t.focus.x+s[0].la.x:1<l?j+=Ci+E/2-t.focus.y:j+=s[0].focus.y-t.focus.y+s[0].la.y;break;case Ph:e?d+=q+E/2-t.focus.x:j+=gt+E/2-t.focus.y;break;case ch:break;default:gt=this.customAlignment(t,d,j,q,gt),d=gt[0],j=gt[1],q=gt[2],gt=gt[3]}for(M=0;M<l;M++)Ci=s[M],e?Ci.S.h(Ci.S.x+Ci.la.x-d,Ci.S.y+(135<r?(p?-gt:-Ci.Da.height)+Ci.la.y-n:at+n+Ci.la.y)):Ci.S.h(Ci.S.x+(135<r?(p?-q:-Ci.Da.width)+Ci.la.x-n:i+n+Ci.la.x),Ci.S.y+Ci.la.y-j);if(l=s=0,p?e?(q=Bv(t,q,d),0>d&&(d=0),135<r&&(j+=gt+n),gt+=at+n,u===ch&&(s+=E/2+t.focus.x),l+=at+n):(135<r&&(d+=q+n),q+=i+n,gt=zv(t,gt,j),0>j&&(j=0),u===ch&&(l+=E/2+t.focus.y),s+=i+n):e?(t.comments===null?i>q&&(q=$v(u,i-q,0),s=q.x,l=q.y,q=i,d=0):q=Bv(t,q,d),0>d&&(s-=d,d=0),135<r&&(j+=gt+n),gt=Math.max(Math.max(gt,at),gt+at+n),l+=at+n):(135<r&&(d+=q+n),q=Math.max(Math.max(q,i),q+i+n),t.comments===null?at>gt&&(gt=$v(u,0,at-gt),s=gt.x,l=gt.y,gt=at,j=0):gt=zv(t,gt,j),0>j&&(l-=j,j=0),s+=i+n),0<cn)r=Ul(this,4),cn=Ul(this,4),e?(r[2].h(0,at+n),r[3].h(r[2].x,gt),cn[2].h(q,r[2].y),cn[3].h(cn[2].x,r[3].y)):(r[2].h(i+n,0),r[3].h(q,r[2].y),cn[2].h(r[2].x,gt),cn[3].h(r[3].x,cn[2].y));else{for(r=Ul(this,Ot.length+2),cn=Ul(this,Gt.length+2),u=0;u<Ot.length;u++)p=Ot[u],r[u+2].h(p.x+s,p.y+l);for(u=0;u<Gt.length;u++)p=Gt[u],cn[u+2].h(p.x+s,p.y+l)}e?(r[0].h(d,0),r[1].h(r[0].x,at),r[2].y<r[1].y&&(r[2].x>r[0].x?r[2].assign(r[1]):r[1].assign(r[2])),r[3].y<r[2].y&&(r[3].x>r[0].x?r[3].assign(r[2]):r[2].assign(r[3])),cn[0].h(d+i,0),cn[1].h(cn[0].x,at),cn[2].y<cn[1].y&&(cn[2].x<cn[0].x?cn[2].assign(cn[1]):cn[1].assign(cn[2])),cn[3].y<cn[2].y&&(cn[3].x<cn[0].x?cn[3].assign(cn[2]):cn[2].assign(cn[3])),r[2].y-=n/2,cn[2].y-=n/2):(r[0].h(0,j),r[1].h(i,r[0].y),r[2].x<r[1].x&&(r[2].y>r[0].y?r[2].assign(r[1]):r[1].assign(r[2])),r[3].x<r[2].x&&(r[3].y>r[0].y?r[3].assign(r[2]):r[2].assign(r[3])),cn[0].h(0,j+at),cn[1].h(i,cn[0].y),cn[2].x<cn[1].x&&(cn[2].y<cn[0].y?cn[2].assign(cn[1]):cn[1].assign(cn[2])),cn[3].x<cn[2].x&&(cn[3].y<cn[0].y?cn[3].assign(cn[2]):cn[2].assign(cn[3])),r[2].x-=n/2,cn[2].x-=n/2),mc(this,Ot),mc(this,Gt),t.Yo=r,t.kp=cn,t.la.h(d,j),t.Da.h(q,gt)}break;default:ne("Unhandled compaction value "+t.compaction.toString())}}};function vx(t,e){if(e.childrenCount===0){var n=!1,i=0;e.parent!==null&&(i=e.parent.angle,n=e.parent.alignment,n=ad(n));var r=Fv(e);e.S.h(0,0),e.Da.h(e.width,e.height),e.parent===null||e.comments===null||(i!==180&&i!==270||n)&&!r?e.la.h(0,0):i===180&&!n||(i===90||i===270)&&r?e.la.h(e.width-2*e.focus.x,0):e.la.h(0,e.height-2*e.focus.y)}else{i=ic(e),n=i===90||i===270;var o=0;r=e.children;for(var s=r.length,l=0;l<s;l++){var u=r[l];o=Math.max(o,n?u.Da.width:u.Da.height)}var d=e.alignment,p=d===Hc,v=d===Gc;l=ad(d);var E=Math.max(0,e.breadthLimit);u=t.computeLayerSpacing(e);var M=e.nodeSpacing,R=t.computeNodeIndent(e),j=p||v?0:R/2,at=e.rowSpacing,q=0;(p||v||e.hm||e.im&&e.maxGenerationCount===1)&&(q=Math.max(0,e.rowIndent)),p=e.width;var gt=e.height,wt=0,Ot=0,Gt=0,ce=0,Mn=0,Un=0,zn=0,cn=0,We=0,Hi=0;if(l&&!e0(d)&&135<i&&r.reverse(),e0(d))if(1<s)for(var Ci=0;Ci<s;Ci++){var Kr=r[Ci],Oo=Kr.Da;Ci%2===0&&Ci!==s-1?We=Math.max(We,(n?Oo.width:Oo.height)+t.computeBusNodeSpacing(Kr)-M):Ci%2!==0&&(Hi=Math.max(Hi,(n?Oo.width:Oo.height)+t.computeBusNodeSpacing(Kr)-M))}else s===1&&(We=n?r[0].Da.width:r[0].Da.height);if(l)switch(d){case Dh:case Wc:Ot=135>i?yx(t,e,r,We,wt,Ot):xx(t,e,r,We,wt,Ot),We=Ot.x,wt=Ot.width,Ot=Ot.height;break;case Ph:for(E=0;E<s;E++)j=r[E],Gt=j.Da,Hi=zn===0?0:at,n?(j.S.h(o-Gt.width,Mn+Hi),wt=Math.max(wt,Gt.width),Ot=Math.max(Ot,Mn+Hi+Gt.height),Mn+=Hi+Gt.height):(j.S.h(ce+Hi,o-Gt.height),wt=Math.max(wt,ce+Hi+Gt.width),Ot=Math.max(Ot,Gt.height),ce+=Hi+Gt.width),zn++;break;case ch:for(o=0;o<s;o++)E=r[o],j=E.Da,Gt=zn===0?0:at,n?(E.S.h(M/2+e.focus.x,Mn+Gt),wt=Math.max(wt,j.width),Ot=Math.max(Ot,Mn+Gt+j.height),Mn+=Gt+j.height):(E.S.h(ce+Gt,M/2+e.focus.y),wt=Math.max(wt,ce+Gt+j.width),Ot=Math.max(Ot,j.height),ce+=Gt+j.width),zn++}else for(Hi=0;Hi<s;Hi++)Ci=r[Hi],Kr=Ci.Da,n?(0<E&&0<zn&&ce+M+Kr.width>E&&(ce<o&&Dd(e,d,o-ce,0,cn,Hi-1),Un++,zn=0,cn=Hi,Gt=Ot,ce=0,Mn=135<i?-Ot-at:Ot+at),Oo=zn===0?j:M,Hm(t,Ci,0,Mn),Ci.S.h(ce+Oo,Mn),wt=Math.max(wt,ce+Oo+Kr.width),Ot=Math.max(Ot,Gt+(Un===0?0:at)+Kr.height),ce+=Oo+Kr.width):(0<E&&0<zn&&Mn+M+Kr.height>E&&(Mn<o&&Dd(e,d,0,o-Mn,cn,Hi-1),Un++,zn=0,cn=Hi,Gt=wt,Mn=0,ce=135<i?-wt-at:wt+at),Oo=zn===0?j:M,Hm(t,Ci,ce,0),Ci.S.h(ce,Mn+Oo),Ot=Math.max(Ot,Mn+Oo+Kr.height),wt=Math.max(wt,Gt+(Un===0?0:at)+Kr.width),Mn+=Oo+Kr.height),zn++;switch(0<Un&&(n?(Ot+=Math.max(0,u),ce<wt&&Dd(e,d,wt-ce,0,cn,s-1),0<q&&(v||op(e,q,0,0,s-1),wt+=q)):(wt+=Math.max(0,u),Mn<Ot&&Dd(e,d,0,Ot-Mn,cn,s-1),0<q&&(v||op(e,0,q,0,s-1),Ot+=q))),q=v=0,d){case Jp:n?v+=wt/2-e.focus.x-R/2:q+=Ot/2-e.focus.y-R/2;break;case ap:0<Un?n?v+=wt/2-e.focus.x-R/2:q+=Ot/2-e.focus.y-R/2:n?(t=r[0].S.x+r[0].la.x,v+=t+(r[s-1].S.x+r[s-1].la.x+2*r[s-1].focus.x-t)/2-e.focus.x-R/2):(t=r[0].S.y+r[0].la.y,q+=t+(r[s-1].S.y+r[s-1].la.y+2*r[s-1].focus.y-t)/2-e.focus.y-R/2);break;case Hc:n?(v-=R,wt+=R):(q-=R,Ot+=R);break;case Gc:n?(v+=wt-e.width+R,wt+=R):(q+=Ot-e.height+R,Ot+=R);break;case Dh:case Wc:n?1<s?v+=We+M/2-e.focus.x:v+=r[0].focus.x-e.focus.x+r[0].la.x:1<s?q+=We+M/2-e.focus.y:q+=r[0].focus.y-e.focus.y+r[0].la.y;break;case Ph:n?v+=wt+M/2-e.focus.x:q+=Ot+M/2-e.focus.y;break;case ch:break;default:t=t.customAlignment(e,v,q,wt,Ot),v=t[0],q=t[1],wt=t[2],Ot=t[3]}for(t=0;t<s;t++)R=r[t],n?R.S.h(R.S.x+R.la.x-v,R.S.y+(135<i?(l?-Ot:-R.Da.height)+R.la.y-u:gt+u+R.la.y)):R.S.h(R.S.x+(135<i?(l?-wt:-R.Da.width)+R.la.x-u:p+u+R.la.x),R.S.y+R.la.y-q);n?(wt=Bv(e,wt,v),0>v&&(v=0),135<i&&(q+=Ot+u),Ot=Math.max(Math.max(Ot,gt),Ot+gt+u)):(135<i&&(v+=wt+u),wt=Math.max(Math.max(wt,p),wt+p+u),Ot=zv(e,Ot,q),0>q&&(q=0)),e.la.h(v,q),e.Da.h(wt,Ot)}}gr.prototype.customAlignment=function(t,e,n,i,r){return[e,n,i,r]};function yx(t,e,n,i,r,o){var s=n.length;if(s===0)return new ke(i,0,r,o);if(s===1)return e=n[0],r=e.Da.width,o=e.Da.height,new ke(i,0,r,o);for(var l=e.nodeSpacing,u=e.rowSpacing,d=ic(e)===90,p=0,v=0,E=0,M=0;M<s;M++)if(!(M%2!==0||1<s&&M===s-1)){var R=n[M],j=R.Da,at=p===0?0:u;if(d){var q=t.computeBusNodeSpacing(R)-l;R.S.h(i-(j.width+q),E+at),r=Math.max(r,j.width+q),o=Math.max(o,E+at+j.height),E+=at+j.height}else q=t.computeBusNodeSpacing(R)-l,R.S.h(v+at,i-(j.height+q)),o=Math.max(o,j.height+q),r=Math.max(r,v+at+j.width),v+=at+j.width;p++}for(p=0,R=v,M=E,d?(v=i+l,E=0):(v=0,E=i+l),j=0;j<s;j++)if(j%2!==0){at=n[j],q=at.Da;var gt=p===0?0:u;if(d){var wt=t.computeBusNodeSpacing(at)-l;at.S.h(v+wt,E+gt),r=Math.max(r,v+q.width+wt),o=Math.max(o,E+gt+q.height),E+=gt+q.height}else wt=t.computeBusNodeSpacing(at)-l,at.S.h(v+gt,E+wt),r=Math.max(r,v+gt+q.width),o=Math.max(o,E+q.height+wt),v+=gt+q.width;p++}return 1<s&&s%2===1&&(n=n[s-1],s=n.Da,t=t.computeBusLastRowSpacing(n,d?Math.max(Math.abs(M),Math.abs(E)):Math.max(Math.abs(R),Math.abs(v))),d?(n.S.h(i+l/2-n.focus.x-n.la.x,o+t),d=i+l/2-n.focus.x-n.la.x,r=Math.max(r,d+s.width),0>d&&(r-=d),o=Math.max(o,Math.max(M,E)+t+s.height),0>n.S.x&&(i=_m(e,n.S.x,!1,i,l))):(n.S.h(r+t,i+l/2-n.focus.y-n.la.y),r=Math.max(r,Math.max(R,v)+t+s.width),E=i+l/2-n.focus.y-n.la.y,o=Math.max(o,E+s.height),0>E&&(o-=E),0>n.S.y&&(i=_m(e,n.S.y,!0,i,l)))),new ke(i,0,r,o)}function xx(t,e,n,i,r,o){var s=n.length;if(s===0)return new ke(i,0,r,o);if(s===1)return n=n[0],r=n.Da.width,o=n.Da.height,new ke(i,0,r,o);for(var l=e.nodeSpacing,u=e.rowSpacing,d=ic(e)===270,p=0,v=0,E=0,M=0;M<s;M++)if(!(M%2!==0||1<s&&M===s-1)){var R=n[M],j=R.Da,at=p===0?0:u;if(d){var q=t.computeBusNodeSpacing(R)-l;E-=at+j.height,R.S.h(i-(j.width+q),E),r=Math.max(r,j.width+q),o=Math.max(o,Math.abs(E))}else q=t.computeBusNodeSpacing(R)-l,v-=at+j.width,R.S.h(v,i-(j.height+q)),o=Math.max(o,j.height+q),r=Math.max(r,Math.abs(v));p++}for(p=0,R=v,M=E,d?(v=i+l,E=0):(v=0,E=i+l),j=0;j<s;j++)if(j%2!==0){at=n[j],q=at.Da;var gt=p===0?0:u;if(d){var wt=t.computeBusNodeSpacing(at)-l;E-=gt+q.height,at.S.h(v+wt,E),r=Math.max(r,v+q.width+wt),o=Math.max(o,Math.abs(E))}else wt=t.computeBusNodeSpacing(at)-l,v-=gt+q.width,at.S.h(v,E+wt),o=Math.max(o,E+q.height+wt),r=Math.max(r,Math.abs(v));p++}for(1<s&&s%2===1&&(u=n[s-1],p=u.Da,t=t.computeBusLastRowSpacing(u,d?Math.max(Math.abs(M),Math.abs(E)):Math.max(Math.abs(R),Math.abs(v))),d?(u.S.h(i+l/2-u.focus.x-u.la.x,-o-p.height-t),v=i+l/2-u.focus.x-u.la.x,r=Math.max(r,v+p.width),0>v&&(r-=v),o=Math.max(o,Math.abs(Math.min(M,E))+t+p.height),0>u.S.x&&(i=_m(e,u.S.x,!1,i,l))):(u.S.h(-r-p.width-t,i+l/2-u.focus.y-u.la.y),r=Math.max(r,Math.abs(Math.min(R,v))+t+p.width),E=i+l/2-u.focus.y-u.la.y,o=Math.max(o,E+p.height),0>E&&(o-=E),0>u.S.y&&(i=_m(e,u.S.y,!0,i,l)))),e=0;e<s;e++)l=n[e],d?l.S.h(l.S.x,l.S.y+o):l.S.h(l.S.x+r,l.S.y);return new ke(i,0,r,o)}gr.prototype.computeBusNodeSpacing=function(t){return t.parent===null?0:t.parent.nodeSpacing},gr.prototype.computeBusLastRowSpacing=function(t){return t.parent===null?0:t.parent.rowSpacing};function _m(t,e,n,i,r){t=t.children;for(var o=t.length,s=0;s<o;s++)n?t[s].S.h(t[s].S.x,t[s].S.y-e):t[s].S.h(t[s].S.x-e,t[s].S.y);return e=t[o-1],Math.max(i,n?e.la.y+e.focus.y-r/2:e.la.x+e.focus.x-r/2)}function Bv(t,e,n){switch(t.alignment){case ap:case Jp:return n+t.width>e&&(e=n+t.width),0>n&&(e-=n),e;case Hc:return t.width>e?t.width:e;case Gc:return 2*t.focus.x>e?t.width:e+t.width-2*t.focus.x;case Dh:case Wc:return Math.max(t.width,Math.max(e,n+t.width)-Math.min(0,n));case Ph:return t.width-t.focus.x+t.nodeSpacing/2+e;case ch:return Math.max(t.width,t.focus.x+t.nodeSpacing/2+e);default:return e}}function zv(t,e,n){switch(t.alignment){case ap:case Jp:return n+t.height>e&&(e=n+t.height),0>n&&(e-=n),e;case Hc:return t.height>e?t.height:e;case Gc:return 2*t.focus.y>e?t.height:e+t.height-2*t.focus.y;case Dh:case Wc:return Math.max(t.height,Math.max(e,n+t.height)-Math.min(0,n));case Ph:return t.height-t.focus.y+t.nodeSpacing/2+e;case ch:return Math.max(t.height,t.focus.y+t.nodeSpacing/2+e);default:return e}}function $v(t,e,n){switch(t){case Jp:e/=2,n/=2;break;case ap:e/=2,n/=2;break;case Hc:n=e=0;break;case Gc:break;default:ne("Unhandled alignment value "+t.toString())}return new $(e,n)}function Dd(t,e,n,i,r,o){e=$v(e,n,i),op(t,e.x,e.y,r,o)}function op(t,e,n,i,r){if(e!==0||n!==0)for(t=t.children;i<=r;i++){var o=t[i].S;o.x+=e,o.y+=n}}function Hm(t,e,n,i){var r=e.parent;switch(t.ud){case _c:for(t=e.sourceEdges;t.next();)e=t.value,e.fromVertex===r&&e.relativePoint.h(n,i);break;case sp:for(t=e.destinationEdges;t.next();)e=t.value,e.toVertex===r&&e.relativePoint.h(n,i);break;default:ne("Unhandled path value "+t.ud.toString())}}function Gm(t,e,n){for(var i=0;i<t.length;i++){var r=t[i];r.x+=e,r.y+=n}}function bx(t,e,n,i,r,o,s,l){var u=ic(e),d=u===90||u===270,p=e.nodeSpacing;e=i;var v=r;i=o;var E=s,M=n.Yo,R=n.kp;s=n.Da;var j=d?Math.max(E,s.height):Math.max(i,s.width);if((M===null||u!==ic(n))&&(M=Ul(t,2),R=Ul(t,2),d?(M[0].h(0,0),M[1].h(0,s.height),R[0].h(s.width,0),R[1].h(R[0].x,M[1].y)):(M[0].h(0,0),M[1].h(s.width,0),R[0].h(0,s.height),R[1].h(M[1].x,R[0].y))),d){if(E=9999999,!(v===null||2>v.length||M===null||2>M.length))for(r=n=0;n<v.length&&r<M.length;){o=v[n];var at=M[r];u=at.x,d=at.y,u+=i;var q=o;n+1<v.length&&(q=v[n+1]);var gt=at;at=gt.x,gt=gt.y,r+1<M.length&&(gt=M[r+1],at=gt.x,gt=gt.y,at+=i);var wt=E;o.y===d?wt=u-o.x:o.y>d&&o.y<gt?wt=u+(o.y-d)/(gt-d)*(at-u)-o.x:d>o.y&&d<q.y&&(wt=u-(o.x+(d-o.y)/(q.y-o.y)*(q.x-o.x))),wt<E&&(E=wt),q.y<=o.y?n++:gt<=d?r++:(q.y<=gt&&n++,gt<=q.y&&r++)}if(E=i-E,E+=p,n=M,r=E,e===null||2>e.length||n===null||2>n.length)i=null;else{for(p=Ul(t,e.length+n.length),i=o=u=0;o<n.length&&n[o].y<e[0].y;)d=n[o++],p[i++].h(d.x+r,d.y);for(;u<e.length;)d=e[u++],p[i++].h(d.x,d.y);for(u=e[e.length-1].y;o<n.length&&n[o].y<=u;)o++;for(;o<n.length&&n[o].y>u;)d=n[o++],p[i++].h(d.x+r,d.y);for(n=Ul(t,i),u=0;u<i;u++)n[u].assign(p[u]);mc(t,p),i=n}if(o=R,u=E,v===null||2>v.length||o===null||2>o.length)r=null;else{for(p=Ul(t,v.length+o.length),r=d=n=0;n<v.length&&v[n].y<o[0].y;)q=v[n++],p[r++].h(q.x,q.y);for(;d<o.length;)q=o[d++],p[r++].h(q.x+u,q.y);for(o=o[o.length-1].y;n<v.length&&v[n].y<=o;)n++;for(;n<v.length&&v[n].y>o;)u=v[n++],p[r++].h(u.x,u.y);for(o=Ul(t,r),n=0;n<r;n++)o[n].assign(p[n]);mc(t,p),r=o}return o=Math.max(0,E)+s.width,s=j,mc(t,e),mc(t,M),mc(t,v),mc(t,R),l[0]=i,l[1]=r,new ke(E,0,o,s)}if(i=9999999,!(v===null||2>v.length||M===null||2>M.length))for(r=n=0;n<v.length&&r<M.length;)o=v[n],at=M[r],u=at.x,d=at.y,d+=E,q=o,n+1<v.length&&(q=v[n+1]),gt=at,at=gt.x,gt=gt.y,r+1<M.length&&(gt=M[r+1],at=gt.x,gt=gt.y,gt+=E),wt=i,o.x===u?wt=d-o.y:o.x>u&&o.x<at?wt=d+(o.x-u)/(at-u)*(gt-d)-o.y:u>o.x&&u<q.x&&(wt=d-(o.y+(u-o.x)/(q.x-o.x)*(q.y-o.y))),wt<i&&(i=wt),q.x<=o.x?n++:at<=u?r++:(q.x<=at&&n++,at<=q.x&&r++);if(E-=i,E+=p,n=M,r=E,e===null||2>e.length||n===null||2>n.length)i=null;else{for(p=Ul(t,e.length+n.length),i=o=u=0;o<n.length&&n[o].x<e[0].x;)d=n[o++],p[i++].h(d.x,d.y+r);for(;u<e.length;)d=e[u++],p[i++].h(d.x,d.y);for(u=e[e.length-1].x;o<n.length&&n[o].x<=u;)o++;for(;o<n.length&&n[o].x>u;)d=n[o++],p[i++].h(d.x,d.y+r);for(n=Ul(t,i),u=0;u<i;u++)n[u].assign(p[u]);mc(t,p),i=n}if(o=R,u=E,v===null||2>v.length||o===null||2>o.length)r=null;else{for(p=Ul(t,v.length+o.length),r=d=n=0;n<v.length&&v[n].x<o[0].x;)q=v[n++],p[r++].h(q.x,q.y);for(;d<o.length;)q=o[d++],p[r++].h(q.x,q.y+u);for(o=o[o.length-1].x;n<v.length&&v[n].x<=o;)n++;for(;n<v.length&&v[n].x>o;)u=v[n++],p[r++].h(u.x,u.y);for(o=Ul(t,r),n=0;n<r;n++)o[n].assign(p[n]);mc(t,p),r=o}return o=j,s=Math.max(0,E)+s.height,mc(t,e),mc(t,M),mc(t,v),mc(t,R),l[0]=i,l[1]=r,new ke(E,0,o,s)}function Ul(t,e){if(t=t.ru[e],t!==void 0&&(t=t.pop(),t!==void 0))return t;t=[];for(var n=0;n<e;n++)t[n]=new $;return t}function mc(t,e){var n=e.length,i=t.ru[n];i===void 0&&(i=[],t.ru[n]=i),i.push(e)}gr.prototype.arrangeTrees=function(){if(this.Rb===Ym)for(var t=this.Ub.iterator;t.next();){var e=t.value;if(e instanceof Gu){var n=e.node;if(n!==null){var i=n.position;n=i.x,i=i.y,isFinite(n)||(n=0),isFinite(i)||(i=0),jv(this,e,n,i)}}}else{for(t=[],e=this.Ub.iterator;e.next();)n=e.value,n instanceof Gu&&t.push(n);switch(this.sorting){case Xp:break;case n0:t.reverse();break;case i0:t.sort(this.comparer);break;case r0:t.sort(this.comparer),t.reverse();break;default:ne("Unhandled sorting value "+this.sorting.toString())}for(n=this.arrangementOrigin,e=n.x,n=n.y,i=0;i<t.length;i++){var r=t[i];switch(jv(this,r,e+r.la.x,n+r.la.y),this.Rb){case Zm:n+=r.Da.height+this.$d.height;break;case Gv:e+=r.Da.width+this.$d.width;break;default:ne("Unhandled arrangement value "+this.Rb.toString())}}}};function jv(t,e,n,i){if(e!==null){e.x=n,e.y=i,e=e.children;for(var r=e.length,o=0;o<r;o++){var s=e[o];jv(t,s,n+s.S.x,i+s.S.y)}}}gr.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},gr.prototype.commitNodes=function(){for(var t=this.network.vertexes.iterator;t.next();)t.value.commit();for(t.reset();t.next();)this.layoutComments(t.value)},gr.prototype.Gu=function(){if(this.layerStyle===Xm){for(var t=this.$v,e=[],n=null,i=this.network.vertexes.iterator;i.next();){var r=i.value;n===null?n=r.bounds.copy():n.ed(r.bounds);var o=e[r.level];o===void 0?o=this.computeLayerSpacing(r):o=Math.max(o,this.computeLayerSpacing(r)),e[r.level]=o}for(i=0;i<e.length;i++)e[i]===void 0&&(e[i]=0);if(this.angle===90||this.angle===270?(n.Bc(this.nodeSpacing/2,this.layerSpacing),i=new $(-this.nodeSpacing/2,-this.layerSpacing/2)):(n.Bc(this.layerSpacing,this.nodeSpacing/2),i=new $(-this.layerSpacing/2,-this.nodeSpacing/2)),r=[],n=this.angle===90||this.angle===270?n.width:n.height,o=0,this.angle===180||this.angle===270)for(var s=0;s<t.length;s++)o+=t[s]+e[s];for(s=0;s<t.length;s++){var l=t[s]+e[s];this.angle===270?(o-=l,r.push(new ke(0,o,n,l))):this.angle===90?(r.push(new ke(0,o,n,l)),o+=l):this.angle===180?(o-=l,r.push(new ke(o,0,l,n))):(r.push(new ke(o,0,l,n)),o+=l)}this.commitLayers(r,i)}},gr.prototype.commitLayers=function(){},gr.prototype.commitLinks=function(){for(var t=this.network.edges.iterator;t.next();)t.value.commit()},gr.prototype.yv=function(){for(var t=this.Ub.iterator;t.next();){var e=t.value;e instanceof Gu&&Sx(this,e)}};function Sx(t,e){if(e!==null){t.setPortSpots(e),e=e.children;for(var n=e.length,i=0;i<n;i++)Sx(t,e[i])}}gr.prototype.setPortSpots=function(t){var e=t.alignment;if(ad(e)){var n=this.ud===_c,i=ic(t);switch(i){case 0:var r=qr;break;case 90:r=is;break;case 180:r=cs;break;default:r=os}var o=t.children,s=o.length;switch(e){case Dh:case Wc:for(e=0;e<s;e++){var l=o[e];if(l=(n?l.sourceEdges:l.destinationEdges).first(),l!==null&&(l=l.link,l!==null)){var u=i===90||i===270?cs:os;if(s===1||e===s-1&&s%2===1)switch(i){case 0:u=cs;break;case 90:u=os;break;case 180:u=qr;break;default:u=is}else e%2===0&&(u=i===90||i===270?qr:is);n?(t.setsPortSpot&&(l.fromSpot=r),t.setsChildPortSpot&&(l.toSpot=u)):(t.setsPortSpot&&(l.fromSpot=u),t.setsChildPortSpot&&(l.toSpot=r))}}break;case Ph:for(i=i===90||i===270?qr:is,o=n?t.destinationEdges:t.sourceEdges;o.next();)s=o.value.link,s!==null&&(n?(t.setsPortSpot&&(s.fromSpot=r),t.setsChildPortSpot&&(s.toSpot=i)):(t.setsPortSpot&&(s.fromSpot=i),t.setsChildPortSpot&&(s.toSpot=r)));break;case ch:for(i=i===90||i===270?cs:os,o=n?t.destinationEdges:t.sourceEdges;o.next();)s=o.value.link,s!==null&&(n?(t.setsPortSpot&&(s.fromSpot=r),t.setsChildPortSpot&&(s.toSpot=i)):(t.setsPortSpot&&(s.fromSpot=i),t.setsChildPortSpot&&(s.toSpot=r)))}}else if(n=ic(t),this.ud===_c){for(r=t.destinationEdges;r.next();)if(i=r.value.link,i!==null){if(t.setsPortSpot)if(t.portSpot.Xb())switch(n){case 0:i.fromSpot=qr;break;case 90:i.fromSpot=is;break;case 180:i.fromSpot=cs;break;default:i.fromSpot=os}else i.fromSpot=t.portSpot;if(t.setsChildPortSpot)if(t.childPortSpot.Xb())switch(n){case 0:i.toSpot=cs;break;case 90:i.toSpot=os;break;case 180:i.toSpot=qr;break;default:i.toSpot=is}else i.toSpot=t.childPortSpot}}else for(r=t.sourceEdges;r.next();)if(i=r.value.link,i!==null){if(t.setsPortSpot)if(t.portSpot.Xb())switch(n){case 0:i.toSpot=qr;break;case 90:i.toSpot=is;break;case 180:i.toSpot=cs;break;default:i.toSpot=os}else i.toSpot=t.portSpot;if(t.setsChildPortSpot)if(t.childPortSpot.Xb())switch(n){case 0:i.fromSpot=cs;break;case 90:i.fromSpot=os;break;case 180:i.fromSpot=qr;break;default:i.fromSpot=is}else i.fromSpot=t.childPortSpot}};function ic(t){return t=t.angle,45>=t?0:135>=t?90:225>=t?180:315>=t?270:0}gr.prototype.computeLayerSpacing=function(t){var e=ic(t);e=e===90||e===270;var n=t.layerSpacing;if(0<t.layerSpacingParentOverlap){var i=Math.min(1,t.layerSpacingParentOverlap);n-=e?t.height*i:t.width*i}return n<(e?-t.height:-t.width)&&(n=e?-t.height:-t.width),n},gr.prototype.computeNodeIndent=function(t){var e=ic(t),n=t.nodeIndent;if(0<t.nodeIndentPastParent){var i=Math.min(1,t.nodeIndentPastParent);n+=e===90||e===270?t.width*i:t.height*i}return n=Math.max(0,n)},te.Object.defineProperties(gr.prototype,{roots:{get:function(){return this.Ub},set:function(t){this.Ub!==t&&(this.Ub=t,this.C())}},path:{get:function(){return this.Wn},set:function(t){this.Wn!==t&&(this.Wn=t,this.C())}},treeStyle:{get:function(){return this.vo},set:function(t){this.Rb===t||t!==Km&&t!==_v&&t!==Uv&&t!==Hv||(this.vo=t,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(t){this.Rb===t||t!==Wv&&t!==Vv&&t!==Xm||(this.Bq=t,this.C())}},comments:{get:function(){return this.td},set:function(t){this.td!==t&&(this.td=t,this.C())}},arrangement:{get:function(){return this.Rb},set:function(t){this.Rb===t||t!==Zm&&t!==Gv&&t!==Ym||(this.Rb=t,this.C())}},arrangementSpacing:{get:function(){return this.$d},set:function(t){this.$d.D(t)||(this.$d.assign(t),this.C())}},rootDefaults:{get:function(){return this.W},set:function(t){this.W!==t&&(this.W=t,this.C())}},alternateDefaults:{get:function(){return this.Y},set:function(t){this.Y!==t&&(this.Y=t,this.C())}},sorting:{get:function(){return this.W.sorting},set:function(t){this.W.sorting===t||t!==Xp&&t!==n0&&t!==i0&&!r0||(this.W.sorting=t,this.C())}},comparer:{get:function(){return this.W.comparer},set:function(t){this.W.comparer!==t&&(this.W.comparer=t,this.C())}},angle:{get:function(){return this.W.angle},set:function(t){this.W.angle!==t&&(t===0||t===90||t===180||t===270?(this.W.angle=t,this.C()):ne("TreeLayout.angle must be 0, 90, 180, or 270"))}},alignment:{get:function(){return this.W.alignment},set:function(t){this.W.alignment!==t&&(this.W.alignment=t,this.C())}},nodeIndent:{get:function(){return this.W.nodeIndent},set:function(t){this.W.nodeIndent!==t&&0<=t&&(this.W.nodeIndent=t,this.C())}},nodeIndentPastParent:{get:function(){return this.W.nodeIndentPastParent},set:function(t){this.W.nodeIndentPastParent!==t&&0<=t&&1>=t&&(this.W.nodeIndentPastParent=t,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(t){this.W.nodeSpacing!==t&&(this.W.nodeSpacing=t,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(t){this.W.layerSpacing!==t&&(this.W.layerSpacing=t,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(t){this.W.layerSpacingParentOverlap!==t&&0<=t&&1>=t&&(this.W.layerSpacingParentOverlap=t,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(t){this.W.compaction===t||t!==Vm&&t!==o0||(this.W.compaction=t,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(t){this.W.breadthLimit!==t&&0<=t&&(this.W.breadthLimit=t,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(t){this.W.rowSpacing!==t&&(this.W.rowSpacing=t,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(t){this.W.rowIndent!==t&&0<=t&&(this.W.rowIndent=t,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(t){this.W.commentSpacing!==t&&(this.W.commentSpacing=t,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(t){this.W.commentMargin!==t&&(this.W.commentMargin=t,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(t){this.W.setsPortSpot!==t&&(this.W.setsPortSpot=t,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(t){this.W.portSpot.D(t)||(this.W.portSpot=t,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(t){this.W.setsChildPortSpot!==t&&(this.W.setsChildPortSpot=t,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(t){this.W.childPortSpot.D(t)||(this.W.childPortSpot=t,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(t){this.Y.sorting===t||t!==Xp&&t!==n0&&t!==i0&&!r0||(this.Y.sorting=t,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(t){this.Y.comparer!==t&&(this.Y.comparer=t,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(t){this.Y.angle===t||t!==0&&t!==90&&t!==180&&t!==270||(this.Y.angle=t,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(t){this.Y.alignment!==t&&(this.Y.alignment=t,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(t){this.Y.nodeIndent!==t&&0<=t&&(this.Y.nodeIndent=t,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(t){this.Y.nodeIndentPastParent!==t&&0<=t&&1>=t&&(this.Y.nodeIndentPastParent=t,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(t){this.Y.nodeSpacing!==t&&(this.Y.nodeSpacing=t,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(t){this.Y.layerSpacing!==t&&(this.Y.layerSpacing=t,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(t){this.Y.layerSpacingParentOverlap!==t&&0<=t&&1>=t&&(this.Y.layerSpacingParentOverlap=t,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(t){this.Y.compaction===t||t!==Vm&&t!==o0||(this.Y.compaction=t,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(t){this.Y.breadthLimit!==t&&0<=t&&(this.Y.breadthLimit=t,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(t){this.Y.rowSpacing!==t&&(this.Y.rowSpacing=t,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(t){this.Y.rowIndent!==t&&0<=t&&(this.Y.rowIndent=t,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(t){this.Y.commentSpacing!==t&&(this.Y.commentSpacing=t,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(t){this.Y.commentMargin!==t&&(this.Y.commentMargin=t,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(t){this.Y.setsPortSpot!==t&&(this.Y.setsPortSpot=t,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(t){this.Y.portSpot.D(t)||(this.Y.portSpot=t,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(t){this.Y.setsChildPortSpot!==t&&(this.Y.setsChildPortSpot=t,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(t){this.Y.childPortSpot.D(t)||(this.Y.childPortSpot=t,this.C())}}});var Wm=new le(gr,"PathDefault",-1),_c=new le(gr,"PathDestination",0),sp=new le(gr,"PathSource",1),Xp=new le(gr,"SortingForwards",10),n0=new le(gr,"SortingReverse",11),i0=new le(gr,"SortingAscending",12),r0=new le(gr,"SortingDescending",13),Jp=new le(gr,"AlignmentCenterSubtrees",20),ap=new le(gr,"AlignmentCenterChildren",21),Hc=new le(gr,"AlignmentStart",22),Gc=new le(gr,"AlignmentEnd",23),Dh=new le(gr,"AlignmentBus",24),Wc=new le(gr,"AlignmentBusBranching",25),Ph=new le(gr,"AlignmentTopLeftBus",26),ch=new le(gr,"AlignmentBottomRightBus",27),Vm=new le(gr,"CompactionNone",30),o0=new le(gr,"CompactionBlock",31),Km=new le(gr,"StyleLayered",40),Uv=new le(gr,"StyleLastParents",41),_v=new le(gr,"StyleAlternating",42),Hv=new le(gr,"StyleRootOnly",43),Zm=new le(gr,"ArrangementVertical",50),Gv=new le(gr,"ArrangementHorizontal",51),Ym=new le(gr,"ArrangementFixedRoots",52),Wv=new le(gr,"LayerIndividual",60),Vv=new le(gr,"LayerSiblings",61),Xm=new le(gr,"LayerUniform",62);gr.className="TreeLayout",gr.PathDefault=Wm,gr.PathDestination=_c,gr.PathSource=sp,gr.SortingForwards=Xp,gr.SortingReverse=n0,gr.SortingAscending=i0,gr.SortingDescending=r0,gr.AlignmentCenterSubtrees=Jp,gr.AlignmentCenterChildren=ap,gr.AlignmentStart=Hc,gr.AlignmentEnd=Gc,gr.AlignmentBus=Dh,gr.AlignmentBusBranching=Wc,gr.AlignmentTopLeftBus=Ph,gr.AlignmentBottomRightBus=ch,gr.CompactionNone=Vm,gr.CompactionBlock=o0,gr.StyleLayered=Km,gr.StyleLastParents=Uv,gr.StyleAlternating=_v,gr.StyleRootOnly=Hv,gr.ArrangementVertical=Zm,gr.ArrangementHorizontal=Gv,gr.ArrangementFixedRoots=Ym,gr.LayerIndividual=Wv,gr.LayerSiblings=Vv,gr.LayerUniform=Xm;function lp(t){Po.call(this,t)}Jn(lp,Po),lp.prototype.createVertex=function(){return new Gu(this)},lp.prototype.createEdge=function(){return new Qp(this)},lp.className="TreeNetwork";function Gu(t){na.call(this,t),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new $(0,0),this.Da=new ni(0,0),this.la=new $(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Xp,this.hd=dv,this.Kb=0,this.Jb=ap,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=o0,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=_r,this.wr=!0,this.Dp=_r}Jn(Gu,na),Gu.prototype.copyInheritedPropertiesFrom=function(t){t!==null&&(this.nd=t.sorting,this.hd=t.comparer,this.Kb=t.angle,this.Jb=t.alignment,this.Uq=t.nodeIndent,this.Vq=t.nodeIndentPastParent,this.Wq=t.nodeSpacing,this.ie=t.layerSpacing,this.Aq=t.layerSpacingParentOverlap,this.Hp=t.compaction,this.Ap=t.breadthLimit,this.nr=t.rowSpacing,this.mr=t.rowIndent,this.Gp=t.commentSpacing,this.Fp=t.commentMargin,this.xr=t.setsPortSpot,this.dr=t.portSpot,this.wr=t.setsChildPortSpot,this.Dp=t.childPortSpot)},te.Object.defineProperties(Gu.prototype,{initialized:{get:function(){return this.V},set:function(t){this.V!==t&&(this.V=t)}},parent:{get:function(){return this.hb},set:function(t){this.hb!==t&&(this.hb=t)}},children:{get:function(){return this.u},set:function(t){if(this.u!==t){if(t!==null)for(var e=t.length,n=0;n<e;n++);this.u=t}}},level:{get:function(){return this.ia},set:function(t){this.ia!==t&&(this.ia=t)}},descendantCount:{get:function(){return this.F},set:function(t){this.F!==t&&(this.F=t)}},maxChildrenCount:{get:function(){return this.Ha},set:function(t){this.Ha!==t&&(this.Ha=t)}},maxGenerationCount:{get:function(){return this.nb},set:function(t){this.nb!==t&&(this.nb=t)}},comments:{get:function(){return this.td},set:function(t){if(this.td!==t){if(t!==null)for(var e=t.length,n=0;n<e;n++);this.td=t}}},sorting:{get:function(){return this.nd},set:function(t){this.nd!==t&&(this.nd=t)}},comparer:{get:function(){return this.hd},set:function(t){this.hd!==t&&(this.hd=t)}},angle:{get:function(){return this.Kb},set:function(t){this.Kb!==t&&(this.Kb=t)}},alignment:{get:function(){return this.Jb},set:function(t){this.Jb!==t&&(this.Jb=t)}},nodeIndent:{get:function(){return this.Uq},set:function(t){this.Uq!==t&&(this.Uq=t)}},nodeIndentPastParent:{get:function(){return this.Vq},set:function(t){this.Vq!==t&&(this.Vq=t)}},nodeSpacing:{get:function(){return this.Wq},set:function(t){this.Wq!==t&&(this.Wq=t)}},layerSpacing:{get:function(){return this.ie},set:function(t){this.ie!==t&&(this.ie=t)}},layerSpacingParentOverlap:{get:function(){return this.Aq},set:function(t){this.Aq!==t&&(this.Aq=t)}},compaction:{get:function(){return this.Hp},set:function(t){this.Hp!==t&&(this.Hp=t)}},breadthLimit:{get:function(){return this.Ap},set:function(t){this.Ap!==t&&(this.Ap=t)}},rowSpacing:{get:function(){return this.nr},set:function(t){this.nr!==t&&(this.nr=t)}},rowIndent:{get:function(){return this.mr},set:function(t){this.mr!==t&&(this.mr=t)}},commentSpacing:{get:function(){return this.Gp},set:function(t){this.Gp!==t&&(this.Gp=t)}},commentMargin:{get:function(){return this.Fp},set:function(t){this.Fp!==t&&(this.Fp=t)}},setsPortSpot:{get:function(){return this.xr},set:function(t){this.xr!==t&&(this.xr=t)}},portSpot:{get:function(){return this.dr},set:function(t){this.dr.D(t)||(this.dr=t)}},setsChildPortSpot:{get:function(){return this.wr},set:function(t){this.wr!==t&&(this.wr=t)}},childPortSpot:{get:function(){return this.Dp},set:function(t){this.Dp.D(t)||(this.Dp=t)}},childrenCount:{get:function(){return this.children.length}},relativePosition:{get:function(){return this.S},set:function(t){this.S.set(t)}},subtreeSize:{get:function(){return this.Da},set:function(t){this.Da.set(t)}},subtreeOffset:{get:function(){return this.la},set:function(t){this.la.set(t)}}}),Gu.className="TreeVertex";function Qp(t){Ql.call(this,t),this.$t=new $(0,0)}Jn(Qp,Ql),Qp.prototype.commit=function(){var t=this.link;if(t!==null&&!t.isAvoiding){var e=this.network.layout,n=null,i=null;switch(e.ud){case _c:n=this.fromVertex,i=this.toVertex;break;case sp:n=this.toVertex,i=this.fromVertex;break;default:ne("Unhandled path value "+e.ud.toString())}if(n!==null&&i!==null){var r=this.$t;if(r.x!==0||r.y!==0||n.qA){i=n.bounds;var o=ic(n),s=e.computeLayerSpacing(n),l=n.rowSpacing;t.vg();var u=t.curve===yu,d=t.isOrthogonal,p;if(t.uh(),d||u){for(p=2;4<t.pointsCount;)t.pv(2);var v=t.i(1),E=t.i(2)}else{for(p=1;3<t.pointsCount;)t.pv(1);v=t.i(0),E=t.i(t.pointsCount-1)}var M=t.i(t.pointsCount-1);o===0?(n.alignment===Gc?(o=i.bottom+r.y,r.y===0&&v.y>M.y+n.rowIndent&&(o=Math.min(o,Math.max(v.y,o-e.computeNodeIndent(n))))):n.alignment===Hc?(o=i.top+r.y,r.y===0&&v.y<M.y-n.rowIndent&&(o=Math.max(o,Math.min(v.y,o+e.computeNodeIndent(n))))):o=n.hm||n.im&&n.maxGenerationCount===1?i.top-n.la.y+r.y:i.y+i.height/2+r.y,u?(t.m(p,v.x,o),p++,t.m(p,i.right+s,o),p++,t.m(p,i.right+s+(r.x-l)/3,o),p++,t.m(p,i.right+s+2*(r.x-l)/3,o),p++,t.m(p,i.right+s+(r.x-l),o),p++,t.m(p,E.x,o)):(d&&(t.m(p,i.right+s/2,v.y),p++),t.m(p,i.right+s/2,o),p++,t.m(p,i.right+s+r.x-(d?l/2:l),o),p++,d&&t.m(p,t.i(p-1).x,E.y))):o===90?(n.alignment===Gc?(o=i.right+r.x,r.x===0&&v.x>M.x+n.rowIndent&&(o=Math.min(o,Math.max(v.x,o-e.computeNodeIndent(n))))):n.alignment===Hc?(o=i.left+r.x,r.x===0&&v.x<M.x-n.rowIndent&&(o=Math.max(o,Math.min(v.x,o+e.computeNodeIndent(n))))):o=n.hm||n.im&&n.maxGenerationCount===1?i.left-n.la.x+r.x:i.x+i.width/2+r.x,u?(t.m(p,o,v.y),p++,t.m(p,o,i.bottom+s),p++,t.m(p,o,i.bottom+s+(r.y-l)/3),p++,t.m(p,o,i.bottom+s+2*(r.y-l)/3),p++,t.m(p,o,i.bottom+s+(r.y-l)),p++,t.m(p,o,E.y)):(d&&(t.m(p,v.x,i.bottom+s/2),p++),t.m(p,o,i.bottom+s/2),p++,t.m(p,o,i.bottom+s+r.y-(d?l/2:l)),p++,d&&t.m(p,E.x,t.i(p-1).y))):o===180?(n.alignment===Gc?(o=i.bottom+r.y,r.y===0&&v.y>M.y+n.rowIndent&&(o=Math.min(o,Math.max(v.y,o-e.computeNodeIndent(n))))):n.alignment===Hc?(o=i.top+r.y,r.y===0&&v.y<M.y-n.rowIndent&&(o=Math.max(o,Math.min(v.y,o+e.computeNodeIndent(n))))):o=n.hm||n.im&&n.maxGenerationCount===1?i.top-n.la.y+r.y:i.y+i.height/2+r.y,u?(t.m(p,v.x,o),p++,t.m(p,i.left-s,o),p++,t.m(p,i.left-s+(r.x+l)/3,o),p++,t.m(p,i.left-s+2*(r.x+l)/3,o),p++,t.m(p,i.left-s+(r.x+l),o),p++,t.m(p,E.x,o)):(d&&(t.m(p,i.left-s/2,v.y),p++),t.m(p,i.left-s/2,o),p++,t.m(p,i.left-s+r.x+(d?l/2:l),o),p++,d&&t.m(p,t.i(p-1).x,E.y))):o===270?(n.alignment===Gc?(o=i.right+r.x,r.x===0&&v.x>M.x+n.rowIndent&&(o=Math.min(o,Math.max(v.x,o-e.computeNodeIndent(n))))):n.alignment===Hc?(o=i.left+r.x,r.x===0&&v.x<M.x-n.rowIndent&&(o=Math.max(o,Math.min(v.x,o+e.computeNodeIndent(n))))):o=n.hm||n.im&&n.maxGenerationCount===1?i.left-n.la.x+r.x:i.x+i.width/2+r.x,u?(t.m(p,o,v.y),p++,t.m(p,o,i.top-s),p++,t.m(p,o,i.top-s+(r.y+l)/3),p++,t.m(p,o,i.top-s+2*(r.y+l)/3),p++,t.m(p,o,i.top-s+(r.y+l)),p++,t.m(p,o,E.y)):(d&&(t.m(p,v.x,i.top-s/2),p++),t.m(p,o,i.top-s/2),p++,t.m(p,o,i.top-s+r.y+(d?l/2:l)),p++,d&&t.m(p,E.x,t.i(p-1).y))):ne("Invalid angle "+o),t.zf()}else r=i,t=this.link,i=this.network.layout,e=ic(n),e!==ic(r)&&(s=i.computeLayerSpacing(n),l=n.bounds,n=r.bounds,e===0&&n.left-l.right<s+1||e===90&&n.top-l.bottom<s+1||e===180&&l.left-n.right<s+1||e===270&&l.top-n.bottom<s+1||(t.vg(),n=t.curve===yu,r=t.isOrthogonal,i=ad(this.fromVertex.alignment),t.uh(),e===0?(e=l.right+s/2,n?t.pointsCount===4&&(n=t.i(3).y,t.L(1,e-20,t.i(1).y),t.m(2,e-20,n),t.m(3,e,n),t.m(4,e+20,n),t.L(5,t.i(5).x,n)):r?i?t.L(3,t.i(2).x,t.i(4).y):t.pointsCount===6&&(t.L(2,e,t.i(2).y),t.L(3,e,t.i(3).y)):t.pointsCount===4?t.m(2,e,t.i(2).y):t.pointsCount===3?t.L(1,e,t.i(2).y):t.pointsCount===2&&t.m(1,e,t.i(1).y)):e===90?(e=l.bottom+s/2,n?t.pointsCount===4&&(n=t.i(3).x,t.L(1,t.i(1).x,e-20),t.m(2,n,e-20),t.m(3,n,e),t.m(4,n,e+20),t.L(5,n,t.i(5).y)):r?i?t.L(3,t.i(2).x,t.i(4).y):t.pointsCount===6&&(t.L(2,t.i(2).x,e),t.L(3,t.i(3).x,e)):t.pointsCount===4?t.m(2,t.i(2).x,e):t.pointsCount===3?t.L(1,t.i(2).x,e):t.pointsCount===2&&t.m(1,t.i(1).x,e)):e===180?(e=l.left-s/2,n?t.pointsCount===4&&(n=t.i(3).y,t.L(1,e+20,t.i(1).y),t.m(2,e+20,n),t.m(3,e,n),t.m(4,e-20,n),t.L(5,t.i(5).x,n)):r?i?t.L(3,t.i(2).x,t.i(4).y):t.pointsCount===6&&(t.L(2,e,t.i(2).y),t.L(3,e,t.i(3).y)):t.pointsCount===4?t.m(2,e,t.i(2).y):t.pointsCount===3?t.L(1,e,t.i(2).y):t.pointsCount===2&&t.m(1,e,t.i(1).y)):e===270&&(e=l.top-s/2,n?t.pointsCount===4&&(n=t.i(3).x,t.L(1,t.i(1).x,e+20),t.m(2,n,e+20),t.m(3,n,e),t.m(4,n,e-20),t.L(5,n,t.i(5).y)):r?i?t.L(3,t.i(2).x,t.i(4).y):t.pointsCount===6&&(t.L(2,t.i(2).x,e),t.L(3,t.i(3).x,e)):t.pointsCount===4?t.m(2,t.i(2).x,e):t.pointsCount===3?t.L(1,t.i(2).x,e):t.pointsCount===2&&t.m(1,t.i(1).x,e)),t.zf()))}}},te.Object.defineProperties(Qp.prototype,{fromVertex:{get:function(){return this.kd},set:function(t){this.kd!==t&&(this.kd=t)}},toVertex:{get:function(){return this.qd},set:function(t){this.qd!==t&&(this.qd=t)}},relativePoint:{get:function(){return this.$t},set:function(t){this.$t.set(t)}}}),Qp.className="TreeEdge",Bo.prototype.initializeStandardTools=function(){this.gb("Action",new Li,this.mouseDownTools),this.gb("Relinking",new Hn,this.mouseDownTools),this.gb("LinkReshaping",new Zn,this.mouseDownTools),this.gb("Rotating",new jt,this.mouseDownTools),this.gb("Resizing",new Oi,this.mouseDownTools),this.gb("Linking",new An,this.mouseMoveTools),this.gb("Dragging",new Yo,this.mouseMoveTools),this.gb("DragSelecting",new Ai,this.mouseMoveTools),this.gb("Panning",new gi,this.mouseMoveTools),this.gb("ContextMenu",new yr,this.mouseUpTools),this.gb("TextEditing",new ut,this.mouseUpTools),this.gb("ClickCreating",new sr,this.mouseUpTools),this.gb("ClickSelecting",new to,this.mouseUpTools)},Nc("Horizontal",new T0),Nc("Spot",new N0),Nc("Table",new A0),Nc("Viewbox",new L0),Nc("TableRow",new M0),Nc("TableColumn",new O0),Nc("Graduated",new Sf),Nc("Grid",new bf),Sp.add("GraphLinksModel",fa),Sp.add("TreeModel",Lu);var Jm=Ft.go,Kv={get licenseKey(){return ue.licenseKey},set licenseKey(t){ue.licenseKey=t},get version(){return ue.version},Group:Ki,EnumValue:le,List:Re,Set:je,Map:pt,Point:$,Size:ni,Rect:ke,Margin:ri,Spot:Wn,Geometry:mn,PathFigure:Ls,PathSegment:Lr,InputEvent:ra,DiagramEvent:wu,ChangedEvent:_o,Model:Yn,GraphLinksModel:Mr,TreeModel:xl,Binding:zs,Transaction:Rs,UndoManager:Ho,CommandHandler:st,Tool:Nr,DraggingTool:Yo,DraggingInfo:rh,DraggingOptions:c,LinkingBaseTool:me,LinkingTool:An,RelinkingTool:Hn,LinkReshapingTool:Zn,ResizingTool:Oi,RotatingTool:jt,ClickSelectingTool:to,ActionTool:Li,ClickCreatingTool:sr,HTMLInfo:ji,ContextMenuTool:yr,DragSelectingTool:Ai,PanningTool:gi,TextEditingTool:ut,ToolManager:Bo,Animation:zo,AnimationManager:ti,AnimationTrigger:Va,Layer:$o,Diagram:ue,Palette:g,Overview:b,Brush:ro,GraphObject:Wt,Panel:sn,RowColumnDefinition:Ys,Shape:Qi,TextBlock:Do,Picture:Ol,Part:li,Adornment:jr,Node:Rn,Link:pn,Placeholder:ml,Layout:ts,LayoutNetwork:Po,LayoutVertex:na,LayoutEdge:Ql,GridLayout:Ea,PanelLayout:ea,CircularLayout:as,CircularNetwork:Kp,CircularVertex:Yf,CircularEdge:Om,ForceDirectedLayout:Da,ForceDirectedNetwork:rp,ForceDirectedVertex:Xf,ForceDirectedEdge:Jf,LayeredDigraphLayout:ao,LayeredDigraphNetwork:Yp,LayeredDigraphVertex:Du,LayeredDigraphEdge:t0,TreeLayout:gr,TreeNetwork:lp,TreeVertex:Gu,TreeEdge:Qp};typeof Jm=="object"&&Jm.version&&hi("WARNING: a `go` object on the root object is already defined. "+("Debug"in Jm?"debug ":"")+"version: "+Jm.version+", replaced with version: "+Kv.version),ue.prototype.go=Kv,Ft.go=Kv,typeof V.exports=="object"&&(V.exports=typeof h.g!="undefined"?h.g.go:self.go)}();var y=typeof h.g!="undefined"?h.g.go:self.go;const N=typeof h.g!="undefined"?h.g.go:self.go,O=N.Group,B=N.EnumValue,_=N.List,K=N.Set,I=N.Map,dt=N.Point,rt=N.Size,Q=N.Rect,kt=N.Margin,Y=N.Spot,Yt=N.Geometry,At=N.PathFigure,vt=N.PathSegment,Tt=N.InputEvent,Mt=N.DiagramEvent,ft=N.ChangedEvent,It=N.Model,$t=N.GraphLinksModel,Nt=N.TreeModel,Ut=N.Binding,et=N.Transaction,Rt=N.UndoManager,Lt=N.CommandHandler,Kt=N.Tool,Qt=N.DraggingTool,ie=N.DraggingInfo,yt=N.LinkingBaseTool,ae=N.LinkingTool,Ht=N.RelinkingTool,Pe=N.LinkReshapingTool,ge=N.ResizingTool,we=N.RotatingTool,pe=N.ClickSelectingTool,ln=N.ActionTool,zt=N.ClickCreatingTool,nt=N.HTMLInfo,it=N.ContextMenuTool,Te=N.DragSelectingTool,Ae=N.PanningTool,de=N.TextEditingTool,en=N.ToolManager,vn=N.Animation,Xn=N.AnimationManager,gn=N.AnimationTrigger,_n=N.Layer,$n=N.Diagram,fn=N.Palette,hn=N.Overview,ct=N.Brush,L=N.GraphObject,k=N.Panel,z=N.RowColumnDefinition,G=N.Shape,T=N.TextBlock,St=N.TextBlockMetrics,fe=N.Picture,Ct=N.Part,xt=N.Adornment,Dt=N.Node,qt=N.Link,_t=N.Placeholder,ve=N.Layout,Ge=N.LayoutNetwork,Ke=N.LayoutVertex,Ce=N.LayoutEdge,Ve=N.GridLayout,Qe=N.PanelLayout,Bt=N.CircularLayout,xe=N.CircularNetwork,ze=N.CircularVertex,Ne=N.CircularEdge,Cn=N.ForceDirectedLayout,En=N.ForceDirectedNetwork,jn=N.ForceDirectedVertex,On=N.ForceDirectedEdge,ci=N.LayeredDigraphLayout,Si=N.LayeredDigraphNetwork,vi=N.LayeredDigraphVertex,qn=N.LayeredDigraphEdge,an=N.TreeLayout,Ji=N.TreeNetwork,ui=N.TreeVertex,lr=N.TreeEdge,Di=N.version},46963:function(V){"use strict";V.exports=h;var w=/[#.]/g;function h(y,N){for(var O=y||"",B=N||"div",_={},K=0,I,dt,rt;K<O.length;)w.lastIndex=K,rt=w.exec(O),I=O.slice(K,rt?rt.index:O.length),I&&(dt?dt==="#"?_.id=I:_.className?_.className.push(I):_.className=[I]:B=I,K+=I.length),rt&&(dt=rt[0],K++);return{type:"element",tagName:B,properties:_,children:[]}}},5641:function(V,w,h){"use strict";var y=h(88914),N=h(47178),O=h(46963),B=h(92848).Q,_=h(58951).Q;V.exports=I;var K={}.hasOwnProperty;function I(vt,Tt,Mt){var ft=Mt?At(Mt):null;return It;function It(Nt,Ut){var et=O(Nt,Tt),Rt=Array.prototype.slice.call(arguments,2),Lt=et.tagName.toLowerCase(),Kt;if(et.tagName=ft&&K.call(ft,Lt)?ft[Lt]:Lt,Ut&&dt(Ut,et)&&(Rt.unshift(Ut),Ut=null),Ut)for(Kt in Ut)$t(et.properties,Kt,Ut[Kt]);return Q(et.children,Rt),et.tagName==="template"&&(et.content={type:"root",children:et.children},et.children=[]),et}function $t(Nt,Ut,et){var Rt,Lt,Kt;et==null||et!==et||(Rt=y(vt,Ut),Lt=Rt.property,Kt=et,typeof Kt=="string"&&(Rt.spaceSeparated?Kt=B(Kt):Rt.commaSeparated?Kt=_(Kt):Rt.commaOrSpaceSeparated&&(Kt=B(_(Kt).join(" ")))),Lt==="style"&&typeof et!="string"&&(Kt=Yt(Kt)),Lt==="className"&&Nt.className&&(Kt=Nt.className.concat(Kt)),Nt[Lt]=kt(Rt,Lt,Kt))}}function dt(vt,Tt){return typeof vt=="string"||"length"in vt||rt(Tt.tagName,vt)}function rt(vt,Tt){var Mt=Tt.type;return vt==="input"||!Mt||typeof Mt!="string"?!1:typeof Tt.children=="object"&&"length"in Tt.children?!0:(Mt=Mt.toLowerCase(),vt==="button"?Mt!=="menu"&&Mt!=="submit"&&Mt!=="reset"&&Mt!=="button":"value"in Tt)}function Q(vt,Tt){var Mt,ft;if(typeof Tt=="string"||typeof Tt=="number"){vt.push({type:"text",value:String(Tt)});return}if(typeof Tt=="object"&&"length"in Tt){for(Mt=-1,ft=Tt.length;++Mt<ft;)Q(vt,Tt[Mt]);return}if(typeof Tt!="object"||!("type"in Tt))throw new Error("Expected node, nodes, or string, got `"+Tt+"`");vt.push(Tt)}function kt(vt,Tt,Mt){var ft,It,$t;if(typeof Mt!="object"||!("length"in Mt))return Y(vt,Tt,Mt);for(It=Mt.length,ft=-1,$t=[];++ft<It;)$t[ft]=Y(vt,Tt,Mt[ft]);return $t}function Y(vt,Tt,Mt){var ft=Mt;return vt.number||vt.positiveNumber?!isNaN(ft)&&ft!==""&&(ft=Number(ft)):(vt.boolean||vt.overloadedBoolean)&&typeof ft=="string"&&(ft===""||N(Mt)===N(Tt))&&(ft=!0),ft}function Yt(vt){var Tt=[],Mt;for(Mt in vt)Tt.push([Mt,vt[Mt]].join(": "));return Tt.join("; ")}function At(vt){for(var Tt=vt.length,Mt=-1,ft={},It;++Mt<Tt;)It=vt[Mt],ft[It.toLowerCase()]=It;return ft}},82073:function(V,w,h){"use strict";var y=h(18795),N=h(5641),O=N(y,"div");O.displayName="html",V.exports=O},43621:function(V,w,h){"use strict";V.exports=h(82073)},93193:function(V){var w=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,h=/\n/g,y=/^\s*/,N=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,O=/^:\s*/,B=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,_=/^[;\s]*/,K=/^\s+|\s+$/g,I=`
|
|
|
`,dt="/",rt="*",Q="",kt="comment",Y="declaration";V.exports=function(At,vt){if(typeof At!="string")throw new TypeError("First argument must be a string");if(!At)return[];vt=vt||{};var Tt=1,Mt=1;function ft(yt){var ae=yt.match(h);ae&&(Tt+=ae.length);var Ht=yt.lastIndexOf(I);Mt=~Ht?yt.length-Ht:Mt+yt.length}function It(){var yt={line:Tt,column:Mt};return function(ae){return ae.position=new $t(yt),Rt(),ae}}function $t(yt){this.start=yt,this.end={line:Tt,column:Mt},this.source=vt.source}$t.prototype.content=At;var Nt=[];function Ut(yt){var ae=new Error(vt.source+":"+Tt+":"+Mt+": "+yt);if(ae.reason=yt,ae.filename=vt.source,ae.line=Tt,ae.column=Mt,ae.source=At,vt.silent)Nt.push(ae);else throw ae}function et(yt){var ae=yt.exec(At);if(ae){var Ht=ae[0];return ft(Ht),At=At.slice(Ht.length),ae}}function Rt(){et(y)}function Lt(yt){var ae;for(yt=yt||[];ae=Kt();)ae!==!1&&yt.push(ae);return yt}function Kt(){var yt=It();if(!(dt!=At.charAt(0)||rt!=At.charAt(1))){for(var ae=2;Q!=At.charAt(ae)&&(rt!=At.charAt(ae)||dt!=At.charAt(ae+1));)++ae;if(ae+=2,Q===At.charAt(ae-1))return Ut("End of comment missing");var Ht=At.slice(2,ae-2);return Mt+=2,ft(Ht),At=At.slice(ae),Mt+=2,yt({type:kt,comment:Ht})}}function Qt(){var yt=It(),ae=et(N);if(ae){if(Kt(),!et(O))return Ut("property missing ':'");var Ht=et(B),Pe=yt({type:Y,property:Yt(ae[0].replace(w,Q)),value:Ht?Yt(Ht[0].replace(w,Q)):Q});return et(_),Pe}}function ie(){var yt=[];Lt(yt);for(var ae;ae=Qt();)ae!==!1&&(yt.push(ae),Lt(yt));return yt}return Rt(),ie()};function Yt(At){return At?At.replace(K,Q):Q}},91241:function(V){"use strict";V.exports=w;function w(h){var y=typeof h=="string"?h.charCodeAt(0):h;return y>=97&&y<=122||y>=65&&y<=90}},21127:function(V,w,h){"use strict";var y=h(91241),N=h(22347);V.exports=O;function O(B){return y(B)||N(B)}},22347:function(V){"use strict";V.exports=w;function w(h){var y=typeof h=="string"?h.charCodeAt(0):h;return y>=48&&y<=57}},65207:function(V){"use strict";V.exports=w;function w(h){var y=typeof h=="string"?h.charCodeAt(0):h;return y>=97&&y<=102||y>=65&&y<=70||y>=48&&y<=57}},2859:function(V,w,h){"use strict";h.d(w,{hP:function(){return hn}});var y=function(ct,L){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,z){k.__proto__=z}||function(k,z){for(var G in z)Object.prototype.hasOwnProperty.call(z,G)&&(k[G]=z[G])})(ct,L)};function N(ct,L){function k(){this.constructor=ct}y(ct,L),ct.prototype=L===null?Object.create(L):(k.prototype=L.prototype,new k)}function O(ct,L,k,z){return new(k||(k=Promise))(function(G,T){function St(xt){try{Ct(z.next(xt))}catch(Dt){T(Dt)}}function fe(xt){try{Ct(z.throw(xt))}catch(Dt){T(Dt)}}function Ct(xt){var Dt;xt.done?G(xt.value):(Dt=xt.value,Dt instanceof k?Dt:new k(function(qt){qt(Dt)})).then(St,fe)}Ct((z=z.apply(ct,L||[])).next())})}function B(ct,L){var k,z,G,T,St={label:0,sent:function(){if(1&G[0])throw G[1];return G[1]},trys:[],ops:[]};return T={next:fe(0),throw:fe(1),return:fe(2)},typeof Symbol=="function"&&(T[Symbol.iterator]=function(){return this}),T;function fe(Ct){return function(xt){return function(Dt){if(k)throw new TypeError("Generator is already executing.");for(;St;)try{if(k=1,z&&(G=2&Dt[0]?z.return:Dt[0]?z.throw||((G=z.return)&&G.call(z),0):z.next)&&!(G=G.call(z,Dt[1])).done)return G;switch(z=0,G&&(Dt=[2&Dt[0],G.value]),Dt[0]){case 0:case 1:G=Dt;break;case 4:return St.label++,{value:Dt[1],done:!1};case 5:St.label++,z=Dt[1],Dt=[0];continue;case 7:Dt=St.ops.pop(),St.trys.pop();continue;default:if(G=St.trys,!((G=G.length>0&&G[G.length-1])||Dt[0]!==6&&Dt[0]!==2)){St=0;continue}if(Dt[0]===3&&(!G||Dt[1]>G[0]&&Dt[1]<G[3])){St.label=Dt[1];break}if(Dt[0]===6&&St.label<G[1]){St.label=G[1],G=Dt;break}if(G&&St.label<G[2]){St.label=G[2],St.ops.push(Dt);break}G[2]&&St.ops.pop(),St.trys.pop();continue}Dt=L.call(ct,St)}catch(qt){Dt=[6,qt],z=0}finally{k=G=0}if(5&Dt[0])throw Dt[1];return{value:Dt[0]?Dt[1]:void 0,done:!0}}([Ct,xt])}}}function _(){for(var ct=0,L=0,k=arguments.length;L<k;L++)ct+=arguments[L].length;var z=Array(ct),G=0;for(L=0;L<k;L++)for(var T=arguments[L],St=0,fe=T.length;St<fe;St++,G++)z[G]=T[St];return z}var K=function(){function ct(){}return ct.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ct.setAttributes=function(L,k){for(var z=0,G=k;z<G.length;z++){var T=G[z],St=T[0],fe=T[1];L.setAttribute(St,fe)}},ct.createRect=function(L,k,z){var G=document.createElementNS("http://www.w3.org/2000/svg","rect");return G.setAttribute("width",L.toString()),G.setAttribute("height",k.toString()),z&&ct.setAttributes(G,z),G},ct.createLine=function(L,k,z,G,T){var St=document.createElementNS("http://www.w3.org/2000/svg","line");return St.setAttribute("x1",L.toString()),St.setAttribute("y1",k.toString()),St.setAttribute("x2",z.toString()),St.setAttribute("y2",G.toString()),T&&ct.setAttributes(St,T),St},ct.createPolygon=function(L,k){var z=document.createElementNS("http://www.w3.org/2000/svg","polygon");return z.setAttribute("points",L),k&&ct.setAttributes(z,k),z},ct.createCircle=function(L,k){var z=document.createElementNS("http://www.w3.org/2000/svg","circle");return z.setAttribute("cx",(L/2).toString()),z.setAttribute("cy",(L/2).toString()),z.setAttribute("r",L.toString()),k&&ct.setAttributes(z,k),z},ct.createEllipse=function(L,k,z){var G=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return G.setAttribute("cx",(L/2).toString()),G.setAttribute("cy",(k/2).toString()),G.setAttribute("rx",(L/2).toString()),G.setAttribute("ry",(k/2).toString()),z&&ct.setAttributes(G,z),G},ct.createGroup=function(L){var k=document.createElementNS("http://www.w3.org/2000/svg","g");return L&&ct.setAttributes(k,L),k},ct.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ct.createMarker=function(L,k,z,G,T,St,fe){var Ct=document.createElementNS("http://www.w3.org/2000/svg","marker");return ct.setAttributes(Ct,[["id",L],["orient",k],["markerWidth",z.toString()],["markerHeight",G.toString()],["refX",T.toString()],["refY",St.toString()]]),Ct.appendChild(fe),Ct},ct.createText=function(L){var k=document.createElementNS("http://www.w3.org/2000/svg","text");return k.setAttribute("x","0"),k.setAttribute("y","0"),L&&ct.setAttributes(k,L),k},ct.createTSpan=function(L,k){var z=document.createElementNS("http://www.w3.org/2000/svg","tspan");return z.textContent=L,k&&ct.setAttributes(z,k),z},ct.createImage=function(L){var k=document.createElementNS("http://www.w3.org/2000/svg","image");return L&&ct.setAttributes(k,L),k},ct.createPoint=function(L,k){var z=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return z.x=L,z.y=k,z},ct.createPath=function(L,k){var z=document.createElementNS("http://www.w3.org/2000/svg","path");return z.setAttribute("d",L),k&&ct.setAttributes(z,k),z},ct}(),I=function(){function ct(){}return ct.addKey=function(L){ct.key=L},Object.defineProperty(ct,"isLicensed",{get:function(){return!!ct.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(ct.key)},enumerable:!1,configurable:!0}),ct}(),dt=function(){function ct(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ct.prototype.rasterize=function(L,k,z){var G=this;return new Promise(function(T){var St=z!==void 0?z:document.createElement("canvas");L===null&&(G.markersOnly=!0,G.naturalSize=!1);var fe=document.createElementNS("http://www.w3.org/2000/svg","svg");fe.setAttribute("xmlns","http://www.w3.org/2000/svg"),fe.setAttribute("width",k.width.baseVal.valueAsString),fe.setAttribute("height",k.height.baseVal.valueAsString),fe.setAttribute("viewBox","0 0 "+k.viewBox.baseVal.width.toString()+" "+k.viewBox.baseVal.height.toString()),fe.innerHTML=k.innerHTML,G.naturalSize===!0?(fe.width.baseVal.value=L.naturalWidth,fe.height.baseVal.value=L.naturalHeight):G.width!==void 0&&G.height!==void 0&&(fe.width.baseVal.value=G.width,fe.height.baseVal.value=G.height),St.width=fe.width.baseVal.value,St.height=fe.height.baseVal.value;var Ct=fe.outerHTML,xt=St.getContext("2d");G.markersOnly!==!0&&xt.drawImage(L,0,0,St.width,St.height);var Dt=window.URL,qt=new Image(St.width,St.height);qt.setAttribute("crossOrigin","anonymous");var _t=new Blob([Ct],{type:"image/svg+xml"}),ve=Dt.createObjectURL(_t);qt.onload=function(){xt.drawImage(qt,0,0),Dt.revokeObjectURL(ve);var Ge=St.toDataURL(G.imageType,G.imageQuality);T(Ge)},qt.src=ve})},ct}(),rt=function(){},Q=function(){function ct(L){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+L+"_"}return Object.defineProperty(ct.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(ct.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(ct.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),ct.prototype.addClass=function(L){return this.styleSheet===void 0&&this.addStyleSheet(),L.name=""+this.classNamePrefix+L.localName,this.classes.push(L),this.styleSheet.sheet.insertRule("."+L.name+" {"+L.style+"}",this.styleSheet.sheet.cssRules.length),L},ct.prototype.addRule=function(L){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(L),this.styleSheet.sheet.insertRule(L.selector+" {"+L.style+"}",this.styleSheet.sheet.cssRules.length)},ct.prototype.addStyleSheet=function(){var L;this.styleSheet=document.createElement("style"),((L=this.styleSheetRoot)!==null&&L!==void 0?L:document.head).appendChild(this.styleSheet),this.addRule(new kt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new kt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new kt("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new Y("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new Y("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},ct.prototype.removeStyleSheet=function(){var L;this.styleSheet&&(((L=this.styleSheetRoot)!==null&&L!==void 0?L:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ct}(),kt=function(ct,L){this.selector=ct,this.style=L},Y=function(ct,L){this.localName=ct,this.style=L},Yt=function(){function ct(L,k,z,G,T){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=L,this.displayMode=k,this.markerItems=z,this.uiStyleSettings=G,this.styles=T,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return ct.prototype.show=function(L){var k=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=L,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var z=document.createElement("div");z.className=this.toolbarBlockStyleClass.name,z.style.whiteSpace="nowrap",this.uiContainer.appendChild(z),this.addActionButton(z,'<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(z,'<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(z,'<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(z,'<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(z,'<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(z,'<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(z,'<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(z,'<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(T){var St=document.createElement("div");St.className=""+k.toolbarButtonStyleClass.name,St.setAttribute("data-type-name",T.typeName),St.innerHTML=T.icon,St.addEventListener("click",function(){k.markerToolbarButtonClicked(St,T)}),k.buttons.push(St),k.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 G=document.createElement("div");G.className=this.toolbarBlockStyleClass.name,G.style.whiteSpace="nowrap",G.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(G),this.addActionButton(G,'<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(G,'<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()},ct.prototype.addButtonClickListener=function(L){this.buttonClickListeners.push(L)},ct.prototype.removeButtonClickListener=function(L){this.buttonClickListeners.indexOf(L)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(L),1)},ct.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ct.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var L=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var k=0;k<this.markerButtons.length;k++)k<L||k===L&&this.markerButtons.length-1===L?this.markerButtonBlock.appendChild(this.markerButtons[k]):(k===L&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[k]))}},ct.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")},ct.prototype.resetButtonStyles=function(){var L=this;this.buttons.forEach(function(k){k.className=k.className.replace(L.uiStyleSettings.toolbarButtonStyleColorsClassName?L.uiStyleSettings.toolbarButtonStyleColorsClassName:L.toolbarButtonStyleColorsClass.name,"").trim(),k.className=k.className.replace(L.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?L.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:L.toolbarActiveButtonStyleColorsClass.name,"").trim(),k.className+=" "+(L.uiStyleSettings.toolbarButtonStyleColorsClassName?L.uiStyleSettings.toolbarButtonStyleColorsClassName:L.toolbarButtonStyleColorsClass.name)})},ct.prototype.addActionButton=function(L,k,z){var G=this,T=document.createElement("div");switch(T.className=""+this.toolbarButtonStyleClass.name,T.innerHTML=k,T.setAttribute("data-action",z),T.addEventListener("click",function(){G.actionToolbarButtonClicked(T,z)}),z){case"select":T.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":T.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":T.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":T.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":T.style.fill=this.uiStyleSettings.closeButtonColor}L.appendChild(T),this.buttons.push(T)},ct.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Y("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 Y("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Y("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Y("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 Y("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var L=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Y("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*L)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*L)+`px;
|
|
|
padding: `+L+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Y("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Y("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new kt("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new kt("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},ct.prototype.markerToolbarButtonClicked=function(L,k){this.setActiveButton(L),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(z){return z("marker",k)}),this.markerButtonOverflowBlock.style.display="none"},ct.prototype.actionToolbarButtonClicked=function(L,k){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(z){return z("action",k)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ct.prototype.setActiveButton=function(L){this.resetButtonStyles(),L.className=L.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),L.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ct.prototype.setActiveMarkerButton=function(L){var k=this.markerButtons.find(function(z){return z.getAttribute("data-type-name")===L});k&&this.setActiveButton(k)},ct.prototype.setCurrentMarker=function(L){var k=this;this.currentMarker=L,this.buttons.filter(function(z){return/delete|notes/.test(z.getAttribute("data-action"))}).forEach(function(z){k.currentMarker===void 0?(z.style.fillOpacity="0.4",z.style.pointerEvents="none"):(z.style.fillOpacity="1",z.style.pointerEvents="all")})},ct}(),At=function(){function ct(L,k,z,G){this.panels=[],this.panelButtons=[],this.markerjsContainer=L,this.displayMode=k,this.uiStyleSettings=z,this.styles=G,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ct.prototype.addStyles=function(){var L;this.toolboxStyleClass=this.styles.addClass(new Y("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 Y("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var k=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Y("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Y("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Y("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 Y("toolbox-panel-row_colors",`
|
|
|
background-color: `+((L=this.uiStyleSettings.toolboxBackgroundColor)!==null&&L!==void 0?L:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Y("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*k)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*k)+`px;
|
|
|
padding: `+k+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Y("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Y("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new kt("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new kt("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},ct.prototype.show=function(L){var k;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=L,this.uiContainer.className=this.toolboxStyleClass.name+" "+((k=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&k!==void 0?k:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ct.prototype.setPanelButtons=function(L){var k,z,G=this;this.panels=L,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((k=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&k!==void 0?k:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((z=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&z!==void 0?z:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(T){var St;T.uiStyleSettings=G.uiStyleSettings;var fe=document.createElement("div");fe.className=G.toolboxButtonStyleClass.name+" "+((St=G.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&St!==void 0?St:G.toolboxButtonStyleColorsClass.name),fe.innerHTML=T.icon,fe.title=T.title,fe.addEventListener("click",function(){G.panelButtonClick(T)}),G.panelButtons.push(fe),G.buttonRow.appendChild(fe)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ct.prototype.panelButtonClick=function(L){var k=this,z=-1;if(L!==this.activePanel){z=this.panels.indexOf(L),this.panelRow.innerHTML="";var G=L.getUi();G.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(G),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=L}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){k.displayMode==="inline"?k.panelRow.style.display="none":k.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(T,St){var fe,Ct;T.className=k.toolboxButtonStyleClass.name+" "+(St===z?""+((fe=k.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&fe!==void 0?fe:k.toolboxActiveButtonStyleColorsClass.name):""+((Ct=k.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ct!==void 0?Ct:k.toolboxButtonStyleColorsClass.name))})},ct}(),vt=function(ct,L){this.title=ct,this.icon=L},Tt=function(ct){function L(k,z,G,T){var St=ct.call(this,k,T||'<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=z,St.currentColor=G,St.setCurrentColor=St.setCurrentColor.bind(St),St.getColorBox=St.getColorBox.bind(St),St}return N(L,ct),L.prototype.getUi=function(){var k=this,z=document.createElement("div");return z.style.overflow="hidden",z.style.whiteSpace="nowrap",this.colors.forEach(function(G){var T=k.getColorBox(G);z.appendChild(T),k.colorBoxes.push(T)}),z},L.prototype.getColorBox=function(k){var z=this,G=this.uiStyleSettings.toolbarHeight/4,T=this.uiStyleSettings.toolbarHeight-G,St=document.createElement("div");St.style.display="inline-block",St.style.boxSizing="content-box",St.style.width=T-2+"px",St.style.height=T-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=(T+2)/2+"px",St.style.borderColor=k===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",St.addEventListener("click",function(){z.setCurrentColor(k,St)});var fe=document.createElement("div");return fe.style.display="inline-block",fe.style.width=T-2+"px",fe.style.height=T-2+"px",fe.style.backgroundColor=k,fe.style.borderRadius=T/2+"px",k==="transparent"&&(fe.style.fill=this.uiStyleSettings.toolboxAccentColor,fe.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(fe),St},L.prototype.setCurrentColor=function(k,z){var G=this;this.currentColor=k,this.colorBoxes.forEach(function(T){T.style.borderColor=T===z?G.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(k)},L}(vt),Mt=function(){function ct(L,k,z){this._state="new",this._isSelected=!1,this._container=L,this._overlayContainer=k,this.globalSettings=z,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ct.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ct.prototype.ownsTarget=function(L){return!1},Object.defineProperty(ct.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ct.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ct.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ct.prototype.pointerDown=function(L,k){},ct.prototype.dblClick=function(L,k){},ct.prototype.manipulate=function(L){},ct.prototype.pointerUp=function(L){this.stateChanged()},ct.prototype.dispose=function(){},ct.prototype.addMarkerVisualToContainer=function(L){this.container.childNodes.length>0?this.container.insertBefore(L,this.container.childNodes[0]):this.container.appendChild(L)},ct.prototype.getState=function(){return{typeName:ct.typeName,state:this.state,notes:this.notes}},ct.prototype.restoreState=function(L){this._state=L.state,this.notes=L.notes},ct.prototype.scale=function(L,k){},ct.prototype.colorChanged=function(L){this.onColorChanged&&this.onColorChanged(L),this.stateChanged()},ct.prototype.fillColorChanged=function(L){this.onFillColorChanged&&this.onFillColorChanged(L),this.stateChanged()},ct.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var L=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),L.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(L)&&this.onStateChanged(this)}},ct.typeName="MarkerBase",ct}(),ft=function(){function ct(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ct.prototype.findGripByVisual=function(L){return this.topLeft.ownsTarget(L)?this.topLeft:this.topCenter.ownsTarget(L)?this.topCenter:this.topRight.ownsTarget(L)?this.topRight:this.centerLeft.ownsTarget(L)?this.centerLeft:this.centerRight.ownsTarget(L)?this.centerRight:this.bottomLeft.ownsTarget(L)?this.bottomLeft:this.bottomCenter.ownsTarget(L)?this.bottomCenter:this.bottomRight.ownsTarget(L)?this.bottomRight:void 0},ct}(),It=function(){function ct(){this.GRIP_SIZE=10,this.visual=K.createGroup(),this.visual.appendChild(K.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(K.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ct.prototype.ownsTarget=function(L){return L===this.visual||L===this.visual.childNodes[0]||L===this.visual.childNodes[1]},ct}(),$t=function(){function ct(){}return ct.toITransformMatrix=function(L){return{a:L.a,b:L.b,c:L.c,d:L.d,e:L.e,f:L.f}},ct.toSVGMatrix=function(L,k){return L.a=k.a,L.b=k.b,L.c=k.c,L.d=k.d,L.e=k.e,L.f=k.f,L},ct}(),Nt=function(ct){function L(k,z,G){var T=ct.call(this,k,z,G)||this;return T.left=0,T.top=0,T.width=0,T.height=0,T.defaultSize={x:50,y:20},T.offsetX=0,T.offsetY=0,T.rotationAngle=0,T.CB_DISTANCE=10,T._suppressMarkerCreateEvent=!1,T.container.transform.baseVal.appendItem(K.createTransform()),T.setupControlBox(),T}return N(L,ct),Object.defineProperty(L.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"visual",{get:function(){return this._visual},set:function(k){this._visual=k;var z=K.createTransform();this._visual.transform.baseVal.appendItem(z)},enumerable:!1,configurable:!0}),L.prototype.ownsTarget=function(k){return!!ct.prototype.ownsTarget.call(this,k)||!!(this.controlGrips.findGripByVisual(k)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(k))},L.prototype.pointerDown=function(k,z){ct.prototype.pointerDown.call(this,k,z),this.state==="new"&&(this.left=k.x,this.top=k.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var G=this.unrotatePoint(k);if(this.manipulationStartX=G.x,this.manipulationStartY=G.y,this.offsetX=G.x-this.left,this.offsetY=G.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(z),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(z)){this.activeGrip=this.rotatorGrip;var T=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=T.x-this.width/2,this.top=T.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"},L.prototype.pointerUp=function(k){var z=this.state;ct.prototype.pointerUp.call(this,k),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(k),this._state="select",z==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},L.prototype.moveVisual=function(k){this.visual.style.transform="translate("+k.x+"px, "+k.y+"px)"},L.prototype.manipulate=function(k){var z=this.unrotatePoint(k);this.state==="creating"?this.resize(k):this.state==="move"?(this.left=this.manipulationStartLeft+(z.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(z.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(z):this.state==="rotate"&&this.rotate(k)},L.prototype.resize=function(k){var z=this.manipulationStartLeft,G=this.manipulationStartWidth,T=this.manipulationStartTop,St=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:z=this.manipulationStartLeft+k.x-this.manipulationStartX,G=this.manipulationStartWidth+this.manipulationStartLeft-z;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:G=this.manipulationStartWidth+k.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:T=this.manipulationStartTop+k.y-this.manipulationStartY,St=this.manipulationStartHeight+this.manipulationStartTop-T;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:St=this.manipulationStartHeight+k.y-this.manipulationStartY}G>=0?(this.left=z,this.width=G):(this.left=z+G,this.width=-G),St>=0?(this.top=T,this.height=St):(this.top=T+St,this.height=-St),this.setSize()},L.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},L.prototype.rotate=function(k){if(Math.abs(k.x-this.centerX)>.1){var z=Math.sign(k.x-this.centerX);this.rotationAngle=180*Math.atan((k.y-this.centerY)/(k.x-this.centerX))/Math.PI+90*z,this.applyRotation()}},L.prototype.applyRotation=function(){var k=this.container.transform.baseVal.getItem(0);k.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(k,0)},L.prototype.rotatePoint=function(k){if(this.rotationAngle===0)return k;var z=this.container.getCTM(),G=K.createPoint(k.x,k.y);return{x:(G=G.matrixTransform(z)).x,y:G.y}},L.prototype.unrotatePoint=function(k){if(this.rotationAngle===0)return k;var z=this.container.getCTM();z=z.inverse();var G=K.createPoint(k.x,k.y);return{x:(G=G.matrixTransform(z)).x,y:G.y}},L.prototype.select=function(){ct.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},L.prototype.deselect=function(){ct.prototype.deselect.call(this),this.controlBox.style.display="none"},L.prototype.setupControlBox=function(){this.controlBox=K.createGroup();var k=K.createTransform();k.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(k),this.container.appendChild(this.controlBox),this.controlRect=K.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=K.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 ft,this.addControlGrips(),this.controlBox.style.display="none"},L.prototype.adjustControlBox=function(){var k=this.controlBox.transform.baseVal.getItem(0);k.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(k,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()},L.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()},L.prototype.createGrip=function(){var k=new It;return k.visual.transform.baseVal.appendItem(K.createTransform()),this.controlBox.appendChild(k.visual),k},L.prototype.positionGrips=function(){var k=this.controlGrips.topLeft.GRIP_SIZE,z=-k/2,G=z,T=(this.width+this.CB_DISTANCE)/2-k/2,St=(this.height+this.CB_DISTANCE)/2-k/2,fe=this.height+this.CB_DISTANCE-k/2,Ct=this.width+this.CB_DISTANCE-k/2;this.positionGrip(this.controlGrips.topLeft.visual,z,G),this.positionGrip(this.controlGrips.topCenter.visual,T,G),this.positionGrip(this.controlGrips.topRight.visual,Ct,G),this.positionGrip(this.controlGrips.centerLeft.visual,z,St),this.positionGrip(this.controlGrips.centerRight.visual,Ct,St),this.positionGrip(this.controlGrips.bottomLeft.visual,z,fe),this.positionGrip(this.controlGrips.bottomCenter.visual,T,fe),this.positionGrip(this.controlGrips.bottomRight.visual,Ct,fe),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,T,G-3*this.CB_DISTANCE)},L.prototype.positionGrip=function(k,z,G){var T=k.transform.baseVal.getItem(0);T.setTranslate(z,G),k.transform.baseVal.replaceItem(T,0)},L.prototype.hideControlBox=function(){this.controlBox.style.display="none"},L.prototype.showControlBox=function(){this.controlBox.style.display=""},L.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:$t.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:$t.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ct.prototype.getState.call(this))},L.prototype.restoreState=function(k){ct.prototype.restoreState.call(this,k);var z=k;this.left=z.left,this.top=z.top,this.width=z.width,this.height=z.height,this.rotationAngle=z.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix($t.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,z.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix($t.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,z.containerTransformMatrix))},L.prototype.scale=function(k,z){ct.prototype.scale.call(this,k,z);var G=this.rotatePoint({x:this.left,y:this.top}),T=this.unrotatePoint({x:G.x*k,y:G.y*z});this.left=T.x,this.top=T.y,this.width=this.width*k,this.height=this.height*z,this.adjustControlBox()},L}(Mt),Ut=function(ct){function L(k,z,G){var T=ct.call(this,k,z,G)||this;return T.fillColor="transparent",T.strokeColor="transparent",T.strokeWidth=0,T.strokeDasharray="",T.opacity=1,T.setStrokeColor=T.setStrokeColor.bind(T),T.setFillColor=T.setFillColor.bind(T),T.setStrokeWidth=T.setStrokeWidth.bind(T),T.setStrokeDasharray=T.setStrokeDasharray.bind(T),T.createVisual=T.createVisual.bind(T),T}return N(L,ct),L.prototype.ownsTarget=function(k){return!(!ct.prototype.ownsTarget.call(this,k)&&k!==this.visual)},L.prototype.createVisual=function(){this.visual=K.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)},L.prototype.pointerDown=function(k,z){ct.prototype.pointerDown.call(this,k,z),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},L.prototype.manipulate=function(k){ct.prototype.manipulate.call(this,k)},L.prototype.resize=function(k){ct.prototype.resize.call(this,k),this.setSize()},L.prototype.setSize=function(){ct.prototype.setSize.call(this),K.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},L.prototype.pointerUp=function(k){ct.prototype.pointerUp.call(this,k),this.setSize()},L.prototype.setStrokeColor=function(k){this.strokeColor=k,this.visual&&K.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(k),this.stateChanged()},L.prototype.setFillColor=function(k){this.fillColor=k,this.visual&&K.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},L.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.visual&&K.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},L.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.visual&&K.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},L.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ct.prototype.getState.call(this))},L.prototype.restoreState=function(k){var z=k;this.fillColor=z.fillColor,this.strokeColor=z.strokeColor,this.strokeWidth=z.strokeWidth,this.strokeDasharray=z.strokeDasharray,this.opacity=z.opacity,this.createVisual(),ct.prototype.restoreState.call(this,k),this.setSize()},L.prototype.scale=function(k,z){ct.prototype.scale.call(this,k,z),this.setSize()},L.title="Rectangle marker",L}(Nt),et=function(ct){function L(k,z,G,T){var St=ct.call(this,k,T||'<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=z,St.currentWidth=G,St.setCurrentWidth=St.setCurrentWidth.bind(St),St}return N(L,ct),L.prototype.getUi=function(){var k=this,z=document.createElement("div");return z.style.display="flex",z.style.overflow="hidden",z.style.flexGrow="2",this.widths.forEach(function(G){var T=document.createElement("div");T.style.display="flex",T.style.flexGrow="2",T.style.alignItems="center",T.style.justifyContent="space-between",T.style.padding="5px",T.style.borderWidth="2px",T.style.borderStyle="solid",T.style.borderColor=G===k.currentWidth?k.uiStyleSettings.toolboxAccentColor:"transparent",T.addEventListener("click",function(){k.setCurrentWidth(G,T)}),z.appendChild(T);var St=document.createElement("div");St.innerText=G.toString(),St.style.marginRight="5px",T.appendChild(St);var fe=document.createElement("div");fe.style.minHeight="20px",fe.style.flexGrow="2",fe.style.display="flex",fe.style.alignItems="center";var Ct=document.createElement("hr");Ct.style.minWidth="20px",Ct.style.border="0px",Ct.style.borderTop=G+"px solid "+k.uiStyleSettings.toolboxColor,Ct.style.flexGrow="2",fe.appendChild(Ct),T.appendChild(fe),k.widthBoxes.push(T)}),z},L.prototype.setCurrentWidth=function(k,z){var G=this;this.currentWidth=k,this.widthBoxes.forEach(function(T){T.style.borderColor=T===z?G.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},L}(vt),Rt=function(ct){function L(k,z,G,T){var St=ct.call(this,k,T||'<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=z,St.currentStyle=G,St.setCurrentStyle=St.setCurrentStyle.bind(St),St}return N(L,ct),L.prototype.getUi=function(){var k=this,z=document.createElement("div");return z.style.display="flex",z.style.overflow="hidden",z.style.flexGrow="2",this.styles.forEach(function(G){var T=document.createElement("div");T.style.display="flex",T.style.alignItems="center",T.style.justifyContent="space-between",T.style.padding="5px",T.style.borderWidth="2px",T.style.borderStyle="solid",T.style.overflow="hidden",T.style.maxWidth=100/k.styles.length-5+"%",T.style.borderColor=G===k.currentStyle?k.uiStyleSettings.toolboxAccentColor:"transparent",T.addEventListener("click",function(){k.setCurrentStyle(G,T)}),z.appendChild(T);var St=document.createElement("div");St.style.minHeight="20px",St.style.flexGrow="2",St.style.overflow="hidden";var fe=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+k.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(G!==""?'stroke-dasharray="'+G+'"':"")+` />
|
|
|
</svg>`;St.innerHTML=fe,T.appendChild(St),k.styleBoxes.push(T)}),z},L.prototype.setCurrentStyle=function(k,z){var G=this;this.currentStyle=k,this.styleBoxes.forEach(function(T){T.style.borderColor=T===z?G.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},L}(vt),Lt=function(ct){function L(k,z,G){var T=ct.call(this,k,z,G)||this;return T.strokeColor=G.defaultColor,T.strokeWidth=G.defaultStrokeWidth,T.strokeDasharray=G.defaultStrokeDasharray,T.strokePanel=new Tt("Line color",G.defaultColorSet,G.defaultColor),T.strokePanel.onColorChanged=T.setStrokeColor,T.strokeWidthPanel=new et("Line width",G.defaultStrokeWidths,G.defaultStrokeWidth),T.strokeWidthPanel.onWidthChanged=T.setStrokeWidth,T.strokeStylePanel=new Rt("Line style",G.defaultStrokeDasharrays,G.defaultStrokeDasharray),T.strokeStylePanel.onStyleChanged=T.setStrokeDasharray,T}return N(L,ct),Object.defineProperty(L.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),L.prototype.getState=function(){var k=ct.prototype.getState.call(this);return k.typeName=L.typeName,k},L.typeName="FrameMarker",L.title="Frame marker",L.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',L}(Ut),Kt=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"},Qt=function(ct){function L(k,z,G){var T=ct.call(this,k,z,G)||this;return T.x1=0,T.y1=0,T.x2=0,T.y2=0,T.defaultLength=50,T.manipulationStartX=0,T.manipulationStartY=0,T.manipulationStartX1=0,T.manipulationStartY1=0,T.manipulationStartX2=0,T.manipulationStartY2=0,T.setupControlBox(),T}return N(L,ct),L.prototype.ownsTarget=function(k){return!!ct.prototype.ownsTarget.call(this,k)||!(!this.grip1.ownsTarget(k)&&!this.grip2.ownsTarget(k))},L.prototype.pointerDown=function(k,z){ct.prototype.pointerDown.call(this,k,z),this.manipulationStartX=k.x,this.manipulationStartY=k.y,this.state==="new"&&(this.x1=k.x,this.y1=k.y,this.x2=k.x,this.y2=k.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(z)?this.activeGrip=this.grip1:this.grip2.ownsTarget(z)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},L.prototype.pointerUp=function(k){var z=this.state;ct.prototype.pointerUp.call(this,k),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(k),this._state="select",z==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},L.prototype.adjustVisual=function(){},L.prototype.manipulate=function(k){this.state==="creating"?this.resize(k):this.state==="move"?(this.x1=this.manipulationStartX1+k.x-this.manipulationStartX,this.y1=this.manipulationStartY1+k.y-this.manipulationStartY,this.x2=this.manipulationStartX2+k.x-this.manipulationStartX,this.y2=this.manipulationStartY2+k.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(k)},L.prototype.resize=function(k){switch(this.activeGrip){case this.grip1:this.x1=k.x,this.y1=k.y;break;case this.grip2:case void 0:this.x2=k.x,this.y2=k.y}this.adjustVisual(),this.adjustControlBox()},L.prototype.select=function(){ct.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},L.prototype.deselect=function(){ct.prototype.deselect.call(this),this.controlBox.style.display="none"},L.prototype.setupControlBox=function(){this.controlBox=K.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},L.prototype.adjustControlBox=function(){this.positionGrips()},L.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},L.prototype.createGrip=function(){var k=new It;return k.visual.transform.baseVal.appendItem(K.createTransform()),this.controlBox.appendChild(k.visual),k},L.prototype.positionGrips=function(){var k=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-k/2,this.y1-k/2),this.positionGrip(this.grip2.visual,this.x2-k/2,this.y2-k/2)},L.prototype.positionGrip=function(k,z,G){var T=k.transform.baseVal.getItem(0);T.setTranslate(z,G),k.transform.baseVal.replaceItem(T,0)},L.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ct.prototype.getState.call(this))},L.prototype.restoreState=function(k){ct.prototype.restoreState.call(this,k);var z=k;this.x1=z.x1,this.y1=z.y1,this.x2=z.x2,this.y2=z.y2},L.prototype.scale=function(k,z){ct.prototype.scale.call(this,k,z),this.x1=this.x1*k,this.y1=this.y1*z,this.x2=this.x2*k,this.y2=this.y2*z,this.adjustVisual(),this.adjustControlBox()},L}(Mt),ie=function(ct){function L(k,z,G){var T=ct.call(this,k,z,G)||this;return T.strokeColor="transparent",T.strokeWidth=0,T.strokeDasharray="",T.setStrokeColor=T.setStrokeColor.bind(T),T.setStrokeWidth=T.setStrokeWidth.bind(T),T.setStrokeDasharray=T.setStrokeDasharray.bind(T),T.strokeColor=G.defaultColor,T.strokeWidth=G.defaultStrokeWidth,T.strokeDasharray=G.defaultStrokeDasharray,T.strokePanel=new Tt("Line color",G.defaultColorSet,G.defaultColor),T.strokePanel.onColorChanged=T.setStrokeColor,T.strokeWidthPanel=new et("Line width",G.defaultStrokeWidths,G.defaultStrokeWidth),T.strokeWidthPanel.onWidthChanged=T.setStrokeWidth,T.strokeStylePanel=new Rt("Line style",G.defaultStrokeDasharrays,G.defaultStrokeDasharray),T.strokeStylePanel.onStyleChanged=T.setStrokeDasharray,T}return N(L,ct),L.prototype.ownsTarget=function(k){return!(!ct.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.selectorLine&&k!==this.visibleLine)},L.prototype.createVisual=function(){this.visual=K.createGroup(),this.selectorLine=K.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=K.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)},L.prototype.pointerDown=function(k,z){ct.prototype.pointerDown.call(this,k,z),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},L.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()),K.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),K.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),K.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},L.prototype.setStrokeColor=function(k){this.strokeColor=k,this.adjustVisual(),this.colorChanged(k)},L.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.adjustVisual()},L.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.adjustVisual(),this.stateChanged()},Object.defineProperty(L.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),L.prototype.getState=function(){var k=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ct.prototype.getState.call(this));return k.typeName=L.typeName,k},L.prototype.restoreState=function(k){ct.prototype.restoreState.call(this,k);var z=k;this.strokeColor=z.strokeColor,this.strokeWidth=z.strokeWidth,this.strokeDasharray=z.strokeDasharray,this.createVisual(),this.adjustVisual()},L.typeName="LineMarker",L.title="Line marker",L.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',L}(Qt),yt=function(ct){function L(k,z,G,T){var St=ct.call(this,k,T||'<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=z,St.currentFont=G,St.setCurrentFont=St.setCurrentFont.bind(St),St}return N(L,ct),L.prototype.getUi=function(){var k=this,z=document.createElement("div");return z.style.overflow="hidden",z.style.flexGrow="2",this.fonts.forEach(function(G){var T=document.createElement("div");T.style.display="inline-block",T.style.alignItems="center",T.style.justifyContent="space-between",T.style.padding="5px",T.style.borderWidth="2px",T.style.borderStyle="solid",T.style.overflow="hidden",T.style.maxWidth=100/k.fonts.length-5+"%",T.style.borderColor=G===k.currentFont?k.uiStyleSettings.toolboxAccentColor:"transparent",T.addEventListener("click",function(){k.setCurrentFont(G,T)}),z.appendChild(T);var St=document.createElement("div");St.style.display="flex",St.style.minHeight="20px",St.style.flexGrow="2",St.style.fontFamily=G,St.style.overflow="hidden";var fe=document.createElement("div");fe.style.whiteSpace="nowrap",fe.style.overflow="hidden",fe.style.textOverflow="ellipsis",fe.innerHTML="The quick brown fox jumps over the lazy dog",St.appendChild(fe),T.appendChild(St),k.fontBoxes.push(T)}),z},L.prototype.setCurrentFont=function(k,z){var G=this;this.currentFont=k,this.fontBoxes.forEach(function(T){T.style.borderColor=T===z?G.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},L}(vt),ae=function(ct){function L(k,z,G){var T=ct.call(this,k,z,G)||this;return T.color="transparent",T.padding=5,T.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",T.text=T.DEFAULT_TEXT,T.isMoved=!1,T.color=G.defaultColor,T.fontFamily=G.defaultFontFamily,T.defaultSize={x:100,y:30},T.setColor=T.setColor.bind(T),T.setFont=T.setFont.bind(T),T.renderText=T.renderText.bind(T),T.sizeText=T.sizeText.bind(T),T.textEditDivClicked=T.textEditDivClicked.bind(T),T.showTextEditor=T.showTextEditor.bind(T),T.setSize=T.setSize.bind(T),T.positionTextEditor=T.positionTextEditor.bind(T),T.colorPanel=new Tt("Color",G.defaultColorSet,G.defaultColor),T.colorPanel.onColorChanged=T.setColor,T.fontFamilyPanel=new yt("Font",G.defaultFontFamilies,G.defaultFontFamily),T.fontFamilyPanel.onFontChanged=T.setFont,T}return N(L,ct),L.prototype.ownsTarget=function(k){if(ct.prototype.ownsTarget.call(this,k)||k===this.visual||k===this.textElement||k===this.bgRectangle)return!0;var z=!1;return this.textElement.childNodes.forEach(function(G){G===k&&(z=!0)}),z},L.prototype.createVisual=function(){this.visual=K.createGroup(),this.bgRectangle=K.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=K.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(K.createTransform()),this.textElement.transform.baseVal.appendItem(K.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},L.prototype.pointerDown=function(k,z){ct.prototype.pointerDown.call(this,k,z),this.isMoved=!1,this.pointerDownPoint=k,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},L.prototype.renderText=function(){var k=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(z){k.textElement.appendChild(K.createTSpan(z.trim()===""?" ":z.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},L.prototype.getTextScale=function(){var k=this.textElement.getBBox(),z=1;if(k.width>0&&k.height>0){var G=(1*this.width-this.width*this.padding*2/100)/k.width,T=(1*this.height-this.height*this.padding*2/100)/k.height;z=Math.min(G,T)}return z},L.prototype.getTextPosition=function(k){var z=this.textElement.getBBox(),G=0,T=0;return z.width>0&&z.height>0&&(G=(this.width-z.width*k)/2,T=this.height/2-z.height*k/2),{x:G,y:T}},L.prototype.sizeText=function(){var k=this.textElement.getBBox(),z=this.getTextScale(),G=this.getTextPosition(z);G.y-=k.y*z,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+G.x+"px, "+G.y+"px) scale("+z+", "+z+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(G.x,G.y),this.textElement.transform.baseVal.getItem(1).setScale(z,z))},L.prototype.manipulate=function(k){ct.prototype.manipulate.call(this,k),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(k.x-this.pointerDownPoint.x)>5||Math.abs(k.y-this.pointerDownPoint.y)>5)},L.prototype.resize=function(k){ct.prototype.resize.call(this,k),this.isMoved=!0,this.setSize(),this.sizeText()},L.prototype.setSize=function(){ct.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(K.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),K.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},L.prototype.pointerUp=function(k){var z=this.state;z==="creating"&&(this._suppressMarkerCreateEvent=!0),ct.prototype.pointerUp.call(this,k),this.setSize(),(z==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},L.prototype.showTextEditor=function(){var k=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(z){z.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var z=Number.parseFloat(k.textEditor.style.fontSize);k.textEditor.clientWidth>=Number.parseInt(k.textEditor.style.maxWidth)&&z>.9;)z-=.1,k.textEditor.style.fontSize=Math.max(z,.9)+"em"}),this.textEditor.addEventListener("keyup",function(z){z.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(z){if(z.clipboardData){var G=z.clipboardData.getData("text"),T=window.getSelection();if(!T.rangeCount)return!1;T.deleteFromDocument(),T.getRangeAt(0).insertNode(document.createTextNode(G)),z.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){k.textEditDivClicked(k.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},L.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var k=this.getTextScale(),z=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),G=this.textElement.getBBox(),T={x:G.width*k,y:G.height*k};z.x-=T.x/2,z.y-=T.y/2,this.textEditor.style.top=z.y+"px",this.textEditor.style.left=z.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-z.x+"px",this.textEditor.style.fontSize=Math.max(16*k,12)+"px",this.textElement.style.display="none"}},L.prototype.textEditDivClicked=function(k){this.text=k.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},L.prototype.select=function(){ct.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},L.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ct.prototype.deselect.call(this)},L.prototype.dblClick=function(k,z){ct.prototype.dblClick.call(this,k,z),this.showTextEditor()},L.prototype.setColor=function(k){this.textElement&&K.setAttributes(this.textElement,[["fill",k]]),this.color=k,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(k)},L.prototype.setFont=function(k){this.textElement&&K.setAttributes(this.textElement,[["font-family",k]]),this.fontFamily=k,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},L.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},L.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(L.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),L.prototype.getState=function(){var k=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ct.prototype.getState.call(this));return k.typeName=L.typeName,k},L.prototype.restoreState=function(k){var z=k;this.color=z.color,this.fontFamily=z.fontFamily,this.padding=z.padding,this.text=z.text,this.createVisual(),ct.prototype.restoreState.call(this,k),this.setSize()},L.prototype.scale=function(k,z){ct.prototype.scale.call(this,k,z),this.setSize(),this.sizeText(),this.positionTextEditor()},L.typeName="TextMarker",L.title="Text marker",L.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>',L}(Nt),Ht=function(ct){function L(k,z,G){var T=ct.call(this,k,z,G)||this;return T.color="transparent",T.lineWidth=3,T.drawing=!1,T.pixelRatio=1,T.color=G.defaultColor,T.lineWidth=G.defaultStrokeWidth,T.pixelRatio=G.freehandPixelRatio,T.setColor=T.setColor.bind(T),T.addCanvas=T.addCanvas.bind(T),T.finishCreation=T.finishCreation.bind(T),T.setLineWidth=T.setLineWidth.bind(T),T.colorPanel=new Tt("Color",G.defaultColorSet,G.defaultColor),T.colorPanel.onColorChanged=T.setColor,T.lineWidthPanel=new et("Line width",G.defaultStrokeWidths,G.defaultStrokeWidth),T.lineWidthPanel.onWidthChanged=T.setLineWidth,T}return N(L,ct),L.prototype.ownsTarget=function(k){return!(!ct.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.drawingImage)},L.prototype.createVisual=function(){this.visual=K.createGroup(),this.drawingImage=K.createImage(),this.visual.appendChild(this.drawingImage);var k=K.createTransform();this.visual.transform.baseVal.appendItem(k),this.addMarkerVisualToContainer(this.visual)},L.prototype.pointerDown=function(k,z){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(k.x,k.y),this.drawing=!0):ct.prototype.pointerDown.call(this,k,z)},L.prototype.manipulate=function(k){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(k.x,k.y),this.canvasContext.stroke()):ct.prototype.manipulate.call(this,k)},L.prototype.resize=function(k){ct.prototype.resize.call(this,k),K.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),K.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},L.prototype.pointerUp=function(k){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ct.prototype.pointerUp.call(this,k)},L.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)},L.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ct.prototype.select.call(this)},L.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ct.prototype.deselect.call(this)},L.prototype.finishCreation=function(){for(var k=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),z=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],G=z[0],T=z[1],St=z[2],fe=z[3],Ct=!1,xt=0;xt<this.canvasElement.height;xt++)for(var Dt=0;Dt<this.canvasElement.width;Dt++)k.data[xt*this.canvasElement.width*4+4*Dt+3]>0&&(Ct=!0,xt<T&&(T=xt),Dt<G&&(G=Dt),xt>fe&&(fe=xt),Dt>St&&(St=Dt));if(Ct){this.left=G/this.pixelRatio,this.top=T/this.pixelRatio,this.width=(St-G)/this.pixelRatio,this.height=(fe-T)/this.pixelRatio;var qt=document.createElement("canvas");qt.width=St-G,qt.height=fe-T,qt.getContext("2d").putImageData(this.canvasContext.getImageData(G,T,St-G,fe-T),0,0),this.drawingImgUrl=qt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},L.prototype.setDrawingImage=function(){K.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),K.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},L.prototype.setColor=function(k){this.color=k,this.colorChanged(k)},L.prototype.setLineWidth=function(k){this.lineWidth=k},Object.defineProperty(L.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),L.prototype.getState=function(){var k=Object.assign({drawingImgUrl:this.drawingImgUrl},ct.prototype.getState.call(this));return k.typeName=L.typeName,k},L.prototype.restoreState=function(k){this.createVisual(),ct.prototype.restoreState.call(this,k),this.drawingImgUrl=k.drawingImgUrl,this.setDrawingImage()},L.prototype.scale=function(k,z){ct.prototype.scale.call(this,k,z),this.setDrawingImage()},L.typeName="FreehandMarker",L.title="Freehand marker",L.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>',L}(Nt),Pe=function(ct){function L(k,z,G){var T=ct.call(this,k,G||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return T.typeBoxes=[],T.currentType=z,T.setCurrentType=T.setCurrentType.bind(T),T}return N(L,ct),L.prototype.getUi=function(){var k=this,z=document.createElement("div");z.style.display="flex",z.style.overflow="hidden",z.style.flexGrow="2";for(var G=function(fe){var Ct="both";switch(fe){case 0:Ct="both";break;case 1:Ct="start";break;case 2:Ct="end";break;case 3:Ct="none"}var xt=document.createElement("div");if(xt.style.display="flex",xt.style.flexGrow="2",xt.style.alignItems="center",xt.style.justifyContent="space-between",xt.style.padding="5px",xt.style.borderWidth="2px",xt.style.borderStyle="solid",xt.style.borderColor=Ct===T.currentType?T.uiStyleSettings.toolboxAccentColor:"transparent",xt.addEventListener("click",function(){k.setCurrentType(Ct,xt)}),z.appendChild(xt),Ct==="both"||Ct==="start"){var Dt=document.createElement("div");Dt.style.display="flex",Dt.style.alignItems="center",Dt.style.minHeight="20px",Dt.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="`+(T.uiStyleSettings!==void 0?T.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Dt.style.marginLeft="5px",xt.appendChild(Dt)}var qt=document.createElement("div");qt.style.display="flex",qt.style.alignItems="center",qt.style.minHeight="20px",qt.style.flexGrow="2";var _t=document.createElement("hr");if(_t.style.minWidth="20px",_t.style.border="0px",_t.style.borderTop="3px solid "+(T.uiStyleSettings!==void 0?T.uiStyleSettings.toolboxColor:"#eeeeee"),_t.style.flexGrow="2",qt.appendChild(_t),xt.appendChild(qt),Ct==="both"||Ct==="end"){var ve=document.createElement("div");ve.style.display="flex",ve.style.alignItems="center",ve.style.minHeight="20px",ve.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="`+(T.uiStyleSettings!==void 0?T.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,ve.style.marginRight="5px",xt.appendChild(ve)}T.typeBoxes.push(xt)},T=this,St=0;St<4;St++)G(St);return z},L.prototype.setCurrentType=function(k,z){var G=this;this.currentType=k,this.typeBoxes.forEach(function(T){T.style.borderColor=T===z?G.uiStyleSettings!==void 0?G.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},L}(vt),ge=function(ct){function L(k,z,G){var T=ct.call(this,k,z,G)||this;return T.arrowType="end",T.arrowBaseHeight=10,T.arrowBaseWidth=10,T.getArrowPoints=T.getArrowPoints.bind(T),T.setArrowType=T.setArrowType.bind(T),T.arrowTypePanel=new Pe("Arrow type","end"),T.arrowTypePanel.onArrowTypeChanged=T.setArrowType,T}return N(L,ct),L.prototype.ownsTarget=function(k){return!(!ct.prototype.ownsTarget.call(this,k)&&k!==this.arrow1&&k!==this.arrow2)},L.prototype.getArrowPoints=function(k,z){var G=this.arrowBaseWidth+2*this.strokeWidth,T=this.arrowBaseHeight+2*this.strokeWidth;return k-G/2+","+(z+T/2)+" "+k+","+(z-T/2)+" "+(k+G/2)+","+(z+T/2)},L.prototype.createTips=function(){this.arrow1=K.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(K.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=K.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(K.createTransform()),this.visual.appendChild(this.arrow2)},L.prototype.pointerDown=function(k,z){ct.prototype.pointerDown.call(this,k,z),this.state==="creating"&&this.createTips()},L.prototype.adjustVisual=function(){if(ct.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",K.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),K.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var k=0;Math.abs(this.x1-this.x2)>.1&&(k=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var z=this.arrow1.transform.baseVal.getItem(0);z.setRotate(k,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(z,0);var G=this.arrow2.transform.baseVal.getItem(0);G.setRotate(k+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(G,0)}},L.prototype.setArrowType=function(k){this.arrowType=k,this.adjustVisual(),this.stateChanged()},Object.defineProperty(L.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),L.prototype.getState=function(){var k=Object.assign({arrowType:this.arrowType},ct.prototype.getState.call(this));return k.typeName=L.typeName,k},L.prototype.restoreState=function(k){ct.prototype.restoreState.call(this,k);var z=k;this.arrowType=z.arrowType,this.createTips(),this.adjustVisual()},L.typeName="ArrowMarker",L.title="Arrow marker",L.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',L}(ie),we=function(ct){function L(k,z,G){var T=ct.call(this,k,z,G)||this;return T.fillColor=G.defaultFillColor,T.strokeWidth=0,T.fillPanel=new Tt("Color",G.defaultColorSet,G.defaultFillColor),T.fillPanel.onColorChanged=T.setFillColor,T}return N(L,ct),Object.defineProperty(L.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),L.prototype.getState=function(){var k=ct.prototype.getState.call(this);return k.typeName=L.typeName,k},L.typeName="CoverMarker",L.title="Cover marker",L.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',L}(Ut),pe=function(ct){function L(k,z,G,T){var St=ct.call(this,k,T||'<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=z,St.currentOpacity=G,St.setCurrentOpacity=St.setCurrentOpacity.bind(St),St}return N(L,ct),L.prototype.getUi=function(){var k=this,z=document.createElement("div");return z.style.display="flex",z.style.overflow="hidden",z.style.flexGrow="2",z.style.justifyContent="space-between",this.opacities.forEach(function(G){var T=document.createElement("div");T.style.display="flex",T.style.alignItems="center",T.style.justifyContent="center",T.style.padding="5px",T.style.borderWidth="2px",T.style.borderStyle="solid",T.style.borderColor=G===k.currentOpacity?k.uiStyleSettings.toolboxAccentColor:"transparent",T.addEventListener("click",function(){k.setCurrentOpacity(G,T)}),z.appendChild(T);var St=document.createElement("div");St.innerText=100*G+"%",T.appendChild(St),k.opacityBoxes.push(T)}),z},L.prototype.setCurrentOpacity=function(k,z){var G=this;this.currentOpacity=k,this.opacityBoxes.forEach(function(T){T.style.borderColor=T===z?G.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},L}(vt),ln=function(ct){function L(k,z,G){var T=ct.call(this,k,z,G)||this;return T.setOpacity=T.setOpacity.bind(T),T.fillColor=G.defaultHighlightColor,T.strokeWidth=0,T.opacity=G.defaultHighlightOpacity,T.fillPanel=new Tt("Color",G.defaultColorSet,T.fillColor),T.fillPanel.onColorChanged=T.setFillColor,T.opacityPanel=new pe("Opacity",G.defaultOpacitySteps,T.opacity),T.opacityPanel.onOpacityChanged=T.setOpacity,T}return N(L,ct),L.prototype.setOpacity=function(k){this.opacity=k,this.visual&&K.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(L.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),L.prototype.getState=function(){var k=ct.prototype.getState.call(this);return k.typeName=L.typeName,k},L.typeName="HighlightMarker",L.title="Highlight marker",L.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>',L}(we),zt='<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>',nt='<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>',it=function(ct){function L(k,z,G){var T=ct.call(this,k,z,G)||this;return T.bgColor="transparent",T.tipPosition={x:0,y:0},T.tipBase1Position={x:0,y:0},T.tipBase2Position={x:0,y:0},T.tipMoving=!1,T.color=G.defaultStrokeColor,T.bgColor=G.defaultFillColor,T.fontFamily=G.defaultFontFamily,T.defaultSize={x:100,y:30},T.setBgColor=T.setBgColor.bind(T),T.getTipPoints=T.getTipPoints.bind(T),T.positionTip=T.positionTip.bind(T),T.setTipPoints=T.setTipPoints.bind(T),T.colorPanel=new Tt("Text color",G.defaultColorSet,T.color,zt),T.colorPanel.onColorChanged=T.setColor,T.bgColorPanel=new Tt("Fill color",G.defaultColorSet,T.bgColor,nt),T.bgColorPanel.onColorChanged=T.setBgColor,T.fontFamilyPanel=new yt("Font",G.defaultFontFamilies,G.defaultFontFamily),T.fontFamilyPanel.onFontChanged=T.setFont,T.tipGrip=new It,T.tipGrip.visual.transform.baseVal.appendItem(K.createTransform()),T.controlBox.appendChild(T.tipGrip.visual),T}return N(L,ct),L.prototype.ownsTarget=function(k){return ct.prototype.ownsTarget.call(this,k)||this.tipGrip.ownsTarget(k)||this.tip===k},L.prototype.createTip=function(){K.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=K.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},L.prototype.pointerDown=function(k,z){this.state==="new"&&ct.prototype.pointerDown.call(this,k,z),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(z)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ct.prototype.pointerDown.call(this,k,z)},L.prototype.pointerUp=function(k){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ct.prototype.pointerUp.call(this,k);else{var z=this.state==="creating";ct.prototype.pointerUp.call(this,k),this.setTipPoints(z),this.positionTip()}},L.prototype.manipulate=function(k){if(this.tipMoving){var z=this.unrotatePoint(k);this.tipPosition={x:z.x-this.manipulationStartLeft,y:z.y-this.manipulationStartTop},this.positionTip()}else ct.prototype.manipulate.call(this,k)},L.prototype.setBgColor=function(k){this.bgRectangle&&this.tip&&(K.setAttributes(this.bgRectangle,[["fill",k]]),K.setAttributes(this.tip,[["fill",k]])),this.bgColor=k,this.fillColorChanged(k)},L.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},L.prototype.setTipPoints=function(k){k===void 0&&(k=!1);var z=Math.min(this.height/2,15),G=this.height/5;k&&(this.tipPosition={x:z+G/2,y:this.height+20});var T=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?T<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(G=this.width/5,z=Math.min(this.width/2,15),this.tipBase1Position={x:z,y:0},this.tipBase2Position={x:z+G,y:0}):(this.tipBase1Position={x:0,y:z},this.tipBase2Position={x:0,y:z+G}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?T<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(G=this.width/5,z=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-z-G,y:0},this.tipBase2Position={x:this.width-z,y:0}):(this.tipBase1Position={x:this.width,y:z},this.tipBase2Position={x:this.width,y:z+G}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?T<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(G=this.width/5,z=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-z-G,y:this.height},this.tipBase2Position={x:this.width-z,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-z-G},this.tipBase2Position={x:this.width,y:this.height-z}):T<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(G=this.width/5,z=Math.min(this.width/2,15),this.tipBase1Position={x:z,y:this.height},this.tipBase2Position={x:z+G,y:this.height}):(this.tipBase1Position={x:0,y:this.height-z},this.tipBase2Position={x:0,y:this.height-z-G})},L.prototype.resize=function(k){ct.prototype.resize.call(this,k),this.positionTip()},L.prototype.positionTip=function(){K.setAttributes(this.tip,[["points",this.getTipPoints()]]);var k=this.tipGrip.visual.transform.baseVal.getItem(0);k.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(k,0)},Object.defineProperty(L.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),L.prototype.select=function(){this.positionTip(),ct.prototype.select.call(this)},L.prototype.getState=function(){var k=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},ct.prototype.getState.call(this));return k.typeName=L.typeName,k},L.prototype.restoreState=function(k){var z=k;this.bgColor=z.bgColor,this.tipPosition=z.tipPosition,ct.prototype.restoreState.call(this,k),this.createTip(),this.setTipPoints()},L.prototype.scale=function(k,z){ct.prototype.scale.call(this,k,z),this.tipPosition={x:this.tipPosition.x*k,y:this.tipPosition.y*z},this.positionTip()},L.typeName="CalloutMarker",L.title="Callout marker",L.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>',L}(ae),Te=function(ct){function L(k,z,G){var T=ct.call(this,k,z,G)||this;return T.fillColor="transparent",T.strokeColor="transparent",T.strokeWidth=0,T.strokeDasharray="",T.opacity=1,T.strokeColor=G.defaultColor,T.strokeWidth=G.defaultStrokeWidth,T.strokeDasharray=G.defaultStrokeDasharray,T.fillColor=G.defaultFillColor,T.setStrokeColor=T.setStrokeColor.bind(T),T.setFillColor=T.setFillColor.bind(T),T.setStrokeWidth=T.setStrokeWidth.bind(T),T.setStrokeDasharray=T.setStrokeDasharray.bind(T),T.setOpacity=T.setOpacity.bind(T),T.createVisual=T.createVisual.bind(T),T.strokePanel=new Tt("Line color",_(G.defaultColorSet,["transparent"]),G.defaultColor),T.strokePanel.onColorChanged=T.setStrokeColor,T.fillPanel=new Tt("Fill color",_(G.defaultColorSet,["transparent"]),T.fillColor,nt),T.fillPanel.onColorChanged=T.setFillColor,T.strokeWidthPanel=new et("Line width",G.defaultStrokeWidths,G.defaultStrokeWidth),T.strokeWidthPanel.onWidthChanged=T.setStrokeWidth,T.strokeStylePanel=new Rt("Line style",G.defaultStrokeDasharrays,G.defaultStrokeDasharray),T.strokeStylePanel.onStyleChanged=T.setStrokeDasharray,T.opacityPanel=new pe("Opacity",G.defaultOpacitySteps,T.opacity),T.opacityPanel.onOpacityChanged=T.setOpacity,T}return N(L,ct),L.prototype.ownsTarget=function(k){return!(!ct.prototype.ownsTarget.call(this,k)&&k!==this.visual)},L.prototype.createVisual=function(){this.visual=K.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)},L.prototype.pointerDown=function(k,z){ct.prototype.pointerDown.call(this,k,z),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},L.prototype.manipulate=function(k){ct.prototype.manipulate.call(this,k)},L.prototype.resize=function(k){ct.prototype.resize.call(this,k),this.setSize()},L.prototype.setSize=function(){ct.prototype.setSize.call(this),K.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},L.prototype.pointerUp=function(k){ct.prototype.pointerUp.call(this,k),this.setSize()},L.prototype.setStrokeColor=function(k){this.strokeColor=k,this.visual&&K.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(k),this.stateChanged()},L.prototype.setFillColor=function(k){this.fillColor=k,this.visual&&K.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(k),this.stateChanged()},L.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.visual&&K.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},L.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.visual&&K.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},L.prototype.setOpacity=function(k){this.opacity=k,this.visual&&K.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(L.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),L.prototype.getState=function(){var k=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ct.prototype.getState.call(this));return k.typeName=L.typeName,k},L.prototype.restoreState=function(k){var z=k;this.fillColor=z.fillColor,this.strokeColor=z.strokeColor,this.strokeWidth=z.strokeWidth,this.strokeDasharray=z.strokeDasharray,this.opacity=z.opacity,this.createVisual(),ct.prototype.restoreState.call(this,k),this.setSize()},L.prototype.scale=function(k,z){ct.prototype.scale.call(this,k,z),this.setSize()},L.typeName="EllipseMarker",L.title="Ellipse marker",L.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>',L}(Nt),Ae=function(ct){function L(k,z,G){return ct.call(this,k,z,G)||this}return N(L,ct),Object.defineProperty(L.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),L.prototype.ownsTarget=function(k){return!(!ct.prototype.ownsTarget.call(this,k)&&k!==this.tip1&&k!==this.tip2)},L.prototype.createTips=function(){this.tip1=K.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(K.createTransform()),this.visual.appendChild(this.tip1),this.tip2=K.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(K.createTransform()),this.visual.appendChild(this.tip2)},L.prototype.pointerDown=function(k,z){ct.prototype.pointerDown.call(this,k,z),this.state==="creating"&&this.createTips()},L.prototype.adjustVisual=function(){if(ct.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(K.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()]]),K.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 k=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),z=this.tip1.transform.baseVal.getItem(0);z.setRotate(k,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(z,0);var G=this.tip2.transform.baseVal.getItem(0);G.setRotate(k+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(G,0)}},Object.defineProperty(L.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),L.prototype.getState=function(){var k=ct.prototype.getState.call(this);return k.typeName=L.typeName,k},L.prototype.restoreState=function(k){ct.prototype.restoreState.call(this,k),this.createTips(),this.adjustVisual()},L.typeName="MeasurementMarker",L.title="Measurement marker",L.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>',L}(ie),de=function(ct){function L(k,z,G){var T=ct.call(this,k,z,G)||this;return T.strokePanel.colors=G.defaultColorSet,T.fillColor="transparent",T}return N(L,ct),Object.defineProperty(L.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),L.prototype.getState=function(){var k=ct.prototype.getState.call(this);return k.typeName=L.typeName,k},L.typeName="EllipseFrameMarker",L.title="Ellipse frame marker",L.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>',L}(Te),en=function(){function ct(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ct.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ct.prototype.addUndoStep=function(L){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(L)||(this.undoStack.push(L),JSON.stringify(this.lastRedoStep)!==JSON.stringify(L)&&this.redoStack.splice(0,this.redoStack.length))},ct.prototype.replaceLastUndoStep=function(L){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=L)},ct.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ct.prototype.undo=function(){if(this.undoStack.length>1){var L=this.undoStack.pop();return L!==void 0&&this.redoStack.push(L),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ct.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ct}(),vn=function(ct){function L(k,z,G){var T=ct.call(this,k,z,G)||this;return T.strokeColor="transparent",T.strokeWidth=0,T.strokeDasharray="",T.curveX=0,T.curveY=0,T.manipulationStartCurveX=0,T.manipulationStartCurveY=0,T.setStrokeColor=T.setStrokeColor.bind(T),T.setStrokeWidth=T.setStrokeWidth.bind(T),T.setStrokeDasharray=T.setStrokeDasharray.bind(T),T.positionGrips=T.positionGrips.bind(T),T.addControlGrips=T.addControlGrips.bind(T),T.adjustVisual=T.adjustVisual.bind(T),T.setupControlBox=T.setupControlBox.bind(T),T.resize=T.resize.bind(T),T.strokeColor=G.defaultColor,T.strokeWidth=G.defaultStrokeWidth,T.strokeDasharray=G.defaultStrokeDasharray,T.strokePanel=new Tt("Line color",G.defaultColorSet,G.defaultColor),T.strokePanel.onColorChanged=T.setStrokeColor,T.strokeWidthPanel=new et("Line width",G.defaultStrokeWidths,G.defaultStrokeWidth),T.strokeWidthPanel.onWidthChanged=T.setStrokeWidth,T.strokeStylePanel=new Rt("Line style",G.defaultStrokeDasharrays,G.defaultStrokeDasharray),T.strokeStylePanel.onStyleChanged=T.setStrokeDasharray,T}return N(L,ct),L.prototype.ownsTarget=function(k){return!(!ct.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.selectorCurve&&k!==this.visibleCurve&&!this.curveGrip.ownsTarget(k))},L.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},L.prototype.createVisual=function(){this.visual=K.createGroup(),this.selectorCurve=K.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=K.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)},L.prototype.pointerDown=function(k,z){ct.prototype.pointerDown.call(this,k,z),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=k.x,this.curveY=k.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(z)&&(this.activeGrip=this.curveGrip,this._state="resize")},L.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),K.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),K.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),K.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},L.prototype.setupControlBox=function(){ct.prototype.setupControlBox.call(this),this.curveControlLine1=K.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=K.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)},L.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ct.prototype.addControlGrips.call(this)},L.prototype.positionGrips=function(){ct.prototype.positionGrips.call(this);var k=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-k/2,this.curveY-k/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()))},L.prototype.manipulate=function(k){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+k.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+k.y-this.manipulationStartY),ct.prototype.manipulate.call(this,k)},L.prototype.resize=function(k){this.activeGrip===this.curveGrip&&(this.curveX=k.x,this.curveY=k.y),ct.prototype.resize.call(this,k),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},L.prototype.setStrokeColor=function(k){this.strokeColor=k,this.adjustVisual(),this.colorChanged(k)},L.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.adjustVisual()},L.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.adjustVisual()},L.prototype.scale=function(k,z){this.curveX=this.curveX*k,this.curveY=this.curveY*z,ct.prototype.scale.call(this,k,z)},Object.defineProperty(L.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),L.prototype.getState=function(){var k=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ct.prototype.getState.call(this));return k.typeName=L.typeName,k},L.prototype.restoreState=function(k){ct.prototype.restoreState.call(this,k);var z=k;this.strokeColor=z.strokeColor,this.strokeWidth=z.strokeWidth,this.strokeDasharray=z.strokeDasharray,this.curveX=z.curveX,this.curveY=z.curveY,this.createVisual(),this.adjustVisual()},L.typeName="CurveMarker",L.title="Curve marker",L.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>',L}(Qt),Xn=function(ct){function L(k,z,G){var T=ct.call(this,k,z,G)||this;return T.fillColor="transparent",T.strokeColor="transparent",T.strokeWidth=0,T.strokeDasharray="",T.textColor="transparent",T.fontSize="1rem",T.isMoved=!1,T.captionText="Caption",T.PADDING=5,T.captionBoxWidth=0,T.captionBoxHeight=0,T.strokeColor=G.defaultColor,T.strokeWidth=G.defaultStrokeWidth,T.strokeDasharray=G.defaultStrokeDasharray,T.fillColor=G.defaultFillColor,T.textColor=G.defaultStrokeColor,T.fontFamily=G.defaultFontFamily,T.fontSize=G.defaultCaptionFontSize,T.captionText=G.defaultCaptionText,T.setStrokeColor=T.setStrokeColor.bind(T),T.setFillColor=T.setFillColor.bind(T),T.setStrokeWidth=T.setStrokeWidth.bind(T),T.setStrokeDasharray=T.setStrokeDasharray.bind(T),T.createVisual=T.createVisual.bind(T),T.sizeCaption=T.sizeCaption.bind(T),T.setCaptionText=T.setCaptionText.bind(T),T.showTextEditor=T.showTextEditor.bind(T),T.positionTextEditor=T.positionTextEditor.bind(T),T.finishTextEditing=T.finishTextEditing.bind(T),T.setFont=T.setFont.bind(T),T.setTextColor=T.setTextColor.bind(T),T.strokePanel=new Tt("Line color",_(G.defaultColorSet,["transparent"]),T.strokeColor),T.strokePanel.onColorChanged=T.setStrokeColor,T.fillPanel=new Tt("Fill color",_(G.defaultColorSet,["transparent"]),T.fillColor,nt),T.fillPanel.onColorChanged=T.setFillColor,T.strokeWidthPanel=new et("Line width",G.defaultStrokeWidths,G.defaultStrokeWidth),T.strokeWidthPanel.onWidthChanged=T.setStrokeWidth,T.strokeStylePanel=new Rt("Line style",G.defaultStrokeDasharrays,G.defaultStrokeDasharray),T.strokeStylePanel.onStyleChanged=T.setStrokeDasharray,T.fontFamilyPanel=new yt("Font",G.defaultFontFamilies,G.defaultFontFamily),T.fontFamilyPanel.onFontChanged=T.setFont,T.textColorPanel=new Tt("Text color",G.defaultColorSet,T.textColor,zt),T.textColorPanel.onColorChanged=T.setTextColor,T}return N(L,ct),L.prototype.ownsTarget=function(k){return!(!ct.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.frame&&k!==this.captionBg&&k!==this.captionElement)},L.prototype.createVisual=function(){this.visual=K.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=K.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=K.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=K.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()},L.prototype.setCaptionText=function(k){this.captionText=k,this.captionElement.textContent=this.captionText,this.sizeCaption()},L.prototype.pointerDown=function(k,z){ct.prototype.pointerDown.call(this,k,z),this.isMoved=!1,this.pointerDownPoint=k,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},L.prototype.manipulate=function(k){ct.prototype.manipulate.call(this,k),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(k.x-this.pointerDownPoint.x)>5||Math.abs(k.y-this.pointerDownPoint.y)>5)},L.prototype.resize=function(k){ct.prototype.resize.call(this,k),this.setSize()},L.prototype.sizeCaption=function(){var k=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=k.width+2*this.PADDING,this.captionBoxHeight=k.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),K.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')"]]),K.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')"]])},L.prototype.showTextEditor=function(){var k=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(z){z.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(z){z.key==="Enter"&&k.finishTextEditing(k.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(z){z.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){k.finishTextEditing(k.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){k.finishTextEditing(k.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},L.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"))},L.prototype.finishTextEditing=function(k){this.setCaptionText(k.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},L.prototype.setFont=function(k){this.captionElement&&K.setAttributes(this.captionElement,[["font-family",k]]),this.fontFamily=k,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},L.prototype.setTextColor=function(k){this.captionElement&&K.setAttributes(this.captionElement,[["fill",k]]),this.textColor=k,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},L.prototype.setSize=function(){ct.prototype.setSize.call(this),K.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},L.prototype.pointerUp=function(k){ct.prototype.pointerUp.call(this,k),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},L.prototype.dblClick=function(k,z){ct.prototype.dblClick.call(this,k,z),this.showTextEditor()},L.prototype.setStrokeColor=function(k){this.strokeColor=k,this.frame&&K.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(k),this.stateChanged()},L.prototype.setFillColor=function(k){this.fillColor=k,this.captionBg&&K.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(k),this.stateChanged()},L.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.frame&&K.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},L.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.frame&&K.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(L.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),L.prototype.getState=function(){var k=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},ct.prototype.getState.call(this));return k.typeName=this.typeName,k},L.prototype.restoreState=function(k){var z=k;this.fillColor=z.fillColor,this.strokeColor=z.strokeColor,this.strokeWidth=z.strokeWidth,this.strokeDasharray=z.strokeDasharray,this.textColor=z.textColor,this.fontFamily=z.fontFamily,this.captionText=z.captionText,this.fontSize=z.fontSize,this.createVisual(),ct.prototype.restoreState.call(this,k),this.setSize()},L.prototype.scale=function(k,z){ct.prototype.scale.call(this,k,z),this.setSize()},L.typeName="CaptionFrameMarker",L.title="Caption frame marker",L.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>',L}(Nt),gn=function(){function ct(L,k){k===void 0&&(k=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=L,this.cancelable=k}return Object.defineProperty(ct.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ct.prototype.preventDefault=function(){this._defaultPrevented=!0},ct}(),_n=function(ct){function L(k,z,G){var T=ct.call(this,k,!1)||this;return T.dataUrl=z,T.state=G,T}return N(L,ct),L}(gn),$n=function(ct){function L(k,z,G){G===void 0&&(G=!1);var T=ct.call(this,k,G)||this;return T.marker=z,T}return N(L,ct),L}(gn),fn=function(){function ct(){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 ct.prototype.addEventListener=function(L,k){this[L].push(k)},ct.prototype.removeEventListener=function(L,k){var z=this[L].indexOf(k);z>-1&&this[L].splice(z,1)},ct}(),hn=function(){function ct(L){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Kt,this._isOpen=!1,this.undoRedoManager=new en,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 fn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ct.instanceCounter++,this.styles=new Q(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=L,this.targetRoot=document.body,this.width=L.clientWidth,this.height=L.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(ct.prototype,"ALL_MARKER_TYPES",{get:function(){return[Lt,Ht,ge,ae,de,Te,ln,it,Ae,we,ie,vn,Xn]},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Lt,Ht,ge,ae,Te,ln,it]},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Lt,Ht,ge,ae,ln]},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(L){var k=this;this._availableMarkerTypes.splice(0),L.forEach(function(z){if(typeof z=="string"){var G=k.ALL_MARKER_TYPES.find(function(T){return T.typeName===z});G!==void 0&&k._availableMarkerTypes.push(G)}else k._availableMarkerTypes.push(z)})},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(L){this._zoomLevel=L,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(ct.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ct.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),I.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ct.prototype.show=function(){var L=this;this.styles.styleSheetRoot===void 0&&rt.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=rt.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(k){return k(new gn(L))})},ct.prototype.render=function(){return O(this,void 0,void 0,function(){var L;return B(this,function(k){switch(k.label){case 0:return this.setCurrentMarker(),(L=new dt).naturalSize=this.renderAtNaturalSize,L.imageType=this.renderImageType,L.imageQuality=this.renderImageQuality,L.markersOnly=this.renderMarkersOnly,L.width=this.renderWidth,L.height=this.renderHeight,[4,L.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return k.sent(),[4,L.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,k.sent()]}})})},ct.prototype.close=function(L){var k=this;if(L===void 0&&(L=!1),this.isOpen){var z=!1;L||this.eventListeners.beforeclose.forEach(function(G){var T=new gn(k,!0);G(T),T.defaultPrevented&&(z=!0)}),z||(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(G){return G(new gn(k))}),this.detachEvents(),this._isOpen=!1)}},ct.prototype.addMarkersToToolbar=function(){for(var L,k=[],z=0;z<arguments.length;z++)k[z]=arguments[z];(L=this._availableMarkerTypes).push.apply(L,k)},ct.prototype.addRenderEventListener=function(L){this.addEventListener("render",function(k){L(k.dataUrl,k.state)})},ct.prototype.removeRenderEventListener=function(L){},ct.prototype.addCloseEventListener=function(L){this.addEventListener("close",function(){L()})},ct.prototype.removeCloseEventListener=function(L){},ct.prototype.setupResizeObserver=function(){var L=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){L.resize(L.target.clientWidth,L.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return L.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},ct.prototype.onPopupTargetResize=function(){var L=1*this.target.clientWidth/this.target.clientHeight,k=this.editorCanvas.clientWidth/L>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*L:this.editorCanvas.clientWidth,z=k<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/L;this.resize(k,z)},ct.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ct.prototype.resize=function(L,k){this._isResizing=!0;var z=L/this.imageWidth,G=k/this.imageHeight;this.imageWidth=Math.round(L),this.imageHeight=Math.round(k),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(z,G),this._isResizing=!1},ct.prototype.scaleMarkers=function(L,k){var z,G=this;this._currentMarker&&this._currentMarker instanceof ae?this._currentMarker.scale(L,k):(z=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(T){T!==G._currentMarker&&T.scale(L,k)}),z!==void 0&&this.setCurrentMarker(z)},ct.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"},ct.prototype.setTopLeft=function(){var L=this.editingTarget.getBoundingClientRect(),k=this.editorCanvas.getBoundingClientRect();this.left=L.left-k.left,this.top=L.top-k.top},ct.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)},ct.prototype.addDefs=function(){for(var L,k=[],z=0;z<arguments.length;z++)k[z]=arguments[z];this.defs=K.createDefs(),this.addDefsToImage(),(L=this.defs).append.apply(L,k)},ct.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},ct.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)},ct.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},ct.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},ct.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)},ct.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},ct.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)},ct.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 L=document.createElement("a");L.href="https://markerjs.com/",L.target="_blank",L.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>',L.title="Powered by marker.js",L.style.display="grid",L.style.alignItems="center",L.style.justifyItems="center",L.style.padding="3px",L.style.width="20px",L.style.height="20px",this.logoUI.appendChild(L),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ct.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")},ct.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"},ct.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ct.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 L=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=L+"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 Yt(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 At(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},ct.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ct.prototype.removeMarker=function(L){this.markerImage.removeChild(L.container),this.markers.indexOf(L)>-1&&this.markers.splice(this.markers.indexOf(L),1),L.dispose()},ct.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())},ct.prototype.toolbarButtonClicked=function(L,k){if(L==="marker"&&k!==void 0)this.createNewMarker(k);else if(L==="action")switch(k){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()}},ct.prototype.deleteSelectedMarker=function(){var L=this;if(this._currentMarker!==void 0){var k=!1;if(this.eventListeners.markerbeforedelete.forEach(function(G){var T=new $n(L,L._currentMarker,!0);G(T),T.defaultPrevented&&(k=!0)}),!k){var z=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(G){return G(new $n(L,z))})}}},ct.prototype.clear=function(){var L=this,k=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(St){var fe=new $n(L,void 0,!0);St(fe),fe.defaultPrevented&&(k=!0)}),!k)){this.setCurrentMarker();for(var z=function(St){var fe=G.markers[St];G.setCurrentMarker(G.markers[St]),G._currentMarker.dispose(),G.markerImage.removeChild(G._currentMarker.container),G.markers.splice(G.markers.indexOf(G._currentMarker),1),G.eventListeners.markerdelete.forEach(function(Ct){return Ct(new $n(L,fe))})},G=this,T=this.markers.length-1;T>=0;T--)z(T);this.addUndoStep()}},Object.defineProperty(ct.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ct.prototype.showNotesEditor=function(){var L;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=(L=this._currentMarker.notes)!==null&&L!==void 0?L:"",this.overlayContainer.appendChild(this.notesArea))},ct.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)},ct.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ct.prototype.addUndoStep=function(){var L=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var k=this.getState(),z=this.undoRedoManager.getLastUndoStep();if(!z||z.width===k.width&&z.height===k.height){var G=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(k),G<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(T){return T(new gn(L))})}else this.undoRedoManager.replaceLastUndoStep(k),this.eventListeners.statechange.forEach(function(T){return T(new gn(L))})}},ct.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ct.prototype.undoStep=function(){var L=this,k=this.undoRedoManager.undo();k!==void 0&&(this.restoreState(k),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(z){return z(new gn(L))}))},ct.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ct.prototype.redoStep=function(){var L=this,k=this.undoRedoManager.redo();k!==void 0&&(this.restoreState(k),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(z){return z(new gn(L))}))},ct.prototype.stepZoom=function(){var L=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=L<this.zoomSteps.length-1?this.zoomSteps[L+1]:this.zoomSteps[0]},ct.prototype.panTo=function(L){this.contentDiv.scrollBy({left:this.prevPanPoint.x-L.x,top:this.prevPanPoint.y-L.y}),this.prevPanPoint=L},ct.prototype.startRenderAndClose=function(){return O(this,void 0,void 0,function(){var L,k,z=this;return B(this,function(G){switch(G.label){case 0:return[4,this.render()];case 1:return L=G.sent(),k=this.getState(),this.eventListeners.render.forEach(function(T){return T(new _n(z,L,k))}),this.close(!0),[2]}})})},ct.prototype.getState=function(L){L===!0&&this.setCurrentMarker();var k={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(z){return k.markers.push(z.getState())}),k},ct.prototype.restoreState=function(L){var k=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);L.markers.forEach(function(z){var G=k._availableMarkerTypes.find(function(St){return St.typeName===z.typeName});if(G!==void 0){var T=k.addNewMarker(G);T.restoreState(z),k.markers.push(T)}}),L.width&&L.height&&(L.width!==this.imageWidth||L.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/L.width,this.imageHeight/L.height),this.eventListeners.restorestate.forEach(function(z){return z(new gn(k))})},ct.prototype.addNewMarker=function(L){var k=K.createGroup();return this.markerImage.appendChild(k),new L(k,this.overlayContainer,this.settings)},ct.prototype.createNewMarker=function(L){var k,z=this;(k=typeof L=="string"?this._availableMarkerTypes.find(function(G){return G.typeName===L}):L)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(k),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(k.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(G){return G(new $n(z,z._currentMarker))}))},ct.prototype.markerCreated=function(L){var k=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(L),this.setCurrentMarker(L),L instanceof Ht&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Ht):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(z){return z(new $n(k,k._currentMarker))})},ct.prototype.colorChanged=function(L){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=L,this.settings.defaultStrokeColor=L)},ct.prototype.fillColorChanged=function(L){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=L)},ct.prototype.markerStateChanged=function(L){var k=this;this.eventListeners.markerchange.forEach(function(z){return z(new $n(k,L))})},ct.prototype.setCurrentMarker=function(L){var k=this;this._currentMarker!==L&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(z){return z(new $n(k,k._currentMarker))})),this._currentMarker=L,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(z){return z(new $n(k,k._currentMarker))}))},ct.prototype.onPointerDown=function(L){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||L.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var k=this.markers.find(function(z){return z.ownsTarget(L.target)});k!==void 0?(this.setCurrentMarker(k),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(L.clientX,L.clientY),L.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:L.clientX,y:L.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(L.clientX,L.clientY))},ct.prototype.onDblClick=function(L){if(this._isFocused||this.focus(),this.mode==="select"){var k=this.markers.find(function(z){return z.ownsTarget(L.target)});k!==void 0&&k!==this._currentMarker&&this.setCurrentMarker(k),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(L.clientX,L.clientY),L.target):this.setCurrentMarker()}},ct.prototype.onPointerMove=function(L){this.touchPoints!==1&&L.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||L.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(L.clientX,L.clientY)):this.zoomLevel>1&&this.panTo({x:L.clientX,y:L.clientY}))},ct.prototype.onPointerUp=function(L){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(L.clientX,L.clientY)),this.isDragging=!1,this.addUndoStep()},ct.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ct.prototype.onKeyUp=function(L){this._currentMarker===void 0||this.notesArea!==void 0||L.key!=="Delete"&&L.key!=="Backspace"||this.deleteSelectedMarker()},ct.prototype.clientToLocalCoordinates=function(L,k){var z=this.markerImage.getBoundingClientRect();return{x:(L-z.left)/this.zoomLevel,y:(k-z.top)/this.zoomLevel}},ct.prototype.onWindowResize=function(){this.positionUI()},ct.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var L=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=L+"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()},ct.prototype.addLicenseKey=function(L){I.addKey(L)},ct.prototype.addEventListener=function(L,k){this.eventListeners.addEventListener(L,k)},ct.prototype.removeEventListener=function(L,k){this.eventListeners.removeEventListener(L,k)},ct.prototype.renderState=function(L){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(L),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ct.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ct.prototype.focus=function(){var L=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(k){return k(new gn(L))}))},ct.prototype.blur=function(){var L=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(k){return k(new gn(L))}))},ct.instanceCounter=0,ct}()},67842:function(V){"use strict";var w,h=59;V.exports=y;function y(N){var O="&"+N+";",B;return w=w||document.createElement("i"),w.innerHTML=O,B=w.textContent,B.charCodeAt(B.length-1)===h&&N!=="semi"||B===O?!1:B}},12256:function(V,w,h){"use strict";var y=h(47854),N=h(80501),O=h(22347),B=h(65207),_=h(21127),K=h(67842);V.exports=ln;var I={}.hasOwnProperty,dt=String.fromCharCode,rt=Function.prototype,Q={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},kt=9,Y=10,Yt=12,At=32,vt=38,Tt=59,Mt=60,ft=61,It=35,$t=88,Nt=120,Ut=65533,et="named",Rt="hexadecimal",Lt="decimal",Kt={};Kt[Rt]=16,Kt[Lt]=10;var Qt={};Qt[et]=_,Qt[Lt]=O,Qt[Rt]=B;var ie=1,yt=2,ae=3,Ht=4,Pe=5,ge=6,we=7,pe={};pe[ie]="Named character references must be terminated by a semicolon",pe[yt]="Numeric character references must be terminated by a semicolon",pe[ae]="Named character references cannot be empty",pe[Ht]="Numeric character references cannot be empty",pe[Pe]="Named character references must be known",pe[ge]="Numeric character references cannot be disallowed",pe[we]="Numeric character references cannot be outside the permissible Unicode range";function ln(Te,Ae){var de={},en,vn;Ae||(Ae={});for(vn in Q)en=Ae[vn],de[vn]=en==null?Q[vn]:en;return(de.position.indent||de.position.start)&&(de.indent=de.position.indent||[],de.position=de.position.start),zt(Te,de)}function zt(Te,Ae){var de=Ae.additional,en=Ae.nonTerminated,vn=Ae.text,Xn=Ae.reference,gn=Ae.warning,_n=Ae.textContext,$n=Ae.referenceContext,fn=Ae.warningContext,hn=Ae.position,ct=Ae.indent||[],L=Te.length,k=0,z=-1,G=hn.column||1,T=hn.line||1,St="",fe=[],Ct,xt,Dt,qt,_t,ve,Ge,Ke,Ce,Ve,Qe,Bt,xe,ze,Ne,Cn,En,jn,On;for(typeof de=="string"&&(de=de.charCodeAt(0)),Cn=ci(),Ke=gn?Si:rt,k--,L++;++k<L;)if(_t===Y&&(G=ct[z]||1),_t=Te.charCodeAt(k),_t===vt){if(Ge=Te.charCodeAt(k+1),Ge===kt||Ge===Y||Ge===Yt||Ge===At||Ge===vt||Ge===Mt||Ge!==Ge||de&&Ge===de){St+=dt(_t),G++;continue}for(xe=k+1,Bt=xe,On=xe,Ge===It?(On=++Bt,Ge=Te.charCodeAt(On),Ge===$t||Ge===Nt?(ze=Rt,On=++Bt):ze=Lt):ze=et,Ct="",Qe="",qt="",Ne=Qt[ze],On--;++On<L&&(Ge=Te.charCodeAt(On),!!Ne(Ge));)qt+=dt(Ge),ze===et&&I.call(y,qt)&&(Ct=qt,Qe=y[qt]);Dt=Te.charCodeAt(On)===Tt,Dt&&(On++,xt=ze===et?K(qt):!1,xt&&(Ct=qt,Qe=xt)),jn=1+On-xe,!Dt&&!en||(qt?ze===et?(Dt&&!Qe?Ke(Pe,1):(Ct!==qt&&(On=Bt+Ct.length,jn=1+On-Bt,Dt=!1),Dt||(Ce=Ct?ie:ae,Ae.attribute?(Ge=Te.charCodeAt(On),Ge===ft?(Ke(Ce,jn),Qe=null):_(Ge)?Qe=null:Ke(Ce,jn)):Ke(Ce,jn))),ve=Qe):(Dt||Ke(yt,jn),ve=parseInt(qt,Kt[ze]),nt(ve)?(Ke(we,jn),ve=dt(Ut)):ve in N?(Ke(ge,jn),ve=N[ve]):(Ve="",it(ve)&&Ke(ge,jn),ve>65535&&(ve-=65536,Ve+=dt(ve>>>10|55296),ve=56320|ve&1023),ve=Ve+dt(ve))):ze!==et&&Ke(Ht,jn)),ve?(vi(),Cn=ci(),k=On-1,G+=On-xe+1,fe.push(ve),En=ci(),En.offset++,Xn&&Xn.call($n,ve,{start:Cn,end:En},Te.slice(xe-1,On)),Cn=En):(qt=Te.slice(xe-1,On),St+=qt,G+=qt.length,k=On-1)}else _t===10&&(T++,z++,G=0),_t===_t?(St+=dt(_t),G++):vi();return fe.join("");function ci(){return{line:T,column:G,offset:k+(hn.offset||0)}}function Si(qn,an){var Ji=ci();Ji.column+=an,Ji.offset+=an,gn.call(fn,pe[qn],Ji,qn)}function vi(){St&&(fe.push(St),vn&&vn.call(_n,St,{start:Cn,end:ci()}),St="")}}function nt(Te){return Te>=55296&&Te<=57343||Te>1114111}function it(Te){return Te>=1&&Te<=8||Te===11||Te>=13&&Te<=31||Te>=127&&Te<=159||Te>=64976&&Te<=65007||(Te&65535)===65535||(Te&65535)===65534}},68398:function(V,w,h){var y=typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{};var N=function(O){var B=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,_=0,K={},I={manual:O.Prism&&O.Prism.manual,disableWorkerMessageHandler:O.Prism&&O.Prism.disableWorkerMessageHandler,util:{encode:function ft(It){return It instanceof dt?new dt(It.type,ft(It.content),It.alias):Array.isArray(It)?It.map(ft):It.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(ft){return Object.prototype.toString.call(ft).slice(8,-1)},objId:function(ft){return ft.__id||Object.defineProperty(ft,"__id",{value:++_}),ft.__id},clone:function ft(It,$t){$t=$t||{};var Nt,Ut;switch(I.util.type(It)){case"Object":if(Ut=I.util.objId(It),$t[Ut])return $t[Ut];Nt={},$t[Ut]=Nt;for(var et in It)It.hasOwnProperty(et)&&(Nt[et]=ft(It[et],$t));return Nt;case"Array":return Ut=I.util.objId(It),$t[Ut]?$t[Ut]:(Nt=[],$t[Ut]=Nt,It.forEach(function(Rt,Lt){Nt[Lt]=ft(Rt,$t)}),Nt);default:return It}},getLanguage:function(ft){for(;ft;){var It=B.exec(ft.className);if(It)return It[1].toLowerCase();ft=ft.parentElement}return"none"},setLanguage:function(ft,It){ft.className=ft.className.replace(RegExp(B,"gi"),""),ft.classList.add("language-"+It)},currentScript:function(){if(typeof document=="undefined")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(Nt){var ft=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(Nt.stack)||[])[1];if(ft){var It=document.getElementsByTagName("script");for(var $t in It)if(It[$t].src==ft)return It[$t]}return null}},isActive:function(ft,It,$t){for(var Nt="no-"+It;ft;){var Ut=ft.classList;if(Ut.contains(It))return!0;if(Ut.contains(Nt))return!1;ft=ft.parentElement}return!!$t}},languages:{plain:K,plaintext:K,text:K,txt:K,extend:function(ft,It){var $t=I.util.clone(I.languages[ft]);for(var Nt in It)$t[Nt]=It[Nt];return $t},insertBefore:function(ft,It,$t,Nt){Nt=Nt||I.languages;var Ut=Nt[ft],et={};for(var Rt in Ut)if(Ut.hasOwnProperty(Rt)){if(Rt==It)for(var Lt in $t)$t.hasOwnProperty(Lt)&&(et[Lt]=$t[Lt]);$t.hasOwnProperty(Rt)||(et[Rt]=Ut[Rt])}var Kt=Nt[ft];return Nt[ft]=et,I.languages.DFS(I.languages,function(Qt,ie){ie===Kt&&Qt!=ft&&(this[Qt]=et)}),et},DFS:function ft(It,$t,Nt,Ut){Ut=Ut||{};var et=I.util.objId;for(var Rt in It)if(It.hasOwnProperty(Rt)){$t.call(It,Rt,It[Rt],Nt||Rt);var Lt=It[Rt],Kt=I.util.type(Lt);Kt==="Object"&&!Ut[et(Lt)]?(Ut[et(Lt)]=!0,ft(Lt,$t,null,Ut)):Kt==="Array"&&!Ut[et(Lt)]&&(Ut[et(Lt)]=!0,ft(Lt,$t,Rt,Ut))}}},plugins:{},highlightAll:function(ft,It){I.highlightAllUnder(document,ft,It)},highlightAllUnder:function(ft,It,$t){var Nt={callback:$t,container:ft,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};I.hooks.run("before-highlightall",Nt),Nt.elements=Array.prototype.slice.apply(Nt.container.querySelectorAll(Nt.selector)),I.hooks.run("before-all-elements-highlight",Nt);for(var Ut=0,et;et=Nt.elements[Ut++];)I.highlightElement(et,It===!0,Nt.callback)},highlightElement:function(ft,It,$t){var Nt=I.util.getLanguage(ft),Ut=I.languages[Nt];I.util.setLanguage(ft,Nt);var et=ft.parentElement;et&&et.nodeName.toLowerCase()==="pre"&&I.util.setLanguage(et,Nt);var Rt=ft.textContent,Lt={element:ft,language:Nt,grammar:Ut,code:Rt};function Kt(ie){Lt.highlightedCode=ie,I.hooks.run("before-insert",Lt),Lt.element.innerHTML=Lt.highlightedCode,I.hooks.run("after-highlight",Lt),I.hooks.run("complete",Lt),$t&&$t.call(Lt.element)}if(I.hooks.run("before-sanity-check",Lt),et=Lt.element.parentElement,et&&et.nodeName.toLowerCase()==="pre"&&!et.hasAttribute("tabindex")&&et.setAttribute("tabindex","0"),!Lt.code){I.hooks.run("complete",Lt),$t&&$t.call(Lt.element);return}if(I.hooks.run("before-highlight",Lt),!Lt.grammar){Kt(I.util.encode(Lt.code));return}if(It&&O.Worker){var Qt=new Worker(I.filename);Qt.onmessage=function(ie){Kt(ie.data)},Qt.postMessage(JSON.stringify({language:Lt.language,code:Lt.code,immediateClose:!0}))}else Kt(I.highlight(Lt.code,Lt.grammar,Lt.language))},highlight:function(ft,It,$t){var Nt={code:ft,grammar:It,language:$t};if(I.hooks.run("before-tokenize",Nt),!Nt.grammar)throw new Error('The language "'+Nt.language+'" has no grammar.');return Nt.tokens=I.tokenize(Nt.code,Nt.grammar),I.hooks.run("after-tokenize",Nt),dt.stringify(I.util.encode(Nt.tokens),Nt.language)},tokenize:function(ft,It){var $t=It.rest;if($t){for(var Nt in $t)It[Nt]=$t[Nt];delete It.rest}var Ut=new kt;return Y(Ut,Ut.head,ft),Q(ft,Ut,It,Ut.head,0),At(Ut)},hooks:{all:{},add:function(ft,It){var $t=I.hooks.all;$t[ft]=$t[ft]||[],$t[ft].push(It)},run:function(ft,It){var $t=I.hooks.all[ft];if(!(!$t||!$t.length))for(var Nt=0,Ut;Ut=$t[Nt++];)Ut(It)}},Token:dt};O.Prism=I;function dt(ft,It,$t,Nt){this.type=ft,this.content=It,this.alias=$t,this.length=(Nt||"").length|0}dt.stringify=function ft(It,$t){if(typeof It=="string")return It;if(Array.isArray(It)){var Nt="";return It.forEach(function(Kt){Nt+=ft(Kt,$t)}),Nt}var Ut={type:It.type,content:ft(It.content,$t),tag:"span",classes:["token",It.type],attributes:{},language:$t},et=It.alias;et&&(Array.isArray(et)?Array.prototype.push.apply(Ut.classes,et):Ut.classes.push(et)),I.hooks.run("wrap",Ut);var Rt="";for(var Lt in Ut.attributes)Rt+=" "+Lt+'="'+(Ut.attributes[Lt]||"").replace(/"/g,""")+'"';return"<"+Ut.tag+' class="'+Ut.classes.join(" ")+'"'+Rt+">"+Ut.content+"</"+Ut.tag+">"};function rt(ft,It,$t,Nt){ft.lastIndex=It;var Ut=ft.exec($t);if(Ut&&Nt&&Ut[1]){var et=Ut[1].length;Ut.index+=et,Ut[0]=Ut[0].slice(et)}return Ut}function Q(ft,It,$t,Nt,Ut,et){for(var Rt in $t)if(!(!$t.hasOwnProperty(Rt)||!$t[Rt])){var Lt=$t[Rt];Lt=Array.isArray(Lt)?Lt:[Lt];for(var Kt=0;Kt<Lt.length;++Kt){if(et&&et.cause==Rt+","+Kt)return;var Qt=Lt[Kt],ie=Qt.inside,yt=!!Qt.lookbehind,ae=!!Qt.greedy,Ht=Qt.alias;if(ae&&!Qt.pattern.global){var Pe=Qt.pattern.toString().match(/[imsuy]*$/)[0];Qt.pattern=RegExp(Qt.pattern.source,Pe+"g")}for(var ge=Qt.pattern||Qt,we=Nt.next,pe=Ut;we!==It.tail&&!(et&&pe>=et.reach);pe+=we.value.length,we=we.next){var ln=we.value;if(It.length>ft.length)return;if(!(ln instanceof dt)){var zt=1,nt;if(ae){if(nt=rt(ge,pe,ft,yt),!nt||nt.index>=ft.length)break;var de=nt.index,it=nt.index+nt[0].length,Te=pe;for(Te+=we.value.length;de>=Te;)we=we.next,Te+=we.value.length;if(Te-=we.value.length,pe=Te,we.value instanceof dt)continue;for(var Ae=we;Ae!==It.tail&&(Te<it||typeof Ae.value=="string");Ae=Ae.next)zt++,Te+=Ae.value.length;zt--,ln=ft.slice(pe,Te),nt.index-=pe}else if(nt=rt(ge,0,ln,yt),!nt)continue;var de=nt.index,en=nt[0],vn=ln.slice(0,de),Xn=ln.slice(de+en.length),gn=pe+ln.length;et&&gn>et.reach&&(et.reach=gn);var _n=we.prev;vn&&(_n=Y(It,_n,vn),pe+=vn.length),Yt(It,_n,zt);var $n=new dt(Rt,ie?I.tokenize(en,ie):en,Ht,en);if(we=Y(It,_n,$n),Xn&&Y(It,we,Xn),zt>1){var fn={cause:Rt+","+Kt,reach:gn};Q(ft,It,$t,we.prev,pe,fn),et&&fn.reach>et.reach&&(et.reach=fn.reach)}}}}}}function kt(){var ft={value:null,prev:null,next:null},It={value:null,prev:ft,next:null};ft.next=It,this.head=ft,this.tail=It,this.length=0}function Y(ft,It,$t){var Nt=It.next,Ut={value:$t,prev:It,next:Nt};return It.next=Ut,Nt.prev=Ut,ft.length++,Ut}function Yt(ft,It,$t){for(var Nt=It.next,Ut=0;Ut<$t&&Nt!==ft.tail;Ut++)Nt=Nt.next;It.next=Nt,Nt.prev=It,ft.length-=Ut}function At(ft){for(var It=[],$t=ft.head.next;$t!==ft.tail;)It.push($t.value),$t=$t.next;return It}if(!O.document)return O.addEventListener&&(I.disableWorkerMessageHandler||O.addEventListener("message",function(ft){var It=JSON.parse(ft.data),$t=It.language,Nt=It.code,Ut=It.immediateClose;O.postMessage(I.highlight(Nt,I.languages[$t],$t)),Ut&&O.close()},!1)),I;var vt=I.util.currentScript();vt&&(I.filename=vt.src,vt.hasAttribute("data-manual")&&(I.manual=!0));function Tt(){I.manual||I.highlightAll()}if(!I.manual){var Mt=document.readyState;Mt==="loading"||Mt==="interactive"&&vt&&vt.defer?document.addEventListener("DOMContentLoaded",Tt):window.requestAnimationFrame?window.requestAnimationFrame(Tt):window.setTimeout(Tt,16)}return I}(y);V.exports&&(V.exports=N),typeof h.g!="undefined"&&(h.g.Prism=N)},88914:function(V,w,h){"use strict";var y=h(47178),N=h(19095),O=h(1969),B="data";V.exports=dt;var _=/^data[-\w.:]+$/i,K=/-[a-z]/g,I=/[A-Z]/g;function dt(Yt,At){var vt=y(At),Tt=At,Mt=O;return vt in Yt.normal?Yt.property[Yt.normal[vt]]:(vt.length>4&&vt.slice(0,4)===B&&_.test(At)&&(At.charAt(4)==="-"?Tt=rt(At):At=Q(At),Mt=N),new Mt(Tt,At))}function rt(Yt){var At=Yt.slice(5).replace(K,Y);return B+At.charAt(0).toUpperCase()+At.slice(1)}function Q(Yt){var At=Yt.slice(4);return K.test(At)?Yt:(At=At.replace(I,kt),At.charAt(0)!=="-"&&(At="-"+At),B+At)}function kt(Yt){return"-"+Yt.toLowerCase()}function Y(Yt){return Yt.charAt(1).toUpperCase()}},18795:function(V,w,h){"use strict";var y=h(83576),N=h(8179),O=h(59780),B=h(68244),_=h(20019),K=h(38567);V.exports=y([O,N,B,_,K])},20019:function(V,w,h){"use strict";var y=h(70167),N=h(79318),O=y.booleanish,B=y.number,_=y.spaceSeparated;V.exports=N({transform:K,properties:{ariaActiveDescendant:null,ariaAtomic:O,ariaAutoComplete:null,ariaBusy:O,ariaChecked:O,ariaColCount:B,ariaColIndex:B,ariaColSpan:B,ariaControls:_,ariaCurrent:null,ariaDescribedBy:_,ariaDetails:null,ariaDisabled:O,ariaDropEffect:_,ariaErrorMessage:null,ariaExpanded:O,ariaFlowTo:_,ariaGrabbed:O,ariaHasPopup:null,ariaHidden:O,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:_,ariaLevel:B,ariaLive:null,ariaModal:O,ariaMultiLine:O,ariaMultiSelectable:O,ariaOrientation:null,ariaOwns:_,ariaPlaceholder:null,ariaPosInSet:B,ariaPressed:O,ariaReadOnly:O,ariaRelevant:null,ariaRequired:O,ariaRoleDescription:_,ariaRowCount:B,ariaRowIndex:B,ariaRowSpan:B,ariaSelected:O,ariaSetSize:B,ariaSort:null,ariaValueMax:B,ariaValueMin:B,ariaValueNow:B,ariaValueText:null,role:null}});function K(I,dt){return dt==="role"?dt:"aria-"+dt.slice(4).toLowerCase()}},38567:function(V,w,h){"use strict";var y=h(70167),N=h(79318),O=h(85804),B=y.boolean,_=y.overloadedBoolean,K=y.booleanish,I=y.number,dt=y.spaceSeparated,rt=y.commaSeparated;V.exports=N({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:O,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:rt,acceptCharset:dt,accessKey:dt,action:null,allow:null,allowFullScreen:B,allowPaymentRequest:B,allowUserMedia:B,alt:null,as:null,async:B,autoCapitalize:null,autoComplete:dt,autoFocus:B,autoPlay:B,capture:B,charSet:null,checked:B,cite:null,className:dt,cols:I,colSpan:null,content:null,contentEditable:K,controls:B,controlsList:dt,coords:I|rt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:B,defer:B,dir:null,dirName:null,disabled:B,download:_,draggable:K,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:B,formTarget:null,headers:dt,height:I,hidden:B,high:I,href:null,hrefLang:null,htmlFor:dt,httpEquiv:dt,id:null,imageSizes:null,imageSrcSet:rt,inputMode:null,integrity:null,is:null,isMap:B,itemId:null,itemProp:dt,itemRef:dt,itemScope:B,itemType:dt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:B,low:I,manifest:null,max:null,maxLength:I,media:null,method:null,min:null,minLength:I,multiple:B,muted:B,name:null,nonce:null,noModule:B,noValidate:B,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:B,optimum:I,pattern:null,ping:dt,placeholder:null,playsInline:B,poster:null,preload:null,readOnly:B,referrerPolicy:null,rel:dt,required:B,reversed:B,rows:I,rowSpan:I,sandbox:dt,scope:null,scoped:B,seamless:B,selected:B,shape:null,size:I,sizes:null,slot:null,span:I,spellCheck:K,src:null,srcDoc:null,srcLang:null,srcSet:rt,start:I,step:null,style:null,tabIndex:I,target:null,title:null,translate:null,type:null,typeMustMatch:B,useMap:null,value:K,width:I,wrap:null,align:null,aLink:null,archive:dt,axis:null,background:null,bgColor:null,border:I,borderColor:null,bottomMargin:I,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:B,declare:B,event:null,face:null,frame:null,frameBorder:null,hSpace:I,leftMargin:I,link:null,longDesc:null,lowSrc:null,marginHeight:I,marginWidth:I,noResize:B,noHref:B,noShade:B,noWrap:B,object:null,profile:null,prompt:null,rev:null,rightMargin:I,rules:null,scheme:null,scrolling:K,standby:null,summary:null,text:null,topMargin:I,valueType:null,version:null,vAlign:null,vLink:null,vSpace:I,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:B,disableRemotePlayback:B,prefix:null,property:null,results:I,security:null,unselectable:null}})},85804:function(V,w,h){"use strict";var y=h(56432);V.exports=N;function N(O,B){return y(O,B.toLowerCase())}},56432:function(V){"use strict";V.exports=w;function w(h,y){return y in h?h[y]:y}},79318:function(V,w,h){"use strict";var y=h(47178),N=h(44347),O=h(19095);V.exports=B;function B(_){var K=_.space,I=_.mustUseProperty||[],dt=_.attributes||{},rt=_.properties,Q=_.transform,kt={},Y={},Yt,At;for(Yt in rt)At=new O(Yt,Q(dt,Yt),rt[Yt],K),I.indexOf(Yt)!==-1&&(At.mustUseProperty=!0),kt[Yt]=At,Y[y(Yt)]=Yt,Y[y(At.attribute)]=Yt;return new N(kt,Y,K)}},19095:function(V,w,h){"use strict";var y=h(1969),N=h(70167);V.exports=_,_.prototype=new y,_.prototype.defined=!0;var O=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],B=O.length;function _(I,dt,rt,Q){var kt=-1,Y;for(K(this,"space",Q),y.call(this,I,dt);++kt<B;)Y=O[kt],K(this,Y,(rt&N[Y])===N[Y])}function K(I,dt,rt){rt&&(I[dt]=rt)}},1969:function(V){"use strict";V.exports=h;var w=h.prototype;w.space=null,w.attribute=null,w.property=null,w.boolean=!1,w.booleanish=!1,w.overloadedBoolean=!1,w.number=!1,w.commaSeparated=!1,w.spaceSeparated=!1,w.commaOrSpaceSeparated=!1,w.mustUseProperty=!1,w.defined=!1;function h(y,N){this.property=y,this.attribute=N}},83576:function(V,w,h){"use strict";var y=h(97270),N=h(44347);V.exports=O;function O(B){for(var _=B.length,K=[],I=[],dt=-1,rt,Q;++dt<_;)rt=B[dt],K.push(rt.property),I.push(rt.normal),Q=rt.space;return new N(y.apply(null,K),y.apply(null,I),Q)}},44347:function(V){"use strict";V.exports=h;var w=h.prototype;w.space=null,w.normal={},w.property={};function h(y,N,O){this.property=y,this.normal=N,O&&(this.space=O)}},70167:function(V,w){"use strict";var h=0;w.boolean=y(),w.booleanish=y(),w.overloadedBoolean=y(),w.number=y(),w.spaceSeparated=y(),w.commaSeparated=y(),w.commaOrSpaceSeparated=y();function y(){return Math.pow(2,++h)}},8179:function(V,w,h){"use strict";var y=h(79318);V.exports=y({space:"xlink",transform:N,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function N(O,B){return"xlink:"+B.slice(5).toLowerCase()}},59780:function(V,w,h){"use strict";var y=h(79318);V.exports=y({space:"xml",transform:N,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function N(O,B){return"xml:"+B.slice(3).toLowerCase()}},68244:function(V,w,h){"use strict";var y=h(79318),N=h(85804);V.exports=y({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:N,properties:{xmlns:null,xmlnsXLink:null}})},47178:function(V){"use strict";V.exports=w;function w(h){return h.toLowerCase()}},17115:function(V,w,h){"use strict";h.d(w,{ZP:function(){return I}});var y=h(10859),N=h(59301),O=h(47273),B=0,_=(0,O.Z)();function K(){var dt;return _?(dt=B,B+=1):dt="TEST_OR_SSR",dt}function I(dt){var rt=N.useState(),Q=(0,y.Z)(rt,2),kt=Q[0],Y=Q[1];return N.useEffect(function(){Y("rc_select_".concat(K()))},[]),dt||kt}},77861:function(V,w,h){"use strict";h.d(w,{Ac:function(){return ve},Xo:function(){return On},Wx:function(){return Si},ZP:function(){return Bn},lk:function(){return Nt}});var y=h(16378),N=h(65093),O=h(78772),B=h(35227),_=h(10859),K=h(61206),I=h(42066),dt=h(18929),rt=h(48736),Q=h(59301),kt=h(92310),Y=h.n(kt),Yt=h(34280),At=h(49658),vt=h(10228),Tt=h(8654),Mt=function(Ft){var qe=Ft.className,xn=Ft.customizeIcon,Gn=Ft.customizeIconProps,kn=Ft.onMouseDown,ne=Ft.onClick,dn=Ft.children,Fn;return typeof xn=="function"?Fn=xn(Gn):Fn=xn,Q.createElement("span",{className:qe,onMouseDown:function(Me){Me.preventDefault(),kn&&kn(Me)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:ne,"aria-hidden":!0},Fn!==void 0?Fn:Q.createElement("span",{className:Y()(qe.split(/\s+/).map(function(hi){return"".concat(hi,"-icon")}))},dn))},ft=Mt;function It(oe,Ft,qe,xn,Gn){var kn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,ne=arguments.length>6?arguments[6]:void 0,dn=arguments.length>7?arguments[7]:void 0,Fn=Q.useMemo(function(){if((0,I.Z)(xn)==="object")return xn.clearIcon;if(Gn)return Gn},[xn,Gn]),hi=Q.useMemo(function(){return!!(!kn&&xn&&(qe.length||ne)&&!(dn==="combobox"&&ne===""))},[xn,kn,qe.length,ne,dn]);return{allowClear:hi,clearIcon:Q.createElement(ft,{className:"".concat(oe,"-clear"),onMouseDown:Ft,customizeIcon:Fn},"\xD7")}}var $t=Q.createContext(null);function Nt(){return Q.useContext($t)}function Ut(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ft=Q.useState(!1),qe=(0,_.Z)(Ft,2),xn=qe[0],Gn=qe[1],kn=Q.useRef(null),ne=function(){window.clearTimeout(kn.current)};Q.useEffect(function(){return ne},[]);var dn=function(hi,Me){ne(),kn.current=window.setTimeout(function(){Gn(hi),Me&&Me()},oe)};return[xn,dn,ne]}function et(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ft=Q.useRef(null),qe=Q.useRef(null);Q.useEffect(function(){return function(){window.clearTimeout(qe.current)}},[]);function xn(Gn){(Gn||Ft.current===null)&&(Ft.current=Gn),window.clearTimeout(qe.current),qe.current=window.setTimeout(function(){Ft.current=null},oe)}return[function(){return Ft.current},xn]}function Rt(oe,Ft,qe,xn){var Gn=Q.useRef(null);Gn.current={open:Ft,triggerOpen:qe,customizedTrigger:xn},Q.useEffect(function(){function kn(ne){var dn;if(!((dn=Gn.current)!==null&&dn!==void 0&&dn.customizedTrigger)){var Fn=ne.target;Fn.shadowRoot&&ne.composed&&(Fn=ne.composedPath()[0]||Fn),Gn.current.open&&oe().filter(function(hi){return hi}).every(function(hi){return!hi.contains(Fn)&&hi!==Fn})&&Gn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",kn),function(){return window.removeEventListener("mousedown",kn)}},[])}var Lt=h(26112),Kt=h(11780),Qt=function(Ft,qe){var xn,Gn,kn=Ft.prefixCls,ne=Ft.id,dn=Ft.inputElement,Fn=Ft.disabled,hi=Ft.tabIndex,Me=Ft.autoFocus,In=Ft.autoComplete,be=Ft.editable,$e=Ft.activeDescendantId,He=Ft.value,Le=Ft.maxLength,tn=Ft.onKeyDown,Je=Ft.onMouseDown,yn=Ft.onChange,bn=Ft.onPaste,di=Ft.onCompositionStart,Sn=Ft.onCompositionEnd,xi=Ft.open,ir=Ft.attrs,Mi=dn||Q.createElement("input",null),le=Mi,mr=le.ref,Or=le.props,zr=Or.onKeyDown,Yr=Or.onChange,dr=Or.onMouseDown,Er=Or.onCompositionStart,Pi=Or.onCompositionEnd,pi=Or.style;return(0,rt.Kp)(!("maxLength"in Mi.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Mi=Q.cloneElement(Mi,(0,B.Z)((0,B.Z)((0,B.Z)({type:"search"},Or),{},{id:ne,ref:(0,Tt.sQ)(qe,mr),disabled:Fn,tabIndex:hi,autoComplete:In||"off",autoFocus:Me,className:Y()("".concat(kn,"-selection-search-input"),(xn=Mi)===null||xn===void 0||(Gn=xn.props)===null||Gn===void 0?void 0:Gn.className),role:"combobox","aria-label":"Search","aria-expanded":xi||!1,"aria-haspopup":"listbox","aria-owns":"".concat(ne,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(ne,"_list"),"aria-activedescendant":xi?$e:void 0},ir),{},{value:be?He:"",maxLength:Le,readOnly:!be,unselectable:be?null:"on",style:(0,B.Z)((0,B.Z)({},pi),{},{opacity:be?null:0}),onKeyDown:function(Re){tn(Re),zr&&zr(Re)},onMouseDown:function(Re){Je(Re),dr&&dr(Re)},onChange:function(Re){yn(Re),Yr&&Yr(Re)},onCompositionStart:function(Re){di(Re),Er&&Er(Re)},onCompositionEnd:function(Re){Sn(Re),Pi&&Pi(Re)},onPaste:bn})),Mi},ie=Q.forwardRef(Qt);ie.displayName="Input";var yt=ie;function ae(oe){return Array.isArray(oe)?oe:oe!==void 0?[oe]:[]}var Ht=typeof window!="undefined"&&window.document&&window.document.documentElement,Pe=Ht;function ge(oe){return oe!=null}function we(oe){return!oe&&oe!==0}function pe(oe){return["string","number"].includes((0,I.Z)(oe))}function ln(oe){var Ft=void 0;return oe&&(pe(oe.title)?Ft=oe.title.toString():pe(oe.label)&&(Ft=oe.label.toString())),Ft}function zt(oe,Ft){Pe?Q.useLayoutEffect(oe,Ft):Q.useEffect(oe,Ft)}function nt(oe){var Ft;return(Ft=oe.key)!==null&&Ft!==void 0?Ft:oe.value}var it=function(Ft){Ft.preventDefault(),Ft.stopPropagation()},Te=function(Ft){var qe=Ft.id,xn=Ft.prefixCls,Gn=Ft.values,kn=Ft.open,ne=Ft.searchValue,dn=Ft.autoClearSearchValue,Fn=Ft.inputRef,hi=Ft.placeholder,Me=Ft.disabled,In=Ft.mode,be=Ft.showSearch,$e=Ft.autoFocus,He=Ft.autoComplete,Le=Ft.activeDescendantId,tn=Ft.tabIndex,Je=Ft.removeIcon,yn=Ft.maxTagCount,bn=Ft.maxTagTextLength,di=Ft.maxTagPlaceholder,Sn=di===void 0?function(Wi){return"+ ".concat(Wi.length," ...")}:di,xi=Ft.tagRender,ir=Ft.onToggleOpen,Mi=Ft.onRemove,le=Ft.onInputChange,mr=Ft.onInputPaste,Or=Ft.onInputKeyDown,zr=Ft.onInputMouseDown,Yr=Ft.onInputCompositionStart,dr=Ft.onInputCompositionEnd,Er=Q.useRef(null),Pi=(0,Q.useState)(0),pi=(0,_.Z)(Pi,2),ur=pi[0],Re=pi[1],Rr=(0,Q.useState)(!1),je=(0,_.Z)(Rr,2),nr=je[0],Co=je[1],Br="".concat(xn,"-selection"),rs=kn||In==="multiple"&&dn===!1||In==="tags"?ne:"",yo=In==="tags"||In==="multiple"&&dn===!1||be&&(kn||nr);zt(function(){Re(Er.current.scrollWidth)},[rs]);function ai(Wi,bi,qi,go,Ui){return Q.createElement("span",{className:Y()("".concat(Br,"-item"),(0,O.Z)({},"".concat(Br,"-item-disabled"),qi)),title:ln(Wi)},Q.createElement("span",{className:"".concat(Br,"-item-content")},bi),go&&Q.createElement(ft,{className:"".concat(Br,"-item-remove"),onMouseDown:it,onClick:Ui,customizeIcon:Je},"\xD7"))}function W(Wi,bi,qi,go,Ui){var Xr=function(Vi){it(Vi),ir(!kn)};return Q.createElement("span",{onMouseDown:Xr},xi({label:bi,value:Wi,disabled:qi,closable:go,onClose:Ui}))}function tt(Wi){var bi=Wi.disabled,qi=Wi.label,go=Wi.value,Ui=!Me&&!bi,Xr=qi;if(typeof bn=="number"&&(typeof qi=="string"||typeof qi=="number")){var $i=String(Xr);$i.length>bn&&(Xr="".concat($i.slice(0,bn),"..."))}var Vi=function(kr){kr&&kr.stopPropagation(),Mi(Wi)};return typeof xi=="function"?W(go,Xr,bi,Ui,Vi):ai(Wi,Xr,bi,Ui,Vi)}function Pn(Wi){var bi=typeof Sn=="function"?Sn(Wi):Sn;return ai({title:bi},bi,!1)}var pt=Q.createElement("div",{className:"".concat(Br,"-search"),style:{width:ur},onFocus:function(){Co(!0)},onBlur:function(){Co(!1)}},Q.createElement(yt,{ref:Fn,open:kn,prefixCls:xn,id:qe,inputElement:null,disabled:Me,autoFocus:$e,autoComplete:He,editable:yo,activeDescendantId:Le,value:rs,onKeyDown:Or,onMouseDown:zr,onChange:le,onPaste:mr,onCompositionStart:Yr,onCompositionEnd:dr,tabIndex:tn,attrs:(0,Lt.Z)(Ft,!0)}),Q.createElement("span",{ref:Er,className:"".concat(Br,"-search-mirror"),"aria-hidden":!0},rs,"\xA0")),$=Q.createElement(Kt.Z,{prefixCls:"".concat(Br,"-overflow"),data:Gn,renderItem:tt,renderRest:Pn,suffix:pt,itemKey:nt,maxCount:yn});return Q.createElement(Q.Fragment,null,$,!Gn.length&&!rs&&Q.createElement("span",{className:"".concat(Br,"-placeholder")},hi))},Ae=Te,de=function(Ft){var qe=Ft.inputElement,xn=Ft.prefixCls,Gn=Ft.id,kn=Ft.inputRef,ne=Ft.disabled,dn=Ft.autoFocus,Fn=Ft.autoComplete,hi=Ft.activeDescendantId,Me=Ft.mode,In=Ft.open,be=Ft.values,$e=Ft.placeholder,He=Ft.tabIndex,Le=Ft.showSearch,tn=Ft.searchValue,Je=Ft.activeValue,yn=Ft.maxLength,bn=Ft.onInputKeyDown,di=Ft.onInputMouseDown,Sn=Ft.onInputChange,xi=Ft.onInputPaste,ir=Ft.onInputCompositionStart,Mi=Ft.onInputCompositionEnd,le=Ft.title,mr=Q.useState(!1),Or=(0,_.Z)(mr,2),zr=Or[0],Yr=Or[1],dr=Me==="combobox",Er=dr||Le,Pi=be[0],pi=tn||"";dr&&Je&&!zr&&(pi=Je),Q.useEffect(function(){dr&&Yr(!1)},[dr,Je]);var ur=Me!=="combobox"&&!In&&!Le?!1:!!pi,Re=le===void 0?ln(Pi):le,Rr=function(){if(Pi)return null;var nr=ur?{visibility:"hidden"}:void 0;return Q.createElement("span",{className:"".concat(xn,"-selection-placeholder"),style:nr},$e)};return Q.createElement(Q.Fragment,null,Q.createElement("span",{className:"".concat(xn,"-selection-search")},Q.createElement(yt,{ref:kn,prefixCls:xn,id:Gn,open:In,inputElement:qe,disabled:ne,autoFocus:dn,autoComplete:Fn,editable:Er,activeDescendantId:hi,value:pi,onKeyDown:bn,onMouseDown:di,onChange:function(nr){Yr(!0),Sn(nr)},onPaste:xi,onCompositionStart:ir,onCompositionEnd:Mi,tabIndex:He,attrs:(0,Lt.Z)(Ft,!0),maxLength:dr?yn:void 0})),!dr&&Pi?Q.createElement("span",{className:"".concat(xn,"-selection-item"),title:Re,style:ur?{visibility:"hidden"}:void 0},Pi.label):null,Rr())},en=de;function vn(oe){return![vt.Z.ESC,vt.Z.SHIFT,vt.Z.BACKSPACE,vt.Z.TAB,vt.Z.WIN_KEY,vt.Z.ALT,vt.Z.META,vt.Z.WIN_KEY_RIGHT,vt.Z.CTRL,vt.Z.SEMICOLON,vt.Z.EQUALS,vt.Z.CAPS_LOCK,vt.Z.CONTEXT_MENU,vt.Z.F1,vt.Z.F2,vt.Z.F3,vt.Z.F4,vt.Z.F5,vt.Z.F6,vt.Z.F7,vt.Z.F8,vt.Z.F9,vt.Z.F10,vt.Z.F11,vt.Z.F12].includes(oe)}var Xn=function(Ft,qe){var xn=(0,Q.useRef)(null),Gn=(0,Q.useRef)(!1),kn=Ft.prefixCls,ne=Ft.open,dn=Ft.mode,Fn=Ft.showSearch,hi=Ft.tokenWithEnter,Me=Ft.autoClearSearchValue,In=Ft.onSearch,be=Ft.onSearchSubmit,$e=Ft.onToggleOpen,He=Ft.onInputKeyDown,Le=Ft.domRef;Q.useImperativeHandle(qe,function(){return{focus:function(){xn.current.focus()},blur:function(){xn.current.blur()}}});var tn=et(0),Je=(0,_.Z)(tn,2),yn=Je[0],bn=Je[1],di=function(pi){var ur=pi.which;(ur===vt.Z.UP||ur===vt.Z.DOWN)&&pi.preventDefault(),He&&He(pi),ur===vt.Z.ENTER&&dn==="tags"&&!Gn.current&&!ne&&(be==null||be(pi.target.value)),vn(ur)&&$e(!0)},Sn=function(){bn(!0)},xi=(0,Q.useRef)(null),ir=function(pi){In(pi,!0,Gn.current)!==!1&&$e(!0)},Mi=function(){Gn.current=!0},le=function(pi){Gn.current=!1,dn!=="combobox"&&ir(pi.target.value)},mr=function(pi){var ur=pi.target.value;if(hi&&xi.current&&/[\r\n]/.test(xi.current)){var Re=xi.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");ur=ur.replace(Re,xi.current)}xi.current=null,ir(ur)},Or=function(pi){var ur=pi.clipboardData,Re=ur.getData("text");xi.current=Re},zr=function(pi){var ur=pi.target;if(ur!==xn.current){var Re=document.body.style.msTouchAction!==void 0;Re?setTimeout(function(){xn.current.focus()}):xn.current.focus()}},Yr=function(pi){var ur=yn();pi.target!==xn.current&&!ur&&dn!=="combobox"&&pi.preventDefault(),(dn!=="combobox"&&(!Fn||!ur)||!ne)&&(ne&&Me!==!1&&In("",!0,!1),$e())},dr={inputRef:xn,onInputKeyDown:di,onInputMouseDown:Sn,onInputChange:mr,onInputPaste:Or,onInputCompositionStart:Mi,onInputCompositionEnd:le},Er=dn==="multiple"||dn==="tags"?Q.createElement(Ae,(0,y.Z)({},Ft,dr)):Q.createElement(en,(0,y.Z)({},Ft,dr));return Q.createElement("div",{ref:Le,className:"".concat(kn,"-selector"),onClick:zr,onMouseDown:Yr},Er)},gn=Q.forwardRef(Xn);gn.displayName="Selector";var _n=gn,$n=h(35593),fn=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],hn=function(Ft){var qe=Ft===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:qe,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:qe,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:qe,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:qe,adjustY:1},htmlRegion:"scroll"}}},ct=function(Ft,qe){var xn=Ft.prefixCls,Gn=Ft.disabled,kn=Ft.visible,ne=Ft.children,dn=Ft.popupElement,Fn=Ft.animation,hi=Ft.transitionName,Me=Ft.dropdownStyle,In=Ft.dropdownClassName,be=Ft.direction,$e=be===void 0?"ltr":be,He=Ft.placement,Le=Ft.builtinPlacements,tn=Ft.dropdownMatchSelectWidth,Je=Ft.dropdownRender,yn=Ft.dropdownAlign,bn=Ft.getPopupContainer,di=Ft.empty,Sn=Ft.getTriggerDOMNode,xi=Ft.onPopupVisibleChange,ir=Ft.onPopupMouseEnter,Mi=(0,K.Z)(Ft,fn),le="".concat(xn,"-dropdown"),mr=dn;Je&&(mr=Je(dn));var Or=Q.useMemo(function(){return Le||hn(tn)},[Le,tn]),zr=Fn?"".concat(le,"-").concat(Fn):hi,Yr=typeof tn=="number",dr=Q.useMemo(function(){return Yr?null:tn===!1?"minWidth":"width"},[tn,Yr]),Er=Me;Yr&&(Er=(0,B.Z)((0,B.Z)({},Er),{},{width:tn}));var Pi=Q.useRef(null);return Q.useImperativeHandle(qe,function(){return{getPopupElement:function(){return Pi.current}}}),Q.createElement($n.Z,(0,y.Z)({},Mi,{showAction:xi?["click"]:[],hideAction:xi?["click"]:[],popupPlacement:He||($e==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Or,prefixCls:le,popupTransitionName:zr,popup:Q.createElement("div",{ref:Pi,onMouseEnter:ir},mr),stretch:dr,popupAlign:yn,popupVisible:kn,getPopupContainer:bn,popupClassName:Y()(In,(0,O.Z)({},"".concat(le,"-empty"),di)),popupStyle:Er,getTriggerDOMNode:Sn,onPopupVisibleChange:xi}),ne)},L=Q.forwardRef(ct);L.displayName="SelectTrigger";var k=L,z=h(83980);function G(oe,Ft){var qe=oe.key,xn;return"value"in oe&&(xn=oe.value),qe!=null?qe:xn!==void 0?xn:"rc-index-key-".concat(Ft)}function T(oe,Ft){var qe=oe||{},xn=qe.label,Gn=qe.value,kn=qe.options,ne=qe.groupLabel,dn=xn||(Ft?"children":"label");return{label:dn,value:Gn||"value",options:kn||"options",groupLabel:ne||dn}}function St(oe){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},qe=Ft.fieldNames,xn=Ft.childrenAsData,Gn=[],kn=T(qe,!1),ne=kn.label,dn=kn.value,Fn=kn.options,hi=kn.groupLabel;function Me(In,be){In.forEach(function($e){if(be||!(Fn in $e)){var He=$e[dn];Gn.push({key:G($e,Gn.length),groupOption:be,data:$e,label:$e[ne],value:He})}else{var Le=$e[hi];Le===void 0&&xn&&(Le=$e.label),Gn.push({key:G($e,Gn.length),group:!0,data:$e,label:Le}),Me($e[Fn],!0)}})}return Me(oe,!1),Gn}function fe(oe){var Ft=(0,B.Z)({},oe);return"props"in Ft||Object.defineProperty(Ft,"props",{get:function(){return(0,rt.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Ft}}),Ft}function Ct(oe,Ft){if(!Ft||!Ft.length)return null;var qe=!1;function xn(kn,ne){var dn=(0,z.Z)(ne),Fn=dn[0],hi=dn.slice(1);if(!Fn)return[kn];var Me=kn.split(Fn);return qe=qe||Me.length>1,Me.reduce(function(In,be){return[].concat((0,N.Z)(In),(0,N.Z)(xn(be,hi)))},[]).filter(function(In){return In})}var Gn=xn(oe,Ft);return qe?Gn:null}var xt=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Dt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function qt(oe){return oe==="tags"||oe==="multiple"}var _t=Q.forwardRef(function(oe,Ft){var qe,xn,Gn=oe.id,kn=oe.prefixCls,ne=oe.className,dn=oe.showSearch,Fn=oe.tagRender,hi=oe.direction,Me=oe.omitDomProps,In=oe.displayValues,be=oe.onDisplayValuesChange,$e=oe.emptyOptions,He=oe.notFoundContent,Le=He===void 0?"Not Found":He,tn=oe.onClear,Je=oe.mode,yn=oe.disabled,bn=oe.loading,di=oe.getInputElement,Sn=oe.getRawInputElement,xi=oe.open,ir=oe.defaultOpen,Mi=oe.onDropdownVisibleChange,le=oe.activeValue,mr=oe.onActiveValueChange,Or=oe.activeDescendantId,zr=oe.searchValue,Yr=oe.autoClearSearchValue,dr=oe.onSearch,Er=oe.onSearchSplit,Pi=oe.tokenSeparators,pi=oe.allowClear,ur=oe.suffixIcon,Re=oe.clearIcon,Rr=oe.OptionList,je=oe.animation,nr=oe.transitionName,Co=oe.dropdownStyle,Br=oe.dropdownClassName,rs=oe.dropdownMatchSelectWidth,yo=oe.dropdownRender,ai=oe.dropdownAlign,W=oe.placement,tt=oe.builtinPlacements,Pn=oe.getPopupContainer,pt=oe.showAction,$=pt===void 0?[]:pt,Wi=oe.onFocus,bi=oe.onBlur,qi=oe.onKeyUp,go=oe.onKeyDown,Ui=oe.onMouseDown,Xr=(0,K.Z)(oe,xt),$i=qt(Je),Vi=(dn!==void 0?dn:$i)||Je==="combobox",se=(0,B.Z)({},Xr);Dt.forEach(function(_r){delete se[_r]}),Me==null||Me.forEach(function(_r){delete se[_r]});var kr=Q.useState(!1),De=(0,_.Z)(kr,2),Wo=De[0],ls=De[1];Q.useEffect(function(){ls((0,At.Z)())},[]);var ni=Q.useRef(null),Ps=Q.useRef(null),Is=Q.useRef(null),Js=Q.useRef(null),Us=Q.useRef(null),oa=Ut(),Qa=(0,_.Z)(oa,3),da=Qa[0],Jr=Qa[1],vs=Qa[2];Q.useImperativeHandle(Ft,function(){var _r,Wr;return{focus:(_r=Js.current)===null||_r===void 0?void 0:_r.focus,blur:(Wr=Js.current)===null||Wr===void 0?void 0:Wr.blur,scrollTo:function(Os){var As;return(As=Us.current)===null||As===void 0?void 0:As.scrollTo(Os)}}});var es=Q.useMemo(function(){var _r;if(Je!=="combobox")return zr;var Wr=(_r=In[0])===null||_r===void 0?void 0:_r.value;return typeof Wr=="string"||typeof Wr=="number"?String(Wr):""},[zr,Je,In]),ke=Je==="combobox"&&typeof di=="function"&&di()||null,ys=typeof Sn=="function"&&Sn(),Su=(0,Tt.x1)(Ps,ys==null||(qe=ys.props)===null||qe===void 0?void 0:qe.ref),Dl=Q.useState(!1),lo=(0,_.Z)(Dl,2),Fo=lo[0],ws=lo[1];(0,Yt.Z)(function(){ws(!0)},[]);var Ko=(0,dt.Z)(!1,{defaultValue:ir,value:xi}),Ur=(0,_.Z)(Ko,2),uo=Ur[0],Pa=Ur[1],br=Fo?uo:!1,io=!Le&&$e;(yn||io&&br&&Je==="combobox")&&(br=!1);var eo=io?!1:br,ri=Q.useCallback(function(_r){var Wr=_r!==void 0?_r:!br;yn||(Pa(Wr),br!==Wr&&(Mi==null||Mi(Wr)))},[yn,br,Pa,Mi]),Cs=Q.useMemo(function(){return(Pi||[]).some(function(_r){return[`
|
|
|
`,`\r
|
|
|
`].includes(_r)})},[Pi]),Zo=function(Wr,sa,Os){var As=!0,os=Wr;mr==null||mr(null);var cs=Os?null:Ct(Wr,Pi);return Je!=="combobox"&&cs&&(os="",Er==null||Er(cs),ri(!1),As=!1),dr&&es!==os&&dr(os,{source:sa?"typing":"effect"}),As},ga=function(Wr){!Wr||!Wr.trim()||dr(Wr,{source:"submit"})};Q.useEffect(function(){!br&&!$i&&Je!=="combobox"&&Zo("",!1,!1)},[br]),Q.useEffect(function(){uo&&yn&&Pa(!1),yn&&Jr(!1)},[yn]);var sl=et(),Cl=(0,_.Z)(sl,2),Wn=Cl[0],us=Cl[1],Fs=function(Wr){var sa=Wn(),Os=Wr.which;if(Os===vt.Z.ENTER&&(Je!=="combobox"&&Wr.preventDefault(),br||ri(!0)),us(!!es),Os===vt.Z.BACKSPACE&&!sa&&$i&&!es&&In.length){for(var As=(0,N.Z)(In),os=null,cs=As.length-1;cs>=0;cs-=1){var qr=As[cs];if(!qr.disabled){As.splice(cs,1),os=qr;break}}os&&be(As,{type:"remove",values:[os]})}for(var is=arguments.length,Pl=new Array(is>1?is-1:0),tl=1;tl<is;tl++)Pl[tl-1]=arguments[tl];if(br&&Us.current){var Lo;(Lo=Us.current).onKeyDown.apply(Lo,[Wr].concat(Pl))}go==null||go.apply(void 0,[Wr].concat(Pl))},qa=function(Wr){for(var sa=arguments.length,Os=new Array(sa>1?sa-1:0),As=1;As<sa;As++)Os[As-1]=arguments[As];if(br&&Us.current){var os;(os=Us.current).onKeyUp.apply(os,[Wr].concat(Os))}qi==null||qi.apply(void 0,[Wr].concat(Os))},al=function(Wr){var sa=In.filter(function(Os){return Os!==Wr});be(sa,{type:"remove",values:[Wr]})},Fa=Q.useRef(!1),Sr=function(){Jr(!0),yn||(Wi&&!Fa.current&&Wi.apply(void 0,arguments),$.includes("focus")&&ri(!0)),Fa.current=!0},iu=function(){Jr(!1,function(){Fa.current=!1,ri(!1)}),!yn&&(es&&(Je==="tags"?dr(es,{source:"submit"}):Je==="multiple"&&dr("",{source:"blur"})),bi&&bi.apply(void 0,arguments))},Ba=[];Q.useEffect(function(){return function(){Ba.forEach(function(_r){return clearTimeout(_r)}),Ba.splice(0,Ba.length)}},[]);var Ln=function(Wr){var sa,Os=Wr.target,As=(sa=Is.current)===null||sa===void 0?void 0:sa.getPopupElement();if(As&&As.contains(Os)){var os=setTimeout(function(){var Pl=Ba.indexOf(os);if(Pl!==-1&&Ba.splice(Pl,1),vs(),!Wo&&!As.contains(document.activeElement)){var tl;(tl=Js.current)===null||tl===void 0||tl.focus()}});Ba.push(os)}for(var cs=arguments.length,qr=new Array(cs>1?cs-1:0),is=1;is<cs;is++)qr[is-1]=arguments[is];Ui==null||Ui.apply(void 0,[Wr].concat(qr))},Jo=Q.useState({}),za=(0,_.Z)(Jo,2),Aa=za[1];function ka(){Aa({})}var _a;ys&&(_a=function(Wr){ri(Wr)}),Rt(function(){var _r;return[ni.current,(_r=Is.current)===null||_r===void 0?void 0:_r.getPopupElement()]},eo,ri,!!ys);var Fu=Q.useMemo(function(){return(0,B.Z)((0,B.Z)({},oe),{},{notFoundContent:Le,open:br,triggerOpen:eo,id:Gn,showSearch:Vi,multiple:$i,toggleOpen:ri})},[oe,Le,eo,br,Gn,Vi,$i,ri]),Ha=!!ur||bn,Vl;Ha&&(Vl=Q.createElement(ft,{className:Y()("".concat(kn,"-arrow"),(0,O.Z)({},"".concat(kn,"-arrow-loading"),bn)),customizeIcon:ur,customizeIconProps:{loading:bn,searchValue:es,open:br,focused:da,showSearch:Vi}}));var vr=function(){var Wr;tn==null||tn(),(Wr=Js.current)===null||Wr===void 0||Wr.focus(),be([],{type:"clear",values:In}),Zo("",!1,!1)},ll=It(kn,vr,In,pi,Re,yn,es,Je),Kl=ll.allowClear,Es=ll.clearIcon,Qs=Q.createElement(Rr,{ref:Us}),ru=Y()(kn,ne,(xn={},(0,O.Z)(xn,"".concat(kn,"-focused"),da),(0,O.Z)(xn,"".concat(kn,"-multiple"),$i),(0,O.Z)(xn,"".concat(kn,"-single"),!$i),(0,O.Z)(xn,"".concat(kn,"-allow-clear"),pi),(0,O.Z)(xn,"".concat(kn,"-show-arrow"),Ha),(0,O.Z)(xn,"".concat(kn,"-disabled"),yn),(0,O.Z)(xn,"".concat(kn,"-loading"),bn),(0,O.Z)(xn,"".concat(kn,"-open"),br),(0,O.Z)(xn,"".concat(kn,"-customize-input"),ke),(0,O.Z)(xn,"".concat(kn,"-show-search"),Vi),xn)),ou=Q.createElement(k,{ref:Is,disabled:yn,prefixCls:kn,visible:eo,popupElement:Qs,animation:je,transitionName:nr,dropdownStyle:Co,dropdownClassName:Br,direction:hi,dropdownMatchSelectWidth:rs,dropdownRender:yo,dropdownAlign:ai,placement:W,builtinPlacements:tt,getPopupContainer:Pn,empty:$e,getTriggerDOMNode:function(){return Ps.current},onPopupVisibleChange:_a,onPopupMouseEnter:ka},ys?Q.cloneElement(ys,{ref:Su}):Q.createElement(_n,(0,y.Z)({},oe,{domRef:Ps,prefixCls:kn,inputElement:ke,ref:Js,id:Gn,showSearch:Vi,autoClearSearchValue:Yr,mode:Je,activeDescendantId:Or,tagRender:Fn,values:In,open:br,onToggleOpen:ri,activeValue:le,searchValue:es,onSearch:Zo,onSearchSubmit:ga,onRemove:al,tokenWithEnter:Cs}))),su;return ys?su=ou:su=Q.createElement("div",(0,y.Z)({className:ru},se,{ref:ni,onMouseDown:Ln,onKeyDown:Fs,onKeyUp:qa,onFocus:Sr,onBlur:iu}),da&&!br&&Q.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(In.map(function(_r){var Wr=_r.label,sa=_r.value;return["number","string"].includes((0,I.Z)(Wr))?Wr:sa}).join(", "))),ou,Vl,Kl&&Es),Q.createElement($t.Provider,{value:Fu},su)}),ve=_t,Ge=function(oe,Ft){var qe=Q.useRef({values:new Map,options:new Map}),xn=Q.useMemo(function(){var kn=qe.current,ne=kn.values,dn=kn.options,Fn=oe.map(function(In){if(In.label===void 0){var be;return(0,B.Z)((0,B.Z)({},In),{},{label:(be=ne.get(In.value))===null||be===void 0?void 0:be.label})}return In}),hi=new Map,Me=new Map;return Fn.forEach(function(In){hi.set(In.value,In),Me.set(In.value,Ft.get(In.value)||dn.get(In.value))}),qe.current.values=hi,qe.current.options=Me,Fn},[oe,Ft]),Gn=Q.useCallback(function(kn){return Ft.get(kn)||qe.current.options.get(kn)},[Ft]);return[xn,Gn]};function Ke(oe,Ft){return ae(oe).join("").toUpperCase().includes(Ft)}var Ce=function(oe,Ft,qe,xn,Gn){return Q.useMemo(function(){if(!qe||xn===!1)return oe;var kn=Ft.options,ne=Ft.label,dn=Ft.value,Fn=[],hi=typeof xn=="function",Me=qe.toUpperCase(),In=hi?xn:function($e,He){return Gn?Ke(He[Gn],Me):He[kn]?Ke(He[ne!=="children"?ne:"label"],Me):Ke(He[dn],Me)},be=hi?function($e){return fe($e)}:function($e){return $e};return oe.forEach(function($e){if($e[kn]){var He=In(qe,be($e));if(He)Fn.push($e);else{var Le=$e[kn].filter(function(tn){return In(qe,be(tn))});Le.length&&Fn.push((0,B.Z)((0,B.Z)({},$e),{},(0,O.Z)({},kn,Le)))}return}In(qe,be($e))&&Fn.push($e)}),Fn},[oe,xn,Gn,qe,Ft])},Ve=h(17115),Qe=h(11592),Bt=["children","value"],xe=["children"];function ze(oe){var Ft=oe,qe=Ft.key,xn=Ft.props,Gn=xn.children,kn=xn.value,ne=(0,K.Z)(xn,Bt);return(0,B.Z)({key:qe,value:kn!==void 0?kn:qe,children:Gn},ne)}function Ne(oe){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Qe.Z)(oe).map(function(qe,xn){if(!Q.isValidElement(qe)||!qe.type)return null;var Gn=qe,kn=Gn.type.isSelectOptGroup,ne=Gn.key,dn=Gn.props,Fn=dn.children,hi=(0,K.Z)(dn,xe);return Ft||!kn?ze(qe):(0,B.Z)((0,B.Z)({key:"__RC_SELECT_GRP__".concat(ne===null?xn:ne,"__"),label:ne},hi),{},{options:Ne(Fn)})}).filter(function(qe){return qe})}function Cn(oe,Ft,qe,xn,Gn){return Q.useMemo(function(){var kn=oe,ne=!oe;ne&&(kn=Ne(Ft));var dn=new Map,Fn=new Map,hi=function(be,$e,He){He&&typeof He=="string"&&be.set($e[He],$e)};function Me(In){for(var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,$e=0;$e<In.length;$e+=1){var He=In[$e];!He[qe.options]||be?(dn.set(He[qe.value],He),hi(Fn,He,qe.label),hi(Fn,He,xn),hi(Fn,He,Gn)):Me(He[qe.options],!0)}}return Me(kn),{options:kn,valueOptions:dn,labelOptions:Fn}},[oe,Ft,qe,xn,Gn])}function En(oe){var Ft=Q.useRef();Ft.current=oe;var qe=Q.useCallback(function(){return Ft.current.apply(Ft,arguments)},[]);return qe}var jn=function(){return null};jn.isSelectOptGroup=!0;var On=jn,ci=function(){return null};ci.isSelectOption=!0;var Si=ci,vi=h(80547),qn=h(2738),an=h(50030),Ji=Q.createContext(null),ui=Ji;function lr(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Di=["disabled","title","children","style","className"];function D(oe){return typeof oe=="string"||typeof oe=="number"}var fr=function(Ft,qe){var xn=Nt(),Gn=xn.prefixCls,kn=xn.id,ne=xn.open,dn=xn.multiple,Fn=xn.mode,hi=xn.searchValue,Me=xn.toggleOpen,In=xn.notFoundContent,be=xn.onPopupScroll,$e=Q.useContext(ui),He=$e.flattenOptions,Le=$e.onActiveValue,tn=$e.defaultActiveFirstOption,Je=$e.onSelect,yn=$e.menuItemSelectedIcon,bn=$e.rawValues,di=$e.fieldNames,Sn=$e.virtual,xi=$e.direction,ir=$e.listHeight,Mi=$e.listItemHeight,le="".concat(Gn,"-item"),mr=(0,vi.Z)(function(){return He},[ne,He],function(ai,W){return W[0]&&ai[1]!==W[1]}),Or=Q.useRef(null),zr=function(W){W.preventDefault()},Yr=function(W){Or.current&&Or.current.scrollTo(typeof W=="number"?{index:W}:W)},dr=function(W){for(var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Pn=mr.length,pt=0;pt<Pn;pt+=1){var $=(W+pt*tt+Pn)%Pn,Wi=mr[$],bi=Wi.group,qi=Wi.data;if(!bi&&!qi.disabled)return $}return-1},Er=Q.useState(function(){return dr(0)}),Pi=(0,_.Z)(Er,2),pi=Pi[0],ur=Pi[1],Re=function(W){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ur(W);var Pn={source:tt?"keyboard":"mouse"},pt=mr[W];if(!pt){Le(null,-1,Pn);return}Le(pt.value,W,Pn)};(0,Q.useEffect)(function(){Re(tn!==!1?dr(0):-1)},[mr.length,hi]);var Rr=Q.useCallback(function(ai){return bn.has(ai)&&Fn!=="combobox"},[Fn,(0,N.Z)(bn).toString(),bn.size]);(0,Q.useEffect)(function(){var ai=setTimeout(function(){if(!dn&&ne&&bn.size===1){var tt=Array.from(bn)[0],Pn=mr.findIndex(function(pt){var $=pt.data;return $.value===tt});Pn!==-1&&(Re(Pn),Yr(Pn))}});if(ne){var W;(W=Or.current)===null||W===void 0||W.scrollTo(void 0)}return function(){return clearTimeout(ai)}},[ne,hi,He.length]);var je=function(W){W!==void 0&&Je(W,{selected:!bn.has(W)}),dn||Me(!1)};if(Q.useImperativeHandle(qe,function(){return{onKeyDown:function(W){var tt=W.which,Pn=W.ctrlKey;switch(tt){case vt.Z.N:case vt.Z.P:case vt.Z.UP:case vt.Z.DOWN:{var pt=0;if(tt===vt.Z.UP?pt=-1:tt===vt.Z.DOWN?pt=1:lr()&&Pn&&(tt===vt.Z.N?pt=1:tt===vt.Z.P&&(pt=-1)),pt!==0){var $=dr(pi+pt,pt);Yr($),Re($,!0)}break}case vt.Z.ENTER:{var Wi=mr[pi];Wi&&!Wi.data.disabled?je(Wi.value):je(void 0),ne&&W.preventDefault();break}case vt.Z.ESC:Me(!1),ne&&W.stopPropagation()}},onKeyUp:function(){},scrollTo:function(W){Yr(W)}}}),mr.length===0)return Q.createElement("div",{role:"listbox",id:"".concat(kn,"_list"),className:"".concat(le,"-empty"),onMouseDown:zr},In);var nr=Object.keys(di).map(function(ai){return di[ai]}),Co=function(W){return W.label};function Br(ai,W){var tt=ai.group;return{role:tt?"presentation":"option",id:"".concat(kn,"_list_").concat(W)}}var rs=function(W){var tt=mr[W];if(!tt)return null;var Pn=tt.data||{},pt=Pn.value,$=tt.group,Wi=(0,Lt.Z)(Pn,!0),bi=Co(tt);return tt?Q.createElement("div",(0,y.Z)({"aria-label":typeof bi=="string"&&!$?bi:null},Wi,{key:W},Br(tt,W),{"aria-selected":Rr(pt)}),pt):null},yo={role:"listbox",id:"".concat(kn,"_list")};return Q.createElement(Q.Fragment,null,Sn&&Q.createElement("div",(0,y.Z)({},yo,{style:{height:0,width:0,overflow:"hidden"}}),rs(pi-1),rs(pi),rs(pi+1)),Q.createElement(an.Z,{itemKey:"key",ref:Or,data:mr,height:ir,itemHeight:Mi,fullHeight:!1,onMouseDown:zr,onScroll:be,virtual:Sn,direction:xi,innerProps:Sn?null:yo},function(ai,W){var tt,Pn=ai.group,pt=ai.groupOption,$=ai.data,Wi=ai.label,bi=ai.value,qi=$.key;if(Pn){var go,Ui=(go=$.title)!==null&&go!==void 0?go:D(Wi)?Wi.toString():void 0;return Q.createElement("div",{className:Y()(le,"".concat(le,"-group")),title:Ui},Wi!==void 0?Wi:qi)}var Xr=$.disabled,$i=$.title,Vi=$.children,se=$.style,kr=$.className,De=(0,K.Z)($,Di),Wo=(0,qn.Z)(De,nr),ls=Rr(bi),ni="".concat(le,"-option"),Ps=Y()(le,ni,kr,(tt={},(0,O.Z)(tt,"".concat(ni,"-grouped"),pt),(0,O.Z)(tt,"".concat(ni,"-active"),pi===W&&!Xr),(0,O.Z)(tt,"".concat(ni,"-disabled"),Xr),(0,O.Z)(tt,"".concat(ni,"-selected"),ls),tt)),Is=Co(ai),Js=!yn||typeof yn=="function"||ls,Us=typeof Is=="number"?Is:Is||bi,oa=D(Us)?Us.toString():void 0;return $i!==void 0&&(oa=$i),Q.createElement("div",(0,y.Z)({},(0,Lt.Z)(Wo),Sn?{}:Br(ai,W),{"aria-selected":ls,className:Ps,title:oa,onMouseMove:function(){pi===W||Xr||Re(W)},onClick:function(){Xr||je(bi)},style:se}),Q.createElement("div",{className:"".concat(ni,"-content")},Us),Q.isValidElement(yn)||ls,Js&&Q.createElement(ft,{className:"".concat(le,"-option-state"),customizeIcon:yn,customizeIconProps:{isSelected:ls}},ls?"\u2713":null))}))},er=Q.forwardRef(fr);er.displayName="OptionList";var Gr=er;function Zr(oe){var Ft=oe.mode,qe=oe.options,xn=oe.children,Gn=oe.backfill,kn=oe.allowClear,ne=oe.placeholder,dn=oe.getInputElement,Fn=oe.showSearch,hi=oe.onSearch,Me=oe.defaultOpen,In=oe.autoFocus,be=oe.labelInValue,$e=oe.value,He=oe.inputValue,Le=oe.optionLabelProp,tn=isMultiple(Ft),Je=Fn!==void 0?Fn:tn||Ft==="combobox",yn=qe||convertChildrenToData(xn);if(warning(Ft!=="tags"||yn.every(function(xi){return!xi.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Ft==="tags"||Ft==="combobox"){var bn=yn.some(function(xi){return xi.options?xi.options.some(function(ir){return typeof("value"in ir?ir.value:ir.key)=="number"}):typeof("value"in xi?xi.value:xi.key)=="number"});warning(!bn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Ft!=="combobox"||!Le,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Ft==="combobox"||!Gn,"`backfill` only works with `combobox` mode."),warning(Ft==="combobox"||!dn,"`getInputElement` only work with `combobox` mode."),noteOnce(Ft!=="combobox"||!dn||!kn||!ne,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),hi&&!Je&&Ft!=="combobox"&&Ft!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Me||In,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),$e!=null){var di=toArray($e);warning(!be||di.every(function(xi){return _typeof(xi)==="object"&&("key"in xi||"value"in xi)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!tn||Array.isArray($e),"`value` should be array when `mode` is `multiple` or `tags`")}if(xn){var Sn=null;toNodeArray(xn).some(function(xi){if(!React.isValidElement(xi)||!xi.type)return!1;var ir=xi,Mi=ir.type;if(Mi.isSelectOption)return!1;if(Mi.isSelectOptGroup){var le=toNodeArray(xi.props.children).every(function(mr){return!React.isValidElement(mr)||!xi.type||mr.type.isSelectOption?!0:(Sn=mr.type,!1)});return!le}return Sn=Mi,!0}),Sn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Sn.displayName||Sn.name||Sn,"`.")),warning(He===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function mo(oe,Ft){if(oe){var qe=function xn(Gn){for(var kn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ne=0;ne<Gn.length;ne++){var dn=Gn[ne];if(dn[Ft==null?void 0:Ft.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!kn&&Array.isArray(dn[Ft==null?void 0:Ft.options])&&xn(dn[Ft==null?void 0:Ft.options],!0))break}};qe(oe)}}var Ei=null,No=["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"],Ir=["inputValue"];function Gi(oe){return!oe||(0,I.Z)(oe)!=="object"}var Jn=Q.forwardRef(function(oe,Ft){var qe=oe.id,xn=oe.mode,Gn=oe.prefixCls,kn=Gn===void 0?"rc-select":Gn,ne=oe.backfill,dn=oe.fieldNames,Fn=oe.inputValue,hi=oe.searchValue,Me=oe.onSearch,In=oe.autoClearSearchValue,be=In===void 0?!0:In,$e=oe.onSelect,He=oe.onDeselect,Le=oe.dropdownMatchSelectWidth,tn=Le===void 0?!0:Le,Je=oe.filterOption,yn=oe.filterSort,bn=oe.optionFilterProp,di=oe.optionLabelProp,Sn=oe.options,xi=oe.children,ir=oe.defaultActiveFirstOption,Mi=oe.menuItemSelectedIcon,le=oe.virtual,mr=oe.direction,Or=oe.listHeight,zr=Or===void 0?200:Or,Yr=oe.listItemHeight,dr=Yr===void 0?20:Yr,Er=oe.value,Pi=oe.defaultValue,pi=oe.labelInValue,ur=oe.onChange,Re=(0,K.Z)(oe,No),Rr=(0,Ve.ZP)(qe),je=qt(xn),nr=!!(!Sn&&xi),Co=Q.useMemo(function(){return Je===void 0&&xn==="combobox"?!1:Je},[Je,xn]),Br=Q.useMemo(function(){return T(dn,nr)},[JSON.stringify(dn),nr]),rs=(0,dt.Z)("",{value:hi!==void 0?hi:Fn,postState:function(io){return io||""}}),yo=(0,_.Z)(rs,2),ai=yo[0],W=yo[1],tt=Cn(Sn,xi,Br,bn,di),Pn=tt.valueOptions,pt=tt.labelOptions,$=tt.options,Wi=Q.useCallback(function(br){var io=ae(br);return io.map(function(eo){var ri,Cs,Zo,ga,sl;if(Gi(eo))ri=eo;else{var Cl;Zo=eo.key,Cs=eo.label,ri=(Cl=eo.value)!==null&&Cl!==void 0?Cl:Zo}var Wn=Pn.get(ri);if(Wn){var us;if(Cs===void 0&&(Cs=Wn==null?void 0:Wn[di||Br.label]),Zo===void 0&&(Zo=(us=Wn==null?void 0:Wn.key)!==null&&us!==void 0?us:ri),ga=Wn==null?void 0:Wn.disabled,sl=Wn==null?void 0:Wn.title,0)var Fs}return{label:Cs,value:ri,key:Zo,disabled:ga,title:sl}})},[Br,di,Pn]),bi=(0,dt.Z)(Pi,{value:Er}),qi=(0,_.Z)(bi,2),go=qi[0],Ui=qi[1],Xr=Q.useMemo(function(){var br,io=Wi(go);return xn==="combobox"&&we((br=io[0])===null||br===void 0?void 0:br.value)?[]:io},[go,Wi,xn]),$i=Ge(Xr,Pn),Vi=(0,_.Z)($i,2),se=Vi[0],kr=Vi[1],De=Q.useMemo(function(){if(!xn&&se.length===1){var br=se[0];if(br.value===null&&(br.label===null||br.label===void 0))return[]}return se.map(function(io){var eo;return(0,B.Z)((0,B.Z)({},io),{},{label:(eo=io.label)!==null&&eo!==void 0?eo:io.value})})},[xn,se]),Wo=Q.useMemo(function(){return new Set(se.map(function(br){return br.value}))},[se]);Q.useEffect(function(){if(xn==="combobox"){var br,io=(br=se[0])===null||br===void 0?void 0:br.value;W(ge(io)?String(io):"")}},[se]);var ls=En(function(br,io){var eo,ri=io!=null?io:br;return eo={},(0,O.Z)(eo,Br.value,br),(0,O.Z)(eo,Br.label,ri),eo}),ni=Q.useMemo(function(){if(xn!=="tags")return $;var br=(0,N.Z)($),io=function(ri){return Pn.has(ri)};return(0,N.Z)(se).sort(function(eo,ri){return eo.value<ri.value?-1:1}).forEach(function(eo){var ri=eo.value;io(ri)||br.push(ls(ri,eo.label))}),br},[ls,$,Pn,se,xn]),Ps=Ce(ni,Br,ai,Co,bn),Is=Q.useMemo(function(){return xn!=="tags"||!ai||Ps.some(function(br){return br[bn||"value"]===ai})||Ps.some(function(br){return br[Br.value]===ai})?Ps:[ls(ai)].concat((0,N.Z)(Ps))},[ls,bn,xn,Ps,ai,Br]),Js=Q.useMemo(function(){return yn?(0,N.Z)(Is).sort(function(br,io){return yn(br,io)}):Is},[Is,yn]),Us=Q.useMemo(function(){return St(Js,{fieldNames:Br,childrenAsData:nr})},[Js,Br,nr]),oa=function(io){var eo=Wi(io);if(Ui(eo),ur&&(eo.length!==se.length||eo.some(function(Zo,ga){var sl;return((sl=se[ga])===null||sl===void 0?void 0:sl.value)!==(Zo==null?void 0:Zo.value)}))){var ri=pi?eo:eo.map(function(Zo){return Zo.value}),Cs=eo.map(function(Zo){return fe(kr(Zo.value))});ur(je?ri:ri[0],je?Cs:Cs[0])}},Qa=Q.useState(null),da=(0,_.Z)(Qa,2),Jr=da[0],vs=da[1],es=Q.useState(0),ke=(0,_.Z)(es,2),ys=ke[0],Su=ke[1],Dl=ir!==void 0?ir:xn!=="combobox",lo=Q.useCallback(function(br,io){var eo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ri=eo.source,Cs=ri===void 0?"keyboard":ri;Su(io),ne&&xn==="combobox"&&br!==null&&Cs==="keyboard"&&vs(String(br))},[ne,xn]),Fo=function(io,eo,ri){var Cs=function(){var Fa,Sr=kr(io);return[pi?{label:Sr==null?void 0:Sr[Br.label],value:io,key:(Fa=Sr==null?void 0:Sr.key)!==null&&Fa!==void 0?Fa:io}:io,fe(Sr)]};if(eo&&$e){var Zo=Cs(),ga=(0,_.Z)(Zo,2),sl=ga[0],Cl=ga[1];$e(sl,Cl)}else if(!eo&&He&&ri!=="clear"){var Wn=Cs(),us=(0,_.Z)(Wn,2),Fs=us[0],qa=us[1];He(Fs,qa)}},ws=En(function(br,io){var eo,ri=je?io.selected:!0;ri?eo=je?[].concat((0,N.Z)(se),[br]):[br]:eo=se.filter(function(Cs){return Cs.value!==br}),oa(eo),Fo(br,ri),xn==="combobox"?vs(""):(!qt||be)&&(W(""),vs(""))}),Ko=function(io,eo){oa(io);var ri=eo.type,Cs=eo.values;(ri==="remove"||ri==="clear")&&Cs.forEach(function(Zo){Fo(Zo.value,!1,ri)})},Ur=function(io,eo){if(W(io),vs(null),eo.source==="submit"){var ri=(io||"").trim();if(ri){var Cs=Array.from(new Set([].concat((0,N.Z)(Wo),[ri])));oa(Cs),Fo(ri,!0),W("")}return}eo.source!=="blur"&&(xn==="combobox"&&oa(io),Me==null||Me(io))},uo=function(io){var eo=io;xn!=="tags"&&(eo=io.map(function(Cs){var Zo=pt.get(Cs);return Zo==null?void 0:Zo.value}).filter(function(Cs){return Cs!==void 0}));var ri=Array.from(new Set([].concat((0,N.Z)(Wo),(0,N.Z)(eo))));oa(ri),ri.forEach(function(Cs){Fo(Cs,!0)})},Pa=Q.useMemo(function(){var br=le!==!1&&tn!==!1;return(0,B.Z)((0,B.Z)({},tt),{},{flattenOptions:Us,onActiveValue:lo,defaultActiveFirstOption:Dl,onSelect:ws,menuItemSelectedIcon:Mi,rawValues:Wo,fieldNames:Br,virtual:br,direction:mr,listHeight:zr,listItemHeight:dr,childrenAsData:nr})},[tt,Us,lo,Dl,ws,Mi,Wo,Br,le,tn,zr,dr,nr]);return Q.createElement(ui.Provider,{value:Pa},Q.createElement(ve,(0,y.Z)({},Re,{id:Rr,prefixCls:kn,ref:Ft,omitDomProps:Ir,mode:xn,displayValues:De,onDisplayValuesChange:Ko,direction:mr,searchValue:ai,onSearch:Ur,autoClearSearchValue:be,onSearchSplit:uo,dropdownMatchSelectWidth:tn,OptionList:Gr,emptyOptions:!Us.length,activeValue:Jr,activeDescendantId:"".concat(Rr,"_list_").concat(ys)})))}),te=Jn;te.Option=Si,te.OptGroup=On;var Nn=te,Bn=Nn},9296:function(V,w,h){"use strict";h.r(w),h.d(w,{ResizableTextArea:function(){return ie},default:function(){return we}});var y=h(16378),N=h(35227),O=h(78772),B=h(42066),_=h(10859),K=h(61206),I=h(65093),dt=h(92310),rt=h.n(dt),Q=h(93681),kt=h(5643),Y=h(18929),Yt=h(59301),At=h(29301),vt=h(34280),Tt=h(16089),Mt=`
|
|
|
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;
|
|
|
`,ft=["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"],It={},$t;function Nt(pe){var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,zt=pe.getAttribute("id")||pe.getAttribute("data-reactid")||pe.getAttribute("name");if(ln&&It[zt])return It[zt];var nt=window.getComputedStyle(pe),it=nt.getPropertyValue("box-sizing")||nt.getPropertyValue("-moz-box-sizing")||nt.getPropertyValue("-webkit-box-sizing"),Te=parseFloat(nt.getPropertyValue("padding-bottom"))+parseFloat(nt.getPropertyValue("padding-top")),Ae=parseFloat(nt.getPropertyValue("border-bottom-width"))+parseFloat(nt.getPropertyValue("border-top-width")),de=ft.map(function(vn){return"".concat(vn,":").concat(nt.getPropertyValue(vn))}).join(";"),en={sizingStyle:de,paddingSize:Te,borderSize:Ae,boxSizing:it};return ln&&zt&&(It[zt]=en),en}function Ut(pe){var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;$t||($t=document.createElement("textarea"),$t.setAttribute("tab-index","-1"),$t.setAttribute("aria-hidden","true"),document.body.appendChild($t)),pe.getAttribute("wrap")?$t.setAttribute("wrap",pe.getAttribute("wrap")):$t.removeAttribute("wrap");var it=Nt(pe,ln),Te=it.paddingSize,Ae=it.borderSize,de=it.boxSizing,en=it.sizingStyle;$t.setAttribute("style","".concat(en,";").concat(Mt)),$t.value=pe.value||pe.placeholder||"";var vn=void 0,Xn=void 0,gn,_n=$t.scrollHeight;if(de==="border-box"?_n+=Ae:de==="content-box"&&(_n-=Te),zt!==null||nt!==null){$t.value=" ";var $n=$t.scrollHeight-Te;zt!==null&&(vn=$n*zt,de==="border-box"&&(vn=vn+Te+Ae),_n=Math.max(vn,_n)),nt!==null&&(Xn=$n*nt,de==="border-box"&&(Xn=Xn+Te+Ae),gn=_n>Xn?"":"hidden",_n=Math.min(Xn,_n))}var fn={height:_n,overflowY:gn,resize:"none"};return vn&&(fn.minHeight=vn),Xn&&(fn.maxHeight=Xn),fn}var et=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Rt=0,Lt=1,Kt=2,Qt=Yt.forwardRef(function(pe,ln){var zt=pe,nt=zt.prefixCls,it=zt.onPressEnter,Te=zt.defaultValue,Ae=zt.value,de=zt.autoSize,en=zt.onResize,vn=zt.className,Xn=zt.style,gn=zt.disabled,_n=zt.onChange,$n=zt.onInternalAutoSize,fn=(0,K.Z)(zt,et),hn=(0,Y.Z)(Te,{value:Ae,postState:function(On){return On!=null?On:""}}),ct=(0,_.Z)(hn,2),L=ct[0],k=ct[1],z=function(On){k(On.target.value),_n==null||_n(On)},G=Yt.useRef();Yt.useImperativeHandle(ln,function(){return{textArea:G.current}});var T=Yt.useMemo(function(){return de&&(0,B.Z)(de)==="object"?[de.minRows,de.maxRows]:[]},[de]),St=(0,_.Z)(T,2),fe=St[0],Ct=St[1],xt=!!de,Dt=function(){try{if(document.activeElement===G.current){var On=G.current,ci=On.selectionStart,Si=On.selectionEnd,vi=On.scrollTop;G.current.setSelectionRange(ci,Si),G.current.scrollTop=vi}}catch(qn){}},qt=Yt.useState(Kt),_t=(0,_.Z)(qt,2),ve=_t[0],Ge=_t[1],Ke=Yt.useState(),Ce=(0,_.Z)(Ke,2),Ve=Ce[0],Qe=Ce[1],Bt=function(){Ge(Rt)};(0,vt.Z)(function(){xt&&Bt()},[Ae,fe,Ct,xt]),(0,vt.Z)(function(){if(ve===Rt)Ge(Lt);else if(ve===Lt){var jn=Ut(G.current,!1,fe,Ct);Ge(Kt),Qe(jn)}else Dt()},[ve]);var xe=Yt.useRef(),ze=function(){Tt.Z.cancel(xe.current)},Ne=function(On){ve===Kt&&(en==null||en(On),de&&(ze(),xe.current=(0,Tt.Z)(function(){Bt()})))};Yt.useEffect(function(){return ze},[]);var Cn=xt?Ve:null,En=(0,N.Z)((0,N.Z)({},Xn),Cn);return(ve===Rt||ve===Lt)&&(En.overflowY="hidden",En.overflowX="hidden"),Yt.createElement(At.Z,{onResize:Ne,disabled:!(de||en)},Yt.createElement("textarea",(0,y.Z)({},fn,{ref:G,style:En,className:rt()(nt,vn,(0,O.Z)({},"".concat(nt,"-disabled"),gn)),disabled:gn,value:L,onChange:z})))}),ie=Qt,yt=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function ae(pe,ln){return(0,I.Z)(pe||"").slice(0,ln).join("")}function Ht(pe,ln,zt,nt){var it=zt;return pe?it=ae(zt,nt):(0,I.Z)(ln||"").length<zt.length&&(0,I.Z)(zt||"").length>nt&&(it=ln),it}var Pe=Yt.forwardRef(function(pe,ln){var zt,nt=pe.defaultValue,it=pe.value,Te=pe.onFocus,Ae=pe.onBlur,de=pe.onChange,en=pe.allowClear,vn=pe.maxLength,Xn=pe.onCompositionStart,gn=pe.onCompositionEnd,_n=pe.suffix,$n=pe.prefixCls,fn=$n===void 0?"rc-textarea":$n,hn=pe.classes,ct=pe.showCount,L=pe.className,k=pe.style,z=pe.disabled,G=pe.hidden,T=pe.classNames,St=pe.styles,fe=pe.onResize,Ct=(0,K.Z)(pe,yt),xt=(0,Y.Z)(nt,{value:it,defaultValue:nt}),Dt=(0,_.Z)(xt,2),qt=Dt[0],_t=Dt[1],ve=(0,Yt.useRef)(null),Ge=Yt.useState(!1),Ke=(0,_.Z)(Ge,2),Ce=Ke[0],Ve=Ke[1],Qe=Yt.useState(!1),Bt=(0,_.Z)(Qe,2),xe=Bt[0],ze=Bt[1],Ne=Yt.useRef(),Cn=Yt.useRef(0),En=Yt.useState(null),jn=(0,_.Z)(En,2),On=jn[0],ci=jn[1],Si=function(){var Gi;(Gi=ve.current)===null||Gi===void 0||Gi.textArea.focus()};(0,Yt.useImperativeHandle)(ln,function(){return{resizableTextArea:ve.current,focus:Si,blur:function(){var Gi;(Gi=ve.current)===null||Gi===void 0||Gi.textArea.blur()}}}),(0,Yt.useEffect)(function(){Ve(function(Ir){return!z&&Ir})},[z]);var vi=Number(vn)>0,qn=function(Gi){ze(!0),Ne.current=qt,Cn.current=Gi.currentTarget.selectionStart,Xn==null||Xn(Gi)},an=function(Gi){ze(!1);var Jn=Gi.currentTarget.value;if(vi){var te,Nn=Cn.current>=vn+1||Cn.current===((te=Ne.current)===null||te===void 0?void 0:te.length);Jn=Ht(Nn,Ne.current,Jn,vn)}Jn!==qt&&(_t(Jn),(0,kt.rJ)(Gi.currentTarget,Gi,de,Jn)),gn==null||gn(Gi)},Ji=function(Gi){var Jn=Gi.target.value;if(!xe&&vi){var te=Gi.target.selectionStart>=vn+1||Gi.target.selectionStart===Jn.length||!Gi.target.selectionStart;Jn=Ht(te,qt,Jn,vn)}_t(Jn),(0,kt.rJ)(Gi.currentTarget,Gi,de,Jn)},ui=function(Gi){var Jn=Ct.onPressEnter,te=Ct.onKeyDown;Gi.key==="Enter"&&Jn&&Jn(Gi),te==null||te(Gi)},lr=function(Gi){Ve(!0),Te==null||Te(Gi)},Di=function(Gi){Ve(!1),Ae==null||Ae(Gi)},D=function(Gi){var Jn;_t(""),Si(),(0,kt.rJ)((Jn=ve.current)===null||Jn===void 0?void 0:Jn.textArea,Gi,de)},fr=(0,kt.D7)(qt);!xe&&vi&&it==null&&(fr=ae(fr,vn));var er=_n,Gr;if(ct){var Zr=(0,I.Z)(fr).length;(0,B.Z)(ct)==="object"?Gr=ct.formatter({value:fr,count:Zr,maxLength:vn}):Gr="".concat(Zr).concat(vi?" / ".concat(vn):""),er=Yt.createElement(Yt.Fragment,null,er,Yt.createElement("span",{className:rt()("".concat(fn,"-data-count"),T==null?void 0:T.count),style:St==null?void 0:St.count},Gr))}var mo=function(Gi){var Jn;fe==null||fe(Gi),(Jn=ve.current)!==null&&Jn!==void 0&&Jn.textArea.style.height&&ci(!0)},Ei=!Ct.autoSize&&!ct&&!en,No=Yt.createElement(Q.BaseInput,{value:fr,allowClear:en,handleReset:D,suffix:er,prefixCls:fn,classes:{affixWrapper:rt()(hn==null?void 0:hn.affixWrapper,(zt={},(0,O.Z)(zt,"".concat(fn,"-show-count"),ct),(0,O.Z)(zt,"".concat(fn,"-textarea-allow-clear"),en),zt))},disabled:z,focused:Ce,className:L,style:(0,N.Z)((0,N.Z)({},k),On&&!Ei?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Gr=="string"?Gr:void 0}},hidden:G,inputElement:Yt.createElement(ie,(0,y.Z)({},Ct,{onKeyDown:ui,onChange:Ji,onFocus:lr,onBlur:Di,onCompositionStart:qn,onCompositionEnd:an,className:T==null?void 0:T.textarea,style:(0,N.Z)((0,N.Z)({},St==null?void 0:St.textarea),{},{resize:k==null?void 0:k.resize}),disabled:z,prefixCls:fn,onResize:mo,ref:ve}))});return No}),ge=Pe,we=ge},39417:function(V,w,h){"use strict";h.d(w,{Z:function(){return Lt}});var y=h(16378),N=h(78772),O=h(61206),B=h(35227),_=h(44202),K=h(86773),I=h(93002),dt=h(82412),rt=h(60845),Q=h(92310),kt=h.n(Q),Y=h(26112),Yt=h(59301),At=h(39378),vt=function(Qt){for(var ie=Qt.prefixCls,yt=Qt.level,ae=Qt.isStart,Ht=Qt.isEnd,Pe="".concat(ie,"-indent-unit"),ge=[],we=0;we<yt;we+=1){var pe;ge.push(Yt.createElement("span",{key:we,className:kt()(Pe,(pe={},(0,N.Z)(pe,"".concat(Pe,"-start"),ae[we]),(0,N.Z)(pe,"".concat(Pe,"-end"),Ht[we]),pe))}))}return Yt.createElement("span",{"aria-hidden":"true",className:"".concat(ie,"-indent")},ge)},Tt=Yt.memo(vt),Mt=h(67841),ft=h(71430),It=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],$t="open",Nt="close",Ut="---",et=function(Kt){(0,dt.Z)(ie,Kt);var Qt=(0,rt.Z)(ie);function ie(){var yt;(0,_.Z)(this,ie);for(var ae=arguments.length,Ht=new Array(ae),Pe=0;Pe<ae;Pe++)Ht[Pe]=arguments[Pe];return yt=Qt.call.apply(Qt,[this].concat(Ht)),yt.state={dragNodeHighlight:!1},yt.selectHandle=void 0,yt.cacheIndent=void 0,yt.onSelectorClick=function(ge){var we=yt.props.context.onNodeClick;we(ge,(0,ft.F)(yt.props)),yt.isSelectable()?yt.onSelect(ge):yt.onCheck(ge)},yt.onSelectorDoubleClick=function(ge){var we=yt.props.context.onNodeDoubleClick;we(ge,(0,ft.F)(yt.props))},yt.onSelect=function(ge){if(!yt.isDisabled()){var we=yt.props.context.onNodeSelect;we(ge,(0,ft.F)(yt.props))}},yt.onCheck=function(ge){if(!yt.isDisabled()){var we=yt.props,pe=we.disableCheckbox,ln=we.checked,zt=yt.props.context.onNodeCheck;if(!(!yt.isCheckable()||pe)){var nt=!ln;zt(ge,(0,ft.F)(yt.props),nt)}}},yt.onMouseEnter=function(ge){var we=yt.props.context.onNodeMouseEnter;we(ge,(0,ft.F)(yt.props))},yt.onMouseLeave=function(ge){var we=yt.props.context.onNodeMouseLeave;we(ge,(0,ft.F)(yt.props))},yt.onContextMenu=function(ge){var we=yt.props.context.onNodeContextMenu;we(ge,(0,ft.F)(yt.props))},yt.onDragStart=function(ge){var we=yt.props.context.onNodeDragStart;ge.stopPropagation(),yt.setState({dragNodeHighlight:!0}),we(ge,(0,I.Z)(yt));try{ge.dataTransfer.setData("text/plain","")}catch(pe){}},yt.onDragEnter=function(ge){var we=yt.props.context.onNodeDragEnter;ge.preventDefault(),ge.stopPropagation(),we(ge,(0,I.Z)(yt))},yt.onDragOver=function(ge){var we=yt.props.context.onNodeDragOver;ge.preventDefault(),ge.stopPropagation(),we(ge,(0,I.Z)(yt))},yt.onDragLeave=function(ge){var we=yt.props.context.onNodeDragLeave;ge.stopPropagation(),we(ge,(0,I.Z)(yt))},yt.onDragEnd=function(ge){var we=yt.props.context.onNodeDragEnd;ge.stopPropagation(),yt.setState({dragNodeHighlight:!1}),we(ge,(0,I.Z)(yt))},yt.onDrop=function(ge){var we=yt.props.context.onNodeDrop;ge.preventDefault(),ge.stopPropagation(),yt.setState({dragNodeHighlight:!1}),we(ge,(0,I.Z)(yt))},yt.onExpand=function(ge){var we=yt.props,pe=we.loading,ln=we.context.onNodeExpand;pe||ln(ge,(0,ft.F)(yt.props))},yt.setSelectHandle=function(ge){yt.selectHandle=ge},yt.getNodeState=function(){var ge=yt.props.expanded;return yt.isLeaf()?null:ge?$t:Nt},yt.hasChildren=function(){var ge=yt.props.eventKey,we=yt.props.context.keyEntities,pe=(0,Mt.Z)(we,ge)||{},ln=pe.children;return!!(ln||[]).length},yt.isLeaf=function(){var ge=yt.props,we=ge.isLeaf,pe=ge.loaded,ln=yt.props.context.loadData,zt=yt.hasChildren();return we===!1?!1:we||!ln&&!zt||ln&&pe&&!zt},yt.isDisabled=function(){var ge=yt.props.disabled,we=yt.props.context.disabled;return!!(we||ge)},yt.isCheckable=function(){var ge=yt.props.checkable,we=yt.props.context.checkable;return!we||ge===!1?!1:we},yt.syncLoadData=function(ge){var we=ge.expanded,pe=ge.loading,ln=ge.loaded,zt=yt.props.context,nt=zt.loadData,it=zt.onNodeLoad;pe||nt&&we&&!yt.isLeaf()&&!yt.hasChildren()&&!ln&&it((0,ft.F)(yt.props))},yt.isDraggable=function(){var ge=yt.props,we=ge.data,pe=ge.context.draggable;return!!(pe&&(!pe.nodeDraggable||pe.nodeDraggable(we)))},yt.renderDragHandler=function(){var ge=yt.props.context,we=ge.draggable,pe=ge.prefixCls;return we!=null&&we.icon?Yt.createElement("span",{className:"".concat(pe,"-draggable-icon")},we.icon):null},yt.renderSwitcherIconDom=function(ge){var we=yt.props.switcherIcon,pe=yt.props.context.switcherIcon,ln=we||pe;return typeof ln=="function"?ln((0,B.Z)((0,B.Z)({},yt.props),{},{isLeaf:ge})):ln},yt.renderSwitcher=function(){var ge=yt.props.expanded,we=yt.props.context.prefixCls;if(yt.isLeaf()){var pe=yt.renderSwitcherIconDom(!0);return pe!==!1?Yt.createElement("span",{className:kt()("".concat(we,"-switcher"),"".concat(we,"-switcher-noop"))},pe):null}var ln=kt()("".concat(we,"-switcher"),"".concat(we,"-switcher_").concat(ge?$t:Nt)),zt=yt.renderSwitcherIconDom(!1);return zt!==!1?Yt.createElement("span",{onClick:yt.onExpand,className:ln},zt):null},yt.renderCheckbox=function(){var ge=yt.props,we=ge.checked,pe=ge.halfChecked,ln=ge.disableCheckbox,zt=yt.props.context.prefixCls,nt=yt.isDisabled(),it=yt.isCheckable();if(!it)return null;var Te=typeof it!="boolean"?it:null;return Yt.createElement("span",{className:kt()("".concat(zt,"-checkbox"),we&&"".concat(zt,"-checkbox-checked"),!we&&pe&&"".concat(zt,"-checkbox-indeterminate"),(nt||ln)&&"".concat(zt,"-checkbox-disabled")),onClick:yt.onCheck},Te)},yt.renderIcon=function(){var ge=yt.props.loading,we=yt.props.context.prefixCls;return Yt.createElement("span",{className:kt()("".concat(we,"-iconEle"),"".concat(we,"-icon__").concat(yt.getNodeState()||"docu"),ge&&"".concat(we,"-icon_loading"))})},yt.renderSelector=function(){var ge=yt.state.dragNodeHighlight,we=yt.props,pe=we.title,ln=pe===void 0?Ut:pe,zt=we.selected,nt=we.icon,it=we.loading,Te=we.data,Ae=yt.props.context,de=Ae.prefixCls,en=Ae.showIcon,vn=Ae.icon,Xn=Ae.loadData,gn=Ae.titleRender,_n=yt.isDisabled(),$n="".concat(de,"-node-content-wrapper"),fn;if(en){var hn=nt||vn;fn=hn?Yt.createElement("span",{className:kt()("".concat(de,"-iconEle"),"".concat(de,"-icon__customize"))},typeof hn=="function"?hn(yt.props):hn):yt.renderIcon()}else Xn&&it&&(fn=yt.renderIcon());var ct;typeof ln=="function"?ct=ln(Te):gn?ct=gn(Te):ct=ln;var L=Yt.createElement("span",{className:"".concat(de,"-title")},ct);return Yt.createElement("span",{ref:yt.setSelectHandle,title:typeof ln=="string"?ln:"",className:kt()("".concat($n),"".concat($n,"-").concat(yt.getNodeState()||"normal"),!_n&&(zt||ge)&&"".concat(de,"-node-selected")),onMouseEnter:yt.onMouseEnter,onMouseLeave:yt.onMouseLeave,onContextMenu:yt.onContextMenu,onClick:yt.onSelectorClick,onDoubleClick:yt.onSelectorDoubleClick},fn,L,yt.renderDropIndicator())},yt.renderDropIndicator=function(){var ge=yt.props,we=ge.disabled,pe=ge.eventKey,ln=yt.props.context,zt=ln.draggable,nt=ln.dropLevelOffset,it=ln.dropPosition,Te=ln.prefixCls,Ae=ln.indent,de=ln.dropIndicatorRender,en=ln.dragOverNodeKey,vn=ln.direction,Xn=!!zt,gn=!we&&Xn&&en===pe,_n=Ae!=null?Ae:yt.cacheIndent;return yt.cacheIndent=Ae,gn?de({dropPosition:it,dropLevelOffset:nt,indent:_n,prefixCls:Te,direction:vn}):null},yt}return(0,K.Z)(ie,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var ae=this.props.selectable,Ht=this.props.context.selectable;return typeof ae=="boolean"?ae:Ht}},{key:"render",value:function(){var ae,Ht=this.props,Pe=Ht.eventKey,ge=Ht.className,we=Ht.style,pe=Ht.dragOver,ln=Ht.dragOverGapTop,zt=Ht.dragOverGapBottom,nt=Ht.isLeaf,it=Ht.isStart,Te=Ht.isEnd,Ae=Ht.expanded,de=Ht.selected,en=Ht.checked,vn=Ht.halfChecked,Xn=Ht.loading,gn=Ht.domRef,_n=Ht.active,$n=Ht.data,fn=Ht.onMouseMove,hn=Ht.selectable,ct=(0,O.Z)(Ht,It),L=this.props.context,k=L.prefixCls,z=L.filterTreeNode,G=L.keyEntities,T=L.dropContainerKey,St=L.dropTargetKey,fe=L.draggingNodeKey,Ct=this.isDisabled(),xt=(0,Y.Z)(ct,{aria:!0,data:!0}),Dt=(0,Mt.Z)(G,Pe)||{},qt=Dt.level,_t=Te[Te.length-1],ve=this.isDraggable(),Ge=!Ct&&ve,Ke=fe===Pe,Ce=hn!==void 0?{"aria-selected":!!hn}:void 0;return Yt.createElement("div",(0,y.Z)({ref:gn,className:kt()(ge,"".concat(k,"-treenode"),(ae={},(0,N.Z)(ae,"".concat(k,"-treenode-disabled"),Ct),(0,N.Z)(ae,"".concat(k,"-treenode-switcher-").concat(Ae?"open":"close"),!nt),(0,N.Z)(ae,"".concat(k,"-treenode-checkbox-checked"),en),(0,N.Z)(ae,"".concat(k,"-treenode-checkbox-indeterminate"),vn),(0,N.Z)(ae,"".concat(k,"-treenode-selected"),de),(0,N.Z)(ae,"".concat(k,"-treenode-loading"),Xn),(0,N.Z)(ae,"".concat(k,"-treenode-active"),_n),(0,N.Z)(ae,"".concat(k,"-treenode-leaf-last"),_t),(0,N.Z)(ae,"".concat(k,"-treenode-draggable"),ve),(0,N.Z)(ae,"dragging",Ke),(0,N.Z)(ae,"drop-target",St===Pe),(0,N.Z)(ae,"drop-container",T===Pe),(0,N.Z)(ae,"drag-over",!Ct&&pe),(0,N.Z)(ae,"drag-over-gap-top",!Ct&&ln),(0,N.Z)(ae,"drag-over-gap-bottom",!Ct&&zt),(0,N.Z)(ae,"filter-node",z&&z((0,ft.F)(this.props))),ae)),style:we,draggable:Ge,"aria-grabbed":Ke,onDragStart:Ge?this.onDragStart:void 0,onDragEnter:ve?this.onDragEnter:void 0,onDragOver:ve?this.onDragOver:void 0,onDragLeave:ve?this.onDragLeave:void 0,onDrop:ve?this.onDrop:void 0,onDragEnd:ve?this.onDragEnd:void 0,onMouseMove:fn},Ce,xt),Yt.createElement(Tt,{prefixCls:k,level:qt,isStart:it,isEnd:Te}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),ie}(Yt.Component),Rt=function(Qt){return Yt.createElement(At.k.Consumer,null,function(ie){return Yt.createElement(et,(0,y.Z)({},Qt,{context:ie}))})};Rt.displayName="TreeNode",Rt.isTreeNode=1;var Lt=Rt},39378:function(V,w,h){"use strict";h.d(w,{k:function(){return N}});var y=h(59301),N=y.createContext(null)},48039:function(V,w,h){"use strict";h.d(w,{O:function(){return Lt.Z},Z:function(){return L}});var y=h(16378),N=h(78772),O=h(42066),B=h(35227),_=h(65093),K=h(44202),I=h(86773),dt=h(93002),rt=h(82412),Q=h(60845),kt=h(92310),Y=h.n(kt),Yt=h(10228),At=h(26112),vt=h(48736),Tt=h(59301),Mt=h(39378);function ft(k){var z=k.dropPosition,G=k.dropLevelOffset,T=k.indent,St={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(z){case-1:St.top=0,St.left=-G*T;break;case 1:St.bottom=0,St.left=-G*T;break;case 0:St.bottom=0,St.left=T;break}return Tt.createElement("div",{style:St})}function It(k){if(k==null)throw new TypeError("Cannot destructure "+k)}var $t=h(10859),Nt=h(61206),Ut=h(34280),et=h(50030),Rt=h(77900),Lt=h(39417);function Kt(k,z){var G=Tt.useState(!1),T=(0,$t.Z)(G,2),St=T[0],fe=T[1];Tt.useLayoutEffect(function(){if(St)return k(),function(){z()}},[St]),Tt.useLayoutEffect(function(){return fe(!0),function(){fe(!1)}},[])}var Qt=h(71430),ie=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],yt=function(z,G){var T=z.className,St=z.style,fe=z.motion,Ct=z.motionNodes,xt=z.motionType,Dt=z.onMotionStart,qt=z.onMotionEnd,_t=z.active,ve=z.treeNodeRequiredProps,Ge=(0,Nt.Z)(z,ie),Ke=Tt.useState(!0),Ce=(0,$t.Z)(Ke,2),Ve=Ce[0],Qe=Ce[1],Bt=Tt.useContext(Mt.k),xe=Bt.prefixCls,ze=Ct&&xt!=="hide";(0,Ut.Z)(function(){Ct&&ze!==Ve&&Qe(ze)},[Ct]);var Ne=function(){Ct&&Dt()},Cn=Tt.useRef(!1),En=function(){Ct&&!Cn.current&&(Cn.current=!0,qt())};Kt(Ne,En);var jn=function(ci){ze===ci&&En()};return Ct?Tt.createElement(Rt.default,(0,y.Z)({ref:G,visible:Ve},fe,{motionAppear:xt==="show",onVisibleChanged:jn}),function(On,ci){var Si=On.className,vi=On.style;return Tt.createElement("div",{ref:ci,className:Y()("".concat(xe,"-treenode-motion"),Si),style:vi},Ct.map(function(qn){var an=(0,y.Z)({},(It(qn.data),qn.data)),Ji=qn.title,ui=qn.key,lr=qn.isStart,Di=qn.isEnd;delete an.children;var D=(0,Qt.H8)(ui,ve);return Tt.createElement(Lt.Z,(0,y.Z)({},an,D,{title:Ji,active:_t,data:qn.data,key:ui,isStart:lr,isEnd:Di}))}))}):Tt.createElement(Lt.Z,(0,y.Z)({domRef:G,className:T,style:St},Ge,{active:_t}))};yt.displayName="MotionTreeNode";var ae=Tt.forwardRef(yt),Ht=ae;function Pe(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],G=k.length,T=z.length;if(Math.abs(G-T)!==1)return{add:!1,key:null};function St(fe,Ct){var xt=new Map;fe.forEach(function(qt){xt.set(qt,!0)});var Dt=Ct.filter(function(qt){return!xt.has(qt)});return Dt.length===1?Dt[0]:null}return G<T?{add:!0,key:St(k,z)}:{add:!1,key:St(z,k)}}function ge(k,z,G){var T=k.findIndex(function(xt){return xt.key===G}),St=k[T+1],fe=z.findIndex(function(xt){return xt.key===G});if(St){var Ct=z.findIndex(function(xt){return xt.key===St.key});return z.slice(fe+1,Ct)}return z.slice(fe+1)}var we=["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"],pe={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ln=function(){},zt="RC_TREE_MOTION_".concat(Math.random()),nt={key:zt},it={key:zt,level:0,index:0,pos:"0",node:nt,nodes:[nt]},Te={parent:null,children:[],pos:it.pos,data:nt,title:null,key:zt,isStart:[],isEnd:[]};function Ae(k,z,G,T){return z===!1||!G?k:k.slice(0,Math.ceil(G/T)+1)}function de(k){var z=k.key,G=k.pos;return(0,Qt.km)(z,G)}function en(k){for(var z=String(k.data.key),G=k;G.parent;)G=G.parent,z="".concat(G.data.key," > ").concat(z);return z}var vn=Tt.forwardRef(function(k,z){var G=k.prefixCls,T=k.data,St=k.selectable,fe=k.checkable,Ct=k.expandedKeys,xt=k.selectedKeys,Dt=k.checkedKeys,qt=k.loadedKeys,_t=k.loadingKeys,ve=k.halfCheckedKeys,Ge=k.keyEntities,Ke=k.disabled,Ce=k.dragging,Ve=k.dragOverNodeKey,Qe=k.dropPosition,Bt=k.motion,xe=k.height,ze=k.itemHeight,Ne=k.virtual,Cn=k.focusable,En=k.activeItem,jn=k.focused,On=k.tabIndex,ci=k.onKeyDown,Si=k.onFocus,vi=k.onBlur,qn=k.onActiveChange,an=k.onListChangeStart,Ji=k.onListChangeEnd,ui=(0,Nt.Z)(k,we),lr=Tt.useRef(null),Di=Tt.useRef(null);Tt.useImperativeHandle(z,function(){return{scrollTo:function(In){lr.current.scrollTo(In)},getIndentWidth:function(){return Di.current.offsetWidth}}});var D=Tt.useState(Ct),fr=(0,$t.Z)(D,2),er=fr[0],Gr=fr[1],Zr=Tt.useState(T),mo=(0,$t.Z)(Zr,2),Ei=mo[0],No=mo[1],Ir=Tt.useState(T),Gi=(0,$t.Z)(Ir,2),Jn=Gi[0],te=Gi[1],Nn=Tt.useState([]),Bn=(0,$t.Z)(Nn,2),oe=Bn[0],Ft=Bn[1],qe=Tt.useState(null),xn=(0,$t.Z)(qe,2),Gn=xn[0],kn=xn[1],ne=Tt.useRef(T);ne.current=T;function dn(){var Me=ne.current;No(Me),te(Me),Ft([]),kn(null),Ji()}(0,Ut.Z)(function(){Gr(Ct);var Me=Pe(er,Ct);if(Me.key!==null)if(Me.add){var In=Ei.findIndex(function(Je){var yn=Je.key;return yn===Me.key}),be=Ae(ge(Ei,T,Me.key),Ne,xe,ze),$e=Ei.slice();$e.splice(In+1,0,Te),te($e),Ft(be),kn("show")}else{var He=T.findIndex(function(Je){var yn=Je.key;return yn===Me.key}),Le=Ae(ge(T,Ei,Me.key),Ne,xe,ze),tn=T.slice();tn.splice(He+1,0,Te),te(tn),Ft(Le),kn("hide")}else Ei!==T&&(No(T),te(T))},[Ct,T]),Tt.useEffect(function(){Ce||dn()},[Ce]);var Fn=Bt?Jn:T,hi={expandedKeys:Ct,selectedKeys:xt,loadedKeys:qt,loadingKeys:_t,checkedKeys:Dt,halfCheckedKeys:ve,dragOverNodeKey:Ve,dropPosition:Qe,keyEntities:Ge};return Tt.createElement(Tt.Fragment,null,jn&&En&&Tt.createElement("span",{style:pe,"aria-live":"assertive"},en(En)),Tt.createElement("div",null,Tt.createElement("input",{style:pe,disabled:Cn===!1||Ke,tabIndex:Cn!==!1?On:null,onKeyDown:ci,onFocus:Si,onBlur:vi,value:"",onChange:ln,"aria-label":"for screen reader"})),Tt.createElement("div",{className:"".concat(G,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},Tt.createElement("div",{className:"".concat(G,"-indent")},Tt.createElement("div",{ref:Di,className:"".concat(G,"-indent-unit")}))),Tt.createElement(et.Z,(0,y.Z)({},ui,{data:Fn,itemKey:de,height:xe,fullHeight:!1,virtual:Ne,itemHeight:ze,prefixCls:"".concat(G,"-list"),ref:lr,onVisibleChange:function(In,be){var $e=new Set(In),He=be.filter(function(Le){return!$e.has(Le)});He.some(function(Le){return de(Le)===zt})&&dn()}}),function(Me){var In=Me.pos,be=(0,y.Z)({},(It(Me.data),Me.data)),$e=Me.title,He=Me.key,Le=Me.isStart,tn=Me.isEnd,Je=(0,Qt.km)(He,In);delete be.key,delete be.children;var yn=(0,Qt.H8)(Je,hi);return Tt.createElement(Ht,(0,y.Z)({},be,yn,{title:$e,active:!!En&&He===En.key,pos:In,data:Me.data,isStart:Le,isEnd:tn,motion:Bt,motionNodes:He===zt?oe:null,motionType:Gn,onMotionStart:an,onMotionEnd:dn,treeNodeRequiredProps:hi,onMouseMove:function(){qn(null)}}))}))});vn.displayName="NodeList";var Xn=vn,gn=h(35654),_n=h(90782),$n=h(67841),fn=10,hn=function(k){(0,rt.Z)(G,k);var z=(0,Q.Z)(G);function G(){var T;(0,K.Z)(this,G);for(var St=arguments.length,fe=new Array(St),Ct=0;Ct<St;Ct++)fe[Ct]=arguments[Ct];return T=z.call.apply(z,[this].concat(fe)),T.destroyed=!1,T.delayedDragEnterLogic=void 0,T.loadingRetryTimes={},T.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,Qt.w$)()},T.dragStartMousePosition=null,T.dragNode=void 0,T.currentMouseOverDroppableNodeKey=null,T.listRef=Tt.createRef(),T.onNodeDragStart=function(xt,Dt){var qt=T.state,_t=qt.expandedKeys,ve=qt.keyEntities,Ge=T.props.onDragStart,Ke=Dt.props.eventKey;T.dragNode=Dt,T.dragStartMousePosition={x:xt.clientX,y:xt.clientY};var Ce=(0,gn._5)(_t,Ke);T.setState({draggingNodeKey:Ke,dragChildrenKeys:(0,gn.wA)(Ke,ve),indent:T.listRef.current.getIndentWidth()}),T.setExpandedKeys(Ce),window.addEventListener("dragend",T.onWindowDragEnd),Ge==null||Ge({event:xt,node:(0,Qt.F)(Dt.props)})},T.onNodeDragEnter=function(xt,Dt){var qt=T.state,_t=qt.expandedKeys,ve=qt.keyEntities,Ge=qt.dragChildrenKeys,Ke=qt.flattenNodes,Ce=qt.indent,Ve=T.props,Qe=Ve.onDragEnter,Bt=Ve.onExpand,xe=Ve.allowDrop,ze=Ve.direction,Ne=Dt.props,Cn=Ne.pos,En=Ne.eventKey,jn=(0,dt.Z)(T),On=jn.dragNode;if(T.currentMouseOverDroppableNodeKey!==En&&(T.currentMouseOverDroppableNodeKey=En),!On){T.resetDragState();return}var ci=(0,gn.OM)(xt,On,Dt,Ce,T.dragStartMousePosition,xe,Ke,ve,_t,ze),Si=ci.dropPosition,vi=ci.dropLevelOffset,qn=ci.dropTargetKey,an=ci.dropContainerKey,Ji=ci.dropTargetPos,ui=ci.dropAllowed,lr=ci.dragOverNodeKey;if(Ge.indexOf(qn)!==-1||!ui){T.resetDragState();return}if(T.delayedDragEnterLogic||(T.delayedDragEnterLogic={}),Object.keys(T.delayedDragEnterLogic).forEach(function(Di){clearTimeout(T.delayedDragEnterLogic[Di])}),On.props.eventKey!==Dt.props.eventKey&&(xt.persist(),T.delayedDragEnterLogic[Cn]=window.setTimeout(function(){if(T.state.draggingNodeKey!==null){var Di=(0,_.Z)(_t),D=(0,$n.Z)(ve,Dt.props.eventKey);D&&(D.children||[]).length&&(Di=(0,gn.L0)(_t,Dt.props.eventKey)),"expandedKeys"in T.props||T.setExpandedKeys(Di),Bt==null||Bt(Di,{node:(0,Qt.F)(Dt.props),expanded:!0,nativeEvent:xt.nativeEvent})}},800)),On.props.eventKey===qn&&vi===0){T.resetDragState();return}T.setState({dragOverNodeKey:lr,dropPosition:Si,dropLevelOffset:vi,dropTargetKey:qn,dropContainerKey:an,dropTargetPos:Ji,dropAllowed:ui}),Qe==null||Qe({event:xt,node:(0,Qt.F)(Dt.props),expandedKeys:_t})},T.onNodeDragOver=function(xt,Dt){var qt=T.state,_t=qt.dragChildrenKeys,ve=qt.flattenNodes,Ge=qt.keyEntities,Ke=qt.expandedKeys,Ce=qt.indent,Ve=T.props,Qe=Ve.onDragOver,Bt=Ve.allowDrop,xe=Ve.direction,ze=(0,dt.Z)(T),Ne=ze.dragNode;if(Ne){var Cn=(0,gn.OM)(xt,Ne,Dt,Ce,T.dragStartMousePosition,Bt,ve,Ge,Ke,xe),En=Cn.dropPosition,jn=Cn.dropLevelOffset,On=Cn.dropTargetKey,ci=Cn.dropContainerKey,Si=Cn.dropAllowed,vi=Cn.dropTargetPos,qn=Cn.dragOverNodeKey;_t.indexOf(On)!==-1||!Si||(Ne.props.eventKey===On&&jn===0?T.state.dropPosition===null&&T.state.dropLevelOffset===null&&T.state.dropTargetKey===null&&T.state.dropContainerKey===null&&T.state.dropTargetPos===null&&T.state.dropAllowed===!1&&T.state.dragOverNodeKey===null||T.resetDragState():En===T.state.dropPosition&&jn===T.state.dropLevelOffset&&On===T.state.dropTargetKey&&ci===T.state.dropContainerKey&&vi===T.state.dropTargetPos&&Si===T.state.dropAllowed&&qn===T.state.dragOverNodeKey||T.setState({dropPosition:En,dropLevelOffset:jn,dropTargetKey:On,dropContainerKey:ci,dropTargetPos:vi,dropAllowed:Si,dragOverNodeKey:qn}),Qe==null||Qe({event:xt,node:(0,Qt.F)(Dt.props)}))}},T.onNodeDragLeave=function(xt,Dt){T.currentMouseOverDroppableNodeKey===Dt.props.eventKey&&!xt.currentTarget.contains(xt.relatedTarget)&&(T.resetDragState(),T.currentMouseOverDroppableNodeKey=null);var qt=T.props.onDragLeave;qt==null||qt({event:xt,node:(0,Qt.F)(Dt.props)})},T.onWindowDragEnd=function(xt){T.onNodeDragEnd(xt,null,!0),window.removeEventListener("dragend",T.onWindowDragEnd)},T.onNodeDragEnd=function(xt,Dt){var qt=T.props.onDragEnd;T.setState({dragOverNodeKey:null}),T.cleanDragState(),qt==null||qt({event:xt,node:(0,Qt.F)(Dt.props)}),T.dragNode=null,window.removeEventListener("dragend",T.onWindowDragEnd)},T.onNodeDrop=function(xt,Dt){var qt,_t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ve=T.state,Ge=ve.dragChildrenKeys,Ke=ve.dropPosition,Ce=ve.dropTargetKey,Ve=ve.dropTargetPos,Qe=ve.dropAllowed;if(Qe){var Bt=T.props.onDrop;if(T.setState({dragOverNodeKey:null}),T.cleanDragState(),Ce!==null){var xe=(0,B.Z)((0,B.Z)({},(0,Qt.H8)(Ce,T.getTreeNodeRequiredProps())),{},{active:((qt=T.getActiveItem())===null||qt===void 0?void 0:qt.key)===Ce,data:(0,$n.Z)(T.state.keyEntities,Ce).node}),ze=Ge.indexOf(Ce)!==-1;(0,vt.ZP)(!ze,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Ne=(0,gn.yx)(Ve),Cn={event:xt,node:(0,Qt.F)(xe),dragNode:T.dragNode?(0,Qt.F)(T.dragNode.props):null,dragNodesKeys:[T.dragNode.props.eventKey].concat(Ge),dropToGap:Ke!==0,dropPosition:Ke+Number(Ne[Ne.length-1])};_t||Bt==null||Bt(Cn),T.dragNode=null}}},T.cleanDragState=function(){var xt=T.state.draggingNodeKey;xt!==null&&T.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),T.dragStartMousePosition=null,T.currentMouseOverDroppableNodeKey=null},T.triggerExpandActionExpand=function(xt,Dt){var qt=T.state,_t=qt.expandedKeys,ve=qt.flattenNodes,Ge=Dt.expanded,Ke=Dt.key,Ce=Dt.isLeaf;if(!(Ce||xt.shiftKey||xt.metaKey||xt.ctrlKey)){var Ve=ve.filter(function(Bt){return Bt.key===Ke})[0],Qe=(0,Qt.F)((0,B.Z)((0,B.Z)({},(0,Qt.H8)(Ke,T.getTreeNodeRequiredProps())),{},{data:Ve.data}));T.setExpandedKeys(Ge?(0,gn._5)(_t,Ke):(0,gn.L0)(_t,Ke)),T.onNodeExpand(xt,Qe)}},T.onNodeClick=function(xt,Dt){var qt=T.props,_t=qt.onClick,ve=qt.expandAction;ve==="click"&&T.triggerExpandActionExpand(xt,Dt),_t==null||_t(xt,Dt)},T.onNodeDoubleClick=function(xt,Dt){var qt=T.props,_t=qt.onDoubleClick,ve=qt.expandAction;ve==="doubleClick"&&T.triggerExpandActionExpand(xt,Dt),_t==null||_t(xt,Dt)},T.onNodeSelect=function(xt,Dt){var qt=T.state.selectedKeys,_t=T.state,ve=_t.keyEntities,Ge=_t.fieldNames,Ke=T.props,Ce=Ke.onSelect,Ve=Ke.multiple,Qe=Dt.selected,Bt=Dt[Ge.key],xe=!Qe;xe?Ve?qt=(0,gn.L0)(qt,Bt):qt=[Bt]:qt=(0,gn._5)(qt,Bt);var ze=qt.map(function(Ne){var Cn=(0,$n.Z)(ve,Ne);return Cn?Cn.node:null}).filter(function(Ne){return Ne});T.setUncontrolledState({selectedKeys:qt}),Ce==null||Ce(qt,{event:"select",selected:xe,node:Dt,selectedNodes:ze,nativeEvent:xt.nativeEvent})},T.onNodeCheck=function(xt,Dt,qt){var _t=T.state,ve=_t.keyEntities,Ge=_t.checkedKeys,Ke=_t.halfCheckedKeys,Ce=T.props,Ve=Ce.checkStrictly,Qe=Ce.onCheck,Bt=Dt.key,xe,ze={event:"check",node:Dt,checked:qt,nativeEvent:xt.nativeEvent};if(Ve){var Ne=qt?(0,gn.L0)(Ge,Bt):(0,gn._5)(Ge,Bt),Cn=(0,gn._5)(Ke,Bt);xe={checked:Ne,halfChecked:Cn},ze.checkedNodes=Ne.map(function(vi){return(0,$n.Z)(ve,vi)}).filter(function(vi){return vi}).map(function(vi){return vi.node}),T.setUncontrolledState({checkedKeys:Ne})}else{var En=(0,_n.S)([].concat((0,_.Z)(Ge),[Bt]),!0,ve),jn=En.checkedKeys,On=En.halfCheckedKeys;if(!qt){var ci=new Set(jn);ci.delete(Bt);var Si=(0,_n.S)(Array.from(ci),{checked:!1,halfCheckedKeys:On},ve);jn=Si.checkedKeys,On=Si.halfCheckedKeys}xe=jn,ze.checkedNodes=[],ze.checkedNodesPositions=[],ze.halfCheckedKeys=On,jn.forEach(function(vi){var qn=(0,$n.Z)(ve,vi);if(qn){var an=qn.node,Ji=qn.pos;ze.checkedNodes.push(an),ze.checkedNodesPositions.push({node:an,pos:Ji})}}),T.setUncontrolledState({checkedKeys:jn},!1,{halfCheckedKeys:On})}Qe==null||Qe(xe,ze)},T.onNodeLoad=function(xt){var Dt=xt.key,qt=new Promise(function(_t,ve){T.setState(function(Ge){var Ke=Ge.loadedKeys,Ce=Ke===void 0?[]:Ke,Ve=Ge.loadingKeys,Qe=Ve===void 0?[]:Ve,Bt=T.props,xe=Bt.loadData,ze=Bt.onLoad;if(!xe||Ce.indexOf(Dt)!==-1||Qe.indexOf(Dt)!==-1)return null;var Ne=xe(xt);return Ne.then(function(){var Cn=T.state.loadedKeys,En=(0,gn.L0)(Cn,Dt);ze==null||ze(En,{event:"load",node:xt}),T.setUncontrolledState({loadedKeys:En}),T.setState(function(jn){return{loadingKeys:(0,gn._5)(jn.loadingKeys,Dt)}}),_t()}).catch(function(Cn){if(T.setState(function(jn){return{loadingKeys:(0,gn._5)(jn.loadingKeys,Dt)}}),T.loadingRetryTimes[Dt]=(T.loadingRetryTimes[Dt]||0)+1,T.loadingRetryTimes[Dt]>=fn){var En=T.state.loadedKeys;(0,vt.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),T.setUncontrolledState({loadedKeys:(0,gn.L0)(En,Dt)}),_t()}ve(Cn)}),{loadingKeys:(0,gn.L0)(Qe,Dt)}})});return qt.catch(function(){}),qt},T.onNodeMouseEnter=function(xt,Dt){var qt=T.props.onMouseEnter;qt==null||qt({event:xt,node:Dt})},T.onNodeMouseLeave=function(xt,Dt){var qt=T.props.onMouseLeave;qt==null||qt({event:xt,node:Dt})},T.onNodeContextMenu=function(xt,Dt){var qt=T.props.onRightClick;qt&&(xt.preventDefault(),qt({event:xt,node:Dt}))},T.onFocus=function(){var xt=T.props.onFocus;T.setState({focused:!0});for(var Dt=arguments.length,qt=new Array(Dt),_t=0;_t<Dt;_t++)qt[_t]=arguments[_t];xt==null||xt.apply(void 0,qt)},T.onBlur=function(){var xt=T.props.onBlur;T.setState({focused:!1}),T.onActiveChange(null);for(var Dt=arguments.length,qt=new Array(Dt),_t=0;_t<Dt;_t++)qt[_t]=arguments[_t];xt==null||xt.apply(void 0,qt)},T.getTreeNodeRequiredProps=function(){var xt=T.state,Dt=xt.expandedKeys,qt=xt.selectedKeys,_t=xt.loadedKeys,ve=xt.loadingKeys,Ge=xt.checkedKeys,Ke=xt.halfCheckedKeys,Ce=xt.dragOverNodeKey,Ve=xt.dropPosition,Qe=xt.keyEntities;return{expandedKeys:Dt||[],selectedKeys:qt||[],loadedKeys:_t||[],loadingKeys:ve||[],checkedKeys:Ge||[],halfCheckedKeys:Ke||[],dragOverNodeKey:Ce,dropPosition:Ve,keyEntities:Qe}},T.setExpandedKeys=function(xt){var Dt=T.state,qt=Dt.treeData,_t=Dt.fieldNames,ve=(0,Qt.oH)(qt,xt,_t);T.setUncontrolledState({expandedKeys:xt,flattenNodes:ve},!0)},T.onNodeExpand=function(xt,Dt){var qt=T.state.expandedKeys,_t=T.state,ve=_t.listChanging,Ge=_t.fieldNames,Ke=T.props,Ce=Ke.onExpand,Ve=Ke.loadData,Qe=Dt.expanded,Bt=Dt[Ge.key];if(!ve){var xe=qt.indexOf(Bt),ze=!Qe;if((0,vt.ZP)(Qe&&xe!==-1||!Qe&&xe===-1,"Expand state not sync with index check"),ze?qt=(0,gn.L0)(qt,Bt):qt=(0,gn._5)(qt,Bt),T.setExpandedKeys(qt),Ce==null||Ce(qt,{node:Dt,expanded:ze,nativeEvent:xt.nativeEvent}),ze&&Ve){var Ne=T.onNodeLoad(Dt);Ne&&Ne.then(function(){var Cn=(0,Qt.oH)(T.state.treeData,qt,Ge);T.setUncontrolledState({flattenNodes:Cn})}).catch(function(){var Cn=T.state.expandedKeys,En=(0,gn._5)(Cn,Bt);T.setExpandedKeys(En)})}}},T.onListChangeStart=function(){T.setUncontrolledState({listChanging:!0})},T.onListChangeEnd=function(){setTimeout(function(){T.setUncontrolledState({listChanging:!1})})},T.onActiveChange=function(xt){var Dt=T.state.activeKey,qt=T.props.onActiveChange;Dt!==xt&&(T.setState({activeKey:xt}),xt!==null&&T.scrollTo({key:xt}),qt==null||qt(xt))},T.getActiveItem=function(){var xt=T.state,Dt=xt.activeKey,qt=xt.flattenNodes;return Dt===null?null:qt.find(function(_t){var ve=_t.key;return ve===Dt})||null},T.offsetActiveKey=function(xt){var Dt=T.state,qt=Dt.flattenNodes,_t=Dt.activeKey,ve=qt.findIndex(function(Ce){var Ve=Ce.key;return Ve===_t});ve===-1&&xt<0&&(ve=qt.length),ve=(ve+xt+qt.length)%qt.length;var Ge=qt[ve];if(Ge){var Ke=Ge.key;T.onActiveChange(Ke)}else T.onActiveChange(null)},T.onKeyDown=function(xt){var Dt=T.state,qt=Dt.activeKey,_t=Dt.expandedKeys,ve=Dt.checkedKeys,Ge=Dt.fieldNames,Ke=T.props,Ce=Ke.onKeyDown,Ve=Ke.checkable,Qe=Ke.selectable;switch(xt.which){case Yt.Z.UP:{T.offsetActiveKey(-1),xt.preventDefault();break}case Yt.Z.DOWN:{T.offsetActiveKey(1),xt.preventDefault();break}}var Bt=T.getActiveItem();if(Bt&&Bt.data){var xe=T.getTreeNodeRequiredProps(),ze=Bt.data.isLeaf===!1||!!(Bt.data[Ge.children]||[]).length,Ne=(0,Qt.F)((0,B.Z)((0,B.Z)({},(0,Qt.H8)(qt,xe)),{},{data:Bt.data,active:!0}));switch(xt.which){case Yt.Z.LEFT:{ze&&_t.includes(qt)?T.onNodeExpand({},Ne):Bt.parent&&T.onActiveChange(Bt.parent.key),xt.preventDefault();break}case Yt.Z.RIGHT:{ze&&!_t.includes(qt)?T.onNodeExpand({},Ne):Bt.children&&Bt.children.length&&T.onActiveChange(Bt.children[0].key),xt.preventDefault();break}case Yt.Z.ENTER:case Yt.Z.SPACE:{Ve&&!Ne.disabled&&Ne.checkable!==!1&&!Ne.disableCheckbox?T.onNodeCheck({},Ne,!ve.includes(qt)):!Ve&&Qe&&!Ne.disabled&&Ne.selectable!==!1&&T.onNodeSelect({},Ne);break}}}Ce==null||Ce(xt)},T.setUncontrolledState=function(xt){var Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!T.destroyed){var _t=!1,ve=!0,Ge={};Object.keys(xt).forEach(function(Ke){if(Ke in T.props){ve=!1;return}_t=!0,Ge[Ke]=xt[Ke]}),_t&&(!Dt||ve)&&T.setState((0,B.Z)((0,B.Z)({},Ge),qt))}},T.scrollTo=function(xt){T.listRef.current.scrollTo(xt)},T}return(0,I.Z)(G,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var St=this.props.activeKey;St!==void 0&&St!==this.state.activeKey&&(this.setState({activeKey:St}),St!==null&&this.scrollTo({key:St}))}},{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 St,fe=this.state,Ct=fe.focused,xt=fe.flattenNodes,Dt=fe.keyEntities,qt=fe.draggingNodeKey,_t=fe.activeKey,ve=fe.dropLevelOffset,Ge=fe.dropContainerKey,Ke=fe.dropTargetKey,Ce=fe.dropPosition,Ve=fe.dragOverNodeKey,Qe=fe.indent,Bt=this.props,xe=Bt.prefixCls,ze=Bt.className,Ne=Bt.style,Cn=Bt.showLine,En=Bt.focusable,jn=Bt.tabIndex,On=jn===void 0?0:jn,ci=Bt.selectable,Si=Bt.showIcon,vi=Bt.icon,qn=Bt.switcherIcon,an=Bt.draggable,Ji=Bt.checkable,ui=Bt.checkStrictly,lr=Bt.disabled,Di=Bt.motion,D=Bt.loadData,fr=Bt.filterTreeNode,er=Bt.height,Gr=Bt.itemHeight,Zr=Bt.virtual,mo=Bt.titleRender,Ei=Bt.dropIndicatorRender,No=Bt.onContextMenu,Ir=Bt.onScroll,Gi=Bt.direction,Jn=Bt.rootClassName,te=Bt.rootStyle,Nn=(0,At.Z)(this.props,{aria:!0,data:!0}),Bn;return an&&((0,O.Z)(an)==="object"?Bn=an:typeof an=="function"?Bn={nodeDraggable:an}:Bn={}),Tt.createElement(Mt.k.Provider,{value:{prefixCls:xe,selectable:ci,showIcon:Si,icon:vi,switcherIcon:qn,draggable:Bn,draggingNodeKey:qt,checkable:Ji,checkStrictly:ui,disabled:lr,keyEntities:Dt,dropLevelOffset:ve,dropContainerKey:Ge,dropTargetKey:Ke,dropPosition:Ce,dragOverNodeKey:Ve,indent:Qe,direction:Gi,dropIndicatorRender:Ei,loadData:D,filterTreeNode:fr,titleRender:mo,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}},Tt.createElement("div",{role:"tree",className:Y()(xe,ze,Jn,(St={},(0,N.Z)(St,"".concat(xe,"-show-line"),Cn),(0,N.Z)(St,"".concat(xe,"-focused"),Ct),(0,N.Z)(St,"".concat(xe,"-active-focused"),_t!==null),St)),style:te},Tt.createElement(Xn,(0,y.Z)({ref:this.listRef,prefixCls:xe,style:Ne,data:xt,disabled:lr,selectable:ci,checkable:!!Ji,motion:Di,dragging:qt!==null,height:er,itemHeight:Gr,virtual:Zr,focusable:En,focused:Ct,tabIndex:On,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:No,onScroll:Ir},this.getTreeNodeRequiredProps(),Nn))))}}],[{key:"getDerivedStateFromProps",value:function(St,fe){var Ct=fe.prevProps,xt={prevProps:St};function Dt(En){return!Ct&&En in St||Ct&&Ct[En]!==St[En]}var qt,_t=fe.fieldNames;if(Dt("fieldNames")&&(_t=(0,Qt.w$)(St.fieldNames),xt.fieldNames=_t),Dt("treeData")?qt=St.treeData:Dt("children")&&((0,vt.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),qt=(0,Qt.zn)(St.children)),qt){xt.treeData=qt;var ve=(0,Qt.I8)(qt,{fieldNames:_t});xt.keyEntities=(0,B.Z)((0,N.Z)({},zt,it),ve.keyEntities)}var Ge=xt.keyEntities||fe.keyEntities;if(Dt("expandedKeys")||Ct&&Dt("autoExpandParent"))xt.expandedKeys=St.autoExpandParent||!Ct&&St.defaultExpandParent?(0,gn.r7)(St.expandedKeys,Ge):St.expandedKeys;else if(!Ct&&St.defaultExpandAll){var Ke=(0,B.Z)({},Ge);delete Ke[zt],xt.expandedKeys=Object.keys(Ke).map(function(En){return Ke[En].key})}else!Ct&&St.defaultExpandedKeys&&(xt.expandedKeys=St.autoExpandParent||St.defaultExpandParent?(0,gn.r7)(St.defaultExpandedKeys,Ge):St.defaultExpandedKeys);if(xt.expandedKeys||delete xt.expandedKeys,qt||xt.expandedKeys){var Ce=(0,Qt.oH)(qt||fe.treeData,xt.expandedKeys||fe.expandedKeys,_t);xt.flattenNodes=Ce}if(St.selectable&&(Dt("selectedKeys")?xt.selectedKeys=(0,gn.BT)(St.selectedKeys,St):!Ct&&St.defaultSelectedKeys&&(xt.selectedKeys=(0,gn.BT)(St.defaultSelectedKeys,St))),St.checkable){var Ve;if(Dt("checkedKeys")?Ve=(0,gn.E6)(St.checkedKeys)||{}:!Ct&&St.defaultCheckedKeys?Ve=(0,gn.E6)(St.defaultCheckedKeys)||{}:qt&&(Ve=(0,gn.E6)(St.checkedKeys)||{checkedKeys:fe.checkedKeys,halfCheckedKeys:fe.halfCheckedKeys}),Ve){var Qe=Ve,Bt=Qe.checkedKeys,xe=Bt===void 0?[]:Bt,ze=Qe.halfCheckedKeys,Ne=ze===void 0?[]:ze;if(!St.checkStrictly){var Cn=(0,_n.S)(xe,!0,Ge);xe=Cn.checkedKeys,Ne=Cn.halfCheckedKeys}xt.checkedKeys=xe,xt.halfCheckedKeys=Ne}}return Dt("loadedKeys")&&(xt.loadedKeys=St.loadedKeys),xt}}]),G}(Tt.Component);hn.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:ft,allowDrop:function(){return!0},expandAction:!1},hn.TreeNode=Lt.Z;var ct=hn,L=ct},35654:function(V,w,h){"use strict";h.d(w,{BT:function(){return Tt},E6:function(){return It},L0:function(){return Q},OM:function(){return vt},_5:function(){return rt},r7:function(){return $t},wA:function(){return Y},yx:function(){return kt}});var y=h(65093),N=h(42066),O=h(48736),B=h(59301),_=h(39417),K=h(67841),I=h(71430),dt=null;function rt(Nt,Ut){if(!Nt)return[];var et=Nt.slice(),Rt=et.indexOf(Ut);return Rt>=0&&et.splice(Rt,1),et}function Q(Nt,Ut){var et=(Nt||[]).slice();return et.indexOf(Ut)===-1&&et.push(Ut),et}function kt(Nt){return Nt.split("-")}function Y(Nt,Ut){var et=[],Rt=(0,K.Z)(Ut,Nt);function Lt(){var Kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Kt.forEach(function(Qt){var ie=Qt.key,yt=Qt.children;et.push(ie),Lt(yt)})}return Lt(Rt.children),et}function Yt(Nt){if(Nt.parent){var Ut=kt(Nt.pos);return Number(Ut[Ut.length-1])===Nt.parent.children.length-1}return!1}function At(Nt){var Ut=kt(Nt.pos);return Number(Ut[Ut.length-1])===0}function vt(Nt,Ut,et,Rt,Lt,Kt,Qt,ie,yt,ae){var Ht,Pe=Nt.clientX,ge=Nt.clientY,we=Nt.target.getBoundingClientRect(),pe=we.top,ln=we.height,zt=(ae==="rtl"?-1:1)*(((Lt==null?void 0:Lt.x)||0)-Pe),nt=(zt-12)/Rt,it=(0,K.Z)(ie,et.props.eventKey);if(ge<pe+ln/2){var Te=Qt.findIndex(function(L){return L.key===it.key}),Ae=Te<=0?0:Te-1,de=Qt[Ae].key;it=(0,K.Z)(ie,de)}var en=it.key,vn=it,Xn=it.key,gn=0,_n=0;if(!yt.includes(en))for(var $n=0;$n<nt&&Yt(it);$n+=1)it=it.parent,_n+=1;var fn=Ut.props.data,hn=it.node,ct=!0;return At(it)&&it.level===0&&ge<pe+ln/2&&Kt({dragNode:fn,dropNode:hn,dropPosition:-1})&&it.key===et.props.eventKey?gn=-1:(vn.children||[]).length&&yt.includes(Xn)?Kt({dragNode:fn,dropNode:hn,dropPosition:0})?gn=0:ct=!1:_n===0?nt>-1.5?Kt({dragNode:fn,dropNode:hn,dropPosition:1})?gn=1:ct=!1:Kt({dragNode:fn,dropNode:hn,dropPosition:0})?gn=0:Kt({dragNode:fn,dropNode:hn,dropPosition:1})?gn=1:ct=!1:Kt({dragNode:fn,dropNode:hn,dropPosition:1})?gn=1:ct=!1,{dropPosition:gn,dropLevelOffset:_n,dropTargetKey:it.key,dropTargetPos:it.pos,dragOverNodeKey:Xn,dropContainerKey:gn===0?null:((Ht=it.parent)===null||Ht===void 0?void 0:Ht.key)||null,dropAllowed:ct}}function Tt(Nt,Ut){if(Nt){var et=Ut.multiple;return et?Nt.slice():Nt.length?[Nt[0]]:Nt}}var Mt=function(Ut){return Ut};function ft(Nt,Ut){if(!Nt)return[];var et=Ut||{},Rt=et.processProps,Lt=Rt===void 0?Mt:Rt,Kt=Array.isArray(Nt)?Nt:[Nt];return Kt.map(function(Qt){var ie=Qt.children,yt=_objectWithoutProperties(Qt,dt),ae=ft(ie,Ut);return React.createElement(TreeNode,_extends({key:yt.key},Lt(yt)),ae)})}function It(Nt){if(!Nt)return null;var Ut;if(Array.isArray(Nt))Ut={checkedKeys:Nt,halfCheckedKeys:void 0};else if((0,N.Z)(Nt)==="object")Ut={checkedKeys:Nt.checked||void 0,halfCheckedKeys:Nt.halfChecked||void 0};else return(0,O.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Ut}function $t(Nt,Ut){var et=new Set;function Rt(Lt){if(!et.has(Lt)){var Kt=(0,K.Z)(Ut,Lt);if(Kt){et.add(Lt);var Qt=Kt.parent,ie=Kt.node;ie.disabled||Qt&&Rt(Qt.key)}}}return(Nt||[]).forEach(function(Lt){Rt(Lt)}),(0,y.Z)(et)}},90782:function(V,w,h){"use strict";h.d(w,{S:function(){return I}});var y=h(48736),N=h(67841);function O(dt,rt){var Q=new Set;return dt.forEach(function(kt){rt.has(kt)||Q.add(kt)}),Q}function B(dt){var rt=dt||{},Q=rt.disabled,kt=rt.disableCheckbox,Y=rt.checkable;return!!(Q||kt)||Y===!1}function _(dt,rt,Q,kt){for(var Y=new Set(dt),Yt=new Set,At=0;At<=Q;At+=1){var vt=rt.get(At)||new Set;vt.forEach(function(It){var $t=It.key,Nt=It.node,Ut=It.children,et=Ut===void 0?[]:Ut;Y.has($t)&&!kt(Nt)&&et.filter(function(Rt){return!kt(Rt.node)}).forEach(function(Rt){Y.add(Rt.key)})})}for(var Tt=new Set,Mt=Q;Mt>=0;Mt-=1){var ft=rt.get(Mt)||new Set;ft.forEach(function(It){var $t=It.parent,Nt=It.node;if(!(kt(Nt)||!It.parent||Tt.has(It.parent.key))){if(kt(It.parent.node)){Tt.add($t.key);return}var Ut=!0,et=!1;($t.children||[]).filter(function(Rt){return!kt(Rt.node)}).forEach(function(Rt){var Lt=Rt.key,Kt=Y.has(Lt);Ut&&!Kt&&(Ut=!1),!et&&(Kt||Yt.has(Lt))&&(et=!0)}),Ut&&Y.add($t.key),et&&Yt.add($t.key),Tt.add($t.key)}})}return{checkedKeys:Array.from(Y),halfCheckedKeys:Array.from(O(Yt,Y))}}function K(dt,rt,Q,kt,Y){for(var Yt=new Set(dt),At=new Set(rt),vt=0;vt<=kt;vt+=1){var Tt=Q.get(vt)||new Set;Tt.forEach(function($t){var Nt=$t.key,Ut=$t.node,et=$t.children,Rt=et===void 0?[]:et;!Yt.has(Nt)&&!At.has(Nt)&&!Y(Ut)&&Rt.filter(function(Lt){return!Y(Lt.node)}).forEach(function(Lt){Yt.delete(Lt.key)})})}At=new Set;for(var Mt=new Set,ft=kt;ft>=0;ft-=1){var It=Q.get(ft)||new Set;It.forEach(function($t){var Nt=$t.parent,Ut=$t.node;if(!(Y(Ut)||!$t.parent||Mt.has($t.parent.key))){if(Y($t.parent.node)){Mt.add(Nt.key);return}var et=!0,Rt=!1;(Nt.children||[]).filter(function(Lt){return!Y(Lt.node)}).forEach(function(Lt){var Kt=Lt.key,Qt=Yt.has(Kt);et&&!Qt&&(et=!1),!Rt&&(Qt||At.has(Kt))&&(Rt=!0)}),et||Yt.delete(Nt.key),Rt&&At.add(Nt.key),Mt.add(Nt.key)}})}return{checkedKeys:Array.from(Yt),halfCheckedKeys:Array.from(O(At,Yt))}}function I(dt,rt,Q,kt){var Y=[],Yt;kt?Yt=kt:Yt=B;var At=new Set(dt.filter(function(ft){var It=!!(0,N.Z)(Q,ft);return It||Y.push(ft),It})),vt=new Map,Tt=0;Object.keys(Q).forEach(function(ft){var It=Q[ft],$t=It.level,Nt=vt.get($t);Nt||(Nt=new Set,vt.set($t,Nt)),Nt.add(It),Tt=Math.max(Tt,$t)}),(0,y.ZP)(!Y.length,"Tree missing follow keys: ".concat(Y.slice(0,100).map(function(ft){return"'".concat(ft,"'")}).join(", ")));var Mt;return rt===!0?Mt=_(At,vt,Tt,Yt):Mt=K(At,rt.halfCheckedKeys,vt,Tt,Yt),Mt}},67841:function(V,w,h){"use strict";h.d(w,{Z:function(){return y}});function y(N,O){return N[O]}},71430:function(V,w,h){"use strict";h.d(w,{F:function(){return $t},H8:function(){return It},I8:function(){return ft},km:function(){return Y},oH:function(){return Tt},w$:function(){return Yt},zn:function(){return vt}});var y=h(42066),N=h(65093),O=h(35227),B=h(61206),_=h(11592),K=h(2738),I=h(48736),dt=h(67841),rt=["children"];function Q(Nt,Ut){return"".concat(Nt,"-").concat(Ut)}function kt(Nt){return Nt&&Nt.type&&Nt.type.isTreeNode}function Y(Nt,Ut){return Nt!=null?Nt:Ut}function Yt(Nt){var Ut=Nt||{},et=Ut.title,Rt=Ut._title,Lt=Ut.key,Kt=Ut.children,Qt=et||"title";return{title:Qt,_title:Rt||[Qt],key:Lt||"key",children:Kt||"children"}}function At(Nt,Ut){var et=new Map;function Rt(Lt){var Kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Lt||[]).forEach(function(Qt){var ie=Qt[Ut.key],yt=Qt[Ut.children];warning(ie!=null,"Tree node must have a certain key: [".concat(Kt).concat(ie,"]"));var ae=String(ie);warning(!et.has(ae)||ie===null||ie===void 0,"Same 'key' exist in the Tree: ".concat(ae)),et.set(ae,!0),Rt(yt,"".concat(Kt).concat(ae," > "))})}Rt(Nt)}function vt(Nt){function Ut(et){var Rt=(0,_.Z)(et);return Rt.map(function(Lt){if(!kt(Lt))return(0,I.ZP)(!Lt,"Tree/TreeNode can only accept TreeNode as children."),null;var Kt=Lt.key,Qt=Lt.props,ie=Qt.children,yt=(0,B.Z)(Qt,rt),ae=(0,O.Z)({key:Kt},yt),Ht=Ut(ie);return Ht.length&&(ae.children=Ht),ae}).filter(function(Lt){return Lt})}return Ut(Nt)}function Tt(Nt,Ut,et){var Rt=Yt(et),Lt=Rt._title,Kt=Rt.key,Qt=Rt.children,ie=new Set(Ut===!0?[]:Ut),yt=[];function ae(Ht){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ht.map(function(ge,we){for(var pe=Q(Pe?Pe.pos:"0",we),ln=Y(ge[Kt],pe),zt,nt=0;nt<Lt.length;nt+=1){var it=Lt[nt];if(ge[it]!==void 0){zt=ge[it];break}}var Te=(0,O.Z)((0,O.Z)({},(0,K.Z)(ge,[].concat((0,N.Z)(Lt),[Kt,Qt]))),{},{title:zt,key:ln,parent:Pe,pos:pe,children:null,data:ge,isStart:[].concat((0,N.Z)(Pe?Pe.isStart:[]),[we===0]),isEnd:[].concat((0,N.Z)(Pe?Pe.isEnd:[]),[we===Ht.length-1])});return yt.push(Te),Ut===!0||ie.has(ln)?Te.children=ae(ge[Qt]||[],Te):Te.children=[],Te})}return ae(Nt),yt}function Mt(Nt,Ut,et){var Rt={};(0,y.Z)(et)==="object"?Rt=et:Rt={externalGetKey:et},Rt=Rt||{};var Lt=Rt,Kt=Lt.childrenPropName,Qt=Lt.externalGetKey,ie=Lt.fieldNames,yt=Yt(ie),ae=yt.key,Ht=yt.children,Pe=Kt||Ht,ge;Qt?typeof Qt=="string"?ge=function(ln){return ln[Qt]}:typeof Qt=="function"&&(ge=function(ln){return Qt(ln)}):ge=function(ln,zt){return Y(ln[ae],zt)};function we(pe,ln,zt,nt){var it=pe?pe[Pe]:Nt,Te=pe?Q(zt.pos,ln):"0",Ae=pe?[].concat((0,N.Z)(nt),[pe]):[];if(pe){var de=ge(pe,Te),en={node:pe,index:ln,pos:Te,key:de,parentPos:zt.node?zt.pos:null,level:zt.level+1,nodes:Ae};Ut(en)}it&&it.forEach(function(vn,Xn){we(vn,Xn,{node:pe,pos:Te,level:zt?zt.level+1:-1},Ae)})}we(null)}function ft(Nt){var Ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},et=Ut.initWrapper,Rt=Ut.processEntity,Lt=Ut.onProcessFinished,Kt=Ut.externalGetKey,Qt=Ut.childrenPropName,ie=Ut.fieldNames,yt=arguments.length>2?arguments[2]:void 0,ae=Kt||yt,Ht={},Pe={},ge={posEntities:Ht,keyEntities:Pe};return et&&(ge=et(ge)||ge),Mt(Nt,function(we){var pe=we.node,ln=we.index,zt=we.pos,nt=we.key,it=we.parentPos,Te=we.level,Ae=we.nodes,de={node:pe,nodes:Ae,index:ln,key:nt,pos:zt,level:Te},en=Y(nt,zt);Ht[zt]=de,Pe[en]=de,de.parent=Ht[it],de.parent&&(de.parent.children=de.parent.children||[],de.parent.children.push(de)),Rt&&Rt(de,ge)},{externalGetKey:ae,childrenPropName:Qt,fieldNames:ie}),Lt&&Lt(ge),ge}function It(Nt,Ut){var et=Ut.expandedKeys,Rt=Ut.selectedKeys,Lt=Ut.loadedKeys,Kt=Ut.loadingKeys,Qt=Ut.checkedKeys,ie=Ut.halfCheckedKeys,yt=Ut.dragOverNodeKey,ae=Ut.dropPosition,Ht=Ut.keyEntities,Pe=(0,dt.Z)(Ht,Nt),ge={eventKey:Nt,expanded:et.indexOf(Nt)!==-1,selected:Rt.indexOf(Nt)!==-1,loaded:Lt.indexOf(Nt)!==-1,loading:Kt.indexOf(Nt)!==-1,checked:Qt.indexOf(Nt)!==-1,halfChecked:ie.indexOf(Nt)!==-1,pos:String(Pe?Pe.pos:""),dragOver:yt===Nt&&ae===0,dragOverGapTop:yt===Nt&&ae===-1,dragOverGapBottom:yt===Nt&&ae===1};return ge}function $t(Nt){var Ut=Nt.data,et=Nt.expanded,Rt=Nt.selected,Lt=Nt.checked,Kt=Nt.loaded,Qt=Nt.loading,ie=Nt.halfChecked,yt=Nt.dragOver,ae=Nt.dragOverGapTop,Ht=Nt.dragOverGapBottom,Pe=Nt.pos,ge=Nt.active,we=Nt.eventKey,pe=(0,O.Z)((0,O.Z)({},Ut),{},{expanded:et,selected:Rt,checked:Lt,loaded:Kt,loading:Qt,halfChecked:ie,dragOver:yt,dragOverGapTop:ae,dragOverGapBottom:Ht,pos:Pe,active:ge,key:we});return"props"in pe||Object.defineProperty(pe,"props",{get:function(){return(0,I.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Nt}}),pe}},8224:function(V,w,h){"use strict";h.d(w,{Z:function(){return N}});var y=h(4676);function N(O,B,_,K){var I=y.unstable_batchedUpdates?function(rt){y.unstable_batchedUpdates(_,rt)}:_;return O!=null&&O.addEventListener&&O.addEventListener(B,I,K),{remove:function(){O!=null&&O.removeEventListener&&O.removeEventListener(B,I,K)}}}},55468:function(V,w,h){"use strict";h.d(w,{g1:function(){return kt},os:function(){return Yt}});var y=/margin|padding|width|height|max|min|offset/,N={left:!0,top:!0},O={cssFloat:1,styleFloat:1,float:1};function B(At){return At.nodeType===1?At.ownerDocument.defaultView.getComputedStyle(At,null):{}}function _(At,vt,Tt){if(vt=vt.toLowerCase(),Tt==="auto"){if(vt==="height")return At.offsetHeight;if(vt==="width")return At.offsetWidth}return vt in N||(N[vt]=y.test(vt)),N[vt]?parseFloat(Tt)||0:Tt}function K(At,vt){var Tt=arguments.length,Mt=B(At);return vt=O[vt]?"cssFloat"in At.style?"cssFloat":"styleFloat":vt,Tt===1?Mt:_(At,vt,Mt[vt]||At.style[vt])}function I(At,vt,Tt){var Mt=arguments.length;if(vt=O[vt]?"cssFloat"in At.style?"cssFloat":"styleFloat":vt,Mt===3)return typeof Tt=="number"&&y.test(vt)&&(Tt="".concat(Tt,"px")),At.style[vt]=Tt,Tt;for(var ft in vt)vt.hasOwnProperty(ft)&&I(At,ft,vt[ft]);return B(At)}function dt(At){return At===document.body?document.documentElement.clientWidth:At.offsetWidth}function rt(At){return At===document.body?window.innerHeight||document.documentElement.clientHeight:At.offsetHeight}function Q(){var At=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),vt=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:At,height:vt}}function kt(){var At=document.documentElement.clientWidth,vt=window.innerHeight||document.documentElement.clientHeight;return{width:At,height:vt}}function Y(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Yt(At){var vt=At.getBoundingClientRect(),Tt=document.documentElement;return{left:vt.left+(window.pageXOffset||Tt.scrollLeft)-(Tt.clientLeft||document.body.clientLeft||0),top:vt.top+(window.pageYOffset||Tt.scrollTop)-(Tt.clientTop||document.body.clientTop||0)}}},24514:function(V,w,h){"use strict";h.d(w,{G:function(){return B}});var y=h(47273),N=function(K){if((0,y.Z)()&&window.document.documentElement){var I=Array.isArray(K)?K:[K],dt=window.document.documentElement;return I.some(function(rt){return rt in dt.style})}return!1},O=function(K,I){if(!N(K))return!1;var dt=document.createElement("div"),rt=dt.style[K];return dt.style[K]=I,dt.style[K]!==rt};function B(_,K){return!Array.isArray(_)&&K!==void 0?O(_,K):N(_)}},50030:function(V,w,h){"use strict";h.d(w,{Z:function(){return ct}});var y=h(16378),N=h(42066),O=h(35227),B=h(78772),_=h(10859),K=h(61206),I=h(92310),dt=h.n(I),rt=h(29301),Q=h(70425),kt=h(34280),Y=h(59301),Yt=h(4676),At=Y.forwardRef(function(L,k){var z=L.height,G=L.offsetY,T=L.offsetX,St=L.children,fe=L.prefixCls,Ct=L.onInnerResize,xt=L.innerProps,Dt=L.rtl,qt=L.extra,_t={},ve={display:"flex",flexDirection:"column"};return G!==void 0&&(_t={height:z,position:"relative",overflow:"hidden"},ve=(0,O.Z)((0,O.Z)({},ve),{},(0,B.Z)((0,B.Z)((0,B.Z)((0,B.Z)((0,B.Z)({transform:"translateY(".concat(G,"px)")},Dt?"marginRight":"marginLeft",-T),"position","absolute"),"left",0),"right",0),"top",0))),Y.createElement("div",{style:_t},Y.createElement(rt.Z,{onResize:function(Ke){var Ce=Ke.offsetHeight;Ce&&Ct&&Ct()}},Y.createElement("div",(0,y.Z)({style:ve,className:dt()((0,B.Z)({},"".concat(fe,"-holder-inner"),fe)),ref:k},xt),St,qt)))});At.displayName="Filler";var vt=At;function Tt(L){var k=L.children,z=L.setRef,G=Y.useCallback(function(T){z(T)},[]);return Y.cloneElement(k,{ref:G})}function Mt(L,k,z,G,T,St,fe,Ct){var xt=Ct.getKey;return L.slice(k,z+1).map(function(Dt,qt){var _t=k+qt,ve=fe(Dt,_t,{style:{width:G},offsetX:T}),Ge=xt(Dt);return Y.createElement(Tt,{key:Ge,setRef:function(Ce){return St(Dt,Ce)}},ve)})}function ft(L,k,z,G){var T=z-L,St=k-z,fe=Math.min(T,St)*2;if(G<=fe){var Ct=Math.floor(G/2);return G%2?z+Ct+1:z-Ct}return T>St?z-(G-St):z+(G-T)}function It(L,k,z){var G=L.length,T=k.length,St,fe;if(G===0&&T===0)return null;G<T?(St=L,fe=k):(St=k,fe=L);var Ct={__EMPTY_ITEM__:!0};function xt(Ke){return Ke!==void 0?z(Ke):Ct}for(var Dt=null,qt=Math.abs(G-T)!==1,_t=0;_t<fe.length;_t+=1){var ve=xt(St[_t]),Ge=xt(fe[_t]);if(ve!==Ge){Dt=_t,qt=qt||ve!==xt(fe[_t+1]);break}}return Dt===null?null:{index:Dt,multiple:qt}}function $t(L,k,z){var G=Y.useState(L),T=(0,_.Z)(G,2),St=T[0],fe=T[1],Ct=Y.useState(null),xt=(0,_.Z)(Ct,2),Dt=xt[0],qt=xt[1];return Y.useEffect(function(){var _t=It(St||[],L||[],k);(_t==null?void 0:_t.index)!==void 0&&(z==null||z(_t.index),qt(L[_t.index])),fe(L)},[L]),[Dt]}var Nt=h(16089),Ut=(typeof navigator=="undefined"?"undefined":(0,N.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),et=Ut,Rt=function(L,k,z,G){var T=(0,Y.useRef)(!1),St=(0,Y.useRef)(null);function fe(){clearTimeout(St.current),T.current=!0,St.current=setTimeout(function(){T.current=!1},50)}var Ct=(0,Y.useRef)({top:L,bottom:k,left:z,right:G});return Ct.current.top=L,Ct.current.bottom=k,Ct.current.left=z,Ct.current.right=G,function(xt,Dt){var qt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,_t=xt?Dt<0&&Ct.current.left||Dt>0&&Ct.current.right:Dt<0&&Ct.current.top||Dt>0&&Ct.current.bottom;return qt&&_t?(clearTimeout(St.current),T.current=!1):(!_t||T.current)&&fe(),!T.current&&_t}};function Lt(L,k,z,G,T,St,fe){var Ct=(0,Y.useRef)(0),xt=(0,Y.useRef)(null),Dt=(0,Y.useRef)(null),qt=(0,Y.useRef)(!1),_t=Rt(k,z,G,T);function ve(Bt,xe){if(Nt.Z.cancel(xt.current),!_t(!1,xe)){var ze=Bt;if(!ze._virtualHandled)ze._virtualHandled=!0;else return;Ct.current+=xe,Dt.current=xe,et||ze.preventDefault(),xt.current=(0,Nt.Z)(function(){var Ne=qt.current?10:1;fe(Ct.current*Ne,!1),Ct.current=0})}}function Ge(Bt,xe){fe(xe,!0),et||Bt.preventDefault()}var Ke=(0,Y.useRef)(null),Ce=(0,Y.useRef)(null);function Ve(Bt){if(L){Nt.Z.cancel(Ce.current),Ce.current=(0,Nt.Z)(function(){Ke.current=null},2);var xe=Bt.deltaX,ze=Bt.deltaY,Ne=Bt.shiftKey,Cn=xe,En=ze;(Ke.current==="sx"||!Ke.current&&Ne&&ze&&!xe)&&(Cn=ze,En=0,Ke.current="sx");var jn=Math.abs(Cn),On=Math.abs(En);Ke.current===null&&(Ke.current=St&&jn>On?"x":"y"),Ke.current==="y"?ve(Bt,En):Ge(Bt,Cn)}}function Qe(Bt){L&&(qt.current=Bt.detail===Dt.current)}return[Ve,Qe]}function Kt(L,k,z,G){var T=Y.useMemo(function(){return[new Map,[]]},[L,z.id,G]),St=(0,_.Z)(T,2),fe=St[0],Ct=St[1],xt=function(qt){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qt,ve=fe.get(qt),Ge=fe.get(_t);if(ve===void 0||Ge===void 0)for(var Ke=L.length,Ce=Ct.length;Ce<Ke;Ce+=1){var Ve,Qe=L[Ce],Bt=k(Qe);fe.set(Bt,Ce);var xe=(Ve=z.get(Bt))!==null&&Ve!==void 0?Ve:G;if(Ct[Ce]=(Ct[Ce-1]||0)+xe,Bt===qt&&(ve=Ce),Bt===_t&&(Ge=Ce),ve!==void 0&&Ge!==void 0)break}return{top:Ct[ve-1]||0,bottom:Ct[Ge]}};return xt}var Qt=h(76846),ie=h(44202),yt=h(86773),ae=function(){function L(){(0,ie.Z)(this,L),(0,B.Z)(this,"maps",void 0),(0,B.Z)(this,"id",0),(0,B.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,yt.Z)(L,[{key:"set",value:function(z,G){this.maps[z]=G,this.id+=1,this.diffKeys.add(z)}},{key:"get",value:function(z){return this.maps[z]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),L}(),Ht=ae;function Pe(L){var k=parseFloat(L);return isNaN(k)?0:k}function ge(L,k,z){var G=Y.useState(0),T=(0,_.Z)(G,2),St=T[0],fe=T[1],Ct=(0,Y.useRef)(new Map),xt=(0,Y.useRef)(new Ht),Dt=(0,Y.useRef)(0);function qt(){Dt.current+=1}function _t(){var Ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;qt();var Ke=function(){var Qe=!1;Ct.current.forEach(function(Bt,xe){if(Bt&&Bt.offsetParent){var ze=(0,Qt.ZP)(Bt),Ne=ze.offsetHeight,Cn=getComputedStyle(ze),En=Cn.marginTop,jn=Cn.marginBottom,On=Pe(En),ci=Pe(jn),Si=Ne+On+ci;xt.current.get(xe)!==Si&&(xt.current.set(xe,Si),Qe=!0)}}),Qe&&fe(function(Bt){return Bt+1})};if(Ge)Ke();else{Dt.current+=1;var Ce=Dt.current;Promise.resolve().then(function(){Ce===Dt.current&&Ke()})}}function ve(Ge,Ke){var Ce=L(Ge),Ve=Ct.current.get(Ce);Ke?(Ct.current.set(Ce,Ke),_t()):Ct.current.delete(Ce),!Ve!=!Ke&&(Ke?k==null||k(Ge):z==null||z(Ge))}return(0,Y.useEffect)(function(){return qt},[]),[ve,_t,xt.current,St]}var we=14/15;function pe(L,k,z){var G=(0,Y.useRef)(!1),T=(0,Y.useRef)(0),St=(0,Y.useRef)(0),fe=(0,Y.useRef)(null),Ct=(0,Y.useRef)(null),xt,Dt=function(Ge){if(G.current){var Ke=Math.ceil(Ge.touches[0].pageX),Ce=Math.ceil(Ge.touches[0].pageY),Ve=T.current-Ke,Qe=St.current-Ce,Bt=Math.abs(Ve)>Math.abs(Qe);Bt?T.current=Ke:St.current=Ce;var xe=z(Bt,Bt?Ve:Qe,!1,Ge);xe&&Ge.preventDefault(),clearInterval(Ct.current),xe&&(Ct.current=setInterval(function(){Bt?Ve*=we:Qe*=we;var ze=Math.floor(Bt?Ve:Qe);(!z(Bt,ze,!0)||Math.abs(ze)<=.1)&&clearInterval(Ct.current)},16))}},qt=function(){G.current=!1,xt()},_t=function(Ge){xt(),Ge.touches.length===1&&!G.current&&(G.current=!0,T.current=Math.ceil(Ge.touches[0].pageX),St.current=Math.ceil(Ge.touches[0].pageY),fe.current=Ge.target,fe.current.addEventListener("touchmove",Dt,{passive:!1}),fe.current.addEventListener("touchend",qt,{passive:!0}))};xt=function(){fe.current&&(fe.current.removeEventListener("touchmove",Dt),fe.current.removeEventListener("touchend",qt))},(0,kt.Z)(function(){return L&&k.current.addEventListener("touchstart",_t,{passive:!0}),function(){var ve;(ve=k.current)===null||ve===void 0||ve.removeEventListener("touchstart",_t),xt(),clearInterval(Ct.current)}},[L])}function ln(L){return Math.floor(Math.pow(L,.5))}function zt(L,k){var z="touches"in L?L.touches[0]:L;return z[k?"pageX":"pageY"]-window[k?"scrollX":"scrollY"]}function nt(L,k,z){Y.useEffect(function(){var G=k.current;if(L&&G){var T=!1,St,fe,Ct=function(){Nt.Z.cancel(St)},xt=function ve(){Ct(),St=(0,Nt.Z)(function(){z(fe),ve()})},Dt=function(Ge){var Ke=Ge;Ke._virtualHandled||(Ke._virtualHandled=!0,T=!0)},qt=function(){T=!1,Ct()},_t=function(Ge){if(T){var Ke=zt(Ge,!1),Ce=G.getBoundingClientRect(),Ve=Ce.top,Qe=Ce.bottom;if(Ke<=Ve){var Bt=Ve-Ke;fe=-ln(Bt),xt()}else if(Ke>=Qe){var xe=Ke-Qe;fe=ln(xe),xt()}else Ct()}};return G.addEventListener("mousedown",Dt),G.ownerDocument.addEventListener("mouseup",qt),G.ownerDocument.addEventListener("mousemove",_t),function(){G.removeEventListener("mousedown",Dt),G.ownerDocument.removeEventListener("mouseup",qt),G.ownerDocument.removeEventListener("mousemove",_t),Ct()}}},[L])}var it=10;function Te(L,k,z,G,T,St,fe,Ct){var xt=Y.useRef(),Dt=Y.useState(null),qt=(0,_.Z)(Dt,2),_t=qt[0],ve=qt[1];return(0,kt.Z)(function(){if(_t&&_t.times<it){if(!L.current){ve(function(D){return(0,O.Z)({},D)});return}St();var Ge=_t.targetAlign,Ke=_t.originAlign,Ce=_t.index,Ve=_t.offset,Qe=L.current.clientHeight,Bt=!1,xe=Ge,ze=null;if(Qe){for(var Ne=Ge||Ke,Cn=0,En=0,jn=0,On=Math.min(k.length-1,Ce),ci=0;ci<=On;ci+=1){var Si=T(k[ci]);En=Cn;var vi=z.get(Si);jn=En+(vi===void 0?G:vi),Cn=jn}for(var qn=Ne==="top"?Ve:Qe-Ve,an=On;an>=0;an-=1){var Ji=T(k[an]),ui=z.get(Ji);if(ui===void 0){Bt=!0;break}if(qn-=ui,qn<=0)break}switch(Ne){case"top":ze=En-Ve;break;case"bottom":ze=jn-Qe+Ve;break;default:{var lr=L.current.scrollTop,Di=lr+Qe;En<lr?xe="top":jn>Di&&(xe="bottom")}}ze!==null&&fe(ze),ze!==_t.lastTop&&(Bt=!0)}Bt&&ve((0,O.Z)((0,O.Z)({},_t),{},{times:_t.times+1,targetAlign:xe,lastTop:ze}))}},[_t,L.current]),function(Ge){if(Ge==null){Ct();return}if(Nt.Z.cancel(xt.current),typeof Ge=="number")fe(Ge);else if(Ge&&(0,N.Z)(Ge)==="object"){var Ke,Ce=Ge.align;"index"in Ge?Ke=Ge.index:Ke=k.findIndex(function(Bt){return T(Bt)===Ge.key});var Ve=Ge.offset,Qe=Ve===void 0?0:Ve;ve({times:0,index:Ke,offset:Qe,originAlign:Ce})}}}var Ae=Y.forwardRef(function(L,k){var z=L.prefixCls,G=L.rtl,T=L.scrollOffset,St=L.scrollRange,fe=L.onStartMove,Ct=L.onStopMove,xt=L.onScroll,Dt=L.horizontal,qt=L.spinSize,_t=L.containerSize,ve=L.style,Ge=L.thumbStyle,Ke=L.showScrollBar,Ce=Y.useState(!1),Ve=(0,_.Z)(Ce,2),Qe=Ve[0],Bt=Ve[1],xe=Y.useState(null),ze=(0,_.Z)(xe,2),Ne=ze[0],Cn=ze[1],En=Y.useState(null),jn=(0,_.Z)(En,2),On=jn[0],ci=jn[1],Si=!G,vi=Y.useRef(),qn=Y.useRef(),an=Y.useState(Ke),Ji=(0,_.Z)(an,2),ui=Ji[0],lr=Ji[1],Di=Y.useRef(),D=function(){Ke===!0||Ke===!1||(clearTimeout(Di.current),lr(!0),Di.current=setTimeout(function(){lr(!1)},3e3))},fr=St-_t||0,er=_t-qt||0,Gr=Y.useMemo(function(){if(T===0||fr===0)return 0;var Nn=T/fr;return Nn*er},[T,fr,er]),Zr=function(Bn){Bn.stopPropagation(),Bn.preventDefault()},mo=Y.useRef({top:Gr,dragging:Qe,pageY:Ne,startTop:On});mo.current={top:Gr,dragging:Qe,pageY:Ne,startTop:On};var Ei=function(Bn){Bt(!0),Cn(zt(Bn,Dt)),ci(mo.current.top),fe(),Bn.stopPropagation(),Bn.preventDefault()};Y.useEffect(function(){var Nn=function(qe){qe.preventDefault()},Bn=vi.current,oe=qn.current;return Bn.addEventListener("touchstart",Nn,{passive:!1}),oe.addEventListener("touchstart",Ei,{passive:!1}),function(){Bn.removeEventListener("touchstart",Nn),oe.removeEventListener("touchstart",Ei)}},[]);var No=Y.useRef();No.current=fr;var Ir=Y.useRef();Ir.current=er,Y.useEffect(function(){if(Qe){var Nn,Bn=function(qe){var xn=mo.current,Gn=xn.dragging,kn=xn.pageY,ne=xn.startTop;Nt.Z.cancel(Nn);var dn=vi.current.getBoundingClientRect(),Fn=_t/(Dt?dn.width:dn.height);if(Gn){var hi=(zt(qe,Dt)-kn)*Fn,Me=ne;!Si&&Dt?Me-=hi:Me+=hi;var In=No.current,be=Ir.current,$e=be?Me/be:0,He=Math.ceil($e*In);He=Math.max(He,0),He=Math.min(He,In),Nn=(0,Nt.Z)(function(){xt(He,Dt)})}},oe=function(){Bt(!1),Ct()};return window.addEventListener("mousemove",Bn,{passive:!0}),window.addEventListener("touchmove",Bn,{passive:!0}),window.addEventListener("mouseup",oe,{passive:!0}),window.addEventListener("touchend",oe,{passive:!0}),function(){window.removeEventListener("mousemove",Bn),window.removeEventListener("touchmove",Bn),window.removeEventListener("mouseup",oe),window.removeEventListener("touchend",oe),Nt.Z.cancel(Nn)}}},[Qe]),Y.useEffect(function(){return D(),function(){clearTimeout(Di.current)}},[T]),Y.useImperativeHandle(k,function(){return{delayHidden:D}});var Gi="".concat(z,"-scrollbar"),Jn={position:"absolute",visibility:ui?null:"hidden"},te={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Dt?(Jn.height=8,Jn.left=0,Jn.right=0,Jn.bottom=0,te.height="100%",te.width=qt,Si?te.left=Gr:te.right=Gr):(Jn.width=8,Jn.top=0,Jn.bottom=0,Si?Jn.right=0:Jn.left=0,te.width="100%",te.height=qt,te.top=Gr),Y.createElement("div",{ref:vi,className:dt()(Gi,(0,B.Z)((0,B.Z)((0,B.Z)({},"".concat(Gi,"-horizontal"),Dt),"".concat(Gi,"-vertical"),!Dt),"".concat(Gi,"-visible"),ui)),style:(0,O.Z)((0,O.Z)({},Jn),ve),onMouseDown:Zr,onMouseMove:D},Y.createElement("div",{ref:qn,className:dt()("".concat(Gi,"-thumb"),(0,B.Z)({},"".concat(Gi,"-thumb-moving"),Qe)),style:(0,O.Z)((0,O.Z)({},te),Ge),onMouseDown:Ei}))}),de=Ae,en=20;function vn(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,z=L/k*L;return isNaN(z)&&(z=0),z=Math.max(z,en),Math.floor(z)}var Xn=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],gn=[],_n={overflowY:"auto",overflowAnchor:"none"};function $n(L,k){var z=L.prefixCls,G=z===void 0?"rc-virtual-list":z,T=L.className,St=L.height,fe=L.itemHeight,Ct=L.fullHeight,xt=Ct===void 0?!0:Ct,Dt=L.style,qt=L.data,_t=L.children,ve=L.itemKey,Ge=L.virtual,Ke=L.direction,Ce=L.scrollWidth,Ve=L.component,Qe=Ve===void 0?"div":Ve,Bt=L.onScroll,xe=L.onVirtualScroll,ze=L.onVisibleChange,Ne=L.innerProps,Cn=L.extraRender,En=L.styles,jn=L.showScrollBar,On=jn===void 0?"optional":jn,ci=(0,K.Z)(L,Xn),Si=Y.useCallback(function($i){return typeof ve=="function"?ve($i):$i==null?void 0:$i[ve]},[ve]),vi=ge(Si,null,null),qn=(0,_.Z)(vi,4),an=qn[0],Ji=qn[1],ui=qn[2],lr=qn[3],Di=!!(Ge!==!1&&St&&fe),D=Y.useMemo(function(){return Object.values(ui.maps).reduce(function($i,Vi){return $i+Vi},0)},[ui.id,ui.maps]),fr=Di&&qt&&(Math.max(fe*qt.length,D)>St||!!Ce),er=Ke==="rtl",Gr=dt()(G,(0,B.Z)({},"".concat(G,"-rtl"),er),T),Zr=qt||gn,mo=(0,Y.useRef)(),Ei=(0,Y.useRef)(),No=(0,Y.useRef)(),Ir=(0,Y.useState)(0),Gi=(0,_.Z)(Ir,2),Jn=Gi[0],te=Gi[1],Nn=(0,Y.useState)(0),Bn=(0,_.Z)(Nn,2),oe=Bn[0],Ft=Bn[1],qe=(0,Y.useState)(!1),xn=(0,_.Z)(qe,2),Gn=xn[0],kn=xn[1],ne=function(){kn(!0)},dn=function(){kn(!1)},Fn={getKey:Si};function hi($i){te(function(Vi){var se;typeof $i=="function"?se=$i(Vi):se=$i;var kr=Er(se);return mo.current.scrollTop=kr,kr})}var Me=(0,Y.useRef)({start:0,end:Zr.length}),In=(0,Y.useRef)(),be=$t(Zr,Si),$e=(0,_.Z)(be,1),He=$e[0];In.current=He;var Le=Y.useMemo(function(){if(!Di)return{scrollHeight:void 0,start:0,end:Zr.length-1,offset:void 0};if(!fr){var $i;return{scrollHeight:(($i=Ei.current)===null||$i===void 0?void 0:$i.offsetHeight)||0,start:0,end:Zr.length-1,offset:void 0}}for(var Vi=0,se,kr,De,Wo=Zr.length,ls=0;ls<Wo;ls+=1){var ni=Zr[ls],Ps=Si(ni),Is=ui.get(Ps),Js=Vi+(Is===void 0?fe:Is);Js>=Jn&&se===void 0&&(se=ls,kr=Vi),Js>Jn+St&&De===void 0&&(De=ls),Vi=Js}return se===void 0&&(se=0,kr=0,De=Math.ceil(St/fe)),De===void 0&&(De=Zr.length-1),De=Math.min(De+1,Zr.length-1),{scrollHeight:Vi,start:se,end:De,offset:kr}},[fr,Di,Jn,Zr,lr,St]),tn=Le.scrollHeight,Je=Le.start,yn=Le.end,bn=Le.offset;Me.current.start=Je,Me.current.end=yn,Y.useLayoutEffect(function(){var $i=ui.getRecord();if($i.size===1){var Vi=Array.from($i)[0],se=Si(Zr[Je]);if(se===Vi){var kr=ui.get(Vi),De=kr-fe;hi(function(Wo){return Wo+De})}}ui.resetRecord()},[tn]);var di=Y.useState({width:0,height:St}),Sn=(0,_.Z)(di,2),xi=Sn[0],ir=Sn[1],Mi=function(Vi){ir({width:Vi.offsetWidth,height:Vi.offsetHeight})},le=(0,Y.useRef)(),mr=(0,Y.useRef)(),Or=Y.useMemo(function(){return vn(xi.width,Ce)},[xi.width,Ce]),zr=Y.useMemo(function(){return vn(xi.height,tn)},[xi.height,tn]),Yr=tn-St,dr=(0,Y.useRef)(Yr);dr.current=Yr;function Er($i){var Vi=$i;return Number.isNaN(dr.current)||(Vi=Math.min(Vi,dr.current)),Vi=Math.max(Vi,0),Vi}var Pi=Jn<=0,pi=Jn>=Yr,ur=oe<=0,Re=oe>=Ce,Rr=Rt(Pi,pi,ur,Re),je=function(){return{x:er?-oe:oe,y:Jn}},nr=(0,Y.useRef)(je()),Co=(0,Q.useEvent)(function($i){if(xe){var Vi=(0,O.Z)((0,O.Z)({},je()),$i);(nr.current.x!==Vi.x||nr.current.y!==Vi.y)&&(xe(Vi),nr.current=Vi)}});function Br($i,Vi){var se=$i;Vi?((0,Yt.flushSync)(function(){Ft(se)}),Co()):hi(se)}function rs($i){var Vi=$i.currentTarget.scrollTop;Vi!==Jn&&hi(Vi),Bt==null||Bt($i),Co()}var yo=function(Vi){var se=Vi,kr=Ce?Ce-xi.width:0;return se=Math.max(se,0),se=Math.min(se,kr),se},ai=(0,Q.useEvent)(function($i,Vi){Vi?((0,Yt.flushSync)(function(){Ft(function(se){var kr=se+(er?-$i:$i);return yo(kr)})}),Co()):hi(function(se){var kr=se+$i;return kr})}),W=Lt(Di,Pi,pi,ur,Re,!!Ce,ai),tt=(0,_.Z)(W,2),Pn=tt[0],pt=tt[1];pe(Di,mo,function($i,Vi,se,kr){var De=kr;return Rr($i,Vi,se)?!1:!De||!De._virtualHandled?(De&&(De._virtualHandled=!0),Pn({preventDefault:function(){},deltaX:$i?Vi:0,deltaY:$i?0:Vi}),!0):!1}),nt(fr,mo,function($i){hi(function(Vi){return Vi+$i})}),(0,kt.Z)(function(){function $i(se){var kr=Pi&&se.detail<0,De=pi&&se.detail>0;Di&&!kr&&!De&&se.preventDefault()}var Vi=mo.current;return Vi.addEventListener("wheel",Pn,{passive:!1}),Vi.addEventListener("DOMMouseScroll",pt,{passive:!0}),Vi.addEventListener("MozMousePixelScroll",$i,{passive:!1}),function(){Vi.removeEventListener("wheel",Pn),Vi.removeEventListener("DOMMouseScroll",pt),Vi.removeEventListener("MozMousePixelScroll",$i)}},[Di,Pi,pi]),(0,kt.Z)(function(){if(Ce){var $i=yo(oe);Ft($i),Co({x:$i})}},[xi.width,Ce]);var $=function(){var Vi,se;(Vi=le.current)===null||Vi===void 0||Vi.delayHidden(),(se=mr.current)===null||se===void 0||se.delayHidden()},Wi=Te(mo,Zr,ui,fe,Si,function(){return Ji(!0)},hi,$);Y.useImperativeHandle(k,function(){return{nativeElement:No.current,getScrollInfo:je,scrollTo:function(Vi){function se(kr){return kr&&(0,N.Z)(kr)==="object"&&("left"in kr||"top"in kr)}se(Vi)?(Vi.left!==void 0&&Ft(yo(Vi.left)),Wi(Vi.top)):Wi(Vi)}}}),(0,kt.Z)(function(){if(ze){var $i=Zr.slice(Je,yn+1);ze($i,Zr)}},[Je,yn,Zr]);var bi=Kt(Zr,Si,ui,fe),qi=Cn==null?void 0:Cn({start:Je,end:yn,virtual:fr,offsetX:oe,offsetY:bn,rtl:er,getSize:bi}),go=Mt(Zr,Je,yn,Ce,oe,an,_t,Fn),Ui=null;St&&(Ui=(0,O.Z)((0,B.Z)({},xt?"height":"maxHeight",St),_n),Di&&(Ui.overflowY="hidden",Ce&&(Ui.overflowX="hidden"),Gn&&(Ui.pointerEvents="none")));var Xr={};return er&&(Xr.dir="rtl"),Y.createElement("div",(0,y.Z)({ref:No,style:(0,O.Z)((0,O.Z)({},Dt),{},{position:"relative"}),className:Gr},Xr,ci),Y.createElement(rt.Z,{onResize:Mi},Y.createElement(Qe,{className:"".concat(G,"-holder"),style:Ui,ref:mo,onScroll:rs,onMouseEnter:$},Y.createElement(vt,{prefixCls:G,height:tn,offsetX:oe,offsetY:bn,scrollWidth:Ce,onInnerResize:Ji,ref:Ei,innerProps:Ne,rtl:er,extra:qi},go))),fr&&tn>St&&Y.createElement(de,{ref:le,prefixCls:G,scrollOffset:Jn,scrollRange:tn,rtl:er,onScroll:Br,onStartMove:ne,onStopMove:dn,spinSize:zr,containerSize:xi.height,style:En==null?void 0:En.verticalScrollBar,thumbStyle:En==null?void 0:En.verticalScrollBarThumb,showScrollBar:On}),fr&&Ce>xi.width&&Y.createElement(de,{ref:mr,prefixCls:G,scrollOffset:oe,scrollRange:Ce,rtl:er,onScroll:Br,onStartMove:ne,onStopMove:dn,spinSize:Or,containerSize:xi.width,horizontal:!0,style:En==null?void 0:En.horizontalScrollBar,thumbStyle:En==null?void 0:En.horizontalScrollBarThumb,showScrollBar:On}))}var fn=Y.forwardRef($n);fn.displayName="List";var hn=fn,ct=hn},77596:function(V,w,h){"use strict";h.d(w,{Z:function(){return nt}});var y=h(61206),N=h(65093),O=h(78772),B=h(59301),_=h(16378);function K(it,Te){var Ae=Object.keys(it);if(Object.getOwnPropertySymbols){var de=Object.getOwnPropertySymbols(it);Te&&(de=de.filter(function(en){return Object.getOwnPropertyDescriptor(it,en).enumerable})),Ae.push.apply(Ae,de)}return Ae}function I(it){for(var Te=1;Te<arguments.length;Te++){var Ae=arguments[Te]!=null?arguments[Te]:{};Te%2?K(Object(Ae),!0).forEach(function(de){(0,O.Z)(it,de,Ae[de])}):Object.getOwnPropertyDescriptors?Object.defineProperties(it,Object.getOwnPropertyDescriptors(Ae)):K(Object(Ae)).forEach(function(de){Object.defineProperty(it,de,Object.getOwnPropertyDescriptor(Ae,de))})}return it}function dt(it){var Te=it.length;if(Te===0||Te===1)return it;if(Te===2)return[it[0],it[1],"".concat(it[0],".").concat(it[1]),"".concat(it[1],".").concat(it[0])];if(Te===3)return[it[0],it[1],it[2],"".concat(it[0],".").concat(it[1]),"".concat(it[0],".").concat(it[2]),"".concat(it[1],".").concat(it[0]),"".concat(it[1],".").concat(it[2]),"".concat(it[2],".").concat(it[0]),"".concat(it[2],".").concat(it[1]),"".concat(it[0],".").concat(it[1],".").concat(it[2]),"".concat(it[0],".").concat(it[2],".").concat(it[1]),"".concat(it[1],".").concat(it[0],".").concat(it[2]),"".concat(it[1],".").concat(it[2],".").concat(it[0]),"".concat(it[2],".").concat(it[0],".").concat(it[1]),"".concat(it[2],".").concat(it[1],".").concat(it[0])];if(Te>=4)return[it[0],it[1],it[2],it[3],"".concat(it[0],".").concat(it[1]),"".concat(it[0],".").concat(it[2]),"".concat(it[0],".").concat(it[3]),"".concat(it[1],".").concat(it[0]),"".concat(it[1],".").concat(it[2]),"".concat(it[1],".").concat(it[3]),"".concat(it[2],".").concat(it[0]),"".concat(it[2],".").concat(it[1]),"".concat(it[2],".").concat(it[3]),"".concat(it[3],".").concat(it[0]),"".concat(it[3],".").concat(it[1]),"".concat(it[3],".").concat(it[2]),"".concat(it[0],".").concat(it[1],".").concat(it[2]),"".concat(it[0],".").concat(it[1],".").concat(it[3]),"".concat(it[0],".").concat(it[2],".").concat(it[1]),"".concat(it[0],".").concat(it[2],".").concat(it[3]),"".concat(it[0],".").concat(it[3],".").concat(it[1]),"".concat(it[0],".").concat(it[3],".").concat(it[2]),"".concat(it[1],".").concat(it[0],".").concat(it[2]),"".concat(it[1],".").concat(it[0],".").concat(it[3]),"".concat(it[1],".").concat(it[2],".").concat(it[0]),"".concat(it[1],".").concat(it[2],".").concat(it[3]),"".concat(it[1],".").concat(it[3],".").concat(it[0]),"".concat(it[1],".").concat(it[3],".").concat(it[2]),"".concat(it[2],".").concat(it[0],".").concat(it[1]),"".concat(it[2],".").concat(it[0],".").concat(it[3]),"".concat(it[2],".").concat(it[1],".").concat(it[0]),"".concat(it[2],".").concat(it[1],".").concat(it[3]),"".concat(it[2],".").concat(it[3],".").concat(it[0]),"".concat(it[2],".").concat(it[3],".").concat(it[1]),"".concat(it[3],".").concat(it[0],".").concat(it[1]),"".concat(it[3],".").concat(it[0],".").concat(it[2]),"".concat(it[3],".").concat(it[1],".").concat(it[0]),"".concat(it[3],".").concat(it[1],".").concat(it[2]),"".concat(it[3],".").concat(it[2],".").concat(it[0]),"".concat(it[3],".").concat(it[2],".").concat(it[1]),"".concat(it[0],".").concat(it[1],".").concat(it[2],".").concat(it[3]),"".concat(it[0],".").concat(it[1],".").concat(it[3],".").concat(it[2]),"".concat(it[0],".").concat(it[2],".").concat(it[1],".").concat(it[3]),"".concat(it[0],".").concat(it[2],".").concat(it[3],".").concat(it[1]),"".concat(it[0],".").concat(it[3],".").concat(it[1],".").concat(it[2]),"".concat(it[0],".").concat(it[3],".").concat(it[2],".").concat(it[1]),"".concat(it[1],".").concat(it[0],".").concat(it[2],".").concat(it[3]),"".concat(it[1],".").concat(it[0],".").concat(it[3],".").concat(it[2]),"".concat(it[1],".").concat(it[2],".").concat(it[0],".").concat(it[3]),"".concat(it[1],".").concat(it[2],".").concat(it[3],".").concat(it[0]),"".concat(it[1],".").concat(it[3],".").concat(it[0],".").concat(it[2]),"".concat(it[1],".").concat(it[3],".").concat(it[2],".").concat(it[0]),"".concat(it[2],".").concat(it[0],".").concat(it[1],".").concat(it[3]),"".concat(it[2],".").concat(it[0],".").concat(it[3],".").concat(it[1]),"".concat(it[2],".").concat(it[1],".").concat(it[0],".").concat(it[3]),"".concat(it[2],".").concat(it[1],".").concat(it[3],".").concat(it[0]),"".concat(it[2],".").concat(it[3],".").concat(it[0],".").concat(it[1]),"".concat(it[2],".").concat(it[3],".").concat(it[1],".").concat(it[0]),"".concat(it[3],".").concat(it[0],".").concat(it[1],".").concat(it[2]),"".concat(it[3],".").concat(it[0],".").concat(it[2],".").concat(it[1]),"".concat(it[3],".").concat(it[1],".").concat(it[0],".").concat(it[2]),"".concat(it[3],".").concat(it[1],".").concat(it[2],".").concat(it[0]),"".concat(it[3],".").concat(it[2],".").concat(it[0],".").concat(it[1]),"".concat(it[3],".").concat(it[2],".").concat(it[1],".").concat(it[0])]}var rt={};function Q(it){if(it.length===0||it.length===1)return it;var Te=it.join(".");return rt[Te]||(rt[Te]=dt(it)),rt[Te]}function kt(it){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ae=arguments.length>2?arguments[2]:void 0,de=it.filter(function(vn){return vn!=="token"}),en=Q(de);return en.reduce(function(vn,Xn){return I(I({},vn),Ae[Xn])},Te)}function Y(it){return it.join(" ")}function Yt(it,Te){var Ae=0;return function(de){return Ae+=1,de.map(function(en,vn){return At({node:en,stylesheet:it,useInlineStyles:Te,key:"code-segment-".concat(Ae,"-").concat(vn)})})}}function At(it){var Te=it.node,Ae=it.stylesheet,de=it.style,en=de===void 0?{}:de,vn=it.useInlineStyles,Xn=it.key,gn=Te.properties,_n=Te.type,$n=Te.tagName,fn=Te.value;if(_n==="text")return fn;if($n){var hn=Yt(Ae,vn),ct;if(!vn)ct=I(I({},gn),{},{className:Y(gn.className)});else{var L=Object.keys(Ae).reduce(function(T,St){return St.split(".").forEach(function(fe){T.includes(fe)||T.push(fe)}),T},[]),k=gn.className&&gn.className.includes("token")?["token"]:[],z=gn.className&&k.concat(gn.className.filter(function(T){return!L.includes(T)}));ct=I(I({},gn),{},{className:Y(z)||void 0,style:kt(gn.className,Object.assign({},gn.style,en),Ae)})}var G=hn(Te.children);return B.createElement($n,(0,_.Z)({key:Xn},ct),G)}}var vt=function(it,Te){var Ae=it.listLanguages();return Ae.indexOf(Te)!==-1},Tt=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Mt(it,Te){var Ae=Object.keys(it);if(Object.getOwnPropertySymbols){var de=Object.getOwnPropertySymbols(it);Te&&(de=de.filter(function(en){return Object.getOwnPropertyDescriptor(it,en).enumerable})),Ae.push.apply(Ae,de)}return Ae}function ft(it){for(var Te=1;Te<arguments.length;Te++){var Ae=arguments[Te]!=null?arguments[Te]:{};Te%2?Mt(Object(Ae),!0).forEach(function(de){(0,O.Z)(it,de,Ae[de])}):Object.getOwnPropertyDescriptors?Object.defineProperties(it,Object.getOwnPropertyDescriptors(Ae)):Mt(Object(Ae)).forEach(function(de){Object.defineProperty(it,de,Object.getOwnPropertyDescriptor(Ae,de))})}return it}var It=/\n/g;function $t(it){return it.match(It)}function Nt(it){var Te=it.lines,Ae=it.startingLineNumber,de=it.style;return Te.map(function(en,vn){var Xn=vn+Ae;return B.createElement("span",{key:"line-".concat(vn),className:"react-syntax-highlighter-line-number",style:typeof de=="function"?de(Xn):de},"".concat(Xn,`
|
|
|
`))})}function Ut(it){var Te=it.codeString,Ae=it.codeStyle,de=it.containerStyle,en=de===void 0?{float:"left",paddingRight:"10px"}:de,vn=it.numberStyle,Xn=vn===void 0?{}:vn,gn=it.startingLineNumber;return B.createElement("code",{style:Object.assign({},Ae,en)},Nt({lines:Te.replace(/\n$/,"").split(`
|
|
|
`),style:Xn,startingLineNumber:gn}))}function et(it){return"".concat(it.toString().length,".25em")}function Rt(it,Te){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(it),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:Te},children:[{type:"text",value:it}]}}function Lt(it,Te,Ae){var de={display:"inline-block",minWidth:et(Ae),paddingRight:"1em",textAlign:"right",userSelect:"none"},en=typeof it=="function"?it(Te):it,vn=ft(ft({},de),en);return vn}function Kt(it){var Te=it.children,Ae=it.lineNumber,de=it.lineNumberStyle,en=it.largestLineNumber,vn=it.showInlineLineNumbers,Xn=it.lineProps,gn=Xn===void 0?{}:Xn,_n=it.className,$n=_n===void 0?[]:_n,fn=it.showLineNumbers,hn=it.wrapLongLines,ct=it.wrapLines,L=ct===void 0?!1:ct,k=L?ft({},typeof gn=="function"?gn(Ae):gn):{};if(k.className=k.className?[].concat((0,N.Z)(k.className.trim().split(/\s+/)),(0,N.Z)($n)):$n,Ae&&vn){var z=Lt(de,Ae,en);Te.unshift(Rt(Ae,z))}return hn&fn&&(k.style=ft({display:"flex"},k.style)),{type:"element",tagName:"span",properties:k,children:Te}}function Qt(it){for(var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],de=0;de<it.length;de++){var en=it[de];if(en.type==="text")Ae.push(Kt({children:[en],className:(0,N.Z)(new Set(Te))}));else if(en.children){var vn=Te.concat(en.properties.className);Qt(en.children,vn).forEach(function(Xn){return Ae.push(Xn)})}}return Ae}function ie(it,Te,Ae,de,en,vn,Xn,gn,_n){var $n,fn=Qt(it.value),hn=[],ct=-1,L=0;function k(xt,Dt){var qt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Kt({children:xt,lineNumber:Dt,lineNumberStyle:gn,largestLineNumber:Xn,showInlineLineNumbers:en,lineProps:Ae,className:qt,showLineNumbers:de,wrapLongLines:_n,wrapLines:Te})}function z(xt,Dt){if(de&&Dt&&en){var qt=Lt(gn,Dt,Xn);xt.unshift(Rt(Dt,qt))}return xt}function G(xt,Dt){var qt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Te||qt.length>0?k(xt,Dt,qt):z(xt,Dt)}for(var T=function(){var Dt=fn[L],qt=Dt.children[0].value,_t=$t(qt);if(_t){var ve=qt.split(`
|
|
|
`);ve.forEach(function(Ge,Ke){var Ce=de&&hn.length+vn,Ve={type:"text",value:"".concat(Ge,`
|
|
|
`)};if(Ke===0){var Qe=fn.slice(ct+1,L).concat(Kt({children:[Ve],className:Dt.properties.className})),Bt=G(Qe,Ce);hn.push(Bt)}else if(Ke===ve.length-1){var xe=fn[L+1]&&fn[L+1].children&&fn[L+1].children[0],ze={type:"text",value:"".concat(Ge)};if(xe){var Ne=Kt({children:[ze],className:Dt.properties.className});fn.splice(L+1,0,Ne)}else{var Cn=[ze],En=G(Cn,Ce,Dt.properties.className);hn.push(En)}}else{var jn=[Ve],On=G(jn,Ce,Dt.properties.className);hn.push(On)}}),ct=L}L++};L<fn.length;)T();if(ct!==fn.length-1){var St=fn.slice(ct+1,fn.length);if(St&&St.length){var fe=de&&hn.length+vn,Ct=G(St,fe);hn.push(Ct)}}return Te?hn:($n=[]).concat.apply($n,hn)}function yt(it){var Te=it.rows,Ae=it.stylesheet,de=it.useInlineStyles;return Te.map(function(en,vn){return At({node:en,stylesheet:Ae,useInlineStyles:de,key:"code-segement".concat(vn)})})}function ae(it){return it&&typeof it.highlightAuto!="undefined"}function Ht(it){var Te=it.astGenerator,Ae=it.language,de=it.code,en=it.defaultCodeValue;if(ae(Te)){var vn=vt(Te,Ae);return Ae==="text"?{value:en,language:"text"}:vn?Te.highlight(Ae,de):Te.highlightAuto(de)}try{return Ae&&Ae!=="text"?{value:Te.highlight(de,Ae)}:{value:en}}catch(Xn){return{value:en}}}function Pe(it,Te){return function(de){var en=de.language,vn=de.children,Xn=de.style,gn=Xn===void 0?Te:Xn,_n=de.customStyle,$n=_n===void 0?{}:_n,fn=de.codeTagProps,hn=fn===void 0?{className:en?"language-".concat(en):void 0,style:ft(ft({},gn['code[class*="language-"]']),gn['code[class*="language-'.concat(en,'"]')])}:fn,ct=de.useInlineStyles,L=ct===void 0?!0:ct,k=de.showLineNumbers,z=k===void 0?!1:k,G=de.showInlineLineNumbers,T=G===void 0?!0:G,St=de.startingLineNumber,fe=St===void 0?1:St,Ct=de.lineNumberContainerStyle,xt=de.lineNumberStyle,Dt=xt===void 0?{}:xt,qt=de.wrapLines,_t=de.wrapLongLines,ve=_t===void 0?!1:_t,Ge=de.lineProps,Ke=Ge===void 0?{}:Ge,Ce=de.renderer,Ve=de.PreTag,Qe=Ve===void 0?"pre":Ve,Bt=de.CodeTag,xe=Bt===void 0?"code":Bt,ze=de.code,Ne=ze===void 0?(Array.isArray(vn)?vn[0]:vn)||"":ze,Cn=de.astGenerator,En=(0,y.Z)(de,Tt);Cn=Cn||it;var jn=z?B.createElement(Ut,{containerStyle:Ct,codeStyle:hn.style||{},numberStyle:Dt,startingLineNumber:fe,codeString:Ne}):null,On=gn.hljs||gn['pre[class*="language-"]']||{backgroundColor:"#fff"},ci=ae(Cn)?"hljs":"prismjs",Si=L?Object.assign({},En,{style:Object.assign({},On,$n)}):Object.assign({},En,{className:En.className?"".concat(ci," ").concat(En.className):ci,style:Object.assign({},$n)});if(ve?hn.style=ft({whiteSpace:"pre-wrap"},hn.style):hn.style=ft({whiteSpace:"pre"},hn.style),!Cn)return B.createElement(Qe,Si,jn,B.createElement(xe,hn,Ne));(qt===void 0&&Ce||ve)&&(qt=!0),Ce=Ce||yt;var vi=[{type:"text",value:Ne}],qn=Ht({astGenerator:Cn,language:en,code:Ne,defaultCodeValue:vi});qn.language===null&&(qn.value=vi);var an=qn.value.length;an===1&&qn.value[0].type==="text"&&(an=qn.value[0].value.split(`
|
|
|
`).length);var Ji=an+fe,ui=ie(qn,qt,Ke,z,T,fe,Ji,Dt,ve);return B.createElement(Qe,Si,B.createElement(xe,hn,!T&&jn,Ce({rows:ui,stylesheet:gn,useInlineStyles:L})))}}var ge={'code[class*="language-"]':{color:"black",background:"none",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"#f5f2f0",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}},we=h(11594),pe=h.n(we),ln=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","bash","basic","batch","bbcode","bicep","birb","bison","bnf","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","clike","clojure","cmake","cobol","coffeescript","concurnas","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gherkin","git","glsl","gml","gn","go-module","go","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","matlab","maxscript","mel","mermaid","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stylus","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"],zt=Pe(pe(),ge);zt.supportedLanguages=ln;var nt=zt},14179:function(V,w){"use strict";w.Z={'pre[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",background:"#1e1e1e"},'code[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'pre[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},':not(pre) > code[class*="language-"]':{padding:".1em .3em",borderRadius:".3em",color:"#db4c69",background:"#1e1e1e"},".namespace":{Opacity:".7"},"doctype.doctype-tag":{color:"#569CD6"},"doctype.name":{color:"#9cdcfe"},comment:{color:"#6a9955"},prolog:{color:"#6a9955"},punctuation:{color:"#d4d4d4"},".language-html .language-css .token.punctuation":{color:"#d4d4d4"},".language-html .language-javascript .token.punctuation":{color:"#d4d4d4"},property:{color:"#9cdcfe"},tag:{color:"#569cd6"},boolean:{color:"#569cd6"},number:{color:"#b5cea8"},constant:{color:"#9cdcfe"},symbol:{color:"#b5cea8"},inserted:{color:"#b5cea8"},unit:{color:"#b5cea8"},selector:{color:"#d7ba7d"},"attr-name":{color:"#9cdcfe"},string:{color:"#ce9178"},char:{color:"#ce9178"},builtin:{color:"#ce9178"},deleted:{color:"#ce9178"},".language-css .token.string.url":{textDecoration:"underline"},operator:{color:"#d4d4d4"},entity:{color:"#569cd6"},"operator.arrow":{color:"#569CD6"},atrule:{color:"#ce9178"},"atrule.rule":{color:"#c586c0"},"atrule.url":{color:"#9cdcfe"},"atrule.url.function":{color:"#dcdcaa"},"atrule.url.punctuation":{color:"#d4d4d4"},keyword:{color:"#569CD6"},"keyword.module":{color:"#c586c0"},"keyword.control-flow":{color:"#c586c0"},function:{color:"#dcdcaa"},"function.maybe-class-name":{color:"#dcdcaa"},regex:{color:"#d16969"},important:{color:"#569cd6"},italic:{fontStyle:"italic"},"class-name":{color:"#4ec9b0"},"maybe-class-name":{color:"#4ec9b0"},console:{color:"#9cdcfe"},parameter:{color:"#9cdcfe"},interpolation:{color:"#9cdcfe"},"punctuation.interpolation-punctuation":{color:"#569cd6"},variable:{color:"#9cdcfe"},"imports.maybe-class-name":{color:"#9cdcfe"},"exports.maybe-class-name":{color:"#9cdcfe"},escape:{color:"#d7ba7d"},"tag.punctuation":{color:"#808080"},cdata:{color:"#808080"},"attr-value":{color:"#ce9178"},"attr-value.punctuation":{color:"#ce9178"},"attr-value.punctuation.attr-equals":{color:"#d4d4d4"},namespace:{color:"#4ec9b0"},'pre[class*="language-javascript"]':{color:"#9cdcfe"},'code[class*="language-javascript"]':{color:"#9cdcfe"},'pre[class*="language-jsx"]':{color:"#9cdcfe"},'code[class*="language-jsx"]':{color:"#9cdcfe"},'pre[class*="language-typescript"]':{color:"#9cdcfe"},'code[class*="language-typescript"]':{color:"#9cdcfe"},'pre[class*="language-tsx"]':{color:"#9cdcfe"},'code[class*="language-tsx"]':{color:"#9cdcfe"},'pre[class*="language-css"]':{color:"#ce9178"},'code[class*="language-css"]':{color:"#ce9178"},'pre[class*="language-html"]':{color:"#d4d4d4"},'code[class*="language-html"]':{color:"#d4d4d4"},".language-regex .token.anchor":{color:"#dcdcaa"},".language-html .token.punctuation":{color:"#808080"},'pre[class*="language-"] > code[class*="language-"]':{position:"relative",zIndex:"1"},".line-highlight.line-highlight":{background:"#f7ebc6",boxShadow:"inset 5px 0 0 #f7d87c",zIndex:"0"}}},19524:function(V,w,h){"use strict";h(84126);var y=h(59301),N=60103;if(w.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var O=Symbol.for;N=O("react.element"),w.Fragment=O("react.fragment")}var B=y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,_=Object.prototype.hasOwnProperty,K={key:!0,ref:!0,__self:!0,__source:!0};function I(dt,rt,Q){var kt,Y={},Yt=null,At=null;Q!==void 0&&(Yt=""+Q),rt.key!==void 0&&(Yt=""+rt.key),rt.ref!==void 0&&(At=rt.ref);for(kt in rt)_.call(rt,kt)&&!K.hasOwnProperty(kt)&&(Y[kt]=rt[kt]);if(dt&&dt.defaultProps)for(kt in rt=dt.defaultProps,rt)Y[kt]===void 0&&(Y[kt]=rt[kt]);return{$$typeof:N,type:dt,key:Yt,ref:At,props:Y,_owner:B.current}}w.jsx=I,w.jsxs=I},37712:function(V,w,h){"use strict";V.exports=h(19524)},95489:function(V,w,h){"use strict";var y=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof h.g=="object"?h.g:{},N=Ut();y.Prism={manual:!0,disableWorkerMessageHandler:!0};var O=h(43621),B=h(12256),_=h(68398),K=h(70614),I=h(54212),dt=h(9720),rt=h(88786);N();var Q={}.hasOwnProperty;function kt(){}kt.prototype=_;var Y=new kt;V.exports=Y,Y.highlight=vt,Y.register=Yt,Y.alias=At,Y.registered=Tt,Y.listLanguages=Mt,Yt(K),Yt(I),Yt(dt),Yt(rt),Y.util.encode=$t,Y.Token.stringify=ft;function Yt(et){if(typeof et!="function"||!et.displayName)throw new Error("Expected `function` for `grammar`, got `"+et+"`");Y.languages[et.displayName]===void 0&&et(Y)}function At(et,Rt){var Lt=Y.languages,Kt=et,Qt,ie,yt,ae;Rt&&(Kt={},Kt[et]=Rt);for(Qt in Kt)for(ie=Kt[Qt],ie=typeof ie=="string"?[ie]:ie,yt=ie.length,ae=-1;++ae<yt;)Lt[ie[ae]]=Lt[Qt]}function vt(et,Rt){var Lt=_.highlight,Kt;if(typeof et!="string")throw new Error("Expected `string` for `value`, got `"+et+"`");if(Y.util.type(Rt)==="Object")Kt=Rt,Rt=null;else{if(typeof Rt!="string")throw new Error("Expected `string` for `name`, got `"+Rt+"`");if(Q.call(Y.languages,Rt))Kt=Y.languages[Rt];else throw new Error("Unknown language: `"+Rt+"` is not registered")}return Lt.call(this,et,Kt,Rt)}function Tt(et){if(typeof et!="string")throw new Error("Expected `string` for `language`, got `"+et+"`");return Q.call(Y.languages,et)}function Mt(){var et=Y.languages,Rt=[],Lt;for(Lt in et)Q.call(et,Lt)&&typeof et[Lt]=="object"&&Rt.push(Lt);return Rt}function ft(et,Rt,Lt){var Kt;return typeof et=="string"?{type:"text",value:et}:Y.util.type(et)==="Array"?It(et,Rt):(Kt={type:et.type,content:Y.Token.stringify(et.content,Rt,Lt),tag:"span",classes:["token",et.type],attributes:{},language:Rt,parent:Lt},et.alias&&(Kt.classes=Kt.classes.concat(et.alias)),Y.hooks.run("wrap",Kt),O(Kt.tag+"."+Kt.classes.join("."),Nt(Kt.attributes),Kt.content))}function It(et,Rt){for(var Lt=[],Kt=et.length,Qt=-1,ie;++Qt<Kt;)ie=et[Qt],ie!==""&&ie!==null&&ie!==void 0&&Lt.push(ie);for(Qt=-1,Kt=Lt.length;++Qt<Kt;)ie=Lt[Qt],Lt[Qt]=Y.Token.stringify(ie,Rt,Lt);return Lt}function $t(et){return et}function Nt(et){var Rt;for(Rt in et)et[Rt]=B(et[Rt]);return et}function Ut(){var et="Prism"in y,Rt=et?y.Prism:void 0;return Lt;function Lt(){et?y.Prism=Rt:delete y.Prism,et=void 0,Rt=void 0}}},11594:function(V,w,h){"use strict";var y=h(95489);V.exports=y,y.register(h(79007)),y.register(h(15465)),y.register(h(42746)),y.register(h(93281)),y.register(h(95143)),y.register(h(65924)),y.register(h(65043)),y.register(h(43556)),y.register(h(14901)),y.register(h(4248)),y.register(h(17758)),y.register(h(33335)),y.register(h(17427)),y.register(h(22956)),y.register(h(56007)),y.register(h(45652)),y.register(h(33819)),y.register(h(84230)),y.register(h(20803)),y.register(h(65235)),y.register(h(52406)),y.register(h(79571)),y.register(h(3058)),y.register(h(51422)),y.register(h(1618)),y.register(h(2505)),y.register(h(51274)),y.register(h(23796)),y.register(h(13979)),y.register(h(87994)),y.register(h(47035)),y.register(h(36142)),y.register(h(85290)),y.register(h(7407)),y.register(h(79440)),y.register(h(7110)),y.register(h(73435)),y.register(h(91372)),y.register(h(63663)),y.register(h(92987)),y.register(h(91657)),y.register(h(34367)),y.register(h(35348)),y.register(h(26841)),y.register(h(87071)),y.register(h(13652)),y.register(h(87648)),y.register(h(10617)),y.register(h(5348)),y.register(h(71053)),y.register(h(69820)),y.register(h(41929)),y.register(h(51837)),y.register(h(4182)),y.register(h(22117)),y.register(h(95627)),y.register(h(34265)),y.register(h(50618)),y.register(h(32126)),y.register(h(26737)),y.register(h(90134)),y.register(h(51348)),y.register(h(60841)),y.register(h(42857)),y.register(h(81269)),y.register(h(31134)),y.register(h(83125)),y.register(h(9438)),y.register(h(27771)),y.register(h(86549)),y.register(h(37079)),y.register(h(59250)),y.register(h(81226)),y.register(h(65245)),y.register(h(25040)),y.register(h(40284)),y.register(h(39187)),y.register(h(34302)),y.register(h(90515)),y.register(h(33534)),y.register(h(9885)),y.register(h(76364)),y.register(h(56452)),y.register(h(8477)),y.register(h(58230)),y.register(h(66192)),y.register(h(81084)),y.register(h(50318)),y.register(h(95769)),y.register(h(14155)),y.register(h(92823)),y.register(h(63092)),y.register(h(21550)),y.register(h(29710)),y.register(h(2050)),y.register(h(67967)),y.register(h(29138)),y.register(h(67915)),y.register(h(54853)),y.register(h(68330)),y.register(h(76823)),y.register(h(86712)),y.register(h(72252)),y.register(h(78634)),y.register(h(43583)),y.register(h(23328)),y.register(h(74494)),y.register(h(46745)),y.register(h(22152)),y.register(h(83698)),y.register(h(26619)),y.register(h(53990)),y.register(h(7093)),y.register(h(4005)),y.register(h(53510)),y.register(h(24799)),y.register(h(97443)),y.register(h(80746)),y.register(h(17015)),y.register(h(89246)),y.register(h(487)),y.register(h(79539)),y.register(h(15628)),y.register(h(14320)),y.register(h(73222)),y.register(h(92486)),y.register(h(24103)),y.register(h(40604)),y.register(h(23109)),y.register(h(32082)),y.register(h(77674)),y.register(h(37524)),y.register(h(6658)),y.register(h(24824)),y.register(h(22776)),y.register(h(89700)),y.register(h(99296)),y.register(h(39940)),y.register(h(34973)),y.register(h(98135)),y.register(h(36907)),y.register(h(3567)),y.register(h(23763)),y.register(h(29509)),y.register(h(40472)),y.register(h(44695)),y.register(h(53885)),y.register(h(51478)),y.register(h(16928)),y.register(h(13586)),y.register(h(37164)),y.register(h(25153)),y.register(h(33245)),y.register(h(32218)),y.register(h(65626)),y.register(h(60090)),y.register(h(40722)),y.register(h(37783)),y.register(h(41224)),y.register(h(71365)),y.register(h(42846)),y.register(h(32964)),y.register(h(78830)),y.register(h(88799)),y.register(h(66791)),y.register(h(41735)),y.register(h(13490)),y.register(h(7383)),y.register(h(66894)),y.register(h(45779)),y.register(h(27734)),y.register(h(91889)),y.register(h(55965)),y.register(h(37326)),y.register(h(92949)),y.register(h(5681)),y.register(h(70696)),y.register(h(35790)),y.register(h(25777)),y.register(h(65889)),y.register(h(53852)),y.register(h(97719)),y.register(h(63839)),y.register(h(67623)),y.register(h(32530)),y.register(h(8938)),y.register(h(55259)),y.register(h(67411)),y.register(h(15375)),y.register(h(12093)),y.register(h(83588)),y.register(h(94127)),y.register(h(21294)),y.register(h(38709)),y.register(h(15008)),y.register(h(96549)),y.register(h(5221)),y.register(h(27447)),y.register(h(73191)),y.register(h(75542)),y.register(h(50323)),y.register(h(44298)),y.register(h(9634)),y.register(h(75266)),y.register(h(48139)),y.register(h(97534)),y.register(h(90826)),y.register(h(63919)),y.register(h(68862)),y.register(h(39523)),y.register(h(31207)),y.register(h(75308)),y.register(h(45315)),y.register(h(13794)),y.register(h(41299)),y.register(h(98177)),y.register(h(48780)),y.register(h(79793)),y.register(h(52085)),y.register(h(65411)),y.register(h(84750)),y.register(h(88216)),y.register(h(66433)),y.register(h(34855)),y.register(h(12998)),y.register(h(10202)),y.register(h(41186)),y.register(h(68963)),y.register(h(5569)),y.register(h(69435)),y.register(h(42766)),y.register(h(46449)),y.register(h(89032)),y.register(h(40241)),y.register(h(24812)),y.register(h(16747)),y.register(h(73584)),y.register(h(79243)),y.register(h(31788)),y.register(h(60871)),y.register(h(21023)),y.register(h(14693)),y.register(h(8743)),y.register(h(1689)),y.register(h(69210)),y.register(h(58710)),y.register(h(60452)),y.register(h(92784)),y.register(h(36489)),y.register(h(78380)),y.register(h(10409)),y.register(h(6539)),y.register(h(82028)),y.register(h(62282)),y.register(h(55686)),y.register(h(70889)),y.register(h(37116)),y.register(h(66963)),y.register(h(21078)),y.register(h(96198)),y.register(h(17723)),y.register(h(67771)),y.register(h(30307)),y.register(h(8921)),y.register(h(13429)),y.register(h(65197)),y.register(h(88904)),y.register(h(35)),y.register(h(86095)),y.register(h(76998)),y.register(h(14409)),y.register(h(33460)),y.register(h(28108))},79007:function(V){"use strict";V.exports=w,w.displayName="abap",w.aliases=[];function w(h){h.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:SCIENTIFIC_WITH_LEADING_ZERO|SCALE_PRESERVING_SCIENTIFIC|RMC_COMMUNICATION_FAILURE|END-ENHANCEMENT-SECTION|MULTIPLY-CORRESPONDING|SUBTRACT-CORRESPONDING|VERIFICATION-MESSAGE|DIVIDE-CORRESPONDING|ENHANCEMENT-SECTION|CURRENCY_CONVERSION|RMC_SYSTEM_FAILURE|START-OF-SELECTION|MOVE-CORRESPONDING|RMC_INVALID_STATUS|CUSTOMER-FUNCTION|END-OF-DEFINITION|ENHANCEMENT-POINT|SYSTEM-EXCEPTIONS|ADD-CORRESPONDING|SCALE_PRESERVING|SELECTION-SCREEN|CURSOR-SELECTION|END-OF-SELECTION|LOAD-OF-PROGRAM|SCROLL-BOUNDARY|SELECTION-TABLE|EXCEPTION-TABLE|IMPLEMENTATIONS|PARAMETER-TABLE|RIGHT-JUSTIFIED|UNIT_CONVERSION|AUTHORITY-CHECK|LIST-PROCESSING|SIGN_AS_POSTFIX|COL_BACKGROUND|IMPLEMENTATION|INTERFACE-POOL|TRANSFORMATION|IDENTIFICATION|ENDENHANCEMENT|LINE-SELECTION|INITIALIZATION|LEFT-JUSTIFIED|SELECT-OPTIONS|SELECTION-SETS|COMMUNICATION|CORRESPONDING|DECIMAL_SHIFT|PRINT-CONTROL|VALUE-REQUEST|CHAIN-REQUEST|FUNCTION-POOL|FIELD-SYMBOLS|FUNCTIONALITY|INVERTED-DATE|SELECTION-SET|CLASS-METHODS|OUTPUT-LENGTH|CLASS-CODING|COL_NEGATIVE|ERRORMESSAGE|FIELD-GROUPS|HELP-REQUEST|NO-EXTENSION|NO-TOPOFPAGE|REDEFINITION|DISPLAY-MODE|ENDINTERFACE|EXIT-COMMAND|FIELD-SYMBOL|NO-SCROLLING|SHORTDUMP-ID|ACCESSPOLICY|CLASS-EVENTS|COL_POSITIVE|DECLARATIONS|ENHANCEMENTS|FILTER-TABLE|SWITCHSTATES|SYNTAX-CHECK|TRANSPORTING|ASYNCHRONOUS|SYNTAX-TRACE|TOKENIZATION|USER-COMMAND|WITH-HEADING|ABAP-SOURCE|BREAK-POINT|CHAIN-INPUT|COMPRESSION|FIXED-POINT|NEW-SECTION|NON-UNICODE|OCCURRENCES|RESPONSIBLE|SYSTEM-CALL|TRACE-TABLE|ABBREVIATED|CHAR-TO-HEX|END-OF-FILE|ENDFUNCTION|ENVIRONMENT|ASSOCIATION|COL_HEADING|EDITOR-CALL|END-OF-PAGE|ENGINEERING|IMPLEMENTED|INTENSIFIED|RADIOBUTTON|SYSTEM-EXIT|TOP-OF-PAGE|TRANSACTION|APPLICATION|CONCATENATE|DESTINATION|ENHANCEMENT|IMMEDIATELY|NO-GROUPING|PRECOMPILED|REPLACEMENT|TITLE-LINES|ACTIVATION|BYTE-ORDER|CLASS-POOL|CONNECTION|CONVERSION|DEFINITION|DEPARTMENT|EXPIRATION|INHERITING|MESSAGE-ID|NO-HEADING|PERFORMING|QUEUE-ONLY|RIGHTSPACE|SCIENTIFIC|STATUSINFO|STRUCTURES|SYNCPOINTS|WITH-TITLE|ATTRIBUTES|BOUNDARIES|CLASS-DATA|COL_NORMAL|DD\/MM\/YYYY|DESCENDING|INTERFACES|LINE-COUNT|MM\/DD\/YYYY|NON-UNIQUE|PRESERVING|SELECTIONS|STATEMENTS|SUBROUTINE|TRUNCATION|TYPE-POOLS|ARITHMETIC|BACKGROUND|ENDPROVIDE|EXCEPTIONS|IDENTIFIER|INDEX-LINE|OBLIGATORY|PARAMETERS|PERCENTAGE|PUSHBUTTON|RESOLUTION|COMPONENTS|DEALLOCATE|DISCONNECT|DUPLICATES|FIRST-LINE|HEAD-LINES|NO-DISPLAY|OCCURRENCE|RESPECTING|RETURNCODE|SUBMATCHES|TRACE-FILE|ASCENDING|BYPASSING|ENDMODULE|EXCEPTION|EXCLUDING|EXPORTING|INCREMENT|MATCHCODE|PARAMETER|PARTIALLY|PREFERRED|REFERENCE|REPLACING|RETURNING|SELECTION|SEPARATED|SPECIFIED|STATEMENT|TIMESTAMP|TYPE-POOL|ACCEPTING|APPENDAGE|ASSIGNING|COL_GROUP|COMPARING|CONSTANTS|DANGEROUS|IMPORTING|INSTANCES|LEFTSPACE|LOG-POINT|QUICKINFO|READ-ONLY|SCROLLING|SQLSCRIPT|STEP-LOOP|TOP-LINES|TRANSLATE|APPENDING|AUTHORITY|CHARACTER|COMPONENT|CONDITION|DIRECTORY|DUPLICATE|MESSAGING|RECEIVING|SUBSCREEN|ACCORDING|COL_TOTAL|END-LINES|ENDMETHOD|ENDSELECT|EXPANDING|EXTENSION|INCLUDING|INFOTYPES|INTERFACE|INTERVALS|LINE-SIZE|PF-STATUS|PROCEDURE|PROTECTED|REQUESTED|RESUMABLE|RIGHTPLUS|SAP-SPOOL|SECONDARY|STRUCTURE|SUBSTRING|TABLEVIEW|NUMOFCHAR|ADJACENT|ANALYSIS|ASSIGNED|BACKWARD|CHANNELS|CHECKBOX|CONTINUE|CRITICAL|DATAINFO|DD\/MM\/YY|DURATION|ENCODING|ENDCLASS|FUNCTION|LEFTPLUS|LINEFEED|MM\/DD\/YY|OVERFLOW|RECEIVED|SKIPPING|SORTABLE|STANDARD|SUBTRACT|SUPPRESS|TABSTRIP|TITLEBAR|TRUNCATE|UNASSIGN|WHENEVER|ANALYZER|COALESCE|COMMENTS|CONDENSE|DECIMALS|DEFERRED|ENDWHILE|EXPLICIT|KEYWORDS|MESSAGES|POSITION|PRIORITY|RECEIVER|RENAMING|TIMEZONE|TRAILING|ALLOCATE|CENTERED|CIRCULAR|CONTROLS|CURRENCY|DELETING|DESCRIBE|DISTANCE|ENDCATCH|EXPONENT|EXTENDED|GENERATE|IGNORING|INCLUDES|INTERNAL|MAJOR-ID|MODIFIER|NEW-LINE|OPTIONAL|PROPERTY|ROLLBACK|STARTING|SUPPLIED|ABSTRACT|CHANGING|CONTEXTS|CREATING|CUSTOMER|DATABASE|DAYLIGHT|DEFINING|DISTINCT|DIVISION|ENABLING|ENDCHAIN|ESCAPING|HARMLESS|IMPLICIT|INACTIVE|LANGUAGE|MINOR-ID|MULTIPLY|NEW-PAGE|NO-TITLE|POS_HIGH|SEPARATE|TEXTPOOL|TRANSFER|SELECTOR|DBMAXLEN|ITERATOR|ARCHIVE|BIT-XOR|BYTE-CO|COLLECT|COMMENT|CURRENT|DEFAULT|DISPLAY|ENDFORM|EXTRACT|LEADING|LISTBOX|LOCATOR|MEMBERS|METHODS|NESTING|POS_LOW|PROCESS|PROVIDE|RAISING|RESERVE|SECONDS|SUMMARY|VISIBLE|BETWEEN|BIT-AND|BYTE-CS|CLEANUP|COMPUTE|CONTROL|CONVERT|DATASET|ENDCASE|FORWARD|HEADERS|HOTSPOT|INCLUDE|INVERSE|KEEPING|NO-ZERO|OBJECTS|OVERLAY|PADDING|PATTERN|PROGRAM|REFRESH|SECTION|SUMMING|TESTING|VERSION|WINDOWS|WITHOUT|BIT-NOT|BYTE-CA|BYTE-NA|CASTING|CONTEXT|COUNTRY|DYNAMIC|ENABLED|ENDLOOP|EXECUTE|FRIENDS|HANDLER|HEADING|INITIAL|\*-INPUT|LOGFILE|MAXIMUM|MINIMUM|NO-GAPS|NO-SIGN|PRAGMAS|PRIMARY|PRIVATE|REDUCED|REPLACE|REQUEST|RESULTS|UNICODE|WARNING|ALIASES|BYTE-CN|BYTE-NS|CALLING|COL_KEY|COLUMNS|CONNECT|ENDEXEC|ENTRIES|EXCLUDE|FILTERS|FURTHER|HELP-ID|LOGICAL|MAPPING|MESSAGE|NAMETAB|OPTIONS|PACKAGE|PERFORM|RECEIVE|STATICS|VARYING|BINDING|CHARLEN|GREATER|XSTRLEN|ACCEPT|APPEND|DETAIL|ELSEIF|ENDING|ENDTRY|FORMAT|FRAMES|GIVING|HASHED|HEADER|IMPORT|INSERT|MARGIN|MODULE|NATIVE|OBJECT|OFFSET|REMOTE|RESUME|SAVING|SIMPLE|SUBMIT|TABBED|TOKENS|UNIQUE|UNPACK|UPDATE|WINDOW|YELLOW|ACTUAL|ASPECT|CENTER|CURSOR|DELETE|DIALOG|DIVIDE|DURING|ERRORS|EVENTS|EXTEND|FILTER|HANDLE|HAVING|IGNORE|LITTLE|MEMORY|NO-GAP|OCCURS|OPTION|PERSON|PLACES|PUBLIC|REDUCE|REPORT|RESULT|SINGLE|SORTED|SWITCH|SYNTAX|TARGET|VALUES|WRITER|ASSERT|BLOCKS|BOUNDS|BUFFER|CHANGE|COLUMN|COMMIT|CONCAT|COPIES|CREATE|DDMMYY|DEFINE|ENDIAN|ESCAPE|EXPAND|KERNEL|LAYOUT|LEGACY|LEVELS|MMDDYY|NUMBER|OUTPUT|RANGES|READER|RETURN|SCREEN|SEARCH|SELECT|SHARED|SOURCE|STABLE|STATIC|SUBKEY|SUFFIX|TABLES|UNWIND|YYMMDD|ASSIGN|BACKUP|BEFORE|BINARY|BIT-OR|BLANKS|CLIENT|CODING|COMMON|DEMAND|DYNPRO|EXCEPT|EXISTS|EXPORT|FIELDS|GLOBAL|GROUPS|LENGTH|LOCALE|MEDIUM|METHOD|MODIFY|NESTED|OTHERS|REJECT|SCROLL|SUPPLY|SYMBOL|ENDFOR|STRLEN|ALIGN|BEGIN|BOUND|ENDAT|ENTRY|EVENT|FINAL|FLUSH|GRANT|INNER|SHORT|USING|WRITE|AFTER|BLACK|BLOCK|CLOCK|COLOR|COUNT|DUMMY|EMPTY|ENDDO|ENDON|GREEN|INDEX|INOUT|LEAVE|LEVEL|LINES|MODIF|ORDER|OUTER|RANGE|RESET|RETRY|RIGHT|SMART|SPLIT|STYLE|TABLE|THROW|UNDER|UNTIL|UPPER|UTF-8|WHERE|ALIAS|BLANK|CLEAR|CLOSE|EXACT|FETCH|FIRST|FOUND|GROUP|LLANG|LOCAL|OTHER|REGEX|SPOOL|TITLE|TYPES|VALID|WHILE|ALPHA|BOXED|CATCH|CHAIN|CHECK|CLASS|COVER|ENDIF|EQUIV|FIELD|FLOOR|FRAME|INPUT|LOWER|MATCH|NODES|PAGES|PRINT|RAISE|ROUND|SHIFT|SPACE|SPOTS|STAMP|STATE|TASKS|TIMES|TRMAC|ULINE|UNION|VALUE|WIDTH|EQUAL|LOG10|TRUNC|BLOB|CASE|CEIL|CLOB|COND|EXIT|FILE|GAPS|HOLD|INCL|INTO|KEEP|KEYS|LAST|LINE|LONG|LPAD|MAIL|MODE|OPEN|PINK|READ|ROWS|TEST|THEN|ZERO|AREA|BACK|BADI|BYTE|CAST|EDIT|EXEC|FAIL|FIND|FKEQ|FONT|FREE|GKEQ|HIDE|INIT|ITNO|LATE|LOOP|MAIN|MARK|MOVE|NEXT|NULL|RISK|ROLE|UNIT|WAIT|ZONE|BASE|CALL|CODE|DATA|DATE|FKGE|GKGE|HIGH|KIND|LEFT|LIST|MASK|MESH|NAME|NODE|PACK|PAGE|POOL|SEND|SIGN|SIZE|SOME|STOP|TASK|TEXT|TIME|USER|VARY|WITH|WORD|BLUE|CONV|COPY|DEEP|ELSE|FORM|FROM|HINT|ICON|JOIN|LIKE|LOAD|ONLY|PART|SCAN|SKIP|SORT|TYPE|UNIX|VIEW|WHEN|WORK|ACOS|ASIN|ATAN|COSH|EACH|FRAC|LESS|RTTI|SINH|SQRT|TANH|AVG|BIT|DIV|ISO|LET|OUT|PAD|SQL|ALL|CI_|CPI|END|LOB|LPI|MAX|MIN|NEW|OLE|RUN|SET|\?TO|YES|ABS|ADD|AND|BIG|FOR|HDB|JOB|LOW|NOT|SAP|TRY|VIA|XML|ANY|GET|IDS|KEY|MOD|OFF|PUT|RAW|RED|REF|SUM|TAB|XSD|CNT|COS|EXP|LOG|SIN|TAN|XOR|AT|CO|CP|DO|GT|ID|IF|NS|OR|BT|CA|CS|GE|NA|NB|EQ|IN|LT|NE|NO|OF|ON|PF|TO|AS|BY|CN|IS|LE|NP|UP|E|I|M|O|Z|C|X)\b/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}},15465:function(V){"use strict";V.exports=w,w.displayName="abnf",w.aliases=[];function w(h){(function(y){var N="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";y.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+N+"|<"+N+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(h)}},42746:function(V){"use strict";V.exports=w,w.displayName="actionscript",w.aliases=[];function w(h){h.languages.actionscript=h.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),h.languages.actionscript["class-name"].alias="function",delete h.languages.actionscript.parameter,delete h.languages.actionscript["literal-property"],h.languages.markup&&h.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:h.languages.markup}})}},93281:function(V){"use strict";V.exports=w,w.displayName="ada",w.aliases=[];function w(h){h.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],"attr-name":/\b'\w+/,keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}},95143:function(V){"use strict";V.exports=w,w.displayName="agda",w.aliases=[];function w(h){(function(y){y.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(h)}},65924:function(V){"use strict";V.exports=w,w.displayName="al",w.aliases=[];function w(h){h.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}},65043:function(V){"use strict";V.exports=w,w.displayName="antlr4",w.aliases=["g4"];function w(h){h.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},h.languages.g4=h.languages.antlr4}},43556:function(V){"use strict";V.exports=w,w.displayName="apacheconf",w.aliases=[];function w(h){h.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}},14901:function(V,w,h){"use strict";var y=h(69435);V.exports=N,N.displayName="apex",N.aliases=[];function N(O){O.register(y),function(B){var _=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,K=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(/<keyword>/g,function(){return _.source});function I(rt){return RegExp(rt.replace(/<CLASS-NAME>/g,function(){return K}),"i")}var dt={keyword:_,punctuation:/[()\[\]{};,:.<>]/};B.languages.apex={comment:B.languages.clike.comment,string:B.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:B.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:I(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source),lookbehind:!0,inside:dt},{pattern:I(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:dt},{pattern:I(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:dt}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:_,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<<?=?|>{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(O)}},4248:function(V){"use strict";V.exports=w,w.displayName="apl",w.aliases=[];function w(h){h.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}},17758:function(V){"use strict";V.exports=w,w.displayName="applescript",w.aliases=[];function w(h){h.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}},33335:function(V){"use strict";V.exports=w,w.displayName="aql",w.aliases=[];function w(h){h.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}},17427:function(V,w,h){"use strict";var y=h(87071);V.exports=N,N.displayName="arduino",N.aliases=["ino"];function N(O){O.register(y),O.languages.arduino=O.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),O.languages.ino=O.languages.arduino}},22956:function(V){"use strict";V.exports=w,w.displayName="arff",w.aliases=[];function w(h){h.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}},56007:function(V){"use strict";V.exports=w,w.displayName="asciidoc",w.aliases=["adoc"];function w(h){(function(y){var N={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},O=y.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:N,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)<?\d*>/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:N.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:N,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function B(_){_=_.split(" ");for(var K={},I=0,dt=_.length;I<dt;I++)K[_[I]]=O[_[I]];return K}N.inside.interpreted.inside.rest=B("macro inline replacement entity"),O["passthrough-block"].inside.rest=B("macro"),O["literal-block"].inside.rest=B("callout"),O.table.inside.rest=B("comment-block passthrough-block literal-block other-block list-punctuation indented-block comment title attribute-entry attributes hr page-break admonition list-label callout macro inline replacement entity line-continuation"),O["other-block"].inside.rest=B("table list-punctuation indented-block comment attribute-entry attributes hr page-break admonition list-label macro inline replacement entity line-continuation"),O.title.inside.rest=B("macro inline replacement entity"),y.hooks.add("wrap",function(_){_.type==="entity"&&(_.attributes.title=_.content.value.replace(/&/,"&"))}),y.languages.adoc=y.languages.asciidoc})(h)}},45652:function(V){"use strict";V.exports=w,w.displayName="asm6502",w.aliases=[];function w(h){h.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}},33819:function(V){"use strict";V.exports=w,w.displayName="asmatmel",w.aliases=[];function w(h){h.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}},84230:function(V,w,h){"use strict";var y=h(87648);V.exports=N,N.displayName="aspnet",N.aliases=[];function N(O){O.register(y),O.languages.aspnet=O.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:O.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:O.languages.csharp}}}),O.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,O.languages.insertBefore("inside","punctuation",{directive:O.languages.aspnet.directive},O.languages.aspnet.tag.inside["attr-value"]),O.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),O.languages.insertBefore("aspnet",O.languages.javascript?"script":"tag",{"asp-script":{pattern:/(<script(?=.*runat=['"]?server\b)[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:O.languages.csharp||{}}})}},20803:function(V){"use strict";V.exports=w,w.displayName="autohotkey",w.aliases=[];function w(h){h.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,selector:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,important:/#\b(?:AllowSameLineComments|ClipboardTimeout|CommentFlag|DerefChar|ErrorStdOut|EscapeChar|HotkeyInterval|HotkeyModifierTimeout|Hotstring|If|IfTimeout|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Include|IncludeAgain|InputLevel|InstallKeybdHook|InstallMouseHook|KeyHistory|MaxHotkeysPerInterval|MaxMem|MaxThreads|MaxThreadsBuffer|MaxThreadsPerHotkey|MenuMaskKey|NoEnv|NoTrayIcon|Persistent|SingleInstance|UseHook|Warn|WinActivateForce)\b/i,keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}},65235:function(V){"use strict";V.exports=w,w.displayName="autoit",w.aliases=[];function w(h){h.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}},52406:function(V){"use strict";V.exports=w,w.displayName="avisynth",w.aliases=["avs"];function w(h){(function(y){function N(rt,Q){return rt.replace(/<<(\d+)>>/g,function(kt,Y){return Q[+Y]})}function O(rt,Q,kt){return RegExp(N(rt,Q),kt||"")}var B=/bool|clip|float|int|string|val/.source,_=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),K=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),I=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),dt=[_,K,I].join("|");y.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:O(/\b(?:<<0>>)\s+("?)\w+\1/.source,[B],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:O(/\b(?:<<0>>)\b/.source,[dt],"i"),alias:"function"},"type-cast":{pattern:O(/\b(?:<<0>>)(?=\s*\()/.source,[B],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},y.languages.avs=y.languages.avisynth})(h)}},79571:function(V){"use strict";V.exports=w,w.displayName="avroIdl",w.aliases=[];function w(h){h.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},h.languages.avdl=h.languages["avro-idl"]}},3058:function(V){"use strict";V.exports=w,w.displayName="bash",w.aliases=["shell"];function w(h){(function(y){var N="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",O={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},B={bash:O,environment:{pattern:RegExp("\\$"+N),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+N),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};y.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+N),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:B},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:O}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:B},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:B.entity}}],environment:{pattern:RegExp("\\$?"+N),alias:"constant"},variable:B.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},O.inside=y.languages.bash;for(var _=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],K=B.variable[1].inside,I=0;I<_.length;I++)K[_[I]]=y.languages.bash[_[I]];y.languages.shell=y.languages.bash})(h)}},51422:function(V){"use strict";V.exports=w,w.displayName="basic",w.aliases=[];function w(h){h.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}},1618:function(V){"use strict";V.exports=w,w.displayName="batch",w.aliases=[];function w(h){(function(y){var N=/%%?[~:\w]+%?|!\S+!/,O={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},B=/"(?:[\\"]"|[^"])*"(?!")/,_=/(?:\b|-)\d+\b/;y.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:B,parameter:O,variable:N,number:_,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:B,parameter:O,variable:N,number:_,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:B,parameter:O,variable:[N,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:_,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:B,parameter:O,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:N,number:_,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(h)}},2505:function(V){"use strict";V.exports=w,w.displayName="bbcode",w.aliases=["shortcode"];function w(h){h.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},h.languages.shortcode=h.languages.bbcode}},51274:function(V){"use strict";V.exports=w,w.displayName="bicep",w.aliases=[];function w(h){h.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},h.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=h.languages.bicep}},23796:function(V){"use strict";V.exports=w,w.displayName="birb",w.aliases=[];function w(h){h.languages.birb=h.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),h.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}},13979:function(V,w,h){"use strict";var y=h(79440);V.exports=N,N.displayName="bison",N.aliases=[];function N(O){O.register(y),O.languages.bison=O.languages.extend("c",{}),O.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:O.languages.c}},comment:O.languages.c.comment,string:O.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}},87994:function(V){"use strict";V.exports=w,w.displayName="bnf",w.aliases=["rbnf"];function w(h){h.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},h.languages.rbnf=h.languages.bnf}},47035:function(V){"use strict";V.exports=w,w.displayName="brainfuck",w.aliases=[];function w(h){h.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}},36142:function(V){"use strict";V.exports=w,w.displayName="brightscript",w.aliases=[];function w(h){h.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},h.languages.brightscript["directive-statement"].inside.expression.inside=h.languages.brightscript}},85290:function(V){"use strict";V.exports=w,w.displayName="bro",w.aliases=[];function w(h){h.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}},7407:function(V){"use strict";V.exports=w,w.displayName="bsl",w.aliases=[];function w(h){h.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},h.languages.oscript=h.languages.bsl}},79440:function(V){"use strict";V.exports=w,w.displayName="c",w.aliases=[];function w(h){h.languages.c=h.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),h.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),h.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},h.languages.c.string],char:h.languages.c.char,comment:h.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:h.languages.c}}}}),h.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete h.languages.c.boolean}},7110:function(V){"use strict";V.exports=w,w.displayName="cfscript",w.aliases=[];function w(h){h.languages.cfscript=h.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),h.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete h.languages.cfscript["class-name"],h.languages.cfc=h.languages.cfscript}},73435:function(V,w,h){"use strict";var y=h(87071);V.exports=N,N.displayName="chaiscript",N.aliases=[];function N(O){O.register(y),O.languages.chaiscript=O.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[O.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),O.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),O.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:O.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}},91372:function(V){"use strict";V.exports=w,w.displayName="cil",w.aliases=[];function w(h){h.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}},9720:function(V){"use strict";V.exports=w,w.displayName="clike",w.aliases=[];function w(h){h.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}},63663:function(V){"use strict";V.exports=w,w.displayName="clojure",w.aliases=[];function w(h){h.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}},92987:function(V){"use strict";V.exports=w,w.displayName="cmake",w.aliases=[];function w(h){h.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_(?:BINARY_DIR|DESCRIPTION|HOMEPAGE_URL|NAME|SOURCE_DIR|VERSION|VERSION_(?:MAJOR|MINOR|PATCH|TWEAK))|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE|XCODE_VERSION))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|GLOBAL_KEYWORD|GLOBAL_PROJECT_TYPES|GLOBAL_ROOTNAMESPACE|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}},91657:function(V){"use strict";V.exports=w,w.displayName="cobol",w.aliases=[];function w(h){h.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}},34367:function(V){"use strict";V.exports=w,w.displayName="coffeescript",w.aliases=["coffee"];function w(h){(function(y){var N=/#(?!\{).+/,O={pattern:/#\{[^}]+\}/,alias:"variable"};y.languages.coffeescript=y.languages.extend("javascript",{comment:N,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:O}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),y.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:N,interpolation:O}}}),y.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:y.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:O}}]}),y.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete y.languages.coffeescript["template-string"],y.languages.coffee=y.languages.coffeescript})(h)}},35348:function(V){"use strict";V.exports=w,w.displayName="concurnas",w.aliases=["conc"];function w(h){h.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},h.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:h.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:h.languages.concurnas},string:/[\s\S]+/}}}),h.languages.conc=h.languages.concurnas}},26841:function(V){"use strict";V.exports=w,w.displayName="coq",w.aliases=[];function w(h){(function(y){for(var N=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,O=0;O<2;O++)N=N.replace(/<self>/g,function(){return N});N=N.replace(/<self>/g,"[]"),y.languages.coq={comment:RegExp(N),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source.replace(/<comment>/g,function(){return N})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(N),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(h)}},87071:function(V,w,h){"use strict";var y=h(79440);V.exports=N,N.displayName="cpp",N.aliases=[];function N(O){O.register(y),function(B){var _=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,K=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return _.source});B.languages.cpp=B.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return _.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:_,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),B.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return K})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),B.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:B.languages.cpp}}}}),B.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),B.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:B.languages.extend("cpp",{})}}),B.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},B.languages.cpp["base-clause"])}(O)}},13652:function(V,w,h){"use strict";var y=h(75308);V.exports=N,N.displayName="crystal",N.aliases=[];function N(O){O.register(y),function(B){B.languages.crystal=B.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,B.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),B.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:B.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:B.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(O)}},87648:function(V){"use strict";V.exports=w,w.displayName="csharp",w.aliases=["dotnet","cs"];function w(h){(function(y){function N(ln,zt){return ln.replace(/<<(\d+)>>/g,function(nt,it){return"(?:"+zt[+it]+")"})}function O(ln,zt,nt){return RegExp(N(ln,zt),nt||"")}function B(ln,zt){for(var nt=0;nt<zt;nt++)ln=ln.replace(/<<self>>/g,function(){return"(?:"+ln+")"});return ln.replace(/<<self>>/g,"[^\\s\\S]")}var _={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function K(ln){return"\\b(?:"+ln.trim().replace(/ /g,"|")+")\\b"}var I=K(_.typeDeclaration),dt=RegExp(K(_.type+" "+_.typeDeclaration+" "+_.contextual+" "+_.other)),rt=K(_.typeDeclaration+" "+_.contextual+" "+_.other),Q=K(_.type+" "+_.typeDeclaration+" "+_.other),kt=B(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),Y=B(/\((?:[^()]|<<self>>)*\)/.source,2),Yt=/@?\b[A-Za-z_]\w*\b/.source,At=N(/<<0>>(?:\s*<<1>>)?/.source,[Yt,kt]),vt=N(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[rt,At]),Tt=/\[\s*(?:,\s*)*\]/.source,Mt=N(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[vt,Tt]),ft=N(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[kt,Y,Tt]),It=N(/\(<<0>>+(?:,<<0>>+)+\)/.source,[ft]),$t=N(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[It,vt,Tt]),Nt={keyword:dt,punctuation:/[<>()?,.:[\]]/},Ut=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,et=/"(?:\\.|[^\\"\r\n])*"/.source,Rt=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;y.languages.csharp=y.languages.extend("clike",{string:[{pattern:O(/(^|[^$\\])<<0>>/.source,[Rt]),lookbehind:!0,greedy:!0},{pattern:O(/(^|[^@$\\])<<0>>/.source,[et]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:O(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[vt]),lookbehind:!0,inside:Nt},{pattern:O(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[Yt,$t]),lookbehind:!0,inside:Nt},{pattern:O(/(\busing\s+)<<0>>(?=\s*=)/.source,[Yt]),lookbehind:!0},{pattern:O(/(\b<<0>>\s+)<<1>>/.source,[I,At]),lookbehind:!0,inside:Nt},{pattern:O(/(\bcatch\s*\(\s*)<<0>>/.source,[vt]),lookbehind:!0,inside:Nt},{pattern:O(/(\bwhere\s+)<<0>>/.source,[Yt]),lookbehind:!0},{pattern:O(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[Mt]),lookbehind:!0,inside:Nt},{pattern:O(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[$t,Q,Yt]),inside:Nt}],keyword:dt,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),y.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),y.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:O(/([(,]\s*)<<0>>(?=\s*:)/.source,[Yt]),lookbehind:!0,alias:"punctuation"}}),y.languages.insertBefore("csharp","class-name",{namespace:{pattern:O(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[Yt]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:O(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[Y]),lookbehind:!0,alias:"class-name",inside:Nt},"return-type":{pattern:O(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[$t,vt]),inside:Nt,alias:"class-name"},"constructor-invocation":{pattern:O(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[$t]),lookbehind:!0,inside:Nt,alias:"class-name"},"generic-method":{pattern:O(/<<0>>\s*<<1>>(?=\s*\()/.source,[Yt,kt]),inside:{function:O(/^<<0>>/.source,[Yt]),generic:{pattern:RegExp(kt),alias:"class-name",inside:Nt}}},"type-list":{pattern:O(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[I,At,Yt,$t,dt.source,Y,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:O(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[At,Y]),lookbehind:!0,greedy:!0,inside:y.languages.csharp},keyword:dt,"class-name":{pattern:RegExp($t),greedy:!0,inside:Nt},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var Lt=et+"|"+Ut,Kt=N(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[Lt]),Qt=B(N(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[Kt]),2),ie=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,yt=N(/<<0>>(?:\s*\(<<1>>*\))?/.source,[vt,Qt]);y.languages.insertBefore("csharp","class-name",{attribute:{pattern:O(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[ie,yt]),lookbehind:!0,greedy:!0,inside:{target:{pattern:O(/^<<0>>(?=\s*:)/.source,[ie]),alias:"keyword"},"attribute-arguments":{pattern:O(/\(<<0>>*\)/.source,[Qt]),inside:y.languages.csharp},"class-name":{pattern:RegExp(vt),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var ae=/:[^}\r\n]+/.source,Ht=B(N(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[Kt]),2),Pe=N(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Ht,ae]),ge=B(N(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[Lt]),2),we=N(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[ge,ae]);function pe(ln,zt){return{interpolation:{pattern:O(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[ln]),lookbehind:!0,inside:{"format-string":{pattern:O(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[zt,ae]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:y.languages.csharp}}},string:/[\s\S]+/}}y.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:O(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[Pe]),lookbehind:!0,greedy:!0,inside:pe(Pe,Ht)},{pattern:O(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[we]),lookbehind:!0,greedy:!0,inside:pe(we,ge)}],char:{pattern:RegExp(Ut),greedy:!0}}),y.languages.dotnet=y.languages.cs=y.languages.csharp})(h)}},10617:function(V,w,h){"use strict";var y=h(87648);V.exports=N,N.displayName="cshtml",N.aliases=["razor"];function N(O){O.register(y),function(B){var _=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,K=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function I(Mt,ft){for(var It=0;It<ft;It++)Mt=Mt.replace(/<self>/g,function(){return"(?:"+Mt+")"});return Mt.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+K+")").replace(/<comment>/g,"(?:"+_+")")}var dt=I(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),rt=I(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,2),Q=I(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),kt=I(/<(?:[^<>'"@/]|<str>|<comment>|<self>)*>/.source,2),Y=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,Yt=/(?!\d)[^\s>\/=$<%]+/.source+Y+/\s*\/?>/.source,At=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+Y+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+Yt+"|"+I(/<\1/.source+Y+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+Yt+"|<self>")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/</.source+Yt+")";B.languages.cshtml=B.languages.extend("markup",{});var vt=B.languages.insertBefore("csharp","string",{html:{pattern:RegExp(At),greedy:!0,inside:B.languages.cshtml}},{csharp:B.languages.extend("csharp",{})}),Tt={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:vt};B.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[Q,/(?:code|functions)\s*/.source+Q,/(?:for|foreach|lock|switch|using|while)\s*/.source+dt+/\s*/.source+Q,/do\s*/.source+Q+/\s*while\s*/.source+dt+/(?:\s*;)?/.source,/try\s*/.source+Q+/\s*catch\s*/.source+dt+/\s*/.source+Q+/\s*finally\s*/.source+Q,/if\s*/.source+dt+/\s*/.source+Q+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+dt+")?"+/\s*/.source+Q+")*"].join("|")+")"),lookbehind:!0,greedy:!0,inside:{keyword:/^@\w*/,csharp:Tt}},directive:{pattern:/^([ \t]*)@(?:addTagHelper|attribute|implements|inherits|inject|layout|model|namespace|page|preservewhitespace|removeTagHelper|section|tagHelperPrefix|using)(?=\s).*/m,lookbehind:!0,greedy:!0,inside:{keyword:/^@\w+/,csharp:Tt}},value:{pattern:RegExp(/(^|[^@])@/.source+/(?:await\b\s*)?/.source+"(?:"+/\w+\b/.source+"|"+dt+")(?:"+/[?!]?\.\w+\b/.source+"|"+dt+"|"+rt+"|"+kt+dt+")*"),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:Tt}},"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),B.languages.razor=B.languages.cshtml}(O)}},5348:function(V){"use strict";V.exports=w,w.displayName="csp",w.aliases=[];function w(h){(function(y){function N(O){return RegExp(/([ \t])/.source+"(?:"+O+")"+/(?=[\s;]|$)/.source,"i")}y.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:N(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:N(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:N(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:N(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:N(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:N(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:N(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(h)}},71053:function(V){"use strict";V.exports=w,w.displayName="cssExtras",w.aliases=[];function w(h){(function(y){var N=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,O;y.languages.css.selector={pattern:y.languages.css.selector.pattern,lookbehind:!0,inside:O={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+N.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[N,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},y.languages.css.atrule.inside["selector-function-argument"].inside=O,y.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var B={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},_={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};y.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:B,number:_,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:B,number:_})})(h)}},54212:function(V){"use strict";V.exports=w,w.displayName="css",w.aliases=[];function w(h){(function(y){var N=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;y.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+N.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+N.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+N.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:N,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},y.languages.css.atrule.inside.rest=y.languages.css;var O=y.languages.markup;O&&(O.tag.addInlined("style","css"),O.tag.addAttribute("style","css"))})(h)}},69820:function(V){"use strict";V.exports=w,w.displayName="csv",w.aliases=[];function w(h){h.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}},41929:function(V){"use strict";V.exports=w,w.displayName="cypher",w.aliases=[];function w(h){h.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}},51837:function(V){"use strict";V.exports=w,w.displayName="d",w.aliases=[];function w(h){h.languages.d=h.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),h.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),h.languages.insertBefore("d","keyword",{property:/\B@\w*/}),h.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}},4182:function(V){"use strict";V.exports=w,w.displayName="dart",w.aliases=[];function w(h){(function(y){var N=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],O=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,B={pattern:RegExp(O+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};y.languages.dart=y.languages.extend("clike",{"class-name":[B,{pattern:RegExp(O+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:B.inside}],keyword:N,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),y.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:y.languages.dart}}},string:/[\s\S]+/}},string:void 0}),y.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),y.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":B,keyword:N,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(h)}},22117:function(V){"use strict";V.exports=w,w.displayName="dataweave",w.aliases=[];function w(h){(function(y){y.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(h)}},95627:function(V){"use strict";V.exports=w,w.displayName="dax",w.aliases=[];function w(h){h.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}},34265:function(V){"use strict";V.exports=w,w.displayName="dhall",w.aliases=[];function w(h){h.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},h.languages.dhall.string.inside.interpolation.inside.expression.inside=h.languages.dhall}},50618:function(V){"use strict";V.exports=w,w.displayName="diff",w.aliases=[];function w(h){(function(y){y.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var N={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(N).forEach(function(O){var B=N[O],_=[];/^\w+$/.test(O)||_.push(/\w+/.exec(O)[0]),O==="diff"&&_.push("bold"),y.languages.diff[O]={pattern:RegExp("^(?:["+B+`].*(?:\r
|
|
|
?|
|
|
|
|(?![\\s\\S])))+`,"m"),alias:_,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(O)[0]}}}}),Object.defineProperty(y.languages.diff,"PREFIXES",{value:N})})(h)}},32126:function(V,w,h){"use strict";var y=h(51478);V.exports=N,N.displayName="django",N.aliases=["jinja2"];function N(O){O.register(y),function(B){B.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var _=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,K=B.languages["markup-templating"];B.hooks.add("before-tokenize",function(I){K.buildPlaceholders(I,"django",_)}),B.hooks.add("after-tokenize",function(I){K.tokenizePlaceholders(I,"django")}),B.languages.jinja2=B.languages.django,B.hooks.add("before-tokenize",function(I){K.buildPlaceholders(I,"jinja2",_)}),B.hooks.add("after-tokenize",function(I){K.tokenizePlaceholders(I,"jinja2")})}(O)}},26737:function(V){"use strict";V.exports=w,w.displayName="dnsZoneFile",w.aliases=[];function w(h){h.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},h.languages["dns-zone"]=h.languages["dns-zone-file"]}},90134:function(V){"use strict";V.exports=w,w.displayName="docker",w.aliases=["dockerfile"];function w(h){(function(y){var N=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,O=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return N}),B=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,_=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return B}),K={pattern:RegExp(B),greedy:!0},I={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function dt(rt,Q){return rt=rt.replace(/<OPT>/g,function(){return _}).replace(/<SP>/g,function(){return O}),RegExp(rt,Q)}y.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:dt(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[K,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:dt(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:dt(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:dt(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:I,string:K,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:I},y.languages.dockerfile=y.languages.docker})(h)}},51348:function(V){"use strict";V.exports=w,w.displayName="dot",w.aliases=["gv"];function w(h){(function(y){var N="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!<!--)<(?:[^<>"']|"[^"]*"|'[^']*')+>|<!--(?:[^-]|-(?!->))*-->)*>/.source].join("|")+")",O={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:y.languages.markup}};function B(_,K){return RegExp(_.replace(/<ID>/g,function(){return N}),K)}y.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:B(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:O},"attr-value":{pattern:B(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:O},"attr-name":{pattern:B(/([\[;, \t\r\n])<ID>(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:O},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:B(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:O},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},y.languages.gv=y.languages.dot})(h)}},60841:function(V){"use strict";V.exports=w,w.displayName="ebnf",w.aliases=[];function w(h){h.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}},42857:function(V){"use strict";V.exports=w,w.displayName="editorconfig",w.aliases=[];function w(h){h.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}},81269:function(V){"use strict";V.exports=w,w.displayName="eiffel",w.aliases=[];function w(h){h.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}},31134:function(V,w,h){"use strict";var y=h(51478);V.exports=N,N.displayName="ejs",N.aliases=["eta"];function N(O){O.register(y),function(B){B.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:B.languages.javascript}},B.hooks.add("before-tokenize",function(_){var K=/<%(?!%)[\s\S]+?%>/g;B.languages["markup-templating"].buildPlaceholders(_,"ejs",K)}),B.hooks.add("after-tokenize",function(_){B.languages["markup-templating"].tokenizePlaceholders(_,"ejs")}),B.languages.eta=B.languages.ejs}(O)}},83125:function(V){"use strict";V.exports=w,w.displayName="elixir",w.aliases=[];function w(h){h.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},h.languages.elixir.string.forEach(function(y){y.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:h.languages.elixir}}}})}},9438:function(V){"use strict";V.exports=w,w.displayName="elm",w.aliases=[];function w(h){h.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}},27771:function(V,w,h){"use strict";var y=h(75308),N=h(51478);V.exports=O,O.displayName="erb",O.aliases=[];function O(B){B.register(y),B.register(N),function(_){_.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:_.languages.ruby}},_.hooks.add("before-tokenize",function(K){var I=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;_.languages["markup-templating"].buildPlaceholders(K,"erb",I)}),_.hooks.add("after-tokenize",function(K){_.languages["markup-templating"].tokenizePlaceholders(K,"erb")})}(B)}},86549:function(V){"use strict";V.exports=w,w.displayName="erlang",w.aliases=[];function w(h){h.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}},37079:function(V,w,h){"use strict";var y=h(29509),N=h(51478);V.exports=O,O.displayName="etlua",O.aliases=[];function O(B){B.register(y),B.register(N),function(_){_.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:_.languages.lua}},_.hooks.add("before-tokenize",function(K){var I=/<%[\s\S]+?%>/g;_.languages["markup-templating"].buildPlaceholders(K,"etlua",I)}),_.hooks.add("after-tokenize",function(K){_.languages["markup-templating"].tokenizePlaceholders(K,"etlua")})}(B)}},59250:function(V){"use strict";V.exports=w,w.displayName="excelFormula",w.aliases=[];function w(h){h.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},h.languages.xlsx=h.languages.xls=h.languages["excel-formula"]}},81226:function(V){"use strict";V.exports=w,w.displayName="factor",w.aliases=[];function w(h){(function(y){var N={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},O={number:/\\[^\s']|%\w/},B={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:N},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:N},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:N}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:O.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:O},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:O}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:O}},_=function(rt){return(rt+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},K=function(rt){return new RegExp("(^|\\s)(?:"+rt.map(_).join("|")+")(?=\\s|$)")},I={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","<wrapper>","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated","<PRIVATE",">>>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","<slice>","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","<iota>","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","<reversed>","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","<repetition>","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","<fp-nan>","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(I).forEach(function(rt){B[rt].pattern=K(I[rt])});var dt=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","input<sequence","append-outputs","drop-inputs","inputs","smart-2reduce","drop-outputs","smart-reduce","preserving","smart-when","outputs","append-outputs-as","smart-unless","smart-if*","sum-outputs","input<sequence-unsafe","output>sequence"];B.combinators.pattern=K(dt),y.languages.factor=B})(h)}},65245:function(V){"use strict";V.exports=w,w.displayName="$false",w.aliases=[];function w(h){(function(y){y.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()<BDO®]/,alias:"bold"}}})(h)}},25040:function(V){"use strict";V.exports=w,w.displayName="firestoreSecurityRules",w.aliases=[];function w(h){h.languages["firestore-security-rules"]=h.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete h.languages["firestore-security-rules"]["class-name"],h.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}},40284:function(V){"use strict";V.exports=w,w.displayName="flow",w.aliases=[];function w(h){(function(y){y.languages.flow=y.languages.extend("javascript",{}),y.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),y.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete y.languages.flow.parameter,y.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(y.languages.flow.keyword)||(y.languages.flow.keyword=[y.languages.flow.keyword]),y.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(h)}},39187:function(V){"use strict";V.exports=w,w.displayName="fortran",w.aliases=[];function w(h){h.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}},34302:function(V){"use strict";V.exports=w,w.displayName="fsharp",w.aliases=[];function w(h){h.languages.fsharp=h.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|<?\|{1,3}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),h.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),h.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),h.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:h.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}},90515:function(V,w,h){"use strict";var y=h(51478);V.exports=N,N.displayName="ftl",N.aliases=[];function N(O){O.register(y),function(B){for(var _=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,K=0;K<2;K++)_=_.replace(/<expr>/g,function(){return _});_=_.replace(/<expr>/g,/[^\s\S]/.source);var I={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return _})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return _})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};I.string[1].inside.interpolation.inside.rest=I,B.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:I}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:I}}}},B.hooks.add("before-tokenize",function(dt){var rt=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return _}),"gi");B.languages["markup-templating"].buildPlaceholders(dt,"ftl",rt)}),B.hooks.add("after-tokenize",function(dt){B.languages["markup-templating"].tokenizePlaceholders(dt,"ftl")})}(O)}},33534:function(V){"use strict";V.exports=w,w.displayName="gap",w.aliases=[];function w(h){h.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},h.languages.gap.shell.inside.gap.inside=h.languages.gap}},9885:function(V){"use strict";V.exports=w,w.displayName="gcode",w.aliases=[];function w(h){h.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}},76364:function(V){"use strict";V.exports=w,w.displayName="gdscript",w.aliases=[];function w(h){h.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}},56452:function(V){"use strict";V.exports=w,w.displayName="gedcom",w.aliases=[];function w(h){h.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},tag:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"string"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}},8477:function(V){"use strict";V.exports=w,w.displayName="gherkin",w.aliases=[];function w(h){(function(y){var N=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;y.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+N+")(?:"+N+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(N),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(h)}},58230:function(V){"use strict";V.exports=w,w.displayName="git",w.aliases=[];function w(h){h.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}},66192:function(V,w,h){"use strict";var y=h(79440);V.exports=N,N.displayName="glsl",N.aliases=[];function N(O){O.register(y),O.languages.glsl=O.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}},81084:function(V){"use strict";V.exports=w,w.displayName="gml",w.aliases=[];function w(h){h.languages.gamemakerlanguage=h.languages.gml=h.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}},50318:function(V){"use strict";V.exports=w,w.displayName="gn",w.aliases=["gni"];function w(h){h.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},h.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=h.languages.gn,h.languages.gni=h.languages.gn}},95769:function(V){"use strict";V.exports=w,w.displayName="goModule",w.aliases=[];function w(h){h.languages["go-mod"]=h.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}},14155:function(V){"use strict";V.exports=w,w.displayName="go",w.aliases=[];function w(h){h.languages.go=h.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),h.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete h.languages.go["class-name"]}},92823:function(V){"use strict";V.exports=w,w.displayName="graphql",w.aliases=[];function w(h){h.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:h.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},h.hooks.add("after-tokenize",function(N){if(N.language!=="graphql")return;var O=N.tokens.filter(function(Tt){return typeof Tt!="string"&&Tt.type!=="comment"&&Tt.type!=="scalar"}),B=0;function _(Tt){return O[B+Tt]}function K(Tt,Mt){Mt=Mt||0;for(var ft=0;ft<Tt.length;ft++){var It=_(ft+Mt);if(!It||It.type!==Tt[ft])return!1}return!0}function I(Tt,Mt){for(var ft=1,It=B;It<O.length;It++){var $t=O[It],Nt=$t.content;if($t.type==="punctuation"&&typeof Nt=="string"){if(Tt.test(Nt))ft++;else if(Mt.test(Nt)&&(ft--,ft===0))return It}}return-1}function dt(Tt,Mt){var ft=Tt.alias;ft?Array.isArray(ft)||(Tt.alias=ft=[ft]):Tt.alias=ft=[],ft.push(Mt)}for(;B<O.length;){var rt=O[B++];if(rt.type==="keyword"&&rt.content==="mutation"){var Q=[];if(K(["definition-mutation","punctuation"])&&_(1).content==="("){B+=2;var kt=I(/^\($/,/^\)$/);if(kt===-1)continue;for(;B<kt;B++){var Y=_(0);Y.type==="variable"&&(dt(Y,"variable-input"),Q.push(Y.content))}B=kt+1}if(K(["punctuation","property-query"])&&_(0).content==="{"&&(B++,dt(_(0),"property-mutation"),Q.length>0)){var Yt=I(/^\{$/,/^\}$/);if(Yt===-1)continue;for(var At=B;At<Yt;At++){var vt=O[At];vt.type==="variable"&&Q.indexOf(vt.content)>=0&&dt(vt,"variable-input")}}}}})}},63092:function(V){"use strict";V.exports=w,w.displayName="groovy",w.aliases=[];function w(h){h.languages.groovy=h.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),h.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),h.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),h.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),h.hooks.add("wrap",function(y){if(y.language==="groovy"&&y.type==="string"){var N=y.content.value[0];if(N!="'"){var O=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;N==="$"&&(O=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),y.content.value=y.content.value.replace(/</g,"<").replace(/&/g,"&"),y.content=h.highlight(y.content.value,{expression:{pattern:O,lookbehind:!0,inside:h.languages.groovy}}),y.classes.push(N==="/"?"regex":"gstring")}}})}},21550:function(V,w,h){"use strict";var y=h(75308);V.exports=N,N.displayName="haml",N.aliases=[];function N(O){O.register(y),function(B){B.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:B.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:B.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:B.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:B.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:B.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:B.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:B.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var _="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",K=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],I={},dt=0,rt=K.length;dt<rt;dt++){var Q=K[dt];Q=typeof Q=="string"?{filter:Q,language:Q}:Q,B.languages[Q.language]&&(I["filter-"+Q.filter]={pattern:RegExp(_.replace("{{filter_name}}",function(){return Q.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[Q.language,"language-"+Q.language],inside:B.languages[Q.language]}}})}B.languages.insertBefore("haml","filter",I)}(O)}},29710:function(V,w,h){"use strict";var y=h(51478);V.exports=N,N.displayName="handlebars",N.aliases=["hbs"];function N(O){O.register(y),function(B){B.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},B.hooks.add("before-tokenize",function(_){var K=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;B.languages["markup-templating"].buildPlaceholders(_,"handlebars",K)}),B.hooks.add("after-tokenize",function(_){B.languages["markup-templating"].tokenizePlaceholders(_,"handlebars")}),B.languages.hbs=B.languages.handlebars}(O)}},2050:function(V){"use strict";V.exports=w,w.displayName="haskell",w.aliases=["hs"];function w(h){h.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},h.languages.hs=h.languages.haskell}},67967:function(V){"use strict";V.exports=w,w.displayName="haxe",w.aliases=[];function w(h){h.languages.haxe=h.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<<?|>{1,3}|[-+*/%!=&|^])=?|[?:~]/}),h.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:h.languages.haxe}}},string:/[\s\S]+/}}}),h.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:h.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),h.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}},29138:function(V){"use strict";V.exports=w,w.displayName="hcl",w.aliases=[];function w(h){h.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}},67915:function(V,w,h){"use strict";var y=h(79440);V.exports=N,N.displayName="hlsl",N.aliases=[];function N(O){O.register(y),O.languages.hlsl=O.languages.extend("c",{"class-name":[O.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}},54853:function(V){"use strict";V.exports=w,w.displayName="hoon",w.aliases=[];function w(h){h.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}},68330:function(V){"use strict";V.exports=w,w.displayName="hpkp",w.aliases=[];function w(h){h.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}},76823:function(V){"use strict";V.exports=w,w.displayName="hsts",w.aliases=[];function w(h){h.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}},86712:function(V){"use strict";V.exports=w,w.displayName="http",w.aliases=[];function w(h){(function(y){function N(Q){return RegExp("(^(?:"+Q+"):[ ]*(?![ ]))[^]+","i")}y.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:y.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:N(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:y.languages.csp},{pattern:N(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:y.languages.hpkp},{pattern:N(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:y.languages.hsts},{pattern:N(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var O=y.languages,B={"application/javascript":O.javascript,"application/json":O.json||O.javascript,"application/xml":O.xml,"text/xml":O.xml,"text/html":O.html,"text/css":O.css,"text/plain":O.plain},_={"application/json":!0,"application/xml":!0};function K(Q){var kt=Q.replace(/^[a-z]+\//,""),Y="\\w+/(?:[\\w.-]+\\+)+"+kt+"(?![+\\w.-])";return"(?:"+Q+"|"+Y+")"}var I;for(var dt in B)if(B[dt]){I=I||{};var rt=_[dt]?K(dt):dt;I[dt.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+rt+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:B[dt]}}I&&y.languages.insertBefore("http","header",I)})(h)}},72252:function(V){"use strict";V.exports=w,w.displayName="ichigojam",w.aliases=[];function w(h){h.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}},78634:function(V){"use strict";V.exports=w,w.displayName="icon",w.aliases=[];function w(h){h.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|<?=?)|>>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}},43583:function(V){"use strict";V.exports=w,w.displayName="icuMessageFormat",w.aliases=[];function w(h){(function(y){function N(dt,rt){return rt<=0?/[]/.source:dt.replace(/<SELF>/g,function(){return N(dt,rt-1)})}var O=/'[{}:=,](?:[^']|'')*'(?!')/,B={pattern:/''/,greedy:!0,alias:"operator"},_={pattern:O,greedy:!0,inside:{escape:B}},K=N(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return O.source}),8),I={pattern:RegExp(K),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};y.languages["icu-message-format"]={argument:{pattern:RegExp(K),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":I,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":I,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+N(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:B,string:_},I.inside.message.inside=y.languages["icu-message-format"],y.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=y.languages["icu-message-format"]})(h)}},23328:function(V,w,h){"use strict";var y=h(2050);V.exports=N,N.displayName="idris",N.aliases=["idr"];function N(O){O.register(y),O.languages.idris=O.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),O.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),O.languages.idr=O.languages.idris}},74494:function(V){"use strict";V.exports=w,w.displayName="iecst",w.aliases=[];function w(h){h.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}},46745:function(V){"use strict";V.exports=w,w.displayName="ignore",w.aliases=["gitignore","hgignore","npmignore"];function w(h){(function(y){y.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},y.languages.gitignore=y.languages.ignore,y.languages.hgignore=y.languages.ignore,y.languages.npmignore=y.languages.ignore})(h)}},22152:function(V){"use strict";V.exports=w,w.displayName="inform7",w.aliases=[];function w(h){h.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},h.languages.inform7.string.inside.substitution.inside.rest=h.languages.inform7,h.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}},83698:function(V){"use strict";V.exports=w,w.displayName="ini",w.aliases=[];function w(h){h.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}},26619:function(V){"use strict";V.exports=w,w.displayName="io",w.aliases=[];function w(h){h.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<<?=?|:?:?=|\+\+?|--?|\*\*?|\/\/?|%|\|\|?|&&?|\b(?:and|not|or|return)\b|@@?|\?\??|\.\./,punctuation:/[{}[\];(),.:]/}}},53990:function(V){"use strict";V.exports=w,w.displayName="j",w.aliases=[];function w(h){h.languages.j={comment:{pattern:/\bNB\..*/,greedy:!0},string:{pattern:/'(?:''|[^'\r\n])*'/,greedy:!0},keyword:/\b(?:(?:CR|LF|adverb|conjunction|def|define|dyad|monad|noun|verb)\b|(?:assert|break|case|catch[dt]?|continue|do|else|elseif|end|fcase|for|for_\w+|goto_\w+|if|label_\w+|return|select|throw|try|while|whilst)\.)/,verb:{pattern:/(?!\^:|;\.|[=!][.:])(?:\{(?:\.|::?)?|p(?:\.\.?|:)|[=!\]]|[<>+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}},7093:function(V){"use strict";V.exports=w,w.displayName="java",w.aliases=[];function w(h){(function(y){var N=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,O=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,B={pattern:RegExp(O+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};y.languages.java=y.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[B,{pattern:RegExp(O+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:B.inside}],keyword:N,function:[y.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),y.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),y.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":B,keyword:N,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return N.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(h)}},4005:function(V,w,h){"use strict";var y=h(7093),N=h(53510);V.exports=O,O.displayName="javadoc",O.aliases=[];function O(B){B.register(y),B.register(N),function(_){var K=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,I=/#\s*\w+(?:\s*\([^()]*\))?/.source,dt=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,function(){return I});_.languages.javadoc=_.languages.extend("javadoclike",{}),_.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+dt+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:_.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:K,lookbehind:!0,inside:_.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:K,lookbehind:!0,inside:{tag:_.languages.markup.tag,entity:_.languages.markup.entity,code:{pattern:/.+/,inside:_.languages.java,alias:"language-java"}}}}}],tag:_.languages.markup.tag,entity:_.languages.markup.entity}),_.languages.javadoclike.addSupport("java",_.languages.javadoc)}(B)}},53510:function(V){"use strict";V.exports=w,w.displayName="javadoclike",w.aliases=[];function w(h){(function(y){var N=y.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function O(_,K){var I="doc-comment",dt=y.languages[_];if(dt){var rt=dt[I];if(!rt){var Q={};Q[I]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},dt=y.languages.insertBefore(_,"comment",Q),rt=dt[I]}if(rt instanceof RegExp&&(rt=dt[I]={pattern:rt}),Array.isArray(rt))for(var kt=0,Y=rt.length;kt<Y;kt++)rt[kt]instanceof RegExp&&(rt[kt]={pattern:rt[kt]}),K(rt[kt]);else K(rt)}}function B(_,K){typeof _=="string"&&(_=[_]),_.forEach(function(I){O(I,function(dt){dt.inside||(dt.inside={}),dt.inside.rest=K})})}Object.defineProperty(N,"addSupport",{value:B}),N.addSupport(["java","javascript","php"],N)})(h)}},88786:function(V){"use strict";V.exports=w,w.displayName="javascript",w.aliases=["js"];function w(h){h.languages.javascript=h.languages.extend("clike",{"class-name":[h.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),h.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,h.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:h.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:h.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:h.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:h.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:h.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),h.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:h.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),h.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),h.languages.markup&&(h.languages.markup.tag.addInlined("script","javascript"),h.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),h.languages.js=h.languages.javascript}},24799:function(V){"use strict";V.exports=w,w.displayName="javastacktrace",w.aliases=[];function w(h){h.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:<init>)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:<init>|[\w$]+)\()/,function:/(?:<init>|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}},97443:function(V){"use strict";V.exports=w,w.displayName="jexl",w.aliases=[];function w(h){h.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}},80746:function(V){"use strict";V.exports=w,w.displayName="jolie",w.aliases=[];function w(h){h.languages.jolie=h.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),h.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}},17015:function(V){"use strict";V.exports=w,w.displayName="jq",w.aliases=[];function w(h){(function(y){var N=/\\\((?:[^()]|\([^()]*\))*\)/.source,O=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return N})),B={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+N),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},_=y.languages.jq={comment:/#.*/,property:{pattern:RegExp(O.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:B},string:{pattern:O,lookbehind:!0,greedy:!0,inside:B},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};B.interpolation.inside.content.inside=_})(h)}},89246:function(V){"use strict";V.exports=w,w.displayName="jsExtras",w.aliases=[];function w(h){(function(y){y.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+y.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),y.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+y.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),y.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function N(dt,rt){return RegExp(dt.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),rt)}y.languages.insertBefore("javascript","keyword",{imports:{pattern:N(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:y.languages.javascript},exports:{pattern:N(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:y.languages.javascript}}),y.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),y.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),y.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:N(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var O=["function","function-variable","method","method-variable","property-access"],B=0;B<O.length;B++){var _=O[B],K=y.languages.javascript[_];y.util.type(K)==="RegExp"&&(K=y.languages.javascript[_]={pattern:K});var I=K.inside||{};K.inside=I,I["maybe-class-name"]=/^[A-Z][\s\S]*/}})(h)}},487:function(V){"use strict";V.exports=w,w.displayName="jsTemplates",w.aliases=[];function w(h){(function(y){var N=y.languages.javascript["template-string"],O=N.pattern.source,B=N.inside.interpolation,_=B.inside["interpolation-punctuation"],K=B.pattern.source;function I(At,vt){if(y.languages[At])return{pattern:RegExp("((?:"+vt+")\\s*)"+O),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:At}}}}y.languages.javascript["template-string"]=[I("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),I("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),I("svg",/\bsvg/.source),I("markdown",/\b(?:markdown|md)/.source),I("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),I("sql",/\bsql/.source),N].filter(Boolean);function dt(At,vt){return"___"+vt.toUpperCase()+"_"+At+"___"}function rt(At,vt,Tt){var Mt={code:At,grammar:vt,language:Tt};return y.hooks.run("before-tokenize",Mt),Mt.tokens=y.tokenize(Mt.code,Mt.grammar),y.hooks.run("after-tokenize",Mt),Mt.tokens}function Q(At){var vt={};vt["interpolation-punctuation"]=_;var Tt=y.tokenize(At,vt);if(Tt.length===3){var Mt=[1,1];Mt.push.apply(Mt,rt(Tt[1],y.languages.javascript,"javascript")),Tt.splice.apply(Tt,Mt)}return new y.Token("interpolation",Tt,B.alias,At)}function kt(At,vt,Tt){var Mt=y.tokenize(At,{interpolation:{pattern:RegExp(K),lookbehind:!0}}),ft=0,It={},$t=Mt.map(function(Rt){if(typeof Rt=="string")return Rt;for(var Lt=Rt.content,Kt;At.indexOf(Kt=dt(ft++,Tt))!==-1;);return It[Kt]=Lt,Kt}).join(""),Nt=rt($t,vt,Tt),Ut=Object.keys(It);ft=0;function et(Rt){for(var Lt=0;Lt<Rt.length;Lt++){if(ft>=Ut.length)return;var Kt=Rt[Lt];if(typeof Kt=="string"||typeof Kt.content=="string"){var Qt=Ut[ft],ie=typeof Kt=="string"?Kt:Kt.content,yt=ie.indexOf(Qt);if(yt!==-1){++ft;var ae=ie.substring(0,yt),Ht=Q(It[Qt]),Pe=ie.substring(yt+Qt.length),ge=[];if(ae&&ge.push(ae),ge.push(Ht),Pe){var we=[Pe];et(we),ge.push.apply(ge,we)}typeof Kt=="string"?(Rt.splice.apply(Rt,[Lt,1].concat(ge)),Lt+=ge.length-1):Kt.content=ge}}else{var pe=Kt.content;Array.isArray(pe)?et(pe):et([pe])}}}return et(Nt),new y.Token(Tt,Nt,"language-"+Tt,At)}var Y={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};y.hooks.add("after-tokenize",function(At){if(!(At.language in Y))return;function vt(Tt){for(var Mt=0,ft=Tt.length;Mt<ft;Mt++){var It=Tt[Mt];if(typeof It!="string"){var $t=It.content;if(!Array.isArray($t)){typeof $t!="string"&&vt([$t]);continue}if(It.type==="template-string"){var Nt=$t[1];if($t.length===3&&typeof Nt!="string"&&Nt.type==="embedded-code"){var Ut=Yt(Nt),et=Nt.alias,Rt=Array.isArray(et)?et[0]:et,Lt=y.languages[Rt];if(!Lt)continue;$t[1]=kt(Ut,Lt,Rt)}}else vt($t)}}}vt(At.tokens)});function Yt(At){return typeof At=="string"?At:Array.isArray(At)?At.map(Yt).join(""):Yt(At.content)}})(h)}},79539:function(V,w,h){"use strict";var y=h(53510),N=h(92784);V.exports=O,O.displayName="jsdoc",O.aliases=[];function O(B){B.register(y),B.register(N),function(_){var K=_.languages.javascript,I=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,dt="(@(?:arg|argument|param|property)\\s+(?:"+I+"\\s+)?)";_.languages.jsdoc=_.languages.extend("javadoclike",{parameter:{pattern:RegExp(dt+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),_.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(dt+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:K,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return I})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+I),lookbehind:!0,inside:{string:K.string,number:K.number,boolean:K.boolean,keyword:_.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:K,alias:"language-javascript"}}}}),_.languages.javadoclike.addSupport("javascript",_.languages.jsdoc)}(B)}},15628:function(V){"use strict";V.exports=w,w.displayName="json",w.aliases=["webmanifest"];function w(h){h.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},h.languages.webmanifest=h.languages.json}},14320:function(V,w,h){"use strict";var y=h(15628);V.exports=N,N.displayName="json5",N.aliases=[];function N(O){O.register(y),function(B){var _=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;B.languages.json5=B.languages.extend("json",{property:[{pattern:RegExp(_.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:_,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(O)}},73222:function(V,w,h){"use strict";var y=h(15628);V.exports=N,N.displayName="jsonp",N.aliases=[];function N(O){O.register(y),O.languages.jsonp=O.languages.extend("json",{punctuation:/[{}[\]();,.]/}),O.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}},92486:function(V){"use strict";V.exports=w,w.displayName="jsstacktrace",w.aliases=[];function w(h){h.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js|<unknown>|.*(?:node_modules|\(<anonymous>\)|\(<unknown>|<anonymous>$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}},24103:function(V){"use strict";V.exports=w,w.displayName="jsx",w.aliases=[];function w(h){(function(y){var N=y.util.clone(y.languages.javascript),O=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,B=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,_=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function K(rt,Q){return rt=rt.replace(/<S>/g,function(){return O}).replace(/<BRACES>/g,function(){return B}).replace(/<SPREAD>/g,function(){return _}),RegExp(rt,Q)}_=K(_).source,y.languages.jsx=y.languages.extend("markup",N),y.languages.jsx.tag.pattern=K(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),y.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,y.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,y.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,y.languages.jsx.tag.inside.comment=N.comment,y.languages.insertBefore("inside","attr-name",{spread:{pattern:K(/<SPREAD>/.source),inside:y.languages.jsx}},y.languages.jsx.tag),y.languages.insertBefore("inside","special-attr",{script:{pattern:K(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:y.languages.jsx}}},y.languages.jsx.tag);var I=function(rt){return rt?typeof rt=="string"?rt:typeof rt.content=="string"?rt.content:rt.content.map(I).join(""):""},dt=function(rt){for(var Q=[],kt=0;kt<rt.length;kt++){var Y=rt[kt],Yt=!1;if(typeof Y!="string"&&(Y.type==="tag"&&Y.content[0]&&Y.content[0].type==="tag"?Y.content[0].content[0].content==="</"?Q.length>0&&Q[Q.length-1].tagName===I(Y.content[0].content[1])&&Q.pop():Y.content[Y.content.length-1].content==="/>"||Q.push({tagName:I(Y.content[0].content[1]),openedBraces:0}):Q.length>0&&Y.type==="punctuation"&&Y.content==="{"?Q[Q.length-1].openedBraces++:Q.length>0&&Q[Q.length-1].openedBraces>0&&Y.type==="punctuation"&&Y.content==="}"?Q[Q.length-1].openedBraces--:Yt=!0),(Yt||typeof Y=="string")&&Q.length>0&&Q[Q.length-1].openedBraces===0){var At=I(Y);kt<rt.length-1&&(typeof rt[kt+1]=="string"||rt[kt+1].type==="plain-text")&&(At+=I(rt[kt+1]),rt.splice(kt+1,1)),kt>0&&(typeof rt[kt-1]=="string"||rt[kt-1].type==="plain-text")&&(At=I(rt[kt-1])+At,rt.splice(kt-1,1),kt--),rt[kt]=new y.Token("plain-text",At,null,At)}Y.content&&typeof Y.content!="string"&&dt(Y.content)}};y.hooks.add("after-tokenize",function(rt){rt.language!=="jsx"&&rt.language!=="tsx"||dt(rt.tokens)})})(h)}},40604:function(V){"use strict";V.exports=w,w.displayName="julia",w.aliases=[];function w(h){h.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}},23109:function(V){"use strict";V.exports=w,w.displayName="keepalived",w.aliases=[];function w(h){h.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}<ipv4>|(?:[\da-f]{1,4}:){0,5}:<ipv4>|::(?:[\da-f]{1,4}:){0,5}<ipv4>|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|<ipv4>(?:\/\d{1,2})?)\b/.source.replace(/<ipv4>/g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}},32082:function(V){"use strict";V.exports=w,w.displayName="keyman",w.aliases=[];function w(h){h.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}},77674:function(V){"use strict";V.exports=w,w.displayName="kotlin",w.aliases=["kt","kts"];function w(h){(function(y){y.languages.kotlin=y.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete y.languages.kotlin["class-name"];var N={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:y.languages.kotlin}};y.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:N},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:N},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete y.languages.kotlin.string,y.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),y.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),y.languages.kt=y.languages.kotlin,y.languages.kts=y.languages.kotlin})(h)}},37524:function(V){"use strict";V.exports=w,w.displayName="kumir",w.aliases=["kum"];function w(h){(function(y){var N=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function O(B,_){return RegExp(B.replace(/<nonId>/g,N),_)}y.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:O(/(^|[<nonId>])(?:да|нет)(?=[<nonId>]|$)/.source),lookbehind:!0},"operator-word":{pattern:O(/(^|[<nonId>])(?:и|или|не)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:O(/(^|[<nonId>])знач(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:O(/(^|[<nonId>])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:O(/(^|[<nonId>])(?:компл|сканкод|файл|цвет)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:O(/(^|[<nonId>])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[<nonId>]|$)/.source),lookbehind:!0},name:{pattern:O(/(^|[<nonId>])[^\d<nonId>][^<nonId>]*(?:\x20+[^<nonId>]+)*(?=[<nonId>]|$)/.source),lookbehind:!0},number:{pattern:O(/(^|[<nonId>])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[<nonId>]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},y.languages.kum=y.languages.kumir})(h)}},6658:function(V){"use strict";V.exports=w,w.displayName="kusto",w.aliases=[];function w(h){h.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}},24824:function(V){"use strict";V.exports=w,w.displayName="latex",w.aliases=["tex","context"];function w(h){(function(y){var N=/\\(?:[^a-z()[\]]|[a-z*]+)/i,O={"equation-command":{pattern:N,alias:"regex"}};y.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:O,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:O,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:N,alias:"selector"},punctuation:/[[\]{}&]/},y.languages.tex=y.languages.latex,y.languages.context=y.languages.latex})(h)}},22776:function(V,w,h){"use strict";var y=h(51478),N=h(53852);V.exports=O,O.displayName="latte",O.aliases=[];function O(B){B.register(y),B.register(N),function(_){_.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:_.languages.php}};var K=_.languages.extend("markup",{});_.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:_.languages.php}}}}}},K.tag),_.hooks.add("before-tokenize",function(I){if(I.language==="latte"){var dt=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;_.languages["markup-templating"].buildPlaceholders(I,"latte",dt),I.grammar=K}}),_.hooks.add("after-tokenize",function(I){_.languages["markup-templating"].tokenizePlaceholders(I,"latte")})}(B)}},89700:function(V){"use strict";V.exports=w,w.displayName="less",w.aliases=[];function w(h){h.languages.less=h.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),h.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}},99296:function(V,w,h){"use strict";var y=h(48780);V.exports=N,N.displayName="lilypond",N.aliases=[];function N(O){O.register(y),function(B){for(var _=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,K=5,I=0;I<K;I++)_=_.replace(/<expr>/g,function(){return _});_=_.replace(/<expr>/g,/[^\s\S]/.source);var dt=B.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,function(){return _}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:B.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};dt["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=dt,B.languages.ly=dt}(O)}},39940:function(V,w,h){"use strict";var y=h(51478);V.exports=N,N.displayName="liquid",N.aliases=[];function N(O){O.register(y),O.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},O.hooks.add("before-tokenize",function(B){var _=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,K=!1;O.languages["markup-templating"].buildPlaceholders(B,"liquid",_,function(I){var dt=/^\{%-?\s*(\w+)/.exec(I);if(dt){var rt=dt[1];if(rt==="raw"&&!K)return K=!0,!0;if(rt==="endraw")return K=!1,!0}return!K})}),O.hooks.add("after-tokenize",function(B){O.languages["markup-templating"].tokenizePlaceholders(B,"liquid")})}},34973:function(V){"use strict";V.exports=w,w.displayName="lisp",w.aliases=[];function w(h){(function(y){function N(At){return RegExp(/(\()/.source+"(?:"+At+")"+/(?=[\s\)])/.source)}function O(At){return RegExp(/([\s([])/.source+"(?:"+At+")"+/(?=[\s)])/.source)}var B=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,_="&"+B,K="(\\()",I="(?=\\))",dt="(?=\\s)",rt=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,Q={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+B+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+B),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+B),alias:"property"},splice:{pattern:RegExp(",@?"+B),alias:["symbol","variable"]},keyword:[{pattern:RegExp(K+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+dt),lookbehind:!0},{pattern:RegExp(K+"(?:append|by|collect|concat|do|finally|for|in|return)"+dt),lookbehind:!0}],declare:{pattern:N(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:N(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:O(/nil|t/.source),lookbehind:!0},number:{pattern:O(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(K+"def(?:const|custom|group|var)\\s+"+B),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(B)}},defun:{pattern:RegExp(K+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+B+/\s+\(/.source+rt+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+B),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(K+"lambda\\s+\\(\\s*(?:&?"+B+"(?:\\s+&?"+B+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(K+B),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},kt={"lisp-marker":RegExp(_),varform:{pattern:RegExp(/\(/.source+B+/\s+(?=\S)/.source+rt+/\)/.source),inside:Q},argument:{pattern:RegExp(/(^|[\s(])/.source+B),lookbehind:!0,alias:"variable"},rest:Q},Y="\\S+(?:\\s+\\S+)*",Yt={pattern:RegExp(K+rt+I),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+Y),inside:kt},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+Y),inside:kt},keys:{pattern:RegExp("&key\\s+"+Y+"(?:\\s+&allow-other-keys)?"),inside:kt},argument:{pattern:RegExp(B),alias:"variable"},punctuation:/[()]/}};Q.lambda.inside.arguments=Yt,Q.defun.inside.arguments=y.util.clone(Yt),Q.defun.inside.arguments.inside.sublist=Yt,y.languages.lisp=Q,y.languages.elisp=Q,y.languages.emacs=Q,y.languages["emacs-lisp"]=Q})(h)}},98135:function(V){"use strict";V.exports=w,w.displayName="livescript",w.aliases=[];function w(h){h.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<<?<?|--?!?|~~?!?|[|=?])?|>[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},h.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=h.languages.livescript}},36907:function(V){"use strict";V.exports=w,w.displayName="llvm",w.aliases=[];function w(h){(function(y){y.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(h)}},3567:function(V){"use strict";V.exports=w,w.displayName="log",w.aliases=[];function w(h){h.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:h.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}},23763:function(V){"use strict";V.exports=w,w.displayName="lolcode",w.aliases=[];function w(h){h.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}},29509:function(V){"use strict";V.exports=w,w.displayName="lua",w.aliases=[];function w(h){h.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}},40472:function(V){"use strict";V.exports=w,w.displayName="magma",w.aliases=[];function w(h){h.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}},44695:function(V){"use strict";V.exports=w,w.displayName="makefile",w.aliases=[];function w(h){h.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}},53885:function(V){"use strict";V.exports=w,w.displayName="markdown",w.aliases=["md"];function w(h){(function(y){var N=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function O(kt){return kt=kt.replace(/<inner>/g,function(){return N}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+kt+")")}var B=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,_=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return B}),K=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;y.languages.markdown=y.languages.extend("markup",{}),y.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:y.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+_+K+"(?:"+_+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+_+K+")(?:"+_+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(B),inside:y.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+_+")"+K+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+_+"$"),inside:{"table-header":{pattern:RegExp(B),alias:"important",inside:y.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:O(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:O(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:O(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:O(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(kt){["url","bold","italic","strike","code-snippet"].forEach(function(Y){kt!==Y&&(y.languages.markdown[kt].inside.content.inside[Y]=y.languages.markdown[Y])})}),y.hooks.add("after-tokenize",function(kt){if(kt.language!=="markdown"&&kt.language!=="md")return;function Y(Yt){if(!(!Yt||typeof Yt=="string"))for(var At=0,vt=Yt.length;At<vt;At++){var Tt=Yt[At];if(Tt.type!=="code"){Y(Tt.content);continue}var Mt=Tt.content[1],ft=Tt.content[3];if(Mt&&ft&&Mt.type==="code-language"&&ft.type==="code-block"&&typeof Mt.content=="string"){var It=Mt.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");It=(/[a-z][\w-]*/i.exec(It)||[""])[0].toLowerCase();var $t="language-"+It;ft.alias?typeof ft.alias=="string"?ft.alias=[ft.alias,$t]:ft.alias.push($t):ft.alias=[$t]}}}Y(kt.tokens)}),y.hooks.add("wrap",function(kt){if(kt.type==="code-block"){for(var Y="",Yt=0,At=kt.classes.length;Yt<At;Yt++){var vt=kt.classes[Yt],Tt=/language-(.+)/.exec(vt);if(Tt){Y=Tt[1];break}}var Mt=y.languages[Y];if(Mt)kt.content=y.highlight(Q(kt.content.value),Mt,Y);else if(Y&&Y!=="none"&&y.plugins.autoloader){var ft="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);kt.attributes.id=ft,y.plugins.autoloader.loadLanguages(Y,function(){var It=document.getElementById(ft);It&&(It.innerHTML=y.highlight(It.textContent,y.languages[Y],Y))})}}});var I=RegExp(y.languages.markup.tag.pattern.source,"gi"),dt={amp:"&",lt:"<",gt:">",quot:'"'},rt=String.fromCodePoint||String.fromCharCode;function Q(kt){var Y=kt.replace(I,"");return Y=Y.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(Yt,At){if(At=At.toLowerCase(),At[0]==="#"){var vt;return At[1]==="x"?vt=parseInt(At.slice(2),16):vt=Number(At.slice(1)),rt(vt)}else{var Tt=dt[At];return Tt||Yt}}),Y}y.languages.md=y.languages.markdown})(h)}},51478:function(V){"use strict";V.exports=w,w.displayName="markupTemplating",w.aliases=[];function w(h){(function(y){function N(O,B){return"___"+O.toUpperCase()+B+"___"}Object.defineProperties(y.languages["markup-templating"]={},{buildPlaceholders:{value:function(O,B,_,K){if(O.language===B){var I=O.tokenStack=[];O.code=O.code.replace(_,function(dt){if(typeof K=="function"&&!K(dt))return dt;for(var rt=I.length,Q;O.code.indexOf(Q=N(B,rt))!==-1;)++rt;return I[rt]=dt,Q}),O.grammar=y.languages.markup}}},tokenizePlaceholders:{value:function(O,B){if(O.language!==B||!O.tokenStack)return;O.grammar=y.languages[B];var _=0,K=Object.keys(O.tokenStack);function I(dt){for(var rt=0;rt<dt.length&&!(_>=K.length);rt++){var Q=dt[rt];if(typeof Q=="string"||Q.content&&typeof Q.content=="string"){var kt=K[_],Y=O.tokenStack[kt],Yt=typeof Q=="string"?Q:Q.content,At=N(B,kt),vt=Yt.indexOf(At);if(vt>-1){++_;var Tt=Yt.substring(0,vt),Mt=new y.Token(B,y.tokenize(Y,O.grammar),"language-"+B,Y),ft=Yt.substring(vt+At.length),It=[];Tt&&It.push.apply(It,I([Tt])),It.push(Mt),ft&&It.push.apply(It,I([ft])),typeof Q=="string"?dt.splice.apply(dt,[rt,1].concat(It)):Q.content=It}}else Q.content&&I(Q.content)}return dt}I(O.tokens)}}})})(h)}},70614:function(V){"use strict";V.exports=w,w.displayName="markup",w.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function w(h){h.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},h.languages.markup.tag.inside["attr-value"].inside.entity=h.languages.markup.entity,h.languages.markup.doctype.inside["internal-subset"].inside=h.languages.markup,h.hooks.add("wrap",function(y){y.type==="entity"&&(y.attributes.title=y.content.value.replace(/&/,"&"))}),Object.defineProperty(h.languages.markup.tag,"addInlined",{value:function(N,O){var B={};B["language-"+O]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:h.languages[O]},B.cdata=/^<!\[CDATA\[|\]\]>$/i;var _={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:B}};_["language-"+O]={pattern:/[\s\S]+/,inside:h.languages[O]};var K={};K[N]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return N}),"i"),lookbehind:!0,greedy:!0,inside:_},h.languages.insertBefore("markup","cdata",K)}}),Object.defineProperty(h.languages.markup.tag,"addAttribute",{value:function(y,N){h.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+y+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[N,"language-"+N],inside:h.languages[N]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),h.languages.html=h.languages.markup,h.languages.mathml=h.languages.markup,h.languages.svg=h.languages.markup,h.languages.xml=h.languages.extend("markup",{}),h.languages.ssml=h.languages.xml,h.languages.atom=h.languages.xml,h.languages.rss=h.languages.xml}},16928:function(V){"use strict";V.exports=w,w.displayName="matlab",w.aliases=[];function w(h){h.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}},13586:function(V){"use strict";V.exports=w,w.displayName="maxscript",w.aliases=[];function w(h){(function(y){var N=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;y.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+N.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+N.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:N,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(h)}},37164:function(V){"use strict";V.exports=w,w.displayName="mel",w.aliases=[];function w(h){h.languages.mel={comment:/\/\/.*/,code:{pattern:/`(?:\\.|[^\\`\r\n])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:/\b\w+(?=\()|\b(?:CBG|HfAddAttractorToAS|HfAssignAS|HfBuildEqualMap|HfBuildFurFiles|HfBuildFurImages|HfCancelAFR|HfConnectASToHF|HfCreateAttractor|HfDeleteAS|HfEditAS|HfPerformCreateAS|HfRemoveAttractorFromAS|HfSelectAttached|HfSelectAttractors|HfUnAssignAS|Mayatomr|about|abs|addAttr|addAttributeEditorNodeHelp|addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextDrivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|alignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCurveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyAttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3dPaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBuildPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaintCtx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDeviceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrEnumOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigationControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attributeQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|bakeResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus|binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendTwoAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|buildBookmarkMenu|buildKeyframeMenu|button|buttonManip|cacheFile|cacheFileCombine|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capitalizeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRegion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir|checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|clamp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSchedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmdScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|collision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSliderButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|compactHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition|cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connectionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyte|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|convertSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinWeights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMesh|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSetEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDisplayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|createNewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxAbort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx|currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveIntersect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dagPose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirtualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials|deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceAttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen|directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJoint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displayLevelOfDetail|displayPref|displayRGBColor|displaySmoothness|displayStats|displayString|displaySurface|distanceDimContext|distanceDimension|doBlur|dolly|dollyCtx|dopeSheetEditor|dot|dotProduct|doubleProfileBirailSurface|drag|dragAttrContext|draggerContext|dropoffLocator|duplicate|duplicateCurve|duplicateSurface|dynCache|dynControl|dynExport|dynExpression|dynGlobals|dynPaintEditor|dynParticleCtx|dynPref|dynRelEdPanel|dynRelEditor|dynamicLoad|editAttrLimits|editDisplayLayerGlobals|editDisplayLayerMembers|editRenderLayerAdjustment|editRenderLayerGlobals|editRenderLayerMembers|editor|editorTemplate|effector|emit|emitter|enableDevice|encodeString|endString|endsWith|env|equivalent|equivalentTol|erf|error|eval|evalDeferred|evalEcho|event|exactWorldBoundingBox|exclusiveLightCheckBox|exec|executeForEachObject|exists|exp|expression|expressionEditorListen|extendCurve|extendSurface|extrude|fcheck|fclose|feof|fflush|fgetline|fgetword|file|fileBrowserDialog|fileDialog|fileExtension|fileInfo|filetest|filletCurve|filter|filterCurve|filterExpand|filterStudioImport|findAllIntersections|findAnimCurves|findKeyframe|findMenuItem|findRelatedSkinCluster|finder|firstParentOf|fitBspline|flexor|floatEq|floatField|floatFieldGrp|floatScrollBar|floatSlider|floatSlider2|floatSliderButtonGrp|floatSliderGrp|floor|flow|fluidCacheInfo|fluidEmitter|fluidVoxelInfo|flushUndo|fmod|fontDialog|fopen|formLayout|format|fprint|frameLayout|fread|freeFormFillet|frewind|fromNativePath|fwrite|gamma|gauss|geometryConstraint|getApplicationVersionAsFloat|getAttr|getClassification|getDefaultBrush|getFileList|getFluidAttr|getInputDeviceRange|getMayaPanelTypes|getModifiers|getPanel|getParticleAttr|getPluginResource|getenv|getpid|glRender|glRenderEditor|globalStitch|gmatch|goal|gotoBindPose|grabColor|gradientControl|gradientControlNoAttr|graphDollyCtx|graphSelectContext|graphTrackCtx|gravity|grid|gridLayout|group|groupObjectsByName|hardenPointCurve|hardware|hardwareRenderPanel|headsUpDisplay|headsUpMessage|help|helpLine|hermite|hide|hilite|hitTest|hotBox|hotkey|hotkeyCheck|hsv_to_rgb|hudButton|hudSlider|hudSliderButton|hwReflectionMap|hwRender|hwRenderLoad|hyperGraph|hyperPanel|hyperShade|hypot|iconTextButton|iconTextCheckBox|iconTextRadioButton|iconTextRadioCollection|iconTextScrollList|iconTextStaticLabel|ikHandle|ikHandleCtx|ikHandleDisplayScale|ikSolver|ikSplineHandleCtx|ikSystem|ikSystemInfo|ikfkDisplayMethod|illustratorCurves|image|imfPlugins|inheritTransform|insertJoint|insertJointCtx|insertKeyCtx|insertKnotCurve|insertKnotSurface|instance|instanceable|instancer|intField|intFieldGrp|intScrollBar|intSlider|intSliderGrp|interToUI|internalVar|intersect|iprEngine|isAnimCurve|isConnected|isDirty|isParentOf|isSameObject|isTrue|isValidObjectName|isValidString|isValidUiName|isolateSelect|itemFilter|itemFilterAttr|itemFilterRender|itemFilterType|joint|jointCluster|jointCtx|jointDisplayScale|jointLattice|keyTangent|keyframe|keyframeOutliner|keyframeRegionCurrentTimeCtx|keyframeRegionDirectKeyCtx|keyframeRegionDollyCtx|keyframeRegionInsertKeyCtx|keyframeRegionMoveKeyCtx|keyframeRegionScaleKeyCtx|keyframeRegionSelectKeyCtx|keyframeRegionSetKeyCtx|keyframeRegionTrackCtx|keyframeStats|lassoContext|lattice|latticeDeformKeyCtx|launch|launchImageEditor|layerButton|layeredShaderPort|layeredTexturePort|layout|layoutDialog|lightList|lightListEditor|lightListPanel|lightlink|lineIntersection|linearPrecision|linstep|listAnimatable|listAttr|listCameras|listConnections|listDeviceAttachments|listHistory|listInputDeviceAxes|listInputDeviceButtons|listInputDevices|listMenuAnnotation|listNodeTypes|listPanelCategories|listRelatives|listSets|listTransforms|listUnselected|listerEditor|loadFluid|loadNewShelf|loadPlugin|loadPluginLanguageResources|loadPrefObjects|localizedPanelLabel|lockNode|loft|log|longNameOf|lookThru|ls|lsThroughFilter|lsType|lsUI|mag|makeIdentity|makeLive|makePaintable|makeRoll|makeSingleSurface|makeTubeOn|makebot|manipMoveContext|manipMoveLimitsCtx|manipOptions|manipRotateContext|manipRotateLimitsCtx|manipScaleContext|manipScaleLimitsCtx|marker|match|max|memory|menu|menuBarLayout|menuEditor|menuItem|menuItemToShelf|menuSet|menuSetPref|messageLine|min|minimizeApp|mirrorJoint|modelCurrentTimeCtx|modelEditor|modelPanel|mouse|movIn|movOut|move|moveIKtoFK|moveKeyCtx|moveVertexAlongDirection|multiProfileBirailSurface|mute|nParticle|nameCommand|nameField|namespace|namespaceInfo|newPanelItems|newton|nodeCast|nodeIconButton|nodeOutliner|nodePreset|nodeType|noise|nonLinear|normalConstraint|normalize|nurbsBoolean|nurbsCopyUVSet|nurbsCube|nurbsEditUV|nurbsPlane|nurbsSelect|nurbsSquare|nurbsToPoly|nurbsToPolygonsPref|nurbsToSubdiv|nurbsToSubdivPref|nurbsUVSet|nurbsViewDirectionVector|objExists|objectCenter|objectLayer|objectType|objectTypeUI|obsoleteProc|oceanNurbsPreviewPlane|offsetCurve|offsetCurveOnSurface|offsetSurface|openGLExtension|openMayaPref|optionMenu|optionMenuGrp|optionVar|orbit|orbitCtx|orientConstraint|outlinerEditor|outlinerPanel|overrideModifier|paintEffectsDisplay|pairBlend|palettePort|paneLayout|panel|panelConfiguration|panelHistory|paramDimContext|paramDimension|paramLocator|parent|parentConstraint|particle|particleExists|particleInstancer|particleRenderInfo|partition|pasteKey|pathAnimation|pause|pclose|percent|performanceOptions|pfxstrokes|pickWalk|picture|pixelMove|planarSrf|plane|play|playbackOptions|playblast|plugAttr|plugNode|pluginInfo|pluginResourceUtil|pointConstraint|pointCurveConstraint|pointLight|pointMatrixMult|pointOnCurve|pointOnSurface|pointPosition|poleVectorConstraint|polyAppend|polyAppendFacetCtx|polyAppendVertex|polyAutoProjection|polyAverageNormal|polyAverageVertex|polyBevel|polyBlendColor|polyBlindData|polyBoolOp|polyBridgeEdge|polyCacheMonitor|polyCheck|polyChipOff|polyClipboard|polyCloseBorder|polyCollapseEdge|polyCollapseFacet|polyColorBlindData|polyColorDel|polyColorPerVertex|polyColorSet|polyCompare|polyCone|polyCopyUV|polyCrease|polyCreaseCtx|polyCreateFacet|polyCreateFacetCtx|polyCube|polyCut|polyCutCtx|polyCylinder|polyCylindricalProjection|polyDelEdge|polyDelFacet|polyDelVertex|polyDuplicateAndConnect|polyDuplicateEdge|polyEditUV|polyEditUVShell|polyEvaluate|polyExtrudeEdge|polyExtrudeFacet|polyExtrudeVertex|polyFlipEdge|polyFlipUV|polyForceUV|polyGeoSampler|polyHelix|polyInfo|polyInstallAction|polyLayoutUV|polyListComponentConversion|polyMapCut|polyMapDel|polyMapSew|polyMapSewMove|polyMergeEdge|polyMergeEdgeCtx|polyMergeFacet|polyMergeFacetCtx|polyMergeUV|polyMergeVertex|polyMirrorFace|polyMoveEdge|polyMoveFacet|polyMoveFacetUV|polyMoveUV|polyMoveVertex|polyNormal|polyNormalPerVertex|polyNormalizeUV|polyOptUvs|polyOptions|polyOutput|polyPipe|polyPlanarProjection|polyPlane|polyPlatonicSolid|polyPoke|polyPrimitive|polyPrism|polyProjection|polyPyramid|polyQuad|polyQueryBlindData|polyReduce|polySelect|polySelectConstraint|polySelectConstraintMonitor|polySelectCtx|polySelectEditCtx|polySeparate|polySetToFaceNormal|polySewEdge|polyShortestPathCtx|polySmooth|polySoftEdge|polySphere|polySphericalProjection|polySplit|polySplitCtx|polySplitEdge|polySplitRing|polySplitVertex|polyStraightenUVBorder|polySubdivideEdge|polySubdivideFacet|polyToSubdiv|polyTorus|polyTransfer|polyTriangulate|polyUVSet|polyUnite|polyWedgeFace|popen|popupMenu|pose|pow|preloadRefEd|print|progressBar|progressWindow|projFileViewer|projectCurve|projectTangent|projectionContext|projectionManip|promptDialog|propModCtx|propMove|psdChannelOutliner|psdEditTextureFile|psdExport|psdTextureFile|putenv|pwd|python|querySubdiv|quit|rad_to_deg|radial|radioButton|radioButtonGrp|radioCollection|radioMenuItemCollection|rampColorPort|rand|randomizeFollicles|randstate|rangeControl|readTake|rebuildCurve|rebuildSurface|recordAttr|recordDevice|redo|reference|referenceEdit|referenceQuery|refineSubdivSelectionList|refresh|refreshAE|registerPluginResource|rehash|reloadImage|removeJoint|removeMultiInstance|removePanelCategory|rename|renameAttr|renameSelectionList|renameUI|render|renderGlobalsNode|renderInfo|renderLayerButton|renderLayerParent|renderLayerPostProcess|renderLayerUnparent|renderManip|renderPartition|renderQualityNode|renderSettings|renderThumbnailUpdate|renderWindowEditor|renderWindowSelectContext|renderer|reorder|reorderDeformers|requires|reroot|resampleFluid|resetAE|resetPfxToPolyCamera|resetTool|resolutionNode|retarget|reverseCurve|reverseSurface|revolve|rgb_to_hsv|rigidBody|rigidSolver|roll|rollCtx|rootOf|rot|rotate|rotationInterpolation|roundConstantRadius|rowColumnLayout|rowLayout|runTimeCommand|runup|sampleImage|saveAllShelves|saveAttrPreset|saveFluid|saveImage|saveInitialState|saveMenu|savePrefObjects|savePrefs|saveShelf|saveToolSettings|scale|scaleBrushBrightness|scaleComponents|scaleConstraint|scaleKey|scaleKeyCtx|sceneEditor|sceneUIReplacement|scmh|scriptCtx|scriptEditorInfo|scriptJob|scriptNode|scriptTable|scriptToShelf|scriptedPanel|scriptedPanelType|scrollField|scrollLayout|sculpt|searchPathArray|seed|selLoadSettings|select|selectContext|selectCurveCV|selectKey|selectKeyCtx|selectKeyframeRegionCtx|selectMode|selectPref|selectPriority|selectType|selectedNodes|selectionConnection|separator|setAttr|setAttrEnumResource|setAttrMapping|setAttrNiceNameResource|setConstraintRestPosition|setDefaultShadingGroup|setDrivenKeyframe|setDynamic|setEditCtx|setEditor|setFluidAttr|setFocus|setInfinity|setInputDeviceMapping|setKeyCtx|setKeyPath|setKeyframe|setKeyframeBlendshapeTargetWts|setMenuMode|setNodeNiceNameResource|setNodeTypeFlag|setParent|setParticleAttr|setPfxToPolyCamera|setPluginResource|setProject|setStampDensity|setStartupMessage|setState|setToolTo|setUITemplate|setXformManip|sets|shadingConnection|shadingGeometryRelCtx|shadingLightRelCtx|shadingNetworkCompare|shadingNode|shapeCompare|shelfButton|shelfLayout|shelfTabLayout|shellField|shortNameOf|showHelp|showHidden|showManipCtx|showSelectionInTitle|showShadingGroupAttrEditor|showWindow|sign|simplify|sin|singleProfileBirailSurface|size|sizeBytes|skinCluster|skinPercent|smoothCurve|smoothTangentSurface|smoothstep|snap2to2|snapKey|snapMode|snapTogetherCtx|snapshot|soft|softMod|softModCtx|sort|sound|soundControl|source|spaceLocator|sphere|sphrand|spotLight|spotLightPreviewPort|spreadSheetEditor|spring|sqrt|squareSurface|srtContext|stackTrace|startString|startsWith|stitchAndExplodeShell|stitchSurface|stitchSurfacePoints|strcmp|stringArrayCatenate|stringArrayContains|stringArrayCount|stringArrayInsertAtIndex|stringArrayIntersector|stringArrayRemove|stringArrayRemoveAtIndex|stringArrayRemoveDuplicates|stringArrayRemoveExact|stringArrayToString|stringToStringArray|strip|stripPrefixFromName|stroke|subdAutoProjection|subdCleanTopology|subdCollapse|subdDuplicateAndConnect|subdEditUV|subdListComponentConversion|subdMapCut|subdMapSewMove|subdMatchTopology|subdMirror|subdToBlind|subdToPoly|subdTransferUVsToCache|subdiv|subdivCrease|subdivDisplaySmoothness|substitute|substituteAllString|substituteGeometry|substring|surface|surfaceSampler|surfaceShaderList|swatchDisplayPort|switchTable|symbolButton|symbolCheckBox|sysFile|system|tabLayout|tan|tangentConstraint|texLatticeDeformContext|texManipContext|texMoveContext|texMoveUVShellContext|texRotateContext|texScaleContext|texSelectContext|texSelectShortestPathCtx|texSmudgeUVContext|texWinToolCtx|text|textCurves|textField|textFieldButtonGrp|textFieldGrp|textManip|textScrollList|textToShelf|textureDisplacePlane|textureHairColor|texturePlacementContext|textureWindow|threadCount|threePointArcCtx|timeControl|timePort|timerX|toNativePath|toggle|toggleAxis|toggleWindowVisibility|tokenize|tokenizeList|tolerance|tolower|toolButton|toolCollection|toolDropped|toolHasOptions|toolPropertyWindow|torus|toupper|trace|track|trackCtx|transferAttributes|transformCompare|transformLimits|translator|trim|trunc|truncateFluidCache|truncateHairCache|tumble|tumbleCtx|turbulence|twoPointArcCtx|uiRes|uiTemplate|unassignInputDevice|undo|undoInfo|ungroup|uniform|unit|unloadPlugin|untangleUV|untitledFileName|untrim|upAxis|updateAE|userCtx|uvLink|uvSnapshot|validateShelfName|vectorize|view2dToolCtx|viewCamera|viewClipPlane|viewFit|viewHeadOn|viewLookAt|viewManip|viewPlace|viewSet|visor|volumeAxis|vortex|waitCursor|warning|webBrowser|webBrowserPrefs|whatIs|window|windowPref|wire|wireContext|workspace|wrinkle|wrinkleContext|writeTake|xbmLangPathList|xform)\b/,operator:[/\+[+=]?|-[-=]?|&&|\|\||[<>]=|[*\/!=]=?|[%^]/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,:;?\[\](){}]/},h.languages.mel.code.inside.rest=h.languages.mel}},25153:function(V){"use strict";V.exports=w,w.displayName="mermaid",w.aliases=[];function w(h){h.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[<ox](?:==+|--+|-\.*-)[>ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}},33245:function(V){"use strict";V.exports=w,w.displayName="mizar",w.aliases=[];function w(h){h.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}},32218:function(V){"use strict";V.exports=w,w.displayName="mongodb",w.aliases=[];function w(h){(function(y){var N=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],O=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];N=N.map(function(_){return _.replace("$","\\$")});var B="(?:"+N.join("|")+")\\b";y.languages.mongodb=y.languages.extend("javascript",{}),y.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+B+"(?:\\1)?$")}}}),y.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},y.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+O.join("|")+")\\b"),alias:"keyword"}})})(h)}},65626:function(V){"use strict";V.exports=w,w.displayName="monkey",w.aliases=[];function w(h){h.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}},60090:function(V){"use strict";V.exports=w,w.displayName="moonscript",w.aliases=["moon"];function w(h){h.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},h.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=h.languages.moonscript,h.languages.moon=h.languages.moonscript}},40722:function(V){"use strict";V.exports=w,w.displayName="n1ql",w.aliases=[];function w(h){h.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}},37783:function(V){"use strict";V.exports=w,w.displayName="n4js",w.aliases=["n4jsd"];function w(h){h.languages.n4js=h.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),h.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),h.languages.n4jsd=h.languages.n4js}},41224:function(V){"use strict";V.exports=w,w.displayName="nand2tetrisHdl",w.aliases=[];function w(h){h.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}},71365:function(V){"use strict";V.exports=w,w.displayName="naniscript",w.aliases=[];function w(h){(function(y){var N=/\{[^\r\n\[\]{}]*\}/,O={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:N,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};y.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:N,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:O}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:N,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:O},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},y.languages.nani=y.languages.naniscript,y.hooks.add("after-tokenize",function(K){var I=K.tokens;I.forEach(function(dt){if(typeof dt!="string"&&dt.type==="generic-text"){var rt=_(dt);B(rt)||(dt.type="bad-line",dt.content=rt)}})});function B(K){for(var I="[]{}",dt=[],rt=0;rt<K.length;rt++){var Q=K[rt],kt=I.indexOf(Q);if(kt!==-1){if(kt%2===0)dt.push(kt+1);else if(dt.pop()!==kt)return!1}}return dt.length===0}function _(K){return typeof K=="string"?K:Array.isArray(K)?K.map(_).join(""):_(K.content)}})(h)}},42846:function(V){"use strict";V.exports=w,w.displayName="nasm",w.aliases=[];function w(h){h.languages.nasm={comment:/;.*$/m,string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,label:{pattern:/(^\s*)[A-Za-z._?$][\w.?$@~#]*:/m,lookbehind:!0,alias:"function"},keyword:[/\[?BITS (?:16|32|64)\]?/,{pattern:/(^\s*)section\s*[a-z.]+:?/im,lookbehind:!0},/(?:extern|global)[^;\r\n]*/i,/(?:CPU|DEFAULT|FLOAT).*$/m],register:{pattern:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s)\b/i,alias:"variable"},number:/(?:\b|(?=\$))(?:0[hx](?:\.[\da-f]+|[\da-f]+(?:\.[\da-f]+)?)(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-\/%<>=&|$!]/}}},32964:function(V){"use strict";V.exports=w,w.displayName="neon",w.aliases=[];function w(h){h.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"atrule"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}},78830:function(V){"use strict";V.exports=w,w.displayName="nevod",w.aliases=[];function w(h){h.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}},88799:function(V){"use strict";V.exports=w,w.displayName="nginx",w.aliases=[];function w(h){(function(y){var N=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;y.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:N}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:N}},punctuation:/[{};]/}})(h)}},66791:function(V){"use strict";V.exports=w,w.displayName="nim",w.aliases=[];function w(h){h.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}},41735:function(V){"use strict";V.exports=w,w.displayName="nix",w.aliases=[];function w(h){h.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},h.languages.nix.string.inside.interpolation.inside=h.languages.nix}},13490:function(V){"use strict";V.exports=w,w.displayName="nsis",w.aliases=[];function w(h){h.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}},7383:function(V,w,h){"use strict";var y=h(79440);V.exports=N,N.displayName="objectivec",N.aliases=["objc"];function N(O){O.register(y),O.languages.objectivec=O.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete O.languages.objectivec["class-name"],O.languages.objc=O.languages.objectivec}},66894:function(V){"use strict";V.exports=w,w.displayName="ocaml",w.aliases=[];function w(h){h.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}},45779:function(V,w,h){"use strict";var y=h(79440);V.exports=N,N.displayName="opencl",N.aliases=[];function N(O){O.register(y),function(B){B.languages.opencl=B.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),B.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var _={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};B.languages.insertBefore("c","keyword",_),B.languages.cpp&&(_["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},B.languages.insertBefore("cpp","keyword",_))}(O)}},27734:function(V){"use strict";V.exports=w,w.displayName="openqasm",w.aliases=["qasm"];function w(h){h.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},h.languages.qasm=h.languages.openqasm}},91889:function(V){"use strict";V.exports=w,w.displayName="oz",w.aliases=[];function w(h){h.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|<?:?)|>=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}},55965:function(V){"use strict";V.exports=w,w.displayName="parigp",w.aliases=[];function w(h){h.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var y=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return y=y.map(function(N){return N.split("").join(" *")}).join("|"),RegExp("\\b(?:"+y+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}},37326:function(V){"use strict";V.exports=w,w.displayName="parser",w.aliases=[];function w(h){(function(y){var N=y.languages.parser=y.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});N=y.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:N.keyword,variable:N.variable,function:N.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:N.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:N.punctuation}}}),y.languages.insertBefore("inside","punctuation",{expression:N.expression,keyword:N.keyword,variable:N.variable,function:N.function,escape:N.escape,"parser-punctuation":{pattern:N.punctuation,alias:"punctuation"}},N.tag.inside["attr-value"])})(h)}},92949:function(V){"use strict";V.exports=w,w.displayName="pascal",w.aliases=["objectpascal"];function w(h){h.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},h.languages.pascal.asm.inside=h.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),h.languages.objectpascal=h.languages.pascal}},5681:function(V){"use strict";V.exports=w,w.displayName="pascaligo",w.aliases=[];function w(h){(function(y){var N=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,O=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return N}),B=y.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)<type>/.source.replace(/<type>/g,function(){return O}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,function(){return O}),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,function(){return O})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},_=["comment","keyword","builtin","operator","punctuation"].reduce(function(K,I){return K[I]=B[I],K},{});B["class-name"].forEach(function(K){K.inside=_})})(h)}},70696:function(V){"use strict";V.exports=w,w.displayName="pcaxis",w.aliases=["px"];function w(h){h.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},h.languages.px=h.languages.pcaxis}},35790:function(V){"use strict";V.exports=w,w.displayName="peoplecode",w.aliases=["pcode"];function w(h){h.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},h.languages.pcode=h.languages.peoplecode}},25777:function(V){"use strict";V.exports=w,w.displayName="perl",w.aliases=[];function w(h){(function(y){var N=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;y.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,N].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,N].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,N+/\s*/.source+N].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(h)}},65889:function(V,w,h){"use strict";var y=h(53852);V.exports=N,N.displayName="phpExtras",N.aliases=[];function N(O){O.register(y),O.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}},53852:function(V,w,h){"use strict";var y=h(51478);V.exports=N,N.displayName="php",N.aliases=[];function N(O){O.register(y),function(B){var _=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,K=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],I=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,dt=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,rt=/[{}\[\](),:;]/;B.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:_,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:K,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:I,operator:dt,punctuation:rt};var Q={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:B.languages.php},kt=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:Q}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:Q}}];B.languages.insertBefore("php","variable",{string:kt,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:_,string:kt,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:K,number:I,operator:dt,punctuation:rt}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),B.hooks.add("before-tokenize",function(Y){if(/<\?/.test(Y.code)){var Yt=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;B.languages["markup-templating"].buildPlaceholders(Y,"php",Yt)}}),B.hooks.add("after-tokenize",function(Y){B.languages["markup-templating"].tokenizePlaceholders(Y,"php")})}(O)}},97719:function(V,w,h){"use strict";var y=h(53852),N=h(53510);V.exports=O,O.displayName="phpdoc",O.aliases=[];function O(B){B.register(y),B.register(N),function(_){var K=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;_.languages.phpdoc=_.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+K+"\\s+)?)\\$\\w+"),lookbehind:!0}}),_.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+K),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),_.languages.javadoclike.addSupport("php",_.languages.phpdoc)}(B)}},63839:function(V,w,h){"use strict";var y=h(69435);V.exports=N,N.displayName="plsql",N.aliases=[];function N(O){O.register(y),O.languages.plsql=O.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),O.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}},67623:function(V){"use strict";V.exports=w,w.displayName="powerquery",w.aliases=[];function w(h){h.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},h.languages.pq=h.languages.powerquery,h.languages.mscript=h.languages.powerquery}},32530:function(V){"use strict";V.exports=w,w.displayName="powershell",w.aliases=[];function w(h){(function(y){var N=y.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};N.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:N},boolean:N.boolean,variable:N.variable}})(h)}},8938:function(V){"use strict";V.exports=w,w.displayName="processing",w.aliases=[];function w(h){h.languages.processing=h.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),h.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}},55259:function(V){"use strict";V.exports=w,w.displayName="prolog",w.aliases=[];function w(h){h.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}},67411:function(V){"use strict";V.exports=w,w.displayName="promql",w.aliases=[];function w(h){(function(y){var N=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],O=["on","ignoring","group_right","group_left","by","without"],B=["offset"],_=N.concat(O,B);y.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+O.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+_.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(h)}},15375:function(V){"use strict";V.exports=w,w.displayName="properties",w.aliases=[];function w(h){h.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,punctuation:/[=:]/}}},12093:function(V){"use strict";V.exports=w,w.displayName="protobuf",w.aliases=[];function w(h){(function(y){var N=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;y.languages.protobuf=y.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),y.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:N}},builtin:N,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(h)}},83588:function(V){"use strict";V.exports=w,w.displayName="psl",w.aliases=[];function w(h){h.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}},94127:function(V){"use strict";V.exports=w,w.displayName="pug",w.aliases=[];function w(h){(function(y){y.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:y.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:y.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:y.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:y.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:y.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:y.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:y.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:y.languages.javascript}],punctuation:/[.\-!=|]+/};for(var N=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,O=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],B={},_=0,K=O.length;_<K;_++){var I=O[_];I=typeof I=="string"?{filter:I,language:I}:I,y.languages[I.language]&&(B["filter-"+I.filter]={pattern:RegExp(N.replace("<filter_name>",function(){return I.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[I.language,"language-"+I.language],inside:y.languages[I.language]}}})}y.languages.insertBefore("pug","filter",B)})(h)}},21294:function(V){"use strict";V.exports=w,w.displayName="puppet",w.aliases=[];function w(h){(function(y){y.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var N=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:y.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];y.languages.puppet.heredoc[0].inside.interpolation=N,y.languages.puppet.string.inside["double-quoted"].inside.interpolation=N})(h)}},38709:function(V){"use strict";V.exports=w,w.displayName="pure",w.aliases=[];function w(h){(function(y){y.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var N=["c",{lang:"c++",alias:"cpp"},"fortran"],O=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;N.forEach(function(B){var _=B;if(typeof B!="string"&&(_=B.alias,B=B.lang),y.languages[_]){var K={};K["inline-lang-"+_]={pattern:RegExp(O.replace("<lang>",B.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:y.util.clone(y.languages.pure["inline-lang"].inside)},K["inline-lang-"+_].inside.rest=y.util.clone(y.languages[_]),y.languages.insertBefore("pure","inline-lang",K)}}),y.languages.c&&(y.languages.pure["inline-lang"].inside.rest=y.util.clone(y.languages.c))})(h)}},15008:function(V){"use strict";V.exports=w,w.displayName="purebasic",w.aliases=[];function w(h){h.languages.purebasic=h.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+|-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*/@]/}),h.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete h.languages.purebasic["class-name"],delete h.languages.purebasic.boolean,h.languages.pbfasm=h.languages.purebasic}},96549:function(V,w,h){"use strict";var y=h(2050);V.exports=N,N.displayName="purescript",N.aliases=["purs"];function N(O){O.register(y),O.languages.purescript=O.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[O.languages.haskell.operator[0],O.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),O.languages.purs=O.languages.purescript}},5221:function(V){"use strict";V.exports=w,w.displayName="python",w.aliases=["py"];function w(h){h.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},h.languages.python["string-interpolation"].inside.interpolation.inside.rest=h.languages.python,h.languages.py=h.languages.python}},27447:function(V){"use strict";V.exports=w,w.displayName="q",w.aliases=[];function w(h){h.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}},73191:function(V){"use strict";V.exports=w,w.displayName="qml",w.aliases=[];function w(h){(function(y){for(var N=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,O=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,B=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return N}).replace(/<comment>/g,function(){return O}),_=0;_<2;_++)B=B.replace(/<expr>/g,function(){return B});B=B.replace(/<expr>/g,"[^\\s\\S]"),y.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(<js>*\)\s*\{<js>*\}/.source.replace(/<js>/g,function(){return B}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:y.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}])<js>)+/.source.replace(/<js>/g,function(){return B}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:y.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(h)}},75542:function(V){"use strict";V.exports=w,w.displayName="qore",w.aliases=[];function w(h){h.languages.qore=h.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}},50323:function(V){"use strict";V.exports=w,w.displayName="qsharp",w.aliases=["qs"];function w(h){(function(y){function N(Yt,At){return Yt.replace(/<<(\d+)>>/g,function(vt,Tt){return"(?:"+At[+Tt]+")"})}function O(Yt,At,vt){return RegExp(N(Yt,At),vt||"")}function B(Yt,At){for(var vt=0;vt<At;vt++)Yt=Yt.replace(/<<self>>/g,function(){return"(?:"+Yt+")"});return Yt.replace(/<<self>>/g,"[^\\s\\S]")}var _={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function K(Yt){return"\\b(?:"+Yt.trim().replace(/ /g,"|")+")\\b"}var I=RegExp(K(_.type+" "+_.other)),dt=/\b[A-Za-z_]\w*\b/.source,rt=N(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[dt]),Q={keyword:I,punctuation:/[<>()?,.:[\]]/},kt=/"(?:\\.|[^\\"])*"/.source;y.languages.qsharp=y.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:O(/(^|[^$\\])<<0>>/.source,[kt]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:O(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[rt]),lookbehind:!0,inside:Q},{pattern:O(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[rt]),lookbehind:!0,inside:Q}],keyword:I,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),y.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var Y=B(N(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[kt]),2);y.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:O(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[Y]),greedy:!0,inside:{interpolation:{pattern:O(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[Y]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:y.languages.qsharp}}},string:/[\s\S]+/}}})})(h),h.languages.qs=h.languages.qsharp}},44298:function(V){"use strict";V.exports=w,w.displayName="r",w.aliases=[];function w(h){h.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}},9634:function(V,w,h){"use strict";var y=h(48780);V.exports=N,N.displayName="racket",N.aliases=["rkt"];function N(O){O.register(y),O.languages.racket=O.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),O.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),O.languages.rkt=O.languages.racket}},75266:function(V){"use strict";V.exports=w,w.displayName="reason",w.aliases=[];function w(h){h.languages.reason=h.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),h.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete h.languages.reason.function}},48139:function(V){"use strict";V.exports=w,w.displayName="regex",w.aliases=[];function w(h){(function(y){var N={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},O=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,B={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},_={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},K="(?:[^\\\\-]|"+O.source+")",I=RegExp(K+"-"+K),dt={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};y.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:I,inside:{escape:O,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":N,"char-set":_,escape:O}},"special-escape":N,"char-set":B,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":dt}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:O,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":dt}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(h)}},97534:function(V){"use strict";V.exports=w,w.displayName="rego",w.aliases=[];function w(h){h.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}},90826:function(V){"use strict";V.exports=w,w.displayName="renpy",w.aliases=["rpy"];function w(h){h.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},h.languages.rpy=h.languages.renpy}},63919:function(V){"use strict";V.exports=w,w.displayName="rest",w.aliases=[];function w(h){h.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}},68862:function(V){"use strict";V.exports=w,w.displayName="rip",w.aliases=[];function w(h){h.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}},39523:function(V){"use strict";V.exports=w,w.displayName="roboconf",w.aliases=[];function w(h){h.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}},31207:function(V){"use strict";V.exports=w,w.displayName="robotframework",w.aliases=[];function w(h){(function(y){var N={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},O={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function B(dt,rt){var Q={};Q["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var kt in rt)Q[kt]=rt[kt];return Q.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},Q.variable=O,Q.comment=N,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return dt}),"im"),alias:"section",inside:Q}}var _={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},K={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:O}},I={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:O}};y.languages.robotframework={settings:B("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:B("Variables"),"test-cases":B("Test Cases",{"test-name":K,documentation:_,property:I}),keywords:B("Keywords",{"keyword-name":K,documentation:_,property:I}),tasks:B("Tasks",{"task-name":K,documentation:_,property:I}),comment:N},y.languages.robot=y.languages.robotframework})(h)}},75308:function(V){"use strict";V.exports=w,w.displayName="ruby",w.aliases=["rb"];function w(h){(function(y){y.languages.ruby=y.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),y.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var N={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:y.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete y.languages.ruby.function;var O="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",B=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;y.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+O+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:N,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:N,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+B),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+B+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),y.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+O),greedy:!0,inside:{interpolation:N,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:N,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:N,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+O),greedy:!0,inside:{interpolation:N,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:N,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete y.languages.ruby.string,y.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),y.languages.rb=y.languages.ruby})(h)}},45315:function(V){"use strict";V.exports=w,w.displayName="rust",w.aliases=[];function w(h){(function(y){for(var N=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,O=0;O<2;O++)N=N.replace(/<self>/g,function(){return N});N=N.replace(/<self>/g,function(){return/[^\s\S]/.source}),y.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+N),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},y.languages.rust["closure-params"].inside.rest=y.languages.rust,y.languages.rust.attribute.inside.string=y.languages.rust.string})(h)}},13794:function(V){"use strict";V.exports=w,w.displayName="sas",w.aliases=[];function w(h){(function(y){var N=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,O=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,B={pattern:RegExp(N+"[bx]"),alias:"number"},_={pattern:/&[a-z_]\w*/i},K={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},I={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},dt=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],rt={pattern:RegExp(N),greedy:!0},Q=/[$%@.(){}\[\];,\\]/,kt={pattern:/%?\b\w+(?=\()/,alias:"keyword"},Y={function:kt,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":_,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:O,"numeric-constant":B,punctuation:Q,string:rt},Yt={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},At={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},vt={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},Tt={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},Mt=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,ft={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,function(){return Mt}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,function(){return Mt}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:dt,function:kt,"arg-value":Y["arg-value"],operator:Y.operator,argument:Y.arg,number:O,"numeric-constant":B,punctuation:Q,string:rt}},It={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};y.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:<str>|[^;"'])+;/.source.replace(/<str>/g,function(){return N}),"im"),alias:"language-sql",inside:y.languages.sql},"global-statements":vt,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:O,"numeric-constant":B,punctuation:Q,string:rt}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:dt,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return N}),"im"),lookbehind:!0,alias:"language-groovy",inside:y.languages.groovy},keyword:It,"submit-statement":Tt,"global-statements":vt,number:O,"numeric-constant":B,punctuation:Q,string:rt}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:dt,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return N}),"im"),lookbehind:!0,alias:"language-lua",inside:y.languages.lua},keyword:It,"submit-statement":Tt,"global-statements":vt,number:O,"numeric-constant":B,punctuation:Q,string:rt}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:dt,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:Y}},"cas-actions":ft,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:Y},step:I,keyword:It,function:kt,format:Yt,altformat:At,"global-statements":vt,number:O,"numeric-constant":B,punctuation:Q,string:rt}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return N}),"im"),lookbehind:!0,inside:Y},"macro-keyword":K,"macro-variable":_,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":K,"macro-variable":_,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:Q}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:dt,number:O,"numeric-constant":B}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:Y},"cas-actions":ft,comment:dt,function:kt,format:Yt,altformat:At,"numeric-constant":B,datetime:{pattern:RegExp(N+"(?:dt?|t)"),alias:"number"},string:rt,step:I,keyword:It,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:O,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:Q}})(h)}},41299:function(V){"use strict";V.exports=w,w.displayName="sass",w.aliases=[];function w(h){(function(y){y.languages.sass=y.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),y.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete y.languages.sass.atrule;var N=/\$[-\w]+|#\{\$[-\w]+\}/,O=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];y.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:N,operator:O}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:N,operator:O,important:y.languages.sass.important}}}),delete y.languages.sass.property,delete y.languages.sass.important,y.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(h)}},98177:function(V,w,h){"use strict";var y=h(7093);V.exports=N,N.displayName="scala",N.aliases=[];function N(O){O.register(y),O.languages.scala=O.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),O.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:O.languages.scala}}},string:/[\s\S]+/}}}),delete O.languages.scala["class-name"],delete O.languages.scala.function}},48780:function(V){"use strict";V.exports=w,w.displayName="scheme",w.aliases=[];function w(h){(function(y){y.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(N({"<ureal dec>":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"<real dec>":/[+-]?<ureal dec>|[+-](?:inf|nan)\.0/.source,"<imaginary dec>":/[+-](?:<ureal dec>|(?:inf|nan)\.0)?i/.source,"<complex dec>":/<real dec>(?:@<real dec>|<imaginary dec>)?|<imaginary dec>/.source,"<num dec>":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?<complex dec>/.source,"<ureal box>":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"<real box>":/[+-]?<ureal box>|[+-](?:inf|nan)\.0/.source,"<imaginary box>":/[+-](?:<ureal box>|(?:inf|nan)\.0)?i/.source,"<complex box>":/<real box>(?:@<real box>|<imaginary box>)?|<imaginary box>/.source,"<num box>":/#[box](?:#[ei])?|(?:#[ei])?#[box]<complex box>/.source,"<number>":/(^|[()\[\]\s])(?:<num dec>|<num box>)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function N(O){for(var B in O)O[B]=O[B].replace(/<[\w\s]+>/g,function(_){return"(?:"+O[_].trim()+")"});return O[B]}})(h)}},79793:function(V){"use strict";V.exports=w,w.displayName="scss",w.aliases=[];function w(h){h.languages.scss=h.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),h.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),h.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),h.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),h.languages.scss.atrule.inside.rest=h.languages.scss}},52085:function(V,w,h){"use strict";var y=h(3058);V.exports=N,N.displayName="shellSession",N.aliases=[];function N(O){O.register(y),function(B){var _=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");B.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<<str>>)+/.source.replace(/<<str>>/g,function(){return _}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:B.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},B.languages["sh-session"]=B.languages.shellsession=B.languages["shell-session"]}(O)}},65411:function(V){"use strict";V.exports=w,w.displayName="smali",w.aliases=[];function w(h){h.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}},84750:function(V){"use strict";V.exports=w,w.displayName="smalltalk",w.aliases=[];function w(h){h.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}},88216:function(V,w,h){"use strict";var y=h(51478);V.exports=N,N.displayName="smarty",N.aliases=[];function N(O){O.register(y),function(B){B.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:B.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},B.languages.smarty["embedded-php"].inside.smarty.inside=B.languages.smarty,B.languages.smarty.string[0].inside.interpolation.inside.expression.inside=B.languages.smarty;var _=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,K=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return _.source}),"g");B.hooks.add("before-tokenize",function(I){var dt="{literal}",rt="{/literal}",Q=!1;B.languages["markup-templating"].buildPlaceholders(I,"smarty",K,function(kt){return kt===rt&&(Q=!1),Q?!1:(kt===dt&&(Q=!0),!0)})}),B.hooks.add("after-tokenize",function(I){B.languages["markup-templating"].tokenizePlaceholders(I,"smarty")})}(O)}},66433:function(V){"use strict";V.exports=w,w.displayName="sml",w.aliases=["smlnj"];function w(h){(function(y){var N=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;y.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)<TERMINAL>(?:\s*(?:(?:\*|->)\s*<TERMINAL>|,\s*<TERMINAL>(?:(?=<NOT-LAST>)|(?!<NOT-LAST>)\s+<LONG-ID>)))*/.source.replace(/<NOT-LAST>/g,function(){return/\s*(?:[*,]|->)/.source}).replace(/<TERMINAL>/g,function(){return/(?:'[\w']*|<LONG-ID>|\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+<LONG-ID>)*/.source}).replace(/<LONG-ID>/g,function(){return/(?!<KEYWORD>)[a-z\d_][\w'.]*/.source}).replace(/<KEYWORD>/g,function(){return N.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:N,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},y.languages.sml["class-name"][0].inside=y.languages.sml,y.languages.smlnj=y.languages.sml})(h)}},34855:function(V){"use strict";V.exports=w,w.displayName="solidity",w.aliases=["sol"];function w(h){h.languages.solidity=h.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),h.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),h.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),h.languages.sol=h.languages.solidity}},12998:function(V){"use strict";V.exports=w,w.displayName="solutionFile",w.aliases=[];function w(h){(function(y){var N={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};y.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:N}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:N}},guid:N,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},y.languages.sln=y.languages["solution-file"]})(h)}},10202:function(V,w,h){"use strict";var y=h(51478);V.exports=N,N.displayName="soy",N.aliases=[];function N(O){O.register(y),function(B){var _=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,K=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;B.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:_,greedy:!0},number:K,punctuation:/[\[\].?]/}},string:{pattern:_,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:K,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},B.hooks.add("before-tokenize",function(I){var dt=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,rt="{literal}",Q="{/literal}",kt=!1;B.languages["markup-templating"].buildPlaceholders(I,"soy",dt,function(Y){return Y===Q&&(kt=!1),kt?!1:(Y===rt&&(kt=!0),!0)})}),B.hooks.add("after-tokenize",function(I){B.languages["markup-templating"].tokenizePlaceholders(I,"soy")})}(O)}},41186:function(V,w,h){"use strict";var y=h(58710);V.exports=N,N.displayName="sparql",N.aliases=["rq"];function N(O){O.register(y),O.languages.sparql=O.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),O.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),O.languages.rq=O.languages.sparql}},68963:function(V){"use strict";V.exports=w,w.displayName="splunkSpl",w.aliases=[];function w(h){h.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}},5569:function(V){"use strict";V.exports=w,w.displayName="sqf",w.aliases=[];function w(h){h.languages.sqf=h.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),h.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:h.languages.sqf.comment}}}),delete h.languages.sqf["class-name"]}},69435:function(V){"use strict";V.exports=w,w.displayName="sql",w.aliases=[];function w(h){h.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}},42766:function(V){"use strict";V.exports=w,w.displayName="squirrel",w.aliases=[];function w(h){h.languages.squirrel=h.languages.extend("clike",{comment:[h.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),h.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),h.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}},46449:function(V){"use strict";V.exports=w,w.displayName="stan",w.aliases=[];function w(h){(function(y){var N=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;y.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+N.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,N],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},y.languages.stan.constraint.inside.expression.inside=y.languages.stan})(h)}},89032:function(V){"use strict";V.exports=w,w.displayName="stylus",w.aliases=[];function w(h){(function(y){var N={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},O={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},B={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:N,number:O,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:N,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:O,punctuation:/[{}()\[\];:,]/};B.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:B}},B.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:B}},y.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:B}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:B}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:B}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:B.interpolation}},rest:B}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:B.interpolation,comment:B.comment,punctuation:/[{},]/}},func:B.func,string:B.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:B.interpolation,punctuation:/[{}()\[\];:.]/}})(h)}},40241:function(V){"use strict";V.exports=w,w.displayName="swift",w.aliases=[];function w(h){h.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},h.languages.swift["string-literal"].forEach(function(y){y.inside.interpolation.inside=h.languages.swift})}},24812:function(V){"use strict";V.exports=w,w.displayName="systemd",w.aliases=[];function w(h){(function(y){var N={pattern:/^[;#].*/m,greedy:!0},O=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;y.languages.systemd={comment:N,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+O+`|(?=[^"\r
|
|
|
]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+O+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:N,quoted:{pattern:RegExp(/(^|\s)/.source+O),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(h)}},16747:function(V,w,h){"use strict";var y=h(73584),N=h(87648);V.exports=O,O.displayName="t4Cs",O.aliases=[];function O(B){B.register(y),B.register(N),B.languages.t4=B.languages["t4-cs"]=B.languages["t4-templating"].createT4("csharp")}},73584:function(V){"use strict";V.exports=w,w.displayName="t4Templating",w.aliases=[];function w(h){(function(y){function N(B,_,K){return{pattern:RegExp("<#"+B+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+B+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:_,alias:K}}}}function O(B){var _=y.languages[B],K="language-"+B;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:N("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:N("=",_,K),"class-feature":N("\\+",_,K),standard:N("",_,K)}}}}y.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:O})})(h)}},79243:function(V,w,h){"use strict";var y=h(73584),N=h(55686);V.exports=O,O.displayName="t4Vb",O.aliases=[];function O(B){B.register(y),B.register(N),B.languages["t4-vb"]=B.languages["t4-templating"].createT4("vbnet")}},31788:function(V,w,h){"use strict";var y=h(14409);V.exports=N,N.displayName="tap",N.aliases=[];function N(O){O.register(y),O.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:O.languages.yaml,alias:"language-yaml"}}}},60871:function(V){"use strict";V.exports=w,w.displayName="tcl",w.aliases=[];function w(h){h.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}},21023:function(V){"use strict";V.exports=w,w.displayName="textile",w.aliases=[];function w(h){(function(y){var N=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,O=/\)|\((?![^|()\n]+\))/.source;function B(kt,Y){return RegExp(kt.replace(/<MOD>/g,function(){return"(?:"+N+")"}).replace(/<PAR>/g,function(){return"(?:"+O+")"}),Y||"")}var _={css:{pattern:/\{[^{}]+\}/,inside:{rest:y.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},K=y.languages.textile=y.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:B(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:B(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:_},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:B(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:B(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:_},punctuation:/^[*#]+/}},table:{pattern:B(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:B(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:_},punctuation:/\||^\./}},inline:{pattern:B(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:B(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:B(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:B(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:B(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:B(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:B(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:B(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:B(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:_},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:B(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:B(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:B(/(^")<MOD>+/.source),lookbehind:!0,inside:_},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:B(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:B(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:B(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:_},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),I=K.phrase.inside,dt={inline:I.inline,link:I.link,image:I.image,footnote:I.footnote,acronym:I.acronym,mark:I.mark};K.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var rt=I.inline.inside;rt.bold.inside=dt,rt.italic.inside=dt,rt.inserted.inside=dt,rt.deleted.inside=dt,rt.span.inside=dt;var Q=I.table.inside;Q.inline=dt.inline,Q.link=dt.link,Q.image=dt.image,Q.footnote=dt.footnote,Q.acronym=dt.acronym,Q.mark=dt.mark})(h)}},14693:function(V){"use strict";V.exports=w,w.displayName="toml",w.aliases=[];function w(h){(function(y){var N=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function O(B){return B.replace(/__/g,function(){return N})}y.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(O(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(O(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(h)}},8743:function(V){"use strict";V.exports=w,w.displayName="tremor",w.aliases=[];function w(h){(function(y){y.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var N=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;y.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+N+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+N+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(N),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:y.languages.tremor}}},string:/[\s\S]+/}},y.languages.troy=y.languages.tremor,y.languages.trickle=y.languages.tremor})(h)}},1689:function(V,w,h){"use strict";var y=h(24103),N=h(92784);V.exports=O,O.displayName="tsx",O.aliases=[];function O(B){B.register(y),B.register(N),function(_){var K=_.util.clone(_.languages.typescript);_.languages.tsx=_.languages.extend("jsx",K),delete _.languages.tsx.parameter,delete _.languages.tsx["literal-property"];var I=_.languages.tsx.tag;I.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+I.pattern.source+")",I.pattern.flags),I.lookbehind=!0}(B)}},69210:function(V,w,h){"use strict";var y=h(51478);V.exports=N,N.displayName="tt2",N.aliases=[];function N(O){O.register(y),function(B){B.languages.tt2=B.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),B.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),B.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),B.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete B.languages.tt2.string,B.hooks.add("before-tokenize",function(_){var K=/\[%[\s\S]+?%\]/g;B.languages["markup-templating"].buildPlaceholders(_,"tt2",K)}),B.hooks.add("after-tokenize",function(_){B.languages["markup-templating"].tokenizePlaceholders(_,"tt2")})}(O)}},58710:function(V){"use strict";V.exports=w,w.displayName="turtle",w.aliases=[];function w(h){h.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},h.languages.trig=h.languages.turtle}},60452:function(V,w,h){"use strict";var y=h(51478);V.exports=N,N.displayName="twig",N.aliases=[];function N(O){O.register(y),O.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},O.hooks.add("before-tokenize",function(B){if(B.language==="twig"){var _=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;O.languages["markup-templating"].buildPlaceholders(B,"twig",_)}}),O.hooks.add("after-tokenize",function(B){O.languages["markup-templating"].tokenizePlaceholders(B,"twig")})}},92784:function(V){"use strict";V.exports=w,w.displayName="typescript",w.aliases=["ts"];function w(h){(function(y){y.languages.typescript=y.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),y.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete y.languages.typescript.parameter,delete y.languages.typescript["literal-property"];var N=y.languages.extend("typescript",{});delete N["class-name"],y.languages.typescript["class-name"].inside=N,y.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:N}}}}),y.languages.ts=y.languages.typescript})(h)}},36489:function(V){"use strict";V.exports=w,w.displayName="typoscript",w.aliases=["tsconfig"];function w(h){(function(y){var N=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;y.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern:/<INCLUDE_TYPOSCRIPT:\s*source\s*=\s*(?:"[^"\r\n]*"|'[^'\r\n]*')\s*>/,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:N}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:N,number:/^\d+$/,punctuation:/[,|:]/}},keyword:N,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},y.languages.tsconfig=y.languages.typoscript})(h)}},78380:function(V){"use strict";V.exports=w,w.displayName="unrealscript",w.aliases=["uc","uscript"];function w(h){h.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},h.languages.uc=h.languages.uscript=h.languages.unrealscript}},10409:function(V){"use strict";V.exports=w,w.displayName="uorazor",w.aliases=[];function w(h){h.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}},6539:function(V){"use strict";V.exports=w,w.displayName="uri",w.aliases=["url"];function w(h){h.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},h.languages.url=h.languages.uri}},82028:function(V){"use strict";V.exports=w,w.displayName="v",w.aliases=[];function w(h){(function(y){var N={pattern:/[\s\S]+/,inside:null};y.languages.v=y.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":N}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),N.inside=y.languages.v,y.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),y.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),y.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:y.languages.v.generic.inside}}}})})(h)}},62282:function(V){"use strict";V.exports=w,w.displayName="vala",w.aliases=[];function w(h){h.languages.vala=h.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),h.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:h.languages.vala}},string:/[\s\S]+/}}}),h.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:h.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}},55686:function(V,w,h){"use strict";var y=h(51422);V.exports=N,N.displayName="vbnet",N.aliases=[];function N(O){O.register(y),O.languages.vbnet=O.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}},70889:function(V){"use strict";V.exports=w,w.displayName="velocity",w.aliases=[];function w(h){(function(y){y.languages.velocity=y.languages.extend("markup",{});var N={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};N.variable.inside={string:N.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:N.number,boolean:N.boolean,punctuation:N.punctuation},y.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:N}},variable:N.variable}),y.languages.velocity.tag.inside["attr-value"].inside.rest=y.languages.velocity})(h)}},37116:function(V){"use strict";V.exports=w,w.displayName="verilog",w.aliases=[];function w(h){h.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}},66963:function(V){"use strict";V.exports=w,w.displayName="vhdl",w.aliases=[];function w(h){h.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}},21078:function(V){"use strict";V.exports=w,w.displayName="vim",w.aliases=[];function w(h){h.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}},96198:function(V){"use strict";V.exports=w,w.displayName="visualBasic",w.aliases=[];function w(h){h.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},h.languages.vb=h.languages["visual-basic"],h.languages.vba=h.languages["visual-basic"]}},17723:function(V){"use strict";V.exports=w,w.displayName="warpscript",w.aliases=[];function w(h){h.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}},67771:function(V){"use strict";V.exports=w,w.displayName="wasm",w.aliases=[];function w(h){h.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}},30307:function(V){"use strict";V.exports=w,w.displayName="webIdl",w.aliases=[];function w(h){(function(y){var N=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,O="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+N+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,B={};y.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+N),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:B},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+O),lookbehind:!0,inside:B},{pattern:RegExp("("+/\bcallback\s+/.source+N+/\s*=\s*/.source+")"+O),lookbehind:!0,inside:B},{pattern:RegExp(/(\btypedef\b\s*)/.source+O),lookbehind:!0,inside:B},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+N),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+N),lookbehind:!0},RegExp(N+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+N),lookbehind:!0},{pattern:RegExp(O+"(?="+/\s*(?:\.{3}\s*)?/.source+N+/\s*[(),;=]/.source+")"),inside:B}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var _ in y.languages["web-idl"])_!=="class-name"&&(B[_]=y.languages["web-idl"][_]);y.languages.webidl=y.languages["web-idl"]})(h)}},8921:function(V){"use strict";V.exports=w,w.displayName="wiki",w.aliases=[];function w(h){h.languages.wiki=h.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:h.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),h.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:h.languages.markup.tag.inside}}}})}},13429:function(V){"use strict";V.exports=w,w.displayName="wolfram",w.aliases=["mathematica","wl","nb"];function w(h){h.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},h.languages.mathematica=h.languages.wolfram,h.languages.wl=h.languages.wolfram,h.languages.nb=h.languages.wolfram}},65197:function(V){"use strict";V.exports=w,w.displayName="wren",w.aliases=[];function w(h){h.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},h.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:h.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}},88904:function(V){"use strict";V.exports=w,w.displayName="xeora",w.aliases=["xeoracube"];function w(h){(function(y){y.languages.xeora=y.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),y.languages.insertBefore("inside","punctuation",{variable:y.languages.xeora["function-inline"].inside.variable},y.languages.xeora["function-block"]),y.languages.xeoracube=y.languages.xeora})(h)}},35:function(V){"use strict";V.exports=w,w.displayName="xmlDoc",w.aliases=[];function w(h){(function(y){function N(K,I){y.languages[K]&&y.languages.insertBefore(K,"comment",{"doc-comment":I})}var O=y.languages.markup.tag,B={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:O}},_={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:O}};N("csharp",B),N("fsharp",B),N("vbnet",_)})(h)}},86095:function(V){"use strict";V.exports=w,w.displayName="xojo",w.aliases=[];function w(h){h.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}},76998:function(V){"use strict";V.exports=w,w.displayName="xquery",w.aliases=[];function w(h){(function(y){y.languages.xquery=y.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),y.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,y.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,y.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,y.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:y.languages.xquery,alias:"language-xquery"};var N=function(B){return typeof B=="string"?B:typeof B.content=="string"?B.content:B.content.map(N).join("")},O=function(B){for(var _=[],K=0;K<B.length;K++){var I=B[K],dt=!1;if(typeof I!="string"&&(I.type==="tag"&&I.content[0]&&I.content[0].type==="tag"?I.content[0].content[0].content==="</"?_.length>0&&_[_.length-1].tagName===N(I.content[0].content[1])&&_.pop():I.content[I.content.length-1].content==="/>"||_.push({tagName:N(I.content[0].content[1]),openedBraces:0}):_.length>0&&I.type==="punctuation"&&I.content==="{"&&(!B[K+1]||B[K+1].type!=="punctuation"||B[K+1].content!=="{")&&(!B[K-1]||B[K-1].type!=="plain-text"||B[K-1].content!=="{")?_[_.length-1].openedBraces++:_.length>0&&_[_.length-1].openedBraces>0&&I.type==="punctuation"&&I.content==="}"?_[_.length-1].openedBraces--:I.type!=="comment"&&(dt=!0)),(dt||typeof I=="string")&&_.length>0&&_[_.length-1].openedBraces===0){var rt=N(I);K<B.length-1&&(typeof B[K+1]=="string"||B[K+1].type==="plain-text")&&(rt+=N(B[K+1]),B.splice(K+1,1)),K>0&&(typeof B[K-1]=="string"||B[K-1].type==="plain-text")&&(rt=N(B[K-1])+rt,B.splice(K-1,1),K--),/^\s+$/.test(rt)?B[K]=rt:B[K]=new y.Token("plain-text",rt,null,rt)}I.content&&typeof I.content!="string"&&O(I.content)}};y.hooks.add("after-tokenize",function(B){B.language==="xquery"&&O(B.tokens)})})(h)}},14409:function(V){"use strict";V.exports=w,w.displayName="yaml",w.aliases=["yml"];function w(h){(function(y){var N=/[*&][^\s[\]{},]+/,O=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,B="(?:"+O.source+"(?:[ ]+"+N.source+")?|"+N.source+"(?:[ ]+"+O.source+")?)",_=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),K=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function I(dt,rt){rt=(rt||"").replace(/m/g,"")+"m";var Q=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return B}).replace(/<<value>>/g,function(){return dt});return RegExp(Q,rt)}y.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return B})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return B}).replace(/<<key>>/g,function(){return"(?:"+_+"|"+K+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:I(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:I(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:I(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:I(K),lookbehind:!0,greedy:!0},number:{pattern:I(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:O,important:N,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},y.languages.yml=y.languages.yaml})(h)}},33460:function(V){"use strict";V.exports=w,w.displayName="yang",w.aliases=[];function w(h){h.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}},28108:function(V){"use strict";V.exports=w,w.displayName="zig",w.aliases=[];function w(h){(function(y){function N(rt){return function(){return rt}}var O=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,B="\\b(?!"+O.source+")(?!\\d)\\w+\\b",_=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,K=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,N(_)),I=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,N(B)),dt="(?!\\s)(?:!?\\s*(?:"+K+"\\s*)*"+I+")+";y.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?[=;,)])|<TYPE>(?=\s*(?:<ALIGN>\s*)?\{)/.source.replace(/<TYPE>/g,N(dt)).replace(/<ALIGN>/g,N(_))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,N(dt)).replace(/<ALIGN>/g,N(_))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:O,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},y.languages.zig["class-name"].forEach(function(rt){rt.inside===null&&(rt.inside=y.languages.zig)})})(h)}},92848:function(V,w){"use strict";var h;w.Q=B,h=_;var y="",N=" ",O=/[ \t\n\r\f]+/g;function B(K){var I=String(K||y).trim();return I===y?[]:I.split(O)}function _(K){return K.join(N).trim()}},58970:function(V,w,h){"use strict";var y=this&&this.__importDefault||function(B){return B&&B.__esModule?B:{default:B}};Object.defineProperty(w,"__esModule",{value:!0}),w.default=O;var N=y(h(93193));function O(B,_){var K=null;if(!B||typeof B!="string")return K;var I=(0,N.default)(B),dt=typeof _=="function";return I.forEach(function(rt){if(rt.type==="declaration"){var Q=rt.property,kt=rt.value;dt?_(Q,kt,rt):kt&&(K=K||{},K[Q]=kt)}}),K}},97270:function(V){V.exports=h;var w=Object.prototype.hasOwnProperty;function h(){for(var y={},N=0;N<arguments.length;N++){var O=arguments[N];for(var B in O)w.call(O,B)&&(y[B]=O[B])}return y}},11630:function(V,w,h){"use strict";h.d(w,{P:function(){return N},Q:function(){return y}});function y(O){const B=[],_=String(O||"");let K=_.indexOf(","),I=0,dt=!1;for(;!dt;){K===-1&&(K=_.length,dt=!0);const rt=_.slice(I,K).trim();(rt||!dt)&&B.push(rt),I=K+1,K=_.indexOf(",",I)}return B}function N(O,B){const _=B||{};return(O[O.length-1]===""?[...O,""]:O).join((_.padRight?" ":"")+","+(_.padLeft===!1?"":" ")).trim()}},87342:function(V,w,h){"use strict";h.d(w,{ok:function(){return O},t1:function(){return B}});function y(_){return _}function N(){}function O(){}function B(){}},26735:function(V,w,h){"use strict";h.d(w,{f:function(){return N}});var y=h(80722);function N(O,B,_,K){const I=K?K-1:Number.POSITIVE_INFINITY;let dt=0;return rt;function rt(kt){return(0,y.xz)(kt)?(O.enter(_),Q(kt)):B(kt)}function Q(kt){return(0,y.xz)(kt)&&dt++<I?(O.consume(kt),Q):(O.exit(_),B(kt))}}},80722:function(V,w,h){"use strict";h.d(w,{AF:function(){return K},Av:function(){return B},B8:function(){return Y},Ch:function(){return dt},H$:function(){return N},Xh:function(){return kt},jv:function(){return y},n9:function(){return O},pY:function(){return _},sR:function(){return I},xz:function(){return Q},z3:function(){return rt}});const y=Yt(/[A-Za-z]/),N=Yt(/[\dA-Za-z]/),O=Yt(/[#-'*+\--9=?A-Z^-~]/);function B(At){return At!==null&&(At<32||At===127)}const _=Yt(/\d/),K=Yt(/[\dA-Fa-f]/),I=Yt(/[!-/:-@[-`{-~]/);function dt(At){return At!==null&&At<-2}function rt(At){return At!==null&&(At<0||At===32)}function Q(At){return At===-2||At===-1||At===32}const kt=Yt(new RegExp("\\p{P}|\\p{S}","u")),Y=Yt(/\s/);function Yt(At){return vt;function vt(Tt){return Tt!==null&&Tt>-1&&At.test(String.fromCharCode(Tt))}}},54099:function(V,w,h){"use strict";h.d(w,{dy:function(){return Tt},YP:function(){return Mt}});class y{constructor(It,$t,Nt){this.property=It,this.normal=$t,Nt&&(this.space=Nt)}}y.prototype.property={},y.prototype.normal={},y.prototype.space=null;function N(ft,It){const $t={},Nt={};let Ut=-1;for(;++Ut<ft.length;)Object.assign($t,ft[Ut].property),Object.assign(Nt,ft[Ut].normal);return new y($t,Nt,It)}var O=h(69901),B=h(32514);const _={}.hasOwnProperty;function K(ft){const It={},$t={};let Nt;for(Nt in ft.properties)if(_.call(ft.properties,Nt)){const Ut=ft.properties[Nt],et=new B.I(Nt,ft.transform(ft.attributes||{},Nt),Ut,ft.space);ft.mustUseProperty&&ft.mustUseProperty.includes(Nt)&&(et.mustUseProperty=!0),It[Nt]=et,$t[(0,O.F)(Nt)]=Nt,$t[(0,O.F)(et.attribute)]=Nt}return new y(It,$t,ft.space)}const I=K({space:"xlink",transform(ft,It){return"xlink:"+It.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),dt=K({space:"xml",transform(ft,It){return"xml:"+It.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function rt(ft,It){return It in ft?ft[It]:It}function Q(ft,It){return rt(ft,It.toLowerCase())}const kt=K({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Q,properties:{xmlns:null,xmlnsXLink:null}});var Y=h(9393);const Yt=K({transform(ft,It){return It==="role"?It:"aria-"+It.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Y.booleanish,ariaAutoComplete:null,ariaBusy:Y.booleanish,ariaChecked:Y.booleanish,ariaColCount:Y.number,ariaColIndex:Y.number,ariaColSpan:Y.number,ariaControls:Y.spaceSeparated,ariaCurrent:null,ariaDescribedBy:Y.spaceSeparated,ariaDetails:null,ariaDisabled:Y.booleanish,ariaDropEffect:Y.spaceSeparated,ariaErrorMessage:null,ariaExpanded:Y.booleanish,ariaFlowTo:Y.spaceSeparated,ariaGrabbed:Y.booleanish,ariaHasPopup:null,ariaHidden:Y.booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Y.spaceSeparated,ariaLevel:Y.number,ariaLive:null,ariaModal:Y.booleanish,ariaMultiLine:Y.booleanish,ariaMultiSelectable:Y.booleanish,ariaOrientation:null,ariaOwns:Y.spaceSeparated,ariaPlaceholder:null,ariaPosInSet:Y.number,ariaPressed:Y.booleanish,ariaReadOnly:Y.booleanish,ariaRelevant:null,ariaRequired:Y.booleanish,ariaRoleDescription:Y.spaceSeparated,ariaRowCount:Y.number,ariaRowIndex:Y.number,ariaRowSpan:Y.number,ariaSelected:Y.booleanish,ariaSetSize:Y.number,ariaSort:null,ariaValueMax:Y.number,ariaValueMin:Y.number,ariaValueNow:Y.number,ariaValueText:null,role:null}}),At=K({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Q,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Y.commaSeparated,acceptCharset:Y.spaceSeparated,accessKey:Y.spaceSeparated,action:null,allow:null,allowFullScreen:Y.boolean,allowPaymentRequest:Y.boolean,allowUserMedia:Y.boolean,alt:null,as:null,async:Y.boolean,autoCapitalize:null,autoComplete:Y.spaceSeparated,autoFocus:Y.boolean,autoPlay:Y.boolean,blocking:Y.spaceSeparated,capture:null,charSet:null,checked:Y.boolean,cite:null,className:Y.spaceSeparated,cols:Y.number,colSpan:null,content:null,contentEditable:Y.booleanish,controls:Y.boolean,controlsList:Y.spaceSeparated,coords:Y.number|Y.commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Y.boolean,defer:Y.boolean,dir:null,dirName:null,disabled:Y.boolean,download:Y.overloadedBoolean,draggable:Y.booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Y.boolean,formTarget:null,headers:Y.spaceSeparated,height:Y.number,hidden:Y.boolean,high:Y.number,href:null,hrefLang:null,htmlFor:Y.spaceSeparated,httpEquiv:Y.spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:Y.boolean,inputMode:null,integrity:null,is:null,isMap:Y.boolean,itemId:null,itemProp:Y.spaceSeparated,itemRef:Y.spaceSeparated,itemScope:Y.boolean,itemType:Y.spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Y.boolean,low:Y.number,manifest:null,max:null,maxLength:Y.number,media:null,method:null,min:null,minLength:Y.number,multiple:Y.boolean,muted:Y.boolean,name:null,nonce:null,noModule:Y.boolean,noValidate:Y.boolean,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Y.boolean,optimum:Y.number,pattern:null,ping:Y.spaceSeparated,placeholder:null,playsInline:Y.boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Y.boolean,referrerPolicy:null,rel:Y.spaceSeparated,required:Y.boolean,reversed:Y.boolean,rows:Y.number,rowSpan:Y.number,sandbox:Y.spaceSeparated,scope:null,scoped:Y.boolean,seamless:Y.boolean,selected:Y.boolean,shadowRootClonable:Y.boolean,shadowRootDelegatesFocus:Y.boolean,shadowRootMode:null,shape:null,size:Y.number,sizes:null,slot:null,span:Y.number,spellCheck:Y.booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Y.number,step:null,style:null,tabIndex:Y.number,target:null,title:null,translate:null,type:null,typeMustMatch:Y.boolean,useMap:null,value:Y.booleanish,width:Y.number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Y.spaceSeparated,axis:null,background:null,bgColor:null,border:Y.number,borderColor:null,bottomMargin:Y.number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Y.boolean,declare:Y.boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:Y.number,leftMargin:Y.number,link:null,longDesc:null,lowSrc:null,marginHeight:Y.number,marginWidth:Y.number,noResize:Y.boolean,noHref:Y.boolean,noShade:Y.boolean,noWrap:Y.boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:Y.number,rules:null,scheme:null,scrolling:Y.booleanish,standby:null,summary:null,text:null,topMargin:Y.number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Y.number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Y.boolean,disableRemotePlayback:Y.boolean,prefix:null,property:null,results:Y.number,security:null,unselectable:null}}),vt=K({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:rt,properties:{about:Y.commaOrSpaceSeparated,accentHeight:Y.number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Y.number,amplitude:Y.number,arabicForm:null,ascent:Y.number,attributeName:null,attributeType:null,azimuth:Y.number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Y.number,by:null,calcMode:null,capHeight:Y.number,className:Y.spaceSeparated,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Y.number,diffuseConstant:Y.number,direction:null,display:null,dur:null,divisor:Y.number,dominantBaseline:null,download:Y.boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:Y.number,enableBackground:null,end:null,event:null,exponent:Y.number,externalResourcesRequired:null,fill:null,fillOpacity:Y.number,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Y.commaSeparated,g2:Y.commaSeparated,glyphName:Y.commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Y.number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Y.number,horizOriginX:Y.number,horizOriginY:Y.number,id:null,ideographic:Y.number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Y.number,k:Y.number,k1:Y.number,k2:Y.number,k3:Y.number,k4:Y.number,kernelMatrix:Y.commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Y.number,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Y.number,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Y.number,overlineThickness:Y.number,paintOrder:null,panose1:null,path:null,pathLength:Y.number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Y.spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Y.number,pointsAtY:Y.number,pointsAtZ:Y.number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Y.commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Y.commaOrSpaceSeparated,rev:Y.commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Y.commaOrSpaceSeparated,requiredFeatures:Y.commaOrSpaceSeparated,requiredFonts:Y.commaOrSpaceSeparated,requiredFormats:Y.commaOrSpaceSeparated,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Y.number,specularExponent:Y.number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Y.number,strikethroughThickness:Y.number,string:null,stroke:null,strokeDashArray:Y.commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Y.number,strokeOpacity:Y.number,strokeWidth:null,style:null,surfaceScale:Y.number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Y.commaOrSpaceSeparated,tabIndex:Y.number,tableValues:null,target:null,targetX:Y.number,targetY:Y.number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Y.commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Y.number,underlineThickness:Y.number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Y.number,values:null,vAlphabetic:Y.number,vMathematical:Y.number,vectorEffect:null,vHanging:Y.number,vIdeographic:Y.number,version:null,vertAdvY:Y.number,vertOriginX:Y.number,vertOriginY:Y.number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Y.number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Tt=N([dt,I,kt,Yt,At],"html"),Mt=N([dt,I,kt,Yt,vt],"svg")},52549:function(V,w,h){"use strict";h.d(w,{s:function(){return I}});var y=h(69901),N=h(32514),O=h(8053);const B=/^data[-\w.:]+$/i,_=/-[a-z]/g,K=/[A-Z]/g;function I(Q,kt){const Y=(0,y.F)(kt);let Yt=kt,At=O.k;if(Y in Q.normal)return Q.property[Q.normal[Y]];if(Y.length>4&&Y.slice(0,4)==="data"&&B.test(kt)){if(kt.charAt(4)==="-"){const vt=kt.slice(5).replace(_,rt);Yt="data"+vt.charAt(0).toUpperCase()+vt.slice(1)}else{const vt=kt.slice(4);if(!_.test(vt)){let Tt=vt.replace(K,dt);Tt.charAt(0)!=="-"&&(Tt="-"+Tt),kt="data"+Tt}}At=N.I}return new At(Yt,kt)}function dt(Q){return"-"+Q.toLowerCase()}function rt(Q){return Q.charAt(1).toUpperCase()}},69901:function(V,w,h){"use strict";h.d(w,{F:function(){return y}});function y(N){return N.toLowerCase()}},32514:function(V,w,h){"use strict";h.d(w,{I:function(){return B}});var y=h(8053),N=h(9393);const O=Object.keys(N);class B extends y.k{constructor(I,dt,rt,Q){let kt=-1;if(super(I,dt),_(this,"space",Q),typeof rt=="number")for(;++kt<O.length;){const Y=O[kt];_(this,O[kt],(rt&N[Y])===N[Y])}}}B.prototype.defined=!0;function _(K,I,dt){dt&&(K[I]=dt)}},8053:function(V,w,h){"use strict";h.d(w,{k:function(){return y}});class y{constructor(O,B){this.property=O,this.attribute=B}}y.prototype.space=null,y.prototype.boolean=!1,y.prototype.booleanish=!1,y.prototype.overloadedBoolean=!1,y.prototype.number=!1,y.prototype.commaSeparated=!1,y.prototype.spaceSeparated=!1,y.prototype.commaOrSpaceSeparated=!1,y.prototype.mustUseProperty=!1,y.prototype.defined=!1},9393:function(V,w,h){"use strict";h.r(w),h.d(w,{boolean:function(){return N},booleanish:function(){return O},commaOrSpaceSeparated:function(){return dt},commaSeparated:function(){return I},number:function(){return _},overloadedBoolean:function(){return B},spaceSeparated:function(){return K}});let y=0;const N=rt(),O=rt(),B=rt(),_=rt(),K=rt(),I=rt(),dt=rt();function rt(){return kx(2,++y)}},20964:function(V,w,h){"use strict";h.d(w,{U:function(){return no}});var y={};h.r(y),h.d(y,{attentionMarkers:function(){return us},contentInitial:function(){return Cs},disable:function(){return Fs},document:function(){return ri},flow:function(){return ga},flowInitial:function(){return Zo},insideSpan:function(){return Wn},string:function(){return sl},text:function(){return Cl}});var N=h(87342),O=h(11630);const B=/[$_\p{ID_Start}]/u,_=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,K=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,I=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,dt=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,rt={};function Q(S){return S?B.test(String.fromCodePoint(S)):!1}function kt(S,P){const Z=(P||rt).jsx?K:_;return S?Z.test(String.fromCodePoint(S)):!1}function Y(S,P){return((P||rt).jsx?dt:I).test(S)}const Yt=/[ \t\n\f\r]/g;function At(S){return typeof S=="object"?S.type==="text"?vt(S.value):!1:vt(S)}function vt(S){return S.replace(Yt,"")===""}var Tt=h(54099),Mt=h(52549);const ft={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var It=h(71523),$t=h(58970),Nt=$t.default||$t;const Ut=Rt("end"),et=Rt("start");function Rt(S){return P;function P(U){const Z=U&&U.position&&U.position[S]||{};if(typeof Z.line=="number"&&Z.line>0&&typeof Z.column=="number"&&Z.column>0)return{line:Z.line,column:Z.column,offset:typeof Z.offset=="number"&&Z.offset>-1?Z.offset:void 0}}}function Lt(S){const P=et(S),U=Ut(S);if(P&&U)return{start:P,end:U}}function Kt(S){return!S||typeof S!="object"?"":"position"in S||"type"in S?ie(S.position):"start"in S||"end"in S?ie(S):"line"in S||"column"in S?Qt(S):""}function Qt(S){return yt(S&&S.line)+":"+yt(S&&S.column)}function ie(S){return Qt(S&&S.start)+"-"+Qt(S&&S.end)}function yt(S){return S&&typeof S=="number"?S:1}class ae extends Error{constructor(P,U,Z){super(),typeof U=="string"&&(Z=U,U=void 0);let ot="",ut={},bt=!1;if(U&&("line"in U&&"column"in U?ut={place:U}:"start"in U&&"end"in U?ut={place:U}:"type"in U?ut={ancestors:[U],place:U.position}:ut=Ms({},U)),typeof P=="string"?ot=P:!ut.cause&&P&&(bt=!0,ot=P.message,ut.cause=P),!ut.ruleId&&!ut.source&&typeof Z=="string"){const Ie=Z.indexOf(":");Ie===-1?ut.ruleId=Z:(ut.source=Z.slice(0,Ie),ut.ruleId=Z.slice(Ie+1))}if(!ut.place&&ut.ancestors&&ut.ancestors){const Ie=ut.ancestors[ut.ancestors.length-1];Ie&&(ut.place=Ie.position)}const Jt=ut.place&&"start"in ut.place?ut.place.start:ut.place;this.ancestors=ut.ancestors||void 0,this.cause=ut.cause||void 0,this.column=Jt?Jt.column:void 0,this.fatal=void 0,this.file,this.message=ot,this.line=Jt?Jt.line:void 0,this.name=Kt(ut.place)||"1:1",this.place=ut.place||void 0,this.reason=this.message,this.ruleId=ut.ruleId||void 0,this.source=ut.source||void 0,this.stack=bt&&ut.cause&&typeof ut.cause.stack=="string"?ut.cause.stack:"",this.actual,this.expected,this.note,this.url}}ae.prototype.file="",ae.prototype.name="",ae.prototype.reason="",ae.prototype.message="",ae.prototype.stack="",ae.prototype.column=void 0,ae.prototype.line=void 0,ae.prototype.ancestors=void 0,ae.prototype.cause=void 0,ae.prototype.fatal=void 0,ae.prototype.place=void 0,ae.prototype.ruleId=void 0,ae.prototype.source=void 0;const Ht={}.hasOwnProperty,Pe=new Map,ge=/[A-Z]/g,we=/-([a-z])/g,pe=new Set(["table","tbody","thead","tfoot","tr"]),ln=new Set(["td","th"]),zt="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function nt(S,P){if(!P||P.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const U=P.filePath||void 0;let Z;if(P.development){if(typeof P.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");Z=fn(U,P.jsxDEV)}else{if(typeof P.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof P.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");Z=$n(U,P.jsx,P.jsxs)}const ot={Fragment:P.Fragment,ancestors:[],components:P.components||{},create:Z,elementAttributeNameCase:P.elementAttributeNameCase||"react",evaluater:P.createEvaluater?P.createEvaluater():void 0,filePath:U,ignoreInvalidStyle:P.ignoreInvalidStyle||!1,passKeys:P.passKeys!==!1,passNode:P.passNode||!1,schema:P.space==="svg"?Tt.YP:Tt.dy,stylePropertyNameCase:P.stylePropertyNameCase||"dom",tableCellAlignToStyle:P.tableCellAlignToStyle!==!1},ut=it(ot,S,void 0);return ut&&typeof ut!="string"?ut:ot.create(S,ot.Fragment,{children:ut||void 0},void 0)}function it(S,P,U){if(P.type==="element")return Te(S,P,U);if(P.type==="mdxFlowExpression"||P.type==="mdxTextExpression")return Ae(S,P);if(P.type==="mdxJsxFlowElement"||P.type==="mdxJsxTextElement")return en(S,P,U);if(P.type==="mdxjsEsm")return de(S,P);if(P.type==="root")return vn(S,P,U);if(P.type==="text")return Xn(S,P)}function Te(S,P,U){const Z=S.schema;let ot=Z;P.tagName.toLowerCase()==="svg"&&Z.space==="html"&&(ot=Tt.YP,S.schema=ot),S.ancestors.push(P);const ut=G(S,P.tagName,!1),bt=hn(S,P);let Jt=L(S,P);return pe.has(P.tagName)&&(Jt=Jt.filter(function(Ie){return typeof Ie=="string"?!At(Ie):!0})),gn(S,bt,ut,P),_n(bt,Jt),S.ancestors.pop(),S.schema=Z,S.create(P,ut,bt,U)}function Ae(S,P){if(P.data&&P.data.estree&&S.evaluater){const Z=P.data.estree.body[0];return(0,N.ok)(Z.type==="ExpressionStatement"),S.evaluater.evaluateExpression(Z.expression)}T(S,P.position)}function de(S,P){if(P.data&&P.data.estree&&S.evaluater)return S.evaluater.evaluateProgram(P.data.estree);T(S,P.position)}function en(S,P,U){const Z=S.schema;let ot=Z;P.name==="svg"&&Z.space==="html"&&(ot=Tt.YP,S.schema=ot),S.ancestors.push(P);const ut=P.name===null?S.Fragment:G(S,P.name,!0),bt=ct(S,P),Jt=L(S,P);return gn(S,bt,ut,P),_n(bt,Jt),S.ancestors.pop(),S.schema=Z,S.create(P,ut,bt,U)}function vn(S,P,U){const Z={};return _n(Z,L(S,P)),S.create(P,S.Fragment,Z,U)}function Xn(S,P){return P.value}function gn(S,P,U,Z){typeof U!="string"&&U!==S.Fragment&&S.passNode&&(P.node=Z)}function _n(S,P){if(P.length>0){const U=P.length>1?P:P[0];U&&(S.children=U)}}function $n(S,P,U){return Z;function Z(ot,ut,bt,Jt){const Ue=Array.isArray(bt.children)?U:P;return Jt?Ue(ut,bt,Jt):Ue(ut,bt)}}function fn(S,P){return U;function U(Z,ot,ut,bt){const Jt=Array.isArray(ut.children),Ie=et(Z);return P(ot,ut,bt,Jt,{columnNumber:Ie?Ie.column-1:void 0,fileName:S,lineNumber:Ie?Ie.line:void 0},void 0)}}function hn(S,P){const U={};let Z,ot;for(ot in P.properties)if(ot!=="children"&&Ht.call(P.properties,ot)){const ut=k(S,ot,P.properties[ot]);if(ut){const[bt,Jt]=ut;S.tableCellAlignToStyle&&bt==="align"&&typeof Jt=="string"&&ln.has(P.tagName)?Z=Jt:U[bt]=Jt}}if(Z){const ut=U.style||(U.style={});ut[S.stylePropertyNameCase==="css"?"text-align":"textAlign"]=Z}return U}function ct(S,P){const U={};for(const Z of P.attributes)if(Z.type==="mdxJsxExpressionAttribute")if(Z.data&&Z.data.estree&&S.evaluater){const ut=Z.data.estree.body[0];(0,N.ok)(ut.type==="ExpressionStatement");const bt=ut.expression;(0,N.ok)(bt.type==="ObjectExpression");const Jt=bt.properties[0];(0,N.ok)(Jt.type==="SpreadElement"),Object.assign(U,S.evaluater.evaluateExpression(Jt.argument))}else T(S,P.position);else{const ot=Z.name;let ut;if(Z.value&&typeof Z.value=="object")if(Z.value.data&&Z.value.data.estree&&S.evaluater){const Jt=Z.value.data.estree.body[0];(0,N.ok)(Jt.type==="ExpressionStatement"),ut=S.evaluater.evaluateExpression(Jt.expression)}else T(S,P.position);else ut=Z.value===null?!0:Z.value;U[ot]=ut}return U}function L(S,P){const U=[];let Z=-1;const ot=S.passKeys?new Map:Pe;for(;++Z<P.children.length;){const ut=P.children[Z];let bt;if(S.passKeys){const Ie=ut.type==="element"?ut.tagName:ut.type==="mdxJsxFlowElement"||ut.type==="mdxJsxTextElement"?ut.name:void 0;if(Ie){const Ue=ot.get(Ie)||0;bt=Ie+"-"+Ue,ot.set(Ie,Ue+1)}}const Jt=it(S,ut,bt);Jt!==void 0&&U.push(Jt)}return U}function k(S,P,U){const Z=(0,Mt.s)(S.schema,P);if(!(U==null||typeof U=="number"&&Number.isNaN(U))){if(Array.isArray(U)&&(U=Z.commaSeparated?(0,O.P)(U):(0,It.P)(U)),Z.property==="style"){let ot=typeof U=="object"?U:z(S,String(U));return S.stylePropertyNameCase==="css"&&(ot=St(ot)),["style",ot]}return[S.elementAttributeNameCase==="react"&&Z.space?ft[Z.property]||Z.property:Z.attribute,U]}}function z(S,P){const U={};try{Nt(P,Z)}catch(ot){if(!S.ignoreInvalidStyle){const ut=ot,bt=new ae("Cannot parse `style` attribute",{ancestors:S.ancestors,cause:ut,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw bt.file=S.filePath||void 0,bt.url=zt+"#cannot-parse-style-attribute",bt}}return U;function Z(ot,ut){let bt=ot;bt.slice(0,2)!=="--"&&(bt.slice(0,4)==="-ms-"&&(bt="ms-"+bt.slice(4)),bt=bt.replace(we,Ct)),U[bt]=ut}}function G(S,P,U){let Z;if(!U)Z={type:"Literal",value:P};else if(P.includes(".")){const ot=P.split(".");let ut=-1,bt;for(;++ut<ot.length;){const Jt=Y(ot[ut])?{type:"Identifier",name:ot[ut]}:{type:"Literal",value:ot[ut]};bt=bt?{type:"MemberExpression",object:bt,property:Jt,computed:!!(ut&&Jt.type==="Literal"),optional:!1}:Jt}(0,N.ok)(bt,"always a result"),Z=bt}else Z=Y(P)&&!/^[a-z]/.test(P)?{type:"Identifier",name:P}:{type:"Literal",value:P};if(Z.type==="Literal"){const ot=Z.value;return Ht.call(S.components,ot)?S.components[ot]:ot}if(S.evaluater)return S.evaluater.evaluateExpression(Z);T(S)}function T(S,P){const U=new ae("Cannot handle MDX estrees without `createEvaluater`",{ancestors:S.ancestors,place:P,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw U.file=S.filePath||void 0,U.url=zt+"#cannot-handle-mdx-estrees-without-createevaluater",U}function St(S){const P={};let U;for(U in S)Ht.call(S,U)&&(P[fe(U)]=S[U]);return P}function fe(S){let P=S.replace(ge,xt);return P.slice(0,3)==="ms-"&&(P="-"+P),P}function Ct(S,P){return P.toUpperCase()}function xt(S){return"-"+S.toLowerCase()}const Dt={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var qt=h(37712);const _t={};function ve(S,P){const U=P||_t,Z=typeof U.includeImageAlt=="boolean"?U.includeImageAlt:!0,ot=typeof U.includeHtml=="boolean"?U.includeHtml:!0;return Ge(S,Z,ot)}function Ge(S,P,U){if(Ce(S)){if("value"in S)return S.type==="html"&&!U?"":S.value;if(P&&"alt"in S&&S.alt)return S.alt;if("children"in S)return Ke(S.children,P,U)}return Array.isArray(S)?Ke(S,P,U):""}function Ke(S,P,U){const Z=[];let ot=-1;for(;++ot<S.length;)Z[ot]=Ge(S[ot],P,U);return Z.join("")}function Ce(S){return!!(S&&typeof S=="object")}function Ve(S,P,U,Z){const ot=S.length;let ut=0,bt;if(P<0?P=-P>ot?0:ot+P:P=P>ot?ot:P,U=U>0?U:0,Z.length<1e4)bt=Array.from(Z),bt.unshift(P,U),S.splice(...bt);else for(U&&S.splice(P,U);ut<Z.length;)bt=Z.slice(ut,ut+1e4),bt.unshift(P,0),S.splice(...bt),ut+=1e4,P+=1e4}function Qe(S,P){return S.length>0?(Ve(S,S.length,0,P),S):P}class Bt{constructor(P){this.left=P?[...P]:[],this.right=[]}get(P){if(P<0||P>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+P+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return P<this.left.length?this.left[P]:this.right[this.right.length-P+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(P,U){const Z=U==null?Number.POSITIVE_INFINITY:U;return Z<this.left.length?this.left.slice(P,Z):P>this.left.length?this.right.slice(this.right.length-Z+this.left.length,this.right.length-P+this.left.length).reverse():this.left.slice(P).concat(this.right.slice(this.right.length-Z+this.left.length).reverse())}splice(P,U,Z){const ot=U||0;this.setCursor(Math.trunc(P));const ut=this.right.splice(this.right.length-ot,Number.POSITIVE_INFINITY);return Z&&xe(this.left,Z),ut.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(P){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(P)}pushMany(P){this.setCursor(Number.POSITIVE_INFINITY),xe(this.left,P)}unshift(P){this.setCursor(0),this.right.push(P)}unshiftMany(P){this.setCursor(0),xe(this.right,P.reverse())}setCursor(P){if(!(P===this.left.length||P>this.left.length&&this.right.length===0||P<0&&this.left.length===0))if(P<this.left.length){const U=this.left.splice(P,Number.POSITIVE_INFINITY);xe(this.right,U.reverse())}else{const U=this.right.splice(this.left.length+this.right.length-P,Number.POSITIVE_INFINITY);xe(this.left,U.reverse())}}}function xe(S,P){let U=0;if(P.length<1e4)S.push(...P);else for(;U<P.length;)S.push(...P.slice(U,U+1e4)),U+=1e4}function ze(S){const P={};let U=-1,Z,ot,ut,bt,Jt,Ie,Ue;const he=new Bt(S);for(;++U<he.length;){for(;U in P;)U=P[U];if(Z=he.get(U),U&&Z[1].type==="chunkFlow"&&he.get(U-1)[1].type==="listItemPrefix"&&(Ie=Z[1]._tokenizer.events,ut=0,ut<Ie.length&&Ie[ut][1].type==="lineEndingBlank"&&(ut+=2),ut<Ie.length&&Ie[ut][1].type==="content"))for(;++ut<Ie.length&&Ie[ut][1].type!=="content";)Ie[ut][1].type==="chunkText"&&(Ie[ut][1]._isInFirstContentOfListItem=!0,ut++);if(Z[0]==="enter")Z[1].contentType&&(Object.assign(P,Ne(he,U)),U=P[U],Ue=!0);else if(Z[1]._container){for(ut=U,ot=void 0;ut--;)if(bt=he.get(ut),bt[1].type==="lineEnding"||bt[1].type==="lineEndingBlank")bt[0]==="enter"&&(ot&&(he.get(ot)[1].type="lineEndingBlank"),bt[1].type="lineEnding",ot=ut);else if(bt[1].type!=="linePrefix")break;ot&&(Z[1].end=Ms({},he.get(ot)[1].start),Jt=he.slice(ot,U),Jt.unshift(Z),he.splice(ot,U-ot+1,Jt))}}return Ve(S,0,Number.POSITIVE_INFINITY,he.slice(0)),!Ue}function Ne(S,P){const U=S.get(P)[1],Z=S.get(P)[2];let ot=P-1;const ut=[],bt=U._tokenizer||Z.parser[U.contentType](U.start),Jt=bt.events,Ie=[],Ue={};let he,Fe,Oe=-1,ye=U,Ni=0,fi=0;const zi=[fi];for(;ye;){for(;S.get(++ot)[1]!==ye;);ut.push(ot),ye._tokenizer||(he=Z.sliceStream(ye),ye.next||he.push(null),Fe&&bt.defineSkip(ye.start),ye._isInFirstContentOfListItem&&(bt._gfmTasklistFirstContentOfListItem=!0),bt.write(he),ye._isInFirstContentOfListItem&&(bt._gfmTasklistFirstContentOfListItem=void 0)),Fe=ye,ye=ye.next}for(ye=U;++Oe<Jt.length;)Jt[Oe][0]==="exit"&&Jt[Oe-1][0]==="enter"&&Jt[Oe][1].type===Jt[Oe-1][1].type&&Jt[Oe][1].start.line!==Jt[Oe][1].end.line&&(fi=Oe+1,zi.push(fi),ye._tokenizer=void 0,ye.previous=void 0,ye=ye.next);for(bt.events=[],ye?(ye._tokenizer=void 0,ye.previous=void 0):zi.pop(),Oe=zi.length;Oe--;){const mi=Jt.slice(zi[Oe],zi[Oe+1]),Ri=ut.pop();Ie.push([Ri,Ri+mi.length-1]),S.splice(Ri,2,mi)}for(Ie.reverse(),Oe=-1;++Oe<Ie.length;)Ue[Ni+Ie[Oe][0]]=Ni+Ie[Oe][1],Ni+=Ie[Oe][1]-Ie[Oe][0]-1;return Ue}function Cn(S){for(;!ze(S););return S}const En={}.hasOwnProperty;function jn(S){const P={};let U=-1;for(;++U<S.length;)On(P,S[U]);return P}function On(S,P){let U;for(U in P){const ot=(En.call(S,U)?S[U]:void 0)||(S[U]={}),ut=P[U];let bt;if(ut)for(bt in ut){En.call(ot,bt)||(ot[bt]=[]);const Jt=ut[bt];ci(ot[bt],Array.isArray(Jt)?Jt:Jt?[Jt]:[])}}}function ci(S,P){let U=-1;const Z=[];for(;++U<P.length;)(P[U].add==="after"?S:Z).push(P[U]);Ve(S,0,0,Z)}function Si(S){const P={};let U=-1;for(;++U<S.length;)vi(P,S[U]);return P}function vi(S,P){let U;for(U in P){const ot=(En.call(S,U)?S[U]:void 0)||(S[U]={}),ut=P[U];let bt;if(ut)for(bt in ut)ot[bt]=ut[bt]}}var qn=h(26735),an=h(80722);const Ji={tokenize:ui};function ui(S){const P=S.attempt(this.parser.constructs.contentInitial,Z,ot);let U;return P;function Z(Jt){if(Jt===null){S.consume(Jt);return}return S.enter("lineEnding"),S.consume(Jt),S.exit("lineEnding"),(0,qn.f)(S,P,"linePrefix")}function ot(Jt){return S.enter("paragraph"),ut(Jt)}function ut(Jt){const Ie=S.enter("chunkText",{contentType:"text",previous:U});return U&&(U.next=Ie),U=Ie,bt(Jt)}function bt(Jt){if(Jt===null){S.exit("chunkText"),S.exit("paragraph"),S.consume(Jt);return}return(0,an.Ch)(Jt)?(S.consume(Jt),S.exit("chunkText"),ut):(S.consume(Jt),bt)}}const lr={tokenize:D},Di={tokenize:fr};function D(S){const P=this,U=[];let Z=0,ot,ut,bt;return Jt;function Jt(tr){if(Z<U.length){const oo=U[Z];return P.containerState=oo[1],S.attempt(oo[0].continuation,Ie,Ue)(tr)}return Ue(tr)}function Ie(tr){if(Z++,P.containerState._closeFlow){P.containerState._closeFlow=void 0,ot&&Ri();const oo=P.events.length;let ho=oo,ti;for(;ho--;)if(P.events[ho][0]==="exit"&&P.events[ho][1].type==="chunkFlow"){ti=P.events[ho][1].end;break}mi(Z);let Eo=oo;for(;Eo<P.events.length;)P.events[Eo][1].end=Ms({},ti),Eo++;return Ve(P.events,ho+1,0,P.events.slice(oo)),P.events.length=Eo,Ue(tr)}return Jt(tr)}function Ue(tr){if(Z===U.length){if(!ot)return Oe(tr);if(ot.currentConstruct&&ot.currentConstruct.concrete)return Ni(tr);P.interrupt=!!(ot.currentConstruct&&!ot._gfmTableDynamicInterruptHack)}return P.containerState={},S.check(Di,he,Fe)(tr)}function he(tr){return ot&&Ri(),mi(Z),Oe(tr)}function Fe(tr){return P.parser.lazy[P.now().line]=Z!==U.length,bt=P.now().offset,Ni(tr)}function Oe(tr){return P.containerState={},S.attempt(Di,ye,Ni)(tr)}function ye(tr){return Z++,U.push([P.currentConstruct,P.containerState]),Oe(tr)}function Ni(tr){if(tr===null){ot&&Ri(),mi(0),S.consume(tr);return}return ot=ot||P.parser.flow(P.now()),S.enter("chunkFlow",{_tokenizer:ot,contentType:"flow",previous:ut}),fi(tr)}function fi(tr){if(tr===null){zi(S.exit("chunkFlow"),!0),mi(0),S.consume(tr);return}return(0,an.Ch)(tr)?(S.consume(tr),zi(S.exit("chunkFlow")),Z=0,P.interrupt=void 0,Jt):(S.consume(tr),fi)}function zi(tr,oo){const ho=P.sliceStream(tr);if(oo&&ho.push(null),tr.previous=ut,ut&&(ut.next=tr),ut=tr,ot.defineSkip(tr.start),ot.write(ho),P.parser.lazy[tr.start.line]){let ti=ot.events.length;for(;ti--;)if(ot.events[ti][1].start.offset<bt&&(!ot.events[ti][1].end||ot.events[ti][1].end.offset>bt))return;const Eo=P.events.length;let Mo=Eo,po,ds;for(;Mo--;)if(P.events[Mo][0]==="exit"&&P.events[Mo][1].type==="chunkFlow"){if(po){ds=P.events[Mo][1].end;break}po=!0}for(mi(Z),ti=Eo;ti<P.events.length;)P.events[ti][1].end=Ms({},ds),ti++;Ve(P.events,Mo+1,0,P.events.slice(Eo)),P.events.length=ti}}function mi(tr){let oo=U.length;for(;oo-- >tr;){const ho=U[oo];P.containerState=ho[1],ho[0].exit.call(P,S)}U.length=tr}function Ri(){ot.write([null]),ut=void 0,ot=void 0,P.containerState._closeFlow=void 0}}function fr(S,P,U){return(0,qn.f)(S,S.attempt(this.parser.constructs.document,P,U),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const er={partial:!0,tokenize:Gr};function Gr(S,P,U){return Z;function Z(ut){return(0,an.xz)(ut)?(0,qn.f)(S,ot,"linePrefix")(ut):ot(ut)}function ot(ut){return ut===null||(0,an.Ch)(ut)?P(ut):U(ut)}}const Zr={resolve:Ei,tokenize:No},mo={partial:!0,tokenize:Ir};function Ei(S){return ze(S),S}function No(S,P){let U;return Z;function Z(Jt){return S.enter("content"),U=S.enter("chunkContent",{contentType:"content"}),ot(Jt)}function ot(Jt){return Jt===null?ut(Jt):(0,an.Ch)(Jt)?S.check(mo,bt,ut)(Jt):(S.consume(Jt),ot)}function ut(Jt){return S.exit("chunkContent"),S.exit("content"),P(Jt)}function bt(Jt){return S.consume(Jt),S.exit("chunkContent"),U.next=S.enter("chunkContent",{contentType:"content",previous:U}),U=U.next,ot}}function Ir(S,P,U){const Z=this;return ot;function ot(bt){return S.exit("chunkContent"),S.enter("lineEnding"),S.consume(bt),S.exit("lineEnding"),(0,qn.f)(S,ut,"linePrefix")}function ut(bt){if(bt===null||(0,an.Ch)(bt))return U(bt);const Jt=Z.events[Z.events.length-1];return!Z.parser.constructs.disable.null.includes("codeIndented")&&Jt&&Jt[1].type==="linePrefix"&&Jt[2].sliceSerialize(Jt[1],!0).length>=4?P(bt):S.interrupt(Z.parser.constructs.flow,U,P)(bt)}}const Gi={tokenize:Jn};function Jn(S){const P=this,U=S.attempt(er,Z,S.attempt(this.parser.constructs.flowInitial,ot,(0,qn.f)(S,S.attempt(this.parser.constructs.flow,ot,S.attempt(Zr,ot)),"linePrefix")));return U;function Z(ut){if(ut===null){S.consume(ut);return}return S.enter("lineEndingBlank"),S.consume(ut),S.exit("lineEndingBlank"),P.currentConstruct=void 0,U}function ot(ut){if(ut===null){S.consume(ut);return}return S.enter("lineEnding"),S.consume(ut),S.exit("lineEnding"),P.currentConstruct=void 0,U}}const te={resolveAll:Ft()},Nn=oe("string"),Bn=oe("text");function oe(S){return{resolveAll:Ft(S==="text"?qe:void 0),tokenize:P};function P(U){const Z=this,ot=this.parser.constructs[S],ut=U.attempt(ot,bt,Jt);return bt;function bt(he){return Ue(he)?ut(he):Jt(he)}function Jt(he){if(he===null){U.consume(he);return}return U.enter("data"),U.consume(he),Ie}function Ie(he){return Ue(he)?(U.exit("data"),ut(he)):(U.consume(he),Ie)}function Ue(he){if(he===null)return!0;const Fe=ot[he];let Oe=-1;if(Fe)for(;++Oe<Fe.length;){const ye=Fe[Oe];if(!ye.previous||ye.previous.call(Z,Z.previous))return!0}return!1}}}function Ft(S){return P;function P(U,Z){let ot=-1,ut;for(;++ot<=U.length;)ut===void 0?U[ot]&&U[ot][1].type==="data"&&(ut=ot,ot++):(!U[ot]||U[ot][1].type!=="data")&&(ot!==ut+2&&(U[ut][1].end=U[ot-1][1].end,U.splice(ut+2,ot-ut-2),ot=ut+2),ut=void 0);return S?S(U,Z):U}}function qe(S,P){let U=0;for(;++U<=S.length;)if((U===S.length||S[U][1].type==="lineEnding")&&S[U-1][1].type==="data"){const Z=S[U-1][1],ot=P.sliceStream(Z);let ut=ot.length,bt=-1,Jt=0,Ie;for(;ut--;){const Ue=ot[ut];if(typeof Ue=="string"){for(bt=Ue.length;Ue.charCodeAt(bt-1)===32;)Jt++,bt--;if(bt)break;bt=-1}else if(Ue===-2)Ie=!0,Jt++;else if(Ue!==-1){ut++;break}}if(Jt){const Ue={type:U===S.length||Ie||Jt<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:ut?bt:Z.start._bufferIndex+bt,_index:Z.start._index+ut,line:Z.end.line,column:Z.end.column-Jt,offset:Z.end.offset-Jt},end:Ms({},Z.end)};Z.end=Ms({},Ue.start),Z.start.offset===Z.end.offset?Object.assign(Z,Ue):(S.splice(U,0,["enter",Ue,P],["exit",Ue,P]),U+=2)}U++}return S}const xn={name:"thematicBreak",tokenize:Gn};function Gn(S,P,U){let Z=0,ot;return ut;function ut(Ue){return S.enter("thematicBreak"),bt(Ue)}function bt(Ue){return ot=Ue,Jt(Ue)}function Jt(Ue){return Ue===ot?(S.enter("thematicBreakSequence"),Ie(Ue)):Z>=3&&(Ue===null||(0,an.Ch)(Ue))?(S.exit("thematicBreak"),P(Ue)):U(Ue)}function Ie(Ue){return Ue===ot?(S.consume(Ue),Z++,Ie):(S.exit("thematicBreakSequence"),(0,an.xz)(Ue)?(0,qn.f)(S,Jt,"whitespace")(Ue):Jt(Ue))}}const kn={continuation:{tokenize:hi},exit:In,name:"list",tokenize:Fn},ne={partial:!0,tokenize:be},dn={partial:!0,tokenize:Me};function Fn(S,P,U){const Z=this,ot=Z.events[Z.events.length-1];let ut=ot&&ot[1].type==="linePrefix"?ot[2].sliceSerialize(ot[1],!0).length:0,bt=0;return Jt;function Jt(ye){const Ni=Z.containerState.type||(ye===42||ye===43||ye===45?"listUnordered":"listOrdered");if(Ni==="listUnordered"?!Z.containerState.marker||ye===Z.containerState.marker:(0,an.pY)(ye)){if(Z.containerState.type||(Z.containerState.type=Ni,S.enter(Ni,{_container:!0})),Ni==="listUnordered")return S.enter("listItemPrefix"),ye===42||ye===45?S.check(xn,U,Ue)(ye):Ue(ye);if(!Z.interrupt||ye===49)return S.enter("listItemPrefix"),S.enter("listItemValue"),Ie(ye)}return U(ye)}function Ie(ye){return(0,an.pY)(ye)&&++bt<10?(S.consume(ye),Ie):(!Z.interrupt||bt<2)&&(Z.containerState.marker?ye===Z.containerState.marker:ye===41||ye===46)?(S.exit("listItemValue"),Ue(ye)):U(ye)}function Ue(ye){return S.enter("listItemMarker"),S.consume(ye),S.exit("listItemMarker"),Z.containerState.marker=Z.containerState.marker||ye,S.check(er,Z.interrupt?U:he,S.attempt(ne,Oe,Fe))}function he(ye){return Z.containerState.initialBlankLine=!0,ut++,Oe(ye)}function Fe(ye){return(0,an.xz)(ye)?(S.enter("listItemPrefixWhitespace"),S.consume(ye),S.exit("listItemPrefixWhitespace"),Oe):U(ye)}function Oe(ye){return Z.containerState.size=ut+Z.sliceSerialize(S.exit("listItemPrefix"),!0).length,P(ye)}}function hi(S,P,U){const Z=this;return Z.containerState._closeFlow=void 0,S.check(er,ot,ut);function ot(Jt){return Z.containerState.furtherBlankLines=Z.containerState.furtherBlankLines||Z.containerState.initialBlankLine,(0,qn.f)(S,P,"listItemIndent",Z.containerState.size+1)(Jt)}function ut(Jt){return Z.containerState.furtherBlankLines||!(0,an.xz)(Jt)?(Z.containerState.furtherBlankLines=void 0,Z.containerState.initialBlankLine=void 0,bt(Jt)):(Z.containerState.furtherBlankLines=void 0,Z.containerState.initialBlankLine=void 0,S.attempt(dn,P,bt)(Jt))}function bt(Jt){return Z.containerState._closeFlow=!0,Z.interrupt=void 0,(0,qn.f)(S,S.attempt(kn,P,U),"linePrefix",Z.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Jt)}}function Me(S,P,U){const Z=this;return(0,qn.f)(S,ot,"listItemIndent",Z.containerState.size+1);function ot(ut){const bt=Z.events[Z.events.length-1];return bt&&bt[1].type==="listItemIndent"&&bt[2].sliceSerialize(bt[1],!0).length===Z.containerState.size?P(ut):U(ut)}}function In(S){S.exit(this.containerState.type)}function be(S,P,U){const Z=this;return(0,qn.f)(S,ot,"listItemPrefixWhitespace",Z.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function ot(ut){const bt=Z.events[Z.events.length-1];return!(0,an.xz)(ut)&&bt&&bt[1].type==="listItemPrefixWhitespace"?P(ut):U(ut)}}const $e={continuation:{tokenize:Le},exit:tn,name:"blockQuote",tokenize:He};function He(S,P,U){const Z=this;return ot;function ot(bt){if(bt===62){const Jt=Z.containerState;return Jt.open||(S.enter("blockQuote",{_container:!0}),Jt.open=!0),S.enter("blockQuotePrefix"),S.enter("blockQuoteMarker"),S.consume(bt),S.exit("blockQuoteMarker"),ut}return U(bt)}function ut(bt){return(0,an.xz)(bt)?(S.enter("blockQuotePrefixWhitespace"),S.consume(bt),S.exit("blockQuotePrefixWhitespace"),S.exit("blockQuotePrefix"),P):(S.exit("blockQuotePrefix"),P(bt))}}function Le(S,P,U){const Z=this;return ot;function ot(bt){return(0,an.xz)(bt)?(0,qn.f)(S,ut,"linePrefix",Z.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(bt):ut(bt)}function ut(bt){return S.attempt($e,P,U)(bt)}}function tn(S){S.exit("blockQuote")}function Je(S,P,U,Z,ot,ut,bt,Jt,Ie){const Ue=Ie||Number.POSITIVE_INFINITY;let he=0;return Fe;function Fe(mi){return mi===60?(S.enter(Z),S.enter(ot),S.enter(ut),S.consume(mi),S.exit(ut),Oe):mi===null||mi===32||mi===41||(0,an.Av)(mi)?U(mi):(S.enter(Z),S.enter(bt),S.enter(Jt),S.enter("chunkString",{contentType:"string"}),fi(mi))}function Oe(mi){return mi===62?(S.enter(ut),S.consume(mi),S.exit(ut),S.exit(ot),S.exit(Z),P):(S.enter(Jt),S.enter("chunkString",{contentType:"string"}),ye(mi))}function ye(mi){return mi===62?(S.exit("chunkString"),S.exit(Jt),Oe(mi)):mi===null||mi===60||(0,an.Ch)(mi)?U(mi):(S.consume(mi),mi===92?Ni:ye)}function Ni(mi){return mi===60||mi===62||mi===92?(S.consume(mi),ye):ye(mi)}function fi(mi){return!he&&(mi===null||mi===41||(0,an.z3)(mi))?(S.exit("chunkString"),S.exit(Jt),S.exit(bt),S.exit(Z),P(mi)):he<Ue&&mi===40?(S.consume(mi),he++,fi):mi===41?(S.consume(mi),he--,fi):mi===null||mi===32||mi===40||(0,an.Av)(mi)?U(mi):(S.consume(mi),mi===92?zi:fi)}function zi(mi){return mi===40||mi===41||mi===92?(S.consume(mi),fi):fi(mi)}}function yn(S,P,U,Z,ot,ut){const bt=this;let Jt=0,Ie;return Ue;function Ue(ye){return S.enter(Z),S.enter(ot),S.consume(ye),S.exit(ot),S.enter(ut),he}function he(ye){return Jt>999||ye===null||ye===91||ye===93&&!Ie||ye===94&&!Jt&&"_hiddenFootnoteSupport"in bt.parser.constructs?U(ye):ye===93?(S.exit(ut),S.enter(ot),S.consume(ye),S.exit(ot),S.exit(Z),P):(0,an.Ch)(ye)?(S.enter("lineEnding"),S.consume(ye),S.exit("lineEnding"),he):(S.enter("chunkString",{contentType:"string"}),Fe(ye))}function Fe(ye){return ye===null||ye===91||ye===93||(0,an.Ch)(ye)||Jt++>999?(S.exit("chunkString"),he(ye)):(S.consume(ye),Ie||(Ie=!(0,an.xz)(ye)),ye===92?Oe:Fe)}function Oe(ye){return ye===91||ye===92||ye===93?(S.consume(ye),Jt++,Fe):Fe(ye)}}function bn(S,P,U,Z,ot,ut){let bt;return Jt;function Jt(Oe){return Oe===34||Oe===39||Oe===40?(S.enter(Z),S.enter(ot),S.consume(Oe),S.exit(ot),bt=Oe===40?41:Oe,Ie):U(Oe)}function Ie(Oe){return Oe===bt?(S.enter(ot),S.consume(Oe),S.exit(ot),S.exit(Z),P):(S.enter(ut),Ue(Oe))}function Ue(Oe){return Oe===bt?(S.exit(ut),Ie(bt)):Oe===null?U(Oe):(0,an.Ch)(Oe)?(S.enter("lineEnding"),S.consume(Oe),S.exit("lineEnding"),(0,qn.f)(S,Ue,"linePrefix")):(S.enter("chunkString",{contentType:"string"}),he(Oe))}function he(Oe){return Oe===bt||Oe===null||(0,an.Ch)(Oe)?(S.exit("chunkString"),Ue(Oe)):(S.consume(Oe),Oe===92?Fe:he)}function Fe(Oe){return Oe===bt||Oe===92?(S.consume(Oe),he):he(Oe)}}function di(S,P){let U;return Z;function Z(ot){return(0,an.Ch)(ot)?(S.enter("lineEnding"),S.consume(ot),S.exit("lineEnding"),U=!0,Z):(0,an.xz)(ot)?(0,qn.f)(S,Z,U?"linePrefix":"lineSuffix")(ot):P(ot)}}function Sn(S){return S.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const xi={name:"definition",tokenize:Mi},ir={partial:!0,tokenize:le};function Mi(S,P,U){const Z=this;let ot;return ut;function ut(ye){return S.enter("definition"),bt(ye)}function bt(ye){return yn.call(Z,S,Jt,U,"definitionLabel","definitionLabelMarker","definitionLabelString")(ye)}function Jt(ye){return ot=Sn(Z.sliceSerialize(Z.events[Z.events.length-1][1]).slice(1,-1)),ye===58?(S.enter("definitionMarker"),S.consume(ye),S.exit("definitionMarker"),Ie):U(ye)}function Ie(ye){return(0,an.z3)(ye)?di(S,Ue)(ye):Ue(ye)}function Ue(ye){return Je(S,he,U,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(ye)}function he(ye){return S.attempt(ir,Fe,Fe)(ye)}function Fe(ye){return(0,an.xz)(ye)?(0,qn.f)(S,Oe,"whitespace")(ye):Oe(ye)}function Oe(ye){return ye===null||(0,an.Ch)(ye)?(S.exit("definition"),Z.parser.defined.push(ot),P(ye)):U(ye)}}function le(S,P,U){return Z;function Z(Jt){return(0,an.z3)(Jt)?di(S,ot)(Jt):U(Jt)}function ot(Jt){return bn(S,ut,U,"definitionTitle","definitionTitleMarker","definitionTitleString")(Jt)}function ut(Jt){return(0,an.xz)(Jt)?(0,qn.f)(S,bt,"whitespace")(Jt):bt(Jt)}function bt(Jt){return Jt===null||(0,an.Ch)(Jt)?P(Jt):U(Jt)}}const mr={name:"codeIndented",tokenize:zr},Or={partial:!0,tokenize:Yr};function zr(S,P,U){const Z=this;return ot;function ot(Ue){return S.enter("codeIndented"),(0,qn.f)(S,ut,"linePrefix",5)(Ue)}function ut(Ue){const he=Z.events[Z.events.length-1];return he&&he[1].type==="linePrefix"&&he[2].sliceSerialize(he[1],!0).length>=4?bt(Ue):U(Ue)}function bt(Ue){return Ue===null?Ie(Ue):(0,an.Ch)(Ue)?S.attempt(Or,bt,Ie)(Ue):(S.enter("codeFlowValue"),Jt(Ue))}function Jt(Ue){return Ue===null||(0,an.Ch)(Ue)?(S.exit("codeFlowValue"),bt(Ue)):(S.consume(Ue),Jt)}function Ie(Ue){return S.exit("codeIndented"),P(Ue)}}function Yr(S,P,U){const Z=this;return ot;function ot(bt){return Z.parser.lazy[Z.now().line]?U(bt):(0,an.Ch)(bt)?(S.enter("lineEnding"),S.consume(bt),S.exit("lineEnding"),ot):(0,qn.f)(S,ut,"linePrefix",5)(bt)}function ut(bt){const Jt=Z.events[Z.events.length-1];return Jt&&Jt[1].type==="linePrefix"&&Jt[2].sliceSerialize(Jt[1],!0).length>=4?P(bt):(0,an.Ch)(bt)?ot(bt):U(bt)}}const dr={name:"headingAtx",resolve:Er,tokenize:Pi};function Er(S,P){let U=S.length-2,Z=3,ot,ut;return S[Z][1].type==="whitespace"&&(Z+=2),U-2>Z&&S[U][1].type==="whitespace"&&(U-=2),S[U][1].type==="atxHeadingSequence"&&(Z===U-1||U-4>Z&&S[U-2][1].type==="whitespace")&&(U-=Z+1===U?2:4),U>Z&&(ot={type:"atxHeadingText",start:S[Z][1].start,end:S[U][1].end},ut={type:"chunkText",start:S[Z][1].start,end:S[U][1].end,contentType:"text"},Ve(S,Z,U-Z+1,[["enter",ot,P],["enter",ut,P],["exit",ut,P],["exit",ot,P]])),S}function Pi(S,P,U){let Z=0;return ot;function ot(he){return S.enter("atxHeading"),ut(he)}function ut(he){return S.enter("atxHeadingSequence"),bt(he)}function bt(he){return he===35&&Z++<6?(S.consume(he),bt):he===null||(0,an.z3)(he)?(S.exit("atxHeadingSequence"),Jt(he)):U(he)}function Jt(he){return he===35?(S.enter("atxHeadingSequence"),Ie(he)):he===null||(0,an.Ch)(he)?(S.exit("atxHeading"),P(he)):(0,an.xz)(he)?(0,qn.f)(S,Jt,"whitespace")(he):(S.enter("atxHeadingText"),Ue(he))}function Ie(he){return he===35?(S.consume(he),Ie):(S.exit("atxHeadingSequence"),Jt(he))}function Ue(he){return he===null||he===35||(0,an.z3)(he)?(S.exit("atxHeadingText"),Jt(he)):(S.consume(he),Ue)}}const pi={name:"setextUnderline",resolveTo:ur,tokenize:Re};function ur(S,P){let U=S.length,Z,ot,ut;for(;U--;)if(S[U][0]==="enter"){if(S[U][1].type==="content"){Z=U;break}S[U][1].type==="paragraph"&&(ot=U)}else S[U][1].type==="content"&&S.splice(U,1),!ut&&S[U][1].type==="definition"&&(ut=U);const bt={type:"setextHeading",start:Ms({},S[ot][1].start),end:Ms({},S[S.length-1][1].end)};return S[ot][1].type="setextHeadingText",ut?(S.splice(ot,0,["enter",bt,P]),S.splice(ut+1,0,["exit",S[Z][1],P]),S[Z][1].end=Ms({},S[ut][1].end)):S[Z][1]=bt,S.push(["exit",bt,P]),S}function Re(S,P,U){const Z=this;let ot;return ut;function ut(Ue){let he=Z.events.length,Fe;for(;he--;)if(Z.events[he][1].type!=="lineEnding"&&Z.events[he][1].type!=="linePrefix"&&Z.events[he][1].type!=="content"){Fe=Z.events[he][1].type==="paragraph";break}return!Z.parser.lazy[Z.now().line]&&(Z.interrupt||Fe)?(S.enter("setextHeadingLine"),ot=Ue,bt(Ue)):U(Ue)}function bt(Ue){return S.enter("setextHeadingLineSequence"),Jt(Ue)}function Jt(Ue){return Ue===ot?(S.consume(Ue),Jt):(S.exit("setextHeadingLineSequence"),(0,an.xz)(Ue)?(0,qn.f)(S,Ie,"lineSuffix")(Ue):Ie(Ue))}function Ie(Ue){return Ue===null||(0,an.Ch)(Ue)?(S.exit("setextHeadingLine"),P(Ue)):U(Ue)}}const Rr=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],je=["pre","script","style","textarea"],nr={concrete:!0,name:"htmlFlow",resolveTo:rs,tokenize:yo},Co={partial:!0,tokenize:W},Br={partial:!0,tokenize:ai};function rs(S){let P=S.length;for(;P--&&!(S[P][0]==="enter"&&S[P][1].type==="htmlFlow"););return P>1&&S[P-2][1].type==="linePrefix"&&(S[P][1].start=S[P-2][1].start,S[P+1][1].start=S[P-2][1].start,S.splice(P-2,2)),S}function yo(S,P,U){const Z=this;let ot,ut,bt,Jt,Ie;return Ue;function Ue(on){return he(on)}function he(on){return S.enter("htmlFlow"),S.enter("htmlFlowData"),S.consume(on),Fe}function Fe(on){return on===33?(S.consume(on),Oe):on===47?(S.consume(on),ut=!0,fi):on===63?(S.consume(on),ot=3,Z.interrupt?P:nn):(0,an.jv)(on)?(S.consume(on),bt=String.fromCharCode(on),zi):U(on)}function Oe(on){return on===45?(S.consume(on),ot=2,ye):on===91?(S.consume(on),ot=5,Jt=0,Ni):(0,an.jv)(on)?(S.consume(on),ot=4,Z.interrupt?P:nn):U(on)}function ye(on){return on===45?(S.consume(on),Z.interrupt?P:nn):U(on)}function Ni(on){const Ws="CDATA[";return on===Ws.charCodeAt(Jt++)?(S.consume(on),Jt===Ws.length?Z.interrupt?P:Vr:Ni):U(on)}function fi(on){return(0,an.jv)(on)?(S.consume(on),bt=String.fromCharCode(on),zi):U(on)}function zi(on){if(on===null||on===47||on===62||(0,an.z3)(on)){const Ws=on===47,zo=bt.toLowerCase();return!Ws&&!ut&&je.includes(zo)?(ot=1,Z.interrupt?P(on):Vr(on)):Rr.includes(bt.toLowerCase())?(ot=6,Ws?(S.consume(on),mi):Z.interrupt?P(on):Vr(on)):(ot=7,Z.interrupt&&!Z.parser.lazy[Z.now().line]?U(on):ut?Ri(on):tr(on))}return on===45||(0,an.H$)(on)?(S.consume(on),bt+=String.fromCharCode(on),zi):U(on)}function mi(on){return on===62?(S.consume(on),Z.interrupt?P:Vr):U(on)}function Ri(on){return(0,an.xz)(on)?(S.consume(on),Ri):ds(on)}function tr(on){return on===47?(S.consume(on),ds):on===58||on===95||(0,an.jv)(on)?(S.consume(on),oo):(0,an.xz)(on)?(S.consume(on),tr):ds(on)}function oo(on){return on===45||on===46||on===58||on===95||(0,an.H$)(on)?(S.consume(on),oo):ho(on)}function ho(on){return on===61?(S.consume(on),ti):(0,an.xz)(on)?(S.consume(on),ho):tr(on)}function ti(on){return on===null||on===60||on===61||on===62||on===96?U(on):on===34||on===39?(S.consume(on),Ie=on,Eo):(0,an.xz)(on)?(S.consume(on),ti):Mo(on)}function Eo(on){return on===Ie?(S.consume(on),Ie=null,po):on===null||(0,an.Ch)(on)?U(on):(S.consume(on),Eo)}function Mo(on){return on===null||on===34||on===39||on===47||on===60||on===61||on===62||on===96||(0,an.z3)(on)?ho(on):(S.consume(on),Mo)}function po(on){return on===47||on===62||(0,an.xz)(on)?tr(on):U(on)}function ds(on){return on===62?(S.consume(on),bo):U(on)}function bo(on){return on===null||(0,an.Ch)(on)?Vr(on):(0,an.xz)(on)?(S.consume(on),bo):U(on)}function Vr(on){return on===45&&ot===2?(S.consume(on),xr):on===60&&ot===1?(S.consume(on),vo):on===62&&ot===4?(S.consume(on),Gs):on===63&&ot===3?(S.consume(on),nn):on===93&&ot===5?(S.consume(on),qs):(0,an.Ch)(on)&&(ot===6||ot===7)?(S.exit("htmlFlowData"),S.check(Co,la,rr)(on)):on===null||(0,an.Ch)(on)?(S.exit("htmlFlowData"),rr(on)):(S.consume(on),Vr)}function rr(on){return S.check(Br,Hr,la)(on)}function Hr(on){return S.enter("lineEnding"),S.consume(on),S.exit("lineEnding"),Qr}function Qr(on){return on===null||(0,an.Ch)(on)?rr(on):(S.enter("htmlFlowData"),Vr(on))}function xr(on){return on===45?(S.consume(on),nn):Vr(on)}function vo(on){return on===47?(S.consume(on),bt="",ms):Vr(on)}function ms(on){if(on===62){const Ws=bt.toLowerCase();return je.includes(Ws)?(S.consume(on),Gs):Vr(on)}return(0,an.jv)(on)&&bt.length<8?(S.consume(on),bt+=String.fromCharCode(on),ms):Vr(on)}function qs(on){return on===93?(S.consume(on),nn):Vr(on)}function nn(on){return on===62?(S.consume(on),Gs):on===45&&ot===2?(S.consume(on),nn):Vr(on)}function Gs(on){return on===null||(0,an.Ch)(on)?(S.exit("htmlFlowData"),la(on)):(S.consume(on),Gs)}function la(on){return S.exit("htmlFlow"),P(on)}}function ai(S,P,U){const Z=this;return ot;function ot(bt){return(0,an.Ch)(bt)?(S.enter("lineEnding"),S.consume(bt),S.exit("lineEnding"),ut):U(bt)}function ut(bt){return Z.parser.lazy[Z.now().line]?U(bt):P(bt)}}function W(S,P,U){return Z;function Z(ot){return S.enter("lineEnding"),S.consume(ot),S.exit("lineEnding"),S.attempt(er,P,U)}}const tt={partial:!0,tokenize:$},Pn={concrete:!0,name:"codeFenced",tokenize:pt};function pt(S,P,U){const Z=this,ot={partial:!0,tokenize:ho};let ut=0,bt=0,Jt;return Ie;function Ie(ti){return Ue(ti)}function Ue(ti){const Eo=Z.events[Z.events.length-1];return ut=Eo&&Eo[1].type==="linePrefix"?Eo[2].sliceSerialize(Eo[1],!0).length:0,Jt=ti,S.enter("codeFenced"),S.enter("codeFencedFence"),S.enter("codeFencedFenceSequence"),he(ti)}function he(ti){return ti===Jt?(bt++,S.consume(ti),he):bt<3?U(ti):(S.exit("codeFencedFenceSequence"),(0,an.xz)(ti)?(0,qn.f)(S,Fe,"whitespace")(ti):Fe(ti))}function Fe(ti){return ti===null||(0,an.Ch)(ti)?(S.exit("codeFencedFence"),Z.interrupt?P(ti):S.check(tt,fi,oo)(ti)):(S.enter("codeFencedFenceInfo"),S.enter("chunkString",{contentType:"string"}),Oe(ti))}function Oe(ti){return ti===null||(0,an.Ch)(ti)?(S.exit("chunkString"),S.exit("codeFencedFenceInfo"),Fe(ti)):(0,an.xz)(ti)?(S.exit("chunkString"),S.exit("codeFencedFenceInfo"),(0,qn.f)(S,ye,"whitespace")(ti)):ti===96&&ti===Jt?U(ti):(S.consume(ti),Oe)}function ye(ti){return ti===null||(0,an.Ch)(ti)?Fe(ti):(S.enter("codeFencedFenceMeta"),S.enter("chunkString",{contentType:"string"}),Ni(ti))}function Ni(ti){return ti===null||(0,an.Ch)(ti)?(S.exit("chunkString"),S.exit("codeFencedFenceMeta"),Fe(ti)):ti===96&&ti===Jt?U(ti):(S.consume(ti),Ni)}function fi(ti){return S.attempt(ot,oo,zi)(ti)}function zi(ti){return S.enter("lineEnding"),S.consume(ti),S.exit("lineEnding"),mi}function mi(ti){return ut>0&&(0,an.xz)(ti)?(0,qn.f)(S,Ri,"linePrefix",ut+1)(ti):Ri(ti)}function Ri(ti){return ti===null||(0,an.Ch)(ti)?S.check(tt,fi,oo)(ti):(S.enter("codeFlowValue"),tr(ti))}function tr(ti){return ti===null||(0,an.Ch)(ti)?(S.exit("codeFlowValue"),Ri(ti)):(S.consume(ti),tr)}function oo(ti){return S.exit("codeFenced"),P(ti)}function ho(ti,Eo,Mo){let po=0;return ds;function ds(Qr){return ti.enter("lineEnding"),ti.consume(Qr),ti.exit("lineEnding"),bo}function bo(Qr){return ti.enter("codeFencedFence"),(0,an.xz)(Qr)?(0,qn.f)(ti,Vr,"linePrefix",Z.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Qr):Vr(Qr)}function Vr(Qr){return Qr===Jt?(ti.enter("codeFencedFenceSequence"),rr(Qr)):Mo(Qr)}function rr(Qr){return Qr===Jt?(po++,ti.consume(Qr),rr):po>=bt?(ti.exit("codeFencedFenceSequence"),(0,an.xz)(Qr)?(0,qn.f)(ti,Hr,"whitespace")(Qr):Hr(Qr)):Mo(Qr)}function Hr(Qr){return Qr===null||(0,an.Ch)(Qr)?(ti.exit("codeFencedFence"),Eo(Qr)):Mo(Qr)}}}function $(S,P,U){const Z=this;return ot;function ot(bt){return bt===null?U(bt):(S.enter("lineEnding"),S.consume(bt),S.exit("lineEnding"),ut)}function ut(bt){return Z.parser.lazy[Z.now().line]?U(bt):P(bt)}}const Wi=document.createElement("i");function bi(S){const P="&"+S+";";Wi.innerHTML=P;const U=Wi.textContent;return U.charCodeAt(U.length-1)===59&&S!=="semi"||U===P?!1:U}const qi={name:"characterReference",tokenize:go};function go(S,P,U){const Z=this;let ot=0,ut,bt;return Jt;function Jt(Fe){return S.enter("characterReference"),S.enter("characterReferenceMarker"),S.consume(Fe),S.exit("characterReferenceMarker"),Ie}function Ie(Fe){return Fe===35?(S.enter("characterReferenceMarkerNumeric"),S.consume(Fe),S.exit("characterReferenceMarkerNumeric"),Ue):(S.enter("characterReferenceValue"),ut=31,bt=an.H$,he(Fe))}function Ue(Fe){return Fe===88||Fe===120?(S.enter("characterReferenceMarkerHexadecimal"),S.consume(Fe),S.exit("characterReferenceMarkerHexadecimal"),S.enter("characterReferenceValue"),ut=6,bt=an.AF,he):(S.enter("characterReferenceValue"),ut=7,bt=an.pY,he(Fe))}function he(Fe){if(Fe===59&&ot){const Oe=S.exit("characterReferenceValue");return bt===an.H$&&!bi(Z.sliceSerialize(Oe))?U(Fe):(S.enter("characterReferenceMarker"),S.consume(Fe),S.exit("characterReferenceMarker"),S.exit("characterReference"),P)}return bt(Fe)&&ot++<ut?(S.consume(Fe),he):U(Fe)}}const Ui={name:"characterEscape",tokenize:Xr};function Xr(S,P,U){return Z;function Z(ut){return S.enter("characterEscape"),S.enter("escapeMarker"),S.consume(ut),S.exit("escapeMarker"),ot}function ot(ut){return(0,an.sR)(ut)?(S.enter("characterEscapeValue"),S.consume(ut),S.exit("characterEscapeValue"),S.exit("characterEscape"),P):U(ut)}}const $i={name:"lineEnding",tokenize:Vi};function Vi(S,P){return U;function U(Z){return S.enter("lineEnding"),S.consume(Z),S.exit("lineEnding"),(0,qn.f)(S,P,"linePrefix")}}function se(S,P,U){const Z=[];let ot=-1;for(;++ot<S.length;){const ut=S[ot].resolveAll;ut&&!Z.includes(ut)&&(P=ut(P,U),Z.push(ut))}return P}const kr={name:"labelEnd",resolveAll:ni,resolveTo:Ps,tokenize:Is},De={tokenize:Js},Wo={tokenize:Us},ls={tokenize:oa};function ni(S){let P=-1;const U=[];for(;++P<S.length;){const Z=S[P][1];if(U.push(S[P]),Z.type==="labelImage"||Z.type==="labelLink"||Z.type==="labelEnd"){const ot=Z.type==="labelImage"?4:2;Z.type="data",P+=ot}}return S.length!==U.length&&Ve(S,0,S.length,U),S}function Ps(S,P){let U=S.length,Z=0,ot,ut,bt,Jt;for(;U--;)if(ot=S[U][1],ut){if(ot.type==="link"||ot.type==="labelLink"&&ot._inactive)break;S[U][0]==="enter"&&ot.type==="labelLink"&&(ot._inactive=!0)}else if(bt){if(S[U][0]==="enter"&&(ot.type==="labelImage"||ot.type==="labelLink")&&!ot._balanced&&(ut=U,ot.type!=="labelLink")){Z=2;break}}else ot.type==="labelEnd"&&(bt=U);const Ie={type:S[ut][1].type==="labelLink"?"link":"image",start:Ms({},S[ut][1].start),end:Ms({},S[S.length-1][1].end)},Ue={type:"label",start:Ms({},S[ut][1].start),end:Ms({},S[bt][1].end)},he={type:"labelText",start:Ms({},S[ut+Z+2][1].end),end:Ms({},S[bt-2][1].start)};return Jt=[["enter",Ie,P],["enter",Ue,P]],Jt=Qe(Jt,S.slice(ut+1,ut+Z+3)),Jt=Qe(Jt,[["enter",he,P]]),Jt=Qe(Jt,se(P.parser.constructs.insideSpan.null,S.slice(ut+Z+4,bt-3),P)),Jt=Qe(Jt,[["exit",he,P],S[bt-2],S[bt-1],["exit",Ue,P]]),Jt=Qe(Jt,S.slice(bt+1)),Jt=Qe(Jt,[["exit",Ie,P]]),Ve(S,ut,S.length,Jt),S}function Is(S,P,U){const Z=this;let ot=Z.events.length,ut,bt;for(;ot--;)if((Z.events[ot][1].type==="labelImage"||Z.events[ot][1].type==="labelLink")&&!Z.events[ot][1]._balanced){ut=Z.events[ot][1];break}return Jt;function Jt(Oe){return ut?ut._inactive?Fe(Oe):(bt=Z.parser.defined.includes(Sn(Z.sliceSerialize({start:ut.end,end:Z.now()}))),S.enter("labelEnd"),S.enter("labelMarker"),S.consume(Oe),S.exit("labelMarker"),S.exit("labelEnd"),Ie):U(Oe)}function Ie(Oe){return Oe===40?S.attempt(De,he,bt?he:Fe)(Oe):Oe===91?S.attempt(Wo,he,bt?Ue:Fe)(Oe):bt?he(Oe):Fe(Oe)}function Ue(Oe){return S.attempt(ls,he,Fe)(Oe)}function he(Oe){return P(Oe)}function Fe(Oe){return ut._balanced=!0,U(Oe)}}function Js(S,P,U){return Z;function Z(Fe){return S.enter("resource"),S.enter("resourceMarker"),S.consume(Fe),S.exit("resourceMarker"),ot}function ot(Fe){return(0,an.z3)(Fe)?di(S,ut)(Fe):ut(Fe)}function ut(Fe){return Fe===41?he(Fe):Je(S,bt,Jt,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(Fe)}function bt(Fe){return(0,an.z3)(Fe)?di(S,Ie)(Fe):he(Fe)}function Jt(Fe){return U(Fe)}function Ie(Fe){return Fe===34||Fe===39||Fe===40?bn(S,Ue,U,"resourceTitle","resourceTitleMarker","resourceTitleString")(Fe):he(Fe)}function Ue(Fe){return(0,an.z3)(Fe)?di(S,he)(Fe):he(Fe)}function he(Fe){return Fe===41?(S.enter("resourceMarker"),S.consume(Fe),S.exit("resourceMarker"),S.exit("resource"),P):U(Fe)}}function Us(S,P,U){const Z=this;return ot;function ot(Jt){return yn.call(Z,S,ut,bt,"reference","referenceMarker","referenceString")(Jt)}function ut(Jt){return Z.parser.defined.includes(Sn(Z.sliceSerialize(Z.events[Z.events.length-1][1]).slice(1,-1)))?P(Jt):U(Jt)}function bt(Jt){return U(Jt)}}function oa(S,P,U){return Z;function Z(ut){return S.enter("reference"),S.enter("referenceMarker"),S.consume(ut),S.exit("referenceMarker"),ot}function ot(ut){return ut===93?(S.enter("referenceMarker"),S.consume(ut),S.exit("referenceMarker"),S.exit("reference"),P):U(ut)}}const Qa={name:"labelStartImage",resolveAll:kr.resolveAll,tokenize:da};function da(S,P,U){const Z=this;return ot;function ot(Jt){return S.enter("labelImage"),S.enter("labelImageMarker"),S.consume(Jt),S.exit("labelImageMarker"),ut}function ut(Jt){return Jt===91?(S.enter("labelMarker"),S.consume(Jt),S.exit("labelMarker"),S.exit("labelImage"),bt):U(Jt)}function bt(Jt){return Jt===94&&"_hiddenFootnoteSupport"in Z.parser.constructs?U(Jt):P(Jt)}}function Jr(S){if(S===null||(0,an.z3)(S)||(0,an.B8)(S))return 1;if((0,an.Xh)(S))return 2}const vs={name:"attention",resolveAll:es,tokenize:ke};function es(S,P){let U=-1,Z,ot,ut,bt,Jt,Ie,Ue,he;for(;++U<S.length;)if(S[U][0]==="enter"&&S[U][1].type==="attentionSequence"&&S[U][1]._close){for(Z=U;Z--;)if(S[Z][0]==="exit"&&S[Z][1].type==="attentionSequence"&&S[Z][1]._open&&P.sliceSerialize(S[Z][1]).charCodeAt(0)===P.sliceSerialize(S[U][1]).charCodeAt(0)){if((S[Z][1]._close||S[U][1]._open)&&(S[U][1].end.offset-S[U][1].start.offset)%3&&!((S[Z][1].end.offset-S[Z][1].start.offset+S[U][1].end.offset-S[U][1].start.offset)%3))continue;Ie=S[Z][1].end.offset-S[Z][1].start.offset>1&&S[U][1].end.offset-S[U][1].start.offset>1?2:1;const Fe=Ms({},S[Z][1].end),Oe=Ms({},S[U][1].start);ys(Fe,-Ie),ys(Oe,Ie),bt={type:Ie>1?"strongSequence":"emphasisSequence",start:Fe,end:Ms({},S[Z][1].end)},Jt={type:Ie>1?"strongSequence":"emphasisSequence",start:Ms({},S[U][1].start),end:Oe},ut={type:Ie>1?"strongText":"emphasisText",start:Ms({},S[Z][1].end),end:Ms({},S[U][1].start)},ot={type:Ie>1?"strong":"emphasis",start:Ms({},bt.start),end:Ms({},Jt.end)},S[Z][1].end=Ms({},bt.start),S[U][1].start=Ms({},Jt.end),Ue=[],S[Z][1].end.offset-S[Z][1].start.offset&&(Ue=Qe(Ue,[["enter",S[Z][1],P],["exit",S[Z][1],P]])),Ue=Qe(Ue,[["enter",ot,P],["enter",bt,P],["exit",bt,P],["enter",ut,P]]),Ue=Qe(Ue,se(P.parser.constructs.insideSpan.null,S.slice(Z+1,U),P)),Ue=Qe(Ue,[["exit",ut,P],["enter",Jt,P],["exit",Jt,P],["exit",ot,P]]),S[U][1].end.offset-S[U][1].start.offset?(he=2,Ue=Qe(Ue,[["enter",S[U][1],P],["exit",S[U][1],P]])):he=0,Ve(S,Z-1,U-Z+3,Ue),U=Z+Ue.length-he-2;break}}for(U=-1;++U<S.length;)S[U][1].type==="attentionSequence"&&(S[U][1].type="data");return S}function ke(S,P){const U=this.parser.constructs.attentionMarkers.null,Z=this.previous,ot=Jr(Z);let ut;return bt;function bt(Ie){return ut=Ie,S.enter("attentionSequence"),Jt(Ie)}function Jt(Ie){if(Ie===ut)return S.consume(Ie),Jt;const Ue=S.exit("attentionSequence"),he=Jr(Ie),Fe=!he||he===2&&ot||U.includes(Ie),Oe=!ot||ot===2&&he||U.includes(Z);return Ue._open=!!(ut===42?Fe:Fe&&(ot||!Oe)),Ue._close=!!(ut===42?Oe:Oe&&(he||!Fe)),P(Ie)}}function ys(S,P){S.column+=P,S.offset+=P,S._bufferIndex+=P}const Su={name:"autolink",tokenize:Dl};function Dl(S,P,U){let Z=0;return ot;function ot(ye){return S.enter("autolink"),S.enter("autolinkMarker"),S.consume(ye),S.exit("autolinkMarker"),S.enter("autolinkProtocol"),ut}function ut(ye){return(0,an.jv)(ye)?(S.consume(ye),bt):ye===64?U(ye):Ue(ye)}function bt(ye){return ye===43||ye===45||ye===46||(0,an.H$)(ye)?(Z=1,Jt(ye)):Ue(ye)}function Jt(ye){return ye===58?(S.consume(ye),Z=0,Ie):(ye===43||ye===45||ye===46||(0,an.H$)(ye))&&Z++<32?(S.consume(ye),Jt):(Z=0,Ue(ye))}function Ie(ye){return ye===62?(S.exit("autolinkProtocol"),S.enter("autolinkMarker"),S.consume(ye),S.exit("autolinkMarker"),S.exit("autolink"),P):ye===null||ye===32||ye===60||(0,an.Av)(ye)?U(ye):(S.consume(ye),Ie)}function Ue(ye){return ye===64?(S.consume(ye),he):(0,an.n9)(ye)?(S.consume(ye),Ue):U(ye)}function he(ye){return(0,an.H$)(ye)?Fe(ye):U(ye)}function Fe(ye){return ye===46?(S.consume(ye),Z=0,he):ye===62?(S.exit("autolinkProtocol").type="autolinkEmail",S.enter("autolinkMarker"),S.consume(ye),S.exit("autolinkMarker"),S.exit("autolink"),P):Oe(ye)}function Oe(ye){if((ye===45||(0,an.H$)(ye))&&Z++<63){const Ni=ye===45?Oe:Fe;return S.consume(ye),Ni}return U(ye)}}const lo={name:"htmlText",tokenize:Fo};function Fo(S,P,U){const Z=this;let ot,ut,bt;return Jt;function Jt(nn){return S.enter("htmlText"),S.enter("htmlTextData"),S.consume(nn),Ie}function Ie(nn){return nn===33?(S.consume(nn),Ue):nn===47?(S.consume(nn),ho):nn===63?(S.consume(nn),tr):(0,an.jv)(nn)?(S.consume(nn),Mo):U(nn)}function Ue(nn){return nn===45?(S.consume(nn),he):nn===91?(S.consume(nn),ut=0,Ni):(0,an.jv)(nn)?(S.consume(nn),Ri):U(nn)}function he(nn){return nn===45?(S.consume(nn),ye):U(nn)}function Fe(nn){return nn===null?U(nn):nn===45?(S.consume(nn),Oe):(0,an.Ch)(nn)?(bt=Fe,vo(nn)):(S.consume(nn),Fe)}function Oe(nn){return nn===45?(S.consume(nn),ye):Fe(nn)}function ye(nn){return nn===62?xr(nn):nn===45?Oe(nn):Fe(nn)}function Ni(nn){const Gs="CDATA[";return nn===Gs.charCodeAt(ut++)?(S.consume(nn),ut===Gs.length?fi:Ni):U(nn)}function fi(nn){return nn===null?U(nn):nn===93?(S.consume(nn),zi):(0,an.Ch)(nn)?(bt=fi,vo(nn)):(S.consume(nn),fi)}function zi(nn){return nn===93?(S.consume(nn),mi):fi(nn)}function mi(nn){return nn===62?xr(nn):nn===93?(S.consume(nn),mi):fi(nn)}function Ri(nn){return nn===null||nn===62?xr(nn):(0,an.Ch)(nn)?(bt=Ri,vo(nn)):(S.consume(nn),Ri)}function tr(nn){return nn===null?U(nn):nn===63?(S.consume(nn),oo):(0,an.Ch)(nn)?(bt=tr,vo(nn)):(S.consume(nn),tr)}function oo(nn){return nn===62?xr(nn):tr(nn)}function ho(nn){return(0,an.jv)(nn)?(S.consume(nn),ti):U(nn)}function ti(nn){return nn===45||(0,an.H$)(nn)?(S.consume(nn),ti):Eo(nn)}function Eo(nn){return(0,an.Ch)(nn)?(bt=Eo,vo(nn)):(0,an.xz)(nn)?(S.consume(nn),Eo):xr(nn)}function Mo(nn){return nn===45||(0,an.H$)(nn)?(S.consume(nn),Mo):nn===47||nn===62||(0,an.z3)(nn)?po(nn):U(nn)}function po(nn){return nn===47?(S.consume(nn),xr):nn===58||nn===95||(0,an.jv)(nn)?(S.consume(nn),ds):(0,an.Ch)(nn)?(bt=po,vo(nn)):(0,an.xz)(nn)?(S.consume(nn),po):xr(nn)}function ds(nn){return nn===45||nn===46||nn===58||nn===95||(0,an.H$)(nn)?(S.consume(nn),ds):bo(nn)}function bo(nn){return nn===61?(S.consume(nn),Vr):(0,an.Ch)(nn)?(bt=bo,vo(nn)):(0,an.xz)(nn)?(S.consume(nn),bo):po(nn)}function Vr(nn){return nn===null||nn===60||nn===61||nn===62||nn===96?U(nn):nn===34||nn===39?(S.consume(nn),ot=nn,rr):(0,an.Ch)(nn)?(bt=Vr,vo(nn)):(0,an.xz)(nn)?(S.consume(nn),Vr):(S.consume(nn),Hr)}function rr(nn){return nn===ot?(S.consume(nn),ot=void 0,Qr):nn===null?U(nn):(0,an.Ch)(nn)?(bt=rr,vo(nn)):(S.consume(nn),rr)}function Hr(nn){return nn===null||nn===34||nn===39||nn===60||nn===61||nn===96?U(nn):nn===47||nn===62||(0,an.z3)(nn)?po(nn):(S.consume(nn),Hr)}function Qr(nn){return nn===47||nn===62||(0,an.z3)(nn)?po(nn):U(nn)}function xr(nn){return nn===62?(S.consume(nn),S.exit("htmlTextData"),S.exit("htmlText"),P):U(nn)}function vo(nn){return S.exit("htmlTextData"),S.enter("lineEnding"),S.consume(nn),S.exit("lineEnding"),ms}function ms(nn){return(0,an.xz)(nn)?(0,qn.f)(S,qs,"linePrefix",Z.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(nn):qs(nn)}function qs(nn){return S.enter("htmlTextData"),bt(nn)}}const ws={name:"labelStartLink",resolveAll:kr.resolveAll,tokenize:Ko};function Ko(S,P,U){const Z=this;return ot;function ot(bt){return S.enter("labelLink"),S.enter("labelMarker"),S.consume(bt),S.exit("labelMarker"),S.exit("labelLink"),ut}function ut(bt){return bt===94&&"_hiddenFootnoteSupport"in Z.parser.constructs?U(bt):P(bt)}}const Ur={name:"hardBreakEscape",tokenize:uo};function uo(S,P,U){return Z;function Z(ut){return S.enter("hardBreakEscape"),S.consume(ut),ot}function ot(ut){return(0,an.Ch)(ut)?(S.exit("hardBreakEscape"),P(ut)):U(ut)}}const Pa={name:"codeText",previous:io,resolve:br,tokenize:eo};function br(S){let P=S.length-4,U=3,Z,ot;if((S[U][1].type==="lineEnding"||S[U][1].type==="space")&&(S[P][1].type==="lineEnding"||S[P][1].type==="space")){for(Z=U;++Z<P;)if(S[Z][1].type==="codeTextData"){S[U][1].type="codeTextPadding",S[P][1].type="codeTextPadding",U+=2,P-=2;break}}for(Z=U-1,P++;++Z<=P;)ot===void 0?Z!==P&&S[Z][1].type!=="lineEnding"&&(ot=Z):(Z===P||S[Z][1].type==="lineEnding")&&(S[ot][1].type="codeTextData",Z!==ot+2&&(S[ot][1].end=S[Z-1][1].end,S.splice(ot+2,Z-ot-2),P-=Z-ot-2,Z=ot+2),ot=void 0);return S}function io(S){return S!==96||this.events[this.events.length-1][1].type==="characterEscape"}function eo(S,P,U){const Z=this;let ot=0,ut,bt;return Jt;function Jt(Oe){return S.enter("codeText"),S.enter("codeTextSequence"),Ie(Oe)}function Ie(Oe){return Oe===96?(S.consume(Oe),ot++,Ie):(S.exit("codeTextSequence"),Ue(Oe))}function Ue(Oe){return Oe===null?U(Oe):Oe===32?(S.enter("space"),S.consume(Oe),S.exit("space"),Ue):Oe===96?(bt=S.enter("codeTextSequence"),ut=0,Fe(Oe)):(0,an.Ch)(Oe)?(S.enter("lineEnding"),S.consume(Oe),S.exit("lineEnding"),Ue):(S.enter("codeTextData"),he(Oe))}function he(Oe){return Oe===null||Oe===32||Oe===96||(0,an.Ch)(Oe)?(S.exit("codeTextData"),Ue(Oe)):(S.consume(Oe),he)}function Fe(Oe){return Oe===96?(S.consume(Oe),ut++,Fe):ut===ot?(S.exit("codeTextSequence"),S.exit("codeText"),P(Oe)):(bt.type="codeTextData",he(Oe))}}const ri={42:kn,43:kn,45:kn,48:kn,49:kn,50:kn,51:kn,52:kn,53:kn,54:kn,55:kn,56:kn,57:kn,62:$e},Cs={91:xi},Zo={[-2]:mr,[-1]:mr,32:mr},ga={35:dr,42:xn,45:[pi,xn],60:nr,61:pi,95:xn,96:Pn,126:Pn},sl={38:qi,92:Ui},Cl={[-5]:$i,[-4]:$i,[-3]:$i,33:Qa,38:qi,42:vs,60:[Su,lo],91:ws,92:[Ur,Ui],93:kr,95:vs,96:Pa},Wn={null:[vs,te]},us={null:[42,95]},Fs={null:[]};function qa(S,P,U){let Z={_bufferIndex:-1,_index:0,line:U&&U.line||1,column:U&&U.column||1,offset:U&&U.offset||0};const ot={},ut=[];let bt=[],Jt=[],Ie=!0;const Ue={attempt:po(Eo),check:po(Mo),consume:oo,enter:ho,exit:ti,interrupt:po(Mo,{interrupt:!0})},he={code:null,containerState:{},defineSkip:mi,events:[],now:zi,parser:S,previous:null,sliceSerialize:Ni,sliceStream:fi,write:ye};let Fe=P.tokenize.call(he,Ue),Oe;return P.resolveAll&&ut.push(P),he;function ye(rr){return bt=Qe(bt,rr),Ri(),bt[bt.length-1]!==null?[]:(ds(P,0),he.events=se(ut,he.events,he),he.events)}function Ni(rr,Hr){return Fa(fi(rr),Hr)}function fi(rr){return al(bt,rr)}function zi(){const{_bufferIndex:rr,_index:Hr,line:Qr,column:xr,offset:vo}=Z;return{_bufferIndex:rr,_index:Hr,line:Qr,column:xr,offset:vo}}function mi(rr){ot[rr.line]=rr.column,Vr()}function Ri(){let rr;for(;Z._index<bt.length;){const Hr=bt[Z._index];if(typeof Hr=="string")for(rr=Z._index,Z._bufferIndex<0&&(Z._bufferIndex=0);Z._index===rr&&Z._bufferIndex<Hr.length;)tr(Hr.charCodeAt(Z._bufferIndex));else tr(Hr)}}function tr(rr){Ie=void 0,Oe=rr,Fe=Fe(rr)}function oo(rr){(0,an.Ch)(rr)?(Z.line++,Z.column=1,Z.offset+=rr===-3?2:1,Vr()):rr!==-1&&(Z.column++,Z.offset++),Z._bufferIndex<0?Z._index++:(Z._bufferIndex++,Z._bufferIndex===bt[Z._index].length&&(Z._bufferIndex=-1,Z._index++)),he.previous=rr,Ie=!0}function ho(rr,Hr){const Qr=Hr||{};return Qr.type=rr,Qr.start=zi(),he.events.push(["enter",Qr,he]),Jt.push(Qr),Qr}function ti(rr){const Hr=Jt.pop();return Hr.end=zi(),he.events.push(["exit",Hr,he]),Hr}function Eo(rr,Hr){ds(rr,Hr.from)}function Mo(rr,Hr){Hr.restore()}function po(rr,Hr){return Qr;function Qr(xr,vo,ms){let qs,nn,Gs,la;return Array.isArray(xr)?Ws(xr):"tokenize"in xr?Ws([xr]):on(xr);function on(To){return ba;function ba(La){const va=La!==null&&To[La],Ua=La!==null&&To.null,Tl=[...Array.isArray(va)?va:va?[va]:[],...Array.isArray(Ua)?Ua:Ua?[Ua]:[]];return Ws(Tl)(La)}}function Ws(To){return qs=To,nn=0,To.length===0?ms:zo(To[nn])}function zo(To){return ba;function ba(La){return la=bo(),Gs=To,To.partial||(he.currentConstruct=To),To.name&&he.parser.constructs.disable.null.includes(To.name)?bs(La):To.tokenize.call(Hr?Object.assign(Object.create(he),Hr):he,Ue,pa,bs)(La)}}function pa(To){return Ie=!0,rr(Gs,la),vo}function bs(To){return Ie=!0,la.restore(),++nn<qs.length?zo(qs[nn]):ms}}}function ds(rr,Hr){rr.resolveAll&&!ut.includes(rr)&&ut.push(rr),rr.resolve&&Ve(he.events,Hr,he.events.length-Hr,rr.resolve(he.events.slice(Hr),he)),rr.resolveTo&&(he.events=rr.resolveTo(he.events,he))}function bo(){const rr=zi(),Hr=he.previous,Qr=he.currentConstruct,xr=he.events.length,vo=Array.from(Jt);return{from:xr,restore:ms};function ms(){Z=rr,he.previous=Hr,he.currentConstruct=Qr,he.events.length=xr,Jt=vo,Vr()}}function Vr(){Z.line in ot&&Z.column<2&&(Z.column=ot[Z.line],Z.offset+=ot[Z.line]-1)}}function al(S,P){const U=P.start._index,Z=P.start._bufferIndex,ot=P.end._index,ut=P.end._bufferIndex;let bt;if(U===ot)bt=[S[U].slice(Z,ut)];else{if(bt=S.slice(U,ot),Z>-1){const Jt=bt[0];typeof Jt=="string"?bt[0]=Jt.slice(Z):bt.shift()}ut>0&&bt.push(S[ot].slice(0,ut))}return bt}function Fa(S,P){let U=-1;const Z=[];let ot;for(;++U<S.length;){const ut=S[U];let bt;if(typeof ut=="string")bt=ut;else switch(ut){case-5:{bt="\r";break}case-4:{bt=`
|
|
|
`;break}case-3:{bt=`\r
|
|
|
`;break}case-2:{bt=P?" ":" ";break}case-1:{if(!P&&ot)continue;bt=" ";break}default:bt=String.fromCharCode(ut)}ot=ut===-2,Z.push(bt)}return Z.join("")}function Sr(S){const Z={constructs:jn([y,...(S||{}).extensions||[]]),content:ot(Ji),defined:[],document:ot(lr),flow:ot(Gi),lazy:{},string:ot(Nn),text:ot(Bn)};return Z;function ot(ut){return bt;function bt(Jt){return qa(Z,ut,Jt)}}}const iu=/[\0\t\n\r]/g;function Ba(){let S=1,P="",U=!0,Z;return ot;function ot(ut,bt,Jt){const Ie=[];let Ue,he,Fe,Oe,ye;for(ut=P+(typeof ut=="string"?ut.toString():new TextDecoder(bt||void 0).decode(ut)),Fe=0,P="",U&&(ut.charCodeAt(0)===65279&&Fe++,U=void 0);Fe<ut.length;){if(iu.lastIndex=Fe,Ue=iu.exec(ut),Oe=Ue&&Ue.index!==void 0?Ue.index:ut.length,ye=ut.charCodeAt(Oe),!Ue){P=ut.slice(Fe);break}if(ye===10&&Fe===Oe&&Z)Ie.push(-3),Z=void 0;else switch(Z&&(Ie.push(-5),Z=void 0),Fe<Oe&&(Ie.push(ut.slice(Fe,Oe)),S+=Oe-Fe),ye){case 0:{Ie.push(65533),S++;break}case 9:{for(he=Math.ceil(S/4)*4,Ie.push(-2);S++<he;)Ie.push(-1);break}case 10:{Ie.push(-4),S=1;break}default:Z=!0,S=1}Fe=Oe+1}return Jt&&(Z&&Ie.push(-5),P&&Ie.push(P),Ie.push(null)),Ie}}function Ln(S,P){const U=Number.parseInt(S,P);return U<9||U===11||U>13&&U<32||U>126&&U<160||U>55295&&U<57344||U>64975&&U<65008||(U&65535)===65535||(U&65535)===65534||U>1114111?"\uFFFD":String.fromCodePoint(U)}const Jo=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function za(S){return S.replace(Jo,Aa)}function Aa(S,P,U){if(P)return P;if(U.charCodeAt(0)===35){const ot=U.charCodeAt(1),ut=ot===120||ot===88;return Ln(U.slice(ut?2:1),ut?16:10)}return bi(U)||S}const ka={}.hasOwnProperty;function _a(S,P,U){return typeof P!="string"&&(U=P,P=void 0),Fu(U)(Cn(Sr(U).document().write(Ba()(S,P,!0))))}function Fu(S){const P={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:ut($o),autolinkProtocol:po,autolinkEmail:po,atxHeading:ut(Xo),blockQuote:ut(La),characterEscape:po,characterReference:po,codeFenced:ut(va),codeFencedFenceInfo:bt,codeFencedFenceMeta:bt,codeIndented:ut(va,bt),codeText:ut(Ua,bt),codeTextData:po,data:po,codeFlowValue:po,definition:ut(Tl),definitionDestinationString:bt,definitionLabelString:bt,definitionTitleString:bt,emphasis:ut(Va),hardBreakEscape:ut(ps),hardBreakTrailing:ut(ps),htmlFlow:ut(Bs,bt),htmlFlowData:po,htmlText:ut(Bs,bt),htmlTextData:po,image:ut(fs),label:bt,link:ut($o),listItem:ut(Ra),listItemValue:Oe,listOrdered:ut(Hs,Fe),listUnordered:ut(Hs),paragraph:ut(kl),reference:on,referenceString:bt,resourceDestinationString:bt,resourceTitleString:bt,setextHeading:ut(Xo),strong:ut(qc),thematicBreak:ut(Tu)},exit:{atxHeading:Ie(),atxHeadingSequence:ho,autolink:Ie(),autolinkEmail:ba,autolinkProtocol:To,blockQuote:Ie(),characterEscapeValue:ds,characterReferenceMarkerHexadecimal:zo,characterReferenceMarkerNumeric:zo,characterReferenceValue:pa,characterReference:bs,codeFenced:Ie(zi),codeFencedFence:fi,codeFencedFenceInfo:ye,codeFencedFenceMeta:Ni,codeFlowValue:ds,codeIndented:Ie(mi),codeText:Ie(Qr),codeTextData:ds,data:ds,definition:Ie(),definitionDestinationString:oo,definitionLabelString:Ri,definitionTitleString:tr,emphasis:Ie(),hardBreakEscape:Ie(Vr),hardBreakTrailing:Ie(Vr),htmlFlow:Ie(rr),htmlFlowData:ds,htmlText:Ie(Hr),htmlTextData:ds,image:Ie(vo),label:qs,labelText:ms,lineEnding:bo,link:Ie(xr),listItem:Ie(),listOrdered:Ie(),listUnordered:Ie(),paragraph:Ie(),referenceString:Ws,resourceDestinationString:nn,resourceTitleString:Gs,resource:la,setextHeading:Ie(Mo),setextHeadingLineSequence:Eo,setextHeadingText:ti,strong:Ie(),thematicBreak:Ie()}};Vl(P,(S||{}).mdastExtensions||[]);const U={};return Z;function Z(oi){let hr={type:"root",children:[]};const Io={stack:[hr],tokenStack:[],config:P,enter:Jt,exit:Ue,buffer:bt,resume:he,data:U},Qo=[];let ks=-1;for(;++ks<oi.length;)if(oi[ks][1].type==="listOrdered"||oi[ks][1].type==="listUnordered")if(oi[ks][0]==="enter")Qo.push(ks);else{const zl=Qo.pop();ks=ot(oi,zl,ks)}for(ks=-1;++ks<oi.length;){const zl=P[oi[ks][0]];ka.call(zl,oi[ks][1].type)&&zl[oi[ks][1].type].call(Object.assign({sliceSerialize:oi[ks][2].sliceSerialize},Io),oi[ks][1])}if(Io.tokenStack.length>0){const zl=Io.tokenStack[Io.tokenStack.length-1];(zl[1]||ll).call(Io,void 0,zl[0])}for(hr.position={start:Ha(oi.length>0?oi[0][1].start:{line:1,column:1,offset:0}),end:Ha(oi.length>0?oi[oi.length-2][1].end:{line:1,column:1,offset:0})},ks=-1;++ks<P.transforms.length;)hr=P.transforms[ks](hr)||hr;return hr}function ot(oi,hr,Io){let Qo=hr-1,ks=-1,zl=!1,Vs,Nl,zu,C;for(;++Qo<=Io;){const f=oi[Qo];switch(f[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{f[0]==="enter"?ks++:ks--,C=void 0;break}case"lineEndingBlank":{f[0]==="enter"&&(Vs&&!C&&!ks&&!zu&&(zu=Qo),C=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:C=void 0}if(!ks&&f[0]==="enter"&&f[1].type==="listItemPrefix"||ks===-1&&f[0]==="exit"&&(f[1].type==="listUnordered"||f[1].type==="listOrdered")){if(Vs){let x=Qo;for(Nl=void 0;x--;){const A=oi[x];if(A[1].type==="lineEnding"||A[1].type==="lineEndingBlank"){if(A[0]==="exit")continue;Nl&&(oi[Nl][1].type="lineEndingBlank",zl=!0),A[1].type="lineEnding",Nl=x}else if(!(A[1].type==="linePrefix"||A[1].type==="blockQuotePrefix"||A[1].type==="blockQuotePrefixWhitespace"||A[1].type==="blockQuoteMarker"||A[1].type==="listItemIndent"))break}zu&&(!Nl||zu<Nl)&&(Vs._spread=!0),Vs.end=Object.assign({},Nl?oi[Nl][1].start:f[1].end),oi.splice(Nl||Qo,0,["exit",Vs,f[2]]),Qo++,Io++}if(f[1].type==="listItemPrefix"){const x={type:"listItem",_spread:!1,start:Object.assign({},f[1].start),end:void 0};Vs=x,oi.splice(Qo,0,["enter",x,f[2]]),Qo++,Io++,zu=void 0,C=!0}}}return oi[hr][1]._spread=zl,Io}function ut(oi,hr){return Io;function Io(Qo){Jt.call(this,oi(Qo),Qo),hr&&hr.call(this,Qo)}}function bt(){this.stack.push({type:"fragment",children:[]})}function Jt(oi,hr,Io){this.stack[this.stack.length-1].children.push(oi),this.stack.push(oi),this.tokenStack.push([hr,Io||void 0]),oi.position={start:Ha(hr.start),end:void 0}}function Ie(oi){return hr;function hr(Io){oi&&oi.call(this,Io),Ue.call(this,Io)}}function Ue(oi,hr){const Io=this.stack.pop(),Qo=this.tokenStack.pop();if(Qo)Qo[0].type!==oi.type&&(hr?hr.call(this,oi,Qo[0]):(Qo[1]||ll).call(this,oi,Qo[0]));else throw new Error("Cannot close `"+oi.type+"` ("+Kt({start:oi.start,end:oi.end})+"): it\u2019s not open");Io.position.end=Ha(oi.end)}function he(){return ve(this.stack.pop())}function Fe(){this.data.expectingFirstListItemValue=!0}function Oe(oi){if(this.data.expectingFirstListItemValue){const hr=this.stack[this.stack.length-2];hr.start=Number.parseInt(this.sliceSerialize(oi),10),this.data.expectingFirstListItemValue=void 0}}function ye(){const oi=this.resume(),hr=this.stack[this.stack.length-1];hr.lang=oi}function Ni(){const oi=this.resume(),hr=this.stack[this.stack.length-1];hr.meta=oi}function fi(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function zi(){const oi=this.resume(),hr=this.stack[this.stack.length-1];hr.value=oi.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function mi(){const oi=this.resume(),hr=this.stack[this.stack.length-1];hr.value=oi.replace(/(\r?\n|\r)$/g,"")}function Ri(oi){const hr=this.resume(),Io=this.stack[this.stack.length-1];Io.label=hr,Io.identifier=Sn(this.sliceSerialize(oi)).toLowerCase()}function tr(){const oi=this.resume(),hr=this.stack[this.stack.length-1];hr.title=oi}function oo(){const oi=this.resume(),hr=this.stack[this.stack.length-1];hr.url=oi}function ho(oi){const hr=this.stack[this.stack.length-1];if(!hr.depth){const Io=this.sliceSerialize(oi).length;hr.depth=Io}}function ti(){this.data.setextHeadingSlurpLineEnding=!0}function Eo(oi){const hr=this.stack[this.stack.length-1];hr.depth=this.sliceSerialize(oi).codePointAt(0)===61?1:2}function Mo(){this.data.setextHeadingSlurpLineEnding=void 0}function po(oi){const Io=this.stack[this.stack.length-1].children;let Qo=Io[Io.length-1];(!Qo||Qo.type!=="text")&&(Qo=ue(),Qo.position={start:Ha(oi.start),end:void 0},Io.push(Qo)),this.stack.push(Qo)}function ds(oi){const hr=this.stack.pop();hr.value+=this.sliceSerialize(oi),hr.position.end=Ha(oi.end)}function bo(oi){const hr=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Io=hr.children[hr.children.length-1];Io.position.end=Ha(oi.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&P.canContainEols.includes(hr.type)&&(po.call(this,oi),ds.call(this,oi))}function Vr(){this.data.atHardBreak=!0}function rr(){const oi=this.resume(),hr=this.stack[this.stack.length-1];hr.value=oi}function Hr(){const oi=this.resume(),hr=this.stack[this.stack.length-1];hr.value=oi}function Qr(){const oi=this.resume(),hr=this.stack[this.stack.length-1];hr.value=oi}function xr(){const oi=this.stack[this.stack.length-1];if(this.data.inReference){const hr=this.data.referenceType||"shortcut";oi.type+="Reference",oi.referenceType=hr,delete oi.url,delete oi.title}else delete oi.identifier,delete oi.label;this.data.referenceType=void 0}function vo(){const oi=this.stack[this.stack.length-1];if(this.data.inReference){const hr=this.data.referenceType||"shortcut";oi.type+="Reference",oi.referenceType=hr,delete oi.url,delete oi.title}else delete oi.identifier,delete oi.label;this.data.referenceType=void 0}function ms(oi){const hr=this.sliceSerialize(oi),Io=this.stack[this.stack.length-2];Io.label=za(hr),Io.identifier=Sn(hr).toLowerCase()}function qs(){const oi=this.stack[this.stack.length-1],hr=this.resume(),Io=this.stack[this.stack.length-1];if(this.data.inReference=!0,Io.type==="link"){const Qo=oi.children;Io.children=Qo}else Io.alt=hr}function nn(){const oi=this.resume(),hr=this.stack[this.stack.length-1];hr.url=oi}function Gs(){const oi=this.resume(),hr=this.stack[this.stack.length-1];hr.title=oi}function la(){this.data.inReference=void 0}function on(){this.data.referenceType="collapsed"}function Ws(oi){const hr=this.resume(),Io=this.stack[this.stack.length-1];Io.label=hr,Io.identifier=Sn(this.sliceSerialize(oi)).toLowerCase(),this.data.referenceType="full"}function zo(oi){this.data.characterReferenceType=oi.type}function pa(oi){const hr=this.sliceSerialize(oi),Io=this.data.characterReferenceType;let Qo;Io?(Qo=Ln(hr,Io==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Qo=bi(hr);const ks=this.stack[this.stack.length-1];ks.value+=Qo}function bs(oi){const hr=this.stack.pop();hr.position.end=Ha(oi.end)}function To(oi){ds.call(this,oi);const hr=this.stack[this.stack.length-1];hr.url=this.sliceSerialize(oi)}function ba(oi){ds.call(this,oi);const hr=this.stack[this.stack.length-1];hr.url="mailto:"+this.sliceSerialize(oi)}function La(){return{type:"blockquote",children:[]}}function va(){return{type:"code",lang:null,meta:null,value:""}}function Ua(){return{type:"inlineCode",value:""}}function Tl(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Va(){return{type:"emphasis",children:[]}}function Xo(){return{type:"heading",depth:0,children:[]}}function ps(){return{type:"break"}}function Bs(){return{type:"html",value:""}}function fs(){return{type:"image",title:null,url:"",alt:null}}function $o(){return{type:"link",title:null,url:"",children:[]}}function Hs(oi){return{type:"list",ordered:oi.type==="listOrdered",start:null,spread:oi._spread,children:[]}}function Ra(oi){return{type:"listItem",spread:oi._spread,checked:null,children:[]}}function kl(){return{type:"paragraph",children:[]}}function qc(){return{type:"strong",children:[]}}function ue(){return{type:"text",value:""}}function Tu(){return{type:"thematicBreak"}}}function Ha(S){return{line:S.line,column:S.column,offset:S.offset}}function Vl(S,P){let U=-1;for(;++U<P.length;){const Z=P[U];Array.isArray(Z)?Vl(S,Z):vr(S,Z)}}function vr(S,P){let U;for(U in P)if(ka.call(P,U))switch(U){case"canContainEols":{const Z=P[U];Z&&S[U].push(...Z);break}case"transforms":{const Z=P[U];Z&&S[U].push(...Z);break}case"enter":case"exit":{const Z=P[U];Z&&Object.assign(S[U],Z);break}}}function ll(S,P){throw S?new Error("Cannot close `"+S.type+"` ("+Kt({start:S.start,end:S.end})+"): a different token (`"+P.type+"`, "+Kt({start:P.start,end:P.end})+") is open"):new Error("Cannot close document, a token (`"+P.type+"`, "+Kt({start:P.start,end:P.end})+") is still open")}function Kl(S){const P=this;P.parser=U;function U(Z){return _a(Z,f0(Ms(Ms({},P.data("settings")),S),{extensions:P.data("micromarkExtensions")||[],mdastExtensions:P.data("fromMarkdownExtensions")||[]}))}}const Es=-1,Qs=0,ru=1,ou=2,su=3,_r=4,Wr=5,sa=6,Os=7,As=8,os=typeof self=="object"?self:globalThis,cs=(S,P)=>{const U=(ot,ut)=>(S.set(ut,ot),ot),Z=ot=>{if(S.has(ot))return S.get(ot);const[ut,bt]=P[ot];switch(ut){case Qs:case Es:return U(bt,ot);case ru:{const Jt=U([],ot);for(const Ie of bt)Jt.push(Z(Ie));return Jt}case ou:{const Jt=U({},ot);for(const[Ie,Ue]of bt)Jt[Z(Ie)]=Z(Ue);return Jt}case su:return U(new Date(bt),ot);case _r:{const{source:Jt,flags:Ie}=bt;return U(new RegExp(Jt,Ie),ot)}case Wr:{const Jt=U(new Map,ot);for(const[Ie,Ue]of bt)Jt.set(Z(Ie),Z(Ue));return Jt}case sa:{const Jt=U(new Set,ot);for(const Ie of bt)Jt.add(Z(Ie));return Jt}case Os:{const{name:Jt,message:Ie}=bt;return U(new os[Jt](Ie),ot)}case As:return U(BigInt(bt),ot);case"BigInt":return U(Object(BigInt(bt)),ot);case"ArrayBuffer":return U(new Uint8Array(bt).buffer,bt);case"DataView":{const{buffer:Jt}=new Uint8Array(bt);return U(new DataView(Jt),bt)}}return U(new os[ut](bt),ot)};return Z},qr=S=>cs(new Map,S)(0),is="",{toString:Pl}={},{keys:tl}=Object,Lo=S=>{const P=typeof S;if(P!=="object"||!S)return[Qs,P];const U=Pl.call(S).slice(8,-1);switch(U){case"Array":return[ru,is];case"Object":return[ou,is];case"Date":return[su,is];case"RegExp":return[_r,is];case"Map":return[Wr,is];case"Set":return[sa,is];case"DataView":return[ru,U]}return U.includes("Array")?[ru,U]:U.includes("Error")?[Os,U]:[ou,U]},Ga=([S,P])=>S===Qs&&(P==="function"||P==="symbol"),Rc=(S,P,U,Z)=>{const ot=(bt,Jt)=>{const Ie=Z.push(bt)-1;return U.set(Jt,Ie),Ie},ut=bt=>{if(U.has(bt))return U.get(bt);let[Jt,Ie]=Lo(bt);switch(Jt){case Qs:{let he=bt;switch(Ie){case"bigint":Jt=As,he=bt.toString();break;case"function":case"symbol":if(S)throw new TypeError("unable to serialize "+Ie);he=null;break;case"undefined":return ot([Es],bt)}return ot([Jt,he],bt)}case ru:{if(Ie){let Oe=bt;return Ie==="DataView"?Oe=new Uint8Array(bt.buffer):Ie==="ArrayBuffer"&&(Oe=new Uint8Array(bt)),ot([Ie,[...Oe]],bt)}const he=[],Fe=ot([Jt,he],bt);for(const Oe of bt)he.push(ut(Oe));return Fe}case ou:{if(Ie)switch(Ie){case"BigInt":return ot([Ie,bt.toString()],bt);case"Boolean":case"Number":case"String":return ot([Ie,bt.valueOf()],bt)}if(P&&"toJSON"in bt)return ut(bt.toJSON());const he=[],Fe=ot([Jt,he],bt);for(const Oe of tl(bt))(S||!Ga(Lo(bt[Oe])))&&he.push([ut(Oe),ut(bt[Oe])]);return Fe}case su:return ot([Jt,bt.toISOString()],bt);case _r:{const{source:he,flags:Fe}=bt;return ot([Jt,{source:he,flags:Fe}],bt)}case Wr:{const he=[],Fe=ot([Jt,he],bt);for(const[Oe,ye]of bt)(S||!(Ga(Lo(Oe))||Ga(Lo(ye))))&&he.push([ut(Oe),ut(ye)]);return Fe}case sa:{const he=[],Fe=ot([Jt,he],bt);for(const Oe of bt)(S||!Ga(Lo(Oe)))&&he.push(ut(Oe));return Fe}}const{message:Ue}=bt;return ot([Jt,{name:Ie,message:Ue}],bt)};return ut},Ii=(S,{json:P,lossy:U}={})=>{const Z=[];return Rc(!(P||U),!!P,new Map,Z)(S),Z};var Ti=typeof structuredClone=="function"?(S,P)=>P&&("json"in P||"lossy"in P)?qr(Ii(S,P)):structuredClone(S):(S,P)=>qr(Ii(S,P));function Zu(S,P){const U=encode(Vt(S||""));if(!P)return U;const Z=U.indexOf(":"),ot=U.indexOf("?"),ut=U.indexOf("#"),bt=U.indexOf("/");return Z<0||bt>-1&&Z>bt||ot>-1&&Z>ot||ut>-1&&Z>ut||P.test(U.slice(0,Z))?U:""}function Vt(S){const P=[];let U=-1,Z=0,ot=0;for(;++U<S.length;){const ut=S.charCodeAt(U);let bt="";if(ut===37&&(0,an.H$)(S.charCodeAt(U+1))&&(0,an.H$)(S.charCodeAt(U+2)))ot=2;else if(ut<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(ut))||(bt=String.fromCharCode(ut));else if(ut>55295&&ut<57344){const Jt=S.charCodeAt(U+1);ut<56320&&Jt>56319&&Jt<57344?(bt=String.fromCharCode(ut,Jt),ot=1):bt="\uFFFD"}else bt=String.fromCharCode(ut);bt&&(P.push(S.slice(Z,U),encodeURIComponent(bt)),Z=U+ot+1,bt=""),ot&&(U+=ot,ot=0)}return P.join("")+S.slice(Z)}function mn(S,P){const U=[{type:"text",value:"\u21A9"}];return P>1&&U.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(P)}]}),U}function $a(S,P){return"Back to reference "+(S+1)+(P>1?"-"+P:"")}function au(S){const P=typeof S.options.clobberPrefix=="string"?S.options.clobberPrefix:"user-content-",U=S.options.footnoteBackContent||mn,Z=S.options.footnoteBackLabel||$a,ot=S.options.footnoteLabel||"Footnotes",ut=S.options.footnoteLabelTagName||"h2",bt=S.options.footnoteLabelProperties||{className:["sr-only"]},Jt=[];let Ie=-1;for(;++Ie<S.footnoteOrder.length;){const Ue=S.footnoteById.get(S.footnoteOrder[Ie]);if(!Ue)continue;const he=S.all(Ue),Fe=String(Ue.identifier).toUpperCase(),Oe=Vt(Fe.toLowerCase());let ye=0;const Ni=[],fi=S.footnoteCounts.get(Fe);for(;fi!==void 0&&++ye<=fi;){Ni.length>0&&Ni.push({type:"text",value:" "});let Ri=typeof U=="string"?U:U(Ie,ye);typeof Ri=="string"&&(Ri={type:"text",value:Ri}),Ni.push({type:"element",tagName:"a",properties:{href:"#"+P+"fnref-"+Oe+(ye>1?"-"+ye:""),dataFootnoteBackref:"",ariaLabel:typeof Z=="string"?Z:Z(Ie,ye),className:["data-footnote-backref"]},children:Array.isArray(Ri)?Ri:[Ri]})}const zi=he[he.length-1];if(zi&&zi.type==="element"&&zi.tagName==="p"){const Ri=zi.children[zi.children.length-1];Ri&&Ri.type==="text"?Ri.value+=" ":zi.children.push({type:"text",value:" "}),zi.children.push(...Ni)}else he.push(...Ni);const mi={type:"element",tagName:"li",properties:{id:P+"fn-"+Oe},children:S.wrap(he,!0)};S.patch(Ue,mi),Jt.push(mi)}if(Jt.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:ut,properties:f0(Ms({},Ti(bt)),{id:"footnote-label"}),children:[{type:"text",value:ot}]},{type:"text",value:`
|
|
|
`},{type:"element",tagName:"ol",properties:{},children:S.wrap(Jt,!0)},{type:"text",value:`
|
|
|
`}]}}var ss=h(2348);function Fl(S,P,U,Z){let ot,ut,bt;typeof P=="function"&&typeof U!="function"?(ut=void 0,bt=P,ot=U):(ut=P,bt=U,ot=Z),(0,ss.S4)(S,ut,Jt,ot);function Jt(Ie,Ue){const he=Ue[Ue.length-1],Fe=he?he.children.indexOf(Ie):void 0;return bt(Ie,Fe,he)}}function lu(S,P){const U={type:"element",tagName:"blockquote",properties:{},children:S.wrap(S.all(P),!0)};return S.patch(P,U),S.applyData(P,U)}function Sc(S,P){const U={type:"element",tagName:"br",properties:{},children:[]};return S.patch(P,U),[S.applyData(P,U),{type:"text",value:`
|
|
|
`}]}function sc(S,P){const U=P.value?P.value+`
|
|
|
`:"",Z={};P.lang&&(Z.className=["language-"+P.lang]);let ot={type:"element",tagName:"code",properties:Z,children:[{type:"text",value:U}]};return P.meta&&(ot.data={meta:P.meta}),S.patch(P,ot),ot=S.applyData(P,ot),ot={type:"element",tagName:"pre",properties:{},children:[ot]},S.patch(P,ot),ot}function Ls(S,P){const U={type:"element",tagName:"del",properties:{},children:S.all(P)};return S.patch(P,U),S.applyData(P,U)}function Lr(S,P){const U={type:"element",tagName:"em",properties:{},children:S.all(P)};return S.patch(P,U),S.applyData(P,U)}function ja(S,P){const U=typeof S.options.clobberPrefix=="string"?S.options.clobberPrefix:"user-content-",Z=String(P.identifier).toUpperCase(),ot=Vt(Z.toLowerCase()),ut=S.footnoteOrder.indexOf(Z);let bt,Jt=S.footnoteCounts.get(Z);Jt===void 0?(Jt=0,S.footnoteOrder.push(Z),bt=S.footnoteOrder.length):bt=ut+1,Jt+=1,S.footnoteCounts.set(Z,Jt);const Ie={type:"element",tagName:"a",properties:{href:"#"+U+"fn-"+ot,id:U+"fnref-"+ot+(Jt>1?"-"+Jt:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(bt)}]};S.patch(P,Ie);const Ue={type:"element",tagName:"sup",properties:{},children:[Ie]};return S.patch(P,Ue),S.applyData(P,Ue)}function Ma(S,P){const U={type:"element",tagName:"h"+P.depth,properties:{},children:S.all(P)};return S.patch(P,U),S.applyData(P,U)}function xs(S,P){if(S.options.allowDangerousHtml){const U={type:"raw",value:P.value};return S.patch(P,U),S.applyData(P,U)}}function xo(S,P){const U=P.referenceType;let Z="]";if(U==="collapsed"?Z+="[]":U==="full"&&(Z+="["+(P.label||P.identifier)+"]"),P.type==="imageReference")return[{type:"text",value:"!["+P.alt+Z}];const ot=S.all(P),ut=ot[0];ut&&ut.type==="text"?ut.value="["+ut.value:ot.unshift({type:"text",value:"["});const bt=ot[ot.length-1];return bt&&bt.type==="text"?bt.value+=Z:ot.push({type:"text",value:Z}),ot}function ia(S,P){const U=String(P.identifier).toUpperCase(),Z=S.definitionById.get(U);if(!Z)return xo(S,P);const ot={src:Vt(Z.url||""),alt:P.alt};Z.title!==null&&Z.title!==void 0&&(ot.title=Z.title);const ut={type:"element",tagName:"img",properties:ot,children:[]};return S.patch(P,ut),S.applyData(P,ut)}function aa(S,P){const U={src:Vt(P.url)};P.alt!==null&&P.alt!==void 0&&(U.alt=P.alt),P.title!==null&&P.title!==void 0&&(U.title=P.title);const Z={type:"element",tagName:"img",properties:U,children:[]};return S.patch(P,Z),S.applyData(P,Z)}function Tr(S,P){const U={type:"text",value:P.value.replace(/\r?\n|\r/g," ")};S.patch(P,U);const Z={type:"element",tagName:"code",properties:{},children:[U]};return S.patch(P,Z),S.applyData(P,Z)}function Wa(S,P){const U=String(P.identifier).toUpperCase(),Z=S.definitionById.get(U);if(!Z)return xo(S,P);const ot={href:Vt(Z.url||"")};Z.title!==null&&Z.title!==void 0&&(ot.title=Z.title);const ut={type:"element",tagName:"a",properties:ot,children:S.all(P)};return S.patch(P,ut),S.applyData(P,ut)}function ra(S,P){const U={href:Vt(P.url)};P.title!==null&&P.title!==void 0&&(U.title=P.title);const Z={type:"element",tagName:"a",properties:U,children:S.all(P)};return S.patch(P,Z),S.applyData(P,Z)}function wu(S,P,U){const Z=S.all(P),ot=U?_o(U):Oa(P),ut={},bt=[];if(typeof P.checked=="boolean"){const he=Z[0];let Fe;he&&he.type==="element"&&he.tagName==="p"?Fe=he:(Fe={type:"element",tagName:"p",properties:{},children:[]},Z.unshift(Fe)),Fe.children.length>0&&Fe.children.unshift({type:"text",value:" "}),Fe.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:P.checked,disabled:!0},children:[]}),ut.className=["task-list-item"]}let Jt=-1;for(;++Jt<Z.length;){const he=Z[Jt];(ot||Jt!==0||he.type!=="element"||he.tagName!=="p")&&bt.push({type:"text",value:`
|
|
|
`}),he.type==="element"&&he.tagName==="p"&&!ot?bt.push(...he.children):bt.push(he)}const Ie=Z[Z.length-1];Ie&&(ot||Ie.type!=="element"||Ie.tagName!=="p")&&bt.push({type:"text",value:`
|
|
|
`});const Ue={type:"element",tagName:"li",properties:ut,children:bt};return S.patch(P,Ue),S.applyData(P,Ue)}function _o(S){let P=!1;if(S.type==="list"){P=S.spread||!1;const U=S.children;let Z=-1;for(;!P&&++Z<U.length;)P=Oa(U[Z])}return P}function Oa(S){const P=S.spread;return P==null?S.children.length>1:P}function Ro(S,P){const U={},Z=S.all(P);let ot=-1;for(typeof P.start=="number"&&P.start!==1&&(U.start=P.start);++ot<Z.length;){const bt=Z[ot];if(bt.type==="element"&&bt.tagName==="li"&&bt.properties&&Array.isArray(bt.properties.className)&&bt.properties.className.includes("task-list-item")){U.className=["contains-task-list"];break}}const ut={type:"element",tagName:P.ordered?"ol":"ul",properties:U,children:S.wrap(Z,!0)};return S.patch(P,ut),S.applyData(P,ut)}function hs(S,P){const U={type:"element",tagName:"p",properties:{},children:S.all(P)};return S.patch(P,U),S.applyData(P,U)}function Ts(S,P){const U={type:"root",children:S.wrap(S.all(P))};return S.patch(P,U),S.applyData(P,U)}function Rs(S,P){const U={type:"element",tagName:"strong",properties:{},children:S.all(P)};return S.patch(P,U),S.applyData(P,U)}function Ho(S,P){const U=S.all(P),Z=U.shift(),ot=[];if(Z){const bt={type:"element",tagName:"thead",properties:{},children:S.wrap([Z],!0)};S.patch(P.children[0],bt),ot.push(bt)}if(U.length>0){const bt={type:"element",tagName:"tbody",properties:{},children:S.wrap(U,!0)},Jt=et(P.children[1]),Ie=Ut(P.children[P.children.length-1]);Jt&&Ie&&(bt.position={start:Jt,end:Ie}),ot.push(bt)}const ut={type:"element",tagName:"table",properties:{},children:S.wrap(ot,!0)};return S.patch(P,ut),S.applyData(P,ut)}function Yu(S,P,U){const Z=U?U.children:void 0,ut=(Z?Z.indexOf(P):1)===0?"th":"td",bt=U&&U.type==="table"?U.align:void 0,Jt=bt?bt.length:P.children.length;let Ie=-1;const Ue=[];for(;++Ie<Jt;){const Fe=P.children[Ie],Oe={},ye=bt?bt[Ie]:void 0;ye&&(Oe.align=ye);let Ni={type:"element",tagName:ut,properties:Oe,children:[]};Fe&&(Ni.children=S.all(Fe),S.patch(Fe,Ni),Ni=S.applyData(Fe,Ni)),Ue.push(Ni)}const he={type:"element",tagName:"tr",properties:{},children:S.wrap(Ue,!0)};return S.patch(P,he),S.applyData(P,he)}function Nr(S,P){const U={type:"element",tagName:"td",properties:{},children:S.all(P)};return S.patch(P,U),S.applyData(P,U)}const Dc=9,Bo=32;function vh(S){const P=String(S),U=/\r?\n|\r/g;let Z=U.exec(P),ot=0;const ut=[];for(;Z;)ut.push(ac(P.slice(ot,Z.index),ot>0,!0),Z[0]),ot=Z.index+Z[0].length,Z=U.exec(P);return ut.push(ac(P.slice(ot),ot>0,!1)),ut.join("")}function ac(S,P,U){let Z=0,ot=S.length;if(P){let ut=S.codePointAt(Z);for(;ut===Dc||ut===Bo;)Z++,ut=S.codePointAt(Z)}if(U){let ut=S.codePointAt(ot-1);for(;ut===Dc||ut===Bo;)ot--,ut=S.codePointAt(ot-1)}return ot>Z?S.slice(Z,ot):""}function lc(S,P){const U={type:"text",value:vh(String(P.value))};return S.patch(P,U),S.applyData(P,U)}function Yc(S,P){const U={type:"element",tagName:"hr",properties:{},children:[]};return S.patch(P,U),S.applyData(P,U)}const uc={blockquote:lu,break:Sc,code:sc,delete:Ls,emphasis:Lr,footnoteReference:ja,heading:Ma,html:xs,imageReference:ia,image:aa,inlineCode:Tr,linkReference:Wa,link:ra,listItem:wu,list:Ro,paragraph:hs,root:Ts,strong:Rs,table:Ho,tableCell:Nr,tableRow:Yu,text:lc,thematicBreak:Yc,toml:Bl,yaml:Bl,definition:Bl,footnoteDefinition:Bl};function Bl(){}const Cu={}.hasOwnProperty,Yo={};function ul(S,P){const U=P||Yo,Z=new Map,ot=new Map,ut=new Map,bt=Ms(Ms({},uc),U.handlers),Jt={all:Ue,applyData:Bu,definitionById:Z,footnoteById:ot,footnoteCounts:ut,footnoteOrder:[],handlers:bt,one:Ie,options:U,patch:wc,wrap:uu};return Fl(S,function(he){if(he.type==="definition"||he.type==="footnoteDefinition"){const Fe=he.type==="definition"?Z:ot,Oe=String(he.identifier).toUpperCase();Fe.has(Oe)||Fe.set(Oe,he)}}),Jt;function Ie(he,Fe){const Oe=he.type,ye=Jt.handlers[Oe];if(Cu.call(Jt.handlers,Oe)&&ye)return ye(Jt,he,Fe);if(Jt.options.passThrough&&Jt.options.passThrough.includes(Oe)){if("children"in he){const fi=he,{children:zi}=fi,mi=Nx(fi,["children"]),Ri=Ti(mi);return Ri.children=Jt.all(he),Ri}return Ti(he)}return(Jt.options.unknownHandler||yh)(Jt,he,Fe)}function Ue(he){const Fe=[];if("children"in he){const Oe=he.children;let ye=-1;for(;++ye<Oe.length;){const Ni=Jt.one(Oe[ye],he);if(Ni){if(ye&&Oe[ye-1].type==="break"&&(!Array.isArray(Ni)&&Ni.type==="text"&&(Ni.value=cl(Ni.value)),!Array.isArray(Ni)&&Ni.type==="element")){const fi=Ni.children[0];fi&&fi.type==="text"&&(fi.value=cl(fi.value))}Array.isArray(Ni)?Fe.push(...Ni):Fe.push(Ni)}}}return Fe}}function wc(S,P){S.position&&(P.position=Lt(S))}function Bu(S,P){let U=P;if(S&&S.data){const Z=S.data.hName,ot=S.data.hChildren,ut=S.data.hProperties;if(typeof Z=="string")if(U.type==="element")U.tagName=Z;else{const bt="children"in U?U.children:[U];U={type:"element",tagName:Z,properties:{},children:bt}}U.type==="element"&&ut&&Object.assign(U.properties,Ti(ut)),"children"in U&&U.children&&ot!==null&&ot!==void 0&&(U.children=ot)}return U}function yh(S,P){const U=P.data||{},Z="value"in P&&!(Cu.call(U,"hProperties")||Cu.call(U,"hChildren"))?{type:"text",value:P.value}:{type:"element",tagName:"div",properties:{},children:S.all(P)};return S.patch(P,Z),S.applyData(P,Z)}function uu(S,P){const U=[];let Z=-1;for(P&&U.push({type:"text",value:`
|
|
|
`});++Z<S.length;)Z&&U.push({type:"text",value:`
|
|
|
`}),U.push(S[Z]);return P&&S.length>0&&U.push({type:"text",value:`
|
|
|
`}),U}function cl(S){let P=0,U=S.charCodeAt(P);for(;U===9||U===32;)P++,U=S.charCodeAt(P);return S.slice(P)}function Zl(S,P){const U=ul(S,P),Z=U.one(S,void 0),ot=au(U),ut=Array.isArray(Z)?{type:"root",children:Z}:Z||{type:"root",children:[]};return ot&&((0,N.ok)("children"in ut),ut.children.push({type:"text",value:`
|
|
|
`},ot)),ut}function El(S,P){return S&&"run"in S?function(U,Z){return Ix(this,null,function*(){const ot=Zl(U,Ms({file:Z},P));yield S.run(ot,Z)})}:function(U,Z){return Zl(U,Ms({file:Z},S||P))}}function Yl(S){if(S)throw S}var Eu=h(58847);function Cc(S){if(typeof S!="object"||S===null)return!1;const P=Object.getPrototypeOf(S);return(P===null||P===Object.prototype||Object.getPrototypeOf(P)===null)&&!(Symbol.toStringTag in S)&&!(Symbol.iterator in S)}function Xc(){const S=[],P={run:U,use:Z};return P;function U(...ot){let ut=-1;const bt=ot.pop();if(typeof bt!="function")throw new TypeError("Expected function as last argument, not "+bt);Jt(null,...ot);function Jt(Ie,...Ue){const he=S[++ut];let Fe=-1;if(Ie){bt(Ie);return}for(;++Fe<ot.length;)(Ue[Fe]===null||Ue[Fe]===void 0)&&(Ue[Fe]=ot[Fe]);ot=Ue,he?Jc(he,Jt)(...Ue):bt(null,...Ue)}}function Z(ot){if(typeof ot!="function")throw new TypeError("Expected `middelware` to be a function, not "+ot);return S.push(ot),P}}function Jc(S,P){let U;return Z;function Z(...bt){const Jt=S.length>bt.length;let Ie;Jt&&bt.push(ot);try{Ie=S.apply(this,bt)}catch(Ue){const he=Ue;if(Jt&&U)throw he;return ot(he)}Jt||(Ie&&Ie.then&&typeof Ie.then=="function"?Ie.then(ut,ot):Ie instanceof Error?ot(Ie):ut(Ie))}function ot(bt,...Jt){U||(U=!0,P(bt,...Jt))}function ut(bt){ot(null,bt)}}const _s={basename:cu,dirname:Qc,extname:ht,join:mt,sep:"/"};function cu(S,P){if(P!==void 0&&typeof P!="string")throw new TypeError('"ext" argument must be a string');Se(S);let U=0,Z=-1,ot=S.length,ut;if(P===void 0||P.length===0||P.length>S.length){for(;ot--;)if(S.codePointAt(ot)===47){if(ut){U=ot+1;break}}else Z<0&&(ut=!0,Z=ot+1);return Z<0?"":S.slice(U,Z)}if(P===S)return"";let bt=-1,Jt=P.length-1;for(;ot--;)if(S.codePointAt(ot)===47){if(ut){U=ot+1;break}}else bt<0&&(ut=!0,bt=ot+1),Jt>-1&&(S.codePointAt(ot)===P.codePointAt(Jt--)?Jt<0&&(Z=ot):(Jt=-1,Z=bt));return U===Z?Z=bt:Z<0&&(Z=S.length),S.slice(U,Z)}function Qc(S){if(Se(S),S.length===0)return".";let P=-1,U=S.length,Z;for(;--U;)if(S.codePointAt(U)===47){if(Z){P=U;break}}else Z||(Z=!0);return P<0?S.codePointAt(0)===47?"/":".":P===1&&S.codePointAt(0)===47?"//":S.slice(0,P)}function ht(S){Se(S);let P=S.length,U=-1,Z=0,ot=-1,ut=0,bt;for(;P--;){const Jt=S.codePointAt(P);if(Jt===47){if(bt){Z=P+1;break}continue}U<0&&(bt=!0,U=P+1),Jt===46?ot<0?ot=P:ut!==1&&(ut=1):ot>-1&&(ut=-1)}return ot<0||U<0||ut===0||ut===1&&ot===U-1&&ot===Z+1?"":S.slice(ot,U)}function mt(...S){let P=-1,U;for(;++P<S.length;)Se(S[P]),S[P]&&(U=U===void 0?S[P]:U+"/"+S[P]);return U===void 0?".":ee(U)}function ee(S){Se(S);const P=S.codePointAt(0)===47;let U=re(S,!P);return U.length===0&&!P&&(U="."),U.length>0&&S.codePointAt(S.length-1)===47&&(U+="/"),P?"/"+U:U}function re(S,P){let U="",Z=0,ot=-1,ut=0,bt=-1,Jt,Ie;for(;++bt<=S.length;){if(bt<S.length)Jt=S.codePointAt(bt);else{if(Jt===47)break;Jt=47}if(Jt===47){if(!(ot===bt-1||ut===1))if(ot!==bt-1&&ut===2){if(U.length<2||Z!==2||U.codePointAt(U.length-1)!==46||U.codePointAt(U.length-2)!==46){if(U.length>2){if(Ie=U.lastIndexOf("/"),Ie!==U.length-1){Ie<0?(U="",Z=0):(U=U.slice(0,Ie),Z=U.length-1-U.lastIndexOf("/")),ot=bt,ut=0;continue}}else if(U.length>0){U="",Z=0,ot=bt,ut=0;continue}}P&&(U=U.length>0?U+"/..":"..",Z=2)}else U.length>0?U+="/"+S.slice(ot+1,bt):U=S.slice(ot+1,bt),Z=bt-ot-1;ot=bt,ut=0}else Jt===46&&ut>-1?ut++:ut=-1}return U}function Se(S){if(typeof S!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(S))}const me={cwd:Ye};function Ye(){return"/"}function Ze(S){return!!(S!==null&&typeof S=="object"&&"href"in S&&S.href&&"protocol"in S&&S.protocol&&S.auth===void 0)}function _e(S){if(typeof S=="string")S=new URL(S);else if(!Ze(S)){const P=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+S+"`");throw P.code="ERR_INVALID_ARG_TYPE",P}if(S.protocol!=="file:"){const P=new TypeError("The URL must be of scheme file");throw P.code="ERR_INVALID_URL_SCHEME",P}return wn(S)}function wn(S){if(S.hostname!==""){const Z=new TypeError('File URL host must be "localhost" or empty on darwin');throw Z.code="ERR_INVALID_FILE_URL_HOST",Z}const P=S.pathname;let U=-1;for(;++U<P.length;)if(P.codePointAt(U)===37&&P.codePointAt(U+1)===50){const Z=P.codePointAt(U+2);if(Z===70||Z===102){const ot=new TypeError("File URL path must not include encoded / characters");throw ot.code="ERR_INVALID_FILE_URL_PATH",ot}}return decodeURIComponent(P)}const An=["history","path","basename","stem","extname","dirname"];class Tn{constructor(P){let U;P?Ze(P)?U={path:P}:typeof P=="string"||Fi(P)?U={value:P}:U=P:U={},this.cwd="cwd"in U?"":me.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let Z=-1;for(;++Z<An.length;){const ut=An[Z];ut in U&&U[ut]!==void 0&&U[ut]!==null&&(this[ut]=ut==="history"?[...U[ut]]:U[ut])}let ot;for(ot in U)An.includes(ot)||(this[ot]=U[ot])}get basename(){return typeof this.path=="string"?_s.basename(this.path):void 0}set basename(P){Vn(P,"basename"),ii(P,"basename"),this.path=_s.join(this.dirname||"",P)}get dirname(){return typeof this.path=="string"?_s.dirname(this.path):void 0}set dirname(P){Hn(this.basename,"dirname"),this.path=_s.join(P||"",this.basename)}get extname(){return typeof this.path=="string"?_s.extname(this.path):void 0}set extname(P){if(ii(P,"extname"),Hn(this.dirname,"extname"),P){if(P.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(P.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=_s.join(this.dirname,this.stem+(P||""))}get path(){return this.history[this.history.length-1]}set path(P){Ze(P)&&(P=_e(P)),Vn(P,"path"),this.path!==P&&this.history.push(P)}get stem(){return typeof this.path=="string"?_s.basename(this.path,this.extname):void 0}set stem(P){Vn(P,"stem"),ii(P,"stem"),this.path=_s.join(this.dirname||"",P+(this.extname||""))}fail(P,U,Z){const ot=this.message(P,U,Z);throw ot.fatal=!0,ot}info(P,U,Z){const ot=this.message(P,U,Z);return ot.fatal=void 0,ot}message(P,U,Z){const ot=new ae(P,U,Z);return this.path&&(ot.name=this.path+":"+ot.name,ot.file=this.path),ot.fatal=!1,this.messages.push(ot),ot}toString(P){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(P||void 0).decode(this.value)}}function ii(S,P){if(S&&S.includes(_s.sep))throw new Error("`"+P+"` cannot be a path: did not expect `"+_s.sep+"`")}function Vn(S,P){if(!S)throw new Error("`"+P+"` cannot be empty")}function Hn(S,P){if(!S)throw new Error("Setting `"+P+"` requires `path` to be set too")}function Fi(S){return!!(S&&typeof S=="object"&&"byteLength"in S&&"byteOffset"in S)}const Zn=function(S){const Z=this.constructor.prototype,ot=Z[S],ut=function(){return ot.apply(ut,arguments)};return Object.setPrototypeOf(ut,Z),ut},ki={}.hasOwnProperty;class wi extends Zn{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Xc()}copy(){const P=new wi;let U=-1;for(;++U<this.attachers.length;){const Z=this.attachers[U];P.use(...Z)}return P.data(Eu(!0,{},this.namespace)),P}data(P,U){return typeof P=="string"?arguments.length===2?(Oi("data",this.frozen),this.namespace[P]=U,this):ki.call(this.namespace,P)&&this.namespace[P]||void 0:P?(Oi("data",this.frozen),this.namespace=P,this):this.namespace}freeze(){if(this.frozen)return this;const P=this;for(;++this.freezeIndex<this.attachers.length;){const[U,...Z]=this.attachers[this.freezeIndex];if(Z[0]===!1)continue;Z[0]===!0&&(Z[0]=void 0);const ot=U.call(P,...Z);typeof ot=="function"&&this.transformers.use(ot)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(P){this.freeze();const U=Li(P),Z=this.parser||this.Parser;return pr("parse",Z),Z(String(U),U)}process(P,U){const Z=this;return this.freeze(),pr("process",this.parser||this.Parser),cr("process",this.compiler||this.Compiler),U?ot(void 0,U):new Promise(ot);function ot(ut,bt){const Jt=Li(P),Ie=Z.parse(Jt);Z.run(Ie,Jt,function(he,Fe,Oe){if(he||!Fe||!Oe)return Ue(he);const ye=Fe,Ni=Z.stringify(ye,Oe);Ai(Ni)?Oe.value=Ni:Oe.result=Ni,Ue(he,Oe)});function Ue(he,Fe){he||!Fe?bt(he):ut?ut(Fe):((0,N.ok)(U,"`done` is defined if `resolve` is not"),U(void 0,Fe))}}}processSync(P){let U=!1,Z;return this.freeze(),pr("processSync",this.parser||this.Parser),cr("processSync",this.compiler||this.Compiler),this.process(P,ot),to("processSync","process",U),(0,N.ok)(Z,"we either bailed on an error or have a tree"),Z;function ot(ut,bt){U=!0,Yl(ut),Z=bt}}run(P,U,Z){jt(P),this.freeze();const ot=this.transformers;return!Z&&typeof U=="function"&&(Z=U,U=void 0),Z?ut(void 0,Z):new Promise(ut);function ut(bt,Jt){(0,N.ok)(typeof U!="function","`file` can\u2019t be a `done` anymore, we checked");const Ie=Li(U);ot.run(P,Ie,Ue);function Ue(he,Fe,Oe){const ye=Fe||P;he?Jt(he):bt?bt(ye):((0,N.ok)(Z,"`done` is defined if `resolve` is not"),Z(void 0,ye,Oe))}}}runSync(P,U){let Z=!1,ot;return this.run(P,U,ut),to("runSync","run",Z),(0,N.ok)(ot,"we either bailed on an error or have a tree"),ot;function ut(bt,Jt){Yl(bt),ot=Jt,Z=!0}}stringify(P,U){this.freeze();const Z=Li(U),ot=this.compiler||this.Compiler;return cr("stringify",ot),jt(P),ot(P,Z)}use(P,...U){const Z=this.attachers,ot=this.namespace;if(Oi("use",this.frozen),P!=null)if(typeof P=="function")Ie(P,U);else if(typeof P=="object")Array.isArray(P)?Jt(P):bt(P);else throw new TypeError("Expected usable value, not `"+P+"`");return this;function ut(Ue){if(typeof Ue=="function")Ie(Ue,[]);else if(typeof Ue=="object")if(Array.isArray(Ue)){const[he,...Fe]=Ue;Ie(he,Fe)}else bt(Ue);else throw new TypeError("Expected usable value, not `"+Ue+"`")}function bt(Ue){if(!("plugins"in Ue)&&!("settings"in Ue))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");Jt(Ue.plugins),Ue.settings&&(ot.settings=Eu(!0,ot.settings,Ue.settings))}function Jt(Ue){let he=-1;if(Ue!=null)if(Array.isArray(Ue))for(;++he<Ue.length;){const Fe=Ue[he];ut(Fe)}else throw new TypeError("Expected a list of plugins, not `"+Ue+"`")}function Ie(Ue,he){let Fe=-1,Oe=-1;for(;++Fe<Z.length;)if(Z[Fe][0]===Ue){Oe=Fe;break}if(Oe===-1)Z.push([Ue,...he]);else if(he.length>0){let[ye,...Ni]=he;const fi=Z[Oe][1];Cc(fi)&&Cc(ye)&&(ye=Eu(!0,fi,ye)),Z[Oe]=[Ue,ye,...Ni]}}}}const _i=new wi().freeze();function pr(S,P){if(typeof P!="function")throw new TypeError("Cannot `"+S+"` without `parser`")}function cr(S,P){if(typeof P!="function")throw new TypeError("Cannot `"+S+"` without `compiler`")}function Oi(S,P){if(P)throw new Error("Cannot call `"+S+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function jt(S){if(!Cc(S)||typeof S.type!="string")throw new TypeError("Expected node, got `"+S+"`")}function to(S,P,U){if(!U)throw new Error("`"+S+"` finished async. Use `"+P+"` instead")}function Li(S){return sr(S)?S:new Tn(S)}function sr(S){return!!(S&&typeof S=="object"&&"message"in S&&"messages"in S)}function Ai(S){return typeof S=="string"||gi(S)}function gi(S){return!!(S&&typeof S=="object"&&"byteLength"in S&&"byteOffset"in S)}const ji="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",wr=[],yr={allowDangerousHtml:!0},$r=/^(https?|ircs?|mailto|xmpp)$/i,Bi=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function no(S){const P=S.allowedElements,U=S.allowElement,Z=S.children||"",ot=S.className,ut=S.components,bt=S.disallowedElements,Jt=S.rehypePlugins||wr,Ie=S.remarkPlugins||wr,Ue=S.remarkRehypeOptions?Ms(Ms({},S.remarkRehypeOptions),yr):yr,he=S.skipHtml,Fe=S.unwrapDisallowed,Oe=S.urlTransform||co,ye=_i().use(Kl).use(Ie).use(El,Ue).use(Jt),Ni=new Tn;typeof Z=="string"?Ni.value=Z:(0,N.t1)("Unexpected value `"+Z+"` for `children` prop, expected `string`"),P&&bt&&(0,N.t1)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other");for(const Ri of Bi)Object.hasOwn(S,Ri.from)&&(0,N.t1)("Unexpected `"+Ri.from+"` prop, "+(Ri.to?"use `"+Ri.to+"` instead":"remove it")+" (see <"+ji+"#"+Ri.id+"> for more info)");const fi=ye.parse(Ni);let zi=ye.runSync(fi,Ni);return ot&&(zi={type:"element",tagName:"div",properties:{className:ot},children:zi.type==="root"?zi.children:[zi]}),Fl(zi,mi),nt(zi,{Fragment:qt.Fragment,components:ut,ignoreInvalidStyle:!0,jsx:qt.jsx,jsxs:qt.jsxs,passKeys:!0,passNode:!0});function mi(Ri,tr,oo){if(Ri.type==="raw"&&oo&&typeof tr=="number")return he?oo.children.splice(tr,1):oo.children[tr]={type:"text",value:Ri.value},tr;if(Ri.type==="element"){let ho;for(ho in Dt)if(Object.hasOwn(Dt,ho)&&Object.hasOwn(Ri.properties,ho)){const ti=Ri.properties[ho],Eo=Dt[ho];(Eo===null||Eo.includes(Ri.tagName))&&(Ri.properties[ho]=Oe(String(ti||""),ho,Ri))}}if(Ri.type==="element"){let ho=P?!P.includes(Ri.tagName):bt?bt.includes(Ri.tagName):!1;if(!ho&&U&&typeof tr=="number"&&(ho=!U(Ri,tr,oo)),ho&&oo&&typeof tr=="number")return Fe&&Ri.children?oo.children.splice(tr,1,...Ri.children):oo.children.splice(tr,1),tr}}}function co(S){const P=S.indexOf(":"),U=S.indexOf("?"),Z=S.indexOf("#"),ot=S.indexOf("/");return P===-1||ot!==-1&&P>ot||U!==-1&&P>U||Z!==-1&&P>Z||$r.test(S.slice(0,P))?S:""}},85065:function(V,w,h){"use strict";h.d(w,{Z:function(){return zu}});var y=h(54099),N=h(11630);const O=/[#.]/g;function B(C,f){const x=C||"",A={};let H=0,J,Et;for(;H<x.length;){O.lastIndex=H;const Zt=O.exec(x),Xt=x.slice(H,Zt?Zt.index:x.length);Xt&&(J?J==="#"?A.id=Xt:Array.isArray(A.className)?A.className.push(Xt):A.className=[Xt]:Et=Xt,H+=Xt.length),Zt&&(J=Zt[0],H++)}return{type:"element",tagName:Et||f||"div",properties:A,children:[]}}var _=h(52549),K=h(69901),I=h(71523);const dt={}.hasOwnProperty;function rt(C,f,x){const A=x&&vt(x);function H(J,Et,...Zt){let Xt=-1,Be;if(J==null){Be={type:"root",children:[]};const un=Et;Zt.unshift(un)}else if(Be=B(J,f),Be.tagName=Be.tagName.toLowerCase(),A&&dt.call(A,Be.tagName)&&(Be.tagName=A[Be.tagName]),Q(Et))Zt.unshift(Et);else{let un;for(un in Et)dt.call(Et,un)&&kt(C,Be.properties,un,Et[un])}for(;++Xt<Zt.length;)Y(Be.children,Zt[Xt]);return Be.type==="element"&&Be.tagName==="template"&&(Be.content={type:"root",children:Be.children},Be.children=[]),Be}return H}function Q(C){if(C===null||typeof C!="object"||Array.isArray(C))return!0;if(typeof C.type!="string")return!1;const f=C,x=Object.keys(C);for(const A of x){const H=f[A];if(H&&typeof H=="object"){if(!Array.isArray(H))return!0;const J=H;for(const Et of J)if(typeof Et!="number"&&typeof Et!="string")return!0}}return!!("children"in C&&Array.isArray(C.children))}function kt(C,f,x,A){const H=(0,_.s)(C,x);let J=-1,Et;if(A!=null){if(typeof A=="number"){if(Number.isNaN(A))return;Et=A}else typeof A=="boolean"?Et=A:typeof A=="string"?H.spaceSeparated?Et=(0,I.Q)(A):H.commaSeparated?Et=(0,N.Q)(A):H.commaOrSpaceSeparated?Et=(0,I.Q)((0,N.Q)(A).join(" ")):Et=Yt(H,H.property,A):Array.isArray(A)?Et=A.concat():Et=H.property==="style"?At(A):String(A);if(Array.isArray(Et)){const Zt=[];for(;++J<Et.length;){const Xt=Yt(H,H.property,Et[J]);Zt[J]=Xt}Et=Zt}if(H.property==="className"&&Array.isArray(f.className)){const Zt=Et;Et=f.className.concat(Zt)}f[H.property]=Et}}function Y(C,f){let x=-1;if(f!=null)if(typeof f=="string"||typeof f=="number")C.push({type:"text",value:String(f)});else if(Array.isArray(f))for(;++x<f.length;)Y(C,f[x]);else if(typeof f=="object"&&"type"in f)f.type==="root"?Y(C,f.children):C.push(f);else throw new Error("Expected node, nodes, or string, got `"+f+"`")}function Yt(C,f,x){if(typeof x=="string"){if(C.number&&x&&!Number.isNaN(Number(x)))return Number(x);if((C.boolean||C.overloadedBoolean)&&(x===""||(0,K.F)(x)===(0,K.F)(f)))return!0}return x}function At(C){const f=[];let x;for(x in C)dt.call(C,x)&&f.push([x,C[x]].join(": "));return f.join("; ")}function vt(C){const f={};let x=-1;for(;++x<C.length;)f[C[x].toLowerCase()]=C[x];return f}const Tt=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],Mt=rt(y.dy,"div"),ft=rt(y.YP,"g",Tt),It={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function $t(C,f){return Nt(C,f||{})||{type:"root",children:[]}}function Nt(C,f){const x=Ut(C,f);return x&&f.afterTransform&&f.afterTransform(C,x),x}function Ut(C,f){switch(C.nodeType){case 1:return Qt(C,f);case 3:return Lt(C);case 8:return Kt(C);case 9:return et(C,f);case 10:return Rt();case 11:return et(C,f);default:return}}function et(C,f){return{type:"root",children:ie(C,f)}}function Rt(){return{type:"doctype"}}function Lt(C){return{type:"text",value:C.nodeValue||""}}function Kt(C){return{type:"comment",value:C.nodeValue||""}}function Qt(C,f){const x=C.namespaceURI,A=x===It.svg?ft:Mt,H=x===It.html?C.tagName.toLowerCase():C.tagName,J=x===It.html&&H==="template"?C.content:C,Et=C.getAttributeNames(),Zt={};let Xt=-1;for(;++Xt<Et.length;)Zt[Et[Xt]]=C.getAttribute(Et[Xt])||"";return A(H,Zt,ie(J,f))}function ie(C,f){const x=C.childNodes,A=[];let H=-1;for(;++H<x.length;){const J=Nt(x[H],f);J!==void 0&&A.push(J)}return A}const yt=new DOMParser;function ae(C,f){const x=f!=null&&f.fragment?Ht(C):yt.parseFromString(C,"text/html");return $t(x)}function Ht(C){const f=document.createElement("template");return f.innerHTML=C,f.content}var Pe=h(10502);const ge=function(C,f,x){const A=(0,Pe.O)(x);if(!C||!C.type||!C.children)throw new Error("Expected parent node");if(typeof f=="number"){if(f<0||f===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(f=C.children.indexOf(f),f<0)throw new Error("Expected child node or index");for(;++f<C.children.length;)if(A(C.children[f],f,C))return C.children[f]},we=function(C,f,x,A,H){const J=pe(f);if(x!=null&&(typeof x!="number"||x<0||x===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite `index`");if(A!=null&&(!A.type||!A.children))throw new Error("Expected valid `parent`");if(x==null!=(A==null))throw new Error("Expected both `index` and `parent`");return Te(C)?J.call(H,C,x,A):!1},pe=function(C){if(C==null)return it;if(typeof C=="string")return zt(C);if(typeof C=="object")return ln(C);if(typeof C=="function")return nt(C);throw new Error("Expected function, string, or array as `test`")};function ln(C){const f=[];let x=-1;for(;++x<C.length;)f[x]=pe(C[x]);return nt(A);function A(...H){let J=-1;for(;++J<f.length;)if(f[J].apply(this,H))return!0;return!1}}function zt(C){return nt(f);function f(x){return x.tagName===C}}function nt(C){return f;function f(x,A,H){return!!(Te(x)&&C.call(this,x,typeof A=="number"?A:void 0,H||void 0))}}function it(C){return!!(C&&typeof C=="object"&&"type"in C&&C.type==="element"&&"tagName"in C&&typeof C.tagName=="string")}function Te(C){return C!==null&&typeof C=="object"&&"type"in C&&"tagName"in C}const Ae=/\n/g,de=/[\t ]+/g,en=pe("br"),vn=pe(St),Xn=pe("p"),gn=pe("tr"),_n=pe(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",T,fe]),$n=pe(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function fn(C,f){const x=f||{},A="children"in C?C.children:[],H=$n(C),J=G(C,{whitespace:x.whitespace||"normal",breakBefore:!1,breakAfter:!1}),Et=[];(C.type==="text"||C.type==="comment")&&Et.push(...L(C,{whitespace:J,breakBefore:!0,breakAfter:!0}));let Zt=-1;for(;++Zt<A.length;)Et.push(...hn(A[Zt],C,{whitespace:J,breakBefore:Zt?void 0:H,breakAfter:Zt<A.length-1?en(A[Zt+1]):H}));const Xt=[];let Be;for(Zt=-1;++Zt<Et.length;){const un=Et[Zt];typeof un=="number"?Be!==void 0&&un>Be&&(Be=un):un&&(Be!==void 0&&Be>-1&&Xt.push(`
|
|
|
`.repeat(Be)||" "),Be=-1,Xt.push(un))}return Xt.join("")}function hn(C,f,x){return C.type==="element"?ct(C,f,x):C.type==="text"?x.whitespace==="normal"?L(C,x):k(C):[]}function ct(C,f,x){const A=G(C,x),H=C.children||[];let J=-1,Et=[];if(_n(C))return Et;let Zt,Xt;for(en(C)||gn(C)&&ge(f,C,gn)?Xt=`
|
|
|
`:Xn(C)?(Zt=2,Xt=2):$n(C)&&(Zt=1,Xt=1);++J<H.length;)Et=Et.concat(hn(H[J],C,{whitespace:A,breakBefore:J?void 0:Zt,breakAfter:J<H.length-1?en(H[J+1]):Xt}));return vn(C)&&ge(f,C,vn)&&Et.push(" "),Zt&&Et.unshift(Zt),Xt&&Et.push(Xt),Et}function L(C,f){const x=String(C.value),A=[],H=[];let J=0;for(;J<=x.length;){Ae.lastIndex=J;const Xt=Ae.exec(x),Be=Xt&&"index"in Xt?Xt.index:x.length;A.push(z(x.slice(J,Be).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),J===0?f.breakBefore:!0,Be===x.length?f.breakAfter:!0)),J=Be+1}let Et=-1,Zt;for(;++Et<A.length;)A[Et].charCodeAt(A[Et].length-1)===8203||Et<A.length-1&&A[Et+1].charCodeAt(0)===8203?(H.push(A[Et]),Zt=void 0):A[Et]?(typeof Zt=="number"&&H.push(Zt),H.push(A[Et]),Zt=0):(Et===0||Et===A.length-1)&&H.push(0);return H}function k(C){return[String(C.value)]}function z(C,f,x){const A=[];let H=0,J;for(;H<C.length;){de.lastIndex=H;const Et=de.exec(C);J=Et?Et.index:C.length,!H&&!J&&Et&&!f&&A.push(""),H!==J&&A.push(C.slice(H,J)),H=Et?J+Et[0].length:J}return H!==J&&!x&&A.push(""),A.join(" ")}function G(C,f){if(C.type==="element"){const x=C.properties||{};switch(C.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return x.wrap?"pre-wrap":"pre";case"td":case"th":return x.noWrap?"nowrap":f.whitespace;case"textarea":return"pre-wrap";default:}}return f.whitespace}function T(C){return!!(C.properties||{}).hidden}function St(C){return C.tagName==="td"||C.tagName==="th"}function fe(C){return C.tagName==="dialog"&&!(C.properties||{}).open}class Ct{constructor(f,x,A){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=f,this.start=x,this.end=A}static range(f,x){return x?!f||!f.loc||!x.loc||f.loc.lexer!==x.loc.lexer?null:new Ct(f.loc.lexer,f.loc.start,x.loc.end):f&&f.loc}}class xt{constructor(f,x){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=f,this.loc=x}range(f,x){return new xt(x,Ct.range(this,f))}}class Dt{constructor(f,x){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var A="KaTeX parse error: "+f,H,J,Et=x&&x.loc;if(Et&&Et.start<=Et.end){var Zt=Et.lexer.input;H=Et.start,J=Et.end,H===Zt.length?A+=" at end of input: ":A+=" at position "+(H+1)+": ";var Xt=Zt.slice(H,J).replace(/[^]/g,"$&\u0332"),Be;H>15?Be="\u2026"+Zt.slice(H-15,H):Be=Zt.slice(0,H);var un;J+15<Zt.length?un=Zt.slice(J,J+15)+"\u2026":un=Zt.slice(J),A+=Be+Xt+un}var Dn=new Error(A);return Dn.name="ParseError",Dn.__proto__=Dt.prototype,Dn.position=H,H!=null&&J!=null&&(Dn.length=J-H),Dn.rawMessage=f,Dn}}Dt.prototype.__proto__=Error.prototype;var qt=function(f,x){return f.indexOf(x)!==-1},_t=function(f,x){return f===void 0?x:f},ve=/([A-Z])/g,Ge=function(f){return f.replace(ve,"-$1").toLowerCase()},Ke={"&":"&",">":">","<":"<",'"':""","'":"'"},Ce=/[&><"']/g;function Ve(C){return String(C).replace(Ce,f=>Ke[f])}var Qe=function C(f){return f.type==="ordgroup"||f.type==="color"?f.body.length===1?C(f.body[0]):f:f.type==="font"?C(f.body):f},Bt=function(f){var x=Qe(f);return x.type==="mathord"||x.type==="textord"||x.type==="atom"},xe=function(f){if(!f)throw new Error("Expected non-null, but got "+String(f));return f},ze=function(f){var x=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(f);return x?x[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(x[1])?null:x[1].toLowerCase():"_relative"},Ne={contains:qt,deflt:_t,escape:Ve,hyphenate:Ge,getBaseElem:Qe,isCharacterBox:Bt,protocolFromUrl:ze},Cn={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:C=>"#"+C},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(C,f)=>(f.push(C),f)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:C=>Math.max(0,C),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:C=>Math.max(0,C),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:C=>Math.max(0,C),cli:"-e, --max-expand <n>",cliProcessor:C=>C==="Infinity"?1/0:parseInt(C)},globalGroup:{type:"boolean",cli:!1}};function En(C){if(C.default)return C.default;var f=C.type,x=Array.isArray(f)?f[0]:f;if(typeof x!="string")return x.enum[0];switch(x){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class jn{constructor(f){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,f=f||{};for(var x in Cn)if(Cn.hasOwnProperty(x)){var A=Cn[x];this[x]=f[x]!==void 0?A.processor?A.processor(f[x]):f[x]:En(A)}}reportNonstrict(f,x,A){var H=this.strict;if(typeof H=="function"&&(H=H(f,x,A)),!(!H||H==="ignore")){if(H===!0||H==="error")throw new Dt("LaTeX-incompatible input and strict mode is set to 'error': "+(x+" ["+f+"]"),A);H==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(x+" ["+f+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+H+"': "+x+" ["+f+"]"))}}useStrictBehavior(f,x,A){var H=this.strict;if(typeof H=="function")try{H=H(f,x,A)}catch(J){H="error"}return!H||H==="ignore"?!1:H===!0||H==="error"?!0:H==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(x+" ["+f+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+H+"': "+x+" ["+f+"]")),!1)}isTrusted(f){if(f.url&&!f.protocol){var x=Ne.protocolFromUrl(f.url);if(x==null)return!1;f.protocol=x}var A=typeof this.trust=="function"?this.trust(f):this.trust;return!!A}}class On{constructor(f,x,A){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=f,this.size=x,this.cramped=A}sup(){return Di[D[this.id]]}sub(){return Di[fr[this.id]]}fracNum(){return Di[er[this.id]]}fracDen(){return Di[Gr[this.id]]}cramp(){return Di[Zr[this.id]]}text(){return Di[mo[this.id]]}isTight(){return this.size>=2}}var ci=0,Si=1,vi=2,qn=3,an=4,Ji=5,ui=6,lr=7,Di=[new On(ci,0,!1),new On(Si,0,!0),new On(vi,1,!1),new On(qn,1,!0),new On(an,2,!1),new On(Ji,2,!0),new On(ui,3,!1),new On(lr,3,!0)],D=[an,Ji,an,Ji,ui,lr,ui,lr],fr=[Ji,Ji,Ji,Ji,lr,lr,lr,lr],er=[vi,qn,an,Ji,ui,lr,ui,lr],Gr=[qn,qn,Ji,Ji,lr,lr,lr,lr],Zr=[Si,Si,qn,qn,Ji,Ji,lr,lr],mo=[ci,Si,vi,qn,vi,qn,vi,qn],Ei={DISPLAY:Di[ci],TEXT:Di[vi],SCRIPT:Di[an],SCRIPTSCRIPT:Di[ui]},No=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Ir(C){for(var f=0;f<No.length;f++)for(var x=No[f],A=0;A<x.blocks.length;A++){var H=x.blocks[A];if(C>=H[0]&&C<=H[1])return x.name}return null}var Gi=[];No.forEach(C=>C.blocks.forEach(f=>Gi.push(...f)));function Jn(C){for(var f=0;f<Gi.length;f+=2)if(C>=Gi[f]&&C<=Gi[f+1])return!0;return!1}var te=80,Nn=function(f,x){return"M95,"+(622+f+x)+`
|
|
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
|
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
|
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
|
c69,-144,104.5,-217.7,106.5,-221
|
|
|
l`+f/2.075+" -"+f+`
|
|
|
c5.3,-9.3,12,-14,20,-14
|
|
|
H400000v`+(40+f)+`H845.2724
|
|
|
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
|
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
|
M`+(834+f)+" "+x+"h400000v"+(40+f)+"h-400000z"},Bn=function(f,x){return"M263,"+(601+f+x)+`c0.7,0,18,39.7,52,119
|
|
|
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
|
c340,-704.7,510.7,-1060.3,512,-1067
|
|
|
l`+f/2.084+" -"+f+`
|
|
|
c4.7,-7.3,11,-11,19,-11
|
|
|
H40000v`+(40+f)+`H1012.3
|
|
|
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
|
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
|
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
|
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
|
M`+(1001+f)+" "+x+"h400000v"+(40+f)+"h-400000z"},oe=function(f,x){return"M983 "+(10+f+x)+`
|
|
|
l`+f/3.13+" -"+f+`
|
|
|
c4,-6.7,10,-10,18,-10 H400000v`+(40+f)+`
|
|
|
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|
|
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
|
|
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
|
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
|
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
|
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
|
M`+(1001+f)+" "+x+"h400000v"+(40+f)+"h-400000z"},Ft=function(f,x){return"M424,"+(2398+f+x)+`
|
|
|
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
|
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
|
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
|
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
|
l`+f/4.223+" -"+f+`c4,-6.7,10,-10,18,-10 H400000
|
|
|
v`+(40+f)+`H1014.6
|
|
|
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
|
c-2,6,-10,9,-24,9
|
|
|
c-8,0,-12,-0.7,-12,-2z M`+(1001+f)+" "+x+`
|
|
|
h400000v`+(40+f)+"h-400000z"},qe=function(f,x){return"M473,"+(2713+f+x)+`
|
|
|
c339.3,-1799.3,509.3,-2700,510,-2702 l`+f/5.298+" -"+f+`
|
|
|
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+f)+`H1017.7
|
|
|
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
|
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|
|
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
|
|
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
|
606zM`+(1001+f)+" "+x+"h400000v"+(40+f)+"H1017.7z"},xn=function(f){var x=f/2;return"M400000 "+f+" H0 L"+x+" 0 l65 45 L145 "+(f-80)+" H400000z"},Gn=function(f,x,A){var H=A-54-x-f;return"M702 "+(f+x)+"H400000"+(40+f)+`
|
|
|
H742v`+H+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|
|
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
|
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
|
219 661 l218 661zM702 `+x+"H400000v"+(40+f)+"H742z"},kn=function(f,x,A){x=1e3*x;var H="";switch(f){case"sqrtMain":H=Nn(x,te);break;case"sqrtSize1":H=Bn(x,te);break;case"sqrtSize2":H=oe(x,te);break;case"sqrtSize3":H=Ft(x,te);break;case"sqrtSize4":H=qe(x,te);break;case"sqrtTall":H=Gn(x,te,A)}return H},ne=function(f,x){switch(f){case"\u239C":return"M291 0 H417 V"+x+" H291z M291 0 H417 V"+x+" H291z";case"\u2223":return"M145 0 H188 V"+x+" H145z M145 0 H188 V"+x+" H145z";case"\u2225":return"M145 0 H188 V"+x+" H145z M145 0 H188 V"+x+" H145z"+("M367 0 H410 V"+x+" H367z M367 0 H410 V"+x+" H367z");case"\u239F":return"M457 0 H583 V"+x+" H457z M457 0 H583 V"+x+" H457z";case"\u23A2":return"M319 0 H403 V"+x+" H319z M319 0 H403 V"+x+" H319z";case"\u23A5":return"M263 0 H347 V"+x+" H263z M263 0 H347 V"+x+" H263z";case"\u23AA":return"M384 0 H504 V"+x+" H384z M384 0 H504 V"+x+" H384z";case"\u23D0":return"M312 0 H355 V"+x+" H312z M312 0 H355 V"+x+" H312z";case"\u2016":return"M257 0 H300 V"+x+" H257z M257 0 H300 V"+x+" H257z"+("M478 0 H521 V"+x+" H478z M478 0 H521 V"+x+" H478z");default:return""}},dn={doubleleftarrow:`M262 157
|
|
|
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|
|
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|
|
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|
|
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|
|
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
|
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
|
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
|
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
|
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|
|
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|
|
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|
|
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|
|
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
|
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
|
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
|
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|
|
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|
|
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|
|
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|
|
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|
|
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
|
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
|
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|
|
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|
|
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
|
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
|
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|
|
435 0h399565z`,leftgroupunder:`M400000 262
|
|
|
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
|
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
|
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|
|
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|
|
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|
|
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|
|
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|
|
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
|
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
|
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
|
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|
|
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|
|
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|
|
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
|
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
|
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|
|
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|
|
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
|
|
|
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
|
|
|
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
|
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
|
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|
|
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
|
|
|
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
|
|
|
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|
|
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
|
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|
|
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
|
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|
|
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
|
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|
|
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|
|
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
|
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|
|
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|
|
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
|
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
|
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|
|
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
|
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
|
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|
|
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
|
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
|
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|
|
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|
|
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|
|
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|
|
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
|
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
|
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|
|
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
|
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|
|
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
|
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|
|
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|
|
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|
|
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|
|
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|
|
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|
|
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|
|
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|
|
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|
|
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|
|
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|
|
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|
|
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|
|
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|
|
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
|
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|
|
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|
|
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|
|
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
|
|
|
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
|
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
|
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|
|
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
|
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|
|
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
|
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
|
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
|
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|
|
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|
|
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|
|
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
|
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
|
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
|
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|
|
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|
|
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
|
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
|
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|
|
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
|
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|
|
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
|
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
|
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
|
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
|
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
|
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
|
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
|
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
|
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|
|
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
|
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
|
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|
|
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
|
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
|
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
|
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|
|
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|
|
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
|
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|
|
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|
|
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|
|
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|
|
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
|
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
|
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|
|
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|
|
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|
|
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
|
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
|
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|
|
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
|
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
|
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
|
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|
|
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|
|
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
|
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
|
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Fn=function(f,x){switch(f){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+x+` v1759 h347 v-84
|
|
|
H403z M403 1759 V0 H319 V1759 v`+x+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+x+` v1759 H0 v84 H347z
|
|
|
M347 1759 V0 H263 V1759 v`+x+" v1759 h84z";case"vert":return"M145 15 v585 v"+x+` v585 c2.667,10,9.667,15,21,15
|
|
|
c10,0,16.667,-5,20,-15 v-585 v`+-x+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
|
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+x+" v585 h43z";case"doublevert":return"M145 15 v585 v"+x+` v585 c2.667,10,9.667,15,21,15
|
|
|
c10,0,16.667,-5,20,-15 v-585 v`+-x+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
|
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+x+` v585 h43z
|
|
|
M367 15 v585 v`+x+` v585 c2.667,10,9.667,15,21,15
|
|
|
c10,0,16.667,-5,20,-15 v-585 v`+-x+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
|
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+x+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+x+` v1715 h263 v84 H319z
|
|
|
MM319 602 V0 H403 V602 v`+x+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+x+` v1799 H0 v-84 H319z
|
|
|
MM319 602 V0 H403 V602 v`+x+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+x+` v602 h84z
|
|
|
M403 1759 V0 H319 V1759 v`+x+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+x+` v602 h84z
|
|
|
M347 1759 V0 h-84 V1759 v`+x+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
|
|
|
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
|
|
|
-36,557 l0,`+(x+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
|
|
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
|
|
|
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
|
|
|
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
|
|
l0,-`+(x+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
|
|
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
|
|
|
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
|
|
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(x+9)+`
|
|
|
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
|
|
|
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
|
|
|
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
|
|
|
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
|
l0,-`+(x+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class hi{constructor(f){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=f,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(f){return Ne.contains(this.classes,f)}toNode(){for(var f=document.createDocumentFragment(),x=0;x<this.children.length;x++)f.appendChild(this.children[x].toNode());return f}toMarkup(){for(var f="",x=0;x<this.children.length;x++)f+=this.children[x].toMarkup();return f}toText(){var f=x=>x.toText();return this.children.map(f).join("")}}var Me={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},In={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},be={\u00C5:"A",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function $e(C,f){Me[C]=f}function He(C,f,x){if(!Me[f])throw new Error("Font metrics not found for font: "+f+".");var A=C.charCodeAt(0),H=Me[f][A];if(!H&&C[0]in be&&(A=be[C[0]].charCodeAt(0),H=Me[f][A]),!H&&x==="text"&&Jn(A)&&(H=Me[f][77]),H)return{depth:H[0],height:H[1],italic:H[2],skew:H[3],width:H[4]}}var Le={};function tn(C){var f;if(C>=5?f=0:C>=3?f=1:f=2,!Le[f]){var x=Le[f]={cssEmPerMu:In.quad[f]/18};for(var A in In)In.hasOwnProperty(A)&&(x[A]=In[A][f])}return Le[f]}var Je=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],yn=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],bn=function(f,x){return x.size<2?f:Je[f-1][x.size-1]};class di{constructor(f){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=f.style,this.color=f.color,this.size=f.size||di.BASESIZE,this.textSize=f.textSize||this.size,this.phantom=!!f.phantom,this.font=f.font||"",this.fontFamily=f.fontFamily||"",this.fontWeight=f.fontWeight||"",this.fontShape=f.fontShape||"",this.sizeMultiplier=yn[this.size-1],this.maxSize=f.maxSize,this.minRuleThickness=f.minRuleThickness,this._fontMetrics=void 0}extend(f){var x={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var A in f)f.hasOwnProperty(A)&&(x[A]=f[A]);return new di(x)}havingStyle(f){return this.style===f?this:this.extend({style:f,size:bn(this.textSize,f)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(f){return this.size===f&&this.textSize===f?this:this.extend({style:this.style.text(),size:f,textSize:f,sizeMultiplier:yn[f-1]})}havingBaseStyle(f){f=f||this.style.text();var x=bn(di.BASESIZE,f);return this.size===x&&this.textSize===di.BASESIZE&&this.style===f?this:this.extend({style:f,size:x})}havingBaseSizing(){var f;switch(this.style.id){case 4:case 5:f=3;break;case 6:case 7:f=1;break;default:f=6}return this.extend({style:this.style.text(),size:f})}withColor(f){return this.extend({color:f})}withPhantom(){return this.extend({phantom:!0})}withFont(f){return this.extend({font:f})}withTextFontFamily(f){return this.extend({fontFamily:f,font:""})}withTextFontWeight(f){return this.extend({fontWeight:f,font:""})}withTextFontShape(f){return this.extend({fontShape:f,font:""})}sizingClasses(f){return f.size!==this.size?["sizing","reset-size"+f.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==di.BASESIZE?["sizing","reset-size"+this.size,"size"+di.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=tn(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}di.BASESIZE=6;var Sn={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},xi={ex:!0,em:!0,mu:!0},ir=function(f){return typeof f!="string"&&(f=f.unit),f in Sn||f in xi||f==="ex"},Mi=function(f,x){var A;if(f.unit in Sn)A=Sn[f.unit]/x.fontMetrics().ptPerEm/x.sizeMultiplier;else if(f.unit==="mu")A=x.fontMetrics().cssEmPerMu;else{var H;if(x.style.isTight()?H=x.havingStyle(x.style.text()):H=x,f.unit==="ex")A=H.fontMetrics().xHeight;else if(f.unit==="em")A=H.fontMetrics().quad;else throw new Dt("Invalid unit: '"+f.unit+"'");H!==x&&(A*=H.sizeMultiplier/x.sizeMultiplier)}return Math.min(f.number*A,x.maxSize)},le=function(f){return+f.toFixed(4)+"em"},mr=function(f){return f.filter(x=>x).join(" ")},Or=function(f,x,A){if(this.classes=f||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=A||{},x){x.style.isTight()&&this.classes.push("mtight");var H=x.getColor();H&&(this.style.color=H)}},zr=function(f){var x=document.createElement(f);x.className=mr(this.classes);for(var A in this.style)this.style.hasOwnProperty(A)&&(x.style[A]=this.style[A]);for(var H in this.attributes)this.attributes.hasOwnProperty(H)&&x.setAttribute(H,this.attributes[H]);for(var J=0;J<this.children.length;J++)x.appendChild(this.children[J].toNode());return x},Yr=/[\s"'>/=\x00-\x1f]/,dr=function(f){var x="<"+f;this.classes.length&&(x+=' class="'+Ne.escape(mr(this.classes))+'"');var A="";for(var H in this.style)this.style.hasOwnProperty(H)&&(A+=Ne.hyphenate(H)+":"+this.style[H]+";");A&&(x+=' style="'+Ne.escape(A)+'"');for(var J in this.attributes)if(this.attributes.hasOwnProperty(J)){if(Yr.test(J))throw new Dt("Invalid attribute name '"+J+"'");x+=" "+J+'="'+Ne.escape(this.attributes[J])+'"'}x+=">";for(var Et=0;Et<this.children.length;Et++)x+=this.children[Et].toMarkup();return x+="</"+f+">",x};class Er{constructor(f,x,A,H){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Or.call(this,f,A,H),this.children=x||[]}setAttribute(f,x){this.attributes[f]=x}hasClass(f){return Ne.contains(this.classes,f)}toNode(){return zr.call(this,"span")}toMarkup(){return dr.call(this,"span")}}class Pi{constructor(f,x,A,H){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Or.call(this,x,H),this.children=A||[],this.setAttribute("href",f)}setAttribute(f,x){this.attributes[f]=x}hasClass(f){return Ne.contains(this.classes,f)}toNode(){return zr.call(this,"a")}toMarkup(){return dr.call(this,"a")}}class pi{constructor(f,x,A){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=x,this.src=f,this.classes=["mord"],this.style=A}hasClass(f){return Ne.contains(this.classes,f)}toNode(){var f=document.createElement("img");f.src=this.src,f.alt=this.alt,f.className="mord";for(var x in this.style)this.style.hasOwnProperty(x)&&(f.style[x]=this.style[x]);return f}toMarkup(){var f='<img src="'+Ne.escape(this.src)+'"'+(' alt="'+Ne.escape(this.alt)+'"'),x="";for(var A in this.style)this.style.hasOwnProperty(A)&&(x+=Ne.hyphenate(A)+":"+this.style[A]+";");return x&&(f+=' style="'+Ne.escape(x)+'"'),f+="'/>",f}}var ur={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"};class Re{constructor(f,x,A,H,J,Et,Zt,Xt){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=f,this.height=x||0,this.depth=A||0,this.italic=H||0,this.skew=J||0,this.width=Et||0,this.classes=Zt||[],this.style=Xt||{},this.maxFontSize=0;var Be=Ir(this.text.charCodeAt(0));Be&&this.classes.push(Be+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=ur[this.text])}hasClass(f){return Ne.contains(this.classes,f)}toNode(){var f=document.createTextNode(this.text),x=null;this.italic>0&&(x=document.createElement("span"),x.style.marginRight=le(this.italic)),this.classes.length>0&&(x=x||document.createElement("span"),x.className=mr(this.classes));for(var A in this.style)this.style.hasOwnProperty(A)&&(x=x||document.createElement("span"),x.style[A]=this.style[A]);return x?(x.appendChild(f),x):f}toMarkup(){var f=!1,x="<span";this.classes.length&&(f=!0,x+=' class="',x+=Ne.escape(mr(this.classes)),x+='"');var A="";this.italic>0&&(A+="margin-right:"+this.italic+"em;");for(var H in this.style)this.style.hasOwnProperty(H)&&(A+=Ne.hyphenate(H)+":"+this.style[H]+";");A&&(f=!0,x+=' style="'+Ne.escape(A)+'"');var J=Ne.escape(this.text);return f?(x+=">",x+=J,x+="</span>",x):J}}class Rr{constructor(f,x){this.children=void 0,this.attributes=void 0,this.children=f||[],this.attributes=x||{}}toNode(){var f="http://www.w3.org/2000/svg",x=document.createElementNS(f,"svg");for(var A in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,A)&&x.setAttribute(A,this.attributes[A]);for(var H=0;H<this.children.length;H++)x.appendChild(this.children[H].toNode());return x}toMarkup(){var f='<svg xmlns="http://www.w3.org/2000/svg"';for(var x in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,x)&&(f+=" "+x+'="'+Ne.escape(this.attributes[x])+'"');f+=">";for(var A=0;A<this.children.length;A++)f+=this.children[A].toMarkup();return f+="</svg>",f}}class je{constructor(f,x){this.pathName=void 0,this.alternate=void 0,this.pathName=f,this.alternate=x}toNode(){var f="http://www.w3.org/2000/svg",x=document.createElementNS(f,"path");return this.alternate?x.setAttribute("d",this.alternate):x.setAttribute("d",dn[this.pathName]),x}toMarkup(){return this.alternate?'<path d="'+Ne.escape(this.alternate)+'"/>':'<path d="'+Ne.escape(dn[this.pathName])+'"/>'}}class nr{constructor(f){this.attributes=void 0,this.attributes=f||{}}toNode(){var f="http://www.w3.org/2000/svg",x=document.createElementNS(f,"line");for(var A in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,A)&&x.setAttribute(A,this.attributes[A]);return x}toMarkup(){var f="<line";for(var x in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,x)&&(f+=" "+x+'="'+Ne.escape(this.attributes[x])+'"');return f+="/>",f}}function Co(C){if(C instanceof Re)return C;throw new Error("Expected symbolNode but got "+String(C)+".")}function Br(C){if(C instanceof Er)return C;throw new Error("Expected span<HtmlDomNode> but got "+String(C)+".")}var rs={bin:1,close:1,inner:1,open:1,punct:1,rel:1},yo={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},ai={math:{},text:{}};function W(C,f,x,A,H,J){ai[C][H]={font:f,group:x,replace:A},J&&A&&(ai[C][A]=ai[C][H])}var tt="math",Pn="text",pt="main",$="ams",Wi="accent-token",bi="bin",qi="close",go="inner",Ui="mathord",Xr="op-token",$i="open",Vi="punct",se="rel",kr="spacing",De="textord";W(tt,pt,se,"\u2261","\\equiv",!0),W(tt,pt,se,"\u227A","\\prec",!0),W(tt,pt,se,"\u227B","\\succ",!0),W(tt,pt,se,"\u223C","\\sim",!0),W(tt,pt,se,"\u22A5","\\perp"),W(tt,pt,se,"\u2AAF","\\preceq",!0),W(tt,pt,se,"\u2AB0","\\succeq",!0),W(tt,pt,se,"\u2243","\\simeq",!0),W(tt,pt,se,"\u2223","\\mid",!0),W(tt,pt,se,"\u226A","\\ll",!0),W(tt,pt,se,"\u226B","\\gg",!0),W(tt,pt,se,"\u224D","\\asymp",!0),W(tt,pt,se,"\u2225","\\parallel"),W(tt,pt,se,"\u22C8","\\bowtie",!0),W(tt,pt,se,"\u2323","\\smile",!0),W(tt,pt,se,"\u2291","\\sqsubseteq",!0),W(tt,pt,se,"\u2292","\\sqsupseteq",!0),W(tt,pt,se,"\u2250","\\doteq",!0),W(tt,pt,se,"\u2322","\\frown",!0),W(tt,pt,se,"\u220B","\\ni",!0),W(tt,pt,se,"\u221D","\\propto",!0),W(tt,pt,se,"\u22A2","\\vdash",!0),W(tt,pt,se,"\u22A3","\\dashv",!0),W(tt,pt,se,"\u220B","\\owns"),W(tt,pt,Vi,".","\\ldotp"),W(tt,pt,Vi,"\u22C5","\\cdotp"),W(tt,pt,De,"#","\\#"),W(Pn,pt,De,"#","\\#"),W(tt,pt,De,"&","\\&"),W(Pn,pt,De,"&","\\&"),W(tt,pt,De,"\u2135","\\aleph",!0),W(tt,pt,De,"\u2200","\\forall",!0),W(tt,pt,De,"\u210F","\\hbar",!0),W(tt,pt,De,"\u2203","\\exists",!0),W(tt,pt,De,"\u2207","\\nabla",!0),W(tt,pt,De,"\u266D","\\flat",!0),W(tt,pt,De,"\u2113","\\ell",!0),W(tt,pt,De,"\u266E","\\natural",!0),W(tt,pt,De,"\u2663","\\clubsuit",!0),W(tt,pt,De,"\u2118","\\wp",!0),W(tt,pt,De,"\u266F","\\sharp",!0),W(tt,pt,De,"\u2662","\\diamondsuit",!0),W(tt,pt,De,"\u211C","\\Re",!0),W(tt,pt,De,"\u2661","\\heartsuit",!0),W(tt,pt,De,"\u2111","\\Im",!0),W(tt,pt,De,"\u2660","\\spadesuit",!0),W(tt,pt,De,"\xA7","\\S",!0),W(Pn,pt,De,"\xA7","\\S"),W(tt,pt,De,"\xB6","\\P",!0),W(Pn,pt,De,"\xB6","\\P"),W(tt,pt,De,"\u2020","\\dag"),W(Pn,pt,De,"\u2020","\\dag"),W(Pn,pt,De,"\u2020","\\textdagger"),W(tt,pt,De,"\u2021","\\ddag"),W(Pn,pt,De,"\u2021","\\ddag"),W(Pn,pt,De,"\u2021","\\textdaggerdbl"),W(tt,pt,qi,"\u23B1","\\rmoustache",!0),W(tt,pt,$i,"\u23B0","\\lmoustache",!0),W(tt,pt,qi,"\u27EF","\\rgroup",!0),W(tt,pt,$i,"\u27EE","\\lgroup",!0),W(tt,pt,bi,"\u2213","\\mp",!0),W(tt,pt,bi,"\u2296","\\ominus",!0),W(tt,pt,bi,"\u228E","\\uplus",!0),W(tt,pt,bi,"\u2293","\\sqcap",!0),W(tt,pt,bi,"\u2217","\\ast"),W(tt,pt,bi,"\u2294","\\sqcup",!0),W(tt,pt,bi,"\u25EF","\\bigcirc",!0),W(tt,pt,bi,"\u2219","\\bullet",!0),W(tt,pt,bi,"\u2021","\\ddagger"),W(tt,pt,bi,"\u2240","\\wr",!0),W(tt,pt,bi,"\u2A3F","\\amalg"),W(tt,pt,bi,"&","\\And"),W(tt,pt,se,"\u27F5","\\longleftarrow",!0),W(tt,pt,se,"\u21D0","\\Leftarrow",!0),W(tt,pt,se,"\u27F8","\\Longleftarrow",!0),W(tt,pt,se,"\u27F6","\\longrightarrow",!0),W(tt,pt,se,"\u21D2","\\Rightarrow",!0),W(tt,pt,se,"\u27F9","\\Longrightarrow",!0),W(tt,pt,se,"\u2194","\\leftrightarrow",!0),W(tt,pt,se,"\u27F7","\\longleftrightarrow",!0),W(tt,pt,se,"\u21D4","\\Leftrightarrow",!0),W(tt,pt,se,"\u27FA","\\Longleftrightarrow",!0),W(tt,pt,se,"\u21A6","\\mapsto",!0),W(tt,pt,se,"\u27FC","\\longmapsto",!0),W(tt,pt,se,"\u2197","\\nearrow",!0),W(tt,pt,se,"\u21A9","\\hookleftarrow",!0),W(tt,pt,se,"\u21AA","\\hookrightarrow",!0),W(tt,pt,se,"\u2198","\\searrow",!0),W(tt,pt,se,"\u21BC","\\leftharpoonup",!0),W(tt,pt,se,"\u21C0","\\rightharpoonup",!0),W(tt,pt,se,"\u2199","\\swarrow",!0),W(tt,pt,se,"\u21BD","\\leftharpoondown",!0),W(tt,pt,se,"\u21C1","\\rightharpoondown",!0),W(tt,pt,se,"\u2196","\\nwarrow",!0),W(tt,pt,se,"\u21CC","\\rightleftharpoons",!0),W(tt,$,se,"\u226E","\\nless",!0),W(tt,$,se,"\uE010","\\@nleqslant"),W(tt,$,se,"\uE011","\\@nleqq"),W(tt,$,se,"\u2A87","\\lneq",!0),W(tt,$,se,"\u2268","\\lneqq",!0),W(tt,$,se,"\uE00C","\\@lvertneqq"),W(tt,$,se,"\u22E6","\\lnsim",!0),W(tt,$,se,"\u2A89","\\lnapprox",!0),W(tt,$,se,"\u2280","\\nprec",!0),W(tt,$,se,"\u22E0","\\npreceq",!0),W(tt,$,se,"\u22E8","\\precnsim",!0),W(tt,$,se,"\u2AB9","\\precnapprox",!0),W(tt,$,se,"\u2241","\\nsim",!0),W(tt,$,se,"\uE006","\\@nshortmid"),W(tt,$,se,"\u2224","\\nmid",!0),W(tt,$,se,"\u22AC","\\nvdash",!0),W(tt,$,se,"\u22AD","\\nvDash",!0),W(tt,$,se,"\u22EA","\\ntriangleleft"),W(tt,$,se,"\u22EC","\\ntrianglelefteq",!0),W(tt,$,se,"\u228A","\\subsetneq",!0),W(tt,$,se,"\uE01A","\\@varsubsetneq"),W(tt,$,se,"\u2ACB","\\subsetneqq",!0),W(tt,$,se,"\uE017","\\@varsubsetneqq"),W(tt,$,se,"\u226F","\\ngtr",!0),W(tt,$,se,"\uE00F","\\@ngeqslant"),W(tt,$,se,"\uE00E","\\@ngeqq"),W(tt,$,se,"\u2A88","\\gneq",!0),W(tt,$,se,"\u2269","\\gneqq",!0),W(tt,$,se,"\uE00D","\\@gvertneqq"),W(tt,$,se,"\u22E7","\\gnsim",!0),W(tt,$,se,"\u2A8A","\\gnapprox",!0),W(tt,$,se,"\u2281","\\nsucc",!0),W(tt,$,se,"\u22E1","\\nsucceq",!0),W(tt,$,se,"\u22E9","\\succnsim",!0),W(tt,$,se,"\u2ABA","\\succnapprox",!0),W(tt,$,se,"\u2246","\\ncong",!0),W(tt,$,se,"\uE007","\\@nshortparallel"),W(tt,$,se,"\u2226","\\nparallel",!0),W(tt,$,se,"\u22AF","\\nVDash",!0),W(tt,$,se,"\u22EB","\\ntriangleright"),W(tt,$,se,"\u22ED","\\ntrianglerighteq",!0),W(tt,$,se,"\uE018","\\@nsupseteqq"),W(tt,$,se,"\u228B","\\supsetneq",!0),W(tt,$,se,"\uE01B","\\@varsupsetneq"),W(tt,$,se,"\u2ACC","\\supsetneqq",!0),W(tt,$,se,"\uE019","\\@varsupsetneqq"),W(tt,$,se,"\u22AE","\\nVdash",!0),W(tt,$,se,"\u2AB5","\\precneqq",!0),W(tt,$,se,"\u2AB6","\\succneqq",!0),W(tt,$,se,"\uE016","\\@nsubseteqq"),W(tt,$,bi,"\u22B4","\\unlhd"),W(tt,$,bi,"\u22B5","\\unrhd"),W(tt,$,se,"\u219A","\\nleftarrow",!0),W(tt,$,se,"\u219B","\\nrightarrow",!0),W(tt,$,se,"\u21CD","\\nLeftarrow",!0),W(tt,$,se,"\u21CF","\\nRightarrow",!0),W(tt,$,se,"\u21AE","\\nleftrightarrow",!0),W(tt,$,se,"\u21CE","\\nLeftrightarrow",!0),W(tt,$,se,"\u25B3","\\vartriangle"),W(tt,$,De,"\u210F","\\hslash"),W(tt,$,De,"\u25BD","\\triangledown"),W(tt,$,De,"\u25CA","\\lozenge"),W(tt,$,De,"\u24C8","\\circledS"),W(tt,$,De,"\xAE","\\circledR"),W(Pn,$,De,"\xAE","\\circledR"),W(tt,$,De,"\u2221","\\measuredangle",!0),W(tt,$,De,"\u2204","\\nexists"),W(tt,$,De,"\u2127","\\mho"),W(tt,$,De,"\u2132","\\Finv",!0),W(tt,$,De,"\u2141","\\Game",!0),W(tt,$,De,"\u2035","\\backprime"),W(tt,$,De,"\u25B2","\\blacktriangle"),W(tt,$,De,"\u25BC","\\blacktriangledown"),W(tt,$,De,"\u25A0","\\blacksquare"),W(tt,$,De,"\u29EB","\\blacklozenge"),W(tt,$,De,"\u2605","\\bigstar"),W(tt,$,De,"\u2222","\\sphericalangle",!0),W(tt,$,De,"\u2201","\\complement",!0),W(tt,$,De,"\xF0","\\eth",!0),W(Pn,pt,De,"\xF0","\xF0"),W(tt,$,De,"\u2571","\\diagup"),W(tt,$,De,"\u2572","\\diagdown"),W(tt,$,De,"\u25A1","\\square"),W(tt,$,De,"\u25A1","\\Box"),W(tt,$,De,"\u25CA","\\Diamond"),W(tt,$,De,"\xA5","\\yen",!0),W(Pn,$,De,"\xA5","\\yen",!0),W(tt,$,De,"\u2713","\\checkmark",!0),W(Pn,$,De,"\u2713","\\checkmark"),W(tt,$,De,"\u2136","\\beth",!0),W(tt,$,De,"\u2138","\\daleth",!0),W(tt,$,De,"\u2137","\\gimel",!0),W(tt,$,De,"\u03DD","\\digamma",!0),W(tt,$,De,"\u03F0","\\varkappa"),W(tt,$,$i,"\u250C","\\@ulcorner",!0),W(tt,$,qi,"\u2510","\\@urcorner",!0),W(tt,$,$i,"\u2514","\\@llcorner",!0),W(tt,$,qi,"\u2518","\\@lrcorner",!0),W(tt,$,se,"\u2266","\\leqq",!0),W(tt,$,se,"\u2A7D","\\leqslant",!0),W(tt,$,se,"\u2A95","\\eqslantless",!0),W(tt,$,se,"\u2272","\\lesssim",!0),W(tt,$,se,"\u2A85","\\lessapprox",!0),W(tt,$,se,"\u224A","\\approxeq",!0),W(tt,$,bi,"\u22D6","\\lessdot"),W(tt,$,se,"\u22D8","\\lll",!0),W(tt,$,se,"\u2276","\\lessgtr",!0),W(tt,$,se,"\u22DA","\\lesseqgtr",!0),W(tt,$,se,"\u2A8B","\\lesseqqgtr",!0),W(tt,$,se,"\u2251","\\doteqdot"),W(tt,$,se,"\u2253","\\risingdotseq",!0),W(tt,$,se,"\u2252","\\fallingdotseq",!0),W(tt,$,se,"\u223D","\\backsim",!0),W(tt,$,se,"\u22CD","\\backsimeq",!0),W(tt,$,se,"\u2AC5","\\subseteqq",!0),W(tt,$,se,"\u22D0","\\Subset",!0),W(tt,$,se,"\u228F","\\sqsubset",!0),W(tt,$,se,"\u227C","\\preccurlyeq",!0),W(tt,$,se,"\u22DE","\\curlyeqprec",!0),W(tt,$,se,"\u227E","\\precsim",!0),W(tt,$,se,"\u2AB7","\\precapprox",!0),W(tt,$,se,"\u22B2","\\vartriangleleft"),W(tt,$,se,"\u22B4","\\trianglelefteq"),W(tt,$,se,"\u22A8","\\vDash",!0),W(tt,$,se,"\u22AA","\\Vvdash",!0),W(tt,$,se,"\u2323","\\smallsmile"),W(tt,$,se,"\u2322","\\smallfrown"),W(tt,$,se,"\u224F","\\bumpeq",!0),W(tt,$,se,"\u224E","\\Bumpeq",!0),W(tt,$,se,"\u2267","\\geqq",!0),W(tt,$,se,"\u2A7E","\\geqslant",!0),W(tt,$,se,"\u2A96","\\eqslantgtr",!0),W(tt,$,se,"\u2273","\\gtrsim",!0),W(tt,$,se,"\u2A86","\\gtrapprox",!0),W(tt,$,bi,"\u22D7","\\gtrdot"),W(tt,$,se,"\u22D9","\\ggg",!0),W(tt,$,se,"\u2277","\\gtrless",!0),W(tt,$,se,"\u22DB","\\gtreqless",!0),W(tt,$,se,"\u2A8C","\\gtreqqless",!0),W(tt,$,se,"\u2256","\\eqcirc",!0),W(tt,$,se,"\u2257","\\circeq",!0),W(tt,$,se,"\u225C","\\triangleq",!0),W(tt,$,se,"\u223C","\\thicksim"),W(tt,$,se,"\u2248","\\thickapprox"),W(tt,$,se,"\u2AC6","\\supseteqq",!0),W(tt,$,se,"\u22D1","\\Supset",!0),W(tt,$,se,"\u2290","\\sqsupset",!0),W(tt,$,se,"\u227D","\\succcurlyeq",!0),W(tt,$,se,"\u22DF","\\curlyeqsucc",!0),W(tt,$,se,"\u227F","\\succsim",!0),W(tt,$,se,"\u2AB8","\\succapprox",!0),W(tt,$,se,"\u22B3","\\vartriangleright"),W(tt,$,se,"\u22B5","\\trianglerighteq"),W(tt,$,se,"\u22A9","\\Vdash",!0),W(tt,$,se,"\u2223","\\shortmid"),W(tt,$,se,"\u2225","\\shortparallel"),W(tt,$,se,"\u226C","\\between",!0),W(tt,$,se,"\u22D4","\\pitchfork",!0),W(tt,$,se,"\u221D","\\varpropto"),W(tt,$,se,"\u25C0","\\blacktriangleleft"),W(tt,$,se,"\u2234","\\therefore",!0),W(tt,$,se,"\u220D","\\backepsilon"),W(tt,$,se,"\u25B6","\\blacktriangleright"),W(tt,$,se,"\u2235","\\because",!0),W(tt,$,se,"\u22D8","\\llless"),W(tt,$,se,"\u22D9","\\gggtr"),W(tt,$,bi,"\u22B2","\\lhd"),W(tt,$,bi,"\u22B3","\\rhd"),W(tt,$,se,"\u2242","\\eqsim",!0),W(tt,pt,se,"\u22C8","\\Join"),W(tt,$,se,"\u2251","\\Doteq",!0),W(tt,$,bi,"\u2214","\\dotplus",!0),W(tt,$,bi,"\u2216","\\smallsetminus"),W(tt,$,bi,"\u22D2","\\Cap",!0),W(tt,$,bi,"\u22D3","\\Cup",!0),W(tt,$,bi,"\u2A5E","\\doublebarwedge",!0),W(tt,$,bi,"\u229F","\\boxminus",!0),W(tt,$,bi,"\u229E","\\boxplus",!0),W(tt,$,bi,"\u22C7","\\divideontimes",!0),W(tt,$,bi,"\u22C9","\\ltimes",!0),W(tt,$,bi,"\u22CA","\\rtimes",!0),W(tt,$,bi,"\u22CB","\\leftthreetimes",!0),W(tt,$,bi,"\u22CC","\\rightthreetimes",!0),W(tt,$,bi,"\u22CF","\\curlywedge",!0),W(tt,$,bi,"\u22CE","\\curlyvee",!0),W(tt,$,bi,"\u229D","\\circleddash",!0),W(tt,$,bi,"\u229B","\\circledast",!0),W(tt,$,bi,"\u22C5","\\centerdot"),W(tt,$,bi,"\u22BA","\\intercal",!0),W(tt,$,bi,"\u22D2","\\doublecap"),W(tt,$,bi,"\u22D3","\\doublecup"),W(tt,$,bi,"\u22A0","\\boxtimes",!0),W(tt,$,se,"\u21E2","\\dashrightarrow",!0),W(tt,$,se,"\u21E0","\\dashleftarrow",!0),W(tt,$,se,"\u21C7","\\leftleftarrows",!0),W(tt,$,se,"\u21C6","\\leftrightarrows",!0),W(tt,$,se,"\u21DA","\\Lleftarrow",!0),W(tt,$,se,"\u219E","\\twoheadleftarrow",!0),W(tt,$,se,"\u21A2","\\leftarrowtail",!0),W(tt,$,se,"\u21AB","\\looparrowleft",!0),W(tt,$,se,"\u21CB","\\leftrightharpoons",!0),W(tt,$,se,"\u21B6","\\curvearrowleft",!0),W(tt,$,se,"\u21BA","\\circlearrowleft",!0),W(tt,$,se,"\u21B0","\\Lsh",!0),W(tt,$,se,"\u21C8","\\upuparrows",!0),W(tt,$,se,"\u21BF","\\upharpoonleft",!0),W(tt,$,se,"\u21C3","\\downharpoonleft",!0),W(tt,pt,se,"\u22B6","\\origof",!0),W(tt,pt,se,"\u22B7","\\imageof",!0),W(tt,$,se,"\u22B8","\\multimap",!0),W(tt,$,se,"\u21AD","\\leftrightsquigarrow",!0),W(tt,$,se,"\u21C9","\\rightrightarrows",!0),W(tt,$,se,"\u21C4","\\rightleftarrows",!0),W(tt,$,se,"\u21A0","\\twoheadrightarrow",!0),W(tt,$,se,"\u21A3","\\rightarrowtail",!0),W(tt,$,se,"\u21AC","\\looparrowright",!0),W(tt,$,se,"\u21B7","\\curvearrowright",!0),W(tt,$,se,"\u21BB","\\circlearrowright",!0),W(tt,$,se,"\u21B1","\\Rsh",!0),W(tt,$,se,"\u21CA","\\downdownarrows",!0),W(tt,$,se,"\u21BE","\\upharpoonright",!0),W(tt,$,se,"\u21C2","\\downharpoonright",!0),W(tt,$,se,"\u21DD","\\rightsquigarrow",!0),W(tt,$,se,"\u21DD","\\leadsto"),W(tt,$,se,"\u21DB","\\Rrightarrow",!0),W(tt,$,se,"\u21BE","\\restriction"),W(tt,pt,De,"\u2018","`"),W(tt,pt,De,"$","\\$"),W(Pn,pt,De,"$","\\$"),W(Pn,pt,De,"$","\\textdollar"),W(tt,pt,De,"%","\\%"),W(Pn,pt,De,"%","\\%"),W(tt,pt,De,"_","\\_"),W(Pn,pt,De,"_","\\_"),W(Pn,pt,De,"_","\\textunderscore"),W(tt,pt,De,"\u2220","\\angle",!0),W(tt,pt,De,"\u221E","\\infty",!0),W(tt,pt,De,"\u2032","\\prime"),W(tt,pt,De,"\u25B3","\\triangle"),W(tt,pt,De,"\u0393","\\Gamma",!0),W(tt,pt,De,"\u0394","\\Delta",!0),W(tt,pt,De,"\u0398","\\Theta",!0),W(tt,pt,De,"\u039B","\\Lambda",!0),W(tt,pt,De,"\u039E","\\Xi",!0),W(tt,pt,De,"\u03A0","\\Pi",!0),W(tt,pt,De,"\u03A3","\\Sigma",!0),W(tt,pt,De,"\u03A5","\\Upsilon",!0),W(tt,pt,De,"\u03A6","\\Phi",!0),W(tt,pt,De,"\u03A8","\\Psi",!0),W(tt,pt,De,"\u03A9","\\Omega",!0),W(tt,pt,De,"A","\u0391"),W(tt,pt,De,"B","\u0392"),W(tt,pt,De,"E","\u0395"),W(tt,pt,De,"Z","\u0396"),W(tt,pt,De,"H","\u0397"),W(tt,pt,De,"I","\u0399"),W(tt,pt,De,"K","\u039A"),W(tt,pt,De,"M","\u039C"),W(tt,pt,De,"N","\u039D"),W(tt,pt,De,"O","\u039F"),W(tt,pt,De,"P","\u03A1"),W(tt,pt,De,"T","\u03A4"),W(tt,pt,De,"X","\u03A7"),W(tt,pt,De,"\xAC","\\neg",!0),W(tt,pt,De,"\xAC","\\lnot"),W(tt,pt,De,"\u22A4","\\top"),W(tt,pt,De,"\u22A5","\\bot"),W(tt,pt,De,"\u2205","\\emptyset"),W(tt,$,De,"\u2205","\\varnothing"),W(tt,pt,Ui,"\u03B1","\\alpha",!0),W(tt,pt,Ui,"\u03B2","\\beta",!0),W(tt,pt,Ui,"\u03B3","\\gamma",!0),W(tt,pt,Ui,"\u03B4","\\delta",!0),W(tt,pt,Ui,"\u03F5","\\epsilon",!0),W(tt,pt,Ui,"\u03B6","\\zeta",!0),W(tt,pt,Ui,"\u03B7","\\eta",!0),W(tt,pt,Ui,"\u03B8","\\theta",!0),W(tt,pt,Ui,"\u03B9","\\iota",!0),W(tt,pt,Ui,"\u03BA","\\kappa",!0),W(tt,pt,Ui,"\u03BB","\\lambda",!0),W(tt,pt,Ui,"\u03BC","\\mu",!0),W(tt,pt,Ui,"\u03BD","\\nu",!0),W(tt,pt,Ui,"\u03BE","\\xi",!0),W(tt,pt,Ui,"\u03BF","\\omicron",!0),W(tt,pt,Ui,"\u03C0","\\pi",!0),W(tt,pt,Ui,"\u03C1","\\rho",!0),W(tt,pt,Ui,"\u03C3","\\sigma",!0),W(tt,pt,Ui,"\u03C4","\\tau",!0),W(tt,pt,Ui,"\u03C5","\\upsilon",!0),W(tt,pt,Ui,"\u03D5","\\phi",!0),W(tt,pt,Ui,"\u03C7","\\chi",!0),W(tt,pt,Ui,"\u03C8","\\psi",!0),W(tt,pt,Ui,"\u03C9","\\omega",!0),W(tt,pt,Ui,"\u03B5","\\varepsilon",!0),W(tt,pt,Ui,"\u03D1","\\vartheta",!0),W(tt,pt,Ui,"\u03D6","\\varpi",!0),W(tt,pt,Ui,"\u03F1","\\varrho",!0),W(tt,pt,Ui,"\u03C2","\\varsigma",!0),W(tt,pt,Ui,"\u03C6","\\varphi",!0),W(tt,pt,bi,"\u2217","*",!0),W(tt,pt,bi,"+","+"),W(tt,pt,bi,"\u2212","-",!0),W(tt,pt,bi,"\u22C5","\\cdot",!0),W(tt,pt,bi,"\u2218","\\circ",!0),W(tt,pt,bi,"\xF7","\\div",!0),W(tt,pt,bi,"\xB1","\\pm",!0),W(tt,pt,bi,"\xD7","\\times",!0),W(tt,pt,bi,"\u2229","\\cap",!0),W(tt,pt,bi,"\u222A","\\cup",!0),W(tt,pt,bi,"\u2216","\\setminus",!0),W(tt,pt,bi,"\u2227","\\land"),W(tt,pt,bi,"\u2228","\\lor"),W(tt,pt,bi,"\u2227","\\wedge",!0),W(tt,pt,bi,"\u2228","\\vee",!0),W(tt,pt,De,"\u221A","\\surd"),W(tt,pt,$i,"\u27E8","\\langle",!0),W(tt,pt,$i,"\u2223","\\lvert"),W(tt,pt,$i,"\u2225","\\lVert"),W(tt,pt,qi,"?","?"),W(tt,pt,qi,"!","!"),W(tt,pt,qi,"\u27E9","\\rangle",!0),W(tt,pt,qi,"\u2223","\\rvert"),W(tt,pt,qi,"\u2225","\\rVert"),W(tt,pt,se,"=","="),W(tt,pt,se,":",":"),W(tt,pt,se,"\u2248","\\approx",!0),W(tt,pt,se,"\u2245","\\cong",!0),W(tt,pt,se,"\u2265","\\ge"),W(tt,pt,se,"\u2265","\\geq",!0),W(tt,pt,se,"\u2190","\\gets"),W(tt,pt,se,">","\\gt",!0),W(tt,pt,se,"\u2208","\\in",!0),W(tt,pt,se,"\uE020","\\@not"),W(tt,pt,se,"\u2282","\\subset",!0),W(tt,pt,se,"\u2283","\\supset",!0),W(tt,pt,se,"\u2286","\\subseteq",!0),W(tt,pt,se,"\u2287","\\supseteq",!0),W(tt,$,se,"\u2288","\\nsubseteq",!0),W(tt,$,se,"\u2289","\\nsupseteq",!0),W(tt,pt,se,"\u22A8","\\models"),W(tt,pt,se,"\u2190","\\leftarrow",!0),W(tt,pt,se,"\u2264","\\le"),W(tt,pt,se,"\u2264","\\leq",!0),W(tt,pt,se,"<","\\lt",!0),W(tt,pt,se,"\u2192","\\rightarrow",!0),W(tt,pt,se,"\u2192","\\to"),W(tt,$,se,"\u2271","\\ngeq",!0),W(tt,$,se,"\u2270","\\nleq",!0),W(tt,pt,kr,"\xA0","\\ "),W(tt,pt,kr,"\xA0","\\space"),W(tt,pt,kr,"\xA0","\\nobreakspace"),W(Pn,pt,kr,"\xA0","\\ "),W(Pn,pt,kr,"\xA0"," "),W(Pn,pt,kr,"\xA0","\\space"),W(Pn,pt,kr,"\xA0","\\nobreakspace"),W(tt,pt,kr,null,"\\nobreak"),W(tt,pt,kr,null,"\\allowbreak"),W(tt,pt,Vi,",",","),W(tt,pt,Vi,";",";"),W(tt,$,bi,"\u22BC","\\barwedge",!0),W(tt,$,bi,"\u22BB","\\veebar",!0),W(tt,pt,bi,"\u2299","\\odot",!0),W(tt,pt,bi,"\u2295","\\oplus",!0),W(tt,pt,bi,"\u2297","\\otimes",!0),W(tt,pt,De,"\u2202","\\partial",!0),W(tt,pt,bi,"\u2298","\\oslash",!0),W(tt,$,bi,"\u229A","\\circledcirc",!0),W(tt,$,bi,"\u22A1","\\boxdot",!0),W(tt,pt,bi,"\u25B3","\\bigtriangleup"),W(tt,pt,bi,"\u25BD","\\bigtriangledown"),W(tt,pt,bi,"\u2020","\\dagger"),W(tt,pt,bi,"\u22C4","\\diamond"),W(tt,pt,bi,"\u22C6","\\star"),W(tt,pt,bi,"\u25C3","\\triangleleft"),W(tt,pt,bi,"\u25B9","\\triangleright"),W(tt,pt,$i,"{","\\{"),W(Pn,pt,De,"{","\\{"),W(Pn,pt,De,"{","\\textbraceleft"),W(tt,pt,qi,"}","\\}"),W(Pn,pt,De,"}","\\}"),W(Pn,pt,De,"}","\\textbraceright"),W(tt,pt,$i,"{","\\lbrace"),W(tt,pt,qi,"}","\\rbrace"),W(tt,pt,$i,"[","\\lbrack",!0),W(Pn,pt,De,"[","\\lbrack",!0),W(tt,pt,qi,"]","\\rbrack",!0),W(Pn,pt,De,"]","\\rbrack",!0),W(tt,pt,$i,"(","\\lparen",!0),W(tt,pt,qi,")","\\rparen",!0),W(Pn,pt,De,"<","\\textless",!0),W(Pn,pt,De,">","\\textgreater",!0),W(tt,pt,$i,"\u230A","\\lfloor",!0),W(tt,pt,qi,"\u230B","\\rfloor",!0),W(tt,pt,$i,"\u2308","\\lceil",!0),W(tt,pt,qi,"\u2309","\\rceil",!0),W(tt,pt,De,"\\","\\backslash"),W(tt,pt,De,"\u2223","|"),W(tt,pt,De,"\u2223","\\vert"),W(Pn,pt,De,"|","\\textbar",!0),W(tt,pt,De,"\u2225","\\|"),W(tt,pt,De,"\u2225","\\Vert"),W(Pn,pt,De,"\u2225","\\textbardbl"),W(Pn,pt,De,"~","\\textasciitilde"),W(Pn,pt,De,"\\","\\textbackslash"),W(Pn,pt,De,"^","\\textasciicircum"),W(tt,pt,se,"\u2191","\\uparrow",!0),W(tt,pt,se,"\u21D1","\\Uparrow",!0),W(tt,pt,se,"\u2193","\\downarrow",!0),W(tt,pt,se,"\u21D3","\\Downarrow",!0),W(tt,pt,se,"\u2195","\\updownarrow",!0),W(tt,pt,se,"\u21D5","\\Updownarrow",!0),W(tt,pt,Xr,"\u2210","\\coprod"),W(tt,pt,Xr,"\u22C1","\\bigvee"),W(tt,pt,Xr,"\u22C0","\\bigwedge"),W(tt,pt,Xr,"\u2A04","\\biguplus"),W(tt,pt,Xr,"\u22C2","\\bigcap"),W(tt,pt,Xr,"\u22C3","\\bigcup"),W(tt,pt,Xr,"\u222B","\\int"),W(tt,pt,Xr,"\u222B","\\intop"),W(tt,pt,Xr,"\u222C","\\iint"),W(tt,pt,Xr,"\u222D","\\iiint"),W(tt,pt,Xr,"\u220F","\\prod"),W(tt,pt,Xr,"\u2211","\\sum"),W(tt,pt,Xr,"\u2A02","\\bigotimes"),W(tt,pt,Xr,"\u2A01","\\bigoplus"),W(tt,pt,Xr,"\u2A00","\\bigodot"),W(tt,pt,Xr,"\u222E","\\oint"),W(tt,pt,Xr,"\u222F","\\oiint"),W(tt,pt,Xr,"\u2230","\\oiiint"),W(tt,pt,Xr,"\u2A06","\\bigsqcup"),W(tt,pt,Xr,"\u222B","\\smallint"),W(Pn,pt,go,"\u2026","\\textellipsis"),W(tt,pt,go,"\u2026","\\mathellipsis"),W(Pn,pt,go,"\u2026","\\ldots",!0),W(tt,pt,go,"\u2026","\\ldots",!0),W(tt,pt,go,"\u22EF","\\@cdots",!0),W(tt,pt,go,"\u22F1","\\ddots",!0),W(tt,pt,De,"\u22EE","\\varvdots"),W(Pn,pt,De,"\u22EE","\\varvdots"),W(tt,pt,Wi,"\u02CA","\\acute"),W(tt,pt,Wi,"\u02CB","\\grave"),W(tt,pt,Wi,"\xA8","\\ddot"),W(tt,pt,Wi,"~","\\tilde"),W(tt,pt,Wi,"\u02C9","\\bar"),W(tt,pt,Wi,"\u02D8","\\breve"),W(tt,pt,Wi,"\u02C7","\\check"),W(tt,pt,Wi,"^","\\hat"),W(tt,pt,Wi,"\u20D7","\\vec"),W(tt,pt,Wi,"\u02D9","\\dot"),W(tt,pt,Wi,"\u02DA","\\mathring"),W(tt,pt,Ui,"\uE131","\\@imath"),W(tt,pt,Ui,"\uE237","\\@jmath"),W(tt,pt,De,"\u0131","\u0131"),W(tt,pt,De,"\u0237","\u0237"),W(Pn,pt,De,"\u0131","\\i",!0),W(Pn,pt,De,"\u0237","\\j",!0),W(Pn,pt,De,"\xDF","\\ss",!0),W(Pn,pt,De,"\xE6","\\ae",!0),W(Pn,pt,De,"\u0153","\\oe",!0),W(Pn,pt,De,"\xF8","\\o",!0),W(Pn,pt,De,"\xC6","\\AE",!0),W(Pn,pt,De,"\u0152","\\OE",!0),W(Pn,pt,De,"\xD8","\\O",!0),W(Pn,pt,Wi,"\u02CA","\\'"),W(Pn,pt,Wi,"\u02CB","\\`"),W(Pn,pt,Wi,"\u02C6","\\^"),W(Pn,pt,Wi,"\u02DC","\\~"),W(Pn,pt,Wi,"\u02C9","\\="),W(Pn,pt,Wi,"\u02D8","\\u"),W(Pn,pt,Wi,"\u02D9","\\."),W(Pn,pt,Wi,"\xB8","\\c"),W(Pn,pt,Wi,"\u02DA","\\r"),W(Pn,pt,Wi,"\u02C7","\\v"),W(Pn,pt,Wi,"\xA8",'\\"'),W(Pn,pt,Wi,"\u02DD","\\H"),W(Pn,pt,Wi,"\u25EF","\\textcircled");var Wo={"--":!0,"---":!0,"``":!0,"''":!0};W(Pn,pt,De,"\u2013","--",!0),W(Pn,pt,De,"\u2013","\\textendash"),W(Pn,pt,De,"\u2014","---",!0),W(Pn,pt,De,"\u2014","\\textemdash"),W(Pn,pt,De,"\u2018","`",!0),W(Pn,pt,De,"\u2018","\\textquoteleft"),W(Pn,pt,De,"\u2019","'",!0),W(Pn,pt,De,"\u2019","\\textquoteright"),W(Pn,pt,De,"\u201C","``",!0),W(Pn,pt,De,"\u201C","\\textquotedblleft"),W(Pn,pt,De,"\u201D","''",!0),W(Pn,pt,De,"\u201D","\\textquotedblright"),W(tt,pt,De,"\xB0","\\degree",!0),W(Pn,pt,De,"\xB0","\\degree"),W(Pn,pt,De,"\xB0","\\textdegree",!0),W(tt,pt,De,"\xA3","\\pounds"),W(tt,pt,De,"\xA3","\\mathsterling",!0),W(Pn,pt,De,"\xA3","\\pounds"),W(Pn,pt,De,"\xA3","\\textsterling",!0),W(tt,$,De,"\u2720","\\maltese"),W(Pn,$,De,"\u2720","\\maltese");for(var ls='0123456789/@."',ni=0;ni<ls.length;ni++){var Ps=ls.charAt(ni);W(tt,pt,De,Ps,Ps)}for(var Is='0123456789!@*()-=+";:?/.,',Js=0;Js<Is.length;Js++){var Us=Is.charAt(Js);W(Pn,pt,De,Us,Us)}for(var oa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Qa=0;Qa<oa.length;Qa++){var da=oa.charAt(Qa);W(tt,pt,Ui,da,da),W(Pn,pt,De,da,da)}W(tt,$,De,"C","\u2102"),W(Pn,$,De,"C","\u2102"),W(tt,$,De,"H","\u210D"),W(Pn,$,De,"H","\u210D"),W(tt,$,De,"N","\u2115"),W(Pn,$,De,"N","\u2115"),W(tt,$,De,"P","\u2119"),W(Pn,$,De,"P","\u2119"),W(tt,$,De,"Q","\u211A"),W(Pn,$,De,"Q","\u211A"),W(tt,$,De,"R","\u211D"),W(Pn,$,De,"R","\u211D"),W(tt,$,De,"Z","\u2124"),W(Pn,$,De,"Z","\u2124"),W(tt,pt,Ui,"h","\u210E"),W(Pn,pt,Ui,"h","\u210E");for(var Jr="",vs=0;vs<oa.length;vs++){var es=oa.charAt(vs);Jr=String.fromCharCode(55349,56320+vs),W(tt,pt,Ui,es,Jr),W(Pn,pt,De,es,Jr),Jr=String.fromCharCode(55349,56372+vs),W(tt,pt,Ui,es,Jr),W(Pn,pt,De,es,Jr),Jr=String.fromCharCode(55349,56424+vs),W(tt,pt,Ui,es,Jr),W(Pn,pt,De,es,Jr),Jr=String.fromCharCode(55349,56580+vs),W(tt,pt,Ui,es,Jr),W(Pn,pt,De,es,Jr),Jr=String.fromCharCode(55349,56684+vs),W(tt,pt,Ui,es,Jr),W(Pn,pt,De,es,Jr),Jr=String.fromCharCode(55349,56736+vs),W(tt,pt,Ui,es,Jr),W(Pn,pt,De,es,Jr),Jr=String.fromCharCode(55349,56788+vs),W(tt,pt,Ui,es,Jr),W(Pn,pt,De,es,Jr),Jr=String.fromCharCode(55349,56840+vs),W(tt,pt,Ui,es,Jr),W(Pn,pt,De,es,Jr),Jr=String.fromCharCode(55349,56944+vs),W(tt,pt,Ui,es,Jr),W(Pn,pt,De,es,Jr),vs<26&&(Jr=String.fromCharCode(55349,56632+vs),W(tt,pt,Ui,es,Jr),W(Pn,pt,De,es,Jr),Jr=String.fromCharCode(55349,56476+vs),W(tt,pt,Ui,es,Jr),W(Pn,pt,De,es,Jr))}Jr="\u{1D55C}",W(tt,pt,Ui,"k",Jr),W(Pn,pt,De,"k",Jr);for(var ke=0;ke<10;ke++){var ys=ke.toString();Jr=String.fromCharCode(55349,57294+ke),W(tt,pt,Ui,ys,Jr),W(Pn,pt,De,ys,Jr),Jr=String.fromCharCode(55349,57314+ke),W(tt,pt,Ui,ys,Jr),W(Pn,pt,De,ys,Jr),Jr=String.fromCharCode(55349,57324+ke),W(tt,pt,Ui,ys,Jr),W(Pn,pt,De,ys,Jr),Jr=String.fromCharCode(55349,57334+ke),W(tt,pt,Ui,ys,Jr),W(Pn,pt,De,ys,Jr)}for(var Su="\xD0\xDE\xFE",Dl=0;Dl<Su.length;Dl++){var lo=Su.charAt(Dl);W(tt,pt,Ui,lo,lo),W(Pn,pt,De,lo,lo)}var Fo=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],ws=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Ko=function(f,x){var A=f.charCodeAt(0),H=f.charCodeAt(1),J=(A-55296)*1024+(H-56320)+65536,Et=x==="math"?0:1;if(119808<=J&&J<120484){var Zt=Math.floor((J-119808)/26);return[Fo[Zt][2],Fo[Zt][Et]]}else if(120782<=J&&J<=120831){var Xt=Math.floor((J-120782)/10);return[ws[Xt][2],ws[Xt][Et]]}else{if(J===120485||J===120486)return[Fo[0][2],Fo[0][Et]];if(120486<J&&J<120782)return["",""];throw new Dt("Unsupported character: "+f)}},Ur=function(f,x,A){return ai[A][f]&&ai[A][f].replace&&(f=ai[A][f].replace),{value:f,metrics:He(f,x,A)}},uo=function(f,x,A,H,J){var Et=Ur(f,x,A),Zt=Et.metrics;f=Et.value;var Xt;if(Zt){var Be=Zt.italic;(A==="text"||H&&H.font==="mathit")&&(Be=0),Xt=new Re(f,Zt.height,Zt.depth,Be,Zt.skew,Zt.width,J)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+f+"' in style '"+x+"' and mode '"+A+"'")),Xt=new Re(f,0,0,0,0,0,J);if(H){Xt.maxFontSize=H.sizeMultiplier,H.style.isTight()&&Xt.classes.push("mtight");var un=H.getColor();un&&(Xt.style.color=un)}return Xt},Pa=function(f,x,A,H){return H===void 0&&(H=[]),A.font==="boldsymbol"&&Ur(f,"Main-Bold",x).metrics?uo(f,"Main-Bold",x,A,H.concat(["mathbf"])):f==="\\"||ai[x][f].font==="main"?uo(f,"Main-Regular",x,A,H):uo(f,"AMS-Regular",x,A,H.concat(["amsrm"]))},br=function(f,x,A,H,J){return J!=="textord"&&Ur(f,"Math-BoldItalic",x).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},io=function(f,x,A){var H=f.mode,J=f.text,Et=["mord"],Zt=H==="math"||H==="text"&&x.font,Xt=Zt?x.font:x.fontFamily,Be="",un="";if(J.charCodeAt(0)===55349&&([Be,un]=Ko(J,H)),Be.length>0)return uo(J,Be,H,x,Et.concat(un));if(Xt){var Dn,Qn;if(Xt==="boldsymbol"){var si=br(J,H,x,Et,A);Dn=si.fontName,Qn=[si.fontClass]}else Zt?(Dn=Sr[Xt].fontName,Qn=[Xt]):(Dn=Fa(Xt,x.fontWeight,x.fontShape),Qn=[Xt,x.fontWeight,x.fontShape]);if(Ur(J,Dn,H).metrics)return uo(J,Dn,H,x,Et.concat(Qn));if(Wo.hasOwnProperty(J)&&Dn.slice(0,10)==="Typewriter"){for(var Yi=[],Xi=0;Xi<J.length;Xi++)Yi.push(uo(J[Xi],Dn,H,x,Et.concat(Qn)));return Wn(Yi)}}if(A==="mathord")return uo(J,"Math-Italic",H,x,Et.concat(["mathnormal"]));if(A==="textord"){var Ar=ai[H][J]&&ai[H][J].font;if(Ar==="ams"){var Pr=Fa("amsrm",x.fontWeight,x.fontShape);return uo(J,Pr,H,x,Et.concat("amsrm",x.fontWeight,x.fontShape))}else if(Ar==="main"||!Ar){var ko=Fa("textrm",x.fontWeight,x.fontShape);return uo(J,ko,H,x,Et.concat(x.fontWeight,x.fontShape))}else{var Ao=Fa(Ar,x.fontWeight,x.fontShape);return uo(J,Ao,H,x,Et.concat(Ao,x.fontWeight,x.fontShape))}}else throw new Error("unexpected type: "+A+" in makeOrd")},eo=(C,f)=>{if(mr(C.classes)!==mr(f.classes)||C.skew!==f.skew||C.maxFontSize!==f.maxFontSize)return!1;if(C.classes.length===1){var x=C.classes[0];if(x==="mbin"||x==="mord")return!1}for(var A in C.style)if(C.style.hasOwnProperty(A)&&C.style[A]!==f.style[A])return!1;for(var H in f.style)if(f.style.hasOwnProperty(H)&&C.style[H]!==f.style[H])return!1;return!0},ri=C=>{for(var f=0;f<C.length-1;f++){var x=C[f],A=C[f+1];x instanceof Re&&A instanceof Re&&eo(x,A)&&(x.text+=A.text,x.height=Math.max(x.height,A.height),x.depth=Math.max(x.depth,A.depth),x.italic=A.italic,C.splice(f+1,1),f--)}return C},Cs=function(f){for(var x=0,A=0,H=0,J=0;J<f.children.length;J++){var Et=f.children[J];Et.height>x&&(x=Et.height),Et.depth>A&&(A=Et.depth),Et.maxFontSize>H&&(H=Et.maxFontSize)}f.height=x,f.depth=A,f.maxFontSize=H},Zo=function(f,x,A,H){var J=new Er(f,x,A,H);return Cs(J),J},ga=(C,f,x,A)=>new Er(C,f,x,A),sl=function(f,x,A){var H=Zo([f],[],x);return H.height=Math.max(A||x.fontMetrics().defaultRuleThickness,x.minRuleThickness),H.style.borderBottomWidth=le(H.height),H.maxFontSize=1,H},Cl=function(f,x,A,H){var J=new Pi(f,x,A,H);return Cs(J),J},Wn=function(f){var x=new hi(f);return Cs(x),x},us=function(f,x){return f instanceof hi?Zo([],[f],x):f},Fs=function(f){if(f.positionType==="individualShift"){for(var x=f.children,A=[x[0]],H=-x[0].shift-x[0].elem.depth,J=H,Et=1;Et<x.length;Et++){var Zt=-x[Et].shift-J-x[Et].elem.depth,Xt=Zt-(x[Et-1].elem.height+x[Et-1].elem.depth);J=J+Zt,A.push({type:"kern",size:Xt}),A.push(x[Et])}return{children:A,depth:H}}var Be;if(f.positionType==="top"){for(var un=f.positionData,Dn=0;Dn<f.children.length;Dn++){var Qn=f.children[Dn];un-=Qn.type==="kern"?Qn.size:Qn.elem.height+Qn.elem.depth}Be=un}else if(f.positionType==="bottom")Be=-f.positionData;else{var si=f.children[0];if(si.type!=="elem")throw new Error('First child must have type "elem".');if(f.positionType==="shift")Be=-si.elem.depth-f.positionData;else if(f.positionType==="firstBaseline")Be=-si.elem.depth;else throw new Error("Invalid positionType "+f.positionType+".")}return{children:f.children,depth:Be}},qa=function(f,x){for(var{children:A,depth:H}=Fs(f),J=0,Et=0;Et<A.length;Et++){var Zt=A[Et];if(Zt.type==="elem"){var Xt=Zt.elem;J=Math.max(J,Xt.maxFontSize,Xt.height)}}J+=2;var Be=Zo(["pstrut"],[]);Be.style.height=le(J);for(var un=[],Dn=H,Qn=H,si=H,Yi=0;Yi<A.length;Yi++){var Xi=A[Yi];if(Xi.type==="kern")si+=Xi.size;else{var Ar=Xi.elem,Pr=Xi.wrapperClasses||[],ko=Xi.wrapperStyle||{},Ao=Zo(Pr,[Be,Ar],void 0,ko);Ao.style.top=le(-J-si-Ar.depth),Xi.marginLeft&&(Ao.style.marginLeft=Xi.marginLeft),Xi.marginRight&&(Ao.style.marginRight=Xi.marginRight),un.push(Ao),si+=Ar.height+Ar.depth}Dn=Math.min(Dn,si),Qn=Math.max(Qn,si)}var jo=Zo(["vlist"],un);jo.style.height=le(Qn);var ns;if(Dn<0){var So=Zo([],[]),Fr=Zo(["vlist"],[So]);Fr.style.height=le(-Dn);var wo=Zo(["vlist-s"],[new Re("\u200B")]);ns=[Zo(["vlist-r"],[jo,wo]),Zo(["vlist-r"],[Fr])]}else ns=[Zo(["vlist-r"],[jo])];var Go=Zo(["vlist-t"],ns);return ns.length===2&&Go.classes.push("vlist-t2"),Go.height=Qn,Go.depth=-Dn,Go},al=(C,f)=>{var x=Zo(["mspace"],[],f),A=Mi(C,f);return x.style.marginRight=le(A),x},Fa=function(f,x,A){var H="";switch(f){case"amsrm":H="AMS";break;case"textrm":H="Main";break;case"textsf":H="SansSerif";break;case"texttt":H="Typewriter";break;default:H=f}var J;return x==="textbf"&&A==="textit"?J="BoldItalic":x==="textbf"?J="Bold":x==="textit"?J="Italic":J="Regular",H+"-"+J},Sr={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},iu={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Ba=function(f,x){var[A,H,J]=iu[f],Et=new je(A),Zt=new Rr([Et],{width:le(H),height:le(J),style:"width:"+le(H),viewBox:"0 0 "+1e3*H+" "+1e3*J,preserveAspectRatio:"xMinYMin"}),Xt=ga(["overlay"],[Zt],x);return Xt.height=J,Xt.style.height=le(J),Xt.style.width=le(H),Xt},Ln={fontMap:Sr,makeSymbol:uo,mathsym:Pa,makeSpan:Zo,makeSvgSpan:ga,makeLineSpan:sl,makeAnchor:Cl,makeFragment:Wn,wrapFragment:us,makeVList:qa,makeOrd:io,makeGlue:al,staticSvg:Ba,svgData:iu,tryCombineChars:ri},Jo={number:3,unit:"mu"},za={number:4,unit:"mu"},Aa={number:5,unit:"mu"},ka={mord:{mop:Jo,mbin:za,mrel:Aa,minner:Jo},mop:{mord:Jo,mop:Jo,mrel:Aa,minner:Jo},mbin:{mord:za,mop:za,mopen:za,minner:za},mrel:{mord:Aa,mop:Aa,mopen:Aa,minner:Aa},mopen:{},mclose:{mop:Jo,mbin:za,mrel:Aa,minner:Jo},mpunct:{mord:Jo,mop:Jo,mrel:Aa,mopen:Jo,mclose:Jo,mpunct:Jo,minner:Jo},minner:{mord:Jo,mop:Jo,mbin:za,mrel:Aa,mopen:Jo,mpunct:Jo,minner:Jo}},_a={mord:{mop:Jo},mop:{mord:Jo,mop:Jo},mbin:{},mrel:{},mopen:{},mclose:{mop:Jo},mpunct:{},minner:{mop:Jo}},Fu={},Ha={},Vl={};function vr(C){for(var{type:f,names:x,props:A,handler:H,htmlBuilder:J,mathmlBuilder:Et}=C,Zt={type:f,numArgs:A.numArgs,argTypes:A.argTypes,allowedInArgument:!!A.allowedInArgument,allowedInText:!!A.allowedInText,allowedInMath:A.allowedInMath===void 0?!0:A.allowedInMath,numOptionalArgs:A.numOptionalArgs||0,infix:!!A.infix,primitive:!!A.primitive,handler:H},Xt=0;Xt<x.length;++Xt)Fu[x[Xt]]=Zt;f&&(J&&(Ha[f]=J),Et&&(Vl[f]=Et))}function ll(C){var{type:f,htmlBuilder:x,mathmlBuilder:A}=C;vr({type:f,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:x,mathmlBuilder:A})}var Kl=function(f){return f.type==="ordgroup"&&f.body.length===1?f.body[0]:f},Es=function(f){return f.type==="ordgroup"?f.body:[f]},Qs=Ln.makeSpan,ru=["leftmost","mbin","mopen","mrel","mop","mpunct"],ou=["rightmost","mrel","mclose","mpunct"],su={display:Ei.DISPLAY,text:Ei.TEXT,script:Ei.SCRIPT,scriptscript:Ei.SCRIPTSCRIPT},_r={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Wr=function(f,x,A,H){H===void 0&&(H=[null,null]);for(var J=[],Et=0;Et<f.length;Et++){var Zt=qr(f[Et],x);if(Zt instanceof hi){var Xt=Zt.children;J.push(...Xt)}else J.push(Zt)}if(Ln.tryCombineChars(J),!A)return J;var Be=x;if(f.length===1){var un=f[0];un.type==="sizing"?Be=x.havingSize(un.size):un.type==="styling"&&(Be=x.havingStyle(su[un.style]))}var Dn=Qs([H[0]||"leftmost"],[],x),Qn=Qs([H[1]||"rightmost"],[],x),si=A==="root";return sa(J,(Yi,Xi)=>{var Ar=Xi.classes[0],Pr=Yi.classes[0];Ar==="mbin"&&Ne.contains(ou,Pr)?Xi.classes[0]="mord":Pr==="mbin"&&Ne.contains(ru,Ar)&&(Yi.classes[0]="mord")},{node:Dn},Qn,si),sa(J,(Yi,Xi)=>{var Ar=os(Xi),Pr=os(Yi),ko=Ar&&Pr?Yi.hasClass("mtight")?_a[Ar][Pr]:ka[Ar][Pr]:null;if(ko)return Ln.makeGlue(ko,Be)},{node:Dn},Qn,si),J},sa=function C(f,x,A,H,J){H&&f.push(H);for(var Et=0;Et<f.length;Et++){var Zt=f[Et],Xt=Os(Zt);if(Xt){C(Xt.children,x,A,null,J);continue}var Be=!Zt.hasClass("mspace");if(Be){var un=x(Zt,A.node);un&&(A.insertAfter?A.insertAfter(un):(f.unshift(un),Et++))}Be?A.node=Zt:J&&Zt.hasClass("newline")&&(A.node=Qs(["leftmost"])),A.insertAfter=(Dn=>Qn=>{f.splice(Dn+1,0,Qn),Et++})(Et)}H&&f.pop()},Os=function(f){return f instanceof hi||f instanceof Pi||f instanceof Er&&f.hasClass("enclosing")?f:null},As=function C(f,x){var A=Os(f);if(A){var H=A.children;if(H.length){if(x==="right")return C(H[H.length-1],"right");if(x==="left")return C(H[0],"left")}}return f},os=function(f,x){return f?(x&&(f=As(f,x)),_r[f.classes[0]]||null):null},cs=function(f,x){var A=["nulldelimiter"].concat(f.baseSizingClasses());return Qs(x.concat(A))},qr=function(f,x,A){if(!f)return Qs();if(Ha[f.type]){var H=Ha[f.type](f,x);if(A&&x.size!==A.size){H=Qs(x.sizingClasses(A),[H],x);var J=x.sizeMultiplier/A.sizeMultiplier;H.height*=J,H.depth*=J}return H}else throw new Dt("Got group of unknown type: '"+f.type+"'")};function is(C,f){var x=Qs(["base"],C,f),A=Qs(["strut"]);return A.style.height=le(x.height+x.depth),x.depth&&(A.style.verticalAlign=le(-x.depth)),x.children.unshift(A),x}function Pl(C,f){var x=null;C.length===1&&C[0].type==="tag"&&(x=C[0].tag,C=C[0].body);var A=Wr(C,f,"root"),H;A.length===2&&A[1].hasClass("tag")&&(H=A.pop());for(var J=[],Et=[],Zt=0;Zt<A.length;Zt++)if(Et.push(A[Zt]),A[Zt].hasClass("mbin")||A[Zt].hasClass("mrel")||A[Zt].hasClass("allowbreak")){for(var Xt=!1;Zt<A.length-1&&A[Zt+1].hasClass("mspace")&&!A[Zt+1].hasClass("newline");)Zt++,Et.push(A[Zt]),A[Zt].hasClass("nobreak")&&(Xt=!0);Xt||(J.push(is(Et,f)),Et=[])}else A[Zt].hasClass("newline")&&(Et.pop(),Et.length>0&&(J.push(is(Et,f)),Et=[]),J.push(A[Zt]));Et.length>0&&J.push(is(Et,f));var Be;x?(Be=is(Wr(x,f,!0)),Be.classes=["tag"],J.push(Be)):H&&J.push(H);var un=Qs(["katex-html"],J);if(un.setAttribute("aria-hidden","true"),Be){var Dn=Be.children[0];Dn.style.height=le(un.height+un.depth),un.depth&&(Dn.style.verticalAlign=le(-un.depth))}return un}function tl(C){return new hi(C)}class Lo{constructor(f,x,A){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=f,this.attributes={},this.children=x||[],this.classes=A||[]}setAttribute(f,x){this.attributes[f]=x}getAttribute(f){return this.attributes[f]}toNode(){var f=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var x in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,x)&&f.setAttribute(x,this.attributes[x]);this.classes.length>0&&(f.className=mr(this.classes));for(var A=0;A<this.children.length;A++)if(this.children[A]instanceof Ga&&this.children[A+1]instanceof Ga){for(var H=this.children[A].toText()+this.children[++A].toText();this.children[A+1]instanceof Ga;)H+=this.children[++A].toText();f.appendChild(new Ga(H).toNode())}else f.appendChild(this.children[A].toNode());return f}toMarkup(){var f="<"+this.type;for(var x in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,x)&&(f+=" "+x+'="',f+=Ne.escape(this.attributes[x]),f+='"');this.classes.length>0&&(f+=' class ="'+Ne.escape(mr(this.classes))+'"'),f+=">";for(var A=0;A<this.children.length;A++)f+=this.children[A].toMarkup();return f+="</"+this.type+">",f}toText(){return this.children.map(f=>f.toText()).join("")}}class Ga{constructor(f){this.text=void 0,this.text=f}toNode(){return document.createTextNode(this.text)}toMarkup(){return Ne.escape(this.toText())}toText(){return this.text}}class Rc{constructor(f){this.width=void 0,this.character=void 0,this.width=f,f>=.05555&&f<=.05556?this.character="\u200A":f>=.1666&&f<=.1667?this.character="\u2009":f>=.2222&&f<=.2223?this.character="\u2005":f>=.2777&&f<=.2778?this.character="\u2005\u200A":f>=-.05556&&f<=-.05555?this.character="\u200A\u2063":f>=-.1667&&f<=-.1666?this.character="\u2009\u2063":f>=-.2223&&f<=-.2222?this.character="\u205F\u2063":f>=-.2778&&f<=-.2777?this.character="\u2005\u2063":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var f=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return f.setAttribute("width",le(this.width)),f}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+le(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var Ii={MathNode:Lo,TextNode:Ga,SpaceNode:Rc,newDocumentFragment:tl},Ti=function(f,x,A){return ai[x][f]&&ai[x][f].replace&&f.charCodeAt(0)!==55349&&!(Wo.hasOwnProperty(f)&&A&&(A.fontFamily&&A.fontFamily.slice(4,6)==="tt"||A.font&&A.font.slice(4,6)==="tt"))&&(f=ai[x][f].replace),new Ii.TextNode(f)},Zu=function(f){return f.length===1?f[0]:new Ii.MathNode("mrow",f)},Vt=function(f,x){if(x.fontFamily==="texttt")return"monospace";if(x.fontFamily==="textsf")return x.fontShape==="textit"&&x.fontWeight==="textbf"?"sans-serif-bold-italic":x.fontShape==="textit"?"sans-serif-italic":x.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(x.fontShape==="textit"&&x.fontWeight==="textbf")return"bold-italic";if(x.fontShape==="textit")return"italic";if(x.fontWeight==="textbf")return"bold";var A=x.font;if(!A||A==="mathnormal")return null;var H=f.mode;if(A==="mathit")return"italic";if(A==="boldsymbol")return f.type==="textord"?"bold":"bold-italic";if(A==="mathbf")return"bold";if(A==="mathbb")return"double-struck";if(A==="mathsfit")return"sans-serif-italic";if(A==="mathfrak")return"fraktur";if(A==="mathscr"||A==="mathcal")return"script";if(A==="mathsf")return"sans-serif";if(A==="mathtt")return"monospace";var J=f.text;if(Ne.contains(["\\imath","\\jmath"],J))return null;ai[H][J]&&ai[H][J].replace&&(J=ai[H][J].replace);var Et=Ln.fontMap[A].fontName;return He(J,Et,H)?Ln.fontMap[A].variant:null};function mn(C){if(!C)return!1;if(C.type==="mi"&&C.children.length===1){var f=C.children[0];return f instanceof Ga&&f.text==="."}else if(C.type==="mo"&&C.children.length===1&&C.getAttribute("separator")==="true"&&C.getAttribute("lspace")==="0em"&&C.getAttribute("rspace")==="0em"){var x=C.children[0];return x instanceof Ga&&x.text===","}else return!1}var $a=function(f,x,A){if(f.length===1){var H=ss(f[0],x);return A&&H instanceof Lo&&H.type==="mo"&&(H.setAttribute("lspace","0em"),H.setAttribute("rspace","0em")),[H]}for(var J=[],Et,Zt=0;Zt<f.length;Zt++){var Xt=ss(f[Zt],x);if(Xt instanceof Lo&&Et instanceof Lo){if(Xt.type==="mtext"&&Et.type==="mtext"&&Xt.getAttribute("mathvariant")===Et.getAttribute("mathvariant")){Et.children.push(...Xt.children);continue}else if(Xt.type==="mn"&&Et.type==="mn"){Et.children.push(...Xt.children);continue}else if(mn(Xt)&&Et.type==="mn"){Et.children.push(...Xt.children);continue}else if(Xt.type==="mn"&&mn(Et))Xt.children=[...Et.children,...Xt.children],J.pop();else if((Xt.type==="msup"||Xt.type==="msub")&&Xt.children.length>=1&&(Et.type==="mn"||mn(Et))){var Be=Xt.children[0];Be instanceof Lo&&Be.type==="mn"&&(Be.children=[...Et.children,...Be.children],J.pop())}else if(Et.type==="mi"&&Et.children.length===1){var un=Et.children[0];if(un instanceof Ga&&un.text==="\u0338"&&(Xt.type==="mo"||Xt.type==="mi"||Xt.type==="mn")){var Dn=Xt.children[0];Dn instanceof Ga&&Dn.text.length>0&&(Dn.text=Dn.text.slice(0,1)+"\u0338"+Dn.text.slice(1),J.pop())}}}J.push(Xt),Et=Xt}return J},au=function(f,x,A){return Zu($a(f,x,A))},ss=function(f,x){if(!f)return new Ii.MathNode("mrow");if(Vl[f.type]){var A=Vl[f.type](f,x);return A}else throw new Dt("Got group of unknown type: '"+f.type+"'")};function Fl(C,f,x,A,H){var J=$a(C,x),Et;J.length===1&&J[0]instanceof Lo&&Ne.contains(["mrow","mtable"],J[0].type)?Et=J[0]:Et=new Ii.MathNode("mrow",J);var Zt=new Ii.MathNode("annotation",[new Ii.TextNode(f)]);Zt.setAttribute("encoding","application/x-tex");var Xt=new Ii.MathNode("semantics",[Et,Zt]),Be=new Ii.MathNode("math",[Xt]);Be.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),A&&Be.setAttribute("display","block");var un=H?"katex":"katex-mathml";return Ln.makeSpan([un],[Be])}var lu=function(f){return new di({style:f.displayMode?Ei.DISPLAY:Ei.TEXT,maxSize:f.maxSize,minRuleThickness:f.minRuleThickness})},Sc=function(f,x){if(x.displayMode){var A=["katex-display"];x.leqno&&A.push("leqno"),x.fleqn&&A.push("fleqn"),f=Ln.makeSpan(A,[f])}return f},sc=function(f,x,A){var H=lu(A),J;if(A.output==="mathml")return Fl(f,x,H,A.displayMode,!0);if(A.output==="html"){var Et=Pl(f,H);J=Ln.makeSpan(["katex"],[Et])}else{var Zt=Fl(f,x,H,A.displayMode,!1),Xt=Pl(f,H);J=Ln.makeSpan(["katex"],[Zt,Xt])}return Sc(J,A)},Ls=function(f,x,A){var H=lu(A),J=Pl(f,H),Et=Ln.makeSpan(["katex"],[J]);return Sc(Et,A)},Lr={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},ja=function(f){var x=new Ii.MathNode("mo",[new Ii.TextNode(Lr[f.replace(/^\\/,"")])]);return x.setAttribute("stretchy","true"),x},Ma={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},xs=function(f){return f.type==="ordgroup"?f.body.length:1},xo=function(f,x){function A(){var Zt=4e5,Xt=f.label.slice(1);if(Ne.contains(["widehat","widecheck","widetilde","utilde"],Xt)){var Be=f,un=xs(Be.base),Dn,Qn,si;if(un>5)Xt==="widehat"||Xt==="widecheck"?(Dn=420,Zt=2364,si=.42,Qn=Xt+"4"):(Dn=312,Zt=2340,si=.34,Qn="tilde4");else{var Yi=[1,1,2,2,3,3][un];Xt==="widehat"||Xt==="widecheck"?(Zt=[0,1062,2364,2364,2364][Yi],Dn=[0,239,300,360,420][Yi],si=[0,.24,.3,.3,.36,.42][Yi],Qn=Xt+Yi):(Zt=[0,600,1033,2339,2340][Yi],Dn=[0,260,286,306,312][Yi],si=[0,.26,.286,.3,.306,.34][Yi],Qn="tilde"+Yi)}var Xi=new je(Qn),Ar=new Rr([Xi],{width:"100%",height:le(si),viewBox:"0 0 "+Zt+" "+Dn,preserveAspectRatio:"none"});return{span:Ln.makeSvgSpan([],[Ar],x),minWidth:0,height:si}}else{var Pr=[],ko=Ma[Xt],[Ao,jo,ns]=ko,So=ns/1e3,Fr=Ao.length,wo,Go;if(Fr===1){var Na=ko[3];wo=["hide-tail"],Go=[Na]}else if(Fr===2)wo=["halfarrow-left","halfarrow-right"],Go=["xMinYMin","xMaxYMin"];else if(Fr===3)wo=["brace-left","brace-center","brace-right"],Go=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
|
`+Fr+" children.");for(var ta=0;ta<Fr;ta++){var Sa=new je(Ao[ta]),$l=new Rr([Sa],{width:"400em",height:le(So),viewBox:"0 0 "+Zt+" "+ns,preserveAspectRatio:Go[ta]+" slice"}),Ka=Ln.makeSvgSpan([wo[ta]],[$l],x);if(Fr===1)return{span:Ka,minWidth:jo,height:So};Ka.style.height=le(So),Pr.push(Ka)}return{span:Ln.makeSpan(["stretchy"],Pr,x),minWidth:jo,height:So}}}var{span:H,minWidth:J,height:Et}=A();return H.height=Et,H.style.height=le(Et),J>0&&(H.style.minWidth=le(J)),H},ia=function(f,x,A,H,J){var Et,Zt=f.height+f.depth+A+H;if(/fbox|color|angl/.test(x)){if(Et=Ln.makeSpan(["stretchy",x],[],J),x==="fbox"){var Xt=J.color&&J.getColor();Xt&&(Et.style.borderColor=Xt)}}else{var Be=[];/^[bx]cancel$/.test(x)&&Be.push(new nr({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(x)&&Be.push(new nr({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var un=new Rr(Be,{width:"100%",height:le(Zt)});Et=Ln.makeSvgSpan([],[un],J)}return Et.height=Zt,Et.style.height=le(Zt),Et},aa={encloseSpan:ia,mathMLnode:ja,svgSpan:xo};function Tr(C,f){if(!C||C.type!==f)throw new Error("Expected node of type "+f+", but got "+(C?"node of type "+C.type:String(C)));return C}function Wa(C){var f=ra(C);if(!f)throw new Error("Expected node of symbol group type, but got "+(C?"node of type "+C.type:String(C)));return f}function ra(C){return C&&(C.type==="atom"||yo.hasOwnProperty(C.type))?C:null}var wu=(C,f)=>{var x,A,H;C&&C.type==="supsub"?(A=Tr(C.base,"accent"),x=A.base,C.base=x,H=Br(qr(C,f)),C.base=A):(A=Tr(C,"accent"),x=A.base);var J=qr(x,f.havingCrampedStyle()),Et=A.isShifty&&Ne.isCharacterBox(x),Zt=0;if(Et){var Xt=Ne.getBaseElem(x),Be=qr(Xt,f.havingCrampedStyle());Zt=Co(Be).skew}var un=A.label==="\\c",Dn=un?J.height+J.depth:Math.min(J.height,f.fontMetrics().xHeight),Qn;if(A.isStretchy)Qn=aa.svgSpan(A,f),Qn=Ln.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:J},{type:"elem",elem:Qn,wrapperClasses:["svg-align"],wrapperStyle:Zt>0?{width:"calc(100% - "+le(2*Zt)+")",marginLeft:le(2*Zt)}:void 0}]},f);else{var si,Yi;A.label==="\\vec"?(si=Ln.staticSvg("vec",f),Yi=Ln.svgData.vec[1]):(si=Ln.makeOrd({mode:A.mode,text:A.label},f,"textord"),si=Co(si),si.italic=0,Yi=si.width,un&&(Dn+=si.depth)),Qn=Ln.makeSpan(["accent-body"],[si]);var Xi=A.label==="\\textcircled";Xi&&(Qn.classes.push("accent-full"),Dn=J.height);var Ar=Zt;Xi||(Ar-=Yi/2),Qn.style.left=le(Ar),A.label==="\\textcircled"&&(Qn.style.top=".2em"),Qn=Ln.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:J},{type:"kern",size:-Dn},{type:"elem",elem:Qn}]},f)}var Pr=Ln.makeSpan(["mord","accent"],[Qn],f);return H?(H.children[0]=Pr,H.height=Math.max(Pr.height,H.height),H.classes[0]="mord",H):Pr},_o=(C,f)=>{var x=C.isStretchy?aa.mathMLnode(C.label):new Ii.MathNode("mo",[Ti(C.label,C.mode)]),A=new Ii.MathNode("mover",[ss(C.base,f),x]);return A.setAttribute("accent","true"),A},Oa=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(C=>"\\"+C).join("|"));vr({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(C,f)=>{var x=Kl(f[0]),A=!Oa.test(C.funcName),H=!A||C.funcName==="\\widehat"||C.funcName==="\\widetilde"||C.funcName==="\\widecheck";return{type:"accent",mode:C.parser.mode,label:C.funcName,isStretchy:A,isShifty:H,base:x}},htmlBuilder:wu,mathmlBuilder:_o}),vr({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(C,f)=>{var x=f[0],A=C.parser.mode;return A==="math"&&(C.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+C.funcName+" works only in text mode"),A="text"),{type:"accent",mode:A,label:C.funcName,isStretchy:!1,isShifty:!0,base:x}},htmlBuilder:wu,mathmlBuilder:_o}),vr({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(C,f)=>{var{parser:x,funcName:A}=C,H=f[0];return{type:"accentUnder",mode:x.mode,label:A,base:H}},htmlBuilder:(C,f)=>{var x=qr(C.base,f),A=aa.svgSpan(C,f),H=C.label==="\\utilde"?.12:0,J=Ln.makeVList({positionType:"top",positionData:x.height,children:[{type:"elem",elem:A,wrapperClasses:["svg-align"]},{type:"kern",size:H},{type:"elem",elem:x}]},f);return Ln.makeSpan(["mord","accentunder"],[J],f)},mathmlBuilder:(C,f)=>{var x=aa.mathMLnode(C.label),A=new Ii.MathNode("munder",[ss(C.base,f),x]);return A.setAttribute("accentunder","true"),A}});var Ro=C=>{var f=new Ii.MathNode("mpadded",C?[C]:[]);return f.setAttribute("width","+0.6em"),f.setAttribute("lspace","0.3em"),f};vr({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(C,f,x){var{parser:A,funcName:H}=C;return{type:"xArrow",mode:A.mode,label:H,body:f[0],below:x[0]}},htmlBuilder(C,f){var x=f.style,A=f.havingStyle(x.sup()),H=Ln.wrapFragment(qr(C.body,A,f),f),J=C.label.slice(0,2)==="\\x"?"x":"cd";H.classes.push(J+"-arrow-pad");var Et;C.below&&(A=f.havingStyle(x.sub()),Et=Ln.wrapFragment(qr(C.below,A,f),f),Et.classes.push(J+"-arrow-pad"));var Zt=aa.svgSpan(C,f),Xt=-f.fontMetrics().axisHeight+.5*Zt.height,Be=-f.fontMetrics().axisHeight-.5*Zt.height-.111;(H.depth>.25||C.label==="\\xleftequilibrium")&&(Be-=H.depth);var un;if(Et){var Dn=-f.fontMetrics().axisHeight+Et.height+.5*Zt.height+.111;un=Ln.makeVList({positionType:"individualShift",children:[{type:"elem",elem:H,shift:Be},{type:"elem",elem:Zt,shift:Xt},{type:"elem",elem:Et,shift:Dn}]},f)}else un=Ln.makeVList({positionType:"individualShift",children:[{type:"elem",elem:H,shift:Be},{type:"elem",elem:Zt,shift:Xt}]},f);return un.children[0].children[0].children[1].classes.push("svg-align"),Ln.makeSpan(["mrel","x-arrow"],[un],f)},mathmlBuilder(C,f){var x=aa.mathMLnode(C.label);x.setAttribute("minsize",C.label.charAt(0)==="x"?"1.75em":"3.0em");var A;if(C.body){var H=Ro(ss(C.body,f));if(C.below){var J=Ro(ss(C.below,f));A=new Ii.MathNode("munderover",[x,J,H])}else A=new Ii.MathNode("mover",[x,H])}else if(C.below){var Et=Ro(ss(C.below,f));A=new Ii.MathNode("munder",[x,Et])}else A=Ro(),A=new Ii.MathNode("mover",[x,A]);return A}});var hs=Ln.makeSpan;function Ts(C,f){var x=Wr(C.body,f,!0);return hs([C.mclass],x,f)}function Rs(C,f){var x,A=$a(C.body,f);return C.mclass==="minner"?x=new Ii.MathNode("mpadded",A):C.mclass==="mord"?C.isCharacterBox?(x=A[0],x.type="mi"):x=new Ii.MathNode("mi",A):(C.isCharacterBox?(x=A[0],x.type="mo"):x=new Ii.MathNode("mo",A),C.mclass==="mbin"?(x.attributes.lspace="0.22em",x.attributes.rspace="0.22em"):C.mclass==="mpunct"?(x.attributes.lspace="0em",x.attributes.rspace="0.17em"):C.mclass==="mopen"||C.mclass==="mclose"?(x.attributes.lspace="0em",x.attributes.rspace="0em"):C.mclass==="minner"&&(x.attributes.lspace="0.0556em",x.attributes.width="+0.1111em")),x}vr({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(C,f){var{parser:x,funcName:A}=C,H=f[0];return{type:"mclass",mode:x.mode,mclass:"m"+A.slice(5),body:Es(H),isCharacterBox:Ne.isCharacterBox(H)}},htmlBuilder:Ts,mathmlBuilder:Rs});var Ho=C=>{var f=C.type==="ordgroup"&&C.body.length?C.body[0]:C;return f.type==="atom"&&(f.family==="bin"||f.family==="rel")?"m"+f.family:"mord"};vr({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(C,f){var{parser:x}=C;return{type:"mclass",mode:x.mode,mclass:Ho(f[0]),body:Es(f[1]),isCharacterBox:Ne.isCharacterBox(f[1])}}}),vr({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(C,f){var{parser:x,funcName:A}=C,H=f[1],J=f[0],Et;A!=="\\stackrel"?Et=Ho(H):Et="mrel";var Zt={type:"op",mode:H.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:A!=="\\stackrel",body:Es(H)},Xt={type:"supsub",mode:J.mode,base:Zt,sup:A==="\\underset"?null:J,sub:A==="\\underset"?J:null};return{type:"mclass",mode:x.mode,mclass:Et,body:[Xt],isCharacterBox:Ne.isCharacterBox(Xt)}},htmlBuilder:Ts,mathmlBuilder:Rs}),vr({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(C,f){var{parser:x}=C;return{type:"pmb",mode:x.mode,mclass:Ho(f[0]),body:Es(f[0])}},htmlBuilder(C,f){var x=Wr(C.body,f,!0),A=Ln.makeSpan([C.mclass],x,f);return A.style.textShadow="0.02em 0.01em 0.04px",A},mathmlBuilder(C,f){var x=$a(C.body,f),A=new Ii.MathNode("mstyle",x);return A.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),A}});var Yu={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Nr=()=>({type:"styling",body:[],mode:"math",style:"display"}),Dc=C=>C.type==="textord"&&C.text==="@",Bo=(C,f)=>(C.type==="mathord"||C.type==="atom")&&C.text===f;function vh(C,f,x){var A=Yu[C];switch(A){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return x.callFunction(A,[f[0]],[f[1]]);case"\\uparrow":case"\\downarrow":{var H=x.callFunction("\\\\cdleft",[f[0]],[]),J={type:"atom",text:A,mode:"math",family:"rel"},Et=x.callFunction("\\Big",[J],[]),Zt=x.callFunction("\\\\cdright",[f[1]],[]),Xt={type:"ordgroup",mode:"math",body:[H,Et,Zt]};return x.callFunction("\\\\cdparent",[Xt],[])}case"\\\\cdlongequal":return x.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var Be={type:"textord",text:"\\Vert",mode:"math"};return x.callFunction("\\Big",[Be],[])}default:return{type:"textord",text:" ",mode:"math"}}}function ac(C){var f=[];for(C.gullet.beginGroup(),C.gullet.macros.set("\\cr","\\\\\\relax"),C.gullet.beginGroup();;){f.push(C.parseExpression(!1,"\\\\")),C.gullet.endGroup(),C.gullet.beginGroup();var x=C.fetch().text;if(x==="&"||x==="\\\\")C.consume();else if(x==="\\end"){f[f.length-1].length===0&&f.pop();break}else throw new Dt("Expected \\\\ or \\cr or \\end",C.nextToken)}for(var A=[],H=[A],J=0;J<f.length;J++){for(var Et=f[J],Zt=Nr(),Xt=0;Xt<Et.length;Xt++)if(!Dc(Et[Xt]))Zt.body.push(Et[Xt]);else{A.push(Zt),Xt+=1;var Be=Wa(Et[Xt]).text,un=new Array(2);if(un[0]={type:"ordgroup",mode:"math",body:[]},un[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(Be)>-1))if("<>AV".indexOf(Be)>-1)for(var Dn=0;Dn<2;Dn++){for(var Qn=!0,si=Xt+1;si<Et.length;si++){if(Bo(Et[si],Be)){Qn=!1,Xt=si;break}if(Dc(Et[si]))throw new Dt("Missing a "+Be+" character to complete a CD arrow.",Et[si]);un[Dn].body.push(Et[si])}if(Qn)throw new Dt("Missing a "+Be+" character to complete a CD arrow.",Et[Xt])}else throw new Dt('Expected one of "<>AV=|." after @',Et[Xt]);var Yi=vh(Be,un,C),Xi={type:"styling",body:[Yi],mode:"math",style:"display"};A.push(Xi),Zt=Nr()}J%2===0?A.push(Zt):A.shift(),A=[],H.push(A)}C.gullet.endGroup(),C.gullet.endGroup();var Ar=new Array(H[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:H,arraystretch:1,addJot:!0,rowGaps:[null],cols:Ar,colSeparationType:"CD",hLinesBeforeRow:new Array(H.length+1).fill([])}}vr({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(C,f){var{parser:x,funcName:A}=C;return{type:"cdlabel",mode:x.mode,side:A.slice(4),label:f[0]}},htmlBuilder(C,f){var x=f.havingStyle(f.style.sup()),A=Ln.wrapFragment(qr(C.label,x,f),f);return A.classes.push("cd-label-"+C.side),A.style.bottom=le(.8-A.depth),A.height=0,A.depth=0,A},mathmlBuilder(C,f){var x=new Ii.MathNode("mrow",[ss(C.label,f)]);return x=new Ii.MathNode("mpadded",[x]),x.setAttribute("width","0"),C.side==="left"&&x.setAttribute("lspace","-1width"),x.setAttribute("voffset","0.7em"),x=new Ii.MathNode("mstyle",[x]),x.setAttribute("displaystyle","false"),x.setAttribute("scriptlevel","1"),x}}),vr({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(C,f){var{parser:x}=C;return{type:"cdlabelparent",mode:x.mode,fragment:f[0]}},htmlBuilder(C,f){var x=Ln.wrapFragment(qr(C.fragment,f),f);return x.classes.push("cd-vert-arrow"),x},mathmlBuilder(C,f){return new Ii.MathNode("mrow",[ss(C.fragment,f)])}}),vr({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(C,f){for(var{parser:x}=C,A=Tr(f[0],"ordgroup"),H=A.body,J="",Et=0;Et<H.length;Et++){var Zt=Tr(H[Et],"textord");J+=Zt.text}var Xt=parseInt(J),Be;if(isNaN(Xt))throw new Dt("\\@char has non-numeric argument "+J);if(Xt<0||Xt>=1114111)throw new Dt("\\@char with invalid code point "+J);return Xt<=65535?Be=String.fromCharCode(Xt):(Xt-=65536,Be=String.fromCharCode((Xt>>10)+55296,(Xt&1023)+56320)),{type:"textord",mode:x.mode,text:Be}}});var lc=(C,f)=>{var x=Wr(C.body,f.withColor(C.color),!1);return Ln.makeFragment(x)},Yc=(C,f)=>{var x=$a(C.body,f.withColor(C.color)),A=new Ii.MathNode("mstyle",x);return A.setAttribute("mathcolor",C.color),A};vr({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(C,f){var{parser:x}=C,A=Tr(f[0],"color-token").color,H=f[1];return{type:"color",mode:x.mode,color:A,body:Es(H)}},htmlBuilder:lc,mathmlBuilder:Yc}),vr({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(C,f){var{parser:x,breakOnTokenText:A}=C,H=Tr(f[0],"color-token").color;x.gullet.macros.set("\\current@color",H);var J=x.parseExpression(!0,A);return{type:"color",mode:x.mode,color:H,body:J}},htmlBuilder:lc,mathmlBuilder:Yc}),vr({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(C,f,x){var{parser:A}=C,H=A.gullet.future().text==="["?A.parseSizeGroup(!0):null,J=!A.settings.displayMode||!A.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:A.mode,newLine:J,size:H&&Tr(H,"size").value}},htmlBuilder(C,f){var x=Ln.makeSpan(["mspace"],[],f);return C.newLine&&(x.classes.push("newline"),C.size&&(x.style.marginTop=le(Mi(C.size,f)))),x},mathmlBuilder(C,f){var x=new Ii.MathNode("mspace");return C.newLine&&(x.setAttribute("linebreak","newline"),C.size&&x.setAttribute("height",le(Mi(C.size,f)))),x}});var uc={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Bl=C=>{var f=C.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(f))throw new Dt("Expected a control sequence",C);return f},Cu=C=>{var f=C.gullet.popToken();return f.text==="="&&(f=C.gullet.popToken(),f.text===" "&&(f=C.gullet.popToken())),f},Yo=(C,f,x,A)=>{var H=C.gullet.macros.get(x.text);H==null&&(x.noexpand=!0,H={tokens:[x],numArgs:0,unexpandable:!C.gullet.isExpandable(x.text)}),C.gullet.macros.set(f,H,A)};vr({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(C){var{parser:f,funcName:x}=C;f.consumeSpaces();var A=f.fetch();if(uc[A.text])return(x==="\\global"||x==="\\\\globallong")&&(A.text=uc[A.text]),Tr(f.parseFunction(),"internal");throw new Dt("Invalid token after macro prefix",A)}}),vr({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(C){var{parser:f,funcName:x}=C,A=f.gullet.popToken(),H=A.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(H))throw new Dt("Expected a control sequence",A);for(var J=0,Et,Zt=[[]];f.gullet.future().text!=="{";)if(A=f.gullet.popToken(),A.text==="#"){if(f.gullet.future().text==="{"){Et=f.gullet.future(),Zt[J].push("{");break}if(A=f.gullet.popToken(),!/^[1-9]$/.test(A.text))throw new Dt('Invalid argument number "'+A.text+'"');if(parseInt(A.text)!==J+1)throw new Dt('Argument number "'+A.text+'" out of order');J++,Zt.push([])}else{if(A.text==="EOF")throw new Dt("Expected a macro definition");Zt[J].push(A.text)}var{tokens:Xt}=f.gullet.consumeArg();return Et&&Xt.unshift(Et),(x==="\\edef"||x==="\\xdef")&&(Xt=f.gullet.expandTokens(Xt),Xt.reverse()),f.gullet.macros.set(H,{tokens:Xt,numArgs:J,delimiters:Zt},x===uc[x]),{type:"internal",mode:f.mode}}}),vr({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(C){var{parser:f,funcName:x}=C,A=Bl(f.gullet.popToken());f.gullet.consumeSpaces();var H=Cu(f);return Yo(f,A,H,x==="\\\\globallet"),{type:"internal",mode:f.mode}}}),vr({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(C){var{parser:f,funcName:x}=C,A=Bl(f.gullet.popToken()),H=f.gullet.popToken(),J=f.gullet.popToken();return Yo(f,A,J,x==="\\\\globalfuture"),f.gullet.pushToken(J),f.gullet.pushToken(H),{type:"internal",mode:f.mode}}});var ul=function(f,x,A){var H=ai.math[f]&&ai.math[f].replace,J=He(H||f,x,A);if(!J)throw new Error("Unsupported symbol "+f+" and font size "+x+".");return J},wc=function(f,x,A,H){var J=A.havingBaseStyle(x),Et=Ln.makeSpan(H.concat(J.sizingClasses(A)),[f],A),Zt=J.sizeMultiplier/A.sizeMultiplier;return Et.height*=Zt,Et.depth*=Zt,Et.maxFontSize=J.sizeMultiplier,Et},Bu=function(f,x,A){var H=x.havingBaseStyle(A),J=(1-x.sizeMultiplier/H.sizeMultiplier)*x.fontMetrics().axisHeight;f.classes.push("delimcenter"),f.style.top=le(J),f.height-=J,f.depth+=J},yh=function(f,x,A,H,J,Et){var Zt=Ln.makeSymbol(f,"Main-Regular",J,H),Xt=wc(Zt,x,H,Et);return A&&Bu(Xt,H,x),Xt},uu=function(f,x,A,H){return Ln.makeSymbol(f,"Size"+x+"-Regular",A,H)},cl=function(f,x,A,H,J,Et){var Zt=uu(f,x,J,H),Xt=wc(Ln.makeSpan(["delimsizing","size"+x],[Zt],H),Ei.TEXT,H,Et);return A&&Bu(Xt,H,Ei.TEXT),Xt},Zl=function(f,x,A){var H;x==="Size1-Regular"?H="delim-size1":H="delim-size4";var J=Ln.makeSpan(["delimsizinginner",H],[Ln.makeSpan([],[Ln.makeSymbol(f,x,A)])]);return{type:"elem",elem:J}},El=function(f,x,A){var H=Me["Size4-Regular"][f.charCodeAt(0)]?Me["Size4-Regular"][f.charCodeAt(0)][4]:Me["Size1-Regular"][f.charCodeAt(0)][4],J=new je("inner",ne(f,Math.round(1e3*x))),Et=new Rr([J],{width:le(H),height:le(x),style:"width:"+le(H),viewBox:"0 0 "+1e3*H+" "+Math.round(1e3*x),preserveAspectRatio:"xMinYMin"}),Zt=Ln.makeSvgSpan([],[Et],A);return Zt.height=x,Zt.style.height=le(x),Zt.style.width=le(H),{type:"elem",elem:Zt}},Yl=.008,Eu={type:"kern",size:-1*Yl},Cc=["|","\\lvert","\\rvert","\\vert"],Xc=["\\|","\\lVert","\\rVert","\\Vert"],Jc=function(f,x,A,H,J,Et){var Zt,Xt,Be,un,Dn="",Qn=0;Zt=Be=un=f,Xt=null;var si="Size1-Regular";f==="\\uparrow"?Be=un="\u23D0":f==="\\Uparrow"?Be=un="\u2016":f==="\\downarrow"?Zt=Be="\u23D0":f==="\\Downarrow"?Zt=Be="\u2016":f==="\\updownarrow"?(Zt="\\uparrow",Be="\u23D0",un="\\downarrow"):f==="\\Updownarrow"?(Zt="\\Uparrow",Be="\u2016",un="\\Downarrow"):Ne.contains(Cc,f)?(Be="\u2223",Dn="vert",Qn=333):Ne.contains(Xc,f)?(Be="\u2225",Dn="doublevert",Qn=556):f==="["||f==="\\lbrack"?(Zt="\u23A1",Be="\u23A2",un="\u23A3",si="Size4-Regular",Dn="lbrack",Qn=667):f==="]"||f==="\\rbrack"?(Zt="\u23A4",Be="\u23A5",un="\u23A6",si="Size4-Regular",Dn="rbrack",Qn=667):f==="\\lfloor"||f==="\u230A"?(Be=Zt="\u23A2",un="\u23A3",si="Size4-Regular",Dn="lfloor",Qn=667):f==="\\lceil"||f==="\u2308"?(Zt="\u23A1",Be=un="\u23A2",si="Size4-Regular",Dn="lceil",Qn=667):f==="\\rfloor"||f==="\u230B"?(Be=Zt="\u23A5",un="\u23A6",si="Size4-Regular",Dn="rfloor",Qn=667):f==="\\rceil"||f==="\u2309"?(Zt="\u23A4",Be=un="\u23A5",si="Size4-Regular",Dn="rceil",Qn=667):f==="("||f==="\\lparen"?(Zt="\u239B",Be="\u239C",un="\u239D",si="Size4-Regular",Dn="lparen",Qn=875):f===")"||f==="\\rparen"?(Zt="\u239E",Be="\u239F",un="\u23A0",si="Size4-Regular",Dn="rparen",Qn=875):f==="\\{"||f==="\\lbrace"?(Zt="\u23A7",Xt="\u23A8",un="\u23A9",Be="\u23AA",si="Size4-Regular"):f==="\\}"||f==="\\rbrace"?(Zt="\u23AB",Xt="\u23AC",un="\u23AD",Be="\u23AA",si="Size4-Regular"):f==="\\lgroup"||f==="\u27EE"?(Zt="\u23A7",un="\u23A9",Be="\u23AA",si="Size4-Regular"):f==="\\rgroup"||f==="\u27EF"?(Zt="\u23AB",un="\u23AD",Be="\u23AA",si="Size4-Regular"):f==="\\lmoustache"||f==="\u23B0"?(Zt="\u23A7",un="\u23AD",Be="\u23AA",si="Size4-Regular"):(f==="\\rmoustache"||f==="\u23B1")&&(Zt="\u23AB",un="\u23A9",Be="\u23AA",si="Size4-Regular");var Yi=ul(Zt,si,J),Xi=Yi.height+Yi.depth,Ar=ul(Be,si,J),Pr=Ar.height+Ar.depth,ko=ul(un,si,J),Ao=ko.height+ko.depth,jo=0,ns=1;if(Xt!==null){var So=ul(Xt,si,J);jo=So.height+So.depth,ns=2}var Fr=Xi+Ao+jo,wo=Math.max(0,Math.ceil((x-Fr)/(ns*Pr))),Go=Fr+wo*ns*Pr,Na=H.fontMetrics().axisHeight;A&&(Na*=H.sizeMultiplier);var ta=Go/2-Na,Sa=[];if(Dn.length>0){var $l=Go-Xi-Ao,Ka=Math.round(Go*1e3),wa=Fn(Dn,Math.round($l*1e3)),hl=new je(Dn,wa),Ec=(Qn/1e3).toFixed(3)+"em",Tc=(Ka/1e3).toFixed(3)+"em",xh=new Rr([hl],{width:Ec,height:Tc,viewBox:"0 0 "+Qn+" "+Ka}),hu=Ln.makeSvgSpan([],[xh],H);hu.height=Ka/1e3,hu.style.width=Ec,hu.style.height=Tc,Sa.push({type:"elem",elem:hu})}else{if(Sa.push(Zl(un,si,J)),Sa.push(Eu),Xt===null){var cc=Go-Xi-Ao+2*Yl;Sa.push(El(Be,cc,H))}else{var du=(Go-Xi-Ao-jo)/2+2*Yl;Sa.push(El(Be,du,H)),Sa.push(Eu),Sa.push(Zl(Xt,si,J)),Sa.push(Eu),Sa.push(El(Be,du,H))}Sa.push(Eu),Sa.push(Zl(Zt,si,J))}var th=H.havingBaseStyle(Ei.TEXT),ku=Ln.makeVList({positionType:"bottom",positionData:ta,children:Sa},th);return wc(Ln.makeSpan(["delimsizing","mult"],[ku],th),Ei.TEXT,H,Et)},_s=80,cu=.08,Qc=function(f,x,A,H,J){var Et=kn(f,H,A),Zt=new je(f,Et),Xt=new Rr([Zt],{width:"400em",height:le(x),viewBox:"0 0 400000 "+A,preserveAspectRatio:"xMinYMin slice"});return Ln.makeSvgSpan(["hide-tail"],[Xt],J)},ht=function(f,x){var A=x.havingBaseSizing(),H=An("\\surd",f*A.sizeMultiplier,_e,A),J=A.sizeMultiplier,Et=Math.max(0,x.minRuleThickness-x.fontMetrics().sqrtRuleThickness),Zt,Xt=0,Be=0,un=0,Dn;return H.type==="small"?(un=1e3+1e3*Et+_s,f<1?J=1:f<1.4&&(J=.7),Xt=(1+Et+cu)/J,Be=(1+Et)/J,Zt=Qc("sqrtMain",Xt,un,Et,x),Zt.style.minWidth="0.853em",Dn=.833/J):H.type==="large"?(un=(1e3+_s)*Se[H.size],Be=(Se[H.size]+Et)/J,Xt=(Se[H.size]+Et+cu)/J,Zt=Qc("sqrtSize"+H.size,Xt,un,Et,x),Zt.style.minWidth="1.02em",Dn=1/J):(Xt=f+Et+cu,Be=f+Et,un=Math.floor(1e3*f+Et)+_s,Zt=Qc("sqrtTall",Xt,un,Et,x),Zt.style.minWidth="0.742em",Dn=1.056),Zt.height=Be,Zt.style.height=le(Xt),{span:Zt,advanceWidth:Dn,ruleWidth:(x.fontMetrics().sqrtRuleThickness+Et)*J}},mt=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],ee=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],re=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Se=[0,1.2,1.8,2.4,3],me=function(f,x,A,H,J){if(f==="<"||f==="\\lt"||f==="\u27E8"?f="\\langle":(f===">"||f==="\\gt"||f==="\u27E9")&&(f="\\rangle"),Ne.contains(mt,f)||Ne.contains(re,f))return cl(f,x,!1,A,H,J);if(Ne.contains(ee,f))return Jc(f,Se[x],!1,A,H,J);throw new Dt("Illegal delimiter: '"+f+"'")},Ye=[{type:"small",style:Ei.SCRIPTSCRIPT},{type:"small",style:Ei.SCRIPT},{type:"small",style:Ei.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Ze=[{type:"small",style:Ei.SCRIPTSCRIPT},{type:"small",style:Ei.SCRIPT},{type:"small",style:Ei.TEXT},{type:"stack"}],_e=[{type:"small",style:Ei.SCRIPTSCRIPT},{type:"small",style:Ei.SCRIPT},{type:"small",style:Ei.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],wn=function(f){if(f.type==="small")return"Main-Regular";if(f.type==="large")return"Size"+f.size+"-Regular";if(f.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+f.type+"' here.")},An=function(f,x,A,H){for(var J=Math.min(2,3-H.style.size),Et=J;Et<A.length&&A[Et].type!=="stack";Et++){var Zt=ul(f,wn(A[Et]),"math"),Xt=Zt.height+Zt.depth;if(A[Et].type==="small"){var Be=H.havingBaseStyle(A[Et].style);Xt*=Be.sizeMultiplier}if(Xt>x)return A[Et]}return A[A.length-1]},Tn=function(f,x,A,H,J,Et){f==="<"||f==="\\lt"||f==="\u27E8"?f="\\langle":(f===">"||f==="\\gt"||f==="\u27E9")&&(f="\\rangle");var Zt;Ne.contains(re,f)?Zt=Ye:Ne.contains(mt,f)?Zt=_e:Zt=Ze;var Xt=An(f,x,Zt,H);return Xt.type==="small"?yh(f,Xt.style,A,H,J,Et):Xt.type==="large"?cl(f,Xt.size,A,H,J,Et):Jc(f,x,A,H,J,Et)},ii=function(f,x,A,H,J,Et){var Zt=H.fontMetrics().axisHeight*H.sizeMultiplier,Xt=901,Be=5/H.fontMetrics().ptPerEm,un=Math.max(x-Zt,A+Zt),Dn=Math.max(un/500*Xt,2*un-Be);return Tn(f,Dn,!0,H,J,Et)},Vn={sqrtImage:ht,sizedDelim:me,sizeToMaxHeight:Se,customSizedDelim:Tn,leftRightDelim:ii},Hn={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Fi=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Zn(C,f){var x=ra(C);if(x&&Ne.contains(Fi,x.text))return x;throw x?new Dt("Invalid delimiter '"+x.text+"' after '"+f.funcName+"'",C):new Dt("Invalid delimiter type '"+C.type+"'",C)}vr({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(C,f)=>{var x=Zn(f[0],C);return{type:"delimsizing",mode:C.parser.mode,size:Hn[C.funcName].size,mclass:Hn[C.funcName].mclass,delim:x.text}},htmlBuilder:(C,f)=>C.delim==="."?Ln.makeSpan([C.mclass]):Vn.sizedDelim(C.delim,C.size,f,C.mode,[C.mclass]),mathmlBuilder:C=>{var f=[];C.delim!=="."&&f.push(Ti(C.delim,C.mode));var x=new Ii.MathNode("mo",f);C.mclass==="mopen"||C.mclass==="mclose"?x.setAttribute("fence","true"):x.setAttribute("fence","false"),x.setAttribute("stretchy","true");var A=le(Vn.sizeToMaxHeight[C.size]);return x.setAttribute("minsize",A),x.setAttribute("maxsize",A),x}});function ki(C){if(!C.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}vr({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(C,f)=>{var x=C.parser.gullet.macros.get("\\current@color");if(x&&typeof x!="string")throw new Dt("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:C.parser.mode,delim:Zn(f[0],C).text,color:x}}}),vr({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(C,f)=>{var x=Zn(f[0],C),A=C.parser;++A.leftrightDepth;var H=A.parseExpression(!1);--A.leftrightDepth,A.expect("\\right",!1);var J=Tr(A.parseFunction(),"leftright-right");return{type:"leftright",mode:A.mode,body:H,left:x.text,right:J.delim,rightColor:J.color}},htmlBuilder:(C,f)=>{ki(C);for(var x=Wr(C.body,f,!0,["mopen","mclose"]),A=0,H=0,J=!1,Et=0;Et<x.length;Et++)x[Et].isMiddle?J=!0:(A=Math.max(x[Et].height,A),H=Math.max(x[Et].depth,H));A*=f.sizeMultiplier,H*=f.sizeMultiplier;var Zt;if(C.left==="."?Zt=cs(f,["mopen"]):Zt=Vn.leftRightDelim(C.left,A,H,f,C.mode,["mopen"]),x.unshift(Zt),J)for(var Xt=1;Xt<x.length;Xt++){var Be=x[Xt],un=Be.isMiddle;un&&(x[Xt]=Vn.leftRightDelim(un.delim,A,H,un.options,C.mode,[]))}var Dn;if(C.right===".")Dn=cs(f,["mclose"]);else{var Qn=C.rightColor?f.withColor(C.rightColor):f;Dn=Vn.leftRightDelim(C.right,A,H,Qn,C.mode,["mclose"])}return x.push(Dn),Ln.makeSpan(["minner"],x,f)},mathmlBuilder:(C,f)=>{ki(C);var x=$a(C.body,f);if(C.left!=="."){var A=new Ii.MathNode("mo",[Ti(C.left,C.mode)]);A.setAttribute("fence","true"),x.unshift(A)}if(C.right!=="."){var H=new Ii.MathNode("mo",[Ti(C.right,C.mode)]);H.setAttribute("fence","true"),C.rightColor&&H.setAttribute("mathcolor",C.rightColor),x.push(H)}return Zu(x)}}),vr({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(C,f)=>{var x=Zn(f[0],C);if(!C.parser.leftrightDepth)throw new Dt("\\middle without preceding \\left",x);return{type:"middle",mode:C.parser.mode,delim:x.text}},htmlBuilder:(C,f)=>{var x;if(C.delim===".")x=cs(f,[]);else{x=Vn.sizedDelim(C.delim,1,f,C.mode,[]);var A={delim:C.delim,options:f};x.isMiddle=A}return x},mathmlBuilder:(C,f)=>{var x=C.delim==="\\vert"||C.delim==="|"?Ti("|","text"):Ti(C.delim,C.mode),A=new Ii.MathNode("mo",[x]);return A.setAttribute("fence","true"),A.setAttribute("lspace","0.05em"),A.setAttribute("rspace","0.05em"),A}});var wi=(C,f)=>{var x=Ln.wrapFragment(qr(C.body,f),f),A=C.label.slice(1),H=f.sizeMultiplier,J,Et=0,Zt=Ne.isCharacterBox(C.body);if(A==="sout")J=Ln.makeSpan(["stretchy","sout"]),J.height=f.fontMetrics().defaultRuleThickness/H,Et=-.5*f.fontMetrics().xHeight;else if(A==="phase"){var Xt=Mi({number:.6,unit:"pt"},f),Be=Mi({number:.35,unit:"ex"},f),un=f.havingBaseSizing();H=H/un.sizeMultiplier;var Dn=x.height+x.depth+Xt+Be;x.style.paddingLeft=le(Dn/2+Xt);var Qn=Math.floor(1e3*Dn*H),si=xn(Qn),Yi=new Rr([new je("phase",si)],{width:"400em",height:le(Qn/1e3),viewBox:"0 0 400000 "+Qn,preserveAspectRatio:"xMinYMin slice"});J=Ln.makeSvgSpan(["hide-tail"],[Yi],f),J.style.height=le(Dn),Et=x.depth+Xt+Be}else{/cancel/.test(A)?Zt||x.classes.push("cancel-pad"):A==="angl"?x.classes.push("anglpad"):x.classes.push("boxpad");var Xi=0,Ar=0,Pr=0;/box/.test(A)?(Pr=Math.max(f.fontMetrics().fboxrule,f.minRuleThickness),Xi=f.fontMetrics().fboxsep+(A==="colorbox"?0:Pr),Ar=Xi):A==="angl"?(Pr=Math.max(f.fontMetrics().defaultRuleThickness,f.minRuleThickness),Xi=4*Pr,Ar=Math.max(0,.25-x.depth)):(Xi=Zt?.2:0,Ar=Xi),J=aa.encloseSpan(x,A,Xi,Ar,f),/fbox|boxed|fcolorbox/.test(A)?(J.style.borderStyle="solid",J.style.borderWidth=le(Pr)):A==="angl"&&Pr!==.049&&(J.style.borderTopWidth=le(Pr),J.style.borderRightWidth=le(Pr)),Et=x.depth+Ar,C.backgroundColor&&(J.style.backgroundColor=C.backgroundColor,C.borderColor&&(J.style.borderColor=C.borderColor))}var ko;if(C.backgroundColor)ko=Ln.makeVList({positionType:"individualShift",children:[{type:"elem",elem:J,shift:Et},{type:"elem",elem:x,shift:0}]},f);else{var Ao=/cancel|phase/.test(A)?["svg-align"]:[];ko=Ln.makeVList({positionType:"individualShift",children:[{type:"elem",elem:x,shift:0},{type:"elem",elem:J,shift:Et,wrapperClasses:Ao}]},f)}return/cancel/.test(A)&&(ko.height=x.height,ko.depth=x.depth),/cancel/.test(A)&&!Zt?Ln.makeSpan(["mord","cancel-lap"],[ko],f):Ln.makeSpan(["mord"],[ko],f)},_i=(C,f)=>{var x=0,A=new Ii.MathNode(C.label.indexOf("colorbox")>-1?"mpadded":"menclose",[ss(C.body,f)]);switch(C.label){case"\\cancel":A.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":A.setAttribute("notation","downdiagonalstrike");break;case"\\phase":A.setAttribute("notation","phasorangle");break;case"\\sout":A.setAttribute("notation","horizontalstrike");break;case"\\fbox":A.setAttribute("notation","box");break;case"\\angl":A.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(x=f.fontMetrics().fboxsep*f.fontMetrics().ptPerEm,A.setAttribute("width","+"+2*x+"pt"),A.setAttribute("height","+"+2*x+"pt"),A.setAttribute("lspace",x+"pt"),A.setAttribute("voffset",x+"pt"),C.label==="\\fcolorbox"){var H=Math.max(f.fontMetrics().fboxrule,f.minRuleThickness);A.setAttribute("style","border: "+H+"em solid "+String(C.borderColor))}break;case"\\xcancel":A.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return C.backgroundColor&&A.setAttribute("mathbackground",C.backgroundColor),A};vr({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(C,f,x){var{parser:A,funcName:H}=C,J=Tr(f[0],"color-token").color,Et=f[1];return{type:"enclose",mode:A.mode,label:H,backgroundColor:J,body:Et}},htmlBuilder:wi,mathmlBuilder:_i}),vr({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(C,f,x){var{parser:A,funcName:H}=C,J=Tr(f[0],"color-token").color,Et=Tr(f[1],"color-token").color,Zt=f[2];return{type:"enclose",mode:A.mode,label:H,backgroundColor:Et,borderColor:J,body:Zt}},htmlBuilder:wi,mathmlBuilder:_i}),vr({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(C,f){var{parser:x}=C;return{type:"enclose",mode:x.mode,label:"\\fbox",body:f[0]}}}),vr({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(C,f){var{parser:x,funcName:A}=C,H=f[0];return{type:"enclose",mode:x.mode,label:A,body:H}},htmlBuilder:wi,mathmlBuilder:_i}),vr({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(C,f){var{parser:x}=C;return{type:"enclose",mode:x.mode,label:"\\angl",body:f[0]}}});var pr={};function cr(C){for(var{type:f,names:x,props:A,handler:H,htmlBuilder:J,mathmlBuilder:Et}=C,Zt={type:f,numArgs:A.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:H},Xt=0;Xt<x.length;++Xt)pr[x[Xt]]=Zt;J&&(Ha[f]=J),Et&&(Vl[f]=Et)}var Oi={};function jt(C,f){Oi[C]=f}function to(C){var f=[];C.consumeSpaces();var x=C.fetch().text;for(x==="\\relax"&&(C.consume(),C.consumeSpaces(),x=C.fetch().text);x==="\\hline"||x==="\\hdashline";)C.consume(),f.push(x==="\\hdashline"),C.consumeSpaces(),x=C.fetch().text;return f}var Li=C=>{var f=C.parser.settings;if(!f.displayMode)throw new Dt("{"+C.envName+"} can be used only in display mode.")};function sr(C){if(C.indexOf("ed")===-1)return C.indexOf("*")===-1}function Ai(C,f,x){var{hskipBeforeAndAfter:A,addJot:H,cols:J,arraystretch:Et,colSeparationType:Zt,autoTag:Xt,singleRow:Be,emptySingleRow:un,maxNumCols:Dn,leqno:Qn}=f;if(C.gullet.beginGroup(),Be||C.gullet.macros.set("\\cr","\\\\\\relax"),!Et){var si=C.gullet.expandMacroAsText("\\arraystretch");if(si==null)Et=1;else if(Et=parseFloat(si),!Et||Et<0)throw new Dt("Invalid \\arraystretch: "+si)}C.gullet.beginGroup();var Yi=[],Xi=[Yi],Ar=[],Pr=[],ko=Xt!=null?[]:void 0;function Ao(){Xt&&C.gullet.macros.set("\\@eqnsw","1",!0)}function jo(){ko&&(C.gullet.macros.get("\\df@tag")?(ko.push(C.subparse([new xt("\\df@tag")])),C.gullet.macros.set("\\df@tag",void 0,!0)):ko.push(!!Xt&&C.gullet.macros.get("\\@eqnsw")==="1"))}for(Ao(),Pr.push(to(C));;){var ns=C.parseExpression(!1,Be?"\\end":"\\\\");C.gullet.endGroup(),C.gullet.beginGroup(),ns={type:"ordgroup",mode:C.mode,body:ns},x&&(ns={type:"styling",mode:C.mode,style:x,body:[ns]}),Yi.push(ns);var So=C.fetch().text;if(So==="&"){if(Dn&&Yi.length===Dn){if(Be||Zt)throw new Dt("Too many tab characters: &",C.nextToken);C.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}C.consume()}else if(So==="\\end"){jo(),Yi.length===1&&ns.type==="styling"&&ns.body[0].body.length===0&&(Xi.length>1||!un)&&Xi.pop(),Pr.length<Xi.length+1&&Pr.push([]);break}else if(So==="\\\\"){C.consume();var Fr=void 0;C.gullet.future().text!==" "&&(Fr=C.parseSizeGroup(!0)),Ar.push(Fr?Fr.value:null),jo(),Pr.push(to(C)),Yi=[],Xi.push(Yi),Ao()}else throw new Dt("Expected & or \\\\ or \\cr or \\end",C.nextToken)}return C.gullet.endGroup(),C.gullet.endGroup(),{type:"array",mode:C.mode,addJot:H,arraystretch:Et,body:Xi,cols:J,rowGaps:Ar,hskipBeforeAndAfter:A,hLinesBeforeRow:Pr,colSeparationType:Zt,tags:ko,leqno:Qn}}function gi(C){return C.slice(0,1)==="d"?"display":"text"}var ji=function(f,x){var A,H,J=f.body.length,Et=f.hLinesBeforeRow,Zt=0,Xt=new Array(J),Be=[],un=Math.max(x.fontMetrics().arrayRuleWidth,x.minRuleThickness),Dn=1/x.fontMetrics().ptPerEm,Qn=5*Dn;if(f.colSeparationType&&f.colSeparationType==="small"){var si=x.havingStyle(Ei.SCRIPT).sizeMultiplier;Qn=.2778*(si/x.sizeMultiplier)}var Yi=f.colSeparationType==="CD"?Mi({number:3,unit:"ex"},x):12*Dn,Xi=3*Dn,Ar=f.arraystretch*Yi,Pr=.7*Ar,ko=.3*Ar,Ao=0;function jo(nh){for(var ih=0;ih<nh.length;++ih)ih>0&&(Ao+=.25),Be.push({pos:Ao,isDashed:nh[ih]})}for(jo(Et[0]),A=0;A<f.body.length;++A){var ns=f.body[A],So=Pr,Fr=ko;Zt<ns.length&&(Zt=ns.length);var wo=new Array(ns.length);for(H=0;H<ns.length;++H){var Go=qr(ns[H],x);Fr<Go.depth&&(Fr=Go.depth),So<Go.height&&(So=Go.height),wo[H]=Go}var Na=f.rowGaps[A],ta=0;Na&&(ta=Mi(Na,x),ta>0&&(ta+=ko,Fr<ta&&(Fr=ta),ta=0)),f.addJot&&(Fr+=Xi),wo.height=So,wo.depth=Fr,Ao+=So,wo.pos=Ao,Ao+=Fr+ta,Xt[A]=wo,jo(Et[A+1])}var Sa=Ao/2+x.fontMetrics().axisHeight,$l=f.cols||[],Ka=[],wa,hl,Ec=[];if(f.tags&&f.tags.some(nh=>nh))for(A=0;A<J;++A){var Tc=Xt[A],xh=Tc.pos-Sa,hu=f.tags[A],cc=void 0;hu===!0?cc=Ln.makeSpan(["eqn-num"],[],x):hu===!1?cc=Ln.makeSpan([],[],x):cc=Ln.makeSpan([],Wr(hu,x,!0),x),cc.depth=Tc.depth,cc.height=Tc.height,Ec.push({type:"elem",elem:cc,shift:xh})}for(H=0,hl=0;H<Zt||hl<$l.length;++H,++hl){for(var du=$l[hl]||{},th=!0;du.type==="separator";){if(th||(wa=Ln.makeSpan(["arraycolsep"],[]),wa.style.width=le(x.fontMetrics().doubleRuleSep),Ka.push(wa)),du.separator==="|"||du.separator===":"){var ku=du.separator==="|"?"solid":"dashed",eh=Ln.makeSpan(["vertical-separator"],[],x);eh.style.height=le(Ao),eh.style.borderRightWidth=le(un),eh.style.borderRightStyle=ku,eh.style.margin="0 "+le(-un/2);var gd=Ao-Sa;gd&&(eh.style.verticalAlign=le(-gd)),Ka.push(eh)}else throw new Dt("Invalid separator type: "+du.separator);hl++,du=$l[hl]||{},th=!1}if(!(H>=Zt)){var Xu=void 0;(H>0||f.hskipBeforeAndAfter)&&(Xu=Ne.deflt(du.pregap,Qn),Xu!==0&&(wa=Ln.makeSpan(["arraycolsep"],[]),wa.style.width=le(Xu),Ka.push(wa)));var $u=[];for(A=0;A<J;++A){var bh=Xt[A],pu=bh[H];if(pu){var _d=bh.pos-Sa;pu.depth=bh.depth,pu.height=bh.height,$u.push({type:"elem",elem:pu,shift:_d})}}$u=Ln.makeVList({positionType:"individualShift",children:$u},x),$u=Ln.makeSpan(["col-align-"+(du.align||"c")],[$u]),Ka.push($u),(H<Zt-1||f.hskipBeforeAndAfter)&&(Xu=Ne.deflt(du.postgap,Qn),Xu!==0&&(wa=Ln.makeSpan(["arraycolsep"],[]),wa.style.width=le(Xu),Ka.push(wa)))}}if(Xt=Ln.makeSpan(["mtable"],Ka),Be.length>0){for(var vd=Ln.makeLineSpan("hline",x,un),vp=Ln.makeLineSpan("hdashline",x,un),Wh=[{type:"elem",elem:Xt,shift:0}];Be.length>0;){var yd=Be.pop(),yp=yd.pos-Sa;yd.isDashed?Wh.push({type:"elem",elem:vp,shift:yp}):Wh.push({type:"elem",elem:vd,shift:yp})}Xt=Ln.makeVList({positionType:"individualShift",children:Wh},x)}if(Ec.length===0)return Ln.makeSpan(["mord"],[Xt],x);var xd=Ln.makeVList({positionType:"individualShift",children:Ec},x);return xd=Ln.makeSpan(["tag"],[xd],x),Ln.makeFragment([Xt,xd])},wr={c:"center ",l:"left ",r:"right "},yr=function(f,x){for(var A=[],H=new Ii.MathNode("mtd",[],["mtr-glue"]),J=new Ii.MathNode("mtd",[],["mml-eqn-num"]),Et=0;Et<f.body.length;Et++){for(var Zt=f.body[Et],Xt=[],Be=0;Be<Zt.length;Be++)Xt.push(new Ii.MathNode("mtd",[ss(Zt[Be],x)]));f.tags&&f.tags[Et]&&(Xt.unshift(H),Xt.push(H),f.leqno?Xt.unshift(J):Xt.push(J)),A.push(new Ii.MathNode("mtr",Xt))}var un=new Ii.MathNode("mtable",A),Dn=f.arraystretch===.5?.1:.16+f.arraystretch-1+(f.addJot?.09:0);un.setAttribute("rowspacing",le(Dn));var Qn="",si="";if(f.cols&&f.cols.length>0){var Yi=f.cols,Xi="",Ar=!1,Pr=0,ko=Yi.length;Yi[0].type==="separator"&&(Qn+="top ",Pr=1),Yi[Yi.length-1].type==="separator"&&(Qn+="bottom ",ko-=1);for(var Ao=Pr;Ao<ko;Ao++)Yi[Ao].type==="align"?(si+=wr[Yi[Ao].align],Ar&&(Xi+="none "),Ar=!0):Yi[Ao].type==="separator"&&Ar&&(Xi+=Yi[Ao].separator==="|"?"solid ":"dashed ",Ar=!1);un.setAttribute("columnalign",si.trim()),/[sd]/.test(Xi)&&un.setAttribute("columnlines",Xi.trim())}if(f.colSeparationType==="align"){for(var jo=f.cols||[],ns="",So=1;So<jo.length;So++)ns+=So%2?"0em ":"1em ";un.setAttribute("columnspacing",ns.trim())}else f.colSeparationType==="alignat"||f.colSeparationType==="gather"?un.setAttribute("columnspacing","0em"):f.colSeparationType==="small"?un.setAttribute("columnspacing","0.2778em"):f.colSeparationType==="CD"?un.setAttribute("columnspacing","0.5em"):un.setAttribute("columnspacing","1em");var Fr="",wo=f.hLinesBeforeRow;Qn+=wo[0].length>0?"left ":"",Qn+=wo[wo.length-1].length>0?"right ":"";for(var Go=1;Go<wo.length-1;Go++)Fr+=wo[Go].length===0?"none ":wo[Go][0]?"dashed ":"solid ";return/[sd]/.test(Fr)&&un.setAttribute("rowlines",Fr.trim()),Qn!==""&&(un=new Ii.MathNode("menclose",[un]),un.setAttribute("notation",Qn.trim())),f.arraystretch&&f.arraystretch<1&&(un=new Ii.MathNode("mstyle",[un]),un.setAttribute("scriptlevel","1")),un},$r=function(f,x){f.envName.indexOf("ed")===-1&&Li(f);var A=[],H=f.envName.indexOf("at")>-1?"alignat":"align",J=f.envName==="split",Et=Ai(f.parser,{cols:A,addJot:!0,autoTag:J?void 0:sr(f.envName),emptySingleRow:!0,colSeparationType:H,maxNumCols:J?2:void 0,leqno:f.parser.settings.leqno},"display"),Zt,Xt=0,Be={type:"ordgroup",mode:f.mode,body:[]};if(x[0]&&x[0].type==="ordgroup"){for(var un="",Dn=0;Dn<x[0].body.length;Dn++){var Qn=Tr(x[0].body[Dn],"textord");un+=Qn.text}Zt=Number(un),Xt=Zt*2}var si=!Xt;Et.body.forEach(function(Pr){for(var ko=1;ko<Pr.length;ko+=2){var Ao=Tr(Pr[ko],"styling"),jo=Tr(Ao.body[0],"ordgroup");jo.body.unshift(Be)}if(si)Xt<Pr.length&&(Xt=Pr.length);else{var ns=Pr.length/2;if(Zt<ns)throw new Dt("Too many math in a row: "+("expected "+Zt+", but got "+ns),Pr[0])}});for(var Yi=0;Yi<Xt;++Yi){var Xi="r",Ar=0;Yi%2===1?Xi="l":Yi>0&&si&&(Ar=1),A[Yi]={type:"align",align:Xi,pregap:Ar,postgap:0}}return Et.colSeparationType=si?"align":"alignat",Et};cr({type:"array",names:["array","darray"],props:{numArgs:1},handler(C,f){var x=ra(f[0]),A=x?[f[0]]:Tr(f[0],"ordgroup").body,H=A.map(function(Et){var Zt=Wa(Et),Xt=Zt.text;if("lcr".indexOf(Xt)!==-1)return{type:"align",align:Xt};if(Xt==="|")return{type:"separator",separator:"|"};if(Xt===":")return{type:"separator",separator:":"};throw new Dt("Unknown column alignment: "+Xt,Et)}),J={cols:H,hskipBeforeAndAfter:!0,maxNumCols:H.length};return Ai(C.parser,J,gi(C.envName))},htmlBuilder:ji,mathmlBuilder:yr}),cr({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(C){var f={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[C.envName.replace("*","")],x="c",A={hskipBeforeAndAfter:!1,cols:[{type:"align",align:x}]};if(C.envName.charAt(C.envName.length-1)==="*"){var H=C.parser;if(H.consumeSpaces(),H.fetch().text==="["){if(H.consume(),H.consumeSpaces(),x=H.fetch().text,"lcr".indexOf(x)===-1)throw new Dt("Expected l or c or r",H.nextToken);H.consume(),H.consumeSpaces(),H.expect("]"),H.consume(),A.cols=[{type:"align",align:x}]}}var J=Ai(C.parser,A,gi(C.envName)),Et=Math.max(0,...J.body.map(Zt=>Zt.length));return J.cols=new Array(Et).fill({type:"align",align:x}),f?{type:"leftright",mode:C.mode,body:[J],left:f[0],right:f[1],rightColor:void 0}:J},htmlBuilder:ji,mathmlBuilder:yr}),cr({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(C){var f={arraystretch:.5},x=Ai(C.parser,f,"script");return x.colSeparationType="small",x},htmlBuilder:ji,mathmlBuilder:yr}),cr({type:"array",names:["subarray"],props:{numArgs:1},handler(C,f){var x=ra(f[0]),A=x?[f[0]]:Tr(f[0],"ordgroup").body,H=A.map(function(Et){var Zt=Wa(Et),Xt=Zt.text;if("lc".indexOf(Xt)!==-1)return{type:"align",align:Xt};throw new Dt("Unknown column alignment: "+Xt,Et)});if(H.length>1)throw new Dt("{subarray} can contain only one column");var J={cols:H,hskipBeforeAndAfter:!1,arraystretch:.5};if(J=Ai(C.parser,J,"script"),J.body.length>0&&J.body[0].length>1)throw new Dt("{subarray} can contain only one column");return J},htmlBuilder:ji,mathmlBuilder:yr}),cr({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(C){var f={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},x=Ai(C.parser,f,gi(C.envName));return{type:"leftright",mode:C.mode,body:[x],left:C.envName.indexOf("r")>-1?".":"\\{",right:C.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:ji,mathmlBuilder:yr}),cr({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:$r,htmlBuilder:ji,mathmlBuilder:yr}),cr({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(C){Ne.contains(["gather","gather*"],C.envName)&&Li(C);var f={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:sr(C.envName),emptySingleRow:!0,leqno:C.parser.settings.leqno};return Ai(C.parser,f,"display")},htmlBuilder:ji,mathmlBuilder:yr}),cr({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:$r,htmlBuilder:ji,mathmlBuilder:yr}),cr({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(C){Li(C);var f={autoTag:sr(C.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:C.parser.settings.leqno};return Ai(C.parser,f,"display")},htmlBuilder:ji,mathmlBuilder:yr}),cr({type:"array",names:["CD"],props:{numArgs:0},handler(C){return Li(C),ac(C.parser)},htmlBuilder:ji,mathmlBuilder:yr}),jt("\\nonumber","\\gdef\\@eqnsw{0}"),jt("\\notag","\\nonumber"),vr({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(C,f){throw new Dt(C.funcName+" valid only within array environment")}});var Bi=pr;vr({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(C,f){var{parser:x,funcName:A}=C,H=f[0];if(H.type!=="ordgroup")throw new Dt("Invalid environment name",H);for(var J="",Et=0;Et<H.body.length;++Et)J+=Tr(H.body[Et],"textord").text;if(A==="\\begin"){if(!Bi.hasOwnProperty(J))throw new Dt("No such environment: "+J,H);var Zt=Bi[J],{args:Xt,optArgs:Be}=x.parseArguments("\\begin{"+J+"}",Zt),un={mode:x.mode,envName:J,parser:x},Dn=Zt.handler(un,Xt,Be);x.expect("\\end",!1);var Qn=x.nextToken,si=Tr(x.parseFunction(),"environment");if(si.name!==J)throw new Dt("Mismatch: \\begin{"+J+"} matched by \\end{"+si.name+"}",Qn);return Dn}return{type:"environment",mode:x.mode,name:J,nameGroup:H}}});var no=(C,f)=>{var x=C.font,A=f.withFont(x);return qr(C.body,A)},co=(C,f)=>{var x=C.font,A=f.withFont(x);return ss(C.body,A)},S={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};vr({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(C,f)=>{var{parser:x,funcName:A}=C,H=Kl(f[0]),J=A;return J in S&&(J=S[J]),{type:"font",mode:x.mode,font:J.slice(1),body:H}},htmlBuilder:no,mathmlBuilder:co}),vr({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(C,f)=>{var{parser:x}=C,A=f[0],H=Ne.isCharacterBox(A);return{type:"mclass",mode:x.mode,mclass:Ho(A),body:[{type:"font",mode:x.mode,font:"boldsymbol",body:A}],isCharacterBox:H}}}),vr({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(C,f)=>{var{parser:x,funcName:A,breakOnTokenText:H}=C,{mode:J}=x,Et=x.parseExpression(!0,H),Zt="math"+A.slice(1);return{type:"font",mode:J,font:Zt,body:{type:"ordgroup",mode:x.mode,body:Et}}},htmlBuilder:no,mathmlBuilder:co});var P=(C,f)=>{var x=f;return C==="display"?x=x.id>=Ei.SCRIPT.id?x.text():Ei.DISPLAY:C==="text"&&x.size===Ei.DISPLAY.size?x=Ei.TEXT:C==="script"?x=Ei.SCRIPT:C==="scriptscript"&&(x=Ei.SCRIPTSCRIPT),x},U=(C,f)=>{var x=P(C.size,f.style),A=x.fracNum(),H=x.fracDen(),J;J=f.havingStyle(A);var Et=qr(C.numer,J,f);if(C.continued){var Zt=8.5/f.fontMetrics().ptPerEm,Xt=3.5/f.fontMetrics().ptPerEm;Et.height=Et.height<Zt?Zt:Et.height,Et.depth=Et.depth<Xt?Xt:Et.depth}J=f.havingStyle(H);var Be=qr(C.denom,J,f),un,Dn,Qn;C.hasBarLine?(C.barSize?(Dn=Mi(C.barSize,f),un=Ln.makeLineSpan("frac-line",f,Dn)):un=Ln.makeLineSpan("frac-line",f),Dn=un.height,Qn=un.height):(un=null,Dn=0,Qn=f.fontMetrics().defaultRuleThickness);var si,Yi,Xi;x.size===Ei.DISPLAY.size||C.size==="display"?(si=f.fontMetrics().num1,Dn>0?Yi=3*Qn:Yi=7*Qn,Xi=f.fontMetrics().denom1):(Dn>0?(si=f.fontMetrics().num2,Yi=Qn):(si=f.fontMetrics().num3,Yi=3*Qn),Xi=f.fontMetrics().denom2);var Ar;if(un){var ko=f.fontMetrics().axisHeight;si-Et.depth-(ko+.5*Dn)<Yi&&(si+=Yi-(si-Et.depth-(ko+.5*Dn))),ko-.5*Dn-(Be.height-Xi)<Yi&&(Xi+=Yi-(ko-.5*Dn-(Be.height-Xi)));var Ao=-(ko-.5*Dn);Ar=Ln.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Be,shift:Xi},{type:"elem",elem:un,shift:Ao},{type:"elem",elem:Et,shift:-si}]},f)}else{var Pr=si-Et.depth-(Be.height-Xi);Pr<Yi&&(si+=.5*(Yi-Pr),Xi+=.5*(Yi-Pr)),Ar=Ln.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Be,shift:Xi},{type:"elem",elem:Et,shift:-si}]},f)}J=f.havingStyle(x),Ar.height*=J.sizeMultiplier/f.sizeMultiplier,Ar.depth*=J.sizeMultiplier/f.sizeMultiplier;var jo;x.size===Ei.DISPLAY.size?jo=f.fontMetrics().delim1:x.size===Ei.SCRIPTSCRIPT.size?jo=f.havingStyle(Ei.SCRIPT).fontMetrics().delim2:jo=f.fontMetrics().delim2;var ns,So;return C.leftDelim==null?ns=cs(f,["mopen"]):ns=Vn.customSizedDelim(C.leftDelim,jo,!0,f.havingStyle(x),C.mode,["mopen"]),C.continued?So=Ln.makeSpan([]):C.rightDelim==null?So=cs(f,["mclose"]):So=Vn.customSizedDelim(C.rightDelim,jo,!0,f.havingStyle(x),C.mode,["mclose"]),Ln.makeSpan(["mord"].concat(J.sizingClasses(f)),[ns,Ln.makeSpan(["mfrac"],[Ar]),So],f)},Z=(C,f)=>{var x=new Ii.MathNode("mfrac",[ss(C.numer,f),ss(C.denom,f)]);if(!C.hasBarLine)x.setAttribute("linethickness","0px");else if(C.barSize){var A=Mi(C.barSize,f);x.setAttribute("linethickness",le(A))}var H=P(C.size,f.style);if(H.size!==f.style.size){x=new Ii.MathNode("mstyle",[x]);var J=H.size===Ei.DISPLAY.size?"true":"false";x.setAttribute("displaystyle",J),x.setAttribute("scriptlevel","0")}if(C.leftDelim!=null||C.rightDelim!=null){var Et=[];if(C.leftDelim!=null){var Zt=new Ii.MathNode("mo",[new Ii.TextNode(C.leftDelim.replace("\\",""))]);Zt.setAttribute("fence","true"),Et.push(Zt)}if(Et.push(x),C.rightDelim!=null){var Xt=new Ii.MathNode("mo",[new Ii.TextNode(C.rightDelim.replace("\\",""))]);Xt.setAttribute("fence","true"),Et.push(Xt)}return Zu(Et)}return x};vr({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(C,f)=>{var{parser:x,funcName:A}=C,H=f[0],J=f[1],Et,Zt=null,Xt=null,Be="auto";switch(A){case"\\dfrac":case"\\frac":case"\\tfrac":Et=!0;break;case"\\\\atopfrac":Et=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":Et=!1,Zt="(",Xt=")";break;case"\\\\bracefrac":Et=!1,Zt="\\{",Xt="\\}";break;case"\\\\brackfrac":Et=!1,Zt="[",Xt="]";break;default:throw new Error("Unrecognized genfrac command")}switch(A){case"\\dfrac":case"\\dbinom":Be="display";break;case"\\tfrac":case"\\tbinom":Be="text";break}return{type:"genfrac",mode:x.mode,continued:!1,numer:H,denom:J,hasBarLine:Et,leftDelim:Zt,rightDelim:Xt,size:Be,barSize:null}},htmlBuilder:U,mathmlBuilder:Z}),vr({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(C,f)=>{var{parser:x,funcName:A}=C,H=f[0],J=f[1];return{type:"genfrac",mode:x.mode,continued:!0,numer:H,denom:J,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),vr({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(C){var{parser:f,funcName:x,token:A}=C,H;switch(x){case"\\over":H="\\frac";break;case"\\choose":H="\\binom";break;case"\\atop":H="\\\\atopfrac";break;case"\\brace":H="\\\\bracefrac";break;case"\\brack":H="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:f.mode,replaceWith:H,token:A}}});var ot=["display","text","script","scriptscript"],ut=function(f){var x=null;return f.length>0&&(x=f,x=x==="."?null:x),x};vr({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(C,f){var{parser:x}=C,A=f[4],H=f[5],J=Kl(f[0]),Et=J.type==="atom"&&J.family==="open"?ut(J.text):null,Zt=Kl(f[1]),Xt=Zt.type==="atom"&&Zt.family==="close"?ut(Zt.text):null,Be=Tr(f[2],"size"),un,Dn=null;Be.isBlank?un=!0:(Dn=Be.value,un=Dn.number>0);var Qn="auto",si=f[3];if(si.type==="ordgroup"){if(si.body.length>0){var Yi=Tr(si.body[0],"textord");Qn=ot[Number(Yi.text)]}}else si=Tr(si,"textord"),Qn=ot[Number(si.text)];return{type:"genfrac",mode:x.mode,numer:A,denom:H,continued:!1,hasBarLine:un,barSize:Dn,leftDelim:Et,rightDelim:Xt,size:Qn}},htmlBuilder:U,mathmlBuilder:Z}),vr({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(C,f){var{parser:x,funcName:A,token:H}=C;return{type:"infix",mode:x.mode,replaceWith:"\\\\abovefrac",size:Tr(f[0],"size").value,token:H}}}),vr({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(C,f)=>{var{parser:x,funcName:A}=C,H=f[0],J=xe(Tr(f[1],"infix").size),Et=f[2],Zt=J.number>0;return{type:"genfrac",mode:x.mode,numer:H,denom:Et,continued:!1,hasBarLine:Zt,barSize:J,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:U,mathmlBuilder:Z});var bt=(C,f)=>{var x=f.style,A,H;C.type==="supsub"?(A=C.sup?qr(C.sup,f.havingStyle(x.sup()),f):qr(C.sub,f.havingStyle(x.sub()),f),H=Tr(C.base,"horizBrace")):H=Tr(C,"horizBrace");var J=qr(H.base,f.havingBaseStyle(Ei.DISPLAY)),Et=aa.svgSpan(H,f),Zt;if(H.isOver?(Zt=Ln.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:J},{type:"kern",size:.1},{type:"elem",elem:Et}]},f),Zt.children[0].children[0].children[1].classes.push("svg-align")):(Zt=Ln.makeVList({positionType:"bottom",positionData:J.depth+.1+Et.height,children:[{type:"elem",elem:Et},{type:"kern",size:.1},{type:"elem",elem:J}]},f),Zt.children[0].children[0].children[0].classes.push("svg-align")),A){var Xt=Ln.makeSpan(["mord",H.isOver?"mover":"munder"],[Zt],f);H.isOver?Zt=Ln.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Xt},{type:"kern",size:.2},{type:"elem",elem:A}]},f):Zt=Ln.makeVList({positionType:"bottom",positionData:Xt.depth+.2+A.height+A.depth,children:[{type:"elem",elem:A},{type:"kern",size:.2},{type:"elem",elem:Xt}]},f)}return Ln.makeSpan(["mord",H.isOver?"mover":"munder"],[Zt],f)},Jt=(C,f)=>{var x=aa.mathMLnode(C.label);return new Ii.MathNode(C.isOver?"mover":"munder",[ss(C.base,f),x])};vr({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(C,f){var{parser:x,funcName:A}=C;return{type:"horizBrace",mode:x.mode,label:A,isOver:/^\\over/.test(A),base:f[0]}},htmlBuilder:bt,mathmlBuilder:Jt}),vr({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(C,f)=>{var{parser:x}=C,A=f[1],H=Tr(f[0],"url").url;return x.settings.isTrusted({command:"\\href",url:H})?{type:"href",mode:x.mode,href:H,body:Es(A)}:x.formatUnsupportedCmd("\\href")},htmlBuilder:(C,f)=>{var x=Wr(C.body,f,!1);return Ln.makeAnchor(C.href,[],x,f)},mathmlBuilder:(C,f)=>{var x=au(C.body,f);return x instanceof Lo||(x=new Lo("mrow",[x])),x.setAttribute("href",C.href),x}}),vr({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(C,f)=>{var{parser:x}=C,A=Tr(f[0],"url").url;if(!x.settings.isTrusted({command:"\\url",url:A}))return x.formatUnsupportedCmd("\\url");for(var H=[],J=0;J<A.length;J++){var Et=A[J];Et==="~"&&(Et="\\textasciitilde"),H.push({type:"textord",mode:"text",text:Et})}var Zt={type:"text",mode:x.mode,font:"\\texttt",body:H};return{type:"href",mode:x.mode,href:A,body:Es(Zt)}}}),vr({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(C,f){var{parser:x}=C;return{type:"hbox",mode:x.mode,body:Es(f[0])}},htmlBuilder(C,f){var x=Wr(C.body,f,!1);return Ln.makeFragment(x)},mathmlBuilder(C,f){return new Ii.MathNode("mrow",$a(C.body,f))}}),vr({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(C,f)=>{var{parser:x,funcName:A,token:H}=C,J=Tr(f[0],"raw").string,Et=f[1];x.settings.strict&&x.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var Zt,Xt={};switch(A){case"\\htmlClass":Xt.class=J,Zt={command:"\\htmlClass",class:J};break;case"\\htmlId":Xt.id=J,Zt={command:"\\htmlId",id:J};break;case"\\htmlStyle":Xt.style=J,Zt={command:"\\htmlStyle",style:J};break;case"\\htmlData":{for(var Be=J.split(","),un=0;un<Be.length;un++){var Dn=Be[un].split("=");if(Dn.length!==2)throw new Dt("Error parsing key-value for \\htmlData");Xt["data-"+Dn[0].trim()]=Dn[1].trim()}Zt={command:"\\htmlData",attributes:Xt};break}default:throw new Error("Unrecognized html command")}return x.settings.isTrusted(Zt)?{type:"html",mode:x.mode,attributes:Xt,body:Es(Et)}:x.formatUnsupportedCmd(A)},htmlBuilder:(C,f)=>{var x=Wr(C.body,f,!1),A=["enclosing"];C.attributes.class&&A.push(...C.attributes.class.trim().split(/\s+/));var H=Ln.makeSpan(A,x,f);for(var J in C.attributes)J!=="class"&&C.attributes.hasOwnProperty(J)&&H.setAttribute(J,C.attributes[J]);return H},mathmlBuilder:(C,f)=>au(C.body,f)}),vr({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(C,f)=>{var{parser:x}=C;return{type:"htmlmathml",mode:x.mode,html:Es(f[0]),mathml:Es(f[1])}},htmlBuilder:(C,f)=>{var x=Wr(C.html,f,!1);return Ln.makeFragment(x)},mathmlBuilder:(C,f)=>au(C.mathml,f)});var Ie=function(f){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(f))return{number:+f,unit:"bp"};var x=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(f);if(!x)throw new Dt("Invalid size: '"+f+"' in \\includegraphics");var A={number:+(x[1]+x[2]),unit:x[3]};if(!ir(A))throw new Dt("Invalid unit: '"+A.unit+"' in \\includegraphics.");return A};vr({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(C,f,x)=>{var{parser:A}=C,H={number:0,unit:"em"},J={number:.9,unit:"em"},Et={number:0,unit:"em"},Zt="";if(x[0])for(var Xt=Tr(x[0],"raw").string,Be=Xt.split(","),un=0;un<Be.length;un++){var Dn=Be[un].split("=");if(Dn.length===2){var Qn=Dn[1].trim();switch(Dn[0].trim()){case"alt":Zt=Qn;break;case"width":H=Ie(Qn);break;case"height":J=Ie(Qn);break;case"totalheight":Et=Ie(Qn);break;default:throw new Dt("Invalid key: '"+Dn[0]+"' in \\includegraphics.")}}}var si=Tr(f[0],"url").url;return Zt===""&&(Zt=si,Zt=Zt.replace(/^.*[\\/]/,""),Zt=Zt.substring(0,Zt.lastIndexOf("."))),A.settings.isTrusted({command:"\\includegraphics",url:si})?{type:"includegraphics",mode:A.mode,alt:Zt,width:H,height:J,totalheight:Et,src:si}:A.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(C,f)=>{var x=Mi(C.height,f),A=0;C.totalheight.number>0&&(A=Mi(C.totalheight,f)-x);var H=0;C.width.number>0&&(H=Mi(C.width,f));var J={height:le(x+A)};H>0&&(J.width=le(H)),A>0&&(J.verticalAlign=le(-A));var Et=new pi(C.src,C.alt,J);return Et.height=x,Et.depth=A,Et},mathmlBuilder:(C,f)=>{var x=new Ii.MathNode("mglyph",[]);x.setAttribute("alt",C.alt);var A=Mi(C.height,f),H=0;if(C.totalheight.number>0&&(H=Mi(C.totalheight,f)-A,x.setAttribute("valign",le(-H))),x.setAttribute("height",le(A+H)),C.width.number>0){var J=Mi(C.width,f);x.setAttribute("width",le(J))}return x.setAttribute("src",C.src),x}}),vr({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(C,f){var{parser:x,funcName:A}=C,H=Tr(f[0],"size");if(x.settings.strict){var J=A[1]==="m",Et=H.value.unit==="mu";J?(Et||x.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+A+" supports only mu units, "+("not "+H.value.unit+" units")),x.mode!=="math"&&x.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+A+" works only in math mode")):Et&&x.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+A+" doesn't support mu units")}return{type:"kern",mode:x.mode,dimension:H.value}},htmlBuilder(C,f){return Ln.makeGlue(C.dimension,f)},mathmlBuilder(C,f){var x=Mi(C.dimension,f);return new Ii.SpaceNode(x)}}),vr({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(C,f)=>{var{parser:x,funcName:A}=C,H=f[0];return{type:"lap",mode:x.mode,alignment:A.slice(5),body:H}},htmlBuilder:(C,f)=>{var x;C.alignment==="clap"?(x=Ln.makeSpan([],[qr(C.body,f)]),x=Ln.makeSpan(["inner"],[x],f)):x=Ln.makeSpan(["inner"],[qr(C.body,f)]);var A=Ln.makeSpan(["fix"],[]),H=Ln.makeSpan([C.alignment],[x,A],f),J=Ln.makeSpan(["strut"]);return J.style.height=le(H.height+H.depth),H.depth&&(J.style.verticalAlign=le(-H.depth)),H.children.unshift(J),H=Ln.makeSpan(["thinbox"],[H],f),Ln.makeSpan(["mord","vbox"],[H],f)},mathmlBuilder:(C,f)=>{var x=new Ii.MathNode("mpadded",[ss(C.body,f)]);if(C.alignment!=="rlap"){var A=C.alignment==="llap"?"-1":"-0.5";x.setAttribute("lspace",A+"width")}return x.setAttribute("width","0px"),x}}),vr({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(C,f){var{funcName:x,parser:A}=C,H=A.mode;A.switchMode("math");var J=x==="\\("?"\\)":"$",Et=A.parseExpression(!1,J);return A.expect(J),A.switchMode(H),{type:"styling",mode:A.mode,style:"text",body:Et}}}),vr({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(C,f){throw new Dt("Mismatched "+C.funcName)}});var Ue=(C,f)=>{switch(f.style.size){case Ei.DISPLAY.size:return C.display;case Ei.TEXT.size:return C.text;case Ei.SCRIPT.size:return C.script;case Ei.SCRIPTSCRIPT.size:return C.scriptscript;default:return C.text}};vr({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(C,f)=>{var{parser:x}=C;return{type:"mathchoice",mode:x.mode,display:Es(f[0]),text:Es(f[1]),script:Es(f[2]),scriptscript:Es(f[3])}},htmlBuilder:(C,f)=>{var x=Ue(C,f),A=Wr(x,f,!1);return Ln.makeFragment(A)},mathmlBuilder:(C,f)=>{var x=Ue(C,f);return au(x,f)}});var he=(C,f,x,A,H,J,Et)=>{C=Ln.makeSpan([],[C]);var Zt=x&&Ne.isCharacterBox(x),Xt,Be;if(f){var un=qr(f,A.havingStyle(H.sup()),A);Be={elem:un,kern:Math.max(A.fontMetrics().bigOpSpacing1,A.fontMetrics().bigOpSpacing3-un.depth)}}if(x){var Dn=qr(x,A.havingStyle(H.sub()),A);Xt={elem:Dn,kern:Math.max(A.fontMetrics().bigOpSpacing2,A.fontMetrics().bigOpSpacing4-Dn.height)}}var Qn;if(Be&&Xt){var si=A.fontMetrics().bigOpSpacing5+Xt.elem.height+Xt.elem.depth+Xt.kern+C.depth+Et;Qn=Ln.makeVList({positionType:"bottom",positionData:si,children:[{type:"kern",size:A.fontMetrics().bigOpSpacing5},{type:"elem",elem:Xt.elem,marginLeft:le(-J)},{type:"kern",size:Xt.kern},{type:"elem",elem:C},{type:"kern",size:Be.kern},{type:"elem",elem:Be.elem,marginLeft:le(J)},{type:"kern",size:A.fontMetrics().bigOpSpacing5}]},A)}else if(Xt){var Yi=C.height-Et;Qn=Ln.makeVList({positionType:"top",positionData:Yi,children:[{type:"kern",size:A.fontMetrics().bigOpSpacing5},{type:"elem",elem:Xt.elem,marginLeft:le(-J)},{type:"kern",size:Xt.kern},{type:"elem",elem:C}]},A)}else if(Be){var Xi=C.depth+Et;Qn=Ln.makeVList({positionType:"bottom",positionData:Xi,children:[{type:"elem",elem:C},{type:"kern",size:Be.kern},{type:"elem",elem:Be.elem,marginLeft:le(J)},{type:"kern",size:A.fontMetrics().bigOpSpacing5}]},A)}else return C;var Ar=[Qn];if(Xt&&J!==0&&!Zt){var Pr=Ln.makeSpan(["mspace"],[],A);Pr.style.marginRight=le(J),Ar.unshift(Pr)}return Ln.makeSpan(["mop","op-limits"],Ar,A)},Fe=["\\smallint"],Oe=(C,f)=>{var x,A,H=!1,J;C.type==="supsub"?(x=C.sup,A=C.sub,J=Tr(C.base,"op"),H=!0):J=Tr(C,"op");var Et=f.style,Zt=!1;Et.size===Ei.DISPLAY.size&&J.symbol&&!Ne.contains(Fe,J.name)&&(Zt=!0);var Xt;if(J.symbol){var Be=Zt?"Size2-Regular":"Size1-Regular",un="";if((J.name==="\\oiint"||J.name==="\\oiiint")&&(un=J.name.slice(1),J.name=un==="oiint"?"\\iint":"\\iiint"),Xt=Ln.makeSymbol(J.name,Be,"math",f,["mop","op-symbol",Zt?"large-op":"small-op"]),un.length>0){var Dn=Xt.italic,Qn=Ln.staticSvg(un+"Size"+(Zt?"2":"1"),f);Xt=Ln.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Xt,shift:0},{type:"elem",elem:Qn,shift:Zt?.08:0}]},f),J.name="\\"+un,Xt.classes.unshift("mop"),Xt.italic=Dn}}else if(J.body){var si=Wr(J.body,f,!0);si.length===1&&si[0]instanceof Re?(Xt=si[0],Xt.classes[0]="mop"):Xt=Ln.makeSpan(["mop"],si,f)}else{for(var Yi=[],Xi=1;Xi<J.name.length;Xi++)Yi.push(Ln.mathsym(J.name[Xi],J.mode,f));Xt=Ln.makeSpan(["mop"],Yi,f)}var Ar=0,Pr=0;return(Xt instanceof Re||J.name==="\\oiint"||J.name==="\\oiiint")&&!J.suppressBaseShift&&(Ar=(Xt.height-Xt.depth)/2-f.fontMetrics().axisHeight,Pr=Xt.italic),H?he(Xt,x,A,f,Et,Pr,Ar):(Ar&&(Xt.style.position="relative",Xt.style.top=le(Ar)),Xt)},ye=(C,f)=>{var x;if(C.symbol)x=new Lo("mo",[Ti(C.name,C.mode)]),Ne.contains(Fe,C.name)&&x.setAttribute("largeop","false");else if(C.body)x=new Lo("mo",$a(C.body,f));else{x=new Lo("mi",[new Ga(C.name.slice(1))]);var A=new Lo("mo",[Ti("\u2061","text")]);C.parentIsSupSub?x=new Lo("mrow",[x,A]):x=tl([x,A])}return x},Ni={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};vr({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:(C,f)=>{var{parser:x,funcName:A}=C,H=A;return H.length===1&&(H=Ni[H]),{type:"op",mode:x.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:H}},htmlBuilder:Oe,mathmlBuilder:ye}),vr({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(C,f)=>{var{parser:x}=C,A=f[0];return{type:"op",mode:x.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Es(A)}},htmlBuilder:Oe,mathmlBuilder:ye});var fi={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};vr({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(C){var{parser:f,funcName:x}=C;return{type:"op",mode:f.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:x}},htmlBuilder:Oe,mathmlBuilder:ye}),vr({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(C){var{parser:f,funcName:x}=C;return{type:"op",mode:f.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:x}},htmlBuilder:Oe,mathmlBuilder:ye}),vr({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler(C){var{parser:f,funcName:x}=C,A=x;return A.length===1&&(A=fi[A]),{type:"op",mode:f.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:A}},htmlBuilder:Oe,mathmlBuilder:ye});var zi=(C,f)=>{var x,A,H=!1,J;C.type==="supsub"?(x=C.sup,A=C.sub,J=Tr(C.base,"operatorname"),H=!0):J=Tr(C,"operatorname");var Et;if(J.body.length>0){for(var Zt=J.body.map(Dn=>{var Qn=Dn.text;return typeof Qn=="string"?{type:"textord",mode:Dn.mode,text:Qn}:Dn}),Xt=Wr(Zt,f.withFont("mathrm"),!0),Be=0;Be<Xt.length;Be++){var un=Xt[Be];un instanceof Re&&(un.text=un.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}Et=Ln.makeSpan(["mop"],Xt,f)}else Et=Ln.makeSpan(["mop"],[],f);return H?he(Et,x,A,f,f.style,0,0):Et},mi=(C,f)=>{for(var x=$a(C.body,f.withFont("mathrm")),A=!0,H=0;H<x.length;H++){var J=x[H];if(!(J instanceof Ii.SpaceNode))if(J instanceof Ii.MathNode)switch(J.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var Et=J.children[0];J.children.length===1&&Et instanceof Ii.TextNode?Et.text=Et.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):A=!1;break}default:A=!1}else A=!1}if(A){var Zt=x.map(un=>un.toText()).join("");x=[new Ii.TextNode(Zt)]}var Xt=new Ii.MathNode("mi",x);Xt.setAttribute("mathvariant","normal");var Be=new Ii.MathNode("mo",[Ti("\u2061","text")]);return C.parentIsSupSub?new Ii.MathNode("mrow",[Xt,Be]):Ii.newDocumentFragment([Xt,Be])};vr({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(C,f)=>{var{parser:x,funcName:A}=C,H=f[0];return{type:"operatorname",mode:x.mode,body:Es(H),alwaysHandleSupSub:A==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:zi,mathmlBuilder:mi}),jt("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),ll({type:"ordgroup",htmlBuilder(C,f){return C.semisimple?Ln.makeFragment(Wr(C.body,f,!1)):Ln.makeSpan(["mord"],Wr(C.body,f,!0),f)},mathmlBuilder(C,f){return au(C.body,f,!0)}}),vr({type:"overline",names:["\\overline"],props:{numArgs:1},handler(C,f){var{parser:x}=C,A=f[0];return{type:"overline",mode:x.mode,body:A}},htmlBuilder(C,f){var x=qr(C.body,f.havingCrampedStyle()),A=Ln.makeLineSpan("overline-line",f),H=f.fontMetrics().defaultRuleThickness,J=Ln.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:x},{type:"kern",size:3*H},{type:"elem",elem:A},{type:"kern",size:H}]},f);return Ln.makeSpan(["mord","overline"],[J],f)},mathmlBuilder(C,f){var x=new Ii.MathNode("mo",[new Ii.TextNode("\u203E")]);x.setAttribute("stretchy","true");var A=new Ii.MathNode("mover",[ss(C.body,f),x]);return A.setAttribute("accent","true"),A}}),vr({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(C,f)=>{var{parser:x}=C,A=f[0];return{type:"phantom",mode:x.mode,body:Es(A)}},htmlBuilder:(C,f)=>{var x=Wr(C.body,f.withPhantom(),!1);return Ln.makeFragment(x)},mathmlBuilder:(C,f)=>{var x=$a(C.body,f);return new Ii.MathNode("mphantom",x)}}),vr({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(C,f)=>{var{parser:x}=C,A=f[0];return{type:"hphantom",mode:x.mode,body:A}},htmlBuilder:(C,f)=>{var x=Ln.makeSpan([],[qr(C.body,f.withPhantom())]);if(x.height=0,x.depth=0,x.children)for(var A=0;A<x.children.length;A++)x.children[A].height=0,x.children[A].depth=0;return x=Ln.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:x}]},f),Ln.makeSpan(["mord"],[x],f)},mathmlBuilder:(C,f)=>{var x=$a(Es(C.body),f),A=new Ii.MathNode("mphantom",x),H=new Ii.MathNode("mpadded",[A]);return H.setAttribute("height","0px"),H.setAttribute("depth","0px"),H}}),vr({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(C,f)=>{var{parser:x}=C,A=f[0];return{type:"vphantom",mode:x.mode,body:A}},htmlBuilder:(C,f)=>{var x=Ln.makeSpan(["inner"],[qr(C.body,f.withPhantom())]),A=Ln.makeSpan(["fix"],[]);return Ln.makeSpan(["mord","rlap"],[x,A],f)},mathmlBuilder:(C,f)=>{var x=$a(Es(C.body),f),A=new Ii.MathNode("mphantom",x),H=new Ii.MathNode("mpadded",[A]);return H.setAttribute("width","0px"),H}}),vr({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(C,f){var{parser:x}=C,A=Tr(f[0],"size").value,H=f[1];return{type:"raisebox",mode:x.mode,dy:A,body:H}},htmlBuilder(C,f){var x=qr(C.body,f),A=Mi(C.dy,f);return Ln.makeVList({positionType:"shift",positionData:-A,children:[{type:"elem",elem:x}]},f)},mathmlBuilder(C,f){var x=new Ii.MathNode("mpadded",[ss(C.body,f)]),A=C.dy.number+C.dy.unit;return x.setAttribute("voffset",A),x}}),vr({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(C){var{parser:f}=C;return{type:"internal",mode:f.mode}}}),vr({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(C,f,x){var{parser:A}=C,H=x[0],J=Tr(f[0],"size"),Et=Tr(f[1],"size");return{type:"rule",mode:A.mode,shift:H&&Tr(H,"size").value,width:J.value,height:Et.value}},htmlBuilder(C,f){var x=Ln.makeSpan(["mord","rule"],[],f),A=Mi(C.width,f),H=Mi(C.height,f),J=C.shift?Mi(C.shift,f):0;return x.style.borderRightWidth=le(A),x.style.borderTopWidth=le(H),x.style.bottom=le(J),x.width=A,x.height=H+J,x.depth=-J,x.maxFontSize=H*1.125*f.sizeMultiplier,x},mathmlBuilder(C,f){var x=Mi(C.width,f),A=Mi(C.height,f),H=C.shift?Mi(C.shift,f):0,J=f.color&&f.getColor()||"black",Et=new Ii.MathNode("mspace");Et.setAttribute("mathbackground",J),Et.setAttribute("width",le(x)),Et.setAttribute("height",le(A));var Zt=new Ii.MathNode("mpadded",[Et]);return H>=0?Zt.setAttribute("height",le(H)):(Zt.setAttribute("height",le(H)),Zt.setAttribute("depth",le(-H))),Zt.setAttribute("voffset",le(H)),Zt}});function Ri(C,f,x){for(var A=Wr(C,f,!1),H=f.sizeMultiplier/x.sizeMultiplier,J=0;J<A.length;J++){var Et=A[J].classes.indexOf("sizing");Et<0?Array.prototype.push.apply(A[J].classes,f.sizingClasses(x)):A[J].classes[Et+1]==="reset-size"+f.size&&(A[J].classes[Et+1]="reset-size"+x.size),A[J].height*=H,A[J].depth*=H}return Ln.makeFragment(A)}var tr=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],oo=(C,f)=>{var x=f.havingSize(C.size);return Ri(C.body,x,f)};vr({type:"sizing",names:tr,props:{numArgs:0,allowedInText:!0},handler:(C,f)=>{var{breakOnTokenText:x,funcName:A,parser:H}=C,J=H.parseExpression(!1,x);return{type:"sizing",mode:H.mode,size:tr.indexOf(A)+1,body:J}},htmlBuilder:oo,mathmlBuilder:(C,f)=>{var x=f.havingSize(C.size),A=$a(C.body,x),H=new Ii.MathNode("mstyle",A);return H.setAttribute("mathsize",le(x.sizeMultiplier)),H}}),vr({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(C,f,x)=>{var{parser:A}=C,H=!1,J=!1,Et=x[0]&&Tr(x[0],"ordgroup");if(Et)for(var Zt="",Xt=0;Xt<Et.body.length;++Xt){var Be=Et.body[Xt];if(Zt=Be.text,Zt==="t")H=!0;else if(Zt==="b")J=!0;else{H=!1,J=!1;break}}else H=!0,J=!0;var un=f[0];return{type:"smash",mode:A.mode,body:un,smashHeight:H,smashDepth:J}},htmlBuilder:(C,f)=>{var x=Ln.makeSpan([],[qr(C.body,f)]);if(!C.smashHeight&&!C.smashDepth)return x;if(C.smashHeight&&(x.height=0,x.children))for(var A=0;A<x.children.length;A++)x.children[A].height=0;if(C.smashDepth&&(x.depth=0,x.children))for(var H=0;H<x.children.length;H++)x.children[H].depth=0;var J=Ln.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:x}]},f);return Ln.makeSpan(["mord"],[J],f)},mathmlBuilder:(C,f)=>{var x=new Ii.MathNode("mpadded",[ss(C.body,f)]);return C.smashHeight&&x.setAttribute("height","0px"),C.smashDepth&&x.setAttribute("depth","0px"),x}}),vr({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(C,f,x){var{parser:A}=C,H=x[0],J=f[0];return{type:"sqrt",mode:A.mode,body:J,index:H}},htmlBuilder(C,f){var x=qr(C.body,f.havingCrampedStyle());x.height===0&&(x.height=f.fontMetrics().xHeight),x=Ln.wrapFragment(x,f);var A=f.fontMetrics(),H=A.defaultRuleThickness,J=H;f.style.id<Ei.TEXT.id&&(J=f.fontMetrics().xHeight);var Et=H+J/4,Zt=x.height+x.depth+Et+H,{span:Xt,ruleWidth:Be,advanceWidth:un}=Vn.sqrtImage(Zt,f),Dn=Xt.height-Be;Dn>x.height+x.depth+Et&&(Et=(Et+Dn-x.height-x.depth)/2);var Qn=Xt.height-x.height-Et-Be;x.style.paddingLeft=le(un);var si=Ln.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:x,wrapperClasses:["svg-align"]},{type:"kern",size:-(x.height+Qn)},{type:"elem",elem:Xt},{type:"kern",size:Be}]},f);if(C.index){var Yi=f.havingStyle(Ei.SCRIPTSCRIPT),Xi=qr(C.index,Yi,f),Ar=.6*(si.height-si.depth),Pr=Ln.makeVList({positionType:"shift",positionData:-Ar,children:[{type:"elem",elem:Xi}]},f),ko=Ln.makeSpan(["root"],[Pr]);return Ln.makeSpan(["mord","sqrt"],[ko,si],f)}else return Ln.makeSpan(["mord","sqrt"],[si],f)},mathmlBuilder(C,f){var{body:x,index:A}=C;return A?new Ii.MathNode("mroot",[ss(x,f),ss(A,f)]):new Ii.MathNode("msqrt",[ss(x,f)])}});var ho={display:Ei.DISPLAY,text:Ei.TEXT,script:Ei.SCRIPT,scriptscript:Ei.SCRIPTSCRIPT};vr({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(C,f){var{breakOnTokenText:x,funcName:A,parser:H}=C,J=H.parseExpression(!0,x),Et=A.slice(1,A.length-5);return{type:"styling",mode:H.mode,style:Et,body:J}},htmlBuilder(C,f){var x=ho[C.style],A=f.havingStyle(x).withFont("");return Ri(C.body,A,f)},mathmlBuilder(C,f){var x=ho[C.style],A=f.havingStyle(x),H=$a(C.body,A),J=new Ii.MathNode("mstyle",H),Et={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},Zt=Et[C.style];return J.setAttribute("scriptlevel",Zt[0]),J.setAttribute("displaystyle",Zt[1]),J}});var ti=function(f,x){var A=f.base;if(A)if(A.type==="op"){var H=A.limits&&(x.style.size===Ei.DISPLAY.size||A.alwaysHandleSupSub);return H?Oe:null}else if(A.type==="operatorname"){var J=A.alwaysHandleSupSub&&(x.style.size===Ei.DISPLAY.size||A.limits);return J?zi:null}else{if(A.type==="accent")return Ne.isCharacterBox(A.base)?wu:null;if(A.type==="horizBrace"){var Et=!f.sub;return Et===A.isOver?bt:null}else return null}else return null};ll({type:"supsub",htmlBuilder(C,f){var x=ti(C,f);if(x)return x(C,f);var{base:A,sup:H,sub:J}=C,Et=qr(A,f),Zt,Xt,Be=f.fontMetrics(),un=0,Dn=0,Qn=A&&Ne.isCharacterBox(A);if(H){var si=f.havingStyle(f.style.sup());Zt=qr(H,si,f),Qn||(un=Et.height-si.fontMetrics().supDrop*si.sizeMultiplier/f.sizeMultiplier)}if(J){var Yi=f.havingStyle(f.style.sub());Xt=qr(J,Yi,f),Qn||(Dn=Et.depth+Yi.fontMetrics().subDrop*Yi.sizeMultiplier/f.sizeMultiplier)}var Xi;f.style===Ei.DISPLAY?Xi=Be.sup1:f.style.cramped?Xi=Be.sup3:Xi=Be.sup2;var Ar=f.sizeMultiplier,Pr=le(.5/Be.ptPerEm/Ar),ko=null;if(Xt){var Ao=C.base&&C.base.type==="op"&&C.base.name&&(C.base.name==="\\oiint"||C.base.name==="\\oiiint");(Et instanceof Re||Ao)&&(ko=le(-Et.italic))}var jo;if(Zt&&Xt){un=Math.max(un,Xi,Zt.depth+.25*Be.xHeight),Dn=Math.max(Dn,Be.sub2);var ns=Be.defaultRuleThickness,So=4*ns;if(un-Zt.depth-(Xt.height-Dn)<So){Dn=So-(un-Zt.depth)+Xt.height;var Fr=.8*Be.xHeight-(un-Zt.depth);Fr>0&&(un+=Fr,Dn-=Fr)}var wo=[{type:"elem",elem:Xt,shift:Dn,marginRight:Pr,marginLeft:ko},{type:"elem",elem:Zt,shift:-un,marginRight:Pr}];jo=Ln.makeVList({positionType:"individualShift",children:wo},f)}else if(Xt){Dn=Math.max(Dn,Be.sub1,Xt.height-.8*Be.xHeight);var Go=[{type:"elem",elem:Xt,marginLeft:ko,marginRight:Pr}];jo=Ln.makeVList({positionType:"shift",positionData:Dn,children:Go},f)}else if(Zt)un=Math.max(un,Xi,Zt.depth+.25*Be.xHeight),jo=Ln.makeVList({positionType:"shift",positionData:-un,children:[{type:"elem",elem:Zt,marginRight:Pr}]},f);else throw new Error("supsub must have either sup or sub.");var Na=os(Et,"right")||"mord";return Ln.makeSpan([Na],[Et,Ln.makeSpan(["msupsub"],[jo])],f)},mathmlBuilder(C,f){var x=!1,A,H;C.base&&C.base.type==="horizBrace"&&(H=!!C.sup,H===C.base.isOver&&(x=!0,A=C.base.isOver)),C.base&&(C.base.type==="op"||C.base.type==="operatorname")&&(C.base.parentIsSupSub=!0);var J=[ss(C.base,f)];C.sub&&J.push(ss(C.sub,f)),C.sup&&J.push(ss(C.sup,f));var Et;if(x)Et=A?"mover":"munder";else if(C.sub)if(C.sup){var Be=C.base;Be&&Be.type==="op"&&Be.limits&&f.style===Ei.DISPLAY||Be&&Be.type==="operatorname"&&Be.alwaysHandleSupSub&&(f.style===Ei.DISPLAY||Be.limits)?Et="munderover":Et="msubsup"}else{var Xt=C.base;Xt&&Xt.type==="op"&&Xt.limits&&(f.style===Ei.DISPLAY||Xt.alwaysHandleSupSub)||Xt&&Xt.type==="operatorname"&&Xt.alwaysHandleSupSub&&(Xt.limits||f.style===Ei.DISPLAY)?Et="munder":Et="msub"}else{var Zt=C.base;Zt&&Zt.type==="op"&&Zt.limits&&(f.style===Ei.DISPLAY||Zt.alwaysHandleSupSub)||Zt&&Zt.type==="operatorname"&&Zt.alwaysHandleSupSub&&(Zt.limits||f.style===Ei.DISPLAY)?Et="mover":Et="msup"}return new Ii.MathNode(Et,J)}}),ll({type:"atom",htmlBuilder(C,f){return Ln.mathsym(C.text,C.mode,f,["m"+C.family])},mathmlBuilder(C,f){var x=new Ii.MathNode("mo",[Ti(C.text,C.mode)]);if(C.family==="bin"){var A=Vt(C,f);A==="bold-italic"&&x.setAttribute("mathvariant",A)}else C.family==="punct"?x.setAttribute("separator","true"):(C.family==="open"||C.family==="close")&&x.setAttribute("stretchy","false");return x}});var Eo={mi:"italic",mn:"normal",mtext:"normal"};ll({type:"mathord",htmlBuilder(C,f){return Ln.makeOrd(C,f,"mathord")},mathmlBuilder(C,f){var x=new Ii.MathNode("mi",[Ti(C.text,C.mode,f)]),A=Vt(C,f)||"italic";return A!==Eo[x.type]&&x.setAttribute("mathvariant",A),x}}),ll({type:"textord",htmlBuilder(C,f){return Ln.makeOrd(C,f,"textord")},mathmlBuilder(C,f){var x=Ti(C.text,C.mode,f),A=Vt(C,f)||"normal",H;return C.mode==="text"?H=new Ii.MathNode("mtext",[x]):/[0-9]/.test(C.text)?H=new Ii.MathNode("mn",[x]):C.text==="\\prime"?H=new Ii.MathNode("mo",[x]):H=new Ii.MathNode("mi",[x]),A!==Eo[H.type]&&H.setAttribute("mathvariant",A),H}});var Mo={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},po={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};ll({type:"spacing",htmlBuilder(C,f){if(po.hasOwnProperty(C.text)){var x=po[C.text].className||"";if(C.mode==="text"){var A=Ln.makeOrd(C,f,"textord");return A.classes.push(x),A}else return Ln.makeSpan(["mspace",x],[Ln.mathsym(C.text,C.mode,f)],f)}else{if(Mo.hasOwnProperty(C.text))return Ln.makeSpan(["mspace",Mo[C.text]],[],f);throw new Dt('Unknown type of space "'+C.text+'"')}},mathmlBuilder(C,f){var x;if(po.hasOwnProperty(C.text))x=new Ii.MathNode("mtext",[new Ii.TextNode("\xA0")]);else{if(Mo.hasOwnProperty(C.text))return new Ii.MathNode("mspace");throw new Dt('Unknown type of space "'+C.text+'"')}return x}});var ds=()=>{var C=new Ii.MathNode("mtd",[]);return C.setAttribute("width","50%"),C};ll({type:"tag",mathmlBuilder(C,f){var x=new Ii.MathNode("mtable",[new Ii.MathNode("mtr",[ds(),new Ii.MathNode("mtd",[au(C.body,f)]),ds(),new Ii.MathNode("mtd",[au(C.tag,f)])])]);return x.setAttribute("width","100%"),x}});var bo={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Vr={"\\textbf":"textbf","\\textmd":"textmd"},rr={"\\textit":"textit","\\textup":"textup"},Hr=(C,f)=>{var x=C.font;if(x){if(bo[x])return f.withTextFontFamily(bo[x]);if(Vr[x])return f.withTextFontWeight(Vr[x]);if(x==="\\emph")return f.fontShape==="textit"?f.withTextFontShape("textup"):f.withTextFontShape("textit")}else return f;return f.withTextFontShape(rr[x])};vr({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(C,f){var{parser:x,funcName:A}=C,H=f[0];return{type:"text",mode:x.mode,body:Es(H),font:A}},htmlBuilder(C,f){var x=Hr(C,f),A=Wr(C.body,x,!0);return Ln.makeSpan(["mord","text"],A,x)},mathmlBuilder(C,f){var x=Hr(C,f);return au(C.body,x)}}),vr({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(C,f){var{parser:x}=C;return{type:"underline",mode:x.mode,body:f[0]}},htmlBuilder(C,f){var x=qr(C.body,f),A=Ln.makeLineSpan("underline-line",f),H=f.fontMetrics().defaultRuleThickness,J=Ln.makeVList({positionType:"top",positionData:x.height,children:[{type:"kern",size:H},{type:"elem",elem:A},{type:"kern",size:3*H},{type:"elem",elem:x}]},f);return Ln.makeSpan(["mord","underline"],[J],f)},mathmlBuilder(C,f){var x=new Ii.MathNode("mo",[new Ii.TextNode("\u203E")]);x.setAttribute("stretchy","true");var A=new Ii.MathNode("munder",[ss(C.body,f),x]);return A.setAttribute("accentunder","true"),A}}),vr({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(C,f){var{parser:x}=C;return{type:"vcenter",mode:x.mode,body:f[0]}},htmlBuilder(C,f){var x=qr(C.body,f),A=f.fontMetrics().axisHeight,H=.5*(x.height-A-(x.depth+A));return Ln.makeVList({positionType:"shift",positionData:H,children:[{type:"elem",elem:x}]},f)},mathmlBuilder(C,f){return new Ii.MathNode("mpadded",[ss(C.body,f)],["vcenter"])}}),vr({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(C,f,x){throw new Dt("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(C,f){for(var x=Qr(C),A=[],H=f.havingStyle(f.style.text()),J=0;J<x.length;J++){var Et=x[J];Et==="~"&&(Et="\\textasciitilde"),A.push(Ln.makeSymbol(Et,"Typewriter-Regular",C.mode,H,["mord","texttt"]))}return Ln.makeSpan(["mord","text"].concat(H.sizingClasses(f)),Ln.tryCombineChars(A),H)},mathmlBuilder(C,f){var x=new Ii.TextNode(Qr(C)),A=new Ii.MathNode("mtext",[x]);return A.setAttribute("mathvariant","monospace"),A}});var Qr=C=>C.body.replace(/ /g,C.star?"\u2423":"\xA0"),xr=Fu,vo=`[ \r
|
|
|
]`,ms="\\\\[a-zA-Z@]+",qs="\\\\[^\uD800-\uDFFF]",nn="("+ms+")"+vo+"*",Gs=`\\\\(
|
|
|
|[ \r ]+
|
|
|
?)[ \r ]*`,la="[\u0300-\u036F]",on=new RegExp(la+"+$"),Ws="("+vo+"+)|"+(Gs+"|")+"([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(la+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(la+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+nn)+("|"+qs+")");class zo{constructor(f,x){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=f,this.settings=x,this.tokenRegex=new RegExp(Ws,"g"),this.catcodes={"%":14,"~":13}}setCatcode(f,x){this.catcodes[f]=x}lex(){var f=this.input,x=this.tokenRegex.lastIndex;if(x===f.length)return new xt("EOF",new Ct(this,x,x));var A=this.tokenRegex.exec(f);if(A===null||A.index!==x)throw new Dt("Unexpected character: '"+f[x]+"'",new xt(f[x],new Ct(this,x,x+1)));var H=A[6]||A[3]||(A[2]?"\\ ":" ");if(this.catcodes[H]===14){var J=f.indexOf(`
|
|
|
`,this.tokenRegex.lastIndex);return J===-1?(this.tokenRegex.lastIndex=f.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=J+1,this.lex()}return new xt(H,new Ct(this,x,this.tokenRegex.lastIndex))}}class pa{constructor(f,x){f===void 0&&(f={}),x===void 0&&(x={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=x,this.builtins=f,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Dt("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var f=this.undefStack.pop();for(var x in f)f.hasOwnProperty(x)&&(f[x]==null?delete this.current[x]:this.current[x]=f[x])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(f){return this.current.hasOwnProperty(f)||this.builtins.hasOwnProperty(f)}get(f){return this.current.hasOwnProperty(f)?this.current[f]:this.builtins[f]}set(f,x,A){if(A===void 0&&(A=!1),A){for(var H=0;H<this.undefStack.length;H++)delete this.undefStack[H][f];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][f]=x)}else{var J=this.undefStack[this.undefStack.length-1];J&&!J.hasOwnProperty(f)&&(J[f]=this.current[f])}x==null?delete this.current[f]:this.current[f]=x}}var bs=Oi;jt("\\noexpand",function(C){var f=C.popToken();return C.isExpandable(f.text)&&(f.noexpand=!0,f.treatAsRelax=!0),{tokens:[f],numArgs:0}}),jt("\\expandafter",function(C){var f=C.popToken();return C.expandOnce(!0),{tokens:[f],numArgs:0}}),jt("\\@firstoftwo",function(C){var f=C.consumeArgs(2);return{tokens:f[0],numArgs:0}}),jt("\\@secondoftwo",function(C){var f=C.consumeArgs(2);return{tokens:f[1],numArgs:0}}),jt("\\@ifnextchar",function(C){var f=C.consumeArgs(3);C.consumeSpaces();var x=C.future();return f[0].length===1&&f[0][0].text===x.text?{tokens:f[1],numArgs:0}:{tokens:f[2],numArgs:0}}),jt("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),jt("\\TextOrMath",function(C){var f=C.consumeArgs(2);return C.mode==="text"?{tokens:f[0],numArgs:0}:{tokens:f[1],numArgs:0}});var To={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};jt("\\char",function(C){var f=C.popToken(),x,A="";if(f.text==="'")x=8,f=C.popToken();else if(f.text==='"')x=16,f=C.popToken();else if(f.text==="`")if(f=C.popToken(),f.text[0]==="\\")A=f.text.charCodeAt(1);else{if(f.text==="EOF")throw new Dt("\\char` missing argument");A=f.text.charCodeAt(0)}else x=10;if(x){if(A=To[f.text],A==null||A>=x)throw new Dt("Invalid base-"+x+" digit "+f.text);for(var H;(H=To[C.future().text])!=null&&H<x;)A*=x,A+=H,C.popToken()}return"\\@char{"+A+"}"});var ba=(C,f,x,A)=>{var H=C.consumeArg().tokens;if(H.length!==1)throw new Dt("\\newcommand's first argument must be a macro name");var J=H[0].text,Et=C.isDefined(J);if(Et&&!f)throw new Dt("\\newcommand{"+J+"} attempting to redefine "+(J+"; use \\renewcommand"));if(!Et&&!x)throw new Dt("\\renewcommand{"+J+"} when command "+J+" does not yet exist; use \\newcommand");var Zt=0;if(H=C.consumeArg().tokens,H.length===1&&H[0].text==="["){for(var Xt="",Be=C.expandNextToken();Be.text!=="]"&&Be.text!=="EOF";)Xt+=Be.text,Be=C.expandNextToken();if(!Xt.match(/^\s*[0-9]+\s*$/))throw new Dt("Invalid number of arguments: "+Xt);Zt=parseInt(Xt),H=C.consumeArg().tokens}return Et&&A||C.macros.set(J,{tokens:H,numArgs:Zt}),""};jt("\\newcommand",C=>ba(C,!1,!0,!1)),jt("\\renewcommand",C=>ba(C,!0,!1,!1)),jt("\\providecommand",C=>ba(C,!0,!0,!0)),jt("\\message",C=>{var f=C.consumeArgs(1)[0];return console.log(f.reverse().map(x=>x.text).join("")),""}),jt("\\errmessage",C=>{var f=C.consumeArgs(1)[0];return console.error(f.reverse().map(x=>x.text).join("")),""}),jt("\\show",C=>{var f=C.popToken(),x=f.text;return console.log(f,C.macros.get(x),xr[x],ai.math[x],ai.text[x]),""}),jt("\\bgroup","{"),jt("\\egroup","}"),jt("~","\\nobreakspace"),jt("\\lq","`"),jt("\\rq","'"),jt("\\aa","\\r a"),jt("\\AA","\\r A"),jt("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),jt("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),jt("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),jt("\u212C","\\mathscr{B}"),jt("\u2130","\\mathscr{E}"),jt("\u2131","\\mathscr{F}"),jt("\u210B","\\mathscr{H}"),jt("\u2110","\\mathscr{I}"),jt("\u2112","\\mathscr{L}"),jt("\u2133","\\mathscr{M}"),jt("\u211B","\\mathscr{R}"),jt("\u212D","\\mathfrak{C}"),jt("\u210C","\\mathfrak{H}"),jt("\u2128","\\mathfrak{Z}"),jt("\\Bbbk","\\Bbb{k}"),jt("\xB7","\\cdotp"),jt("\\llap","\\mathllap{\\textrm{#1}}"),jt("\\rlap","\\mathrlap{\\textrm{#1}}"),jt("\\clap","\\mathclap{\\textrm{#1}}"),jt("\\mathstrut","\\vphantom{(}"),jt("\\underbar","\\underline{\\text{#1}}"),jt("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),jt("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),jt("\\ne","\\neq"),jt("\u2260","\\neq"),jt("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),jt("\u2209","\\notin"),jt("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),jt("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),jt("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),jt("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),jt("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),jt("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),jt("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),jt("\u27C2","\\perp"),jt("\u203C","\\mathclose{!\\mkern-0.8mu!}"),jt("\u220C","\\notni"),jt("\u231C","\\ulcorner"),jt("\u231D","\\urcorner"),jt("\u231E","\\llcorner"),jt("\u231F","\\lrcorner"),jt("\xA9","\\copyright"),jt("\xAE","\\textregistered"),jt("\uFE0F","\\textregistered"),jt("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),jt("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),jt("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),jt("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),jt("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),jt("\u22EE","\\vdots"),jt("\\varGamma","\\mathit{\\Gamma}"),jt("\\varDelta","\\mathit{\\Delta}"),jt("\\varTheta","\\mathit{\\Theta}"),jt("\\varLambda","\\mathit{\\Lambda}"),jt("\\varXi","\\mathit{\\Xi}"),jt("\\varPi","\\mathit{\\Pi}"),jt("\\varSigma","\\mathit{\\Sigma}"),jt("\\varUpsilon","\\mathit{\\Upsilon}"),jt("\\varPhi","\\mathit{\\Phi}"),jt("\\varPsi","\\mathit{\\Psi}"),jt("\\varOmega","\\mathit{\\Omega}"),jt("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),jt("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),jt("\\boxed","\\fbox{$\\displaystyle{#1}$}"),jt("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),jt("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),jt("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),jt("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),jt("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var La={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};jt("\\dots",function(C){var f="\\dotso",x=C.expandAfterFuture().text;return x in La?f=La[x]:(x.slice(0,4)==="\\not"||x in ai.math&&Ne.contains(["bin","rel"],ai.math[x].group))&&(f="\\dotsb"),f});var va={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};jt("\\dotso",function(C){var f=C.future().text;return f in va?"\\ldots\\,":"\\ldots"}),jt("\\dotsc",function(C){var f=C.future().text;return f in va&&f!==","?"\\ldots\\,":"\\ldots"}),jt("\\cdots",function(C){var f=C.future().text;return f in va?"\\@cdots\\,":"\\@cdots"}),jt("\\dotsb","\\cdots"),jt("\\dotsm","\\cdots"),jt("\\dotsi","\\!\\cdots"),jt("\\dotsx","\\ldots\\,"),jt("\\DOTSI","\\relax"),jt("\\DOTSB","\\relax"),jt("\\DOTSX","\\relax"),jt("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),jt("\\,","\\tmspace+{3mu}{.1667em}"),jt("\\thinspace","\\,"),jt("\\>","\\mskip{4mu}"),jt("\\:","\\tmspace+{4mu}{.2222em}"),jt("\\medspace","\\:"),jt("\\;","\\tmspace+{5mu}{.2777em}"),jt("\\thickspace","\\;"),jt("\\!","\\tmspace-{3mu}{.1667em}"),jt("\\negthinspace","\\!"),jt("\\negmedspace","\\tmspace-{4mu}{.2222em}"),jt("\\negthickspace","\\tmspace-{5mu}{.277em}"),jt("\\enspace","\\kern.5em "),jt("\\enskip","\\hskip.5em\\relax"),jt("\\quad","\\hskip1em\\relax"),jt("\\qquad","\\hskip2em\\relax"),jt("\\tag","\\@ifstar\\tag@literal\\tag@paren"),jt("\\tag@paren","\\tag@literal{({#1})}"),jt("\\tag@literal",C=>{if(C.macros.get("\\df@tag"))throw new Dt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),jt("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),jt("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),jt("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),jt("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),jt("\\newline","\\\\\\relax"),jt("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Ua=le(Me["Main-Regular"][84][1]-.7*Me["Main-Regular"][65][1]);jt("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Ua+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),jt("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Ua+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),jt("\\hspace","\\@ifstar\\@hspacer\\@hspace"),jt("\\@hspace","\\hskip #1\\relax"),jt("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),jt("\\ordinarycolon",":"),jt("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),jt("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),jt("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),jt("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),jt("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),jt("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),jt("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),jt("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),jt("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),jt("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),jt("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),jt("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),jt("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),jt("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),jt("\u2237","\\dblcolon"),jt("\u2239","\\eqcolon"),jt("\u2254","\\coloneqq"),jt("\u2255","\\eqqcolon"),jt("\u2A74","\\Coloneqq"),jt("\\ratio","\\vcentcolon"),jt("\\coloncolon","\\dblcolon"),jt("\\colonequals","\\coloneqq"),jt("\\coloncolonequals","\\Coloneqq"),jt("\\equalscolon","\\eqqcolon"),jt("\\equalscoloncolon","\\Eqqcolon"),jt("\\colonminus","\\coloneq"),jt("\\coloncolonminus","\\Coloneq"),jt("\\minuscolon","\\eqcolon"),jt("\\minuscoloncolon","\\Eqcolon"),jt("\\coloncolonapprox","\\Colonapprox"),jt("\\coloncolonsim","\\Colonsim"),jt("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),jt("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),jt("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),jt("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),jt("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),jt("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),jt("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),jt("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),jt("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),jt("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),jt("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),jt("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),jt("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),jt("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),jt("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),jt("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),jt("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),jt("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),jt("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),jt("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),jt("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),jt("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),jt("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),jt("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),jt("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),jt("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),jt("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),jt("\\imath","\\html@mathml{\\@imath}{\u0131}"),jt("\\jmath","\\html@mathml{\\@jmath}{\u0237}"),jt("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),jt("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),jt("\u27E6","\\llbracket"),jt("\u27E7","\\rrbracket"),jt("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),jt("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),jt("\u2983","\\lBrace"),jt("\u2984","\\rBrace"),jt("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29B5}}"),jt("\u29B5","\\minuso"),jt("\\darr","\\downarrow"),jt("\\dArr","\\Downarrow"),jt("\\Darr","\\Downarrow"),jt("\\lang","\\langle"),jt("\\rang","\\rangle"),jt("\\uarr","\\uparrow"),jt("\\uArr","\\Uparrow"),jt("\\Uarr","\\Uparrow"),jt("\\N","\\mathbb{N}"),jt("\\R","\\mathbb{R}"),jt("\\Z","\\mathbb{Z}"),jt("\\alef","\\aleph"),jt("\\alefsym","\\aleph"),jt("\\Alpha","\\mathrm{A}"),jt("\\Beta","\\mathrm{B}"),jt("\\bull","\\bullet"),jt("\\Chi","\\mathrm{X}"),jt("\\clubs","\\clubsuit"),jt("\\cnums","\\mathbb{C}"),jt("\\Complex","\\mathbb{C}"),jt("\\Dagger","\\ddagger"),jt("\\diamonds","\\diamondsuit"),jt("\\empty","\\emptyset"),jt("\\Epsilon","\\mathrm{E}"),jt("\\Eta","\\mathrm{H}"),jt("\\exist","\\exists"),jt("\\harr","\\leftrightarrow"),jt("\\hArr","\\Leftrightarrow"),jt("\\Harr","\\Leftrightarrow"),jt("\\hearts","\\heartsuit"),jt("\\image","\\Im"),jt("\\infin","\\infty"),jt("\\Iota","\\mathrm{I}"),jt("\\isin","\\in"),jt("\\Kappa","\\mathrm{K}"),jt("\\larr","\\leftarrow"),jt("\\lArr","\\Leftarrow"),jt("\\Larr","\\Leftarrow"),jt("\\lrarr","\\leftrightarrow"),jt("\\lrArr","\\Leftrightarrow"),jt("\\Lrarr","\\Leftrightarrow"),jt("\\Mu","\\mathrm{M}"),jt("\\natnums","\\mathbb{N}"),jt("\\Nu","\\mathrm{N}"),jt("\\Omicron","\\mathrm{O}"),jt("\\plusmn","\\pm"),jt("\\rarr","\\rightarrow"),jt("\\rArr","\\Rightarrow"),jt("\\Rarr","\\Rightarrow"),jt("\\real","\\Re"),jt("\\reals","\\mathbb{R}"),jt("\\Reals","\\mathbb{R}"),jt("\\Rho","\\mathrm{P}"),jt("\\sdot","\\cdot"),jt("\\sect","\\S"),jt("\\spades","\\spadesuit"),jt("\\sub","\\subset"),jt("\\sube","\\subseteq"),jt("\\supe","\\supseteq"),jt("\\Tau","\\mathrm{T}"),jt("\\thetasym","\\vartheta"),jt("\\weierp","\\wp"),jt("\\Zeta","\\mathrm{Z}"),jt("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),jt("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),jt("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),jt("\\bra","\\mathinner{\\langle{#1}|}"),jt("\\ket","\\mathinner{|{#1}\\rangle}"),jt("\\braket","\\mathinner{\\langle{#1}\\rangle}"),jt("\\Bra","\\left\\langle#1\\right|"),jt("\\Ket","\\left|#1\\right\\rangle");var Tl=C=>f=>{var x=f.consumeArg().tokens,A=f.consumeArg().tokens,H=f.consumeArg().tokens,J=f.consumeArg().tokens,Et=f.macros.get("|"),Zt=f.macros.get("\\|");f.macros.beginGroup();var Xt=Dn=>Qn=>{C&&(Qn.macros.set("|",Et),H.length&&Qn.macros.set("\\|",Zt));var si=Dn;if(!Dn&&H.length){var Yi=Qn.future();Yi.text==="|"&&(Qn.popToken(),si=!0)}return{tokens:si?H:A,numArgs:0}};f.macros.set("|",Xt(!1)),H.length&&f.macros.set("\\|",Xt(!0));var Be=f.consumeArg().tokens,un=f.expandTokens([...J,...Be,...x]);return f.macros.endGroup(),{tokens:un.reverse(),numArgs:0}};jt("\\bra@ket",Tl(!1)),jt("\\bra@set",Tl(!0)),jt("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),jt("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),jt("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),jt("\\angln","{\\angl n}"),jt("\\blue","\\textcolor{##6495ed}{#1}"),jt("\\orange","\\textcolor{##ffa500}{#1}"),jt("\\pink","\\textcolor{##ff00af}{#1}"),jt("\\red","\\textcolor{##df0030}{#1}"),jt("\\green","\\textcolor{##28ae7b}{#1}"),jt("\\gray","\\textcolor{gray}{#1}"),jt("\\purple","\\textcolor{##9d38bd}{#1}"),jt("\\blueA","\\textcolor{##ccfaff}{#1}"),jt("\\blueB","\\textcolor{##80f6ff}{#1}"),jt("\\blueC","\\textcolor{##63d9ea}{#1}"),jt("\\blueD","\\textcolor{##11accd}{#1}"),jt("\\blueE","\\textcolor{##0c7f99}{#1}"),jt("\\tealA","\\textcolor{##94fff5}{#1}"),jt("\\tealB","\\textcolor{##26edd5}{#1}"),jt("\\tealC","\\textcolor{##01d1c1}{#1}"),jt("\\tealD","\\textcolor{##01a995}{#1}"),jt("\\tealE","\\textcolor{##208170}{#1}"),jt("\\greenA","\\textcolor{##b6ffb0}{#1}"),jt("\\greenB","\\textcolor{##8af281}{#1}"),jt("\\greenC","\\textcolor{##74cf70}{#1}"),jt("\\greenD","\\textcolor{##1fab54}{#1}"),jt("\\greenE","\\textcolor{##0d923f}{#1}"),jt("\\goldA","\\textcolor{##ffd0a9}{#1}"),jt("\\goldB","\\textcolor{##ffbb71}{#1}"),jt("\\goldC","\\textcolor{##ff9c39}{#1}"),jt("\\goldD","\\textcolor{##e07d10}{#1}"),jt("\\goldE","\\textcolor{##a75a05}{#1}"),jt("\\redA","\\textcolor{##fca9a9}{#1}"),jt("\\redB","\\textcolor{##ff8482}{#1}"),jt("\\redC","\\textcolor{##f9685d}{#1}"),jt("\\redD","\\textcolor{##e84d39}{#1}"),jt("\\redE","\\textcolor{##bc2612}{#1}"),jt("\\maroonA","\\textcolor{##ffbde0}{#1}"),jt("\\maroonB","\\textcolor{##ff92c6}{#1}"),jt("\\maroonC","\\textcolor{##ed5fa6}{#1}"),jt("\\maroonD","\\textcolor{##ca337c}{#1}"),jt("\\maroonE","\\textcolor{##9e034e}{#1}"),jt("\\purpleA","\\textcolor{##ddd7ff}{#1}"),jt("\\purpleB","\\textcolor{##c6b9fc}{#1}"),jt("\\purpleC","\\textcolor{##aa87ff}{#1}"),jt("\\purpleD","\\textcolor{##7854ab}{#1}"),jt("\\purpleE","\\textcolor{##543b78}{#1}"),jt("\\mintA","\\textcolor{##f5f9e8}{#1}"),jt("\\mintB","\\textcolor{##edf2df}{#1}"),jt("\\mintC","\\textcolor{##e0e5cc}{#1}"),jt("\\grayA","\\textcolor{##f6f7f7}{#1}"),jt("\\grayB","\\textcolor{##f0f1f2}{#1}"),jt("\\grayC","\\textcolor{##e3e5e6}{#1}"),jt("\\grayD","\\textcolor{##d6d8da}{#1}"),jt("\\grayE","\\textcolor{##babec2}{#1}"),jt("\\grayF","\\textcolor{##888d93}{#1}"),jt("\\grayG","\\textcolor{##626569}{#1}"),jt("\\grayH","\\textcolor{##3b3e40}{#1}"),jt("\\grayI","\\textcolor{##21242c}{#1}"),jt("\\kaBlue","\\textcolor{##314453}{#1}"),jt("\\kaGreen","\\textcolor{##71B307}{#1}");var Va={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Xo{constructor(f,x,A){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=x,this.expansionCount=0,this.feed(f),this.macros=new pa(bs,x.macros),this.mode=A,this.stack=[]}feed(f){this.lexer=new zo(f,this.settings)}switchMode(f){this.mode=f}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(f){this.stack.push(f)}pushTokens(f){this.stack.push(...f)}scanArgument(f){var x,A,H;if(f){if(this.consumeSpaces(),this.future().text!=="[")return null;x=this.popToken(),{tokens:H,end:A}=this.consumeArg(["]"])}else({tokens:H,start:x,end:A}=this.consumeArg());return this.pushToken(new xt("EOF",A.loc)),this.pushTokens(H),x.range(A,"")}consumeSpaces(){for(;;){var f=this.future();if(f.text===" ")this.stack.pop();else break}}consumeArg(f){var x=[],A=f&&f.length>0;A||this.consumeSpaces();var H=this.future(),J,Et=0,Zt=0;do{if(J=this.popToken(),x.push(J),J.text==="{")++Et;else if(J.text==="}"){if(--Et,Et===-1)throw new Dt("Extra }",J)}else if(J.text==="EOF")throw new Dt("Unexpected end of input in a macro argument, expected '"+(f&&A?f[Zt]:"}")+"'",J);if(f&&A)if((Et===0||Et===1&&f[Zt]==="{")&&J.text===f[Zt]){if(++Zt,Zt===f.length){x.splice(-Zt,Zt);break}}else Zt=0}while(Et!==0||A);return H.text==="{"&&x[x.length-1].text==="}"&&(x.pop(),x.shift()),x.reverse(),{tokens:x,start:H,end:J}}consumeArgs(f,x){if(x){if(x.length!==f+1)throw new Dt("The length of delimiters doesn't match the number of args!");for(var A=x[0],H=0;H<A.length;H++){var J=this.popToken();if(A[H]!==J.text)throw new Dt("Use of the macro doesn't match its definition",J)}}for(var Et=[],Zt=0;Zt<f;Zt++)Et.push(this.consumeArg(x&&x[Zt+1]).tokens);return Et}countExpansion(f){if(this.expansionCount+=f,this.expansionCount>this.settings.maxExpand)throw new Dt("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(f){var x=this.popToken(),A=x.text,H=x.noexpand?null:this._getExpansion(A);if(H==null||f&&H.unexpandable){if(f&&H==null&&A[0]==="\\"&&!this.isDefined(A))throw new Dt("Undefined control sequence: "+A);return this.pushToken(x),!1}this.countExpansion(1);var J=H.tokens,Et=this.consumeArgs(H.numArgs,H.delimiters);if(H.numArgs){J=J.slice();for(var Zt=J.length-1;Zt>=0;--Zt){var Xt=J[Zt];if(Xt.text==="#"){if(Zt===0)throw new Dt("Incomplete placeholder at end of macro body",Xt);if(Xt=J[--Zt],Xt.text==="#")J.splice(Zt+1,1);else if(/^[1-9]$/.test(Xt.text))J.splice(Zt,2,...Et[+Xt.text-1]);else throw new Dt("Not a valid argument number",Xt)}}}return this.pushTokens(J),J.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var f=this.stack.pop();return f.treatAsRelax&&(f.text="\\relax"),f}throw new Error}expandMacro(f){return this.macros.has(f)?this.expandTokens([new xt(f)]):void 0}expandTokens(f){var x=[],A=this.stack.length;for(this.pushTokens(f);this.stack.length>A;)if(this.expandOnce(!0)===!1){var H=this.stack.pop();H.treatAsRelax&&(H.noexpand=!1,H.treatAsRelax=!1),x.push(H)}return this.countExpansion(x.length),x}expandMacroAsText(f){var x=this.expandMacro(f);return x&&x.map(A=>A.text).join("")}_getExpansion(f){var x=this.macros.get(f);if(x==null)return x;if(f.length===1){var A=this.lexer.catcodes[f];if(A!=null&&A!==13)return}var H=typeof x=="function"?x(this):x;if(typeof H=="string"){var J=0;if(H.indexOf("#")!==-1)for(var Et=H.replace(/##/g,"");Et.indexOf("#"+(J+1))!==-1;)++J;for(var Zt=new zo(H,this.settings),Xt=[],Be=Zt.lex();Be.text!=="EOF";)Xt.push(Be),Be=Zt.lex();Xt.reverse();var un={tokens:Xt,numArgs:J};return un}return H}isDefined(f){return this.macros.has(f)||xr.hasOwnProperty(f)||ai.math.hasOwnProperty(f)||ai.text.hasOwnProperty(f)||Va.hasOwnProperty(f)}isExpandable(f){var x=this.macros.get(f);return x!=null?typeof x=="string"||typeof x=="function"||!x.unexpandable:xr.hasOwnProperty(f)&&!xr[f].primitive}}var ps=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Bs=Object.freeze({"\u208A":"+","\u208B":"-","\u208C":"=","\u208D":"(","\u208E":")","\u2080":"0","\u2081":"1","\u2082":"2","\u2083":"3","\u2084":"4","\u2085":"5","\u2086":"6","\u2087":"7","\u2088":"8","\u2089":"9","\u2090":"a","\u2091":"e","\u2095":"h","\u1D62":"i","\u2C7C":"j","\u2096":"k","\u2097":"l","\u2098":"m","\u2099":"n","\u2092":"o","\u209A":"p","\u1D63":"r","\u209B":"s","\u209C":"t","\u1D64":"u","\u1D65":"v","\u2093":"x","\u1D66":"\u03B2","\u1D67":"\u03B3","\u1D68":"\u03C1","\u1D69":"\u03D5","\u1D6A":"\u03C7","\u207A":"+","\u207B":"-","\u207C":"=","\u207D":"(","\u207E":")","\u2070":"0","\xB9":"1","\xB2":"2","\xB3":"3","\u2074":"4","\u2075":"5","\u2076":"6","\u2077":"7","\u2078":"8","\u2079":"9","\u1D2C":"A","\u1D2E":"B","\u1D30":"D","\u1D31":"E","\u1D33":"G","\u1D34":"H","\u1D35":"I","\u1D36":"J","\u1D37":"K","\u1D38":"L","\u1D39":"M","\u1D3A":"N","\u1D3C":"O","\u1D3E":"P","\u1D3F":"R","\u1D40":"T","\u1D41":"U","\u2C7D":"V","\u1D42":"W","\u1D43":"a","\u1D47":"b","\u1D9C":"c","\u1D48":"d","\u1D49":"e","\u1DA0":"f","\u1D4D":"g",\u02B0:"h","\u2071":"i",\u02B2:"j","\u1D4F":"k",\u02E1:"l","\u1D50":"m",\u207F:"n","\u1D52":"o","\u1D56":"p",\u02B3:"r",\u02E2:"s","\u1D57":"t","\u1D58":"u","\u1D5B":"v",\u02B7:"w",\u02E3:"x",\u02B8:"y","\u1DBB":"z","\u1D5D":"\u03B2","\u1D5E":"\u03B3","\u1D5F":"\u03B4","\u1D60":"\u03D5","\u1D61":"\u03C7","\u1DBF":"\u03B8"}),fs={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"},"\u0327":{text:"\\c"}},$o={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u1E09:"c\u0327\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u00E7:"c\u0327",\u010F:"d\u030C",\u1E0B:"d\u0307",\u1E11:"d\u0327",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u1E1D:"e\u0327\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u0229:"e\u0327",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u0123:"g\u0327",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u1E29:"h\u0327",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u0137:"k\u0327",\u013A:"l\u0301",\u013E:"l\u030C",\u013C:"l\u0327",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u0146:"n\u0327",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u0157:"r\u0327",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u015F:"s\u0327",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u0163:"t\u0327",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u1E08:"C\u0327\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u00C7:"C\u0327",\u010E:"D\u030C",\u1E0A:"D\u0307",\u1E10:"D\u0327",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u1E1C:"E\u0327\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u0228:"E\u0327",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u0122:"G\u0327",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u1E28:"H\u0327",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0136:"K\u0327",\u0139:"L\u0301",\u013D:"L\u030C",\u013B:"L\u0327",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u0145:"N\u0327",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u0156:"R\u0327",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u015E:"S\u0327",\u0164:"T\u030C",\u1E6A:"T\u0307",\u0162:"T\u0327",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"};class Hs{constructor(f,x){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Xo(f,x,this.mode),this.settings=x,this.leftrightDepth=0}expect(f,x){if(x===void 0&&(x=!0),this.fetch().text!==f)throw new Dt("Expected '"+f+"', got '"+this.fetch().text+"'",this.fetch());x&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(f){this.mode=f,this.gullet.switchMode(f)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var f=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),f}finally{this.gullet.endGroups()}}subparse(f){var x=this.nextToken;this.consume(),this.gullet.pushToken(new xt("}")),this.gullet.pushTokens(f);var A=this.parseExpression(!1);return this.expect("}"),this.nextToken=x,A}parseExpression(f,x){for(var A=[];;){this.mode==="math"&&this.consumeSpaces();var H=this.fetch();if(Hs.endOfExpression.indexOf(H.text)!==-1||x&&H.text===x||f&&xr[H.text]&&xr[H.text].infix)break;var J=this.parseAtom(x);if(J){if(J.type==="internal")continue}else break;A.push(J)}return this.mode==="text"&&this.formLigatures(A),this.handleInfixNodes(A)}handleInfixNodes(f){for(var x=-1,A,H=0;H<f.length;H++)if(f[H].type==="infix"){if(x!==-1)throw new Dt("only one infix operator per group",f[H].token);x=H,A=f[H].replaceWith}if(x!==-1&&A){var J,Et,Zt=f.slice(0,x),Xt=f.slice(x+1);Zt.length===1&&Zt[0].type==="ordgroup"?J=Zt[0]:J={type:"ordgroup",mode:this.mode,body:Zt},Xt.length===1&&Xt[0].type==="ordgroup"?Et=Xt[0]:Et={type:"ordgroup",mode:this.mode,body:Xt};var Be;return A==="\\\\abovefrac"?Be=this.callFunction(A,[J,f[x],Et],[]):Be=this.callFunction(A,[J,Et],[]),[Be]}else return f}handleSupSubscript(f){var x=this.fetch(),A=x.text;this.consume(),this.consumeSpaces();var H=this.parseGroup(f);if(!H)throw new Dt("Expected group after '"+A+"'",x);return H}formatUnsupportedCmd(f){for(var x=[],A=0;A<f.length;A++)x.push({type:"textord",mode:"text",text:f[A]});var H={type:"text",mode:this.mode,body:x},J={type:"color",mode:this.mode,color:this.settings.errorColor,body:[H]};return J}parseAtom(f){var x=this.parseGroup("atom",f);if(this.mode==="text")return x;for(var A,H;;){this.consumeSpaces();var J=this.fetch();if(J.text==="\\limits"||J.text==="\\nolimits"){if(x&&x.type==="op"){var Et=J.text==="\\limits";x.limits=Et,x.alwaysHandleSupSub=!0}else if(x&&x.type==="operatorname")x.alwaysHandleSupSub&&(x.limits=J.text==="\\limits");else throw new Dt("Limit controls must follow a math operator",J);this.consume()}else if(J.text==="^"){if(A)throw new Dt("Double superscript",J);A=this.handleSupSubscript("superscript")}else if(J.text==="_"){if(H)throw new Dt("Double subscript",J);H=this.handleSupSubscript("subscript")}else if(J.text==="'"){if(A)throw new Dt("Double superscript",J);var Zt={type:"textord",mode:this.mode,text:"\\prime"},Xt=[Zt];for(this.consume();this.fetch().text==="'";)Xt.push(Zt),this.consume();this.fetch().text==="^"&&Xt.push(this.handleSupSubscript("superscript")),A={type:"ordgroup",mode:this.mode,body:Xt}}else if(Bs[J.text]){var Be=ps.test(J.text),un=[];for(un.push(new xt(Bs[J.text])),this.consume();;){var Dn=this.fetch().text;if(!Bs[Dn]||ps.test(Dn)!==Be)break;un.unshift(new xt(Bs[Dn])),this.consume()}var Qn=this.subparse(un);Be?H={type:"ordgroup",mode:"math",body:Qn}:A={type:"ordgroup",mode:"math",body:Qn}}else break}return A||H?{type:"supsub",mode:this.mode,base:x,sup:A,sub:H}:x}parseFunction(f,x){var A=this.fetch(),H=A.text,J=xr[H];if(!J)return null;if(this.consume(),x&&x!=="atom"&&!J.allowedInArgument)throw new Dt("Got function '"+H+"' with no arguments"+(x?" as "+x:""),A);if(this.mode==="text"&&!J.allowedInText)throw new Dt("Can't use function '"+H+"' in text mode",A);if(this.mode==="math"&&J.allowedInMath===!1)throw new Dt("Can't use function '"+H+"' in math mode",A);var{args:Et,optArgs:Zt}=this.parseArguments(H,J);return this.callFunction(H,Et,Zt,A,f)}callFunction(f,x,A,H,J){var Et={funcName:f,parser:this,token:H,breakOnTokenText:J},Zt=xr[f];if(Zt&&Zt.handler)return Zt.handler(Et,x,A);throw new Dt("No function handler for "+f)}parseArguments(f,x){var A=x.numArgs+x.numOptionalArgs;if(A===0)return{args:[],optArgs:[]};for(var H=[],J=[],Et=0;Et<A;Et++){var Zt=x.argTypes&&x.argTypes[Et],Xt=Et<x.numOptionalArgs;(x.primitive&&Zt==null||x.type==="sqrt"&&Et===1&&J[0]==null)&&(Zt="primitive");var Be=this.parseGroupOfType("argument to '"+f+"'",Zt,Xt);if(Xt)J.push(Be);else if(Be!=null)H.push(Be);else throw new Dt("Null argument, please report this as a bug")}return{args:H,optArgs:J}}parseGroupOfType(f,x,A){switch(x){case"color":return this.parseColorGroup(A);case"size":return this.parseSizeGroup(A);case"url":return this.parseUrlGroup(A);case"math":case"text":return this.parseArgumentGroup(A,x);case"hbox":{var H=this.parseArgumentGroup(A,"text");return H!=null?{type:"styling",mode:H.mode,body:[H],style:"text"}:null}case"raw":{var J=this.parseStringGroup("raw",A);return J!=null?{type:"raw",mode:"text",string:J.text}:null}case"primitive":{if(A)throw new Dt("A primitive argument cannot be optional");var Et=this.parseGroup(f);if(Et==null)throw new Dt("Expected group as "+f,this.fetch());return Et}case"original":case null:case void 0:return this.parseArgumentGroup(A);default:throw new Dt("Unknown group type as "+f,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(f,x){var A=this.gullet.scanArgument(x);if(A==null)return null;for(var H="",J;(J=this.fetch()).text!=="EOF";)H+=J.text,this.consume();return this.consume(),A.text=H,A}parseRegexGroup(f,x){for(var A=this.fetch(),H=A,J="",Et;(Et=this.fetch()).text!=="EOF"&&f.test(J+Et.text);)H=Et,J+=H.text,this.consume();if(J==="")throw new Dt("Invalid "+x+": '"+A.text+"'",A);return A.range(H,J)}parseColorGroup(f){var x=this.parseStringGroup("color",f);if(x==null)return null;var A=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(x.text);if(!A)throw new Dt("Invalid color: '"+x.text+"'",x);var H=A[0];return/^[0-9a-f]{6}$/i.test(H)&&(H="#"+H),{type:"color-token",mode:this.mode,color:H}}parseSizeGroup(f){var x,A=!1;if(this.gullet.consumeSpaces(),!f&&this.gullet.future().text!=="{"?x=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):x=this.parseStringGroup("size",f),!x)return null;!f&&x.text.length===0&&(x.text="0pt",A=!0);var H=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(x.text);if(!H)throw new Dt("Invalid size: '"+x.text+"'",x);var J={number:+(H[1]+H[2]),unit:H[3]};if(!ir(J))throw new Dt("Invalid unit: '"+J.unit+"'",x);return{type:"size",mode:this.mode,value:J,isBlank:A}}parseUrlGroup(f){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var x=this.parseStringGroup("url",f);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),x==null)return null;var A=x.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:A}}parseArgumentGroup(f,x){var A=this.gullet.scanArgument(f);if(A==null)return null;var H=this.mode;x&&this.switchMode(x),this.gullet.beginGroup();var J=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var Et={type:"ordgroup",mode:this.mode,loc:A.loc,body:J};return x&&this.switchMode(H),Et}parseGroup(f,x){var A=this.fetch(),H=A.text,J;if(H==="{"||H==="\\begingroup"){this.consume();var Et=H==="{"?"}":"\\endgroup";this.gullet.beginGroup();var Zt=this.parseExpression(!1,Et),Xt=this.fetch();this.expect(Et),this.gullet.endGroup(),J={type:"ordgroup",mode:this.mode,loc:Ct.range(A,Xt),body:Zt,semisimple:H==="\\begingroup"||void 0}}else if(J=this.parseFunction(x,f)||this.parseSymbol(),J==null&&H[0]==="\\"&&!Va.hasOwnProperty(H)){if(this.settings.throwOnError)throw new Dt("Undefined control sequence: "+H,A);J=this.formatUnsupportedCmd(H),this.consume()}return J}formLigatures(f){for(var x=f.length-1,A=0;A<x;++A){var H=f[A],J=H.text;J==="-"&&f[A+1].text==="-"&&(A+1<x&&f[A+2].text==="-"?(f.splice(A,3,{type:"textord",mode:"text",loc:Ct.range(H,f[A+2]),text:"---"}),x-=2):(f.splice(A,2,{type:"textord",mode:"text",loc:Ct.range(H,f[A+1]),text:"--"}),x-=1)),(J==="'"||J==="`")&&f[A+1].text===J&&(f.splice(A,2,{type:"textord",mode:"text",loc:Ct.range(H,f[A+1]),text:J+J}),x-=1)}}parseSymbol(){var f=this.fetch(),x=f.text;if(/^\\verb[^a-zA-Z]/.test(x)){this.consume();var A=x.slice(5),H=A.charAt(0)==="*";if(H&&(A=A.slice(1)),A.length<2||A.charAt(0)!==A.slice(-1))throw new Dt(`\\verb assertion failed --
|
|
|
please report what input caused this bug`);return A=A.slice(1,-1),{type:"verb",mode:"text",body:A,star:H}}$o.hasOwnProperty(x[0])&&!ai[this.mode][x[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+x[0]+'" used in math mode',f),x=$o[x[0]]+x.slice(1));var J=on.exec(x);J&&(x=x.substring(0,J.index),x==="i"?x="\u0131":x==="j"&&(x="\u0237"));var Et;if(ai[this.mode][x]){this.settings.strict&&this.mode==="math"&&Su.indexOf(x)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+x[0]+'" used in math mode',f);var Zt=ai[this.mode][x].group,Xt=Ct.range(f),Be;if(rs.hasOwnProperty(Zt)){var un=Zt;Be={type:"atom",mode:this.mode,family:un,loc:Xt,text:x}}else Be={type:Zt,mode:this.mode,loc:Xt,text:x};Et=Be}else if(x.charCodeAt(0)>=128)this.settings.strict&&(Jn(x.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+x[0]+'" used in math mode',f):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+x[0]+'"'+(" ("+x.charCodeAt(0)+")"),f)),Et={type:"textord",mode:"text",loc:Ct.range(f),text:x};else return null;if(this.consume(),J)for(var Dn=0;Dn<J[0].length;Dn++){var Qn=J[0][Dn];if(!fs[Qn])throw new Dt("Unknown accent ' "+Qn+"'",f);var si=fs[Qn][this.mode]||fs[Qn].text;if(!si)throw new Dt("Accent "+Qn+" unsupported in "+this.mode+" mode",f);Et={type:"accent",mode:this.mode,loc:Ct.range(f),label:si,isStretchy:!1,isShifty:!0,base:Et}}return Et}}Hs.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var Ra=function(f,x){if(!(typeof f=="string"||f instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var A=new Hs(f,x);delete A.gullet.macros.current["\\df@tag"];var H=A.parse();if(delete A.gullet.macros.current["\\current@color"],delete A.gullet.macros.current["\\color"],A.gullet.macros.get("\\df@tag")){if(!x.displayMode)throw new Dt("\\tag works only in display equations");H=[{type:"tag",mode:"text",body:H,tag:A.subparse([new xt("\\df@tag")])}]}return H},kl=function(f,x,A){x.textContent="";var H=oi(f,A).toNode();x.appendChild(H)};typeof document!="undefined"&&document.compatMode!=="CSS1Compat"&&(typeof console!="undefined"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),kl=function(){throw new Dt("KaTeX doesn't work in quirks mode.")});var qc=function(f,x){var A=oi(f,x).toMarkup();return A},ue=function(f,x){var A=new jn(x);return Ra(f,A)},Tu=function(f,x,A){if(A.throwOnError||!(f instanceof Dt))throw f;var H=Ln.makeSpan(["katex-error"],[new Re(x)]);return H.setAttribute("title",f.toString()),H.setAttribute("style","color:"+A.errorColor),H},oi=function(f,x){var A=new jn(x);try{var H=Ra(f,A);return sc(H,f,A)}catch(J){return Tu(J,f,A)}},hr=function(f,x){var A=new jn(x);try{var H=Ra(f,A);return Ls(H,f,A)}catch(J){return Tu(J,f,A)}},Io="0.16.21",Qo={Span:Er,Anchor:Pi,SymbolNode:Re,SvgNode:Rr,PathNode:je,LineNode:nr},ks={version:Io,render:kl,renderToString:qc,ParseError:Dt,SETTINGS_SCHEMA:Cn,__parse:ue,__renderToDomTree:oi,__renderToHTMLTree:hr,__setFontMetrics:$e,__defineSymbol:W,__defineFunction:vr,__defineMacro:jt,__domTree:Qo},zl=h(2348);const Vs={},Nl=[];function zu(C){const f=C||Vs;return function(x,A){(0,zl.S4)(x,"element",function(H,J){const Et=Array.isArray(H.properties.className)?H.properties.className:Nl,Zt=Et.includes("language-math"),Xt=Et.includes("math-display"),Be=Et.includes("math-inline");let un=Xt;if(!Zt&&!Xt&&!Be)return;let Dn=J[J.length-1],Qn=H;if(H.tagName==="code"&&Zt&&Dn&&Dn.type==="element"&&Dn.tagName==="pre"&&(Qn=Dn,Dn=J[J.length-2],un=!0),!Dn)return;const si=fn(Qn,{whitespace:"pre"});let Yi;try{Yi=ks.renderToString(si,f0(Ms({},f),{displayMode:un,throwOnError:!0}))}catch(Ar){const Pr=Ar,ko=Pr.name.toLowerCase();A.message("Could not render math with KaTeX",{ancestors:[...J,H],cause:Pr,place:H.position,ruleId:ko,source:"rehype-katex"});try{Yi=ks.renderToString(si,f0(Ms({},f),{displayMode:un,strict:"ignore",throwOnError:!1}))}catch(Ao){Yi=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(f.errorColor||"#cc0000"),title:String(Ar)},children:[{type:"text",value:si}]}]}}typeof Yi=="string"&&(Yi=ae(Yi,{fragment:!0}).children);const Xi=Dn.children.indexOf(Qn);return Dn.children.splice(Xi,1,...Yi),zl.AM})}}},30084:function(V,w,h){"use strict";h.d(w,{Z:function(){return Tt}});var y=h(87342);function N(Mt,ft){const It=String(Mt);let $t=It.indexOf(ft),Nt=$t,Ut=0,et=0;if(typeof ft!="string")throw new TypeError("Expected substring");for(;$t!==-1;)$t===Nt?++Ut>et&&(et=Ut):Ut=1,Nt=$t+ft.length,$t=It.indexOf(ft,Nt);return et}function O(){return{enter:{mathFlow:Mt,mathFlowFenceMeta:ft,mathText:Ut},exit:{mathFlow:Nt,mathFlowFence:$t,mathFlowFenceMeta:It,mathFlowValue:Rt,mathText:et,mathTextData:Rt}};function Mt(Lt){const Kt={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[Kt]}},Lt)}function ft(){this.buffer()}function It(){const Lt=this.resume(),Kt=this.stack[this.stack.length-1];(0,y.ok)(Kt.type==="math"),Kt.meta=Lt}function $t(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function Nt(Lt){const Kt=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),Qt=this.stack[this.stack.length-1];(0,y.ok)(Qt.type==="math"),this.exit(Lt),Qt.value=Kt;const ie=Qt.data.hChildren[0];(0,y.ok)(ie.type==="element"),(0,y.ok)(ie.tagName==="code"),ie.children.push({type:"text",value:Kt}),this.data.mathFlowInside=void 0}function Ut(Lt){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},Lt),this.buffer()}function et(Lt){const Kt=this.resume(),Qt=this.stack[this.stack.length-1];(0,y.ok)(Qt.type==="inlineMath"),this.exit(Lt),Qt.value=Kt,Qt.data.hChildren.push({type:"text",value:Kt})}function Rt(Lt){this.config.enter.data.call(this,Lt),this.config.exit.data.call(this,Lt)}}function B(Mt){let ft=(Mt||{}).singleDollarTextMath;return ft==null&&(ft=!0),$t.peek=Nt,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
|
|
|
`,inConstruct:"mathFlowMeta"},{character:"$",after:ft?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:It,inlineMath:$t}};function It(Ut,et,Rt,Lt){const Kt=Ut.value||"",Qt=Rt.createTracker(Lt),ie="$".repeat(Math.max(N(Kt,"$")+1,2)),yt=Rt.enter("mathFlow");let ae=Qt.move(ie);if(Ut.meta){const Ht=Rt.enter("mathFlowMeta");ae+=Qt.move(Rt.safe(Ut.meta,Ms({after:`
|
|
|
`,before:ae,encode:["$"]},Qt.current()))),Ht()}return ae+=Qt.move(`
|
|
|
`),Kt&&(ae+=Qt.move(Kt+`
|
|
|
`)),ae+=Qt.move(ie),yt(),ae}function $t(Ut,et,Rt){let Lt=Ut.value||"",Kt=1;for(ft||Kt++;new RegExp("(^|[^$])"+"\\$".repeat(Kt)+"([^$]|$)").test(Lt);)Kt++;const Qt="$".repeat(Kt);/[^ \r\n]/.test(Lt)&&(/^[ \r\n]/.test(Lt)&&/[ \r\n]$/.test(Lt)||/^\$|\$$/.test(Lt))&&(Lt=" "+Lt+" ");let ie=-1;for(;++ie<Rt.unsafe.length;){const yt=Rt.unsafe[ie];if(!yt.atBreak)continue;const ae=Rt.compilePattern(yt);let Ht;for(;Ht=ae.exec(Lt);){let Pe=Ht.index;Lt.codePointAt(Pe)===10&&Lt.codePointAt(Pe-1)===13&&Pe--,Lt=Lt.slice(0,Pe)+" "+Lt.slice(Ht.index+1)}}return Qt+Lt+Qt}function Nt(){return"$"}}var _=h(26735),K=h(80722);const I={tokenize:rt,concrete:!0,name:"mathFlow"},dt={tokenize:Q,partial:!0};function rt(Mt,ft,It){const $t=this,Nt=$t.events[$t.events.length-1],Ut=Nt&&Nt[1].type==="linePrefix"?Nt[2].sliceSerialize(Nt[1],!0).length:0;let et=0;return Rt;function Rt(pe){return Mt.enter("mathFlow"),Mt.enter("mathFlowFence"),Mt.enter("mathFlowFenceSequence"),Lt(pe)}function Lt(pe){return pe===36?(Mt.consume(pe),et++,Lt):et<2?It(pe):(Mt.exit("mathFlowFenceSequence"),(0,_.f)(Mt,Kt,"whitespace")(pe))}function Kt(pe){return pe===null||(0,K.Ch)(pe)?ie(pe):(Mt.enter("mathFlowFenceMeta"),Mt.enter("chunkString",{contentType:"string"}),Qt(pe))}function Qt(pe){return pe===null||(0,K.Ch)(pe)?(Mt.exit("chunkString"),Mt.exit("mathFlowFenceMeta"),ie(pe)):pe===36?It(pe):(Mt.consume(pe),Qt)}function ie(pe){return Mt.exit("mathFlowFence"),$t.interrupt?ft(pe):Mt.attempt(dt,yt,ge)(pe)}function yt(pe){return Mt.attempt({tokenize:we,partial:!0},ge,ae)(pe)}function ae(pe){return(Ut?(0,_.f)(Mt,Ht,"linePrefix",Ut+1):Ht)(pe)}function Ht(pe){return pe===null?ge(pe):(0,K.Ch)(pe)?Mt.attempt(dt,yt,ge)(pe):(Mt.enter("mathFlowValue"),Pe(pe))}function Pe(pe){return pe===null||(0,K.Ch)(pe)?(Mt.exit("mathFlowValue"),Ht(pe)):(Mt.consume(pe),Pe)}function ge(pe){return Mt.exit("mathFlow"),ft(pe)}function we(pe,ln,zt){let nt=0;return(0,_.f)(pe,it,"linePrefix",$t.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function it(de){return pe.enter("mathFlowFence"),pe.enter("mathFlowFenceSequence"),Te(de)}function Te(de){return de===36?(nt++,pe.consume(de),Te):nt<et?zt(de):(pe.exit("mathFlowFenceSequence"),(0,_.f)(pe,Ae,"whitespace")(de))}function Ae(de){return de===null||(0,K.Ch)(de)?(pe.exit("mathFlowFence"),ln(de)):zt(de)}}}function Q(Mt,ft,It){const $t=this;return Nt;function Nt(et){return et===null?ft(et):(Mt.enter("lineEnding"),Mt.consume(et),Mt.exit("lineEnding"),Ut)}function Ut(et){return $t.parser.lazy[$t.now().line]?It(et):ft(et)}}function kt(Mt){let It=(Mt||{}).singleDollarTextMath;return It==null&&(It=!0),{tokenize:$t,resolve:Y,previous:Yt,name:"mathText"};function $t(Nt,Ut,et){const Rt=this;let Lt=0,Kt,Qt;return ie;function ie(ge){return Nt.enter("mathText"),Nt.enter("mathTextSequence"),yt(ge)}function yt(ge){return ge===36?(Nt.consume(ge),Lt++,yt):Lt<2&&!It?et(ge):(Nt.exit("mathTextSequence"),ae(ge))}function ae(ge){return ge===null?et(ge):ge===36?(Qt=Nt.enter("mathTextSequence"),Kt=0,Pe(ge)):ge===32?(Nt.enter("space"),Nt.consume(ge),Nt.exit("space"),ae):(0,K.Ch)(ge)?(Nt.enter("lineEnding"),Nt.consume(ge),Nt.exit("lineEnding"),ae):(Nt.enter("mathTextData"),Ht(ge))}function Ht(ge){return ge===null||ge===32||ge===36||(0,K.Ch)(ge)?(Nt.exit("mathTextData"),ae(ge)):(Nt.consume(ge),Ht)}function Pe(ge){return ge===36?(Nt.consume(ge),Kt++,Pe):Kt===Lt?(Nt.exit("mathTextSequence"),Nt.exit("mathText"),Ut(ge)):(Qt.type="mathTextData",Ht(ge))}}}function Y(Mt){let ft=Mt.length-4,It=3,$t,Nt;if((Mt[It][1].type==="lineEnding"||Mt[It][1].type==="space")&&(Mt[ft][1].type==="lineEnding"||Mt[ft][1].type==="space")){for($t=It;++$t<ft;)if(Mt[$t][1].type==="mathTextData"){Mt[ft][1].type="mathTextPadding",Mt[It][1].type="mathTextPadding",It+=2,ft-=2;break}}for($t=It-1,ft++;++$t<=ft;)Nt===void 0?$t!==ft&&Mt[$t][1].type!=="lineEnding"&&(Nt=$t):($t===ft||Mt[$t][1].type==="lineEnding")&&(Mt[Nt][1].type="mathTextData",$t!==Nt+2&&(Mt[Nt][1].end=Mt[$t-1][1].end,Mt.splice(Nt+2,$t-Nt-2),ft-=$t-Nt-2,$t=Nt+2),Nt=void 0);return Mt}function Yt(Mt){return Mt!==36||this.events[this.events.length-1][1].type==="characterEscape"}function At(Mt){return{flow:{36:I},text:{36:kt(Mt)}}}const vt={};function Tt(Mt){const ft=this,It=Mt||vt,$t=ft.data(),Nt=$t.micromarkExtensions||($t.micromarkExtensions=[]),Ut=$t.fromMarkdownExtensions||($t.fromMarkdownExtensions=[]),et=$t.toMarkdownExtensions||($t.toMarkdownExtensions=[]);Nt.push(At(It)),Ut.push(O()),et.push(B(It))}},16722:function(V,w,h){"use strict";h.d(w,{Z:function(){return dt}});const y=rt=>typeof rt=="object"&&rt!=null&&rt.nodeType===1,N=(rt,Q)=>(!Q||rt!=="hidden")&&rt!=="visible"&&rt!=="clip",O=(rt,Q)=>{if(rt.clientHeight<rt.scrollHeight||rt.clientWidth<rt.scrollWidth){const kt=getComputedStyle(rt,null);return N(kt.overflowY,Q)||N(kt.overflowX,Q)||(Y=>{const Yt=(At=>{if(!At.ownerDocument||!At.ownerDocument.defaultView)return null;try{return At.ownerDocument.defaultView.frameElement}catch(vt){return null}})(Y);return!!Yt&&(Yt.clientHeight<Y.scrollHeight||Yt.clientWidth<Y.scrollWidth)})(rt)}return!1},B=(rt,Q,kt,Y,Yt,At,vt,Tt)=>At<rt&&vt>Q||At>rt&&vt<Q?0:At<=rt&&Tt<=kt||vt>=Q&&Tt>=kt?At-rt-Y:vt>Q&&Tt<kt||At<rt&&Tt>kt?vt-Q+Yt:0,_=rt=>{const Q=rt.parentElement;return Q==null?rt.getRootNode().host||null:Q},K=(rt,Q)=>{var kt,Y,Yt,At;if(typeof document=="undefined")return[];const{scrollMode:vt,block:Tt,inline:Mt,boundary:ft,skipOverflowHiddenElements:It}=Q,$t=typeof ft=="function"?ft:Ae=>Ae!==ft;if(!y(rt))throw new TypeError("Invalid target");const Nt=document.scrollingElement||document.documentElement,Ut=[];let et=rt;for(;y(et)&&$t(et);){if(et=_(et),et===Nt){Ut.push(et);break}et!=null&&et===document.body&&O(et)&&!O(document.documentElement)||et!=null&&O(et,It)&&Ut.push(et)}const Rt=(Y=(kt=window.visualViewport)==null?void 0:kt.width)!=null?Y:innerWidth,Lt=(At=(Yt=window.visualViewport)==null?void 0:Yt.height)!=null?At:innerHeight,{scrollX:Kt,scrollY:Qt}=window,{height:ie,width:yt,top:ae,right:Ht,bottom:Pe,left:ge}=rt.getBoundingClientRect(),{top:we,right:pe,bottom:ln,left:zt}=(Ae=>{const de=window.getComputedStyle(Ae);return{top:parseFloat(de.scrollMarginTop)||0,right:parseFloat(de.scrollMarginRight)||0,bottom:parseFloat(de.scrollMarginBottom)||0,left:parseFloat(de.scrollMarginLeft)||0}})(rt);let nt=Tt==="start"||Tt==="nearest"?ae-we:Tt==="end"?Pe+ln:ae+ie/2-we+ln,it=Mt==="center"?ge+yt/2-zt+pe:Mt==="end"?Ht+pe:ge-zt;const Te=[];for(let Ae=0;Ae<Ut.length;Ae++){const de=Ut[Ae],{height:en,width:vn,top:Xn,right:gn,bottom:_n,left:$n}=de.getBoundingClientRect();if(vt==="if-needed"&&ae>=0&&ge>=0&&Pe<=Lt&&Ht<=Rt&&(de===Nt&&!O(de)||ae>=Xn&&Pe<=_n&&ge>=$n&&Ht<=gn))return Te;const fn=getComputedStyle(de),hn=parseInt(fn.borderLeftWidth,10),ct=parseInt(fn.borderTopWidth,10),L=parseInt(fn.borderRightWidth,10),k=parseInt(fn.borderBottomWidth,10);let z=0,G=0;const T="offsetWidth"in de?de.offsetWidth-de.clientWidth-hn-L:0,St="offsetHeight"in de?de.offsetHeight-de.clientHeight-ct-k:0,fe="offsetWidth"in de?de.offsetWidth===0?0:vn/de.offsetWidth:0,Ct="offsetHeight"in de?de.offsetHeight===0?0:en/de.offsetHeight:0;if(Nt===de)z=Tt==="start"?nt:Tt==="end"?nt-Lt:Tt==="nearest"?B(Qt,Qt+Lt,Lt,ct,k,Qt+nt,Qt+nt+ie,ie):nt-Lt/2,G=Mt==="start"?it:Mt==="center"?it-Rt/2:Mt==="end"?it-Rt:B(Kt,Kt+Rt,Rt,hn,L,Kt+it,Kt+it+yt,yt),z=Math.max(0,z+Qt),G=Math.max(0,G+Kt);else{z=Tt==="start"?nt-Xn-ct:Tt==="end"?nt-_n+k+St:Tt==="nearest"?B(Xn,_n,en,ct,k+St,nt,nt+ie,ie):nt-(Xn+en/2)+St/2,G=Mt==="start"?it-$n-hn:Mt==="center"?it-($n+vn/2)+T/2:Mt==="end"?it-gn+L+T:B($n,gn,vn,hn,L+T,it,it+yt,yt);const{scrollLeft:xt,scrollTop:Dt}=de;z=Ct===0?0:Math.max(0,Math.min(Dt+z/Ct,de.scrollHeight-en/Ct+St)),G=fe===0?0:Math.max(0,Math.min(xt+G/fe,de.scrollWidth-vn/fe+T)),nt+=Dt-z,it+=xt-G}Te.push({el:de,top:z,left:G})}return Te},I=rt=>rt===!1?{block:"end",inline:"nearest"}:(Q=>Q===Object(Q)&&Object.keys(Q).length!==0)(rt)?rt:{block:"start",inline:"nearest"};function dt(rt,Q){if(!rt.isConnected||!(Yt=>{let At=Yt;for(;At&&At.parentNode;){if(At.parentNode===document)return!0;At=At.parentNode instanceof ShadowRoot?At.parentNode.host:At.parentNode}return!1})(rt))return;const kt=(Yt=>{const At=window.getComputedStyle(Yt);return{top:parseFloat(At.scrollMarginTop)||0,right:parseFloat(At.scrollMarginRight)||0,bottom:parseFloat(At.scrollMarginBottom)||0,left:parseFloat(At.scrollMarginLeft)||0}})(rt);if((Yt=>typeof Yt=="object"&&typeof Yt.behavior=="function")(Q))return Q.behavior(K(rt,Q));const Y=typeof Q=="boolean"||Q==null?void 0:Q.behavior;for(const{el:Yt,top:At,left:vt}of K(rt,I(Q))){const Tt=At-kt.top+kt.bottom,Mt=vt-kt.left+kt.right;Yt.scroll({top:Tt,left:Mt,behavior:Y})}}},71523:function(V,w,h){"use strict";h.d(w,{P:function(){return N},Q:function(){return y}});function y(O){const B=String(O||"").trim();return B?B.split(/[ \t\n\r\f]+/g):[]}function N(O){return O.join(" ").trim()}},10502:function(V,w,h){"use strict";h.d(w,{O:function(){return N}});const y=function(rt,Q,kt,Y,Yt){const At=N(Q);if(kt!=null&&(typeof kt!="number"||kt<0||kt===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(Y!=null&&(!y(Y)||!Y.children))throw new Error("Expected parent node");if(Y==null!=(kt==null))throw new Error("Expected both parent and index");return dt(rt)?At.call(Yt,rt,kt,Y):!1},N=function(rt){if(rt==null)return I;if(typeof rt=="function")return K(rt);if(typeof rt=="object")return Array.isArray(rt)?O(rt):B(rt);if(typeof rt=="string")return _(rt);throw new Error("Expected function, string, or object as test")};function O(rt){const Q=[];let kt=-1;for(;++kt<rt.length;)Q[kt]=N(rt[kt]);return K(Y);function Y(...Yt){let At=-1;for(;++At<Q.length;)if(Q[At].apply(this,Yt))return!0;return!1}}function B(rt){const Q=rt;return K(kt);function kt(Y){const Yt=Y;let At;for(At in rt)if(Yt[At]!==Q[At])return!1;return!0}}function _(rt){return K(Q);function Q(kt){return kt&&kt.type===rt}}function K(rt){return Q;function Q(kt,Y,Yt){return!!(dt(kt)&&rt.call(this,kt,typeof Y=="number"?Y:void 0,Yt||void 0))}}function I(){return!0}function dt(rt){return rt!==null&&typeof rt=="object"&&"type"in rt}},2348:function(V,w,h){"use strict";h.d(w,{AM:function(){return K},S4:function(){return I}});var y=h(10502);function N(rt){return rt}const O=[],B=!0,_=!1,K="skip";function I(rt,Q,kt,Y){let Yt;typeof Q=="function"&&typeof kt!="function"?(Y=kt,kt=Q):Yt=Q;const At=(0,y.O)(Yt),vt=Y?-1:1;Tt(rt,void 0,[])();function Tt(Mt,ft,It){const $t=Mt&&typeof Mt=="object"?Mt:{};if(typeof $t.type=="string"){const Ut=typeof $t.tagName=="string"?$t.tagName:typeof $t.name=="string"?$t.name:void 0;Object.defineProperty(Nt,"name",{value:"node ("+(Mt.type+(Ut?"<"+Ut+">":""))+")"})}return Nt;function Nt(){let Ut=O,et,Rt,Lt;if((!Q||At(Mt,ft,It[It.length-1]||void 0))&&(Ut=dt(kt(Mt,It)),Ut[0]===_))return Ut;if("children"in Mt&&Mt.children){const Kt=Mt;if(Kt.children&&Ut[0]!==K)for(Rt=(Y?Kt.children.length:-1)+vt,Lt=It.concat(Kt);Rt>-1&&Rt<Kt.children.length;){const Qt=Kt.children[Rt];if(et=Tt(Qt,Rt,Lt)(),et[0]===_)return et;Rt=typeof et[1]=="number"?et[1]:Rt+vt}}return Ut}}}function dt(rt){return Array.isArray(rt)?rt:typeof rt=="number"?[B,rt]:rt==null?O:[rt]}},47854:function(V){"use strict";V.exports=JSON.parse('{"AElig":"\xC6","AMP":"&","Aacute":"\xC1","Acirc":"\xC2","Agrave":"\xC0","Aring":"\xC5","Atilde":"\xC3","Auml":"\xC4","COPY":"\xA9","Ccedil":"\xC7","ETH":"\xD0","Eacute":"\xC9","Ecirc":"\xCA","Egrave":"\xC8","Euml":"\xCB","GT":">","Iacute":"\xCD","Icirc":"\xCE","Igrave":"\xCC","Iuml":"\xCF","LT":"<","Ntilde":"\xD1","Oacute":"\xD3","Ocirc":"\xD4","Ograve":"\xD2","Oslash":"\xD8","Otilde":"\xD5","Ouml":"\xD6","QUOT":"\\"","REG":"\xAE","THORN":"\xDE","Uacute":"\xDA","Ucirc":"\xDB","Ugrave":"\xD9","Uuml":"\xDC","Yacute":"\xDD","aacute":"\xE1","acirc":"\xE2","acute":"\xB4","aelig":"\xE6","agrave":"\xE0","amp":"&","aring":"\xE5","atilde":"\xE3","auml":"\xE4","brvbar":"\xA6","ccedil":"\xE7","cedil":"\xB8","cent":"\xA2","copy":"\xA9","curren":"\xA4","deg":"\xB0","divide":"\xF7","eacute":"\xE9","ecirc":"\xEA","egrave":"\xE8","eth":"\xF0","euml":"\xEB","frac12":"\xBD","frac14":"\xBC","frac34":"\xBE","gt":">","iacute":"\xED","icirc":"\xEE","iexcl":"\xA1","igrave":"\xEC","iquest":"\xBF","iuml":"\xEF","laquo":"\xAB","lt":"<","macr":"\xAF","micro":"\xB5","middot":"\xB7","nbsp":"\xA0","not":"\xAC","ntilde":"\xF1","oacute":"\xF3","ocirc":"\xF4","ograve":"\xF2","ordf":"\xAA","ordm":"\xBA","oslash":"\xF8","otilde":"\xF5","ouml":"\xF6","para":"\xB6","plusmn":"\xB1","pound":"\xA3","quot":"\\"","raquo":"\xBB","reg":"\xAE","sect":"\xA7","shy":"\xAD","sup1":"\xB9","sup2":"\xB2","sup3":"\xB3","szlig":"\xDF","thorn":"\xFE","times":"\xD7","uacute":"\xFA","ucirc":"\xFB","ugrave":"\xF9","uml":"\xA8","uuml":"\xFC","yacute":"\xFD","yen":"\xA5","yuml":"\xFF"}')},80501:function(V){"use strict";V.exports=JSON.parse('{"0":"\uFFFD","128":"\u20AC","130":"\u201A","131":"\u0192","132":"\u201E","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02C6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017D","145":"\u2018","146":"\u2019","147":"\u201C","148":"\u201D","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02DC","153":"\u2122","154":"\u0161","155":"\u203A","156":"\u0153","158":"\u017E","159":"\u0178"}')}}]);
|
|
|
}()); |